CN109315018B - Method and device for acquiring message processing delay - Google Patents

Method and device for acquiring message processing delay Download PDF

Info

Publication number
CN109315018B
CN109315018B CN201680086560.0A CN201680086560A CN109315018B CN 109315018 B CN109315018 B CN 109315018B CN 201680086560 A CN201680086560 A CN 201680086560A CN 109315018 B CN109315018 B CN 109315018B
Authority
CN
China
Prior art keywords
message
data
receiving
time
sta
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
CN201680086560.0A
Other languages
Chinese (zh)
Other versions
CN109315018A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN109315018A publication Critical patent/CN109315018A/en
Application granted granted Critical
Publication of CN109315018B publication Critical patent/CN109315018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method and equipment for obtaining message processing delay, wherein the method comprises the following steps: receiving a message notification message, and acquiring the time for receiving the message notification message as first receiving time, wherein the message notification message is used for indicating to start the processing of a data message; acquiring a data message according to the indication of the message notification message, and processing the data message to obtain a processed data message; sending a data message to the STA, and acquiring the time for receiving the confirmation message returned by the STA as second receiving time; and calculating the processing delay of the data message according to the first receiving time and the second receiving time. The embodiment of the invention can determine whether the wireless AP in the WIFI network is a fault point.

Description

Method and device for acquiring message processing delay
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and equipment for obtaining message processing delay.
Background
A Wireless Local Access Network (WLAN) is a Network formed by replacing part or all of transmission media in a wired Local area Network with Wireless channels of various radio waves (such as laser, infrared, radio frequency, etc.). WLANs are now widely used in business areas, universities, airports and other public areas.
In the prior art, a wireless local area network system is a WIFI system, and mainly includes a wireless Access Point (AP for short) and a Station (STA for short), where the STA accesses the WIFI network through the wireless AP. At present, the WiFi network is complex in condition, and poor network performance can be caused by a plurality of reasons. Currently, the most common method for judging network performance is website speed measurement, that is, STA connects to a speed measurement website to measure speed, and judges whether the whole network has problems or not according to the speed measurement result, and whether the performance meets the requirements or not.
However, the website speed measurement method can only test the performance from the STA to the speed measurement website, and cannot locate the fault point of the WiFi network, so that the fault is difficult to troubleshoot and eliminate.
Disclosure of Invention
The embodiment of the invention provides a method and equipment for acquiring message processing delay, which are used for determining whether a wireless AP in a WIFI network is a fault point.
In one aspect, the present invention provides a method for obtaining message processing delay, which is applied to a wireless AP, and the method includes:
receiving a message notification message, and acquiring time for receiving the message notification message as first receiving time, where the message notification message is used to instruct to start processing of a data message, and after receiving the message notification message, the data message processing needs to be started, that is, according to the instruction of the message notification message, a data message is acquired and processed to obtain a processed data message, where the processing includes at least one of the following: storing the acquired data message into a memory of a wireless AP, performing conversion processing such as aggregation and fragmentation on the data message, scheduling the data message, and competing air interface resources required by the transmission of the data message; after processing the data message, sending the data message to the STA, receiving an acknowledgement message returned by the STA, and acquiring time for receiving the acknowledgement message returned by the STA as second receiving time; and calculating the processing delay of the data message according to the first receiving time and the second receiving time.
In one possible design, the processing includes processing the data packet to obtain a processed data packet when the processing includes converting the data packet, and the processing includes:
carrying out fragmentation processing on the data messages to obtain a plurality of first data messages;
the sending the data packet to the STA and acquiring a time for receiving an acknowledgement packet returned by the STA as a second receiving time include:
sequentially sending the plurality of first data messages to the STA; receiving the time of first confirmation messages returned by the STA aiming at the first data messages, and acquiring the time of receiving the first confirmation messages returned by the STA; and taking the time of receiving the last first confirmation message as the second receiving time.
In one possible design, the processing includes processing the data packet to obtain a processed data packet when the processing includes converting the data packet, and the processing includes:
performing aggregation processing on the data message and other data messages to obtain a second data message;
the sending the data packet to the STA and acquiring a time for receiving an acknowledgement packet returned by the STA as a second receiving time include:
sending the second data message to the STA; receiving a second confirmation message returned by the STA aiming at the second data message, and acquiring the time for receiving the second confirmation message returned by the STA; the second acknowledgement message includes indication information for indicating whether the data message is successfully received, and if the second acknowledgement message includes reception information for indicating that the data message is successfully received, the time for receiving the second acknowledgement message is used as the second reception time.
In one possible design, the receiving a message notification message includes:
receiving a message notification message sent by an Ethernet switch in the wireless AP, wherein a data message of a wide area network enters the wireless AP from a WAN interface of the wireless AP and is transmitted to the Ethernet switch, and the Ethernet switch can send the message notification message to indicate that the processing of the data message is started;
the obtaining a data message according to the indication of the message notification message, and processing the data message to obtain a processed data message, including:
and acquiring a data message from the storage space of the Ethernet switch according to the indication of the message notification message, and processing the data message to obtain a processed data message.
In another aspect, an embodiment of the present invention provides a wireless AP, including: the system comprises a Wide Area Network (WAN) interface, a wireless fidelity (WIFI) interface, an Ethernet switch and a processor; wherein
The WAN interface of the wide area network is used for receiving data messages from the wide area network;
the Ethernet switch is used for performing switching processing on the data message received by the WAN interface and storing the data message into a storage space of the Ethernet switch;
the Ethernet switch is also used for sending a message notification message to the processor;
the processor is configured to receive a message notification message sent by the ethernet switch, and acquire a time for receiving the message notification message as a first receiving time, where the message notification message is used to instruct to start processing of a data message;
the processor is further configured to obtain the data packet from the storage space of the ethernet switch according to the indication of the packet notification message, and process the data packet to obtain a processed data packet, where the processing includes at least one of: storing the data message, converting the data message, scheduling the data message, and competing the air interface sending opportunity of the data message;
the processor is further configured to send the data packet to an STA through the WIFI interface, and obtain a time for receiving a confirmation packet returned by the STA, as a second receiving time;
the processor is further configured to calculate a processing delay of the data packet according to the first receiving time and the second receiving time.
In one possible design, when the processing includes converting the data packet,
the processor is specifically configured to perform fragmentation processing on the data packets to obtain a plurality of first data packets;
sequentially sending the plurality of first data messages to the STA through the WIFI interface;
acquiring time for receiving each first confirmation message returned by the STA;
and taking the time of receiving the last first confirmation message as the second receiving time.
In one possible design, when the processing includes converting the data packet,
the processor is specifically configured to perform aggregation processing on the data packet and other data packets to obtain a second data packet;
sending the second data message to the STA through the WIFI interface;
acquiring time for receiving a second confirmation message returned by the STA;
and if the second confirmation message comprises receiving information used for indicating that the data message is successfully received, taking the time for receiving the second confirmation message as the second receiving time.
In one possible design, the wireless AP further includes a WIFI chip system, and the processor and the WIFI interface are located in the WIFI chip system.
The method and apparatus for obtaining a message processing delay according to this embodiment receive a message notification message and obtain a time for receiving the message notification message as a first receiving time, where the first receiving time is a starting time for processing a data message, obtain a data message according to an indication of the message notification message after obtaining the first receiving time, process the data message to obtain a processed data message, send the data message to an STA, and obtain a time for receiving an acknowledgement message returned by the STA as a second receiving time, where the second receiving time is a time for successfully sending the acknowledgement message, and according to the first receiving time and the second receiving time, calculate a processing delay of the data message, and according to the processing delay, may monitor a service quality of a wireless AP, and when a network performance does not meet a standard, if a value of the processing delay exceeds a preset value, the wireless AP is indicated to be in fault, so that the device in fault can be positioned as the wireless AP.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a system architecture diagram of a wireless lan system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for obtaining a message processing delay according to an embodiment of the present invention;
fig. 3 is a schematic view of a processing scenario of a data packet provided in the present invention;
fig. 4 is a first schematic flow chart of data packet transmission according to an embodiment of the present invention;
fig. 5 is a first schematic diagram illustrating a data packet transmission process according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of data packet transmission according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a data packet transmission process according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of the wireless AP provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a system architecture diagram of a Wireless Local Area network system according to an embodiment of the present invention, and as shown in fig. 1, the Wireless Local Area Network (WLAN) system according to the embodiment includes a Wireless Access Point (Access Point, AP for short) and a workstation (STA for short), and the STA accesses an ethernet through the Wireless AP. The WIFI-based wireless local area network system is realized based on IEEE 802.11 series standards, and is a wireless local area network using high-frequency wireless radio frequency (such as wireless electromagnetic waves with frequency bands of 2.4GHz, 5GHz, 60GHz and the like) as a transmission medium.
The wireless AP is a wireless switch for a wireless network and is also a core of the wireless network. Wireless APs are access points for mobile computer users to access wired networks, primarily for use in broadband homes, inside buildings, and inside parks, typically covering distances from tens of meters to hundreds of meters. Wireless access points AP can be integrated in a wireless router, a part of Digital Subscriber Line (DSL CPE), a terminal Device (Cable Modem, CM for short), and an Optical Network Unit (ONU for short).
The STA in the WLAN is generally a client, and may be a computer equipped with a wireless network card, or a smart phone, a smart television, a PAD, a movie box, etc. with a WiFi module. The STAs may be mobile or stationary.
When the wireless AP communicates with the STA, the wireless AP may acquire a downlink packet from the ethernet and then transmit the downlink packet to the STA, or the STA may transmit an uplink packet to the wireless AP and then transmit the uplink packet to the ethernet. The message related in this embodiment is mainly a downlink message received by the wireless AP from the ethernet.
Fig. 1 shows only one system architecture of the wireless lan system, and for other system architectures, as far as the connection between the wireless AP and the STA is concerned, the protection scope of the present invention is included. For other system architectures, the present embodiment is not described herein again.
Based on the problem that a fault point of a WiFi network cannot be located in a wireless local area network system, an embodiment of the present invention provides a method for obtaining a message processing delay, by which a processing delay of a wireless AP in processing a data message can be obtained, and according to the processing delay, it can be determined whether a fault of the WiFi network is generated by the AP in the system architecture. The following examples are given for illustrative purposes.
Fig. 2 is a flowchart of a method for obtaining a message processing delay according to an embodiment of the present invention. Fig. 3 is a schematic view of a processing scenario of a data packet provided in the present invention. As shown in fig. 3, the execution subject of the present embodiment is a processor in a wireless AP, and as shown in fig. 2, the method includes:
step 201, receiving a message notification message, and acquiring a time for receiving the message notification message as a first receiving time, where the message notification message is used to instruct to start processing of a data message.
Referring to fig. 3, a data packet of the WAN enters the wireless AP from a WAN (wide area network, WAN for short) interface of the wireless AP, and the data packet of the WAN may be, for example, a data packet of an ethernet. The WAN Interface is used to access the wireless AP to a wide area network, and may use ethernet access, Digital Subscriber Line (DSL) access, coaxial access (e.g., Data Over Cable Service Interface Specifications (DOCSIS), multimedia Over Cable Service Interface alliance MoCA), fiber access, power Line communication access, and the like.
After receiving the data packet, the WAN interface transmits the data packet to an ethernet switch (LSW), that is, the LSW receives the data packet from the wide area network through the WAN interface. After receiving the data message, the LSW performs an exchange process on the data message. After the exchange processing is completed, the LSW stores the data message into the storage space corresponding to the LSW, and then the LSW sends a message notification message to the processor.
The processor receives a message notification message sent by the LSW, and acquires the time for receiving the message notification message as a first time. The message notification message is used to indicate that the processing of the data message is to be started, and represents that the processor needs to start a processing flow for the data message.
Step 202, obtaining a data packet according to the indication of the packet notification message, and processing the data packet to obtain a processed data packet, wherein the processing includes at least one of the following: storing the data message, converting the data message, scheduling the data message, and competing the air interface sending opportunity of the data message.
After receiving the message notification message, the processor acquires the data message from the storage space of the LSW according to the indication of the message notification message, and then processes the data message to obtain a processed data message. The processing of the data message mainly includes at least one of the following processing. The following are detailed below.
And storing the data message. The processor obtains the data message from the storage space of the LSW and stores the data message in the memory of the wireless AP.
And converting the data message. The processor converts the data packet stored in the memory, for example, converts the data packet of the ethernet into a WIFI packet, i.e., a packet specified by the 802.11 protocol, or may also perform conversion processing such as aggregation and fragmentation on the data packet.
And scheduling the data message. Since there may be multiple data packets to be sent in the memory, the processor needs to schedule the data packets stored in the memory to determine the sending order of the data packets.
And competing the air interface sending opportunity of the data message. The processor contends for the air interface transmission opportunity according to a contention mechanism of WiFi, such as a contention mechanism of carrier sense multiple access/collision avoidance protocol (CSMA/CA). I.e. the channel required for contention data message transmission.
Those skilled in the art can understand that the above processing on the data packet may be performed by all the above processing procedures, or may perform several processing procedures. The embodiment is not particularly limited herein with respect to the specific implementation. When the above processes are all executed, the processes can be executed according to the processes of storage, conversion, scheduling and competition.
Step 203, sending the data packet to the STA, and obtaining a time for receiving an acknowledgement packet returned by the STA as a second receiving time.
And after the processor finishes processing the data message, the processor sends the data message to the STA through the WIFI chip. The WIFI chip can bear a WIFI interface, and the data message can be sent to the STA through the WIFI interface.
After receiving the data packet, the STA replies an acknowledgement packet to the wireless AP for the data packet to indicate that the data packet is successfully received. However, when some transmission errors may result in a loss of the acknowledgment packet or the acknowledgment packet indicates that the data packet received by the STA is erroneous, the wireless AP determines that the data packet transmission fails, the wireless AP starts a retransmission mechanism of the data packet, at this time, the wireless AP performs processing procedures such as scheduling and contention on the data packet again, and then retransmits the data packet, and if the data packet retransmission fails, the wireless AP determines that the data packet transmission fails, discards the data packet, and records the discarded data packet, thereby obtaining a packet loss rate.
Further, when the packet loss rate is calculated, statistics of packet loss statistics is performed according to the lost packet. For example, the total number of messages, the total traffic, the number of packet losses, the packet loss rate, and the like, where the packet loss rate may be the packet loss rate in each time interval.
Those skilled in the art can understand that the acknowledgment packet obtained in this embodiment may be an acknowledgment packet corresponding to a first-time transmission data packet, and may also be an acknowledgment packet corresponding to a retransmission process.
After the WIFI chip of the wireless AP receives the confirmation message, recording the time for receiving the confirmation message, and sending the time for receiving the confirmation message to the processor, wherein the processor takes the time as second time after acquiring the time for receiving the confirmation message.
Step 204, calculating the processing delay of the data message according to the first receiving time and the second receiving time.
After obtaining the first receiving time T1 and the second receiving time T2, the processor may calculate the processing delay of the data packet. Since the first receiving time is the time of receiving the message notification message, i.e. the time of preparing to start processing the data message. Therefore, the processing delay calculated by the first receiving time and the second receiving time mainly includes the processing delay of the processor in the processing process and the round trip delay, i.e. the delay of the processor in the processes of storing, converting, scheduling, competing and the like.
In calculating the processing delay, the processing delay may be obtained by way of T2-T1, or by way of various variations of T2-T1, such as in the form of aT2-bT1, or
Figure GPA0000261300610000101
Wherein a and b are delay coefficients.
It is understood by those skilled in the art that the present embodiment only takes one data packet as an example to illustrate the delay of the data packet. In a specific implementation process, the wireless AP may send a plurality of data packets to the STA, and at this time, the wireless AP may perform statistics on processing delays of a preset number of data packets. Thereby, the average delay, the maximum delay, the minimum delay, the statistical parameters of the delay in each time interval, etc. can be obtained.
The method for obtaining a message processing delay according to this embodiment obtains a message notification message by receiving the message notification message and obtaining a time for receiving the message notification message as a first receiving time, where the first receiving time is a starting time for processing a data message, obtains the data message according to an instruction of the message notification message after obtaining the first receiving time, processes the data message to obtain a processed data message, sends the data message to an STA, and obtains a time for receiving an acknowledgement message returned by the STA as a second receiving time, where the second receiving time is a time for successfully sending the acknowledgement message, and may calculate a processing delay of the data message according to the first receiving time and the second receiving time, and may monitor a service quality of a wireless AP according to the processing delay, where a value of the processing delay exceeds a preset value when a network performance does not meet a standard, the wireless AP is indicated to be in fault, so that the device in fault can be positioned as the wireless AP.
The following describes a specific implementation process of the processor converting the data message and acquiring the second receiving time in the above embodiments by using a detailed embodiment.
In a specific implementation process, the data messages entering from the WAN interface of the wireless AP and the data messages sent from the WIFI chip have multiple corresponding relationships, which may be one-to-one relationships, the data messages received by the WAN interface may also be fragmented into multiple messages to be sent from the WIFI chip, and the multiple data messages received by the WAN interface may also be aggregated into one message to be sent from the WIFI chip.
In a specific example, for example, when the wireless local area network is implemented based on the 802.11 protocol, the data packet needs to be converted into a packet specified by the 802.11 protocol when being sent to the STA through the WIFI chip. At this time, the correspondence relationship between the two may be a one-to-one correspondence relationship, or the message received by the WAN interface may be fragmented into a plurality of messages specified by the 802.11 protocol, or the plurality of messages received by the WAN interface may be aggregated into one message specified by the 802.11 protocol.
If the two are different in correspondence, the corresponding processes for acquiring the transmission information of the packet are different, and detailed descriptions will be given below.
According to a feasible implementation mode, the corresponding relationship between the data message received from the WAN interface and the data message sent from the WIFI chip is one-to-one. For a specific implementation process of this implementation, reference may be made to the embodiment shown in fig. 2, and details of this embodiment are not described here.
Fig. 4 is a schematic flow chart of data packet transmission according to an embodiment of the present invention. As shown in fig. 4, the method includes:
step 401, performing fragmentation processing on data messages to obtain a plurality of first data messages;
step 402, sequentially sending a plurality of first data messages to the STA;
step 403, obtaining time of each first acknowledgement message returned by the receiving STA;
step 404, judging whether the STA returns a first confirmation message for each first data message; if yes, go to step 405, otherwise go to step 406;
step 405, taking the time of receiving the last first acknowledgement message as a second receiving time;
step 406, determining that the data message transmission fails.
In this embodiment, after the processor acquires the data packet from the storage space of the LSW, if the size of the data packet is larger than a Maximum Transmission Unit (MTU) corresponding to the WIFI interface, the processor performs fragmentation processing on the data packet to obtain a plurality of first data packets. And then the processor sequentially sends a plurality of first data messages to the STA through the WIFI interface and receives first confirmation messages returned by the STA aiming at the first data messages.
Specifically, fig. 5 is a schematic diagram of a first data packet transmission process according to an embodiment of the present invention, please refer to fig. 5, where a processor performs fragmentation processing on the data packet to obtain three first data packets. The processor sequentially sends first data messages to the STA through the WIFI interface.
For example, the wireless AP sends a first data message 10 to the STA, and after the STA receives the first data message successfully, the STA returns a first acknowledgement message ACK to the wireless AP; the wireless AP sends a first data message 20 to the STA, and after the STA receives the data successfully, the STA returns a first acknowledgement message ACK to the wireless AP; the wireless AP sends a first data packet 30 to the STA, and after the STA receives the first data packet successfully, the STA returns a first acknowledgement packet ACK to the wireless AP. At this point, the wireless AP sends the data packet to the STA successfully.
In the process, for any first data packet, if the first data packet fails to be sent for the first time, a retransmission mechanism is started, the first data packet is retransmitted to the STA, and when the retransmission is successful, a first acknowledgement packet of the first data packet corresponding to the retransmission process is obtained; and when the retransmission fails, the first data message fails to be sent.
After the transmission process of the data message is finished (the transmission process of the data message includes a retransmission process), acquiring the time of each first confirmation message returned by the receiving STA, and judging whether the STA returns the first confirmation message for all the first data messages, if so, taking the time of receiving the last first confirmation message as the second receiving time. It will be appreciated by those skilled in the art that the last acknowledgment message may be an acknowledgment message of a retransmission process.
In the embodiment shown in fig. 5, if the first acknowledgement packet ACK corresponding to the first data packet 30 is the last first acknowledgement packet, the time for receiving the first acknowledgement packet corresponding to the first data packet 30 is taken as the second receiving time. And if the STA does not return the first confirmation message aiming at all the first data messages, the data message is considered to be failed to be sent.
In this embodiment, the data packets are fragmented to obtain a plurality of first data packets, then the first data packets are sequentially sent to the STA, and then the second receiving time is determined according to the receiving time of each first acknowledgment packet, so that the second receiving time can be obtained for the fragmented packets, and thus, when the wireless AP performs the packet fragmentation processing operation, the service quality of the wireless AP can be monitored.
Fig. 6 is a schematic flow chart of data packet transmission according to an embodiment of the present invention. As shown in fig. 6, the method includes:
601, carrying out aggregation processing on the data message and other data messages to obtain a second data message;
step 602, sending a second data message to the STA;
step 603, obtaining the time of receiving a second confirmation message returned by the STA;
step 604, determining whether the second acknowledgement message includes receiving information for indicating that the data message is successfully received, if yes, performing step 605, and if not, performing step 606;
step 605, taking the time for receiving the second confirmation message as a second receiving time;
step 606, determining that the data message transmission fails.
In this embodiment, after the processor obtains the data packet from the storage space of the LSW, if the size of the data packet is smaller than a Maximum Transmission Unit (MTU) corresponding to the WIFI interface, the processor aggregates the data packet with other data packets to obtain a second data packet. And then the processor sends a second data message to the STA through the WIFI interface.
Specifically, fig. 7 is a schematic diagram of a data packet transmission process according to an embodiment of the present invention, please refer to fig. 7, where the processor performs aggregation processing on the data packet 10, the data packet 20, and the data packet 30, that is, performs aggregation processing on data portions of three data packets, and then adds a packet header (not shown) to form a second data packet. For convenience of illustration in this embodiment, fig. 7 schematically shows that data packet 10, data packet 20, and data packet 30 are aggregated into a second data packet.
After the second data message is obtained through aggregation, the wireless AP sends the second data message to the STA, and after the STA receives the second data message, the STA returns a block acknowledgement message BA to the wireless AP. In the block acknowledgement message, receiving information for indicating whether the data message was received successfully is included. For example, if data packet 10 and data packet 30 are successfully received, then in the block acknowledgement message, receipt information indicating that data packet 10 and data packet 30 were successfully received is included. Optionally, a receipt message indicating that the data packet 20 failed to be accepted may also be included.
For the data packet 20, the retransmission processing is performed on the data packet 20, and during the retransmission processing, the aggregation processing is also performed on the data packet 20. Those skilled in the art will appreciate that retransmission corresponds to both retransmission failure and retransmission success. If the retransmission is successful, the block acknowledgement message corresponding to the retransmission process includes reception information indicating that the data packet 20 is successfully received.
Therefore, after receiving the second acknowledgement packet through the WFII interface, the processor determines whether the second acknowledgement packet includes the reception information indicating that the data packet is successfully received, and if the second acknowledgement packet includes the reception information indicating that the data packet is successfully received, the processor determines that the second acknowledgement packet (block acknowledgement packet BA) is received as the second reception time of the data packet 10 and the data packet 30. For the data packet 20, if the retransmission of the data packet 20 fails, the second acknowledgement message includes reception information indicating that the data packet 20 was received unsuccessfully, thereby determining that the data packet 20 failed to be transmitted.
In this embodiment, the data packet is aggregated to obtain a second data packet, the second data packet is sent to the STA, and a second receiving time is obtained according to the receiving time of the second acknowledgment packet, so that the second receiving time can be obtained for the aggregated packet, and thus, when the wireless AP performs the packet aggregation operation, the service quality of the wireless AP can be monitored.
Those skilled in the art will appreciate that in the above embodiments shown in fig. 4 to fig. 7, the receiving time of each acknowledgment packet is similar to that in the embodiment shown in fig. 2, that is, the WIFI chip records the receiving time of each acknowledgment packet, and then the WIFI chip sends each receiving time to the processor, and the processor determines the second receiving time according to each receiving time.
The hardware structure implementation of the wireless AP provided by the present invention is described in detail below. Fig. 8 is a schematic diagram of a hardware structure of the wireless AP provided in the present invention. As shown in fig. 8, the wireless AP provided in this embodiment includes: WAN interface 81, WIFI interface 85, ethernet switch 82, and processor 83 and communication bus 86. Wherein the communication bus 86 is used for realizing communication connection between the elements. For example, ethernet switch 82, processor 83, WIFI interface 85, and memory 84 are connected to communication bus 86.
Optionally, the WIFI interface 85 may specifically include a baseband circuit 851, a radio frequency circuit 852, and an antenna 853, so as to implement sending of a data packet. The memory 84 may comprise a high speed RAM memory, and may also include a non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored in the memory 84 for performing various processing functions and implementing the method steps of the present embodiment. The memory 84 may also store the datagram retrieved by the processor 84 from the ethernet switch 82.
In this embodiment, the WAN interface 81 is configured to receive a data packet from a wide area network;
the ethernet switch 82 is configured to perform switching processing on the data packet received by the WAN interface 81, and store the data packet in a storage space of the ethernet switch 82;
the ethernet switch 82 is further configured to send a message notification message to the processor 83;
the processor 83 is configured to receive a message notification message sent by the ethernet switch 82, and obtain a time for receiving the message notification message as a first receiving time, where the message notification message is used to instruct to start processing of a data message;
the processor 83 is further configured to obtain the data packet from the storage space of the ethernet switch 82 according to the indication of the packet notification message, and process the data packet to obtain a processed data packet, where the processing includes at least one of the following: storing the data message, converting the data message, scheduling the data message, and competing the air interface sending opportunity of the data message;
the processor 83 is further configured to send the data packet to the STA through the WIFI interface 85, and obtain a time for receiving a confirmation packet returned by the STA, where the time is used as a second receiving time;
the processor 83 is further configured to calculate a processing delay of the data packet according to the first receiving time and the second receiving time.
Optionally, when the processing includes converting the data packet,
the processor 83 is specifically configured to perform fragmentation processing on the data packets to obtain a plurality of first data packets;
sequentially sending the plurality of first data messages to the STA through the WIFI interface 85;
acquiring time for receiving each first confirmation message returned by the STA;
and taking the time of receiving the last first confirmation message as the second receiving time.
Optionally, when the processing includes converting the data packet,
the processor 83 is specifically configured to perform aggregation processing on the data packet and other data packets to obtain a second data packet;
sending the second data packet to the STA through the WIFI interface 85;
acquiring time for receiving a second confirmation message returned by the STA;
and if the second confirmation message comprises receiving information used for indicating that the data message is successfully received, taking the time for receiving the second confirmation message as the second receiving time.
Further, on the basis of the embodiment of fig. 8, the wireless AP may further include a WIFI chip system, and the processor 83 and the WIFI interface 85 are located in the WIFI chip system.
The wireless AP provided in this embodiment may be used to execute the method embodiments shown in fig. 1 to fig. 7, which have similar implementation principles and technical effects, and this embodiment is not described herein again.
In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways without departing from the scope of the application. For example, the above-described base station embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Additionally, the systems, devices, and methods described, as well as the illustrations of various embodiments, may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of the present application. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of the base station or unit through some interfaces, and may be in an electronic, mechanical or other form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for obtaining message processing delay is applied to a wireless AP, and the method comprises the following steps:
receiving a message notification message, and acquiring time for receiving the message notification message as first receiving time, wherein the message notification message is used for indicating to start processing of a data message;
acquiring a data message according to the indication of the message notification message, and processing the data message to obtain a processed data message, wherein the processing comprises at least one of the following steps: storing the data message, converting the data message, scheduling the data message, and competing the air interface sending opportunity of the data message;
sending the data message to an STA, and acquiring time for receiving a confirmation message returned by the STA as second receiving time;
calculating the processing delay of the data message according to the first receiving time and the second receiving time;
the sending the data packet to the STA and acquiring a time for receiving an acknowledgement packet returned by the STA as a second receiving time include: sequentially sending a plurality of fragmented data messages to the STA, and taking the time of obtaining the last confirmation message returned by the STA as the second receiving time; or, sending a data packet obtained by aggregating a plurality of data packets to the STA, and taking the time for obtaining a received acknowledgement packet returned by the STA and used for indicating that the data packet is successfully received as the second receiving time, where the plurality of data packets include the data packet and other data packets.
2. The method according to claim 1, wherein said sequentially sending the fragmented data packets to the STA, and taking a time of obtaining a last acknowledgment packet returned by the STA as the second receiving time, comprises:
carrying out fragmentation processing on the data messages to obtain a plurality of first data messages;
sequentially sending the plurality of first data messages to the STA;
acquiring time for receiving each first confirmation message returned by the STA;
and taking the time of receiving the last first confirmation message as the second receiving time.
3. The method according to claim 1, wherein the sending the data packet after the aggregation of the plurality of data packets to the STA, taking a time for acquiring a received acknowledgement packet of reception information returned by the STA to indicate that the data packet is successfully received as the second reception time, includes:
performing aggregation processing on the data message and other data messages to obtain a second data message;
sending the second data message to the STA;
acquiring time for receiving a second confirmation message returned by the STA;
and if the second confirmation message comprises receiving information used for indicating that the data message is successfully received, taking the time for receiving the second confirmation message as the second receiving time.
4. The method according to any of claims 1 to 3, wherein the receiving a message notification message comprises:
receiving a message notification message sent by an Ethernet switch in the wireless AP, wherein the Ethernet switch receives the data message from a wide area network through a WAN interface of the AP;
the obtaining a data message according to the indication of the message notification message, and processing the data message to obtain a processed data message, including:
and acquiring a data message from the storage space of the Ethernet switch according to the indication of the message notification message, and processing the data message to obtain a processed data message.
5. A wireless AP, comprising: the system comprises a Wide Area Network (WAN) interface, a wireless fidelity (WIFI) interface, an Ethernet switch and a processor; wherein
The WAN interface of the wide area network is used for receiving data messages from the wide area network;
the Ethernet switch is used for performing switching processing on the data message received by the WAN interface and storing the data message into a storage space of the Ethernet switch;
the Ethernet switch is also used for sending a message notification message to the processor;
the processor is configured to receive a message notification message sent by the ethernet switch, and acquire a time for receiving the message notification message as a first receiving time, where the message notification message is used to instruct to start processing of a data message;
the processor is further configured to obtain the data packet from the storage space of the ethernet switch according to the indication of the packet notification message, and process the data packet to obtain a processed data packet, where the processing includes at least one of: storing the data message, converting the data message, scheduling the data message, and competing the air interface sending opportunity of the data message;
the processor is further configured to sequentially send the fragmented data packets to the STA through the WIFI interface, and use the time for obtaining the last acknowledgment packet returned by the STA as second receiving time; or sending a data message obtained by aggregating a plurality of data messages to the STA through the WIFI interface, and taking the time for obtaining a confirmation message returned by the STA to indicate that the data message is successfully received and receiving information, as second receiving time, where the plurality of data messages include the data message and other data messages;
the processor is further configured to calculate a processing delay of the data packet according to the first receiving time and the second receiving time.
6. The wireless AP according to claim 5, wherein the processor is specifically configured to perform fragmentation processing on the data packets to obtain a plurality of first data packets;
sequentially sending the plurality of first data messages to the STA through the WIFI interface;
acquiring time for receiving each first confirmation message returned by the STA;
and taking the time of receiving the last first confirmation message as the second receiving time.
7. The wireless AP of claim 5, wherein the processor is specifically configured to aggregate the data packet with other data packets to obtain a second data packet;
sending the second data message to the STA through the WIFI interface;
acquiring time for receiving a second confirmation message returned by the STA;
and if the second confirmation message comprises receiving information used for indicating that the data message is successfully received, taking the time for receiving the second confirmation message as the second receiving time.
8. The wireless AP of any one of claims 5 to 7, wherein the wireless AP further comprises a WIFI chip system, and wherein the processor and the WIFI interface are located in the WIFI chip system.
CN201680086560.0A 2016-09-08 2016-09-08 Method and device for acquiring message processing delay Active CN109315018B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/098446 WO2018045535A1 (en) 2016-09-08 2016-09-08 Method and device for acquiring message processing delay

Publications (2)

Publication Number Publication Date
CN109315018A CN109315018A (en) 2019-02-05
CN109315018B true CN109315018B (en) 2022-01-14

Family

ID=61561616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680086560.0A Active CN109315018B (en) 2016-09-08 2016-09-08 Method and device for acquiring message processing delay

Country Status (2)

Country Link
CN (1) CN109315018B (en)
WO (1) WO2018045535A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113344701A (en) * 2021-07-28 2021-09-03 中国银行股份有限公司 Method and device for sending transaction message based on prediction mechanism in bank system
CN117560679A (en) * 2023-11-15 2024-02-13 北京讯腾智慧科技股份有限公司 Interference monitoring device of big dipper basic station

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1714527A (en) * 2002-11-20 2005-12-28 高通股份有限公司 Use of idle frames for the control of negative frame acknowledgement
CN101990248A (en) * 2009-08-03 2011-03-23 英特尔公司 Variable short interframe space
CN102013942A (en) * 2010-01-29 2011-04-13 柳州市达迪通信设备有限公司 Method for testing message delay variation
EP1916801B1 (en) * 2006-10-23 2012-12-12 Deutsche Telekom AG Access point for centralised scheduling in a IEEE 802.11e WLAN
EP2684408A1 (en) * 2011-03-07 2014-01-15 Intel Corporation Opportunistic carrier aggregation for dynamic flow switching between radio access technologies
CN104040917A (en) * 2012-01-12 2014-09-10 华为技术有限公司 System and Method for Quality of Service Control
WO2015137662A1 (en) * 2014-03-12 2015-09-17 엘지전자 주식회사 Data transmission method and device in wireless lan system supporting downlink oriented channel

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9125153B2 (en) * 2008-11-25 2015-09-01 Qualcomm Incorporated Method and apparatus for two-way ranging
CN104025483B (en) * 2011-11-02 2017-06-20 马维尔国际贸易有限公司 Service, system and method for accurately estimating the delay in network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1714527A (en) * 2002-11-20 2005-12-28 高通股份有限公司 Use of idle frames for the control of negative frame acknowledgement
EP1916801B1 (en) * 2006-10-23 2012-12-12 Deutsche Telekom AG Access point for centralised scheduling in a IEEE 802.11e WLAN
CN101990248A (en) * 2009-08-03 2011-03-23 英特尔公司 Variable short interframe space
CN102013942A (en) * 2010-01-29 2011-04-13 柳州市达迪通信设备有限公司 Method for testing message delay variation
EP2684408A1 (en) * 2011-03-07 2014-01-15 Intel Corporation Opportunistic carrier aggregation for dynamic flow switching between radio access technologies
CN104040917A (en) * 2012-01-12 2014-09-10 华为技术有限公司 System and Method for Quality of Service Control
WO2015137662A1 (en) * 2014-03-12 2015-09-17 엘지전자 주식회사 Data transmission method and device in wireless lan system supporting downlink oriented channel

Also Published As

Publication number Publication date
CN109315018A (en) 2019-02-05
WO2018045535A1 (en) 2018-03-15

Similar Documents

Publication Publication Date Title
JP7309030B2 (en) Multi-link communication method and device
KR102212170B1 (en) Acknowledgement, error recovery and backoff operation of uplink multi-user multiple-input-multiple-output communication in wireless networks
KR101668768B1 (en) Systems and methods for packet relaying
JP6591550B2 (en) Listen before talk load based channel access for coexistence with Wi-Fi
JP2012505619A (en) Method for improving channel utilization in a TDMA-based protocol
US20220345247A1 (en) Method for Determining Receiving Status of Data Frame and Communication Apparatus
CN110381587B (en) Method and device for beam recovery
US11743758B2 (en) Data transmission method and apparatus, data sending method and apparatus, and data transmission system
CN103974328A (en) Method for cooperative communication, cloud terminal server and core network server
CN110999467A (en) Aggregated media access control protocol data unit transmission of multi-service identifiers
CN109315018B (en) Method and device for acquiring message processing delay
US20220132370A1 (en) Wireless communicatoin system, and wireless communication method
Krishnan et al. Throughput improvement in 802.11 WLANs using collision probability estimates in link adaptation
JP2004221710A (en) Wireless lan system and communication control method thereof
CN108574554A (en) Information transferring method, user equipment and the network equipment
KR101461345B1 (en) Apparatus and Method for selection access point
WO2015133646A1 (en) Communication control device, wireless terminal, memory card, integrated circuit, and method for wireless communications
EP2458924A1 (en) Method and apparatus for coordinated multi-point processing
Tanaka et al. New throughput analysis of long-distance IEEE 802.11 wireless communication system for smart grid
US11082887B2 (en) Method for retransmitting frame in wireless LAN system, and wireless terminal using same
US20070177531A1 (en) Frame processing apparatus and method in wireless LAN
WO2021238773A1 (en) Communication method and apparatus
WO2017114033A1 (en) Method for determining transmission opportunity and access point
Yun et al. Collision detection based on RE energy duration in IEEE 802.11 wireless LAN
WO2010041127A1 (en) Method and apparatus for communicating over multiple networks

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