CN111669254B - TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network - Google Patents

TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network Download PDF

Info

Publication number
CN111669254B
CN111669254B CN202010513499.1A CN202010513499A CN111669254B CN 111669254 B CN111669254 B CN 111669254B CN 202010513499 A CN202010513499 A CN 202010513499A CN 111669254 B CN111669254 B CN 111669254B
Authority
CN
China
Prior art keywords
tcp
mac layer
confirmation
mac
data
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.)
Active
Application number
CN202010513499.1A
Other languages
Chinese (zh)
Other versions
CN111669254A (en
Inventor
吴伟民
秦涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN202010513499.1A priority Critical patent/CN111669254B/en
Publication of CN111669254A publication Critical patent/CN111669254A/en
Application granted granted Critical
Publication of CN111669254B publication Critical patent/CN111669254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless

Abstract

The invention belongs to the technical field of wireless networks, and discloses a combined processing method based on WiFi network TCP confirmation and MAC confirmation, which judges which MAC layer data frames are really lost in an air interface in a PPDU (protocol control unit) which is not responded by a BA (basic object architecture) frame by utilizing information redundancy of an IEEE 802.11 MAC layer fast confirmation mechanism and a TCP protocol reliable transmission mechanism; a TCP tracking table and an unconfirmed message queue structure are customized on the MAC layer of the wireless router, the connection condition of each TCP of a user is recorded and tracked, and overtime retransmission and quick retransmission are carried out on the MAC layer instead of the TCP layer. The invention utilizes the TCP confirmation and MAC confirmation combined processing technology, can reduce the empty resource waste caused by unnecessary data retransmission, save the empty resource, reduce the times of triggering TCP layer congestion avoidance by the edge user, and improve the service quality of the TCP service of the edge user.

Description

TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network
Technical Field
The invention belongs to the technical field of wireless networks, and particularly relates to a TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on a WiFi (wireless fidelity) network.
Background
At present, compared with a wired network, a wireless network is easily interfered by the environment and has high packet loss rate. For TCP traffic, the high packet loss rate of the wireless network may trigger fast retransmission and congestion avoidance of the TCP traffic, which may cause service quality degradation of the TCP traffic, and waste of air interface channel resources may also be caused by repeatedly retransmitting data frames at the air interface.
The transmitting power of an edge user in a WiFi environment is often inferior to that of a wireless router, the quality of an uplink is lower than that of a downlink, and although a data frame sent to the edge user by the wireless router can be correctly received, an MAC layer acknowledgement frame responded by the edge user is easily lost in an air interface, so that unnecessary data retransmission is performed on the downlink, and a large amount of air interface resources are wasted.
Through the above analysis, the problems and defects of the prior art are as follows: (1) for TCP traffic, the high packet loss rate of the wireless network may trigger fast retransmission and congestion avoidance of the TCP traffic, which may cause service quality degradation of the TCP traffic, and waste of air interface channel resources may also be caused by repeatedly retransmitting data frames at the air interface.
(2) An MAC layer acknowledgement frame responded by an edge user in a WiFi environment is easy to lose in an air interface, so that unnecessary data retransmission is carried out on a downlink, and a large amount of air interface resources are wasted.
The difficulty in solving the above problems and defects is: both the WiFi protocol and the TCP protocol are complex and widely applied protocols, and the workload of directly modifying the protocol content is huge.
The significance of solving the problems and the defects is as follows: the TCP protocol is widely applied to the fields of file transmission, safe login, webpage access and the like, the transmission efficiency of the WiFi at the bottom layer directly influences the throughput and the time delay of the TCP service, and the TCP service of the edge user occupies channel resources due to the fact that a large amount of retransmission of the TCP service of the edge user also influences the service quality of other users, so that the method has great significance for reducing unnecessary downlink data retransmission of the edge user and guaranteeing the service quality of the TCP service.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a combined processing method based on TCP confirmation and MAC confirmation of a WiFi network, aiming at solving the problem that MAC confirmation of an edge user is easy to lose in a WiFi environment.
The invention is realized in this way, a combined processing method based on WiFi network TCP confirmation and mac confirmation, comprising:
judging which MAC layer data frames in the PPDU which are not responded by the BA frame are really lost in an air interface through the information redundancy of an MAC layer confirmation mechanism and a TCP protocol transmission mechanism;
recording and tracking each TCP connection condition of a user in an MAC layer of the wireless router through a TCP tracking table and an unacknowledged message queue structure, and performing overtime retransmission and quick retransmission on the MAC layer instead of the TCP layer.
Further, the combined processing method of the TCP acknowledgement and the mac acknowledgement based on the WiFi network comprises the following steps:
step one, a tracking mechanism for TCP service is established in an MAC layer of a wireless router, the wireless router judges whether an MAC layer data frame is lost in an air interface when a BA frame is not received or not by analyzing an uplink TCP acknowledgement message segment, and the MAC layer data frame is retransmitted selectively;
secondly, the TCP service tracking mechanism records the confirmation condition of the uplink and downlink data streams of each TCP service in real time according to the sequence number field in the uplink and downlink TCP message segments;
and step three, for the MAC layer data frame which does not receive the BA frame and contains the TCP data message segment, if the TCP data message segment is confirmed by the later uplink TCP confirmation message segment, the MAC layer does not need to retransmit the corresponding data frame, and if the TCP confirmation message segment of the TCP data message segment is not confirmed in the specified time, the MAC layer needs to retransmit the corresponding data frame.
Further, in the first step, a TCP tracking table is maintained at the MAC layer of the wireless router, each TCP connection condition of the edge user is recorded and tracked, and a packet queue is maintained for each TCP service.
Further, the method for maintaining the TCP tracking table includes:
identifying the TCP head of each TCP data segment or TCP confirmation segment in the uplink and downlink directions on an MAC layer, if the TCP head is a new TCP connection of an edge user, newly adding a corresponding TCP service node in a TCP tracking table, if the node exists, updating the values of ' SeqNum ' and ' AckNum ', and recording whether the AckNum ' is repeated more than three times for the uplink TCP repeated confirmation segment;
for MAC layer data frames containing TCP data message segments which are not confirmed by BA, placing the MAC layer data frames into an unconfirmed message queue pointed by a ListNode of a corresponding TCP service node; for the MAC layer data frame containing the TCP data message segment confirmed by the BA bitmap, extracting a TCP head information group, and updating the SeqNum and AckNum of the corresponding TCP service node;
the User node of the TCP tracking table naturally grows along with the time, and is reset to 0 every time the User has new TCP data transmission; when no TCP data is transmitted for a period of time, judging that the User node is aged, quitting the joint processing by the User, and deleting the carried TCP service node;
the method for maintaining the TCP unacknowledged message queue comprises the following steps:
MAC layer data frame containing TCP data segment not confirmed by BA will be moved to corresponding unconfirmed message queue; the initial time stamp is 0, and the time stamp is updated by a timer with the period of 10 ms;
when the data frame exists in the queue for more than 100ms, removing the message from the unconfirmed message queue, and performing software retransmission;
when AckNum of the TCP service is confirmed for three times, removing the data frame which has more than 50ms and SeqNum more than the latest AckNum from the unconfirmed message queue, and performing software retransmission;
for the data frame with SeqNum smaller than the latest AckNum, the data frame is naturally released, and software retransmission is not carried out;
and when the new BA frame is correctly received, removing the corresponding data frame in the 'hole' formed between the TCP AckNum and the acknowledgement of the new BA frame from the unacknowledged message queue, and performing software retransmission.
Further, in the first step, for a BA frame loss, only an MAC layer data frame containing a TCP data segment that is really lost in an air interface is retransmitted, where the TCP data segment that needs to be retransmitted is an air interface;
for TCP data message segments belonging to the same PPDU, if the Seq sequence number is less than the returned latest TCP ACK sequence number, the corresponding data frame is correctly received by the edge user; if the Seq serial number is greater than the latest returned TCP ACK serial number, it indicates that the corresponding data frame is really lost in the air interface, a data "hole" is generated, and retransmission is required.
Further, in the second step, a TCP tracking table is dynamically established, the TCP tracking table adopts a double-layer Hash table structure, a corresponding user node is found by Hash for the first time, and information in the user node marks whether the user needs to start the combined processing; starting the user of the combined processing to perform the Hash search for the second time, wherein the search result is a certain TCP service node under the user;
if the user is an edge user, the TCP tracking table records and tracks each TCP service, and if the user is no longer an edge user, the TCP tracking table releases the TCP service node and no longer tracks each TCP service.
Further, in the third step, the TCP acknowledgement segments acknowledged three times in uplink should be filtered into one TCP acknowledgement segment to be sent to the TCP layer; TCP acknowledgement segments that are smaller than the AckNum in the TCP service node may also be filtered out.
Another object of the present invention is to provide a joint processing terminal implementing TCP acknowledgement and mac acknowledgement as based on WiFi network.
Another object of the present invention is to provide a computer program product stored on a computer readable medium, which includes a computer readable program for providing a user input interface to implement the method for jointly processing TCP acknowledgement and mac acknowledgement based on WiFi network when the computer program product is executed on an electronic device.
Another object of the present invention is to provide a computer-readable storage medium storing instructions which, when executed on a computer, cause the computer to execute the method for jointly processing TCP acknowledgement and mac acknowledgement based on WiFi network.
By combining all the technical schemes, the invention has the advantages and positive effects that: the combined processing method based on the WiFi network TCP confirmation and MAC confirmation provided by the invention utilizes an IEEE 802.11 MAC layer fast confirmation mechanism and a TCP protocol reliable transmission mechanism, and the information redundancy of the two mechanisms, and judges which MAC layer data frames are really lost in an air interface in a PPDU which is not responded by a BA frame. A TCP tracking table and an unconfirmed message queue structure are customized on the MAC layer of the wireless router, so that the recording and tracking of each TCP connection condition of a user are realized, and the MAC layer replaces the TCP layer to perform overtime retransmission and quick retransmission.
The invention can further judge which downlink MAC layer data frames are really lost in the air interface under the condition that the BA frame is lost for the edge user carrying out TCP service, thereby only retransmitting the real lost MAC layer data frames and reducing the waste of air interface resources caused by unnecessary data retransmission. The overtime retransmission and the rapid retransmission of the TCP service are carried out on the MAC layer of the wireless router, so that the times of triggering TCP layer congestion avoidance by the edge user are reduced, and the TCP service quality of the edge user is improved.
The invention utilizes the TCP confirmation and MAC confirmation combined processing technology, utilizes the information redundancy of an IEEE 802.11 MAC layer block confirmation mechanism and a TCP protocol reliable transmission mechanism on the MAC layer of the wireless router, further judges whether the MAC layer data frame containing the TCP data message segment is necessary to be retransmitted, simultaneously replaces the TCP layer on the MAC layer to realize an overtime retransmission and quick retransmission mechanism, and filters the uplink repeated TCP confirmation message segment, thereby saving air interface resources, reducing the times of TCP layer congestion avoidance and improving the service quality of the TCP service of edge users.
The technical effect or experimental effect of comparison is as follows:
the technical scheme of the invention has obvious optimization effect on the downlink throughput and time delay of the TCP service of the edge user, wherein the throughput is improved to 7.08Mbps from 3.13Mbps, the service round-trip time is reduced to 82.56ms from 142.44ms, and the technical scheme effectively improves the service quality of the TCP service of the edge user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained from the drawings without creative efforts.
Fig. 1 is a flowchart of a joint processing method for TCP acknowledgement and mac acknowledgement based on a WiFi network according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a combined processing method for TCP acknowledgement and mac acknowledgement based on a WiFi network according to an embodiment of the present invention.
Fig. 3 is a general design flow architecture diagram of a TCP acknowledgement and MAC acknowledgement joint processing technology route provided by an embodiment of the present invention;
in the figure: FIG. (a) is a schematic diagram of an upstream process flow; FIG. b is a schematic diagram of the downlink process flow.
Fig. 4 is a flowchart of a method for identifying a data "hole" according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a dynamic establishment process of a TCP trace table according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a TCP service node according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of a TCP unacknowledged message queue according to an embodiment of the present invention.
Fig. 8 is a block diagram illustrating implementation of the technical solution on a hi1151 wireless chip according to an embodiment of the present invention. And (5) a performance test scene graph.
Fig. 9 is a result diagram of a single test of the TCP service downlink throughput of an edge user under the original version engineering provided in the embodiment of the present invention.
Fig. 10 is a diagram illustrating a single test result of the downstream throughput of the TCP traffic of the edge user according to the embodiment of the present invention.
Fig. 11 is a diagram of a single test result of the downlink round trip time of the TCP service of the edge user in the original version engineering provided in the embodiment of the present invention.
Fig. 12 is a diagram of a single test result of the downstream round trip time of the TCP traffic of the edge user according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Aiming at the problems in the prior art, the invention provides a combined processing method of TCP acknowledgement and mac acknowledgement based on a WiFi network, and the invention is described in detail below with reference to the accompanying drawings.
The combined processing method based on the TCP confirmation and the mac confirmation of the WiFi network provided by the embodiment of the invention comprises the following steps: through an IEEE 802.11 MAC layer fast acknowledgement mechanism and a TCP protocol transmission mechanism, information redundancy of the two mechanisms is utilized to judge which MAC layer data frames are really lost in an air interface in a PPDU which is not responded by a BA frame; a TCP tracking table and an unconfirmed message queue structure are customized on the MAC layer of the wireless router, the connection condition of each TCP of a user is recorded and tracked, and overtime retransmission and quick retransmission are carried out on the MAC layer instead of the TCP layer.
As shown in fig. 1, a method for jointly processing TCP acknowledgement and mac acknowledgement based on a WiFi network according to an embodiment of the present invention includes the following steps:
s101, a tracking mechanism for TCP services is established in an MAC layer of the wireless router, and the wireless router judges whether the MAC layer data frame is lost in a vacuum port when a BA frame is not received or not by analyzing an uplink TCP acknowledgement message segment, so that the MAC layer data frame is retransmitted selectively.
S102, the TCP service tracking mechanism records the confirmation condition of the uplink and downlink data flow of each TCP service in real time according to the sequence number field in the uplink and downlink TCP message segments.
S103, for the MAC layer data frame which does not receive the BA frame and contains the TCP data segment, if the TCP data segment is confirmed by the later uplink TCP confirmation segment, the MAC layer does not need to retransmit the corresponding data frame, and if the TCP confirmation segment of the TCP data segment is not confirmed in the specified time, the MAC layer needs to retransmit the corresponding data frame.
The present invention will be further described with reference to the following examples.
A TCP confirmation and MAC confirmation combined processing technology is characterized in that information redundancy of an IEEE 802.11 MAC layer block confirmation mechanism and a TCP protocol reliable transmission mechanism is utilized on an MAC layer of a wireless router to further judge whether a MAC layer data frame containing a TCP data message segment needs to be retransmitted or not, meanwhile, an overtime retransmission and quick retransmission mechanism is realized on the MAC layer instead of a TCP layer, and an uplink repeated TCP confirmation message segment is filtered, so that air interface resources are saved, the congestion avoidance times of the TCP layer are reduced, and the service quality of TCP services of edge users is improved.
A schematic diagram of a joint processing method based on TCP acknowledgement and mac acknowledgement of a WiFi network is shown in fig. 2.
The present invention will be further described with reference to the following examples.
Examples
Aiming at the problem that the MAC confirmation of the edge user is easy to lose in the WiFi environment, the invention provides a TCP confirmation and MAC confirmation combined processing technology.
1. TCP acknowledgement and MAC acknowledgement joint processing technology route
Firstly, a TCP service tracking mechanism is established in an MAC layer of the wireless router, so that the wireless router can judge whether the MAC layer data frame is lost in an air interface when a BA frame is not received by analyzing an uplink TCP acknowledgement message segment, thereby selectively retransmitting the MAC layer data frame. The TCP service tracking mechanism records the confirmation condition of the uplink and downlink data flow of each TCP service in real time according to the sequence number field in the uplink and downlink TCP message segments, and for the MAC layer data frame which does not receive the BA frame and contains the TCP data message segment, if the TCP data message segment is confirmed by the later uplink TCP confirmation message segment, the MAC layer does not need to retransmit the corresponding data frame, and if the TCP confirmation message segment of the TCP data message segment is not received in the specified time, the MAC layer needs to retransmit the corresponding data frame.
(1) Technical process architecture
The key of the TCP confirmation and MAC confirmation combined processing technology is that a TCP tracking table is maintained on an MAC layer of a wireless router, each TCP connection condition of an edge user is recorded and tracked, and a message queue is maintained for each TCP service. The overall design flow architecture is shown in fig. 3, and includes two parts, an uplink processing flow and a downlink processing flow.
(2) Identification of data "holes
For BA frame loss, the normal operation is software retransmission of the entire PPDU. And the joint processing technology of TCP confirmation and MAC confirmation only retransmits the MAC layer data frame which is really lost in the air interface and contains the TCP data segment, and the TCP data segment which needs to be retransmitted is called as a 'hole'.
For TCP data message segments belonging to the same PPDU, if the Seq sequence number is less than the returned latest TCP ACK sequence number, the corresponding data frame is correctly received by the edge user; if the Seq serial number is greater than the latest returned TCP ACK serial number, it indicates that the corresponding data frame is really lost in the air interface, a data "hole" is generated, and retransmission is required.
The identification process of the data "holes" is shown in FIG. 4.
(3) The TCP tracking table is dynamically established, the TCP tracking table adopts a double-layer Hash table structure, the Hash finds a corresponding user node for the first time, and information in the user node marks whether the user needs to start the 'combined processing'. The user who starts the "joint processing" can perform the Hash lookup for the second time, and the lookup result is a certain TCP service node under the user.
If a user is an edge user, the TCP trace table will record and trace each TCP traffic, and if the user is no longer an edge user, the TCP trace table will release its TCP traffic node and not trace each TCP traffic.
The dynamic establishment process of the TCP tracking table is shown in FIG. 5, and the structure of the TCP service node is shown in FIG. 6.
In the TCP service node structure, the meaning of each field is as follows:
1) TCP information group: DstMac is the destination MAC address, DstIp is the destination IP address, SrcIp is the source IP address, DstPort is the destination port number, SrcPort is the source port number.
2) SeqNum: the TCP traffic is sent with the latest sequence number downstream.
3) AckNum: the TCP traffic goes up with the latest acknowledgement sequence number.
4) TriFlag: whether the uplink Ack sequence number of the TCP service is repeated more than three times.
5) Listentry: the service does not acknowledge the message queue entry.
6) NextNode: pointing to the user, next TCP service node.
(4) TCP trace table maintenance
Identifying the TCP head of each TCP data segment or TCP confirmation segment in the uplink and downlink directions at the MAC layer, if the TCP connection is a new TCP connection of an edge user, newly adding a corresponding 'TCP service node' in a TCP tracking table, if the node exists, updating the values of 'SeqNum' and 'AckNum', and if the TCP repeated confirmation segment in the uplink is repeated, recording whether the 'AckNum' is repeated more than three times.
For the MAC layer data frame containing TCP data message section which is not confirmed by BA, it will be put into the unconfirmed message queue pointed by "ListNode" of corresponding TCP service node. And for the MAC layer data frame which is confirmed by the BA bitmap and contains the TCP data message segment, extracting a TCP header information group, and updating 'SeqNum' and 'AckNum' of the corresponding TCP service node.
The User node of the TCP trace table has aging property. The User node has a time stamp, naturally increases along with time, and is reset to 0 every time the User has new TCP data transmission. Therefore, the purposes of dynamically allocating the memory and saving resources are achieved.
The TCP unacknowledged message queue is shown in figure 7.
In the TCP unacknowledged message queue, the meaning of each field is as follows:
1) listentry: is the entry of a single TCP traffic unacknowledged message queue.
2) Sk _ buff: the data frame storage structure of the MAC layer is provided, and the skb heads can be concatenated into a bidirectional linked list.
3) Time: a timestamp identifying how long the data frame has been in the unacknowledged message queue.
(5) Maintenance of TCP unacknowledged message queues
MAC layer data frames containing TCP data segments that are not acknowledged by the BA are moved to the corresponding unacknowledged message queue. The initial timestamp is 0, which is updated by a timer period of 10 ms.
And when the data frame exists in the queue for more than 100ms, removing the message from the unconfirmed message queue, and performing software retransmission.
And when the AckNum of the TCP service is confirmed for three times, removing the data frame which has more than 50ms and SeqNum larger than the latest AckNum from the unacknowledged message queue, and performing software retransmission.
And for the data frame with the SeqNum smaller than the latest AckNum, the data frame is naturally released, and software retransmission is not carried out.
And when the new BA frame is correctly received, removing the corresponding data frame in the 'hole' formed between the TCP AckNum and the acknowledgement of the new BA frame from the unacknowledged message queue, and performing software retransmission.
(6) Filtering TCP acknowledgement segments
Because, the timeout retransmission and the fast retransmission are performed on the TCP traffic at the MAC layer. The TCP acknowledgement segments for three acknowledgements on the uplink should be filtered to be one TCP acknowledgement segment to the TCP layer to prevent triggering fast retransmission and congestion avoidance of the TCP layer.
TCP acknowledgement segments that are smaller than the AckNum in the TCP service node may also be filtered out.
2. The invention utilizes the IEEE 802.11 MAC layer fast acknowledgement mechanism and the TCP protocol reliable transmission mechanism, and the information redundancy of the two mechanisms to judge which MAC layer data frames are really lost in the air interface in the PPDU which is not responded by the BA frame.
A TCP tracking table and an unconfirmed message queue structure are customized on the MAC layer of the wireless router, so that the recording and tracking of each TCP connection condition of a user are realized, and the MAC layer replaces the TCP layer to perform overtime retransmission and quick retransmission.
3. The invention can further judge which downlink MAC layer data frames are really lost in the air interface under the condition that the BA frame is lost for the edge user carrying out TCP service, thereby only retransmitting the real lost MAC layer data frames and reducing the waste of air interface resources caused by unnecessary data retransmission.
The overtime retransmission and the rapid retransmission of the TCP service are carried out on the MAC layer of the wireless router, so that the times of triggering TCP layer congestion avoidance by the edge user are reduced, and the TCP service quality of the edge user is improved.
The invention can be implemented by modifying the MAC layer logic code in the wireless chip of the wireless router, for example, the wireless chip based on the Linux system, the MAC layer module code is modified, a file containing the technical scheme that the suffix of the MAC layer module is ko is obtained by compiling, and the file is burnt into the wireless chip through the serial port to cover the original engineering code, so that the MAC layer of the wireless chip has the functions of the technical scheme.
The present invention is further described below in conjunction with the experimental results.
The technical effect or experimental effect of comparison is as follows:
the technical scheme is realized on a hi1151 wireless chip. The performance test scenario is shown in fig. 8.
The system comprises a dual-antenna wireless router provided with a hi1151 wireless chip, two notebook computers and a smart phone. The configuration parameters are as follows:
wireless router usage protocol IEEE 802.11n
Channel bandwidth 20MHz
Notebook computer
1 Smooth TCP traffic flow
Notebook computer
2 Smooth TCP traffic flow
The smart phone is used as an edge user, and the test compares the downlink throughput and the time delay test data of the edge user in the original engineering and technical scheme.
(1) Throughput comparison
Under the original version engineering, the single test result of the TCP service downlink throughput of the edge user is shown in fig. 9, and is drawn by using the self-carried statistical function of WireShark, where the left vertical axis is the length of the packet segment (the curve of which with time is a black horizontal line at the top of the graph), and the right vertical axis is the throughput (the curve of which with time is a wavy line in the graph).
Then, the test is repeated for 10 times, and the average value of the downlink throughput test of the TCP service of the edge user is 3.13 Mbps.
Under the technical scheme, a single test result of the TCP service downlink throughput of the edge user is shown in fig. 10.
Then, the test is repeated for 10 times, and the average value of the downlink throughput test of the TCP service of the edge user is 7.08 Mbps.
(2) Time delay comparison
Under the original version engineering, the result of the single test of the downlink round trip time of the TCP service of the edge user is shown in fig. 11.
Then, the test is repeated 10 times, and the average value of the downlink round trip time test of the edge user TCP traffic is 142.44 ms.
In the present invention, the result of a single test of the downlink round trip time of the TCP service of the edge user is shown in fig. 12.
Then, the test is also repeated 10 times, and the average value of the downlink round trip time test of the TCP traffic of the edge user is 82.56 ms.
(3) Performance testing
The technical scheme of the invention has obvious optimization effect on the downlink throughput and time delay of the TCP service of the edge user, wherein the throughput is improved to 7.08Mbps from 3.13Mbps, the service round-trip time is reduced to 82.56ms from 142.44ms, and the technical scheme effectively improves the service quality of the TCP service of the edge user.
It should be noted that the embodiments of the present invention can be realized by hardware, software, or a combination of software and hardware. The hardware portion may be implemented using dedicated logic; the software portions may be stored in a memory and executed by a suitable instruction execution system, such as a microprocessor or specially designed hardware. Those skilled in the art will appreciate that the apparatus and methods described above may be implemented using computer executable instructions and/or embodied in processor control code, such code being provided on a carrier medium such as a disk, CD-or DVD-ROM, programmable memory such as read only memory (firmware), or a data carrier such as an optical or electronic signal carrier, for example. The apparatus and its modules of the present invention may be implemented by hardware circuits such as very large scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., or by software executed by various types of processors, or by a combination of hardware circuits and software, e.g., firmware.
The above description is only for the purpose of illustrating the present invention and the appended claims are not to be construed as limiting the scope of the invention, which is intended to cover all modifications, equivalents and improvements that are within the spirit and scope of the invention as defined by the appended claims.

Claims (5)

1. A joint processing method based on WiFi network TCP confirmation and mac confirmation is characterized by comprising the following steps:
judging which MAC layer data frames in the PPDU which are not responded by the BA frame are really lost in an air interface through the information redundancy of an MAC layer confirmation mechanism and a TCP protocol transmission mechanism;
recording and tracking each TCP connection condition of a user in an MAC layer of the wireless router through a TCP tracking table and an unconfirmed message queue structure, and performing overtime retransmission and quick retransmission on the MAC layer instead of the TCP layer;
the combined processing method based on the TCP confirmation and the mac confirmation of the WiFi network comprises the following steps:
step one, a tracking mechanism for TCP service is established in an MAC layer of a wireless router, the wireless router judges whether an MAC layer data frame is lost in an air interface when a BA frame is not received or not by analyzing an uplink TCP acknowledgement message segment, and the MAC layer data frame is retransmitted selectively;
maintaining a TCP tracking table on an MAC layer of the wireless router, recording and tracking each TCP connection condition of an edge user, and maintaining a message queue for each TCP service;
the maintenance method of the TCP tracking table comprises the following steps:
identifying the TCP head of each TCP data segment or TCP confirmation segment in the uplink and downlink directions on an MAC layer, if the TCP head is a new TCP connection of an edge user, newly adding a corresponding TCP service node in a TCP tracking table, if the node exists, updating the values of ' SeqNum ' and ' AckNum ', and recording whether the AckNum ' is repeated more than three times for the uplink TCP repeated confirmation segment;
for MAC layer data frames containing TCP data message segments which are not confirmed by BA, placing the MAC layer data frames into an unconfirmed message queue pointed by a ListNode of a corresponding TCP service node; for the MAC layer data frame containing the TCP data message segment confirmed by the BA bitmap, extracting a TCP head information group, and updating the SeqNum and AckNum of the corresponding TCP service node;
the User node of the TCP tracking table naturally grows along with the time, and is reset to 0 every time the User has new TCP data transmission; when no TCP data is transmitted for a period of time, judging that the User node is aged, quitting the joint processing by the User, and deleting the carried TCP service node;
the method for maintaining the TCP unacknowledged message queue comprises the following steps:
MAC layer data frame containing TCP data segment not confirmed by BA will be moved to corresponding unconfirmed message queue; the initial time stamp is 0, and the time stamp is updated by a timer with the period of 10 ms;
when the data frame exists in the queue for more than 100ms, removing the message from the unconfirmed message queue, and performing software retransmission;
when AckNum of the TCP service is confirmed for three times, removing the data frame which has more than 50ms and SeqNum more than the latest AckNum from the unconfirmed message queue, and performing software retransmission;
for the data frame with SeqNum smaller than the latest AckNum, the data frame is naturally released, and software retransmission is not carried out;
when the new BA frame is correctly received, removing a corresponding data frame in a 'hole' formed between the TCP AckNum and the confirmation of the new BA frame from an unconfirmed message queue, and performing software retransmission;
secondly, the TCP service tracking mechanism records the confirmation condition of the uplink and downlink data streams of each TCP service in real time according to the sequence number field in the uplink and downlink TCP message segments;
and step three, for the MAC layer data frame which does not receive the BA frame and contains the TCP data message segment, if the TCP data message segment is confirmed by the later uplink TCP confirmation message segment, the MAC layer does not need to retransmit the corresponding data frame, and if the TCP confirmation message segment of the TCP data message segment is not confirmed in the specified time, the MAC layer needs to retransmit the corresponding data frame.
2. The WiFi network-based joint processing method of TCP acknowledgement and MAC acknowledgement according to claim 1, wherein in the step one, for a BA frame loss, only a MAC layer data frame containing a TCP data segment that is really lost in an air interface is retransmitted, and the TCP data segment contained in the MAC layer data frame that needs to be retransmitted is a hole;
for TCP data message segments belonging to the same PPDU, if the Seq sequence number is less than the returned latest TCP ACK sequence number, the corresponding data frame is correctly received by the edge user; if the Seq serial number is greater than the latest returned TCP ACK serial number, it indicates that the corresponding data frame is really lost in the air interface, a data "hole" is generated, and retransmission is required.
3. The WiFi network based joint processing method of TCP ack and mac ack as claimed in claim 1, wherein in said second step, if the user is an edge user, the TCP tracking table records and tracks each TCP traffic, if the user is no longer an edge user, the TCP tracking table will release its TCP traffic node and no longer track each TCP traffic.
4. The WiFi network based joint processing method of TCP ack and mac ack as claimed in claim 1, wherein in the third step, TCP ack segments of three uplink acknowledgments should be filtered into one TCP ack segment to be sent to TCP layer; TCP acknowledgement segments that are smaller than the AckNum in the TCP service node may also be filtered out.
5. A computer-readable storage medium storing instructions which, when executed on a computer, cause the computer to perform the method of jointly processing TCP acknowledgements and mac acknowledgements based on a WiFi network according to any one of claims 1 to 4.
CN202010513499.1A 2020-06-08 2020-06-08 TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network Active CN111669254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010513499.1A CN111669254B (en) 2020-06-08 2020-06-08 TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010513499.1A CN111669254B (en) 2020-06-08 2020-06-08 TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network

Publications (2)

Publication Number Publication Date
CN111669254A CN111669254A (en) 2020-09-15
CN111669254B true CN111669254B (en) 2021-07-30

Family

ID=72385755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010513499.1A Active CN111669254B (en) 2020-06-08 2020-06-08 TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network

Country Status (1)

Country Link
CN (1) CN111669254B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411820B (en) * 2021-06-17 2022-06-17 武汉理工大学 VR service optimization method, system and storage medium in WIFI environment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377823A (en) * 2011-10-18 2012-03-14 北京优朋普乐科技有限公司 Method and system for realizing interactive sharing among multiple screens and multiple users by sliding screens
CN104580233A (en) * 2015-01-16 2015-04-29 重庆邮电大学 Internet of Things smart home security gateway system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7035283B2 (en) * 2000-04-07 2006-04-25 Negus Kevin J Asymmetric data traffic throughput in CSMA/CA networks
US10356652B2 (en) * 2014-10-06 2019-07-16 Vid Scale, Inc. Adapting communication parameters to link conditions, traffic types, and/or priorities
CN109525374B (en) * 2017-09-20 2020-10-16 华为技术有限公司 Data transmission method, wireless access point, user equipment and transmission equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377823A (en) * 2011-10-18 2012-03-14 北京优朋普乐科技有限公司 Method and system for realizing interactive sharing among multiple screens and multiple users by sliding screens
CN104580233A (en) * 2015-01-16 2015-04-29 重庆邮电大学 Internet of Things smart home security gateway system

Also Published As

Publication number Publication date
CN111669254A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
KR102249741B1 (en) Method and apparatus for data transmission
Chaskar et al. TCP over wireless with link level error control: Analysis and design methodology
US10601554B2 (en) Packet transmission method and user equipment
WO2018082615A1 (en) Method and device for sending messages, chip and terminal
EP1458166B1 (en) Apparatus and method for increasing throughput of transmission of QOS driven packets
US9030936B2 (en) Flow control with reduced buffer usage for network devices
US8649279B2 (en) Apparatus and method for adaptive TSP setting to minimize duplicate packet transmissions
CN102833783B (en) Method for optimizing terminal control protocol (TCP) under wireless environment
WO2018177014A1 (en) Method and device for adjusting data sending rate of terminal
Paul et al. An AQM based congestion control for eNB RLC in 4G/LTE network
CN103346963A (en) MPTCP data scheduling method based on forecast arrival time
WO2013159516A1 (en) Wireless side tcp data retransmission method and device
US10524256B2 (en) Method of adaptive TTI tuning
Hu et al. Hierarchical cache design for enhancing TCP over heterogeneous networks with wired and wireless links
CN111669254B (en) TCP (transmission control protocol) confirmation and mac confirmation joint processing method based on WiFi (Wireless Fidelity) network
JP2013085135A (en) Network terminal device and data transmission method
WO2012159580A1 (en) Method, network access device and system for obtaining quality of terminal communication link
CN107659959B (en) Method for reporting data receiving state in private network wireless communication system
EP4164277A1 (en) Protocol data unit processing method and apparatus, sending device and storage medium
JP7123194B2 (en) Data transmission method, transmission device, data reception method, and reception device
CN109756309B (en) Method, apparatus and medium for deactivating secondary member carrier
Cheng et al. TCP selective negative acknowledgment over IEEE 802.11 wireless networks
US20230013093A1 (en) Traffic Control Method and Apparatus
US20240014939A1 (en) Radio Link Control Cumulative Mode for New Radio
WO2024007572A1 (en) Packet processing method and apparatus, storage medium, and program product

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
GR01 Patent grant
GR01 Patent grant