Channel access method and device, equipment, storage medium and product
By obtaining local node situation information and sending prompt frames after determining the waiting and backing off periods, the problem of high collision rates when nodes access channels in mobile ad hoc networks is solved, and channel utilization and network performance are improved.
Patent Information
- Application Number
- CN202410779349.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-06
AI Technical Summary
In mobile ad hoc networks, the collision rate when nodes access the channel is too high, resulting in a decrease in channel utilization. The existing fixed allocation TDMA protocol performs poorly in large-scale networks, and the dynamic allocation protocol has large control overhead and complex implementation. , low efficiency.
By obtaining local node situation information, the waiting period and backoff period before accessing the channel are determined, and a prompt frame is sent after the preset timer times out, and data is sent and received after receiving the reply frame from the target node to avoid node collision.
It effectively reduces the collision rate when nodes access the channel, improves channel utilization, and enhances network performance.
Smart Images

Figure CN118612882A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a channel access method, apparatus, device, storage medium and computer program product. Background Art
[0002] Currently, the most commonly used MAC layer channel access protocols are competitive protocols represented by CSMA / CA and distribution protocols represented by TDMA. As the number of network nodes increases, the mutual interference between nodes increases, and the number of transmission collisions increases, resulting in a lot of time wasted in the backoff process. There are problems such as packet congestion, uncontrollable delay and bandwidth allocation, and weak support capabilities for time-sensitive services.
[0003] In a typical fixed allocation TDMA protocol, each node accesses the channel in a pre-allocated fixed time slot, and there is no problem of node collision. However, due to the decentralized nature of the Mobile Ad Hoc Network (MANET) and its latency requirements, the fixed allocation TDMA protocol performs poorly in large-scale network systems. The dynamic allocation protocol has large control overhead, high implementation complexity, and low efficiency, resulting in channel performance degradation caused by excessive collision rate during node access to the channel.
[0004] Therefore, how to reduce the collision rate of each node when accessing the channel to improve channel utilization and enhance network performance is a problem that needs to be solved urgently.
[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of the present application is to provide a channel access method, device, equipment, storage medium and computer program product, aiming to solve the technical problem in the related technology that nodes are accessed to the channel through dynamic allocation type and solid allocation type protocols, resulting in a decrease in channel utilization due to excessive collision rate during the node access channel process.
[0007] To achieve the above object, the present application proposes a channel access method, which is applied to a first network node. The channel access method includes:
[0008] When a data packet needs to be sent to a target node in a next decision cycle, obtaining local node situation information corresponding to the first network node;
[0009] Based on the local node situation information, determining a waiting period before accessing the channel, and randomly selecting a backoff period before transmitting data;
[0010] When it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, sending a prompt frame to the target node;
[0011] After receiving the reply frame from the target node based on the prompt frame feedback, access the data transceiver channel and send a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received data packets sent by other nodes in the current state.
[0012] In one embodiment, the step of obtaining local node situation information corresponding to the first network node includes:
[0013] After completing time synchronization with surrounding nodes, local node situation information centered on the first network node is obtained.
[0014] In one embodiment, the preset timer includes a preset waiting timer and a preset backoff timer. When it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, before the step of sending the prompt frame to the target node, it also includes:
[0015] Monitoring a first channel event within a first time period, where the first time period is a time period corresponding to a preset waiting timer;
[0016] If the first channel event is that the channel state of the data transceiver channel is busy or the preset waiting timer has not timed out, then the preset waiting timer is stopped and updated, and a passive receiving period is entered;
[0017] If the first channel event is a timeout of a preset waiting timer, then entering a backoff period;
[0018] It is determined whether a timer period corresponding to a preset backoff timer exceeds the backoff period.
[0019] In one embodiment, when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, the step of sending a prompt frame to the target node includes:
[0020] Monitoring a second channel event within a backoff period, wherein the backoff period is a period corresponding to a preset backoff timer;
[0021] If the second channel event is that the channel state of the data transceiving channel is busy, then the preset backoff timer is stopped and the data transceiving channel is not accessed, and a passive receiving period is entered;
[0022] If the second channel event is the timeout of a preset backoff timer, it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, and a prompt frame is sent to the target node.
[0023] In one embodiment, before the step of accessing a data transceiver channel and sending a data packet to the target node through the data transceiver channel, the step further includes:
[0024] When no reply frame fed back by the target node is received, the passive receiving phase is entered.
[0025] In one embodiment, after the step of sending the data packet to the target node through the data transceiver channel, the following steps are included:
[0026] When it is determined that the passive receiving stage is in progress, monitoring a third channel event;
[0027] If the third channel event is receiving a first prompt frame, and the target node of the first prompt frame is the first network node, and no prompt frame or reply frame is received in the current decision cycle, then feeding back a first reply frame to the node corresponding to the first prompt frame;
[0028] If the third channel event is receiving a first prompt frame, and the target node of the first prompt frame is not the first network node or a prompt frame or a reply frame has been received in the current decision cycle, then ignoring the third channel event;
[0029] If the third channel event is when a data packet is received, and the destination address of the data packet is the current node, and a reply frame has been sent, then a corresponding ACK frame is replied, otherwise the third channel event is ignored.
[0030] In addition, to achieve the above purpose, the present application also proposes a channel access device, the channel access device comprising:
[0031] An acquisition module, used to acquire the local node situation information corresponding to the first network node when a data packet needs to be sent to a target node in the next decision cycle;
[0032] A first determination module is used to determine a waiting period before accessing a channel based on the local node situation information, and randomly select a backoff period before transmitting data;
[0033] A second determining module is used to send a prompt frame to the target node when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period;
[0034] The first sending module is used to access a data transceiver channel after receiving a reply frame from the target node based on the prompt frame feedback, and send a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received data packets sent by other nodes in the current state.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a channel access device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the channel access method described above.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the channel access method described above are implemented.
[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the channel access method described above are implemented.
[0038] The present application proposes a channel access method, apparatus, device, storage medium and computer program product. The present application obtains the local node status information corresponding to the first network node when a data packet needs to be sent to the target node in the next decision cycle, determines the waiting period before accessing the channel based on the local node status information, and randomly selects the backoff period before transmitting data; sends a prompt frame to the target node when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period; accesses the data transceiver channel after receiving the reply frame fed back by the target node, and sends a data packet to the target node through the data transceiver channel, sends a prompt frame to the target node, and receives the reply frame fed back by the target node. After the target node feeds back the reply frame, it indicates that in the current state, the target node has not received the data packet sent by other nodes. At this time, the first network node can access the channel and send data to the target node to avoid node collision, thereby enhancing the channel utilization rate of the accessed channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the channel access method of the present application;
[0042] Figure 2 A schematic diagram of the data transmission process in a time slot involved in the channel access method of the present application;
[0043] Figure 3 The unit waiting time TW involved in the channel access method of this application UNIT Schematic diagram;
[0044] Figure 4 This is a schematic diagram of the module structure of the channel access device according to an embodiment of the present application;
[0045] Figure 5 A schematic diagram of the device structure of the hardware operating environment involved in the channel access method in the embodiment of the present application;
[0046] Figure 6 A schematic diagram of the RTS frame structure involved in the channel access method in an embodiment of the present application;
[0047] Figure 7 A schematic diagram of the CTS frame structure involved in the channel access method in an embodiment of the present application;
[0048] Figure 8 A schematic diagram of the frame structure and time slot relationship involved in the channel access method in the embodiment of the present application;
[0049] Fig. 9 A schematic diagram of a two-hop network topology structure of a target node involved in the channel access method in an embodiment of the present application;
[0050] Fig.10 This is a schematic diagram of a 100m×100m network topology with a communication distance of 15m and 200 nodes involved in the channel access method in an embodiment of the present application;
[0051] Fig.11 This is a comparison chart of the collision rate of the CSMA / CA mechanism of RTS / CTS involved in the channel access method in the embodiment of the present application;
[0052] Fig.12 This is a comparison chart of the CSMA / CA mechanism multiplexing rates of RTS / CTS involved in the channel access method in the embodiment of the present application.
[0053] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0055] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0056] The main solutions of the embodiments of this application are:
[0057] When a data packet needs to be sent to a target node in a next decision cycle, obtaining local node situation information corresponding to the first network node;
[0058] Based on the local node situation information, determining a waiting period before accessing the channel, and randomly selecting a backoff period before transmitting data;
[0059] When it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, sending a prompt frame to the target node;
[0060] After receiving the reply frame from the target node based on the prompt frame feedback, access the data transceiver channel and send a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received data packets sent by other nodes in the current state.
[0061] In this embodiment, for ease of description, the following description is made with the channel access device as the execution subject.
[0062] At present, the most commonly used MAC layer channel access protocols are competitive protocols represented by CSMA / CA (Carrier Sense Multiple Access with Collision Avoid) and allocation protocols represented by TDMA (Time Division Multiple Access). Based on the CSMA / CA protocol as the access method, the IEEE802.11DCF protocol introduces the RTS / CTS mechanism to further solve the hidden terminal problem. This mechanism has good robustness in scenarios with random network topology and traffic volume, but its free and flexible characteristics and backoff mechanism also bring obvious defects, that is, as the number of network nodes increases, the mutual interference between nodes increases, and the number of transmission collisions increases, resulting in a lot of time wasted in the backoff process, and there are problems such as packet congestion, uncontrollable delay and bandwidth allocation, and weak support for time-sensitive services. The TDMA protocol is a MAC access method based on time synchronization, which can be divided into fixed allocation and dynamic allocation protocols. In a typical fixed allocation TDMA protocol, each node accesses the channel in a pre-allocated fixed time slot, and there is no problem of node collision. However, due to the decentralized nature of MANET networks and their latency requirements, fixed allocation TDMA protocols perform poorly in large-scale network systems. Dynamic allocation TDMA protocols, represented by the FPRP protocol, dynamically allocate time slots through a five-step reservation process, solving the problems of poor scalability and low channel utilization of fixed allocation protocols, but have large control overhead, high implementation complexity, and low efficiency.
[0063] The present application provides a channel access method, apparatus, device, storage medium and computer program product, which sends a prompt frame to a target node and receives a reply frame fed back by the target node. After the target node feeds back the reply frame, it indicates that in the current state, the target node has not received data packets sent by other nodes. At this time, the first network node can access the channel and send data to the target node to avoid node collision, thereby enhancing the channel utilization rate of the accessed channel.
[0064] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a channel access device, etc. The following takes the channel access device as an example to illustrate this embodiment and the following embodiments.
[0065] Based on this, the embodiment of the present application provides a channel access method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the channel access method of the present application.
[0066] In this embodiment, the channel access method includes steps S10 to S40:
[0067] Step S10, when a data packet needs to be sent to a target node in the next decision cycle, obtaining local node situation information corresponding to the first network node;
[0068] It should be noted that one decision cycle is one time slot. In order to avoid node collision when each node accesses the channel, only one network node can be accessed in one time slot.
[0069] Specifically, after the node is powered on, it completes the network access process through time synchronization through the time synchronization module, that is, each node after joining the network has the same time slot start and time slot period, and each node will complete the MAC layer data reception and transmission based on this time slot as the time reference. After joining the network, the node first enters the situation acquisition stage. Each node collects the situation information of nodes within N hops centered on itself through the local situation maintenance module. The local situation maintenance module is responsible for processing the situation information broadcast by other nodes and maintaining the latest network local situation table; it is also responsible for periodically triggering nodes to broadcast local situation information. Among them, the situation information includes but is not limited to network node identification, the number of nodes waiting to send data, and the link status information between nodes. The local situation range N is a unified configuration item for all nodes in the network, and N≥2.
[0070] When the node is connected to the network and the changes in the node identification information in the local situation tend to be stable, the node will enter the business information sending and receiving stage. In the business information sending and receiving stage, the node MAC layer can receive and process the sending service request from the upper layer, the data forwarding request of this layer, and the data type frame receiving request from the bottom layer. In the above-mentioned business information sending and receiving stage, the sending business data of the upper layer and the forwarding data of this layer are encapsulated into the data type frame of the MAC layer. When sending the data type frame, the node will follow the consensus access mechanism based on local situation information proposed by the present invention.
[0071] In a feasible implementation, step S10 may include:
[0072] After completing time synchronization with surrounding nodes, local node situation information centered on the first network node is obtained.
[0073] It should be noted that during the network access phase, all nodes in the network have completed time synchronization, and the channel time resources are uniformly divided into resource blocks in time slots. Each node is allowed to trigger channel access at most once in each time slot, and a complete channel access and transmission process is limited to being completed within the current time slot.
[0074] Step S20, determining a waiting period before accessing a channel based on the local node situation information, and randomly selecting a backoff period before transmitting data;
[0075] Step S30, when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, sending a prompt frame to the target node;
[0076] It should be noted that the local node situation information may be a network topology diagram of each network node, for details, refer to Fig. 9 , taking node 1 as an example, the adjacent nodes are nodes 3 / 4 / 5, where node 3 / 4 / 5 is the first adjacent node.
[0077] It should be noted that the time period before a network node accesses the channel is divided into a waiting period and a backoff period. The waiting period is determined based on the local node status information, and the backoff period is determined by selecting a pseudo-random function. Since the local node status information can be a network topology diagram of each network node, the local node status information can be used to determine how many other network nodes exist around the current node. The relationship between other adjacent network nodes and the current node can be adjacent one-hop or two-hop nodes, without specific limitation.
[0078] Specifically, the waiting timer length of node i is set to:
[0079] TW i =n i ×TW UNIT ,
[0080] Among them, ni is an ordered set The number of nodes in front of node i in TW UNIT =T backoff_max +T RTS +Δt, such as Figure 3 As shown in the figure, Δt is the time between the end of RTS frame transmission and the detection of channel busyness again (starting to receive CTS frame), which is a determined value depending on actual engineering factors such as propagation delay and receiver processing speed.
[0081] It should be noted that the prompt frame can be an RTS frame. The RTS frame structure is defined as follows: Figure 6 As shown, the "frame type" field is the same as that specified in the IEEE 802.11n protocol; the "RA" field represents the sending node address; the "TA" field represents the receiving node address; and the "FCS" field is the CRC check bit.
[0082] Step S40, after receiving the reply frame fed back by the target node based on the prompt frame, accessing a data transceiver channel, and sending a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received a data packet sent by other nodes in the current state;
[0083] It should be noted that within this decision cycle, a complete channel access and data type frame transmission process of a node will go through 6 periods: waiting period, backoff period, RTS transmission period, CTS transmission period, DATA transmission period, ACK transmission period, such as Figure 2 As shown in Figure 1. Among them, the waiting period and the backoff period are variable durations, and the other periods are fixed durations. The maximum waiting period duration is defined as TW max , the maximum backoff period duration is defined as T backoff-max , the RTS transmission duration is T RTS , CTS transmission duration is T CTS , DATA transmission time is T DATA , ACK transmission time is T ACK , where T RTS , T DATA The duration depends on the sending duration of the RTS frame and the data type frame, T CTS The duration depends on the receiving CTS frame timeout timer setting, T ACK The duration depends on the receive ACK frame timeout timer setting.
[0084] Assume that node i receives the RTS frame from neighbor node j in time slot n-1 and sets the waiting timer length TW i .
[0085] The set of one-hop neighbor nodes of node j is defined as follows:
[0086] S j ={node k|node k is a one-hop neighbor of node j}.
[0087] According to the unified rules set by the entire network, node i has a j All elements in are sorted according to certain rules, and nodes with identification numbers greater than j are sorted in ascending order. In the first half of the sequence, nodes with identification numbers less than j are sorted in order of arrival from smallest to smallest. The second half of the sorted ordered set is represented as follows:
[0088]
[0089] The waiting timer length of node i is set to:
[0090] TW i =ni ×TW UNIT ,
[0091] Among them, ni is an ordered set The number of nodes in front of node i in TW UNIT =T backoff_max +T RTS +Δt, such as Figure 3 As shown in the figure, Δt is the time between the end of RTS frame transmission and the detection of channel busyness again (starting to receive CTS frame), which is a determined value depending on actual engineering factors such as propagation delay and receiver processing speed.
[0092] It should be noted that the reply frame may be a CTS frame, the period for receiving data frames is the CTS transmission period, the current first network node waits for the CTS frame returned by the receiver, and enters the CTS frame transmission period after the RTS frame is sent.
[0093] Receive the data frame returned by the first node based on the prompt frame, and control the target node to perform data transmission.
[0094] It should be noted that the period of receiving data frames is the CTS transmission period. Taking the first network node as node i as an example, node i waits for the CTS frame returned by the receiver. The CTS frame structure is defined as follows: Figure 7 As shown in the figure, the field definitions are the same as those in the RTS frame. If node i successfully receives the CTS frame sent by the receiver, it enters the DATA transmission period. If the CTS frame is not successfully received during the CTS transmission period, node i enters the passive reception period.
[0095] After that, it is the DATA transmission period, and node i sends the data type frame. After the transmission is completed, node i enters the ACK transmission period.
[0096] In a feasible implementation manner, before the step of accessing a data transceiver channel and sending a data packet to the target node through the data transceiver channel, the step further includes:
[0097] When no reply frame fed back by the target node is received, the passive receiving phase is entered.
[0098] During the ACK transmission period, node i waits for the ACK frame returned by the receiver. The ACK frame structure definition is the same as the field definition in the CTS frame. If node i successfully receives the ACK frame sent by the receiver, node i immediately enters the passive reception period. If the ACK frame is not successfully received during the ACK transmission period, node i still enters the passive reception period.
[0099] In a feasible implementation manner, after the step of sending the data packet to the target node through the data transceiver channel, the following steps are included:
[0100] When it is determined that the passive receiving stage is in progress, monitoring a third channel event;
[0101] If the third channel event is receiving a first prompt frame, and the target node of the first prompt frame is the first network node, and no prompt frame or reply frame is received in the current decision cycle, then feeding back a first reply frame to the node corresponding to the first prompt frame;
[0102] If the third channel event is receiving a first prompt frame, and the target node of the first prompt frame is not the first network node or a prompt frame or a reply frame has been received in the current decision cycle, then ignoring the third channel event;
[0103] If the third channel event is when a data packet is received, and the destination address of the data packet is the current node, and a reply frame has been sent, then a corresponding ACK frame is replied, otherwise the third channel event is ignored.
[0104] During the passive reception period, the physical layer performs carrier monitoring and signal reception. The MAC layer processes three third channel events, including: event a, receiving an RTS frame; event b, receiving a CTS frame; and event c, receiving a data type frame.
[0105] When the above three channel events occur, the MAC layer handles them as follows:
[0106] When event a occurs, the "TA" field of the RTS frame is the current node and no RTS frame or CTS frame has been received in this time slot, the node replies with a corresponding CTS frame.
[0107] When event a occurs, if the "TA" field of the RTS frame is not the current node or an RTS frame or CTS frame has been received in this time slot, this event will be ignored.
[0108] Event b occurs and this event is ignored.
[0109] When event c occurs, if the above processing has been performed in this time slot and the destination address of the data type frame is the current node, the node replies with a corresponding ACK frame; otherwise, the third channel event will be ignored. When the above events occur, they will be processed according to the priority of a, b, and c. When more than two events occur at the same time, only the event with the highest priority will be processed.
[0110] The passive receiving period will last until the end of this time slot. If the node in this time slot has received an RTS frame, the next time frame will start from time synchronization. If the node in this time slot has not received an RTS frame, the next time frame will start from the above-mentioned monitoring of the channel access status of the current node.
[0111] The present application proposes a channel access method, apparatus, device, storage medium and computer program product. The present application obtains the local node status information corresponding to the first network node when a data packet needs to be sent to the target node in the next decision cycle, determines the waiting period before accessing the channel based on the local node status information, and randomly selects the backoff period before transmitting data; sends a prompt frame to the target node when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period; accesses the data transceiver channel after receiving the reply frame fed back by the target node, and sends a data packet to the target node through the data transceiver channel, sends a prompt frame to the target node, and receives the reply frame fed back by the target node. After the target node feeds back the reply frame, it indicates that in the current state, the target node has not received the data packet sent by other nodes. At this time, the first network node can access the channel and send data to the target node to avoid node collision, thereby enhancing the channel utilization rate of the accessed channel.
[0112] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated later. On this basis, before step S30, the channel access method further includes steps S21 to S24:
[0113] Step S21, monitoring a first channel event within a first time period, where the first time period is a time period corresponding to a preset waiting timer;
[0114] It should be noted that, taking the first network node as node i as an example, node i starts a preset waiting timer TW at the start time of time slot n. i , and enter the waiting period at the same time, and the first time period is the duration of the waiting period.
[0115] During the waiting period, the physical layer performs carrier monitoring and signal reception. The MAC layer only processes three channel events, namely the first channel event: event a, the carrier monitors that the channel changes from idle to busy; event b, the preset waiting timer times out; event c, the preset waiting timer does not time out, and TW after the start of this time slot max Time to arrive.
[0116] When the above three events occur, the node handles them as follows:
[0117] Event a occurs, and the occurrence time is TW after the start of this time slot i At this moment, node i immediately stops the preset waiting timer TW i , and update TW iAt the same time, the node is restricted from accessing the channel in this time slot, that is, it cannot trigger the sending of RTS frames. After that, node i enters the passive receiving period.
[0118] Among them, TW i Updated to:
[0119]
[0120] When event b occurs, node i enters the backoff period.
[0121] When event c occurs, node i immediately stops the preset waiting timer TW i , and update TW i The value of TW is set. At the same time, the node is restricted from accessing the channel in this time slot, that is, it cannot trigger the sending of RTS frames. After that, node i enters the passive receiving period. i Updated to:
[0122] TW i =TW i -TW max ,
[0123] Among them, the parameter TW max For TW UNIT The multiple is uniformly configured for the entire network.
[0124] If two or more events occur at the same time, they will be processed in the order of priority: event a, event b, event c.
[0125] Step S22, if the first channel event is that the channel state of the data transceiver channel is busy or the preset waiting timer has not timed out, then stop and update the preset waiting timer, and enter the passive receiving period;
[0126] It should be noted that the preset waiting timer TW i When it is not in the timeout state, node i immediately stops the preset waiting timer TW i , and update TW i The value of TW is set. At the same time, the node is restricted from accessing the channel in this time slot, that is, it cannot trigger the sending of RTS frames. After that, node i enters the passive receiving period. i Updated to:
[0127] TW i =TW i -TW max ,
[0128] Among them, the parameter TW max For TW UNIT The multiple is uniformly configured for the entire network.
[0129] It should be noted that the usage status refers to whether the channel is busy or idle. When the channel is busy, it means that a network node has accessed the channel in the current time slot, and the target node will not be connected to the channel.
[0130] Step S23, if the first channel event is a timeout of a preset waiting timer, then entering a backoff period;
[0131] Step S24, determining whether the timer period corresponding to the preset backoff timer exceeds the backoff period.
[0132] It should be noted that determining whether the preset waiting timer is in a timeout state is event b, and when event b occurs, the target node enters the backoff period, and then enters the next determination process to determine whether the timer period corresponding to the preset backoff timer exceeds the backoff period.
[0133] In a feasible implementation manner, when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, the step S30 of sending a prompt frame to the target node includes:
[0134] Step S31, monitoring a second channel event within a backoff period, wherein the backoff period is a period corresponding to a preset backoff timer;
[0135] It should be noted that the current node restarts the backoff timer T backoff If the timer reaches 0, reset it immediately. backoff Set to:
[0136] T backoff =CW×aSlotTime,
[0137] Here, aSlotTime is the same as the PHY parameter definition in the IEEE 802.11n protocol, with a value of 9us, and CW is from the interval [0, CW max ] is a pseudo-random integer selected from a uniform distribution on , where CW max With T backoff-max Satisfies the following relationship:
[0138] T backoff_max =CW max ×aSlotTime
[0139] At the same time, update the waiting timer length TW of node i i for:
[0140] TW i =m i ×TW UNIT ,
[0141] Where mi is the number of one-hop neighbor nodes of node i.
[0142] Step S32, if the second channel event is that the channel state of the data transceiver channel is busy, then stop the preset backoff timer and do not access the data transceiver channel, and enter the passive receiving period;
[0143] Step S33: if the second channel event is the timeout of the preset backoff timer, it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, and a prompt frame is sent to the target node.
[0144] It should be noted that the maximum duration of the backoff period is T backoff During the backoff period, the physical layer performs carrier monitoring and signal reception. The MAC layer only handles two second channel events: event a, carrier monitoring detects that the channel changes from idle to busy; event b, backoff timer times out.
[0145] When the above two events occur, the node handles them as follows:
[0146] When event b occurs, node i enters the RTS transmission period.
[0147] If event a and event b occur at the same time, then event a will be processed.
[0148] After determining that the preset conditions are met, the RTS transmission period begins, the interface transmits a prompt frame, and node i sends an RTS frame. The RTS frame structure is defined as follows: Figure 6 As shown, the "frame type" field is the same as that specified in the IEEE 802.11n protocol; the "RA" field represents the sending node address; the "TA" field represents the receiving node address; and the "FCS" field is the CRC check bit.
[0149] In this embodiment, a corresponding optimal processing mode is performed on the node according to different events in which the network node is located, so as to avoid the node occupying the channel for too long or reduce the number of node collisions, so as to improve the channel performance.
[0150] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the channel access method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0151] This application also provides another implementation method, which is as follows:
[0152] Step 1: After each node is powered on, it enters the network access phase. During the network access phase, the nodes complete time synchronization to ensure that all nodes in the network have a unified time frame start and time frame period. In each time frame, there is a fixed information period for nodes to send and receive data type frames, and the rest of the time periods are not limited, such as Figure 8 As shown. The starting transmission time and transmission duration of the information period in each time frame are the same, and the starting transmission time and transmission duration are set the same in all network nodes. The specific parameter settings are not limited here. The information period is divided into several equal-length time slots, and the division parameters are not limited.
[0153] Step 2: Taking node 1 as an example, after node 1 completes time synchronization, it enters the situation acquisition phase. Node 1 collects N-hop node situation information centered on itself through the local situation maintenance module. The local situation maintenance module is responsible for broadcasting, receiving, storing and updating local situation information. The situation information includes but is not limited to the network node identification.
[0154] Step 3: After the node identification information changes in the local situation tend to be stable, node 1 will enter the business information sending and receiving stage. Assume that the local network topology obtained by node 1 is as follows Fig. 9 As shown, node 1 wants to send a data type frame to node 5. At the start of the time slot, node 1 sets and starts the preset waiting timer TW1 and enters the waiting period. The preset waiting timer setting duration of node 1 is: TW1 = m1 × TW UNIT
[0155] Among them, m1 is the number of one-hop neighbor nodes centered on node 1. Fig. 9 Take the network topology as an example, m1 = 3. At the same time, TW UNIT Satisfies the following relationship:
[0156] TW UNIT =T backoff_max +T RTS +Δt,
[0157] Among them, T backoff-max is the maximum backoff time, T RTS is the RTS frame sending duration, and Δt is the duration from the end of RTS frame sending to the next detection of channel busy (starting to receive CTS frames).
[0158] Step 4: During the waiting period, three events will occur: event a, the carrier detects that the channel changes from idle to busy; event b, the preset waiting timer times out; event c, the preset waiting timer does not time out, and the TW after the start of this time slot max The time arrives. If two or more events occur at the same time, they are processed in the order of priority of event a, event b, and event c. Node 1 processes the above three events as follows:
[0159] Event a occurs, and the occurrence time is t after the start of this time slot x At this moment, node 1 immediately stops the preset waiting timer TW1 and updates the value of TW1. Node 1 enters the passive receiving period. Among them, TW1 is updated to
[0160] Event b occurs and node 1 enters the backoff period.
[0161] When event c occurs, node 1 immediately stops the preset waiting timer TW1 and updates the value of TW1. Then node 1 enters the passive receiving period. TW1 is updated to:
[0162] TW1=TW1-TW max ,
[0163] Among them, TW max For TW UNIT The multiple is uniformly configured for the entire network.
[0164] Step 5: Enter the backoff phase, node 1 restarts the backoff timer T backoff If the timer reaches 0, reset it immediately. backoff Set to:
[0165] T backoff =CW×aSlotTime,
[0166] Here, aSlotTime is the same as the PHY parameter definition in the IEEE 802.11n protocol, and its value is 9us. CW is from the interval [0, CW max ] is a pseudo-random integer selected from a uniform distribution on ]. max With T backoff-max Satisfies the following relationship:
[0167] T backoff_max =CW max ×aSlotTime.
[0168] At the same time, update the preset waiting timer length TW1 of node 1 to:
[0169] TW1=m1×TW UNIT ,
[0170] Where m1 is the number of one-hop neighbor nodes of node 1, and here m1=3.
[0171] Step 6: The maximum duration of the backoff period of this time slot is T backoff During the backoff period, two events may occur: event a, the carrier detects that the channel changes from idle to busy; event b, the backoff timer times out. Node 1 handles the above two events as follows:
[0172] Event a occurs, node 1 immediately stops the backoff timer T backoff , 1 enters the passive receiving period.
[0173] Event b occurs and node 1 enters the RTS transmission period.
[0174] If event a and event b occur at the same time, then event a will be processed.
[0175] Step 7: During the RTS transmission period, node 1 sends an RTS frame to node 5.
[0176] Step 8: After the RTS frame is sent, enter the CTS transmission period.
[0177] Step 9: The duration of the CTS transmission period is T CTS , which is the length of the timeout timer for receiving the CTS frame. During the CTS transmission period, node 1 waits to receive the CTS frame from node 5. If node 1 successfully receives the CTS frame from node 5, node 1 enters the DATA transmission period; if node 1 fails to successfully receive the CTS frame from node 5 at the end of the CTS transmission period, it enters the passive reception period.
[0178] Step 10: During the DATA transmission period, node 1 sends a data type frame to node 5. After the transmission is completed, node 1 enters the ACK transmission period.
[0179] Step 11: The duration of the ACK transmission period is T ACK , which is the length of the receiving ACK frame timeout timer. During the ACK transmission period, node 1 waits to receive the ACK frame from node 5. If node 1 successfully receives the ACK frame from node 5, it means that the data type frame is sent successfully, and node 1 immediately enters the passive receiving period; if node 1 fails to successfully receive the ACK frame from node 5 at the end of the ACK transmission period, node 1 still enters the passive receiving period.
[0180] Step 12: During the passive reception period, node 1 is restricted from accessing the channel in this time slot, i.e., it cannot trigger the sending of RTS frames. Three events will be processed during this period: event a, receiving an RTS frame; event b, receiving a CTS frame; and event c, receiving a data type frame. Node 1 processes the event as follows:
[0181] Event a occurs, and node 1 reads the "RA" field of the RTS frame. Assuming that the "RA" field indicates node 3, node 1 sets a preset waiting timer TW1. The TW1 setting rule is described as follows:
[0182] Sort the one-hop neighbor node set of node 3 into a set Sort the nodes with identification numbers greater than 3 in ascending order. In the first half of the table, nodes with identification numbers less than 3 are sorted in order of arrival from smallest to smallest. The final ordered set of one-hop neighbors of node 3 is:
[0183]
[0184] Node 1 sets the preset waiting timer length to:
[0185] TW1=n1×TW UNIT ,
[0186] Among them, n1 is an ordered set The number of nodes before node 1 in , where n1=2.
[0187] When event a occurs, the "TA" field of the RTS frame is read to indicate node 1 and no RTS frame or CTS frame has been received in this time slot, node 1 replies with a corresponding CTS frame.
[0188] Event a occurs, the "TA" field of the RTS frame read is not node 1 or an RTS frame or CTS frame has been received in this time slot, so this event is ignored.
[0189] Event b occurs and this event is ignored.
[0190] Event c occurs. If the above processing has been performed in this time slot and the destination address of the data type frame is the current node, node 1 replies with the corresponding ACK frame.
[0191] Step 13: The passive receiving period is maintained until the end of this time slot.
[0192] Step 14: At the beginning of the next time slot, all nodes enter a waiting period and repeat the above steps 4 to 14.
[0193] The consensus channel access mechanism adopted in this application will bring many advantages in a large-scale networking environment, and is compared and verified in combination with the following simulation environment. The simulation parameters are shown in the following table.
[0194]
[0195] In the above simulation parameter conditions, the network topology is an area of 100m×100m, the maximum communication distance between nodes is 15m, and the node positions are randomly distributed. Fig.10 An example of a network topology of 200 nodes in a 100m×100m area is shown. Compared with the RTS / CTS mechanism in the IEEE 802.11DCF standard, the advantages of the present invention are as follows:
[0196] Compare the collision rate performance, such as Fig.11As shown in the figure, it can be seen from the simulation results that the consensus channel access mechanism proposed in the present invention greatly reduces the collision rate of single data transmission at the MAC layer. The reduction of the collision rate can not only improve the energy utilization of the node, but also reduce the retransmission probability of the MAC layer.
[0197] Compare the saturated system reuse rate performance, such as Fig.12 As shown, the system reuse rate is proportional to the MAC throughput, and the proportional coefficient is the transmission rate of the physical layer. It can be seen from the simulation results that in the case of large-scale networking, the consensus channel access mechanism proposed in the present invention improves the system reuse rate, and as the node scale increases, the improvement ratio increases accordingly.
[0198] This application also provides a channel access device, please refer to Figure 4 , the channel access device comprises:
[0199] The acquisition module 10 is used to acquire the local node situation information of the target node before the next decision cycle starts or when a data packet needs to be sent;
[0200] A first determination module 20, configured to determine a waiting period before accessing a channel based on the local node situation information, and randomly select a backoff period before transmitting data;
[0201] A second determination module 30 is used to send a prompt frame to the target node when it is determined that the timer period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period;
[0202] The first sending module 40 is used to access the data transceiver channel after receiving the reply frame fed back by the target node based on the prompt frame, and send a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received the data packet sent by other nodes in the current state.
[0203] Optionally, the acquisition module includes:
[0204] The search module is used to obtain local node situation information centered on the first network node after completing time synchronization with surrounding nodes.
[0205] Optionally, the device further comprises:
[0206] A monitoring module, used to monitor a first channel event within a first time period, where the first time period is a time period corresponding to a preset waiting timer;
[0207] An updating module, configured to stop and update the preset waiting timer and enter a passive receiving period if the first channel event is that the channel state of the data transceiving channel is busy or the preset waiting timer has not timed out;
[0208] A first determination module, configured to enter a backoff period if the first channel event is a timeout of a preset waiting timer;
[0209] The second determination module is used to determine whether the timer period corresponding to the preset backoff timer exceeds the backoff period.
[0210] Optionally, the first determining module includes:
[0211] A monitoring unit, configured to monitor a second channel event within a backoff period, wherein the backoff period is a period corresponding to a preset backoff timer;
[0212] an access restriction unit, configured to stop a preset backoff timer and not access the data transceiver channel, and enter a passive reception period if the second channel event is that the channel state of the data transceiver channel is busy;
[0213] The sending unit is used to determine that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period if the second channel event is the timeout of the preset backoff timer, and send a prompt frame to the target node.
[0214] Optionally, the device further comprises:
[0215] The access module is used to enter the passive receiving stage when no reply frame fed back by the target node is received.
[0216] Optionally, the device further comprises:
[0217] A monitoring unit, configured to monitor a third channel event when it is determined that the passive receiving stage is in progress;
[0218] a feedback unit, configured to feed back a first reply frame to the node corresponding to the first prompt frame if the third channel event is receiving a first prompt frame, and the target node of the first prompt frame is the first network node, and no prompt frame or reply frame is received in the current decision cycle;
[0219] The reply unit is used to reply with a corresponding ACK frame if the third channel event is receiving a data packet, the destination address of the data packet is the current node, and a reply frame has been sent, otherwise the third channel event will be ignored.
[0220] The channel access device provided by the present application adopts the channel access method in the above embodiment to solve the technical problem of channel access. Compared with the prior art, the beneficial effects of the channel access device provided by the present application are the same as the beneficial effects of the channel access method provided by the above embodiment, and other technical features in the channel access device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0221] The present application provides a channel access device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the channel access method in the above-mentioned embodiment one.
[0222] Reference below Figure 5 , which shows a schematic diagram of the structure of a channel access device suitable for implementing the embodiment of the present application. The channel access device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The channel access device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0223] like Figure 5As shown, the channel access device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the channel access device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the channel access device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a channel access device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.
[0224] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0225] The channel access device provided by the present application adopts the channel access method in the above embodiment to solve the technical problem of channel access. Compared with the prior art, the beneficial effects of the channel access device provided by the present application are the same as the beneficial effects of the channel access method provided by the above embodiment, and other technical features in the channel access device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0226] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0227] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0228] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the channel access method in the above-mentioned embodiment.
[0229] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0230] The computer-readable storage medium may be included in the channel access device; or may exist independently without being assembled into the channel access device.
[0231] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the channel access device, the channel access device:
[0232] When a data packet needs to be sent to a target node in a next decision cycle, obtaining local node situation information corresponding to the first network node;
[0233] Based on the local node situation information, determining a waiting period before accessing the channel, and randomly selecting a backoff period before transmitting data;
[0234] When it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, sending a prompt frame to the target node;
[0235] After receiving the reply frame from the target node based on the prompt frame feedback, access the data transceiver channel and send a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received data packets sent by other nodes in the current state.
[0236] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0237] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0238] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0239] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned channel access method, and can solve the technical problem of channel access. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the channel access method provided in the above-mentioned embodiment, and will not be repeated here.
[0240] The present application also provides a computer program product, including a computer program, which implements the steps of the channel access method as described above when executed by a processor.
[0241] The computer program product provided by the present application can solve the technical problem of channel access. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the channel access method provided by the above embodiment, which will not be repeated here.
[0242] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A channel access method, characterized in that: Applied to a first network node, the channel access method includes: When a data packet needs to be sent to a target node in a next decision cycle, obtaining local node situation information corresponding to the first network node; Based on the local node situation information, determining a waiting period before accessing the channel, and randomly selecting a backoff period before transmitting data; When it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, sending a prompt frame to the target node; After receiving the reply frame from the target node based on the prompt frame feedback, access the data transceiver channel and send a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received data packets sent by other nodes in the current state.
2. The method according to claim 1, characterized in that The step of obtaining the local node situation information corresponding to the first network node includes: After completing time synchronization with surrounding nodes, local node situation information centered on the first network node is obtained.
3. The method according to claim 2, characterized in that The preset timer includes a preset waiting timer and a preset backoff timer. When it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, before the step of sending the prompt frame to the target node, it also includes: Monitoring a first channel event within a first time period, where the first time period is a time period corresponding to a preset waiting timer; If the first channel event is that the channel state of the data transceiver channel is busy or the preset waiting timer has not timed out, then the preset waiting timer is stopped and updated, and a passive receiving period is entered; If the first channel event is a timeout of a preset waiting timer, then entering a backoff period; It is determined whether a timer period corresponding to a preset backoff timer exceeds the backoff period.
4. The method according to claim 3, characterized in that The step of sending a prompt frame to the target node when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period includes: Monitoring a second channel event within a backoff period, wherein the backoff period is a period corresponding to a preset backoff timer; If the second channel event is that the channel state of the data transceiving channel is busy, then the preset backoff timer is stopped and the data transceiving channel is not accessed, and a passive receiving period is entered; If the second channel event is the timeout of a preset backoff timer, it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period, and a prompt frame is sent to the target node.
5. The method according to claim 1, characterized in that Before the step of accessing the data transceiving channel and sending the data packet to the target node through the data transceiving channel, the method further includes: When no reply frame fed back by the target node is received, the passive receiving phase is entered.
6. The method according to claim 5, characterized in that After the step of sending the data packet to the target node through the data transceiver channel, the method further comprises: When it is determined that the passive receiving stage is in progress, monitoring a third channel event; If the third channel event is receiving a first prompt frame, and the target node of the first prompt frame is the first network node, and no prompt frame or reply frame is received in the current decision cycle, then feeding back a first reply frame to the node corresponding to the first prompt frame; If the third channel event is receiving a first prompt frame, and the target node of the first prompt frame is not the first network node or a prompt frame or a reply frame has been received in the current decision cycle, then ignoring the third channel event; If the third channel event is when a data packet is received, and the destination address of the data packet is the current node, and a reply frame has been sent, then a corresponding ACK frame is replied, otherwise the third channel event is ignored.
7. A channel access device, characterized in that: The channel access device comprises: An acquisition module, used to acquire the local node situation information corresponding to the first network node when a data packet needs to be sent to a target node in the next decision cycle; A first determination module is used to determine a waiting period before accessing a channel based on the local node situation information, and randomly select a backoff period before transmitting data; A second determining module is used to send a prompt frame to the target node when it is determined that the timer time period corresponding to the preset timer exceeds the sum of the waiting period and the backoff period; The first sending module is used to access a data transceiver channel after receiving a reply frame from the target node based on the prompt frame feedback, and send a data packet to the target node through the data transceiver channel, wherein the reply frame is used to indicate that the target node has not received data packets sent by other nodes in the current state.
8. A channel access device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the channel access method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the channel access method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the channel access method according to any one of claims 1 to 6 are implemented.
