[go: up one dir, main page]

TW202450357A - Computer-executed method and network device - Google Patents

Computer-executed method and network device Download PDF

Info

Publication number
TW202450357A
TW202450357A TW113115487A TW113115487A TW202450357A TW 202450357 A TW202450357 A TW 202450357A TW 113115487 A TW113115487 A TW 113115487A TW 113115487 A TW113115487 A TW 113115487A TW 202450357 A TW202450357 A TW 202450357A
Authority
TW
Taiwan
Prior art keywords
backoff
ieee
csma
channel
network
Prior art date
Application number
TW113115487A
Other languages
Chinese (zh)
Inventor
健林 郭
永井幸政
角武憲
基蘭 帕森斯
菲利浦 歐里克
Original Assignee
日商三菱電機股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US18/474,291 external-priority patent/US20240381424A1/en
Application filed by 日商三菱電機股份有限公司 filed Critical 日商三菱電機股份有限公司
Publication of TW202450357A publication Critical patent/TW202450357A/en

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

A computer-executed method is provided for IEEE 802.15.4 devices based on a suspendable carrier-sense multiple access with collision avoidance (CSMA/CA) control program and standard CSMA/CA control program for an IEEE 802.15.4 network composing of IEEE 802.15.4 devices. The computer-executed method is provided on an IEEE 802.15.4 device, and causes a processor of the IEEE 802.15.4 device to perform steps that include determining the permission of backoff suspension and the intention of IEEE 802.15.4 device to perform backoff suspension, selecting the suspendable CSMA/CA control program if the backoff suspension is permitted and IEEE 802.15.4 device intends to perform backoff suspension. The suspendable CSMA/CA control program is configured to perform active CCA within each unit backoff period and suspend backoff if channel is detected to be busy, performing a CCA when backoff completes, transmitting frame when the detected channel status is an idle state or incrementing a number of backoff (NB) when the detected channel status is an busy state, determining if a NB exceeds the macMaxCSMABackoffs, incrementing a number of retransmissions (NR) when a NB exceeds the macMaxCSMABackoffs, and discarding frame when a NR exceeds macMaxFrameRetries.

Description

電腦執行方法和網路裝置Computer execution method and network device

本發明關於無線通訊網路中的通道存取,特別是關於IEEE 802.15.4系統的通道存取。The present invention relates to channel access in wireless communication networks, and more particularly to channel access in IEEE 802.15.4 systems.

隨著5G及其他通訊技術的出現,消費性物聯網 (IoT)裝置越來越有能力支援物聯網應用。物聯網網路的規模已迅速從數百個成長到數千個。隨著越來越多的裝置競爭通道存取,通道存取機制的效率成為需要解決的關鍵問題。With the advent of 5G and other communication technologies, consumer Internet of Things (IoT) devices are becoming increasingly capable of supporting IoT applications. The size of IoT networks has rapidly grown from hundreds to thousands. As more and more devices compete for channel access, the efficiency of the channel access mechanism becomes a key issue that needs to be addressed.

IEEE 802.15.4 是專為室內和室外應用開發的常用無線標準系列。IEEE 802.15.4標準已廣泛應用於藍牙、智慧電表等商業產品。IEEE 802.15.4設計在Sub-1 GHz (S1G)頻段和2.4 GHz頻段運行,例如:IEEE 802.15.4g可以在Sub-1 GHz頻段和2.4 GHz頻段運行。IEEE 802.15.4網路可能由數百到數千個裝置組成,這些裝置競爭通道存取並因回退失敗而導致資料遺失。 IEEE 802.15.4 使用衝突避免的載波感測多重存取(carrier sense multiple access with collision avoidance;CSMA/CA) 機制進行通道存取。對於每次通道存取嘗試,IEEE 802.15.4在回退週期內不執行通道閒置評估(CCA),僅在回退程序完成後執行 CCA。此方法適用於流量較小的網路,但對於流量較大的網路則效果不佳,尤其是在與干擾性較強的網路(如:IEEE 802.11網路)共存時。因此,需要為IEEE 802.15.4系統提供新的通道存取機制。IEEE 802.15.4 is a common wireless standard family developed for indoor and outdoor applications. IEEE 802.15.4 standards have been widely used in commercial products such as Bluetooth and smart meters. IEEE 802.15.4 is designed to operate in the Sub-1 GHz (S1G) band and the 2.4 GHz band. For example, IEEE 802.15.4g can operate in the Sub-1 GHz band and the 2.4 GHz band. An IEEE 802.15.4 network may consist of hundreds to thousands of devices that compete for channel access and cause data loss due to backoff failures. IEEE 802.15.4 uses carrier sense multiple access with collision avoidance (CSMA/CA) mechanism for channel access. For each channel access attempt, IEEE 802.15.4 does not perform channel idleness assessment (CCA) during the backoff period, but only performs CCA after the backoff procedure is completed. This method is suitable for networks with less traffic, but it is not effective for networks with more traffic, especially when coexisting with more interfering networks (such as IEEE 802.11 networks). Therefore, a new channel access mechanism is needed for IEEE 802.15.4 systems.

因此,需要為IEEE 802.15.4提供新的通道存取方法,以達到更好的效能。Therefore, a new channel access method is needed for IEEE 802.15.4 to achieve better performance.

某些實施例基於以下前提:IEEE 802.15.4 CSMA/CA機制是為低資料速率和低功率設備設計的,因此節能相當重要。因此,IEEE 802.5.4 CSMA/CA機制不支援回退暫停,因此無法良好地應用於沒有能耗限制的新興設備(如:智慧電表)。Certain embodiments are based on the following premise: the IEEE 802.15.4 CSMA/CA mechanism is designed for low data rate and low power devices, so energy conservation is very important. Therefore, the IEEE 802.5.4 CSMA/CA mechanism does not support backoff pause and is therefore not well suited for emerging devices that do not have energy consumption constraints (e.g., smart meters).

為此,某些實施例是為了提供IEEE 802.15.4可暫停CSMA/CA機制以支援回退暫停,如此如第4圖所示可以減少回退失敗導致掉封包的機率。To this end, some embodiments provide IEEE 802.15.4 with a suspendable CSMA/CA mechanism to support backoff suspension, thereby reducing the probability of packet loss due to backoff failure as shown in FIG. 4 .

因此,本發明的一些實施例為IEEE 802.15.4標準提供可暫停CSMA/CA機制,在每個單位回退週期內執行CCA,並且一旦檢測到通道忙碌,暫停回退程序。Therefore, some embodiments of the present invention provide a suspendable CSMA/CA mechanism for the IEEE 802.15.4 standard, perform CCA in each unit backoff period, and suspend the backoff procedure once a busy channel is detected.

一些實施例的認知前提為節能對於電池供電裝置相當重要。然而,對於接電線的智慧電表等裝置來說,能耗並不受限制。這些裝置可以主動執行CCA,以增加通道道存取機率並降低回退失敗的機率。Some embodiments are based on the understanding that energy conservation is important for battery-powered devices. However, for devices such as smart meters that are connected to the power line, energy consumption is not limited. These devices can actively perform CCA to increase the probability of channel access and reduce the probability of fallback failure.

一些實施例的認知前提為IEEE 802.15.4 CSMA/CA機制中的閥值macMaxCSMABackoffs(最大回退次數)用於限制回退次數(NB)。一旦NB超過閥值macMaxCSMABackoffs,封包將被丟棄。隨著越來越多的裝置競爭通道存取,NB可快速達到閥值macMaxCSMABackoffs。 因此,IEEE 802.15.4封包可能被丟棄。Some embodiments are based on the knowledge that the threshold macMaxCSMABackoffs (maximum backoff number) in the IEEE 802.15.4 CSMA/CA mechanism is used to limit the backoff number (NB). Once the NB exceeds the threshold macMaxCSMABackoffs, the packet will be discarded. As more and more devices compete for channel access, the NB can quickly reach the threshold macMaxCSMABackoffs. Therefore, the IEEE 802.15.4 packet may be discarded.

為此,可暫停CSMA/CA允許回退暫停,從而透過暫停回退來延緩NB的增加,以避免當NB超過閥值macMaxCSMABackoffs時封包被丟棄。透過可暫停CSMA/CA,僅在最後一個回退週期內通道閒置時進行回退後的CCA,而不是在回退後盲目地進行CCA。盲目地進行CCA如第4圖所示會增加回退失敗的機率。To this end, suspendable CSMA/CA allows backoff to be suspended, thereby delaying the increase of NB by suspending backoff to avoid packets being discarded when NB exceeds the threshold macMaxCSMABackoffs. By suspending CSMA/CA, CCA after backoff is performed only when the channel is idle in the last backoff cycle, rather than blindly performing CCA after backoff. Blindly performing CCA as shown in Figure 4 increases the probability of backoff failure.

以下搭配附圖描述本發明的各種實施例。應注意的是,附圖並未按比例繪製,相似結構或功能的元件在附圖中以相似的標號表示。也應注意的是,附圖僅旨在便於描述本發明的特定實施例。它們並非旨在作為本發明的詳盡描述或作為本發明範圍的限制。另外,結合本發明的特定實施的描述不必限於該實施例並且可以在本發明的任何其他實施例中實踐。Various embodiments of the present invention are described below with accompanying drawings. It should be noted that the drawings are not drawn to scale, and elements of similar structure or function are represented by similar reference numerals in the drawings. It should also be noted that the drawings are intended only to facilitate the description of specific embodiments of the present invention. They are not intended to be a detailed description of the present invention or to limit the scope of the present invention. In addition, the description in conjunction with a specific embodiment of the present invention is not necessarily limited to that embodiment and may be practiced in any other embodiment of the present invention.

IEEE 802.15.4 標準協議族是廣泛用於各種室內和室外應用的無線技術。例如,IEEE 802.15.4g是IEEE 802.15.4標準協議族中專為室外無線智慧公用網路(wireless smart utility network;Wi-SUN)設計的一個標準協議。在IEEE 802.15.4g中,智慧電表沒有能耗上的限制。The IEEE 802.15.4 family of standards is a widely used wireless technology for various indoor and outdoor applications. For example, IEEE 802.15.4g is a standard protocol in the IEEE 802.15.4 family of standards designed specifically for outdoor wireless smart utility networks (Wi-SUN). In IEEE 802.15.4g, smart meters have no energy consumption restrictions.

第1圖示出了IEEE 802.15.4網路100的示意圖,IEEE 802.15.4網路100包含個人區域網路協調器(Personal Area Network Coordinator;PANC)101和關聯節點。PANC和節點使用IEEE 802.15.4無線鏈路103進行通訊。FIG. 1 shows a schematic diagram of an IEEE 802.15.4 network 100. The IEEE 802.15.4 network 100 includes a Personal Area Network Coordinator (PANC) 101 and associated nodes. The PANC and the nodes communicate using an IEEE 802.15.4 wireless link 103.

IEEE 802.15.4網路的拓樸可以是星形、網狀或樹形,例如: 第1圖所示的IEEE 802.15.4網路100是樹形拓樸。在某些情況下,IEEE 802.15.4網路100可以是被配置為樹狀拓樸之基於IEEE 802.15.4的智慧電表網路。應注意的是,樹形拓樸的連接方式可以根據通訊的狀態而改變。另外,不需要所有節點都與PANC 101直接連接。換句話說,IEEE 802.15.4節點可以透過多點跳躍(multi-hop)方式與PANC 101通訊,例如:IEEE 802.15.4節點104可以經由中間的IEEE 802.15.4節點102與PANC 101通訊。The topology of the IEEE 802.15.4 network can be star, mesh or tree. For example, the IEEE 802.15.4 network 100 shown in FIG. 1 is a tree topology. In some cases, the IEEE 802.15.4 network 100 can be a smart meter network based on IEEE 802.15.4 configured as a tree topology. It should be noted that the connection method of the tree topology can be changed according to the state of communication. In addition, it is not necessary for all nodes to be directly connected to the PANC 101. In other words, the IEEE 802.15.4 node can communicate with the PANC 101 through a multi-hop method. For example, the IEEE 802.15.4 node 104 can communicate with the PANC 101 through the intermediate IEEE 802.15.4 node 102.

第2A圖之步驟200示出了IEEE 802.15.4資料訊框(frame)傳輸程序。在步驟201,IEEE 802.15.4之媒體存取控制技術(Media Access Control;MAC)將重傳次數(number of retransmissions;NR)設定為0。然後,在步驟202啟用 CSMA/CA演算法,其中標準IEEE 802.15.4-2020 CSMA/CA演算法如第3圖所示。Step 200 of FIG. 2A shows the IEEE 802.15.4 data frame transmission process. In step 201, the IEEE 802.15.4 Media Access Control (MAC) sets the number of retransmissions (NR) to 0. Then, in step 202, the CSMA/CA algorithm is enabled, wherein the standard IEEE 802.15.4-2020 CSMA/CA algorithm is shown in FIG. 3.

在步驟203,若CSMA/CA演算法回傳成功狀態,代表偵測到通道閒置。因此,在步驟204開始訊框的傳輸。在步驟205,如果訊框不需要確認訊息(acknowledgement;ACK) (AckTX=0),則IEEE 802.15.4之MAC在步驟207判斷傳輸成功,並且將傳輸成功之狀態經由資料確認介面(Data Confirm interface)反應至上層。在步驟205,如果需要ACK (AckTX=1) ,並且該ACK在ACK等待時間內被接收,則IEEE 802.15.4之MAC亦在步驟207判斷傳輸成功,並且將傳輸成功之狀態經由資料確認介面(Data Confirm interface)反應至上層。在步驟206,如果需要ACK(AckTX=1),並且該ACK未在ACK等待時間內被接收,則IEEE 802.15.4之MAC在步驟209將NR加一,並且在步驟210確認該NR是否超過一閥值macMaxFrameRetries。若是,則IEEE 802.15.4之MAC在步驟211判斷傳輸失敗,並且丟棄該訊框。IEEE 802.15.4之MAC接著透過資料確認介面將狀態NO_ACK反應至上層。在步驟210,如果該NR小或等於閥值macMaxFrameRetries,IEEE 802.15.4之MAC進行另一次傳輸嘗試。In step 203, if the CSMA/CA algorithm returns a success status, it means that the channel is detected to be idle. Therefore, the frame transmission starts in step 204. In step 205, if the frame does not require an acknowledgment message (ACK) (AckTX=0), the IEEE 802.15.4 MAC determines that the transmission is successful in step 207, and reflects the successful transmission status to the upper layer through the data confirmation interface (Data Confirm interface). In step 205, if ACK is required (AckTX=1) and the ACK is received within the ACK waiting time, the IEEE 802.15.4 MAC also determines that the transmission is successful in step 207, and reflects the successful transmission status to the upper layer through the data confirmation interface (Data Confirm interface). In step 206, if ACK is required (AckTX=1) and the ACK is not received within the ACK wait time, the IEEE 802.15.4 MAC increases the NR by one in step 209 and confirms whether the NR exceeds a threshold value macMaxFrameRetries in step 210. If so, the IEEE 802.15.4 MAC determines that the transmission has failed in step 211 and discards the frame. The IEEE 802.15.4 MAC then reflects the status NO_ACK to the upper layer through the data acknowledgment interface. In step 210, if the NR is less than or equal to the threshold value macMaxFrameRetries, the IEEE 802.15.4 MAC makes another transmission attempt.

在步驟203,如果CSMA/CA演算法回傳失敗狀態,則IEEE 802.15.4之MAC在步驟208檢查該訊框是否為單播訊框。若該訊框不是單播訊框,IEEE 802.15.4之MAC在步驟211判斷傳輸失敗並且丟棄該訊框,接著將狀態CHANNEK_ACCESS_FAILURE反應至上層。若該訊框是單播訊框,IEEE 802.15.4之MAC在步驟209將NR加一,接著在步驟210確認該NR是否超過一閥值macMaxFrameRetries。若是,則IEEE 802.15.4之MAC在步驟211判斷傳輸失敗,並且丟棄該訊框。IEEE 802.15.4之MAC接著透過資料確認介面將狀態CHANNEK_ACCESS_FAILURE反應至上層。如果該NR小或等於閥值macMaxFrameRetries,IEEE 802.15.4之MAC進行另一次傳輸嘗試。In step 203, if the CSMA/CA algorithm returns a failure status, the IEEE 802.15.4 MAC checks in step 208 whether the frame is a unicast frame. If the frame is not a unicast frame, the IEEE 802.15.4 MAC determines in step 211 that the transmission has failed and discards the frame, and then reflects the status CHANNEK_ACCESS_FAILURE to the upper layer. If the frame is a unicast frame, the IEEE 802.15.4 MAC increases the NR by one in step 209, and then confirms in step 210 whether the NR exceeds a threshold value macMaxFrameRetries. If so, the IEEE 802.15.4 MAC determines in step 211 that the transmission has failed and discards the frame. The IEEE 802.15.4 MAC then reports the status CHANNEK_ACCESS_FAILURE to the upper layer via the data acknowledgment interface. If the NR is less than or equal to the threshold macMaxFrameRetries, the IEEE 802.15.4 MAC makes another transmission attempt.

第2B圖示出了形成第1圖的網路的IEEE 802.15.4裝置230的範例結構。IEEE 802.15.4裝置230可以包括記憶體236、處理器237、電源240、收發器238和RF天線239,收發器238包括發射器、接收器和能量檢測器。進一步地,儲存裝置包括控制程式(control program)231並且連接至記憶體236、處理器237和收發器238。控制程式231包括CSMA/CA模式控制程式233、標準CSMA/CA程式234、可暫停CSMA/CA程式235和計時器232,收發器238使用計時器232以執行CSMA/CA模式控制程式233。根據回退暫停(backoff suspension)的許可和IEEE 802.15.4裝置230對回退暫停的意圖,CSMA/CA模式控制程式233可以啟動標準IEEE 802.15.4 CSMA/CA程式234或可暫停CSMA/CA程式235。FIG. 2B shows an example structure of an IEEE 802.15.4 device 230 forming the network of FIG. 1. The IEEE 802.15.4 device 230 may include a memory 236, a processor 237, a power supply 240, a transceiver 238, and an RF antenna 239. The transceiver 238 includes a transmitter, a receiver, and an energy detector. Further, the storage device includes a control program 231 and is connected to the memory 236, the processor 237, and the transceiver 238. The control program 231 includes a CSMA/CA mode control program 233, a standard CSMA/CA program 234, a suspendable CSMA/CA program 235, and a timer 232. The transceiver 238 uses the timer 232 to execute the CSMA/CA mode control program 233. Depending on the permission of backoff suspension and the intention of the IEEE 802.15.4 device 230 for backoff suspension, the CSMA/CA mode control program 233 may start the standard IEEE 802.15.4 CSMA/CA program 234 or may suspend the CSMA/CA program 235.

第3圖示出了IEEE 802.15.4-2020中的標準CSMA/CA演算法。本發明實施例為非時隙(non-slotted)IEEE 802.15.4網路提供可暫停CSMA/CA。因此,以下僅描述第3圖中的非時隙分支。對於非時隙IEEE 802.15.4網路,即未啟用信標(beacon)的網路,標準IEEE 802.15.4 CSMA/CA演算法將回退次數(number of backoff;NB)初始化為0,並且將回退指數(backoff exponent;BE)初始化為值macMinBE。然後,CSMA/CA演算法在稱為回退窗(backoff window)或延遲窗之區間[0, 2 BE-1]內均勻地抽取隨機數,並且延遲該隨機數個單位回退週期(unit backoff period),其中該BE始於值macMinBE,並且一直增加到值macMaxBE。當隨機回退/延遲完成時,CSMA/CA演算法執行通道閒置評估(clear channel assessment;CCA)操作。如果偵測到通道閒置,則CSMA/CA演算法會回傳成功並開始傳輸訊框。如果偵測到通道忙碌,CSMA/CA演算法將NB和BE分別更新為NB=NB+1和BE=min{BE+1,macMaxBE}。如果NB超過閥值macMaxCSMABackoffs,CSMA/CA演算法將以失敗狀態結束。否則,CSMA/CA演算法接續進行隨機回退/延遲。 FIG. 3 shows the standard CSMA/CA algorithm in IEEE 802.15.4-2020. Embodiments of the present invention provide pausible CSMA/CA for non-slotted IEEE 802.15.4 networks. Therefore, only the non-slotted branch in FIG. 3 is described below. For non-slotted IEEE 802.15.4 networks, i.e., networks without beacons enabled, the standard IEEE 802.15.4 CSMA/CA algorithm initializes the number of backoffs (NB) to 0 and the backoff exponent (BE) to the value macMinBE. The CSMA/CA algorithm then uniformly draws a random number in the interval [0, 2 BE -1] called the backoff window or delay window, and delays the random number of unit backoff periods, where the BE starts at the value macMinBE and increases to the value macMaxBE. When the random backoff/delay is completed, the CSMA/CA algorithm performs a clear channel assessment (CCA) operation. If the channel is detected to be idle, the CSMA/CA algorithm returns success and starts transmitting frames. If the channel is detected to be busy, the CSMA/CA algorithm updates NB and BE to NB=NB+1 and BE=min{BE+1,macMaxBE} respectively. If NB exceeds the threshold macMaxCSMABackoffs, the CSMA/CA algorithm will end in failure. Otherwise, the CSMA/CA algorithm continues with random backoffs/delays.

對於非時隙網路,不論通道閒置多久,標準IEEE 802.15.4 CSMA/CA演算法都會先執行隨機延遲。如第4圖所示,因為CCA是隨意執行的,使用這種基於Backoff+CCA的CSMA/CA機制會降低通道存取機率。 IEEE 802.15.4 CSMA/CA 失敗封包丟棄 For non-slotted networks, the standard IEEE 802.15.4 CSMA/CA algorithm will first perform a random delay regardless of how long the channel is idle. As shown in Figure 4, because CCA is performed randomly, using this CSMA/CA mechanism based on Backoff+CCA will reduce the channel access probability. IEEE 802.15.4 CSMA/CA Failed Packets Abandoned

在IEEE 802.15.4中,資料訊框傳輸失敗是由a)CSMA/CA失敗或b)傳輸失敗導致的。如第2A圖所示,CSMA/CA失敗發生在NB超出閥值macMaxCSMABackoffs導致CSMA/CA演算法以失敗狀態終止之時。傳輸失敗起因於失敗的訊框傳輸或失敗的確認訊息傳輸或延遲的確認訊息接收。當CSMA/CA失敗或傳輸失敗時,重傳次數(NR)都會加1。當NR因CSMA/CA失敗而超過閥值macMaxFrameRetries時,IEEE 802.15.4訊框會因狀態CHANNEL_ACCESS_FAILURE被丟棄。當NR因傳輸失敗而超過閥值macMaxFrameRetries時,IEEE 802.15.4訊框會因狀態NO_ACK被丟棄。如第4圖所示,其他傳輸可能會導致CSMA/CA回退失敗,進而導致IEEE 802.15.4裝置丟棄封包。In IEEE 802.15.4, data frame transmission failure is caused by a) CSMA/CA failure or b) transmission failure. As shown in Figure 2A, CSMA/CA failure occurs when the NB exceeds the threshold macMaxCSMABackoffs causing the CSMA/CA algorithm to terminate in a failure state. Transmission failures are caused by failed frame transmissions or failed ACK message transmissions or delayed ACK message receptions. When CSMA/CA fails or transmission fails, the number of retransmissions (NR) is incremented by 1. When NR exceeds the threshold macMaxFrameRetries due to CSMA/CA failure, the IEEE 802.15.4 frame is discarded with status CHANNEL_ACCESS_FAILURE. When NR exceeds the threshold macMaxFrameRetries due to transmission failure, the IEEE 802.15.4 frame is discarded with status NO_ACK. As shown in Figure 4, other transmissions may cause CSMA/CA backoff failures, which in turn causes the IEEE 802.15.4 device to discard the packet.

第4圖示出其他傳輸所導致的標準IEEE 802.15.4 CSMA/CA回退失敗的範例。然而,可暫停CSMA/CA程式235透過暫停回退程序來避免回退失敗。在第4圖中,可暫停IEEE 802.15.4 CSMA/CA回退裝置401和標準IEEE 802.15.4回退裝置402都在時間T2接收資料傳輸請求,因此在時間T2開始回退。可暫停IEEE 802.15.4 CSMA/CA回退裝置401和標準IEEE 802.15.4回退裝置402選擇相同數量的單位回退週期,因此需要回退相同的時間量。然而,在更早的時間T1,其他裝置403接收資料傳輸請求並開始回退。在時間T3,其他裝置403完成回退並開始CCA操作。在時間T4,其他裝置403完成CCA並偵測到閒置通道,因此開始資料傳輸。可暫停IEEE 802.15.4 CSMA/CA回退裝置401在每個單位回退週期內執行主動CCA並偵測其他裝置403的傳輸,因此暫停其回退程序。另一方面,標準IEEE 802.15.4回退裝置402不暫停其回退並在時間T5完成回退,因此在時間T5執行CCA。然而,在時間T5,其他裝置403仍在傳輸。因此,標準IEEE 802.15.4回退裝置402偵測到通道忙碌並在時間T7回傳回退失敗。與此同時,可暫停IEEE 802.15.4 CSMA/CA回退裝置401在時間T6偵測到其他裝置傳輸的結束並且接續剩餘的回退。在時間T8,可暫停IEEE 802.15.4 CSMA/CA回退裝置401完成回退並開始CCA,CCA在時間T9結束並回報通道閒置。因此,可暫停IEEE 802.15.4 CSMA/CA回退裝置401在時間T9成功傳送其資料而無回退失敗。FIG. 4 shows an example of a standard IEEE 802.15.4 CSMA/CA backoff failure caused by other transmissions. However, the pausable CSMA/CA procedure 235 avoids backoff failure by pausing the backoff procedure. In FIG. 4, both the pausable IEEE 802.15.4 CSMA/CA backoff device 401 and the standard IEEE 802.15.4 backoff device 402 receive a data transmission request at time T2, and therefore start backing off at time T2. The pausable IEEE 802.15.4 CSMA/CA backoff device 401 and the standard IEEE 802.15.4 backoff device 402 select the same number of unit backoff cycles, and therefore need to back off for the same amount of time. However, at an earlier time T1, the other device 403 receives the data transmission request and starts backoff. At time T3, the other device 403 completes the backoff and starts the CCA operation. At time T4, the other device 403 completes the CCA and detects an idle channel, and thus starts data transmission. The IEEE 802.15.4 CSMA/CA backoff device 401 that can be suspended performs active CCA within each unit backoff cycle and detects the transmission of the other device 403, and thus suspends its backoff procedure. On the other hand, the standard IEEE 802.15.4 backoff device 402 does not suspend its backoff and completes the backoff at time T5, and thus performs CCA at time T5. However, at time T5, the other device 403 is still transmitting. Therefore, the standard IEEE 802.15.4 backoff device 402 detects that the channel is busy and reports a backoff failure at time T7. At the same time, the IEEE 802.15.4 CSMA/CA backoff device 401 that can be suspended detects the end of the transmission of other devices at time T6 and continues the remaining backoff. At time T8, the IEEE 802.15.4 CSMA/CA backoff device 401 that can be suspended completes the backoff and starts CCA, which ends at time T9 and reports that the channel is idle. Therefore, the IEEE 802.15.4 CSMA/CA backoff device 401 that can be suspended successfully transmits its data at time T9 without a backoff failure.

第4圖清楚地顯示,標準IEEE 802.15.4 CSMA/CA機制相較可暫停IEEE 802.15.4 CSMA/CA機制導致更多的封包被丟棄。 可暫停 IEEE 802.15.4 CSMA/CA Figure 4 clearly shows that the standard IEEE 802.15.4 CSMA/CA mechanism causes more packets to be dropped than the suspendable IEEE 802.15.4 CSMA/ CA mechanism.

本發明的一些實施例為IEEE 802.15.4提供了可暫停CSMA/CA,以解決其他傳輸導致的CSMA/CA失敗封包丟棄。Some embodiments of the present invention provide IEEE 802.15.4 with a method for suspending CSMA/CA to solve the problem of CSMA/CA failure packet discarding caused by other transmissions.

為了允許可暫停CSMA/CA,定義了一可暫停CSMA/CA欄位。當可暫停CSMA/CA欄位=1,表示允許回退暫停。在這種情況下,IEEE 802.15.4裝置可能會暫停CSMA/CA 演算法中的回退。如果IEEE 802.15.4裝置有意執行回退暫停,則會呼叫步驟504的可暫停CSMA-CA演算法。當可暫停CSMA/CA欄位=0,表示不允許回退暫停。在這種情況下,IEEE 802.15.4裝置無法在CSMA/CA演算法中執行回退暫停。In order to allow suspendable CSMA/CA, a suspendable CSMA/CA field is defined. When the suspendable CSMA/CA field = 1, it indicates that backoff suspension is allowed. In this case, the IEEE 802.15.4 device may suspend the backoff in the CSMA/CA algorithm. If the IEEE 802.15.4 device intentionally performs backoff suspension, the suspendable CSMA-CA algorithm of step 504 is called. When the suspendable CSMA/CA field = 0, it indicates that backoff suspension is not allowed. In this case, the IEEE 802.15.4 device cannot perform backoff suspension in the CSMA/CA algorithm.

回退暫停許可可以由區域監管者或網路管理員或應用程式開發人員或三者的組合來決定,例如,在美國IEEE 802.15.4通訊分配到更多頻段,因此不需要回退暫停,而在日本IEEE 802.15.4通訊分配到的頻段較少,因此需要回退暫停。Fallback suspension permission can be determined by regional regulators or network administrators or application developers or a combination of all three, for example, in the United States IEEE 802.15.4 communications are allocated more frequency bands, so fallback suspension is not required, while in Japan IEEE 802.15.4 communications are allocated less frequency bands, so fallback suspension is required.

即使可暫停CSMA/CA欄位=1,IEEE 802.15.4 裝置也可以選擇不執行回退暫停,例如,當沒有流量擁塞或裝置能源供應受限時。Even if the Pausable CSMA/CA field = 1, an IEEE 802.15.4 device may choose not to perform fallback pausing, for example, when there is no traffic congestion or the device has limited energy supply.

第5A圖示出了本發明支援回退暫停的IEEE 802.15.4 CSMA/CA的流程圖。本發明的CSMA/CA允許IEEE 802.15.4裝置執行回退暫停以避免通道存取失敗封包丟棄。FIG. 5A shows a flow chart of the IEEE 802.15.4 CSMA/CA supporting backoff pause of the present invention. The CSMA/CA of the present invention allows IEEE 802.15.4 devices to perform backoff pause to avoid channel access failure packet discard.

本發明在步驟500的CSMA/CA在步驟501檢視IEEE 802.15.4網路是否為時槽跳頻(Time Slotted Channel Hopping;TSCH)網路,並在步驟502檢視IEEE 802.15.4網路是否為時隙網路。對於非時隙網路,本發明的CSMA/CA在步驟503檢查是否允許回退暫停,即可暫停CSMA/CA欄位=1或0。若可暫停CSMA/CA欄位=1且裝置有意執行回退暫停,則本發明CSMA/CA接續執行步驟504的可暫停CSMA/CA演算法。The CSMA/CA of the present invention in step 500 checks whether the IEEE 802.15.4 network is a time slotted channel hopping (TSCH) network in step 501, and checks whether the IEEE 802.15.4 network is a time slotted network in step 502. For a non-time slotted network, the CSMA/CA of the present invention checks whether a fallback pause is allowed in step 503, i.e., the pausable CSMA/CA field = 1 or 0. If the pausable CSMA/CA field = 1 and the device intends to perform a fallback pause, the CSMA/CA of the present invention continues to perform the pausable CSMA/CA algorithm in step 504.

第5B圖示出了步驟504的可暫停CSMA/CA。在步驟505,可暫停CSMA/CA演算法將NB設置為0,且將BE設置為值macMinBE。然後,在步驟506,可暫停CSMA/CA演算法在[0,2 BE-1]內均勻地抽取隨機數個單位回退週期,並將抽到的隨機數設定為單位回退週期的數量。然後,如第5B圖所示,在步驟507,可暫停CSMA/CA演算法在每個單位回退週期內執行主動 CCA。在步驟508,若通道忙碌,可暫停CSMA/CA演算法在步驟514等待直到下一個單位回退週期並再次執行步驟507的主動CCA。在這種情況下,單位回退週期數量(number of unit backoff periods;NUBP)沒有減少。換句話說,因為包括NB在內的所有回退參數都沒有更新,所以回退暫停。在步驟508,若如果通道閒置,則可暫停CSMA/CA演算法在步驟509將NUBP減1。 在步驟510,若NUBP非0,則回退未完成。因此,可暫停CSMA/CA演算法在步驟514等待直到下一個單位回退週期並再次執行步驟507的主動CCA。否則,在步驟510,NUBP為0,則回退已完成。然後,可暫停CSMA/CA演算法執行步驟511的標準CCA。在步驟512,若通道閒置,則在步驟513回退成功。否則,在步驟512通道忙碌,可暫停CSMA/CA演算法在步驟515將NB加一。在步驟516,若NB超過預定的閥值macMaxCSMABackoffs,則在步驟517回退失敗。否則,可暫停CSMA/CA演算法執行另一輪的回退。 FIG. 5B illustrates the suspendable CSMA/CA at step 504. At step 505, the suspendable CSMA/CA algorithm sets NB to 0 and BE to the value macMinBE. Then, at step 506, the suspendable CSMA/CA algorithm uniformly draws a random number of unit backoff periods in [0, 2 BE -1] and sets the drawn random number as the number of unit backoff periods. Then, as shown in FIG. 5B, at step 507, the suspendable CSMA/CA algorithm performs active CCA in each unit backoff period. In step 508, if the channel is busy, the CSMA/CA algorithm may be suspended in step 514 to wait until the next unit backoff period and perform active CCA in step 507 again. In this case, the number of unit backoff periods (NUBP) is not reduced. In other words, the backoff is suspended because all backoff parameters including NB are not updated. In step 508, if the channel is idle, the CSMA/CA algorithm may be suspended in step 509 to reduce NUBP by 1. In step 510, if NUBP is not 0, the backoff is not completed. Therefore, the CSMA/CA algorithm may be suspended in step 514 to wait until the next unit backoff period and perform active CCA in step 507 again. Otherwise, at step 510, NUBP is 0, and the backoff is complete. Then, the CSMA/CA algorithm can be suspended to execute the standard CCA at step 511. At step 512, if the channel is idle, the backoff is successful at step 513. Otherwise, at step 512, if the channel is busy, the CSMA/CA algorithm can be suspended to increase NB by one at step 515. At step 516, if NB exceeds the predetermined threshold macMaxCSMABackoffs, the backoff fails at step 517. Otherwise, the CSMA/CA algorithm can be suspended to execute another round of backoff.

標準CSMA/CA演算法和可暫停CSMA/CA演算法之間的主要區別:The main differences between the standard CSMA/CA algorithm and the suspendable CSMA/CA algorithm are:

可暫停CSMA/CA演算法在每個單位回退週期內執行CCA,標準CSMA/CA演算法在整個回退程序中不執行CCA。The CSMA/CA algorithm can be suspended to perform CCA in each unit backoff cycle. The standard CSMA/CA algorithm does not perform CCA during the entire backoff process.

只有在最後單位回退週期內偵測到通道閒置時,可暫停CSMA/CA演算法才會執行步驟511的CCA。另一方面,無論最後單位回退週期內的通道是忙碌或閒置,標準CSMA/CA演算法都會執行步驟511的CCA。The suspendable CSMA/CA algorithm performs CCA in step 511 only when the channel is detected to be idle during the last unit backoff period. On the other hand, the standard CSMA/CA algorithm performs CCA in step 511 regardless of whether the channel is busy or idle during the last unit backoff period.

只有在執行步驟511的CCA的CCA週期內開始其他傳輸時,可暫停CSMA/CA演算法才會增加NB。另一方面,無論在CCA週期之前或在執行步驟511的CCA的CCA週期內開始其他傳輸,標準CSMA/CA演算法都會增加NB。因此,標準CSMA/CA演算法有更大的機率增加NB,從而導致回退失敗的可能性更大。The suspendable CSMA/CA algorithm increases the NB only when other transmissions are started during the CCA cycle of the CCA in step 511. On the other hand, the standard CSMA/CA algorithm increases the NB regardless of whether other transmissions are started before the CCA cycle or during the CCA cycle of the CCA in step 511. Therefore, the standard CSMA/CA algorithm has a greater chance of increasing the NB, resulting in a greater possibility of fallback failure.

透過執行主動CCA,可暫停CSMA/CA演算法能夠避免因非IEEE 802.15.4裝置(如:IEEE 802.11裝置)的干擾而導致的封包丟棄。By performing active CCA, the CSMA/CA algorithm can be suspended to avoid packet discards caused by interference from non-IEEE 802.15.4 devices (such as IEEE 802.11 devices).

綜上所述,可暫停CSMA/CA演算法可以減少回回退失敗的機率。In summary, pausing the CSMA/CA algorithm can reduce the probability of backoff failure.

在IEEE 802.15.4的標準中,單位回退週期比CCA週期長。第6圖示出單位回退週期的結構,單位回退週期包括時間aTurnaroundTime加上一CCA週期。對於在920 MHz頻段運行的SUN實體層(Physical Payer;PHY)之外的所有PHY,CCA週期等於時間aCcaTime。對於在920 MHz頻段運行的SUN PHY,CCA週期等於時間phyCcaDuration。這顯示CSMA/CA演算法在單位回退期內有多種執行步驟507的主動CCA的方式可選。CSMA/CA演算法可以在整個或部分單元回退週期內執行CCA。第7A圖示出了一個範例,其中CSMA/CA演算法在整個單元回退週期內執行主動CCA。第7B圖示出了一個範例,其中CSMA/CA演算法在一CCA週期(即部分單位回退週期)內執行主動CCA。In the IEEE 802.15.4 standard, the unit backoff period is longer than the CCA period. Figure 6 shows the structure of the unit backoff period, which includes the time aTurnaroundTime plus a CCA period. For all PHYs except the SUN physical layer (Physical Payer; PHY) operating in the 920 MHz band, the CCA period is equal to the time aCcaTime. For SUN PHY operating in the 920 MHz band, the CCA period is equal to the time phyCcaDuration. This shows that the CSMA/CA algorithm has multiple options for performing active CCA in step 507 within the unit backoff period. The CSMA/CA algorithm can perform CCA in the entire or partial unit backoff period. FIG. 7A shows an example where the CSMA/CA algorithm performs active CCA in a full unit backoff period. FIG. 7B shows an example where the CSMA/CA algorithm performs active CCA in a CCA period (i.e., a partial unit backoff period).

第8圖示出可暫停CSMA/CA演算法的執行範例,其中存在IEEE 802.15.4裝置801和其他裝置802,其中其他裝置802可以是IEEE 802.15.4裝置或非IEEE 802.15.4裝置(如:IEEE 802.11裝置)。在時間T1,其他裝置802接收到資料請求,因此開始第一次回退。在時間T2,IEEE 802.15.4裝置801接收資料請求,因此也開始第一回退。在時間T3,其他裝置802完成第一回退並開始CCA操作。在時間T4,其他裝置802完成CCA並偵測到通道閒置。因此,其他裝置802開始進行傳輸。在時間T4的同一時間,IEEE 802.15.4裝置801偵測到其他裝置802的傳輸,如果其他裝置802是IEEE 802.15.4的裝置,則IEEE 802.15.4裝置801暫停其第一回退並執行資料接收。在時間T5,其他裝置802完成傳輸並且通道變為閒置。因此,IEEE 802.15.4裝置801接續其第一回退。在時間T6,IEEE 802.15.4裝置801完成其第一回退並開始CCA操作。在時間T7,IEEE 802.15.4裝置801完成CCA並且通道閒置。因此,IEEE 802.15.4裝置801開始進行資料傳輸。與此同時,如果其他裝置802是IEEE 802.15.4的裝置,則其開始接收資料。最後,在時間T8,IEEE 802.15.4裝置801完成資料傳輸。FIG. 8 illustrates an example of an implementation of a suspendable CSMA/CA algorithm, wherein there are an IEEE 802.15.4 device 801 and other devices 802, wherein the other devices 802 may be IEEE 802.15.4 devices or non-IEEE 802.15.4 devices (e.g., IEEE 802.11 devices). At time T1, the other device 802 receives a data request and thus starts a first backoff. At time T2, the IEEE 802.15.4 device 801 receives a data request and thus also starts a first backoff. At time T3, the other device 802 completes the first backoff and starts a CCA operation. At time T4, the other device 802 completes the CCA and detects that the channel is idle. Therefore, the other device 802 starts transmitting. At the same time of time T4, the IEEE 802.15.4 device 801 detects the transmission of the other device 802. If the other device 802 is an IEEE 802.15.4 device, the IEEE 802.15.4 device 801 suspends its first backoff and performs data reception. At time T5, the other device 802 completes the transmission and the channel becomes idle. Therefore, the IEEE 802.15.4 device 801 continues its first backoff. At time T6, the IEEE 802.15.4 device 801 completes its first backoff and starts the CCA operation. At time T7, the IEEE 802.15.4 device 801 completes the CCA and the channel becomes idle. Therefore, the IEEE 802.15.4 device 801 starts data transmission. At the same time, if the other device 802 is an IEEE 802.15.4 device, it starts receiving data. Finally, at time T8, the IEEE 802.15.4 device 801 completes data transmission.

應注意的是,如果其他裝置802是非IEEE 802.15.4裝置,則IEEE 802.15.4裝置801和其他裝置802不能從接收彼此的資料。然而,它們可能會互相干擾。透過執行可暫停CSMA/CA演算法,IEEE 802.15.4裝置801可以避免因干擾而導致的封包丟棄。It should be noted that if the other device 802 is a non-IEEE 802.15.4 device, the IEEE 802.15.4 device 801 and the other device 802 cannot receive data from each other. However, they may interfere with each other. By executing the pausible CSMA/CA algorithm, the IEEE 802.15.4 device 801 can avoid packet discarding due to interference.

在IEEE 802.15.4網路中,PANC(即網路管理器)和多個裝置可以透過第9A圖所示之本發明的關聯回應命令(Association Response Command)的訊框控制欄位(Frame Control field)、第9B和9C圖所示的關聯請求命令(Association Request Command)的能力資訊欄位(Capability Information field),來實現步驟504的可暫停CSMA-CA演算法。其中,第9B圖描述關聯請求命令的能力資訊欄位,第9C圖描述確定性和同步多通道擴展(Deterministic and Synchronous Multichannel Extension;DSME)關聯請求命令的能力資訊欄位。更具體地,裝置將關聯請求命令或DSME關聯請求命令的能力資訊欄位中的可暫停CSMA/CA位元(位元5)設為1,以顯示其欲執行回退暫停的意圖。作為回應,PANC將關聯回應命令的訊框控制欄位中的可暫停CSMA/CA位元(位元7)設為1,以指示允許回退暫停,或將關聯回應命令的訊框控制欄位中的可暫停CSMA/CA位元(位元7)設定為0,以指示不允許回退暫停。PANC可以基於區域監管者或應用要求或網路效能或有意執行回退暫停的裝置數量或其上述的組合,來決定回退暫停的許可。In an IEEE 802.15.4 network, a PANC (i.e., a network manager) and multiple devices can implement the suspendable CSMA-CA algorithm of step 504 through the Frame Control field of the Association Response Command of the present invention as shown in FIG. 9A and the Capability Information field of the Association Request Command as shown in FIG. 9B and FIG. 9C. FIG. 9B describes the Capability Information field of the Association Request Command, and FIG. 9C describes the Capability Information field of the Deterministic and Synchronous Multichannel Extension (DSME) Association Request Command. More specifically, the device sets the suspendable CSMA/CA bit (bit 5) in the capability information field of the association request command or DSME association request command to 1 to indicate its intention to perform fallback suspension. In response, the PANC sets the suspendable CSMA/CA bit (bit 7) in the frame control field of the association response command to 1 to indicate that fallback suspension is allowed, or sets the suspendable CSMA/CA bit (bit 7) in the frame control field of the association response command to 0 to indicate that fallback suspension is not allowed. The PANC may determine the permission of fallback suspension based on regional regulators or application requirements or network performance or the number of devices that intend to perform fallback suspension, or a combination of the above.

本發明的上述實施例可以以多種方式的任何一種實現。例如,可以以硬體、軟體或其組合來實現上述實施例。當以軟體實現時,軟體程式​​碼可以在任何合適的處理器或數個處理器上執行,無論是在單一電腦或分散在多個電腦中。上述處理器可以以積體電路實現,其中一或多個處理器位於積體電路元件之中。處理器可以使用任何合適結構(format)的電路來實現。The above embodiments of the present invention may be implemented in any of a variety of ways. For example, the above embodiments may be implemented in hardware, software, or a combination thereof. When implemented in software, the software code may be executed on any suitable processor or processors, whether in a single computer or distributed across multiple computers. The above processors may be implemented in integrated circuits, wherein one or more processors are located in an integrated circuit element. The processor may be implemented using circuits of any suitable format.

另外,本發明的實施例可以被實現為一種方法,並且已經提供了該方法的範例。該方法的部分操作可以以任何合適的方式排序。因此,即使在上述實施例中以循序操作進行說明,實施例可以以與所示不同之順序執行操作,可以包括同時執行一些操作。In addition, embodiments of the present invention may be implemented as a method, and examples of the method have been provided. Portions of the method operations may be ordered in any suitable manner. Therefore, even though sequential operations are described in the above embodiments, embodiments may perform operations in a different order than shown, and may include performing some operations simultaneously.

在請求項中使用如「第一」、「第二」之類的序數術語來修改請求項元件本身並不意味著一個請求項元件相對於另一個請求項元件的任何優先度、優先權或順序,或方法中的操作的時間順序,而是僅用於區別具有相同名稱的兩請求項元件。The use of ordinal terms such as "first," "second," and the like in a request item to modify the request item element itself does not imply any priority, precedence, or order of one request item element relative to another request item element, or the temporal order of operations within a method, but is only used to distinguish two request item elements with the same name.

儘管已透過較優實施例之範例描述了本發明,但應當理解,在本發明的精神和範圍內可以做出各種其他的變化和修改。Although the present invention has been described by way of examples of preferred embodiments, it is to be understood that various other variations and modifications may be made within the spirit and scope of the present invention.

因此,所附請求項的目的是涵蓋落入本發明的真實精神和範圍內的所有變化和修改。Therefore, it is the object of the appended claims to cover all such changes and modifications as fall within the true spirit and scope of the invention.

100:IEEE 802.15.4網路 101:PANC 102、104:IEEE 802.15.4節點 103:IEEE 802.15.4無線鏈路 200~211:步驟 230:IEEE 802.15.4裝置 231:控制程式 232:計時器 233:CSMA/CA模式控制程式 234:標準CSMA/CA程式 235:可暫停CSMA/CA程式 236:記憶體 237:記憶體 238:收發器 239:RF天線 240:電源 403:其他裝置 402:標準IEEE 802.15.4回退裝置 401:可暫停IEEE 802.15.4 CSMA/CA回退裝置 500~517:步驟 802:其他裝置 801:IEEE 802.15.4回退裝置 NO_ACK、CHANNEL_ACCESS_FAILURE:狀態 T1~T9、aTurnaroundTime、aCcaTime、phyCcaDuration:時間 macMinBE、macMaxBE:值 macMaxCSMABackoffs、macMaxFrameRetries:閥值 100: IEEE 802.15.4 network 101: PANC 102, 104: IEEE 802.15.4 node 103: IEEE 802.15.4 wireless link 200~211: Steps 230: IEEE 802.15.4 device 231: Control program 232: Timer 233: CSMA/CA mode control program 234: Standard CSMA/CA program 235: Pausable CSMA/CA program 236: Memory 237: Memory 238: Transceiver 239: RF antenna 240: Power supply 403: Other devices 402: Standard IEEE 802.15.4 fallback device 401: Can suspend IEEE 802.15.4 CSMA/CA fallback device 500~517: Steps 802: Other devices 801: IEEE 802.15.4 fallback device NO_ACK, CHANNEL_ACCESS_FAILURE: Status T1~T9, aTurnaroundTime, aCcaTime, phyCcaDuration: Time macMinBE, macMaxBE: Value macMaxCSMABackoffs, macMaxFrameRetries: Threshold value

本揭露之實施例將搭配附圖進一步說明。所示的附圖不一定是按比例繪製,重點在於說明本揭露之實施例的原理。 第1圖是本發明某些實施例的IEEE 82.15.4網路的示意圖; 第2A圖描述了本發明的實施例的資料傳輸流程圖和回報上層的傳輸狀態; 第2B圖是本發明實施例的形成第1圖的網路的IEEE 802.15.4 CSMA/CA裝置的結構示意圖; 第3圖示出本發明的實施例的IEEE 802.15.4-2020中的標準CSMA/CA演算法 第4圖示出了本發明的實施例中標準IEEE 802.15.4 CSMA/CA演算法,相較可暫停IEEE 802.15.4 CSMA/CA演算法,可能導致更多的回退失敗。 第5A圖示出了本發明實施例中用於IEEE 802.15.4的CSMA/CA機制的流程圖。 第5B圖示出了本發明實施例中用於IEEE 802.15.4的可暫停CSMA/CA方法的流程圖; 第6圖示出了本發明實施例的IEEE 802.15.4中定義的單位回退週期的結構; 第7A圖示出了本發明實施例中在整個單元回退週期內執行主動CCA的範例; 第7B圖示出了本發明實施例中在部分單元回退週期內執行主動CCA的範例; 第8圖示出了本發明的實施例中在可暫停CSMA/CA機制中執行回退暫停的範例; 第9A圖示出了本發明中用於指示回退暫停的許可的訊框控制欄位的格式。 第9B圖示出了本發明實施例中所發明的關聯請求命令的能力資訊欄位;以及 第9B圖示出了本發明實施例中所發明的DSME關聯請求命令的能力資訊欄位。 The embodiments of the present disclosure will be further described with the accompanying drawings. The drawings shown are not necessarily drawn to scale, and the focus is on illustrating the principles of the embodiments of the present disclosure. FIG. 1 is a schematic diagram of an IEEE 82.15.4 network of certain embodiments of the present invention; FIG. 2A describes a data transmission flow chart of an embodiment of the present invention and reports the transmission status to the upper layer; FIG. 2B is a structural schematic diagram of an IEEE 802.15.4 CSMA/CA device forming the network of FIG. 1 of an embodiment of the present invention; FIG. 3 shows the standard CSMA/CA algorithm in IEEE 802.15.4-2020 of an embodiment of the present invention FIG. 4 shows the standard IEEE 802.15.4 CSMA/CA algorithm in an embodiment of the present invention, which can be relatively suspended, and may cause more fallback failures. Figure 5A shows a flow chart of the CSMA/CA mechanism used in IEEE 802.15.4 in an embodiment of the present invention. Figure 5B shows a flow chart of the suspendable CSMA/CA method for IEEE 802.15.4 in an embodiment of the present invention; Figure 6 shows the structure of the unit backoff period defined in IEEE 802.15.4 in an embodiment of the present invention; Figure 7A shows an example of performing active CCA in the entire unit backoff period in an embodiment of the present invention; Figure 7B shows an example of performing active CCA in a partial unit backoff period in an embodiment of the present invention; Figure 8 shows an example of performing backoff suspension in a suspendable CSMA/CA mechanism in an embodiment of the present invention; Figure 9A shows the format of the frame control field used to indicate the permission of backoff suspension in the present invention. Figure 9B shows the capability information field of the associated request command invented in the embodiment of the present invention; and Figure 9B shows the capability information field of the DSME associated request command invented in the embodiment of the present invention.

without

100:IEEE 802.15.4網路 100:IEEE 802.15.4 network

101:PANC 101:PANC

102、104:IEEE 802.15.4節點 102, 104: IEEE 802.15.4 nodes

103:IEEE 802.15.4無線鏈路 103:IEEE 802.15.4 wireless link

Claims (20)

一種電腦執行方法,用以在一IEEE 802.15.4網路中執行一可暫停衝突避免的載波感測多重存取(CSMA/CA)控制程式,其中該IEEE 802.15.4網路是由複數IEEE 802.15.4裝置組成,其中該電腦執行方法使該等IEEE 802.15.4裝置中的一者的一處理器執行之步驟包括: 自該IEEE 802.15.4網路的一網路管理器接收一關聯回應命令,以確定回退暫停的許可; 取得該關聯請求命令中一可暫停CSMA/CA欄位所包含的該IEEE 802.15.4裝置執行該回退暫停的意圖; 如果該回退暫停被許可且該IEEE 802.15.4裝置有意執行該回退暫停,則從一記憶體中選擇一可暫停CSMA/CA控制程式,其中該可暫停CSMA/CA控制程式執行以下步驟: 在每個單元回退週期內執行主動通道閒置評估(CCA); 當該IEEE 802.15.4網路的一通道被偵測為忙碌時,暫停一回退程序;以及 一旦偵測到該通道之狀態為閒置,恢復該回退程序; 當偵測到該通道之狀態為閒置時,傳輸資料訊框,或當偵測到該通道之狀態為忙碌時,增加一回退次數(NB);以及 確認該回退次數是否超過一macMaxCSMABackoffs; 當該回退次數超過該macMaxCSMABackoffs時,增加一重送次數(NR),並且當該重送次數超過一macMaxFrameRetries時,丟棄該資料訊框。 A computer-implemented method for executing a carrier sense multiple access with suspendable collision avoidance (CSMA/CA) control program in an IEEE 802.15.4 network, wherein the IEEE 802.15.4 network is composed of a plurality of IEEE 802.15.4 devices, wherein the computer-implemented method causes a processor of one of the IEEE 802.15.4 devices to execute the steps including: Receiving an association response command from a network manager of the IEEE 802.15.4 network to determine permission for a fallback pause; Obtaining the intention of the IEEE 802.15.4 device to execute the fallback pause contained in a suspendable CSMA/CA field in the association request command; If the fallback pause is permitted and the IEEE If the 802.15.4 device intentionally executes the backoff suspension, a suspendable CSMA/CA control program is selected from a memory, wherein the suspendable CSMA/CA control program executes the following steps: Perform active channel idle assessment (CCA) in each unit backoff cycle; When a channel of the IEEE 802.15.4 network is detected as busy, a backoff procedure is suspended; and Once the state of the channel is detected as idle, the backoff procedure is resumed; When the state of the channel is detected as idle, a data frame is transmitted, or when the state of the channel is detected as busy, a backoff number (NB) is increased; and Confirm whether the backoff number exceeds a macMaxCSMABackoffs; When the backoff count exceeds the macMaxCSMABackoffs, a retransmission count (NR) is added, and when the retransmission count exceeds the macMaxFrameRetries, the data frame is discarded. 如請求項1所述之電腦執行方法,其中如果該回退暫停未被許可,該IEEE 802.15.4裝置應用一標準CSMA/CA通道存取機制,其中如果該回退暫停被許可,該IEEE 802.15.4裝置應用一可暫停CSMA/CA通道存取機制。A computer-implemented method as described in claim 1, wherein if the backoff suspension is not permitted, the IEEE 802.15.4 device applies a standard CSMA/CA channel access mechanism, and wherein if the backoff suspension is permitted, the IEEE 802.15.4 device applies a suspendable CSMA/CA channel access mechanism. 如請求項1所述之電腦執行方法,其中該回退暫停的許可是由該網路管理器PANC基於一區域監管者、一應用要求、一網路效能、有意執行回退暫停的IEEE 802.15.4裝置的一數量或其組合來確定。The computer-implemented method of claim 1, wherein the permission for the backoff suspension is determined by the network manager PANC based on a regional regulator, an application requirement, a network performance, a number of IEEE 802.15.4 devices that intentionally implement the backoff suspension, or a combination thereof. 如請求項3所述之電腦執行方法,其中該網路管理器在網路建置過程中向該等IEEE 802.15.4裝置提供該回退暫停的許可,或該等IEEE 802.15.4裝置動態地向該網路管理器請求該回退的許可。The computer-implemented method of claim 3, wherein the network manager provides the IEEE 802.15.4 devices with the permission for fallback suspension during network establishment, or the IEEE 802.15.4 devices dynamically request the fallback permission from the network manager. 如請求項4所述之電腦執行方法,其中即便該回退暫停被許可,該等IEEE 802.15.4裝置選擇不執行該回退暫停。The computer-implemented method of claim 4, wherein the IEEE 802.15.4 devices choose not to perform the backoff suspend even if the backoff suspend is permitted. 如請求項1所述之電腦執行方法,其中執行該回退暫停的該IEEE 802.15.4裝置,在該每個單元回退週期內執行該主動通道閒置評估(CCA),並在偵測到通道忙碌時暫停回退。The computer-implemented method of claim 1, wherein the IEEE 802.15.4 device executing the backoff suspension performs the active channel idleness assessment (CCA) during the per-unit backoff cycle and suspends the backoff when a busy channel is detected. 如請求項6所述之電腦執行方法,其中執行可暫停CSMA/CA的IEEE 802.15.4裝置首先在[0, 2 BE-1]內抽取隨機的一單位回退週期數量(NUBP),然後在每個單位回退週期內執行該主動通道閒置評估(CCA),其中如果通道忙碌,則暫停該回退程序(即該單位回退週期數量(NUBP)不減少),其中如果通道閒置,則接續該回退程序,其中一旦該單位回退週期數量(NUBP)達到零,該回退程序完成。 A computer-implemented method as described in claim 6, wherein an IEEE 802.15.4 device that executes CSMA/CA that can be suspended first randomly extracts a unit backoff cycle number (NUBP) in [0, 2 BE -1], and then performs the active channel idle assessment (CCA) in each unit backoff cycle, wherein if the channel is busy, the backoff procedure is suspended (i.e., the unit backoff cycle number (NUBP) does not decrease), wherein if the channel is idle, the backoff procedure is continued, wherein once the unit backoff cycle number (NUBP) reaches zero, the backoff procedure is completed. 如請求項6所述之電腦執行方法,其中一旦該單位回退週期數量(NUBP)達到零,IEEE 802.15.4裝置在一CCA週期內執行標準通道閒置評估(CCA)。The computer-implemented method of claim 6, wherein once the number of unit backoff cycles (NUBP) reaches zero, the IEEE 802.15.4 device performs a standard channel idle assessment (CCA) within a CCA cycle. 如請求項8所述之電腦執行方法,其中如果通道閒置評估(CCA)回報通道閒置,則該IEEE 802.15.4裝置進行資料傳輸,其中如果該通道閒置評估(CCA)回報通道忙碌,則該CSMA/CA演算法回報回退失敗,並且將該回退次數加1。A computer-implemented method as described in claim 8, wherein if the channel idle assessment (CCA) reports that the channel is idle, the IEEE 802.15.4 device performs data transmission, wherein if the channel idle assessment (CCA) reports that the channel is busy, the CSMA/CA algorithm reports a back-off failure and increases the back-off count by 1. 如請求項9所述之電腦執行方法,其中如果該回退次數(NB)超過預定義的該macMaxCSMABackoffs,該CSMA/CA演算法回報通道存取失敗,其中如果該CSMA/CA演算法回報通道存取失敗,則該重送次數被加1。A computer-implemented method as described in claim 9, wherein if the backoff number (NB) exceeds the predetermined macMaxCSMABackoffs, the CSMA/CA algorithm reports a channel access failure, wherein if the CSMA/CA algorithm reports a channel access failure, the retransmission number is increased by 1. 如請求項10所述之電腦執行方法,其中如果該重送次數超過macMaxFrameRetries,則IEEE 802.15.4之一媒體存取控制技術(MAC)丟棄資料。The computer-implemented method of claim 10, wherein if the number of retransmissions exceeds macMaxFrameRetries, a medium access control technology (MAC) of IEEE 802.15.4 discards data. 如請求項6所述之電腦執行方法,其中該IEEE 802.15.4裝置可以在整個該單元回退週期或部分該單元回退週期內執行該主動通道閒置評估(CCA)。The computer-implemented method of claim 6, wherein the IEEE 802.15.4 device can perform the active channel idle assessment (CCA) during the entire unit backoff period or a portion of the unit backoff period. 一種網路裝置,用以在一IEEE 802.15.4網路中執行可暫停衝突避免的載波感測多重存取(CSMA/CA),包括: 一處理器;以及 一記憶器,被配置以儲存一CSMA/CA模式控制程式,該CSMA/CA模式控制程式使該處理器執行以下步驟: 自該IEEE 802.15.4網路的一網路管理器接收一關聯回應命令,以確定回退暫停的許可; 取得該關聯請求命令中一可暫停CSMA/CA欄位所包含的該IEEE 802.15.4裝置執行該回退暫停的意圖; 如果該回退暫停被許可且該IEEE 802.15.4裝置有意執行該回退暫停,則從該記憶體中選擇一可暫停CSMA/CA控制程式,其中該可暫停CSMA/CA控制程式執行以下步驟: 在每個單元回退週期內執行主動通道閒置評估(CCA); 當該IEEE 802.15.4網路的一通道被偵測為忙碌時,暫停一回退程序;以及 一旦偵測到該通道之狀態為閒置,恢復該回退程序;以及 當偵測到該通道之狀態為閒置時,傳輸一資料訊框,或當偵測到該通道之狀態為忙碌時,增加一回退次數(NB); 確認該回退次數(NB)是否超過一macMaxCSMABackoffs; 當該回退次數超過該macMaxCSMABackoffs時,增加一重送次數(NR),並且當該重送次數超過一macMaxFrameRetries時,丟棄該資料訊框。 A network device for performing carrier sense multiple access with suspendable collision avoidance (CSMA/CA) in an IEEE 802.15.4 network, comprising: a processor; and a memory configured to store a CSMA/CA mode control program, the CSMA/CA mode control program causing the processor to perform the following steps: receiving an association response command from a network manager of the IEEE 802.15.4 network to determine permission for a fallback pause; obtaining the IEEE 802.15.4 device's intention to perform the fallback pause contained in a suspendable CSMA/CA field in the association request command; if the fallback pause is permitted and the IEEE If the 802.15.4 device intentionally executes the backoff suspension, a suspendable CSMA/CA control program is selected from the memory, wherein the suspendable CSMA/CA control program executes the following steps: Perform active channel idle assessment (CCA) in each unit backoff cycle; When a channel of the IEEE 802.15.4 network is detected as busy, a backoff procedure is suspended; and Once the state of the channel is detected as idle, the backoff procedure is resumed; and When the state of the channel is detected as idle, a data frame is transmitted, or when the state of the channel is detected as busy, a backoff number (NB) is increased; Confirm whether the backoff number (NB) exceeds a macMaxCSMABackoffs; When the backoff count exceeds the macMaxCSMABackoffs, a retransmission count (NR) is added, and when the retransmission count exceeds the macMaxFrameRetries, the data frame is discarded. 如請求項13所述之網路裝置,其中如果該回退暫停未被許可,該網路裝置應用一標準CSMA/CA通道存取機制,其中如果該回退暫停被許可,該網路裝置應用一可暫停CSMA/CA通道存取機制。A network device as described in claim 13, wherein if the fallback suspension is not allowed, the network device applies a standard CSMA/CA channel access mechanism, and wherein if the fallback suspension is allowed, the network device applies a suspendable CSMA/CA channel access mechanism. 如請求項13所述之網路裝置,其中該回退暫停的許可是由該網路管理器、一區域監管者、一應用開發者或其組合來確定。The network device of claim 13, wherein the permission for the fallback suspension is determined by the network manager, a regional administrator, an application developer, or a combination thereof. 如請求項15所述之網路裝置,其中該網路管理器在網路建置過程中向網路裝置提供該回退暫停的許可,或該IEEE 802.15.4網路中的網路裝置動態地向該網路管理器請求回退的許可。The network device as claimed in claim 15, wherein the network manager provides the network device with the permission for the fallback suspension during the network establishment process, or the network device in the IEEE 802.15.4 network dynamically requests the network manager for the permission for the fallback. 如請求項16所述之網路裝置,其中即便回退暫停被許可,其他的該等網路裝置選擇不執行該回退暫停。A network device as claimed in claim 16, wherein even if fallback suspension is permitted, other of the network devices choose not to perform the fallback suspension. 如請求項13所述之網路裝置,其中該網路裝置執行該回退暫停,以在該每個單元回退週期內執行該主動通道閒置評估(CCA),並在偵測到通道忙碌時暫停該回退程序。A network device as described in claim 13, wherein the network device performs the backoff suspension to perform the active channel idleness assessment (CCA) during the each unit backoff cycle and suspend the backoff process when a channel busy is detected. 如請求項18所述之網路裝置,其中該網路裝置首先執行一可暫停CSMA/CA,並且在[0, 2 BE-1]內抽取隨機的一單位回退週期數量(NUBP),然後在該每個單位回退週期內執行該主動通道閒置評估(CCA),其中如果通道忙碌,則暫停該回退程序(即該單位回退週期數量(NUBP)不減少),其中如果通道閒置,則接續該回退程序,其中一旦該單位回退週期數量(NUBP)達到零,回退程序完成。 A network device as described in claim 18, wherein the network device first executes a suspendable CSMA/CA and randomly extracts a unit backoff cycle number (NUBP) in [0, 2 BE -1], and then executes the active channel idle assessment (CCA) in each unit backoff cycle, wherein if the channel is busy, the backoff procedure is suspended (i.e., the unit backoff cycle number (NUBP) does not decrease), wherein if the channel is idle, the backoff procedure is continued, wherein once the unit backoff cycle number (NUBP) reaches zero, the backoff procedure is completed. 如請求項18所述之網路裝置,其中一旦該單位回退週期數量(NUBP)達到零,該IEEE 802.15.4裝置在一CCA週期內執行標準通道閒置評估(CCA)。The network device of claim 18, wherein once the number of unit backoff periods (NUBP) reaches zero, the IEEE 802.15.4 device performs a standard channel idle assessment (CCA) within a CCA period.
TW113115487A 2023-05-12 2024-04-25 Computer-executed method and network device TW202450357A (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US202363465936P 2023-05-12 2023-05-12
US63/465,936 2023-05-12
US18/474,291 US20240381424A1 (en) 2021-08-24 2023-09-26 Suspendable CSMA/CA for IEEE 802.15.4 System to Reduce Packet Discard Caused by Backoff Failure
US18/474,291 2023-09-26

Publications (1)

Publication Number Publication Date
TW202450357A true TW202450357A (en) 2024-12-16

Family

ID=94735409

Family Applications (2)

Application Number Title Priority Date Filing Date
TW113115486A TW202450358A (en) 2023-05-12 2024-04-25 Computer-executed method and network device
TW113115487A TW202450357A (en) 2023-05-12 2024-04-25 Computer-executed method and network device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW113115486A TW202450358A (en) 2023-05-12 2024-04-25 Computer-executed method and network device

Country Status (1)

Country Link
TW (2) TW202450358A (en)

Also Published As

Publication number Publication date
TW202450358A (en) 2024-12-16

Similar Documents

Publication Publication Date Title
CN114208388B (en) Multi-link Communication in Wireless Networks
US11658843B2 (en) System and method for full-duplex media access control using request-to-send signaling
US9560594B2 (en) Access point response to PS-Poll
JP7271700B2 (en) COMMUNICATION METHOD, APPARATUS AND COMPUTER PROGRAM
CN115413418A (en) Method and apparatus for updating parameters in a communication system supporting multiple links
CN115943679A (en) Method and apparatus for power saving in a communication system supporting multiple links
US10028306B2 (en) Method and device for data communication in a network
JP6861812B2 (en) How to send awakening packets, how to send the first frame after node awakening, devices and devices
CN104703288A (en) Transmission method based on quasi-random back-off strategy in wireless distributed network
WO2020063683A1 (en) Methods and communication device for sending and receiving random access preamble
CN115669195A (en) Method and apparatus for communication based on low power operation in a communication system supporting multiple links
WO2017128661A1 (en) Method for data transmission in wireless local area network, access point and station
WO2020172982A1 (en) Data transmission method and device for multi-radio frequency system, storage medium and terminal
WO2018107370A1 (en) Point to multi-point channel allocation method, apparatus, and system
US12213177B2 (en) Suspendable CSMA/CA for IEEE 802.15.4 system to reduce packet discard caused by backoff failure
TW202450357A (en) Computer-executed method and network device
JP2004048539A (en) Radio communication system, radio base station, communication method and its program
WO2024237352A1 (en) Suspendable csma/ca for ieee 802.15.4 system to reduce packet discard caused by backoff failure
WO2024237353A1 (en) Suspendable csma/ca for ieee 802.15.4 system to reduce packet discard caused by backoff failure
US20240340956A1 (en) Procedures for preemption in next generation wi-fi networks
EP4412378A1 (en) Channel access method for rapid transmission of data in communication system
KR20230116723A (en) Method and apparatus for low-latency communication in wireless local area network
KR20230082592A (en) Method and apparatus for recovering transmission error in communication system
CN117378276A (en) Method and apparatus for direct communication in wireless LAN