CN112738846A - Ethernet frame aggregation method in wireless ad hoc network - Google Patents
Ethernet frame aggregation method in wireless ad hoc network Download PDFInfo
- Publication number
- CN112738846A CN112738846A CN202011559254.9A CN202011559254A CN112738846A CN 112738846 A CN112738846 A CN 112738846A CN 202011559254 A CN202011559254 A CN 202011559254A CN 112738846 A CN112738846 A CN 112738846A
- Authority
- CN
- China
- Prior art keywords
- frame
- ethernet
- aggregation
- data
- module
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/06—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
- H04W28/065—Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Abstract
The invention discloses an Ethernet frame aggregation method in a wireless ad hoc network, and belongs to the technical field of wireless ad hoc networks. The sending end of the wireless ad hoc network communication system node comprises an Ethernet service receiving module, a first data processing module, a legacy data buffer area, a data buffer area to be sent and a routing processing and sending module, and the receiving end comprises a channel service receiving module, a second data processing module and an Ethernet service sending module; the sending end carries out frame aggregation processing after receiving the Ethernet frame sent by the service terminal and sends the Ethernet frame out through the routing processing and sending module; and after receiving the aggregation frame, the receiving end restores the aggregation frame into an Ethernet frame and sends the Ethernet frame to the service terminal. The method can greatly improve the adaptability of the wireless ad hoc network to different types of Ethernet services, so that the wireless ad hoc network has more efficient Ethernet service transmission capability.
Description
Technical Field
The invention relates to the technical field of wireless ad hoc networks, in particular to an Ethernet frame aggregation method in a wireless ad hoc network, which can be used for efficient transmission of Ethernet services in the wireless ad hoc network.
Background
A wireless ad hoc network is an ad hoc network system that communicates through a wireless channel, and the bandwidth, capacity, performance, and the like of the wireless ad hoc network are severely limited. In the centerless ad hoc network, data communication time slots need to be reserved and determined by a transmitting and receiving node, the data volume which can be transmitted in each time slot is determined, and the frame lengths of Ethernet service frames generated by different service terminals are different. However, in a system without ethernet frame aggregation, transmitting a shorter ethernet frame and transmitting a longer ethernet frame consume the same slot resources, which is a great waste.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for aggregating ethernet frames in a wireless ad hoc network, which avoids the disadvantages in the background, and can enable the wireless ad hoc network to transmit as many ethernet service frames as possible in a single data time slot without introducing new time delay obviously, thereby significantly improving the ethernet service transmission capability of the wireless ad hoc network and the adaptability to different types of services.
In order to achieve the purpose, the invention adopts the technical scheme that:
an Ethernet frame aggregation method in a wireless ad hoc network is applied to a wireless ad hoc network communication system, each node of the wireless ad hoc network communication system is provided with a sending end and a receiving end, wherein the sending end comprises an Ethernet service receiving module, a first data processing module, a legacy data buffer area, a data buffer area to be sent and a route processing and sending module, and the receiving end comprises a channel service receiving module, a second data processing module and an Ethernet service sending module; the sending end carries out frame aggregation processing after receiving the Ethernet frame sent by the service terminal and sends the Ethernet frame out through the routing processing and sending module; and after receiving the aggregation frame, the receiving end restores the aggregation frame into an Ethernet frame and sends the Ethernet frame to the service terminal.
Further, the specific way for the sending end to perform frame aggregation processing is as follows:
(1) the Ethernet service receiving module receives an Ethernet frame from a service terminal, if the Ethernet frame is received, the Ethernet frame is sent to the first data processing module and the step (2) is executed, if the Ethernet frame is not received and a data buffer area to be sent is empty, the step (1) is executed again, and if the Ethernet frame is not received and the data buffer area to be sent is not empty, the step (4) is executed;
(2) the first data processing module encapsulates the Ethernet frame into a single frame, stores the single frame into a legacy data buffer area, and then executes the step (3);
(3) judging whether the single frame meets the condition of frame aggregation with the previous frame, if so, executing the step (4), otherwise, executing the step (5);
(4) aggregating the single frames, storing the single frames into a data buffer area to be sent, emptying a residual data buffer area, and then executing the step (1);
(5) and (4) sending the aggregation frame in the data buffer area to be sent to a routing processing and sending module for sending, if the data still exist in the legacy data buffer area, executing the step (4), otherwise, executing the step (1).
Further, after receiving the aggregation frame, the receiving end restores the aggregation frame to an ethernet frame, and sends the ethernet frame to the service terminal in a specific manner that:
(6) the channel service receiving module receives the data frame, if the data frame is data sent to the node, the data frame is sent to the second data processing module and the step (7) is executed, otherwise, the data frame is sent to a routing processing and sending module of a sending end of the node for forwarding or discarding;
(7) the second data processing module reads the aggregation frame, analyzes the frame head, obtains the information of the frame length and the single frame number of the aggregation frame, and then executes the step (8);
(8) the second data processing module analyzes the aggregate frame packet, reads the frame head of the next single frame, reads the Ethernet frame encapsulated in the single frame according to the frame length identified by the frame head of the single frame, and then executes the step (9);
(9) the second data processing module sends the analyzed Ethernet frame to an Ethernet service sending module, and the Ethernet service sending module sends the Ethernet frame to a service terminal;
(10) and the second data processing module judges whether all the single frames in the aggregation frame are analyzed completely, if so, the step (6) is executed, and otherwise, the steps (8) to (9) are repeatedly executed.
Further, the single frame includes a frame length of 2 bytes, a frame sequence number of 1 byte, and an ethernet frame, and the aggregate frame includes a frame length of 2 bytes, a number of single frames of 1 byte, and 1 or more single frames.
Compared with the background art, the invention has the following advantages:
(1) the invention greatly improves the adaptability of the wireless ad hoc network to different types of Ethernet services and obtains higher time slot resource utilization efficiency, thereby enabling the wireless ad hoc network to have more efficient Ethernet service transmission capability.
(2) The invention does not introduce extra processing time delay and has good real-time performance.
(3) The invention is realized on the basis of a CPU in a network layer, and has clear and simple software and hardware interfaces, stable and reliable performance, and good expansibility and transportability.
(4) The invention carries out transparent transmission on the Ethernet service frame and can be compatible with various protocols based on Ethernet.
Drawings
Fig. 1 is a block diagram of a transmitting end according to an embodiment of the present invention;
FIG. 2 is a block diagram of a receiving end according to an embodiment of the present invention;
fig. 3 is a flowchart of the operation of the transmitting end in the embodiment of the present invention;
fig. 4 is a flowchart of the operation of the receiving end in the embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be further described in detail with reference to the accompanying drawings and the detailed description.
An Ethernet frame aggregation method in a wireless ad hoc network is applied to a wireless ad hoc network communication system, and each node of the wireless ad hoc network communication system is provided with a sending end and a receiving end. The network layer of the node encapsulates the Ethernet frames to be transmitted, adds the Ethernet frames into the fields of frame length and sequence number, encapsulates the Ethernet frames into a single frame, adds the fields of frame length and single frame number into the aggregated data frames, and encapsulates the aggregated data frames into an aggregated frame.
As shown in fig. 1, the sending end includes an ethernet service receiving module, a first data processing module, a legacy data buffer, a to-be-sent data buffer, and a routing processing and sending module. As shown in fig. 2, the receiving end includes a channel service receiving module, a second data processing module, and an ethernet service transmitting module. The sending end carries out frame aggregation processing after receiving the Ethernet frame sent by the service terminal and sends the Ethernet frame out through the routing processing and sending module; and after receiving the aggregation frame, the receiving end restores the aggregation frame into an Ethernet frame and sends the Ethernet frame to the service terminal.
Each node in the wireless ad hoc network has a transceiving function. The hardware part of each node can be realized based on a PowerPC processor, the software part can be developed based on a vxWorks embedded operating system, and the functions are realized in an equipment network layer.
Specifically, the work flow of the sending end is shown in fig. 3, and includes the following steps:
(1) the Ethernet service receiving module receives an Ethernet frame from the service terminal, if the Ethernet frame is received, the Ethernet frame is sent to the data processing module and the step (2) is executed, if the Ethernet frame is not received and the buffer area to be sent is empty, the step (1) is executed again, and if the Ethernet frame is not received and the buffer area to be sent is not empty, the step (5) is executed;
(2) the data processing module packages the Ethernet frame into a single frame, updates the frame length field (2 bytes) of the frame header of the single frame, is used for identifying the length of the current Ethernet frame and stores the length into a legacy data buffer area;
(3) judging whether the single frame meets the condition of carrying out frame aggregation with the aggregation frame in the buffer area to be sent, if the single frame meets the condition or the buffer area is empty, executing the step (4), and if the single frame does not meet the condition, directly executing the step (5);
specifically, the conditions under which frame aggregation can be performed include: the destination addresses of all Ethernet frames are the same, and the frame length after frame aggregation is not more than the MTU (Maximum Transmission Unit) of an MAC layer;
(4) and aggregating the single frames, wherein a frame sequence number field (1 byte) in the head of the updated single frame is used for identifying the sequencing of the single frame in the aggregated frame, the sequence number of the first single frame is 0, and a frame length field (2 bytes) and a single frame number field (1 byte) in the head of the updated aggregated frame are used for identifying the number of the single frames contained in the aggregated frame. Storing the aggregation frame to a buffer area to be sent, emptying a legacy data buffer area, and executing the step (1);
(5) sending the aggregation frame in the buffer area to be sent to a routing processing and sending module, if the data still exist in the legacy data buffer area, executing the step (4), and if the data do not exist in the legacy data buffer area, executing the step (1);
the work flow of the receiving end is shown in fig. 4, and includes the following steps:
(6) the channel service receiving module receives the data frame from the channel, if the data frame is the data sent to the node, the step (7) is executed, otherwise, the data frame is sent to the routing processing and sending module for forwarding or discarding;
(7) reading the aggregation frame and analyzing the frame head, wherein the first two bytes are the frame length and are marked as L, the third byte is the number of single frames contained in the aggregation frame and is marked as L(ii) a Reading a polymerization frame inclusion, wherein the first two bytes of the polymerization frame inclusion are the frame length of the first single frame and are recorded asThe third byte of the bag body is the sequence number of the single frameThe number of bytes parsed is marked;
(8) Reading from the aggregation frame packet beginning at byte 3Recovering the Ethernet frame and sending the analyzed Ethernet frame to an Ethernet service sending module by the byte, finally sending the Ethernet frame to a service terminal and ordering;
(10) from the aggregate frameRead 2 byte frame length starting with byteThen, a byte frame number is read and recorded asAnd further after reading the frame sequence number fieldByte, recovering Ethernet frame, and sendingTo Ethernet service transmitting module, orderAnd (9) executing.
In a word, the invention is realized in a network layer, the processing mode is flexible and efficient, the adaptability of the wireless ad hoc network to different types of Ethernet services is greatly improved on the premise of not introducing extra time delay, and higher time slot resource utilization efficiency is obtained, so that the wireless ad hoc network has more efficient Ethernet service transmission capability. In addition, the invention supports the transparent transmission of the Ethernet service, has good compatibility to the upper layer protocol, and can be applied to various wireless ad hoc network systems.
Claims (4)
1. The Ethernet frame aggregation method in the wireless ad hoc network is characterized in that the method is applied to a wireless ad hoc network communication system, each node of the wireless ad hoc network communication system is provided with a sending end and a receiving end, wherein the sending end comprises an Ethernet service receiving module, a first data processing module, a left data buffer area, a data buffer area to be sent and a routing processing and sending module, and the receiving end comprises a channel service receiving module, a second data processing module and an Ethernet service sending module; the sending end carries out frame aggregation processing after receiving the Ethernet frame sent by the service terminal and sends the Ethernet frame out through the routing processing and sending module; and after receiving the aggregation frame, the receiving end restores the aggregation frame into an Ethernet frame and sends the Ethernet frame to the service terminal.
2. The method according to claim 1, wherein the specific manner for the sending end to perform frame aggregation processing is as follows:
(1) the Ethernet service receiving module receives an Ethernet frame from a service terminal, if the Ethernet frame is received, the Ethernet frame is sent to the first data processing module and the step (2) is executed, if the Ethernet frame is not received and a data buffer area to be sent is empty, the step (1) is executed again, and if the Ethernet frame is not received and the data buffer area to be sent is not empty, the step (4) is executed;
(2) the first data processing module encapsulates the Ethernet frame into a single frame, stores the single frame into a legacy data buffer area, and then executes the step (3);
(3) judging whether the single frame meets the condition of frame aggregation with the previous frame, if so, executing the step (4), otherwise, executing the step (5);
(4) aggregating the single frames, storing the single frames into a data buffer area to be sent, emptying a residual data buffer area, and then executing the step (1);
(5) and (4) sending the aggregation frame in the data buffer area to be sent to a routing processing and sending module for sending, if the data still exist in the legacy data buffer area, executing the step (4), otherwise, executing the step (1).
3. The method according to claim 1, wherein the method for aggregating ethernet frames in a wireless ad hoc network, after receiving the aggregated frame, the receiving end restores the aggregated frame to an ethernet frame, and sends the ethernet frame to the service terminal in a specific manner:
(6) the channel service receiving module receives the data frame, if the data frame is data sent to the node, the data frame is sent to the second data processing module and the step (7) is executed, otherwise, the data frame is sent to a routing processing and sending module of a sending end of the node for forwarding or discarding;
(7) the second data processing module reads the aggregation frame, analyzes the frame head, obtains the information of the frame length and the single frame number of the aggregation frame, and then executes the step (8);
(8) the second data processing module analyzes the aggregate frame packet, reads the frame head of the next single frame, reads the Ethernet frame encapsulated in the single frame according to the frame length identified by the frame head of the single frame, and then executes the step (9);
(9) the second data processing module sends the analyzed Ethernet frame to an Ethernet service sending module, and the Ethernet service sending module sends the Ethernet frame to a service terminal;
(10) and the second data processing module judges whether all the single frames in the aggregation frame are analyzed completely, if so, the step (6) is executed, and otherwise, the steps (8) to (9) are repeatedly executed.
4. A method for ethernet frame aggregation in a wireless ad hoc network according to claim 2 or 3, wherein the single frame comprises a frame length of 2 bytes, a frame sequence number of 1 byte and an ethernet frame, and the aggregated frame comprises a frame length of 2 bytes, a number of single frames of 1 byte and 1 or more single frames.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011559254.9A CN112738846A (en) | 2020-12-25 | 2020-12-25 | Ethernet frame aggregation method in wireless ad hoc network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011559254.9A CN112738846A (en) | 2020-12-25 | 2020-12-25 | Ethernet frame aggregation method in wireless ad hoc network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112738846A true CN112738846A (en) | 2021-04-30 |
Family
ID=75615900
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011559254.9A Pending CN112738846A (en) | 2020-12-25 | 2020-12-25 | Ethernet frame aggregation method in wireless ad hoc network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112738846A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225711A (en) * | 2022-06-01 | 2022-10-21 | 裕太微(上海)电子有限公司 | Ethernet equipment of high-efficient transmission |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180337753A1 (en) * | 2015-11-17 | 2018-11-22 | Xidian University | Communication device, and communication method for frame aggregation and transmission |
CN109842868A (en) * | 2017-11-29 | 2019-06-04 | 华为技术有限公司 | A kind of frame aggregation, network settings frame sending method and equipment |
CN109861801A (en) * | 2018-10-15 | 2019-06-07 | 北京新岸线移动通信技术有限公司 | A kind of data transmission method and device |
US20200229032A1 (en) * | 2019-01-11 | 2020-07-16 | Blackberry Limited | Aggregation of data frames |
-
2020
- 2020-12-25 CN CN202011559254.9A patent/CN112738846A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180337753A1 (en) * | 2015-11-17 | 2018-11-22 | Xidian University | Communication device, and communication method for frame aggregation and transmission |
CN109842868A (en) * | 2017-11-29 | 2019-06-04 | 华为技术有限公司 | A kind of frame aggregation, network settings frame sending method and equipment |
US20200296624A1 (en) * | 2017-11-29 | 2020-09-17 | Huawei Technologies Co., Ltd. | Frame aggregation method, network setting frame sending method, and device |
CN109861801A (en) * | 2018-10-15 | 2019-06-07 | 北京新岸线移动通信技术有限公司 | A kind of data transmission method and device |
US20200229032A1 (en) * | 2019-01-11 | 2020-07-16 | Blackberry Limited | Aggregation of data frames |
Non-Patent Citations (1)
Title |
---|
ANWAR SAIF ET AL: ""A Reliable A-MSDU Frame Aggregation Scheme in 802.11n Wireless Networks"", 《SCIENCEDIRECT》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115225711A (en) * | 2022-06-01 | 2022-10-21 | 裕太微(上海)电子有限公司 | Ethernet equipment of high-efficient transmission |
US11876644B2 (en) | 2022-06-01 | 2024-01-16 | Motorcomm Electronic Technology Co., Ltd. | High-efficiency transmission ethernet device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE45570E1 (en) | Data transmission method using packet aggregation | |
US5446736A (en) | Method and apparatus for connecting a node to a wireless network using a standard protocol | |
US7630403B2 (en) | MAC aggregation frame with MSDU and fragment of MSDU | |
RU2475989C2 (en) | Methods and device to format headings in communication frame | |
KR100912545B1 (en) | Apparatus and method of packet processing | |
WO2022022229A1 (en) | Method and device for processing message | |
CN109005170B (en) | Conversion method from RapidIO protocol to FC protocol | |
US20060227752A1 (en) | Packet transmission method and apparatus | |
WO2010031324A1 (en) | Method, device and system for data transmission | |
EP1234428A1 (en) | Method and apparatus for packet delay reduction using scheduling and header compression | |
CN109861801B (en) | Data transmission method and device | |
RU2762801C2 (en) | Method, equipment and system for data transmission and device | |
CN100446501C (en) | Method and system for aiding CPU to retransmit message | |
CN112738846A (en) | Ethernet frame aggregation method in wireless ad hoc network | |
CN110214439B (en) | Data transmission method, device, sending end, receiving end and system | |
CN109951458B (en) | RapidIO/FC protocol conversion system and method applied to simulation ICP environment | |
CN116095197B (en) | Data transmission method and related device | |
WO2013075475A1 (en) | Method, device and system for carrying message service type to an based on gre extension | |
CN112866389B (en) | Slip protocol-based file transmission method and device in short-wave radio station communication | |
CN115174699A (en) | Processing method of Ethernet message and related equipment | |
US7554977B2 (en) | Method and apparatus for indicating packet boundaries in frames | |
CN102780639A (en) | Router wire card and data processing method | |
CN111770055A (en) | Multi-protocol communication frame rapid distinguishing method applied to electric energy meter | |
KR100631270B1 (en) | Data transmission apparatus using packet aggregation | |
CN113709892B (en) | Pseudo-two-layer transmission method and system based on SD-WAN network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210430 |