WO2018045535A1 - 获取报文处理延迟的方法及设备 - Google Patents

获取报文处理延迟的方法及设备 Download PDF

Info

Publication number
WO2018045535A1
WO2018045535A1 PCT/CN2016/098446 CN2016098446W WO2018045535A1 WO 2018045535 A1 WO2018045535 A1 WO 2018045535A1 CN 2016098446 W CN2016098446 W CN 2016098446W WO 2018045535 A1 WO2018045535 A1 WO 2018045535A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
message
receiving
time
sta
Prior art date
Application number
PCT/CN2016/098446
Other languages
English (en)
French (fr)
Inventor
吕捷
陈维熙
石操
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/098446 priority Critical patent/WO2018045535A1/zh
Priority to CN201680086560.0A priority patent/CN109315018B/zh
Publication of WO2018045535A1 publication Critical patent/WO2018045535A1/zh

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

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a method and a device for acquiring packet processing delay.
  • a wireless local area network is a network formed by replacing some or all of the transmission mediums in a wired local area network with wireless channels of various radio waves (such as laser, infrared, radio frequency, etc.).
  • WLAN has been widely used in business districts, universities, airports, and other public areas.
  • the most commonly used wireless local area network system is a WIFI system, which mainly includes a wireless access point (AP) and a station (Station, referred to as STA), and the STA accesses the WIFI network through the wireless AP.
  • AP wireless access point
  • STA station
  • the WiFi network is complicated, and the network performance is poor due to many reasons.
  • the most commonly used method for judging network performance is website speed measurement, that is, the STA connects to a speed measurement website for speed measurement, and judges whether the entire network has a problem according to the speed measurement result, and whether the performance meets the requirements.
  • the method of website speed measurement can only test the performance from the STA to the speed measurement website, and cannot locate the fault point of the WiFi network, making the fault difficult to check and eliminate.
  • the embodiment of the invention provides a method and a device for acquiring packet processing delay to determine whether a wireless AP in a WIFI network is a fault point.
  • the present invention provides a method for obtaining a packet processing delay, which is applied to a wireless AP, and the method includes:
  • the message notification message is used to indicate the processing of starting the data message, and after receiving the message notification message,
  • the processing of the data packet is started, that is, according to the indication of the packet notification message, the data packet is obtained, and the data packet is processed to obtain the processed data packet, where the processing includes the following At least one of the following: storing the obtained data message to the wireless AP
  • the storage device performs the process of aggregating and fragmenting the data packet, scheduling the data packet, and competing for the air interface resource required for the data packet to be sent; after processing the data packet,
  • the STA sends the data packet, receives the acknowledgement message returned by the STA, and acquires the time of receiving the acknowledgement packet returned by the STA as the second receiving time; according to the first receiving time and the second receiving time. Calculating the processing delay of the data message.
  • the processing when the processing includes converting the data packet, the processing the data packet to obtain the processed data packet, including:
  • the sending the data packet to the STA, and acquiring the time for receiving the acknowledgement packet returned by the STA, as the second receiving time includes:
  • the processing when the processing includes converting the data packet, the processing the data packet to obtain the processed data packet, including:
  • the sending the data packet to the STA, and acquiring the time for receiving the acknowledgement packet returned by the STA, as the second receiving time includes:
  • the confirmation message includes indication information for indicating whether the data message is successfully received, and if the second confirmation message includes receiving information for indicating that the data message is successfully received, the first confirmation message is received. Second, the time of confirming the message as the second receiving time.
  • the receiving a message notification message includes:
  • an embodiment of the present invention provides a wireless AP, including: a wide area network WAN interface, a WIFI interface, an Ethernet switch, and a processor;
  • the wide area network WAN interface is configured to receive data packets from the wide area network
  • the Ethernet switch is configured to exchange data packets received by the WAN interface, and store the data packets in a storage space of the Ethernet switch;
  • the Ethernet switch is further configured to send a message notification message to the processor
  • the processor is configured to receive a message notification message sent by the Ethernet switch, and obtain a time for receiving the message notification message, as a first receiving time, where the message notification message is used to start a datagram Processing of texts;
  • the processor is further configured to: obtain the data packet from a storage space of the Ethernet switch according to the indication of the packet notification message, and process the data packet to obtain processed data. a packet, wherein the processing includes at least one of: storing the data packet, converting the data packet, scheduling the data packet, and processing the data packet Empty mouth to send opportunities to compete;
  • the processor is further configured to send the data packet to the STA by using the WIFI interface, and obtain a time for receiving the acknowledgement 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.
  • the processing includes converting the data message
  • the processor is configured to perform fragmentation processing on the data packet to obtain a plurality of first data packets.
  • the time at which the last first acknowledgement message will be received is taken as the second reception time.
  • the processing includes converting the data message
  • the processor is configured to perform aggregation processing on the data packet and other data packets to obtain a second data packet.
  • the time for receiving the second acknowledgement message is used as the second receiving time.
  • 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 device for obtaining the packet processing delay provided by the embodiment, the method for receiving the message notification message and obtaining the time for receiving the message notification message, as the first receiving time, the first receiving time is the processing datagram
  • the data packet is obtained according to the instruction of the message notification message, and the data packet is processed to obtain the processed data packet, and then the data packet is sent to the STA.
  • the time of receiving the acknowledgement message returned by the STA as the second receiving time, where the second receiving time is the time for confirming that the data packet is successfully sent, and according to the first receiving time and the second receiving time
  • the processing delay of the data packet can be used to monitor the quality of service of the wireless AP according to the processing delay. If the value of the processing delay exceeds the preset value when the network performance is not up to standard, the wireless AP is faulty, so that the fault can be located.
  • the device is a wireless AP.
  • FIG. 1 is a system architecture diagram of a wireless local area network system according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for obtaining packet processing delay according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a processing scenario of a data packet provided by the present invention.
  • FIG. 4 is a schematic flowchart 1 of a data packet transmission according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram 1 of a data packet transmission process according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart 2 of a data packet transmission according to an embodiment of the present disclosure.
  • FIG. 7 is a second schematic diagram of a data packet transmission process according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of hardware of a wireless AP provided by the present invention.
  • a wireless local area network (WLAN) system provided in this embodiment includes a wireless access point (Access Point, referred to as AP) and workstation (Station, referred to as STA), the STA accesses the Ethernet through the wireless AP.
  • the WIFI-based wireless LAN system is implemented based on the IEEE 802.11 series standard, and is a wireless local area network that uses high-frequency radio frequency (such as 2.4 GHz, 5 GHz, 60 GHz, etc.) as a transmission medium.
  • the wireless AP is a wireless switch for a wireless network and is also the core of the wireless network.
  • a wireless AP is an access point for mobile computer users to enter a wired network. It is mainly used in broadband homes, inside buildings, and inside campus. Typical distances range from tens of meters to hundreds of meters. It can be integrated in a wireless router, a part of a digital subscriber line (Digital Subscriber Line, Customer Premise Device, DSL CPE), a terminal device (Cable Modem, CM for short), and an Optical Network Unit (ONU).
  • DSL CPE Digital Subscriber Line, Customer Premise Device
  • CM Customer Premise Device
  • ONU Optical Network Unit
  • the STA is generally a client in the WLAN, and may be a computer equipped with a wireless network card, or a smart phone with a WiFi module, a smart TV, a PAD, a video box, and the like.
  • the STA can be mobile or fixed.
  • the wireless AP When the wireless AP communicates with the STA, the wireless AP can obtain the downlink packet from the Ethernet, and then send the downlink packet to the STA. The STA can also send the uplink packet to the wireless AP, and then the STA sends the uplink packet. To Ethernet.
  • the packet involved in this embodiment is mainly for the downlink packet received by the wireless AP from the Ethernet.
  • FIG. 1 shows only one system architecture of a wireless local area network system.
  • the wireless AP is connected to the STA, it belongs to the protection scope of the present invention.
  • this embodiment will not be described herein.
  • the present invention provides a method for obtaining a packet processing delay, which can obtain a wireless AP in the wireless local area network system.
  • FIG. 2 is a flowchart of a method for obtaining packet processing delay according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a processing scenario of a data packet provided by the present invention.
  • the execution entity of this embodiment is a processor in a wireless AP.
  • the method includes:
  • Step 201 Receive a message notification message, and obtain a time for receiving the message notification message, as the first receiving time, the message notification message is used to indicate that the processing of the data message is started.
  • the data packet of the WAN enters the wireless AP from the Wide Area Network (WAN) interface of the wireless AP.
  • the data packet of the WAN can be, for example, an Ethernet data packet.
  • the WAN interface is used to connect the wireless AP to the wide area network, and the WAN interface can use Ethernet access, Digital Subscriber Line (DSL) access, and coaxial access (for example, a cable cable data service interface specification (Data). Over Cable Service Interface Specifications (DOCSIS), Multimedia Coax Alliance (MoCA), fiber access, power line communication access, etc.
  • DOCSIS Over Cable Service Interface Specifications
  • MoCA Multimedia Coax Alliance
  • the WAN interface After receiving the data packet, the WAN interface transmits the data packet to the Ethernet switch (LSW), that is, the LSW receives the data packet from the WAN through the WAN interface. After receiving the data packet, the LSW exchanges the data packet. After the exchange process is completed, the LSW stores the data packet in the storage space corresponding to the LSW, and then the LSW sends a message notification message to the processor.
  • LSW Ethernet switch
  • the processor receives the message notification message sent by the LSW, and obtains the time for receiving the message notification message as the first time.
  • the message notification message is used to indicate the processing of starting the data message, and the processing process is started on behalf of the processor.
  • Step 202 Obtain a data packet according to the instruction 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: The data packet is stored, the data packet is converted, the data packet is scheduled, and the air interface transmission opportunity of the data packet is competed.
  • the processor After receiving the message notification message, the processor obtains the data packet from the storage space of the LSW according to the instruction of the message notification message, and then processes the data packet to obtain the processed data packet.
  • the processing of the data packet mainly includes at least one of the following processing. The details are described below separately.
  • the processor acquires the data packet from the storage space of the LSW and stores the data packet in the memory of the wireless AP.
  • the processor converts the data packet stored in the memory, for example, converting the data packet of the Ethernet into a WIFI packet, that is, the packet specified by the 802.11 protocol, or performing aggregation, fragmentation, etc. on the data packet. Conversion processing.
  • Schedule data packets Since there may be multiple data messages to be sent in the memory, the processor needs to schedule the data messages stored in the memory to determine the order in which the data messages are sent.
  • the air interface of the data message is sent to compete.
  • the processor competes against the air interface transmission opportunity according to the competition mechanism of the WiFi, such as the carrier detection multiple access/collision avoidance protocol (CSMA/CA) competition mechanism. That is, the channel required for the content data to be transmitted.
  • CSMA/CA carrier detection multiple access/collision avoidance protocol
  • Step 203 Send the data packet to the STA, and obtain a time for receiving the acknowledgement packet returned by the STA, as the second receiving time.
  • the processor After processing the data packet, the processor sends the data packet to the STA through the WIFI chip.
  • the WIFI chip can carry a WIFI interface, and can send a data packet to the STA through the WIFI interface.
  • the STA After receiving the data packet, the STA sends an acknowledgement packet to the wireless AP for the data packet to indicate that the data packet is successfully received. However, when it is possible to confirm that the message is lost due to some transmission errors, or the confirmation message indicates that the data message received by the STA is in error, the wireless AP confirms that the data packet is sent, and the wireless AP initiates the retransmission mechanism of the data packet. If the data packet is retransmitted, the data packet is sent to the device. Text, thus obtaining the packet loss rate.
  • the packet loss statistics are counted according to the lost packet. For example, the total number of packets, the total traffic, the number of lost packets, and the packet loss rate.
  • the packet loss rate can be the packet loss rate in each time interval.
  • the acknowledgment message obtained in this embodiment may be an acknowledgment message corresponding to the first data packet, or an acknowledgment message corresponding to the retransmission process.
  • the WIFI chip of the wireless AP After receiving the acknowledgment message, the WIFI chip of the wireless AP records the time of receiving the acknowledgment message, and sends the time of receiving the acknowledgment message to the processor, after the processor obtains the time for receiving the acknowledgment message, , this time is taken as the second time.
  • Step 204 Calculate a processing delay of the data packet according to the first receiving time and the second receiving time.
  • the processor can calculate the processing delay of the data message.
  • the first receiving time is the time when the message notification message is received, that is, the time when the data message is ready to be processed. Therefore, the processing delay calculated by the first receiving time and the second time mainly includes a processing delay of the processor during processing and a round-trip delay, that is, the processor is in a process of storing, converting, scheduling, competing, and the like. delay.
  • the processing delay can be obtained by T2-T1, or the processing delay can be obtained by various variants of T2-T1, such as the form of aT2-bT1, or Form, where a and b are delay coefficients.
  • the wireless AP sends multiple data packets to the STA.
  • the wireless AP can perform statistics on the processing delay of the 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, and the like can be obtained.
  • the method for obtaining the packet processing delay is provided by the method for receiving the packet notification message, and obtaining the time for receiving the packet notification message, as the first receiving time, the first receiving time is the start of processing the data packet.
  • the data packet is obtained according to the instruction of the message notification message, and the data packet is processed to obtain the processed data packet, and then the data packet is sent to the STA and obtained.
  • the time of receiving the acknowledgment message returned by the STA is used as the second receiving time, and the second receiving time is the time for confirming that the data packet is successfully sent.
  • the data packet can be calculated. Processing delay, according to the processing delay, the quality of service of the wireless AP can be monitored. If the value of the processing delay exceeds the preset value when the network performance is not up to standard, the wireless AP is faulty, so that the device that can locate the fault is a wireless AP. .
  • the detailed implementation of the second embodiment is used to describe the specific implementation process of the processor converting the data packet and obtaining the second receiving time in the foregoing embodiment.
  • the data packet that is entered from the WAN interface of the wireless AP has multiple correspondences with the data packet sent from the WIFI chip, and may be a one-to-one correspondence, or may receive data received by the WAN interface.
  • the packet is fragmented into multiple packets and sent from the WIFI chip.
  • the multiple data packets received by the WAN interface can also be aggregated into one packet and sent from the WIFI chip.
  • 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.
  • the corresponding relationship between the two may be a one-to-one correspondence.
  • the packets received by the WAN interface may be fragmented into multiple 802.11 protocols, or multiple WAN interfaces may be aggregated into multiple packets.
  • the correspondence between the data packet received from the WAN interface and the data packet sent from the WIFI chip is a one-to-one relationship.
  • the specific implementation process of the implementation refer to the embodiment shown in FIG. 2, and details are not described herein again.
  • FIG. 4 is a schematic flowchart 1 of data packet transmission according to an embodiment of the present invention. As shown in FIG. 4, the method includes:
  • Step 401 Perform a fragmentation process on the data packet to obtain a plurality of first data packets.
  • Step 402 Send a plurality of first data packets to the STA in sequence
  • Step 403 Acquire a time for receiving each first acknowledgement message returned by the STA.
  • Step 404 it is determined whether the STA returns a first confirmation message for each first data message; if yes, step 405 is performed; if not, step 406 is performed;
  • Step 405 The time when the last first acknowledgement message is received is used as the second receiving time.
  • Step 406 Determine that the data packet is sent.
  • the processor after the processor obtains the data packet from the storage space of the LSW, if the size of the data packet is greater than the Maximum Transmission Unit (MTU) corresponding to the WIFI interface, the processor will The data packet is fragmented to obtain a plurality of first data packets. The processor then sends a plurality of first data packets to the STA through the WIFI interface, and receives the first acknowledgement message returned by the STA for each first data packet.
  • MTU Maximum Transmission Unit
  • FIG. 5 is a schematic diagram 1 of a data packet transmission process according to an embodiment of the present invention.
  • the processor obtains three first data packets.
  • the processor sequentially sends the first data packet to the STA through the WIFI interface.
  • the wireless AP sends the first data packet 10 to the STA. After the STA receives the success, the STA returns a first acknowledgement message ACK to the wireless AP.
  • the wireless AP sends the first data packet 20 to the STA.
  • the STA returns a first acknowledgement message ACK to the wireless AP;
  • the wireless AP sends a first data packet 30 to the STA.
  • the STA After the STA receives the success, the STA returns a first acknowledgement packet ACK to the wireless AP.
  • the wireless AP successfully sends all the data packets to the STA.
  • the retransmission mechanism is enabled, and the first data packet is retransmitted to the STA. If the retransmission succeeds, the first acknowledgement packet of the first data packet corresponding to the retransmission process is obtained. After the retransmission fails, the first data packet fails to be sent.
  • the data packet transmission process After the data packet transmission process ends (the data packet transmission process includes a retransmission process), the time of receiving each first acknowledgement message returned by the STA is obtained, and it is determined whether the STA returns for all the first data packets.
  • the first acknowledgement message if yes, the time at which the last first acknowledgement message is received as the second receive time.
  • the last acknowledgement message can be an acknowledgement message of the retransmission process.
  • the first acknowledgement packet ACK corresponding to the first data packet 30 is the last first acknowledgement packet
  • the first acknowledgement packet corresponding to the first data packet 30 is received.
  • the STA If the STA does not return the first acknowledgement packet for all the first data packets, the STA considers that the data packet fails to be sent.
  • the data packet is fragmented to obtain a plurality of first data packets, and then the first data packet is sequentially sent to the STA, and then the second receiving time is determined according to the receiving time of each first acknowledgement packet.
  • the second receiving time can also be obtained for the fragmented message, so that the wireless AP can also monitor the quality of service of the wireless AP when performing the operation of the packet fragmentation process.
  • FIG. 6 is a schematic flowchart 2 of data packet transmission according to an embodiment of the present invention. As shown in FIG. 6, the method includes:
  • Step 601 Perform aggregation processing on the data packet and other data packets to obtain a second data packet.
  • Step 602 Send a second data packet to the STA.
  • Step 603 Acquire a time for receiving a second confirmation message returned by the STA.
  • Step 604 determining whether the second acknowledgment message includes receiving information indicating that the data message is successfully received, and if so, executing step 605, if not, executing step 606;
  • Step 605 The time when the second confirmation message is received is used as the second receiving time.
  • Step 606 Determine that the data packet is sent.
  • the processor after the processor obtains the data packet from the storage space of the LSW, if the size of the data packet is smaller than the Maximum Transmission Unit (MTU) corresponding to the WIFI interface, the processor will The data packet is aggregated with other data packets to obtain a second data packet. The processor then sends a second data message to the STA through the WIFI interface.
  • MTU Maximum Transmission Unit
  • FIG. 7 is a schematic diagram 2 of a data packet transmission process according to an embodiment of the present invention.
  • the processor aggregates data packet 10, data packet 20, and data packet 30, that is, The data portions of the three data messages are aggregated, and then a header (not shown) is added to form a second data message.
  • a header (not shown) is added to form a second data message.
  • FIG. 7 it is schematically shown in FIG. 7 that the data message 10, the data message 20, and the data message 30 are aggregated into a second data message.
  • the wireless AP After the second data packet is obtained by the aggregation, the wireless AP sends the second data packet to the STA. After receiving the second data packet, the STA returns a block acknowledgement message BA to the wireless AP.
  • the block confirmation message includes receiving information indicating whether the data message is successfully received. For example, if the data message 10 and the data message 30 are successfully received, the block confirmation message includes receiving information for indicating that the data message 10 and the data message 30 are successfully received. Optionally, the receiving information that the data message 20 is accepted to be failed may also be included.
  • the data message 20 is retransmitted, and the data message 20 is also aggregated during the retransmission process.
  • the retransmission corresponds to two cases of retransmission failure and retransmission success. If the retransmission is successful, the block acknowledgment message corresponding to the retransmission process includes receiving information indicating that the data message 20 is successfully received.
  • the processor determines whether the second acknowledgment message includes the receiving information for indicating that the data packet is successfully received. For the data packet 10 and the data packet 30, The result of the determination is YES. At this time, the time of receiving the second acknowledgment message (block acknowledgment message BA) is taken as the second receiving time of the data message 10 and the data message 30. For the data packet 20, if the data packet 20 fails to be retransmitted, the second acknowledgement packet includes the data packet 20 for indicating The received information that failed is received, thereby determining that the data message 20 failed to be transmitted.
  • the data packet is aggregated to obtain a second data packet, and then the second data packet is sent to the STA, and then the second receiving time is obtained according to the receiving time of the second acknowledgement packet.
  • the aggregated packet can also obtain the second receiving time, so that the wireless AP can also monitor the quality of service of the wireless AP when performing the packet aggregation processing.
  • the receiving time of each acknowledgement message is similar to that of the embodiment of FIG. 2, that is, the WIFI chip records the receiving time of each acknowledgement packet, and then Each receiving time is sent to the processor by the WIFI chip, and the second receiving time is determined by the processor according to each receiving time.
  • FIG. 8 is a schematic structural diagram of hardware of a wireless AP provided by the present invention.
  • the wireless AP provided in this embodiment includes a WAN interface 81, a WIFI interface 85, an Ethernet switch 82, a processor 83, and a communication bus 86.
  • the communication bus 86 is used to implement a communication connection between components.
  • Ethernet switch 82, processor 83, WIFI interface 85, and memory 84 are coupled to communication bus 86.
  • the WIFI interface 85 may specifically include a baseband circuit 851, a radio frequency circuit 852, and an antenna 853 for transmitting data packets.
  • Memory 84 may include high speed RAM memory and may also include non-volatile memory NVM, such as at least one disk memory, in which various programs may be stored for performing various processing functions and implementing the method steps of the present embodiments.
  • the data message acquired by the processor 84 from the Ethernet switch 82 can also be stored in the memory 84.
  • the WAN interface 81 is configured to receive a data packet from the wide area network.
  • the Ethernet switch 82 is configured to exchange data packets received by the WAN interface 81, and store the data packets 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 start Processing of data messages;
  • 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 the data packet.
  • the processed data packet wherein the processing includes at least one of: storing the data packet, converting the data packet, scheduling the data packet, and performing the The air interface of the data message is sent to compete for competition;
  • the processor 83 is further configured to send the data packet to the STA by using the WIFI interface 85, and obtain a time for receiving the acknowledgement packet returned by the STA, 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.
  • the processing includes converting the data packet
  • the processor 83 is configured to perform fragmentation processing on the data packet to obtain a plurality of first data packets.
  • the time at which the last first acknowledgement message will be received is taken as the second reception time.
  • the processing includes converting the data packet
  • the processor 83 is configured to perform aggregation processing on the data packet and other data packets to obtain a second data packet.
  • the time for receiving the second acknowledgement message is used as the second receiving time.
  • 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 perform the foregoing method embodiment shown in FIG. 1 to FIG. 7.
  • the implementation principle and technical effects are similar, and details are not described herein again.
  • the base station embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the units described as separate components may or may not be physically separated.
  • the components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units.
  • Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
  • the described systems, devices, and methods, and the schematic diagrams of various embodiments may be combined or integrated with other systems, modules, techniques or methods without departing from the scope of the present application.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, base station or unit, and may be in electronic, mechanical or other form.

Landscapes

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

Abstract

本发明实施例提供一种获取报文处理延迟的方法及设备,该方法包括:接收报文通知消息,并获取接收报文通知消息的时间,作为第一接收时间,报文通知消息用于指示启动数据报文的处理;根据报文通知消息的指示,获取数据报文,并对数据报文进行处理,得到处理后的数据报文;向STA发送数据报文,并获取接收STA返回的确认报文的时间,作为第二接收时间;根据第一接收时间和第二接收时间,计算出数据报文的处理延迟。本发明实施例可以确定WIFI网络中的无线AP是否为故障点。

Description

获取报文处理延迟的方法及设备 技术领域
本发明实施例涉及通信技术领域,尤其涉及一种获取报文处理延迟的方法及设备。
背景技术
无线局域网(Wireless Local Access Network,简称:WLAN)是以各种无线电波(如激光、红外线、无线射频等)的无线信道来代替有线局域网中的部分或全部传输介质所构成的网络。目前WLAN已广泛应用在商务区、大学、机场及其他公共区域。
现有技术中,无线局域网系统最常用的是WIFI系统,主要包括无线接入点(Access Point,简称AP)和工作站(Station,简称STA),STA通过无线AP接入WIFI网络。目前WiFi网络情况复杂,很多原因会导致网络性能差。目前判断网络性能最常用的方法是网站测速,即STA连接一个测速网站进行测速,根据测速结果判断整个网络是否有问题,性能是否满足要求。
然而,网站测速的方法,仅能测试从STA到测速网站之间的性能,无法定位WiFi网络的故障点,使得故障很难排查和消除。
发明内容
本发明实施例提供一种获取报文处理延迟的方法及设备,以确定WIFI网络中的无线AP是否为故障点。
一方面,本发明提供一种获取报文处理延迟的方法,应用于无线AP,所述方法,包括:
接收报文通知消息,并获取接收所述报文通知消息的时间,作为第一接收时间,所述报文通知消息用于指示启动数据报文的处理,在接收到报文通知消息之后,需要开启对数据报文的处理,即根据所述报文通知消息的指示,获取数据报文,并对所述数据报文进行处理,得到处理后的数据报文,其中,所述处理包括如下中的至少一种:将获取到的数据报文存储到无线AP的存 储器中、对所述数据报文进行聚合、分片等转换处理、对数据报文进行调度、对所述数据报文的发送需要的空口资源进行竞争;在对数据报文处理之后,向STA发送所述数据报文,接收STA返回的确认报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间;根据所述第一接收时间和所述第二接收时间,计算出所述数据报文的处理延迟。
在一种可能的设计中,所述处理包括对所述数据报文进行转换时,所述对所述数据报文进行处理,得到处理后的数据报文,包括:
对所述数据报文进行分片处理,得到多个第一数据报文;
所述向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间,包括:
向所述STA依次发送所述多个第一数据报文;接收STA针对各所述第一数据报文返回的第一确认报文的时间,并获取接收所述STA返回的各第一确认报文的时间;将接收最后一个第一确认报文的时间,作为所述第二接收时间。
在一种可能的设计中,所述处理包括对所述数据报文进行转换时,所述对所述数据报文进行处理,得到处理后的数据报文,包括:
将所述数据报文与其它数据报文进行聚合处理,得到第二数据报文;
所述向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间,包括:
向所述STA发送所述第二数据报文;接收STA针对所述第二数据报文返回的第二确认报文,并获取接收所述STA返回的第二确认报文的时间;该第二确认报文中包括用于指示所述数据报文是否接收成功的指示信息,若所述第二确认报文中包括用于指示所述数据报文接收成功的接收信息,则将接收所述第二确认报文的时间,作为所述第二接收时间。
在一种可能的设计中,所述接收报文通知消息,包括:
接收所述无线AP中的以太网交换机发送的报文通知消息,其中,广域网的数据报文从无线AP的WAN接口进入无线AP,传输到以太网交换机中,以太网交换机可以发送报文通知消息,以指示启动数据报文的处理;
所述根据所述报文通知消息的指示,获取数据报文,并对所述数据报文进行处理,得到处理后的数据报文,包括:
根据所述报文通知消息的指示,从所述以太网交换机的存储空间中获取数据报文,并对所述数据报文进行处理,得到处理后的数据报文。
另一方面,本发明实施例提供一种无线AP,包括:广域网WAN接口、WIFI接口、以太网交换机以及处理器;其中
所述广域网WAN接口,用于从广域网接收数据报文;
所述以太网交换机,用于对所述WAN接口接收的数据报文进行交换处理,并将所述数据报文存储至所述以太网交换机的存储空间中;
所述以太网交换机还用于,向所述处理器发送报文通知消息;
所述处理器,用于接收所述以太网交换机发送的报文通知消息,并获取接收所述报文通知消息的时间,作为第一接收时间,所述报文通知消息用于指示启动数据报文的处理;
所述处理器,还用于根据所述报文通知消息的指示,从所述以太网交换机的存储空间中获取所述数据报文,并对所述数据报文进行处理,得到处理后的数据报文,其中,所述处理包括如下中的至少一种:对所述数据报文进行存储、对所述数据报文进行转换、对所述数据报文进行调度、对所述数据报文的空口发送机会进行竞争;
所述处理器,还用于通过所述WIFI接口向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间;
所述处理器,还用于根据所述第一接收时间和所述第二接收时间,计算出所述数据报文的处理延迟。
在一种可能的设计中,所述处理包括对所述数据报文进行转换时,
所述处理器,具体用于对所述数据报文进行分片处理,得到多个第一数据报文;
通过所述WIFI接口向所述STA依次发送所述多个第一数据报文;
获取接收所述STA返回的各第一确认报文的时间;
将接收最后一个第一确认报文的时间,作为所述第二接收时间。
在一种可能的设计中,所述处理包括对所述数据报文进行转换时,
所述处理器,具体用于将所述数据报文与其它数据报文进行聚合处理,得到第二数据报文;
通过所述WIFI接口向所述STA发送所述第二数据报文;
获取接收所述STA返回的第二确认报文的时间;
若所述第二确认报文中包括用于指示所述数据报文接收成功的接收信息,则将接收所述第二确认报文的时间,作为所述第二接收时间。
在一种可能的设计中,所述无线AP还包括WIFI芯片系统,所述处理器和所述WIFI接口位于所述WIFI芯片系统中。
本实施例提供的获取报文处理延迟的方法及设备,该方法通过接收报文通知消息,并获取接收报文通知消息的时间,作为第一接收时间,该第一接收时间即为处理数据报文的起始时间,在获取到第一接收时间后,根据报文通知消息的指示,获取数据报文,并对数据报文进行处理,得到处理后的数据报文,然后向STA发送数据报文,并获取接收STA返回的确认报文的时间,作为第二接收时间,该第二接收时间即为确认数据报文发送成功的时间,根据第一接收时间和第二接收时间,可以计算出数据报文的处理延迟,根据该处理延迟可以监控无线AP的服务质量,在网络性能不达标时,若该处理延迟的值超过预设值,则说明无线AP出现故障,从而可以定位故障发生的设备为无线AP。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的无线局域网系统的系统架构图;
图2为本发明实施例提供的获取报文处理延迟的方法流程图;
图3为本发明提供的数据报文的处理场景示意图;
图4为本发明实施例提供的数据报文传输的流程示意图一;
图5为本发明实施例提供的数据报文传输过程示意图一;
图6为本发明实施例提供的数据报文传输的流程示意图二;
图7为本发明实施例提供的数据报文传输过程示意图二;
图8为本发明提供的无线AP的硬件结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明实施例提供的无线局域网系统的系统架构图,如图1所示,本实施例提供的无线局域网(Wireless Local Area Networks,简称WLAN)系统包括无线接入点(Access Point,简称AP)和工作站(Station,简称STA),STA通过无线AP接入以太网。该基于WIFI的无线局域网系统基于IEEE 802.11系列标准实现,是利用高频无线射频(如2.4GHz,5GHz,60GHz等频段的无线电磁波)作为传输介质的无线局域网。
其中,无线AP是用于无线网络的无线交换机,也是无线网络的核心。无线AP是移动计算机用户进入有线网络的接入点,主要用于宽带家庭、大楼内部以及园区内部,典型距离覆盖几十米至上百米。在无线路由器、部分数字用户线用户终端设备(Digital Subscriber Line,Customer Premise Device,简称DSL CPE),终端设备(Cable Modem,简称CM),光网络单元(Optical Network Unit,简称ONU)中都可以集成无线接入点AP。
STA在WLAN中一般为客户端,可以是装有无线网卡的计算机,也可以是有WiFi模块的智能手机、智能电视、PAD、影视盒子等。STA可以是移动的,也可以是固定的。
在无线AP与STA进行通信时,无线AP可从以太网获取下行报文,然后将该下行报文发送给STA,STA也可以将上行报文发送给无线AP,然后STA将该上行报文发送到以太网。本实施例所涉及的报文主要针对无线AP从以太网接收的下行报文。
图1仅示出了无线局域网系统的一种系统架构,对于其它的系统架构,只要涉及无线AP与STA连接的,都属于本发明的保护范畴。对于其它的系统架构,本实施例此处不再赘述。
基于无线局域网系统中存在无法定位WiFi网络的故障点的问题,本发明实施例提供一种获取报文处理延迟的方法,通过该方法可以获取无线AP在 处理数据报文时的处理延迟,根据该处理延迟,可以判断WiFi网络的故障是否由上述系统架构中的AP产生。下面采用详细的实施例进行说明。
图2为本发明实施例提供的获取报文处理延迟的方法流程图。图3为本发明提供的数据报文的处理场景示意图。如图3所示,本实施例的执行主体为无线AP中的处理器,如图2所示,该方法包括:
步骤201、接收报文通知消息,并获取接收所述报文通知消息的时间,作为第一接收时间,所述报文通知消息用于指示启动数据报文的处理。
结合图3,广域网的数据报文从无线AP的广域网(WideAreaNetwork,简称WAN)接口进入无线AP中,该广域网的数据报文例如可以为以太网的数据报文。该WAN接口用于将无线AP接入广域网,WAN接口可以使用以太网接入、数字用户线路(Digital Subscriber Line,简称DSL)接入、同轴接入(例如,有线电缆数据服务接口规范(Data Over Cable Service Interface Specifications,简称DOCSIS),多媒体同轴电缆联盟MoCA),光纤接入,电力线通信接入等。
WAN接口在接收到数据报文之后,将该数据报文传输到以太网交换机(LAN switch,简称LSW)中,即LSW通过WAN接口从广域网接收数据报文。LSW在接收到数据报文之后,对数据报文进行交换处理。在交换处理完成后,LSW将该数据报文存储到LSW对应的存储空间中,然后LSW向处理器发送报文通知消息。
处理器接收LSW发送的报文通知消息,并获取接收报文通知消息的时间,作为第一时间。该报文通知消息用于指示启动数据报文的处理,代表处理器需要对数据报文启动处理流程。
步骤202、根据所述报文通知消息的指示,获取数据报文,并对所述数据报文进行处理,得到处理后的数据报文,其中,所述处理包括如下中的至少一种:对所述数据报文进行存储、对所述数据报文进行转换、对所述数据报文进行调度、对所述数据报文的空口发送机会进行竞争。
处理器在接收到报文通知消息之后,根据该报文通知消息的指示,从LSW的存储空间中获取该数据报文,然后对该数据报文进行处理,得到处理后的数据报文。对该数据报文进行处理,主要包括如下的至少一种处理。下面分别进行详细说明。
对数据报文进行存储。处理器从LSW的存储空间中获取该数据报文,并将该数据报文存储到无线AP的存储器中。
对数据报文进行转换。处理器将存储器中存储的数据报文进行转换,例如将以太网的数据报文转换成WIFI报文,即802.11协议所规定的报文,或者还可以对该数据报文进行聚合、分片等转换处理。
对数据报文进行调度。由于存储器中可能会有多个数据报文需要发送,因此处理器需要对存储器中存储的数据报文进行调度,以决定各数据报文的发送顺序。
对数据报文的空口发送机会进行竞争。处理器按照WiFi的竞争机制,例如载波检测多路访问/冲突避免协议(CSMA/CA)的竞争机制,来对空口发送机会进行竞争。即竞争数据报文发送时所需要的信道。
本领域技术人员可以理解,上述的对数据报文的处理,可以上述的处理过程均执行,也可以执行其中的几个处理流程。对于具体的执行过程,本实施例此处不做特别限制。在上述的处理均执行时,可以按照存储、转换、调度、竞争的过程来执行。
步骤203、向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间。
处理器在对数据报文处理完成后,通过WIFI芯片向STA发送该数据报文。其中,WIFI芯片上可以承载WIFI接口,可通过WIFI接口向STA发送数据报文。
STA在接收到该数据报文之后,会针对该数据报文向无线AP回复确认报文,以指示该数据报文接收成功。然而,当由于一些传输错误,有可能确认报文丢失,或者确认报文指示STA收到的数据报文出错,那么无线AP确认数据报文发送失败,无线AP启动数据报文的重传机制,此时会对该数据报文重新执行调度、竞争等处理流程,然后进行重传,若数据报文重传失败,则确认报文发送失败,将该数据报文丢弃,并记录丢弃的数据报文,从而获取对丢包率。
进一步地,在计算丢包率时,根据丢失的报文,统计报文丢失统计量。例如报文总数量,总流量,丢包数量,丢包率等,丢包率可以为各个时间区间内的丢包率。
本领域技术人员可以理解,本实施例获取的确认报文可以为首次发送数据报文对应的确认报文,也可以为重传过程对应的确认报文。
在无线AP的WIFI芯片接收到该确认报文之后,记录接收该确认报文的时间,并将该接收确认报文的时间发送给处理器,处理器在获取到该接收确认报文的时间后,将该时间作为第二时间。
步骤204、根据所述第一接收时间和所述第二接收时间,计算出所述数据报文的处理延迟。
处理器在得到第一接收时间T1和第二接收时间T2之后,就可以计算得到数据报文的处理延迟。由于第一接收时间为接收报文通知消息的时间,即准备开始处理数据报文的时间。因此,通过第一接收时间和第二时间计算得到的处理延迟,主要包括了处理器在处理过程的处理延迟以及往返延迟,该处理延迟即处理器在进行存储、转换、调度、竞争等过程的延迟。
在计算处理延迟时,可以通过T2-T1的方式来获取处理延迟,也可以通过T2-T1的各种变形方式来获取处理延迟,例如aT2-bT1的形式,或者
Figure PCTCN2016098446-appb-000001
的形式,其中a、b为延迟系数。
本领域技术人员可以理解,本实施例在此仅以一个数据报文为例,来说明数据报文的延迟。在具体实现过程中,无线AP向STA会发送多个数据报文,此时,无线AP可以针对预设数量的数据报文的处理延迟进行统计。从而可以获取平均延迟,最大延迟,最小延迟,延迟在各个时间区间内的统计参数等。
本实施例提供的获取报文处理延迟的方法,通过接收报文通知消息,并获取接收报文通知消息的时间,作为第一接收时间,该第一接收时间即为处理数据报文的起始时间,在获取到第一接收时间后,根据报文通知消息的指示,获取数据报文,并对数据报文进行处理,得到处理后的数据报文,然后向STA发送数据报文,并获取接收STA返回的确认报文的时间,作为第二接收时间,该第二接收时间即为确认数据报文发送成功的时间,根据第一接收时间和第二接收时间,可以计算出数据报文的处理延迟,根据该处理延迟可以监控无线AP的服务质量,在网络性能不达标时,若该处理延迟的值超过预设值,则说明无线AP出现故障,从而可以定位故障发生的设备为无线AP。
下面采用详细的实施例,来说明上述实施例中处理器对数据报文进行转换处理以及获取第二接收时间的具体实现过程。
在具体实现过程中,从无线AP的WAN接口进入的数据报文,与从WIFI芯片发送的数据报文,具有多种对应关系,可以为一一对应的关系,也可以将WAN接口接收的数据报文分片成多个报文从WIFI芯片发送,也可以将WAN接口接收的多个数据报文聚合成一个报文从WIFI芯片发送。
在一个具体的例子中,例如,在该无线局域网基于802.11协议实现时,该数据报文在通过WIFI芯片发送给STA时,需要转换为802.11协议规定的报文。此时,二者对应的关系可以为一一对应的关系,也可以将WAN接口接收的报文分片成多个802.11协议规定的报文,也可以将WAN接口接收的多个报文聚合成一个802.11协议规定的报文。
二者的对应关系不同,则对应的获取报文的发送信息的过程不同,下面分别进行详细说明。
一种可行的实现方式,从WAN接口接收的数据报文与从WIFI芯片发送的数据报文,二者的对应关系为一对一的关系。此种实现方式的具体实现过程,可参见图2所示实施例,本实施例此处不再赘述。
另一种可行的实现方式,图4为本发明实施例提供的数据报文传输的流程示意图一。如图4所示,该方法包括:
步骤401、对数据报文进行分片处理,得到多个第一数据报文;
步骤402、向STA依次发送多个第一数据报文;
步骤403、获取接收STA返回的各第一确认报文的时间;
步骤404、判断STA是否针对每个第一数据报文返回第一确认报文;若是,则执行步骤405,若否,则执行步骤406;
步骤405、将接收最后一个第一确认报文的时间,作为第二接收时间;
步骤406、确定数据报文发送失败。
在本实施例中,处理器在从LSW的存储空间中获取该数据报文之后,如果该数据报文的大小大于WIFI接口对应的最大传输单元(Maximum Transmission Unit,MTU),则处理器会将该数据报文进行分片处理,得到多个第一数据报文。然后处理器通过WIFI接口向STA依次发送多个第一数据报文,并接收STA针对各第一数据报文返回的第一确认报文。
具体地,图5为本发明实施例提供的数据报文传输过程示意图一,请结合图5所示,处理器在将该数据报文进行分片处理之后,得到三个第一数据报文。处理器通过WIFI接口向STA依次发送第一数据报文。
例如,无线AP向STA发送第一数据报文10,当STA接收成功之后,STA向无线AP返回第一确认报文ACK;无线AP向STA发送第一数据报文20,当STA接收成功之后,STA向无线AP返回第一确认报文ACK;无线AP向STA发送第一数据报文30,当STA接收成功之后,STA向无线AP返回第一确认报文ACK。至此,无线AP将该数据报文全部成功发送给STA。
本领域技术人员可以理解,在此过程中,针对任一第一数据报文,若该第一数据报文首次发送失败,则会开启重传机制,将该第一数据报文重传给STA,在重传成功时,将获取到重传过程对应的第一数据报文的第一确认报文;当重传失败后,则该第一数据报文发送失败。
在该数据报文的传输过程结束后(数据报文的传输过程包括重传过程),获取接收STA返回的各第一确认报文的时间,并判断STA是否针对所有的第一数据报文返回第一确认报文,若是,则将接收最后一个第一确认报文的时间,作为第二接收时间。本领域技术人员可以理解,该最后一个确认报文可以为重传过程的确认报文。
在图5所示实施例中,第一数据报文30对应的第一确认报文ACK为最后一个第一确认报文,则将接收第一数据报文30对应的第一确认报文的时间作为第二接收时间。若STA没有针对所有的第一数据报文返回第一确认报文,则认为该数据报文发送失败。
本实施例对数据报文进行分片,得到多个第一数据报文,然后将该第一数据报文依次发送给STA,然后根据各第一确认报文的接收时间来确定第二接收时间,实现了针对分片报文也可以得到第二接收时间,从而在无线AP在执行报文分片处理的操作时,也可以监控无线AP的服务质量。
又一种可行的实现方式,图6为本发明实施例提供的数据报文传输的流程示意图二。如图6所示,该方法包括:
步骤601、将数据报文与其它数据报文进行聚合处理,得到第二数据报文;
步骤602、向STA发送第二数据报文;
步骤603、获取接收STA返回的第二确认报文的时间;
步骤604、判断第二确认报文中是否包括用于指示该数据报文接收成功的接收信息,若是,执行步骤605,若否,执行步骤606;
步骤605、将接收第二确认报文的时间,作为第二接收时间;
步骤606、确定该数据报文发送失败。
在本实施例中,处理器在从LSW的存储空间中获取该数据报文之后,如果该数据报文的大小小于WIFI接口对应的最大传输单元(Maximum Transmission Unit,MTU),则处理器会将该数据报文与其它数据报文进行聚合处理,得到第二数据报文。然后处理器通过WIFI接口向STA发送第二数据报文。
具体地,图7为本发明实施例提供的数据报文传输过程示意图二,请结合图7所示,处理器对数据报文10、数据报文20以及数据报文30进行了聚合处理,即对三个数据报文的数据部分进行了聚合处理,然后加上报文头(未示出)形成了第二数据报文。在本实施例中为了便于说明,在图7中示意性的示出了数据报文10、数据报文20以及数据报文30聚合成了第二数据报文。
在聚合得到第二数据报文之后,无线AP向STA发送该第二数据报文,STA在接收到该第二数据报文之后,会向无线AP返回块确认报文BA。在该块确认报文中,包括用于指示该数据报文是否接收成功的接收信息。例如,若数据报文10和数据报文30接收成功,则在该块确认报文中,包括用于指示该数据报文10和数据报文30被接收成功的接收信息。可选地,还可以包括数据报文20被接受失败的接收信息。
对于数据报文20,则对该数据报文20进行重传处理,在重传处理过程中,同样会对数据报文20进行聚合处理。本领域技术人员可以理解,重传对应重传失败和重传成功两种情况。若重传成功,则重传过程对应的块确认报文中包括用于指示数据报文20被接收成功的接收信息。
因此,处理器在通过WFII接口接收到第二确认报文之后,判断第二确认报文中是否包括用于指示该数据报文接收成功的接收信息,对于数据报文10和数据报文30,则判断结果为是,此时将接收第二确认报文(块确认报文BA)的时间作为为数据报文10和数据报文30的第二接收时间。对于数据报文20,若该数据报文20重传失败,则该第二确认报文中包括用于指示数据报文20 被接收失败的接收信息,由此确定数据报文20发送失败。
本实施例对数据报文进行聚合处理,得到第二数据报文,然后将该第二数据报文发送给STA,然后根据第二确认报文的接收时间来得到第二接收时间,实现了针对聚合报文也可以得到第二接收时间,从而在无线AP在执行报文聚合处理的操作时,也可以监控无线AP的服务质量。
本领域技术人员可以理解,在上述图4至图7所示的实施例中,各确认报文的接收时间与图2实施例类似,即由WIFI芯片来记录各确认报文的接收时间,然后由WIFI芯片将各接收时间发送给处理器,由处理器根据各接收时间,来确定第二接收时间。
下面对本发明提供的无线AP的硬件结构实现进行详细说明。图8为本发明提供的无线AP的硬件结构示意图。如图8所示,本实施例提供的无线AP包括:WAN接口81、WIFI接口85、以太网交换机82以及处理器83以及通信总线86。其中,通信总线86用于实现元件之间的通信连接。例如,以太网交换机82、处理器83、WIFI接口85以及存储器84与通信总线86连接。
可选地,该WIFI接口85具体可包括基带电路851、射频电路852以及天线853,实现数据报文的发送。存储器84可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,存储器84中可以存储各种程序,用于完成各种处理功能以及实现本实施例的方法步骤。存储器84中也可以存储处理器84从以太网交换机82中获取的数据报文。
在本实施例中,所述WAN接口81,用于从广域网接收数据报文;
所述以太网交换机82,用于对所述WAN接口81接收的数据报文进行交换处理,并将所述数据报文存储至所述以太网交换机82的存储空间中;
所述以太网交换机82还用于,向所述处理器83发送报文通知消息;
所述处理器83,用于接收所述以太网交换机82发送的报文通知消息,并获取接收所述报文通知消息的时间,作为第一接收时间,所述报文通知消息用于指示启动数据报文的处理;
所述处理器83,还用于根据所述报文通知消息的指示,从所述以太网交换机82的存储空间中获取所述数据报文,并对所述数据报文进行处理,得到 处理后的数据报文,其中,所述处理包括如下中的至少一种:对所述数据报文进行存储、对所述数据报文进行转换、对所述数据报文进行调度、对所述数据报文的空口发送机会进行竞争;
所述处理器83,还用于通过所述WIFI接口85向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间;
所述处理器83,还用于根据所述第一接收时间和所述第二接收时间,计算出所述数据报文的处理延迟。
可选地,所述处理包括对所述数据报文进行转换时,
所述处理器83,具体用于对所述数据报文进行分片处理,得到多个第一数据报文;
通过所述WIFI接口85向所述STA依次发送所述多个第一数据报文;
获取接收所述STA返回的各第一确认报文的时间;
将接收最后一个第一确认报文的时间,作为所述第二接收时间。
可选地,所述处理包括对所述数据报文进行转换时,
所述处理器83,具体用于将所述数据报文与其它数据报文进行聚合处理,得到第二数据报文;
通过所述WIFI接口85向所述STA发送所述第二数据报文;
获取接收所述STA返回的第二确认报文的时间;
若所述第二确认报文中包括用于指示所述数据报文接收成功的接收信息,则将接收所述第二确认报文的时间,作为所述第二接收时间。
进一步地,在图8实施例的基础上,无线AP还可以包括WIFI芯片系统,该处理器83和WIFI接口85位于WIFI芯片系统中。
本实施例提供的无线AP,可用于执行上述图1至图7所示的方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、设备和方法,在没有超过本申请的范围内,可以通过其他的方式实现。例如,以上所描述的基站实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
另外,所描述系统、设备和方法以及不同实施例的示意图,在不超出本申请的范围内,可以与其它系统,模块,技术或方法结合或集成。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,基站或单元的间接耦合或通信连接,可以是电子、机械或其它的形式。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (8)

  1. 一种获取报文处理延迟的方法,其特征在于,应用于无线AP,所述方法包括:
    接收报文通知消息,并获取接收所述报文通知消息的时间,作为第一接收时间,所述报文通知消息用于指示启动数据报文的处理;
    根据所述报文通知消息的指示,获取数据报文,并对所述数据报文进行处理,得到处理后的数据报文,其中,所述处理包括如下中的至少一种:对所述数据报文进行存储、对所述数据报文进行转换、对所述数据报文进行调度、对所述数据报文的空口发送机会进行竞争;
    向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间;
    根据所述第一接收时间和所述第二接收时间,计算出所述数据报文的处理延迟。
  2. 根据权利要求1所述的方法,其特征在于,所述处理包括对所述数据报文进行转换时,所述对所述数据报文进行处理,得到处理后的数据报文,包括:
    对所述数据报文进行分片处理,得到多个第一数据报文;
    所述向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间,包括:
    向所述STA依次发送所述多个第一数据报文;
    获取接收所述STA返回的各第一确认报文的时间;
    将接收最后一个第一确认报文的时间,作为所述第二接收时间。
  3. 根据权利要求1所述的方法,其特征在于,所述处理包括对所述数据报文进行转换时,所述对所述数据报文进行处理,得到处理后的数据报文,包括:
    将所述数据报文与其它数据报文进行聚合处理,得到第二数据报文;
    所述向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间,包括:
    向所述STA发送所述第二数据报文;
    获取接收所述STA返回的第二确认报文的时间;
    若所述第二确认报文中包括用于指示所述数据报文接收成功的接收信息,则将接收所述第二确认报文的时间,作为所述第二接收时间。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述接收报文通知消息,包括:
    接收所述无线AP中的以太网交换机发送的报文通知消息,其中,所述以太网交换机通过所述AP的WAN接口从广域网接收所述数据报文;
    所述根据所述报文通知消息的指示,获取数据报文,并对所述数据报文进行处理,得到处理后的数据报文,包括:
    根据所述报文通知消息的指示,从所述以太网交换机的存储空间中获取数据报文,并对所述数据报文进行处理,得到处理后的数据报文。
  5. 一种无线AP,其特征在于,包括:广域网WAN接口、WIFI接口、以太网交换机以及处理器;其中
    所述广域网WAN接口,用于从广域网接收数据报文;
    所述以太网交换机,用于对所述WAN接口接收的数据报文进行交换处理,并将所述数据报文存储至所述以太网交换机的存储空间中;
    所述以太网交换机还用于,向所述处理器发送报文通知消息;
    所述处理器,用于接收所述以太网交换机发送的报文通知消息,并获取接收所述报文通知消息的时间,作为第一接收时间,所述报文通知消息用于指示启动数据报文的处理;
    所述处理器,还用于根据所述报文通知消息的指示,从所述以太网交换机的存储空间中获取所述数据报文,并对所述数据报文进行处理,得到处理后的数据报文,其中,所述处理包括如下中的至少一种:对所述数据报文进行存储、对所述数据报文进行转换、对所述数据报文进行调度、对所述数据报文的空口发送机会进行竞争;
    所述处理器,还用于通过所述WIFI接口向STA发送所述数据报文,并获取接收所述STA返回的确认报文的时间,作为第二接收时间;
    所述处理器,还用于根据所述第一接收时间和所述第二接收时间,计算出所述数据报文的处理延迟。
  6. 根据权利要求5所述的无线AP,其特征在于,所述处理包括对所述数据报文进行转换时,
    所述处理器,具体用于对所述数据报文进行分片处理,得到多个第一数据报文;
    通过所述WIFI接口向所述STA依次发送所述多个第一数据报文;
    获取接收所述STA返回的各第一确认报文的时间;
    将接收最后一个第一确认报文的时间,作为所述第二接收时间。
  7. 根据权利要求5所述的无线AP,其特征在于,所述处理包括对所述数据报文进行转换时,
    所述处理器,具体用于将所述数据报文与其它数据报文进行聚合处理,得到第二数据报文;
    通过所述WIFI接口向所述STA发送所述第二数据报文;
    获取接收所述STA返回的第二确认报文的时间;
    若所述第二确认报文中包括用于指示所述数据报文接收成功的接收信息,则将接收所述第二确认报文的时间,作为所述第二接收时间。
  8. 根据权利要求5至7任一项所述的无线AP,其特征在于,所述无线AP还包括WIFI芯片系统,所述处理器和所述WIFI接口位于所述WIFI芯片系统中。
PCT/CN2016/098446 2016-09-08 2016-09-08 获取报文处理延迟的方法及设备 WO2018045535A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/098446 WO2018045535A1 (zh) 2016-09-08 2016-09-08 获取报文处理延迟的方法及设备
CN201680086560.0A CN109315018B (zh) 2016-09-08 2016-09-08 获取报文处理延迟的方法及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/098446 WO2018045535A1 (zh) 2016-09-08 2016-09-08 获取报文处理延迟的方法及设备

Publications (1)

Publication Number Publication Date
WO2018045535A1 true WO2018045535A1 (zh) 2018-03-15

Family

ID=61561616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/098446 WO2018045535A1 (zh) 2016-09-08 2016-09-08 获取报文处理延迟的方法及设备

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113344701A (zh) * 2021-07-28 2021-09-03 中国银行股份有限公司 银行系统中基于预测机制发送交易报文的方法及装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560679A (zh) * 2023-11-15 2024-02-13 北京讯腾智慧科技股份有限公司 一种北斗基站的干扰监测装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102013942A (zh) * 2010-01-29 2011-04-13 柳州市达迪通信设备有限公司 一种报文延迟变化的测定方法
CN102217393A (zh) * 2008-11-25 2011-10-12 高通股份有限公司 用于双向测距的方法和装置
CN104025483A (zh) * 2011-11-02 2014-09-03 马维尔国际贸易有限公司 用于精确地估计网络内的延迟的服务、系统和方法
CN104040917A (zh) * 2012-01-12 2014-09-10 华为技术有限公司 用于服务质量控制的系统和方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720043B2 (en) * 2002-11-20 2010-05-18 Qualcomm Incorporated Use of idle frames for early transmission of negative acknowledgement of frame receipt
EP1916801B1 (en) * 2006-10-23 2012-12-12 Deutsche Telekom AG Access point for centralised scheduling in a IEEE 802.11e WLAN
US8335198B2 (en) * 2009-08-03 2012-12-18 Intel Corporation Variable short interframe space
CN103430605A (zh) * 2011-03-07 2013-12-04 英特尔公司 编组机器对机器通信
KR101838080B1 (ko) * 2014-03-12 2018-03-13 엘지전자 주식회사 하향링크용 채널을 지원하는 무선랜 시스템에서 데이터 송수신 방법 및 이를 위한 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217393A (zh) * 2008-11-25 2011-10-12 高通股份有限公司 用于双向测距的方法和装置
CN102013942A (zh) * 2010-01-29 2011-04-13 柳州市达迪通信设备有限公司 一种报文延迟变化的测定方法
CN104025483A (zh) * 2011-11-02 2014-09-03 马维尔国际贸易有限公司 用于精确地估计网络内的延迟的服务、系统和方法
CN104040917A (zh) * 2012-01-12 2014-09-10 华为技术有限公司 用于服务质量控制的系统和方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113344701A (zh) * 2021-07-28 2021-09-03 中国银行股份有限公司 银行系统中基于预测机制发送交易报文的方法及装置

Also Published As

Publication number Publication date
CN109315018B (zh) 2022-01-14
CN109315018A (zh) 2019-02-05

Similar Documents

Publication Publication Date Title
JP5677307B2 (ja) マルチキャスト通信のためのデータ速度適合の方法
KR101668768B1 (ko) 패킷 릴레이를 위한 시스템 및 방법
TWI431977B (zh) 以分時多工存取為基礎之協定中改善通道利用之方法
US20080259853A1 (en) Radio Lan System, and Base Station and Terminal Station Thereof
US20220345247A1 (en) Method for Determining Receiving Status of Data Frame and Communication Apparatus
CN110999467A (zh) 多业务标识符的聚合媒体访问控制协议数据单元传输
WO2019196885A1 (zh) 一种波束恢复的方法及装置
US20210297894A1 (en) Data transmission method and apparatus, data sending method and apparatus, and data transmission system
JP2020014215A (ja) 無線通信装置
WO2018045535A1 (zh) 获取报文处理延迟的方法及设备
TWI726156B (zh) 使用聚合實體層收斂協定資料單元之通訊裝置及通訊方法
WO2015133646A1 (ja) 通信制御装置、無線端末、メモリーカード、集積回路および無線通信方法
US20230019547A1 (en) Uplink data transmission scheduling
US20230247674A1 (en) Communication device and communication method
WO2017114033A1 (zh) 一种传输机会确定方法及接入点
EP2175590A1 (en) Method and apparatus for communicating over multiple networks
WO2015096475A1 (zh) 传输确认信息的发送方法和系统
WO2020253637A1 (zh) 一种响应帧的发送方法和接收节点
WO2024055852A1 (zh) 一种数据传输方法和装置
WO2024032352A1 (zh) 数据处理方法及装置
JP2017092686A (ja) 無線通信用集積回路、無線通信端末および無線通信方法
CN113727372A (zh) 一种多无线接入点的升级方法
JP2011049824A (ja) 基地局装置および端末装置
Nguonly et al. Analysis of One-ACK Fragmentation MAC Protocol for 802.11 n under Saturated Condition

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16915470

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16915470

Country of ref document: EP

Kind code of ref document: A1