WO2017215503A1 - Service quality measurement method and apparatus - Google Patents

Service quality measurement method and apparatus Download PDF

Info

Publication number
WO2017215503A1
WO2017215503A1 PCT/CN2017/087503 CN2017087503W WO2017215503A1 WO 2017215503 A1 WO2017215503 A1 WO 2017215503A1 CN 2017087503 W CN2017087503 W CN 2017087503W WO 2017215503 A1 WO2017215503 A1 WO 2017215503A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
router
reflection
measurement
service quality
Prior art date
Application number
PCT/CN2017/087503
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2017215503A1 publication Critical patent/WO2017215503A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a service quality measurement method and apparatus.
  • TWAMP Tu-Way Active Measurement Protocol
  • RFC5357 the Internet Engineering Task Force
  • TWAMP Tu-Way Active Measurement Protocol
  • the operator wants to know the quality of the service transmission it provides to the customer. It will be in PE1 (where PE is the abbreviation of Provider Edge, the carrier edge router, and CE is the abbreviation of Customer Edge.
  • PE1 where PE is the abbreviation of Provider Edge, the carrier edge router
  • CE is the abbreviation of Customer Edge.
  • the TWAMP protocol is used between the user edge router and the PE2 to simulate the customer service for measurement.
  • RFC5357 the functional block diagram of the measurement scheme is shown in Figure 2.
  • the TWAMP measurement is performed between the Session-Sender and the Session-Reflector, and the Control-Client and Server are mainly configured for TWAMP measurement.
  • the carrier often provides device-level protection at the edge of the network to improve network security.
  • the client's headquarters organization uses a double span.
  • the mode is connected to the PE2 and PE3 at both ends of the carrier network.
  • the PE2 can be configured as the backup device of the PE2.
  • the PE2 or PE3 fails, or PE2 or PE3 is restarted due to device upgrade,
  • the customer service between CE1 and CE2 is not interrupted.
  • TWAMP cannot be deployed on the carrier network because the carrier network provides IP services, and the IP service is based on one-way forwarding technology.
  • PE2 acts as a Session-Sender, PE1.
  • the TWAMP measurement protocol can be run between PE2 and PE1.
  • the service quality measurement message sent by PE2 may be returned to PE3 after PE1 processing, resulting in TWAMP.
  • the measurement protocol does not interact properly.
  • the embodiments of the present disclosure provide a service quality measurement method and apparatus to solve the problem that the TWAMP technology cannot be deployed in an operator network with edge node protection.
  • the first aspect provides a service quality measurement method, which is applied to a backup router of a first router at a session transmitting end, where the service quality measurement method includes:
  • the second router And receiving, by the second router, the first reflective packet sent by the second router, where the first reflective packet is a data packet generated by the second router after receiving the measurement packet sent by the first router;
  • the step of generating a second reflective packet according to the first reflective packet includes:
  • the first transmission time of the first router sending the measurement packet is recorded in the received first reflection packet. And receiving, by the second router, the second receiving time of the measurement packet;
  • the first transmission time of the first router transmitting the measurement packet and the second router are recorded in the generated second reflection packet. Receiving a second receiving time of the measurement packet and a first receiving time at which the standby router receives the first reflective packet.
  • the second aspect provides a service quality measurement method, which is applied to a first router at a session transmitting end, where the service quality measurement method includes:
  • the standby router And receiving, by the standby router, the second reflective packet sent by the standby router, where the second reflective packet is a data packet generated by the standby router after receiving the first reflective packet sent by the second router;
  • the first reflection packet is a data packet generated by the second router after receiving the measurement packet sent by the first router.
  • a first sending time that the first router sends a measurement packet and a second receiving time that the second router receives the measurement packet are recorded in the first reflection packet;
  • the received second transmission packet records the first transmission time, the first The second router receives the second receiving time of the measurement packet and the first receiving time that the standby router receives the first reflective packet.
  • the step of calculating the measurement result according to the second reflection packet includes:
  • the step of calculating the measurement result according to the second reflection packet includes:
  • a third aspect provides a service quality measuring apparatus, which is applied to a backup router of a first router at a session transmitting end, where the service quality measuring apparatus includes:
  • the first receiving module is configured to receive the first reflective packet sent by the second router at the reflective end of the session, where the first reflective packet is after the second router receives the measurement packet sent by the first router The generated data packet;
  • Generating a module configured to generate a second reflection packet according to the first reflection packet received by the first receiving module
  • the first sending module is configured to send the second reflective packet generated by the generating module to the first router, so that the first router calculates a service quality measurement result according to the second reflective packet.
  • the generating module is configured to: add, in the first reflective packet, the first receiving time that the standby router receives the first reflective packet, and generate a second reflective packet.
  • a first sending time that the first router sends a measurement packet and a second that the second router receives the measurement packet are recorded. Second receiving time;
  • a fourth aspect provides a service quality measuring apparatus, which is applied to a first router at a session transmitting end, where the service quality measuring apparatus includes:
  • a second sending module configured to send the measurement packet to the second router at the reflective end of the session
  • a second receiving module configured to receive a second reflective packet sent by the backup router of the first router, where the second reflective packet is a first reflective packet sent by the standby router to the second router And the first reflected packet is a data packet generated by the second router after receiving the measurement packet sent by the first router.
  • a calculating module configured to calculate a service quality measurement result according to the second reflection packet received by the second receiving module.
  • a first sending time that the first router sends a measurement packet and a second receiving time that the second router receives the measurement packet are recorded in the first reflection packet;
  • calculation module includes:
  • the first calculating unit is configured to calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflective packet.
  • calculation module includes:
  • a second calculating unit configured to calculate a two-way delay between the session transmitting end and the session reflection end according to the first sending time and the first receiving time recorded in the second reflective packet.
  • the router at the session reflection end when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, the reflection packet can be forwarded by the backup router to the router that sends the measurement packet, thereby implementing TWAMP measurement, and the TWAMP measurement protocol is prevented from being abnormal. Interaction enhances the applicability of TWAMP to complex scenes.
  • FIG. 1 is a schematic diagram showing a networking structure of a network edge in the prior art
  • Figure 2 is a functional block diagram showing the measurement of service quality in the prior art
  • FIG. 3 is a schematic diagram showing another network structure of a network edge in the prior art
  • FIG. 4 is a flowchart of a service quality measurement method according to a first embodiment of the present disclosure
  • FIG. 5 is a schematic structural view showing an example provided by the first embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a service quality measurement method according to a second embodiment of the present disclosure.
  • FIG. 7 is a block diagram showing a service quality measuring apparatus according to a third embodiment of the present disclosure.
  • FIG. 8 is a block diagram showing a service quality measuring apparatus according to a fourth embodiment of the present disclosure.
  • the embodiment of the present disclosure provides a service quality measurement method, which is applied to a backup router of a first router at a session transmitting end.
  • the service quality measurement method includes:
  • S401 Receive a first reflection packet sent by a second router that is in a session reflection end.
  • the first reflective packet is a data packet generated after the second router receives the measurement packet sent by the first router at the session transmitting end.
  • the first router may correspond to PE1 in FIG. 3, the backup router corresponds to PE3 in FIG. 3, and the second router corresponds to PE2 in FIG. 3, so the following descriptions about the first router, the second router, and the backup router are performed.
  • PE1, PE2, and PE3 are taken as examples.
  • PE1 is defined as a session transmitting device
  • PE2 is defined as a session reflector device
  • PE3 is defined as a forwarding device.
  • PE1 sends a measurement packet to PE2
  • PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet.
  • PE1 sends the first reflection packet to PE1, PE1 calculates the service according to the first reflection packet. Quality measurement result; when PE2 sends the first reflection packet to PE3, it proceeds to S402.
  • the PE3 After receiving the first reflection packet sent by the PE2, the PE3 processes the first reflection packet to generate a second reflection packet. For example, adding a first receiving time that the PE3 receives the first reflective packet in the first reflective packet, and generating a second reflective packet, so that the PE1 calculates the session transmitting end and the session reflection according to the first receiving time that the PE3 receives the first reflective packet. Two-way delay between the ends.
  • the PE3 sends the generated second reflection packet to the PE1, so that the PE1 calculates the service quality measurement (such as calculating the packet loss rate and the two-way delay).
  • the service quality measurement such as calculating the packet loss rate and the two-way delay.
  • the first transmission packet records the first transmission time that PE1 sends the measurement packet and the second reception time that PE2 receives the measurement packet.
  • the first transmission time, PE2, in which the PE1 sends the measurement packet is recorded in the second reflection packet.
  • the second reception time of the measurement packet is received and the first reception time of the first reflection packet is received by the PE3.
  • PE1 may calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflection packet, and according to the first sending time and the first recorded in the second reflection packet.
  • a receiving time calculates a two-way delay between the session transmitter and the session reflector.
  • the calculation of the packet loss rate is the same as the prior art, and the embodiments of the present disclosure will not be described again.
  • the example includes: a measurement delivery module (disposed on the first router), and a measurement reflection module. (Deployed on the second router) and the Reflective Packet Forwarding Module (deployed on the standby router) with the following steps:
  • Step 1 The measurement delivery module constructs the measurement package according to the requirements of RFC5357 and sends it to the measurement reflection module, and then proceeds to step 2.
  • Step 2 The measurement reflection module processes the received measurement message according to the requirements of RFC5357, constructs a measurement reflection packet (ie, the first reflection packet), and transmits it, and then proceeds to step 3 or step 4.
  • a measurement reflection packet ie, the first reflection packet
  • the measurement reflection packet records the reception time of the measurement packet (ie, the second reception time), measures the sequence number and the packet transmission time (ie, the first transmission time) in the packet, and the sequence number and the packet of the measurement reflection packet. Time and other information.
  • Step 3 If the measurement and delivery module receives the measurement reflection packet, the service quality measurement result is calculated according to the requirements of RFC5357, and the process ends.
  • Step 4 If the reflection packet forwarding module receives the measurement reflection packet, records the time information (ie, the first reception time) at which the measurement reflection packet is received, and after the time stamp is set in the measurement reflection packet, forwards the measurement reflection packet to Measure the delivery module and proceed to step five.
  • the time information ie, the first reception time
  • Step 5 After the measurement packet receiving module receives the measurement reflection packet of the reflection packet forwarding module, the service quality measurement result is calculated and ended.
  • the packet loss rate is calculated, it can be calculated according to the requirements of RFC5357. If the two-way delay is calculated, the calculation should be based on the time when the packet forwarding module receives the packet, that is, the first transmission time and the first reception. Time, calculate the two-way delay between the session transmitter and the session reflection end.
  • the router at the session reflection end when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, the reflective packet can be forwarded by the backup router to the router that sends the measurement packet.
  • TWAMP measurement to avoid the TWAMP measurement protocol can not interact properly, improve the applicability of TWAMP to complex scenarios.
  • the embodiment of the present disclosure provides a service quality measurement method, which is applied to a first router at a session transmitting end. As shown in FIG. 6, the service quality measurement method includes:
  • the first router constructs a measurement packet according to requirements (as required by RFC5357) and sends it to a second router at the session reflection end for TWAMP measurement.
  • the second reflection packet is a data packet generated after the standby router receives the first reflection packet sent by the second router.
  • the first reflected packet is a data packet generated after the second router receives the measurement packet sent by the first router at the session transmitting end.
  • the first router may correspond to PE1 in FIG. 3, the second router corresponds to PE2 in FIG. 3, and the backup router corresponds to PE3 in FIG. 3, so the following descriptions about the first router, the second router, and the backup router are performed.
  • PE1, PE2, and PE3 are taken as examples.
  • PE1 is defined as a session transmitting device
  • PE2 is defined as a session reflector device
  • PE3 is defined as a forwarding device.
  • PE1 sends a measurement packet to PE2
  • PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet.
  • PE2 sends the first reflection packet to PE1, PE1 directly calculates according to the first reflection packet.
  • the service quality measurement result when PE1 sends the first reflection packet to PE3, PE3 performs certain processing on the first reflection packet to generate a second reflection packet, and sends the second reflection packet to PE1, and then proceeds to S503.
  • PE1 After receiving the second reflection packet, PE1 calculates a service quality measurement result according to the information in the second reflection packet. In this way, even if the PE2 does not directly send the first reflection packet to the PE1, it can be forwarded through the PE3, thereby implementing the service quality measurement by the TWAMP technology, so that the TWAMP technology can deploy the application in a more complex network environment, and the TWAMP pair is improved. The applicability of complex scenes.
  • the first transmission packet records the first transmission time that the first router sends the measurement packet and the second reception time that the second router receives the measurement packet.
  • the second reflection packet records a first transmission time when the first router sends the measurement packet, a second reception time when the second router receives the measurement packet, and a first reception time when the standby router receives the first reflection packet.
  • PE1 can calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflected packet. And calculating a two-way delay between the session transmitting end and the session reflecting end according to the first sending time and the first receiving time recorded in the second reflection packet.
  • the calculation of the packet loss rate is the same as the prior art, and the embodiments of the present disclosure will not be described again.
  • the router at the session reflection end when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, the reflective packet can be forwarded by the backup router to the router that sends the measurement packet.
  • TWAMP measurement to avoid the TWAMP measurement protocol can not interact properly, improve the applicability of TWAMP to complex scenarios.
  • the embodiment of the present disclosure provides a service quality measuring apparatus, which is applied to a backup router of a first router at a session transmitting end.
  • the service quality measuring apparatus includes:
  • the first receiving module 701 is configured to receive the first reflective packet sent by the second router at the reflective end of the session.
  • the first reflection packet is a data packet generated after the second router receives the measurement packet sent by the first router.
  • the first router may correspond to PE1 in FIG. 3, the backup router corresponds to PE3 in FIG. 3, and the second router corresponds to PE2 in FIG. 3, so the following descriptions about the first router, the second router, and the backup router are performed.
  • PE1, PE2, and PE3 are taken as examples.
  • PE1 is defined as a session transmitting device
  • PE2 is defined as a session reflector device
  • PE3 is defined as a forwarding device.
  • PE1 sends a measurement packet to PE2
  • PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet.
  • PE1 sends the first reflection packet to PE1, PE1 calculates the service according to the first reflection packet. Quality measurement result; when PE2 sends the first reflection packet to PE3, it is received by the first receiving module 701 in PE3.
  • the generating module 702 is configured to generate a second reflection packet according to the first reflection packet received by the first receiving module 701.
  • the first receiving module 701 After receiving the first reflection packet sent by the PE2, the first receiving module 701 processes the first reflection packet to generate a second reflection packet. For example, adding a first receiving time that the PE3 receives the first reflective packet in the first reflective packet, and generating a second reflective packet, so that the PE1 calculates the session transmitting end and the session reflection according to the first receiving time that the PE3 receives the first reflective packet. Two-way delay between the ends.
  • the first sending module 703 is configured to send the second reflective packet generated by the generating module 702 to the first router, so that the first router calculates the service quality measurement result according to the second reflected packet.
  • the first sending module 703 in the PE3 sends the generated second reflected packet to the PE1, so that the PE1 calculates the service quality measurement (such as calculating the packet loss rate and the two-way delay, etc.).
  • the service quality measurement such as calculating the packet loss rate and the two-way delay, etc.
  • the generating module 702 is configured to: add a first receiving time that the standby router receives the first reflective packet in the first reflective packet, and generate a second reflective packet.
  • the first receiving module 701 records the time information of receiving the first reflected packet time (ie, the first receiving time) when the first reflective packet is received, and the generating module 702 generates a time stamp in the first reflective packet to generate a time stamp.
  • the second reflection packet is forwarded to PE1.
  • the first transmission packet received by the first receiving module 701 records the first sending time that the first router sends the measurement packet and the second receiving time that the second router receives the measurement packet.
  • the second reflection packet generated by the generation module 702 records the first transmission time when the first router sends the measurement packet, the second reception time when the second router receives the measurement packet, and the first time that the standby router receives the first reflection packet. Receive time.
  • PE1 may calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflection packet, and according to the first sending time and the first recorded in the second reflection packet.
  • a receiving time calculates a two-way delay between the session transmitter and the session reflector. The calculation of the packet loss rate is the same as the prior art, and the embodiments of the present disclosure will not be described again.
  • the service quality measuring apparatus can forward the reflected packet to the router that sends the measurement packet when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet.
  • the service quality measuring apparatus can forward the reflected packet to the router that sends the measurement packet when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet.
  • the embodiment of the present disclosure provides a service quality measuring apparatus, which is applied to a first router at a session transmitting end.
  • the service quality measuring apparatus includes:
  • the second sending module 801 is configured to send the measurement packet to the second router at the session reflection end.
  • the first router constructs a measurement packet according to requirements (such as required by RFC5357), and sends the measurement packet to the second router at the session reflection end through the second sending module 801 to perform TWAMP measurement.
  • the second receiving module 802 is configured to receive the second reflective packet sent by the backup router of the first router.
  • the second reflection packet is a data packet generated after the standby router receives the first reflection packet sent by the second router.
  • the first reflection packet is a data packet generated after the second router receives the measurement packet sent by the first router.
  • the first router may correspond to the PE1 in FIG. 3, the second router corresponds to the PE2 in FIG. 3, and the backup router corresponds to the PE3 in FIG. 3, so the following follows the first router, the second router, and the backup path.
  • the description of the device is described by taking PE1, PE2 and PE3 as examples.
  • PE1 is defined as a session transmitting device
  • PE2 is defined as a session reflector device
  • PE3 is defined as a forwarding device.
  • PE1 sends a measurement packet to PE2
  • PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet.
  • PE2 sends the first reflection packet to PE1, PE1 directly calculates according to the first reflection packet.
  • the service quality measurement result when PE1 sends the first reflection packet to PE3, PE3 performs certain processing on the first reflection packet to generate a second reflection packet, and sends the second reflection packet to PE1.
  • the calculating module 803 is configured to calculate a service quality measurement result according to the second reflection packet received by the second receiving module 802.
  • the calculation module 803 in the PE1 calculates the service quality measurement result according to the information in the second reflection packet. In this way, even if the PE2 does not directly send the first reflection packet to the PE1, it can be forwarded through the PE3, thereby implementing the service quality measurement by the TWAMP technology, so that the TWAMP technology can deploy the application in a more complex network environment, and the TWAMP pair is improved. The applicability of complex scenes.
  • the first transmission packet records a first transmission time when the first router sends the measurement packet and a second reception time when the second router receives the measurement packet.
  • the second transmission packet received by the second receiving module records a first transmission time when the first router sends the measurement packet, a second reception time when the second router receives the measurement packet, and a second router receives the first reflection packet. A receiving time.
  • calculation module 803 includes:
  • the first calculating unit is configured to calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflective packet.
  • the second receiving time of receiving the measurement packet by the second router minus the calculation result of the first sending time of the first router transmitting the measurement packet is used as a one-way delay from the session transmitting end to the session reflecting end.
  • calculation module 803 includes:
  • the second calculating unit is configured to calculate a two-way delay between the session transmitting end and the session reflecting end according to the first sending time and the first receiving time recorded in the second reflective packet.
  • the first receiving time of receiving the first reflected packet by the standby router minus the calculation result of the first sending time of the first measuring packet sent by the first router is used as a two-way delay between the session transmitting end and the session reflecting end.
  • the service quality measuring apparatus can receive the reflection packet forwarded by the backup router when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, thereby implementing TWAMP. Measurement, to avoid TWAMP measurement protocol can not interact properly, improve TWAMP Applicability to complex scenes.
  • Each module or unit in an embodiment of the present disclosure may be implemented by one or more digital signal processors (DSPs), application specific integrated circuits (ASICs), processors, microprocessors, controllers, microcontrollers, field programmable arrays ( FPGA, programmable logic device or other electronic unit or any combination thereof.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • processors microprocessors
  • controllers microcontrollers
  • FPGA field programmable arrays
  • an embodiment of the present disclosure also provides a router (eg, a backup router of a first router at a session transmitting end), including:
  • a memory for storing processor executable instructions
  • the processor is configured to perform the steps in the foregoing quality of service measurement method.
  • an embodiment of the present disclosure further provides a router (such as a first router at a session transmitting end), including:
  • a memory for storing processor executable instructions
  • the processor is configured to perform the steps in the foregoing quality of service measurement method.
  • the above memory may be a non-transitory computer readable storage medium including instructions such as a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a ROM read-only memory
  • RAM random access memory
  • CD-ROM compact disc-read only memory
  • magnetic tape magnetic tape
  • floppy disk magnetic tape
  • optical data storage device optical data storage device
  • the method and apparatus provided by the embodiments of the present disclosure can be applied to the field of communications.
  • the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet
  • the reflective packet can be forwarded by the backup router to the router that sends the measurement packet, thereby implementing TWAMP. Measurements, to avoid the TWAMP measurement protocol can not interact properly, improve the applicability of TWAMP to complex scenarios.

Abstract

Provided are a service quality measurement method and apparatus. The service quality measurement method is applied to a standby router of a first router located at a session sender, and comprises: receiving a first reflection packet sent by a second router located at a session reflector, wherein the first reflection packet is a data packet generated after the second router receives a measurement packet sent by a first router; generating a second reflection packet according to the first reflection packet; and sending the second reflection packet to the first router, so that the first router calculates a service quality measurement result according to the second reflection packet. The service quality measurement method provided in the embodiments of the present disclosure can improve the applicability of a TWAMP in a complex scenario.

Description

一种业务质量测量方法及装置Method and device for measuring service quality 技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种业务质量测量方法及装置。The present disclosure relates to the field of communications technologies, and in particular, to a service quality measurement method and apparatus.
背景技术Background technique
运营商在为客户提供网络服务时,出于运维和故障界定等目的,需要对客户业务的性能和故障情况进行监视。对于常见的IP业务,IETF(The Internet Engineering Task Force,国际互联网工程任务组)在RFC5357中定义了TWAMP(Two-Way Active Measurement Protocol,双向主动测量协议),可用于实现客户业务的性能测量和监控,在如图1所示的组网下,运营商希望了解其为客户提供的业务传输质量,会在PE1(其中,PE为Provider Edge的简称,运营商边缘路由器,CE为Customer Edge的简称,用户边缘路由器)和PE2之间采用TWAMP协议,模拟客户业务进行测量,根据RFC5357,该测量方案的功能框图如图2所示,。在会话发射端(Session-Sender)和会话反射端(Session-Reflector)之间进行TWAMP测量,在控制客户端(Control-Client)和服务端(Server)主要为TWAMP测量进行配置准备工作。When operators provide network services to customers, they need to monitor the performance and fault conditions of customer services for the purposes of operation and maintenance and fault definition. For common IP services, IETF (The Internet Engineering Task Force) defines TWAMP (Two-Way Active Measurement Protocol) in RFC5357, which can be used to measure and monitor the performance of customer services. In the networking shown in Figure 1, the operator wants to know the quality of the service transmission it provides to the customer. It will be in PE1 (where PE is the abbreviation of Provider Edge, the carrier edge router, and CE is the abbreviation of Customer Edge. The TWAMP protocol is used between the user edge router and the PE2 to simulate the customer service for measurement. According to RFC5357, the functional block diagram of the measurement scheme is shown in Figure 2. The TWAMP measurement is performed between the Session-Sender and the Session-Reflector, and the Control-Client and Server are mainly configured for TWAMP measurement.
随着客户对业务安全性要求的提高,运营商经常会在网络边缘提供设备级的保护,以提升网络的安全性,如图3所示,该组网场景下,客户的总部机构采用双跨方式连接到运营商网络边缘的两端设备PE2和PE3(其中,PE3可以理解为PE2的备用设备)上,当PE2或者PE3单节点发生故障,或因设备升级重启PE2或PE3时,都可以保证CE1与CE2之间的客户业务不中断。但在图3所示的组网场景下,无法在运营商网络中部署TWAMP,因为运营商网络提供的是IP业务,而IP业务是基于单向转发技术的,假设PE2作为Session-Sender,PE1作为Session-Reflector,按图2所示的测量功能框架,可在PE2和PE1之间运行TWAMP测量协议,但PE2发出的业务质量测量报文,经PE1处理之后,可能会返回到PE3,导致TWAMP测量协议无法正常交互。As the security requirements of the customer are improved, the carrier often provides device-level protection at the edge of the network to improve network security. As shown in Figure 3, the client's headquarters organization uses a double span. The mode is connected to the PE2 and PE3 at both ends of the carrier network. The PE2 can be configured as the backup device of the PE2. When the PE2 or PE3 fails, or PE2 or PE3 is restarted due to device upgrade, The customer service between CE1 and CE2 is not interrupted. However, in the networking scenario shown in Figure 3, TWAMP cannot be deployed on the carrier network because the carrier network provides IP services, and the IP service is based on one-way forwarding technology. Assume that PE2 acts as a Session-Sender, PE1. As a Session-Reflector, according to the measurement function framework shown in Figure 2, the TWAMP measurement protocol can be run between PE2 and PE1. However, the service quality measurement message sent by PE2 may be returned to PE3 after PE1 processing, resulting in TWAMP. The measurement protocol does not interact properly.
发明内容Summary of the invention
本公开实施例提供了一种业务质量测量方法及装置,以解决TWAMP技术在具备边缘节点保护的运营商网络中无法部署的问题。The embodiments of the present disclosure provide a service quality measurement method and apparatus to solve the problem that the TWAMP technology cannot be deployed in an operator network with edge node protection.
为了解决上述技术问题,本公开采用如下技术方案: In order to solve the above technical problem, the present disclosure adopts the following technical solutions:
第一方面,提供了一种业务质量测量方法,应用于处于会话发射端的第一路由器的备用路由器,所述业务质量测量方法包括:The first aspect provides a service quality measurement method, which is applied to a backup router of a first router at a session transmitting end, where the service quality measurement method includes:
接收处于会话反射端的第二路由器所发送的第一反射包,其中,所述第一反射包为所述第二路由器接收到所述第一路由器所发送的测量包后所生成的数据包;And receiving, by the second router, the first reflective packet sent by the second router, where the first reflective packet is a data packet generated by the second router after receiving the measurement packet sent by the first router;
根据所述第一反射包生成第二反射包;Generating a second reflection packet according to the first reflection packet;
将所述第二反射包发送至所述第一路由器,以使所述第一路由器根据所述第二反射包计算业务质量测量结果。Sending the second reflection packet to the first router, so that the first router calculates a service quality measurement result according to the second reflection packet.
进一步地,所述根据所述第一反射包生成第二反射包的步骤包括:Further, the step of generating a second reflective packet according to the first reflective packet includes:
在所述第一反射包中添加所述备用路由器接收到所述第一反射包的第一接收时间,生成第二反射包。Adding, in the first reflection packet, the first receiving time that the backup router receives the first reflection packet, and generating a second reflection packet.
进一步地,在接收处于会话反射端的第二路由器所发送的第一反射包的步骤中,所接收到的所述第一反射包中,记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;Further, in the step of receiving the first reflective packet sent by the second router at the session reflection end, the first transmission time of the first router sending the measurement packet is recorded in the received first reflection packet. And receiving, by the second router, the second receiving time of the measurement packet;
所述根据所述第一反射包生成第二反射包的步骤中,所生成的所述第二反射包中,记录有所述第一路由器发送测量包的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。In the step of generating the second reflection packet according to the first reflection packet, the first transmission time of the first router transmitting the measurement packet and the second router are recorded in the generated second reflection packet. Receiving a second receiving time of the measurement packet and a first receiving time at which the standby router receives the first reflective packet.
第二方面,提供了一种业务质量测量方法,应用于处于会话发射端的第一路由器,所述业务质量测量方法包括:The second aspect provides a service quality measurement method, which is applied to a first router at a session transmitting end, where the service quality measurement method includes:
发送测量包至处于会话反射端的第二路由器;Sending a measurement packet to a second router at the reflective end of the session;
接收所述第一路由器的备用路由器所发送的第二反射包;其中,所述第二反射包为所述备用路由器接收到所述第二路由器发送的第一反射包后所生成的数据包;所述第一反射包为所述第二路由器接收到所述第一路由器所发送的所述测量包后所生成的数据包。And receiving, by the standby router, the second reflective packet sent by the standby router, where the second reflective packet is a data packet generated by the standby router after receiving the first reflective packet sent by the second router; The first reflection packet is a data packet generated by the second router after receiving the measurement packet sent by the first router.
根据所述第二反射包,计算业务质量测量结果。Calculating a service quality measurement result according to the second reflection packet.
进一步地,所述第一反射包中记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;Further, a first sending time that the first router sends a measurement packet and a second receiving time that the second router receives the measurement packet are recorded in the first reflection packet;
所述接收处于会话发射端的备用路由器所发送的第二反射包的步骤中,所接收到的所述第二反射包中记录有所述第一路由器发送测量包的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。 In the step of receiving the second reflection packet sent by the backup router at the session transmitting end, the received second transmission packet records the first transmission time, the first The second router receives the second receiving time of the measurement packet and the first receiving time that the standby router receives the first reflective packet.
进一步地,所述根据所述第二反射包,计算测量结果的步骤包括:Further, the step of calculating the measurement result according to the second reflection packet includes:
根据所述第二反射包中记录的所述第一发送时间和所述第二接收时间,计算会话发射端到会话反射端的单向时延。And calculating a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflection packet.
进一步地,所述根据所述第二反射包,计算测量结果的步骤包括:Further, the step of calculating the measurement result according to the second reflection packet includes:
根据所述第二反射包中记录的所述第一发送时间和所述第一接收时间,计算会话发射端与会话反射端之间的双向时延。And calculating a two-way delay between the session transmitting end and the session reflection end according to the first sending time and the first receiving time recorded in the second reflection packet.
第三方面,提供了一种业务质量测量装置,应用于处于会话发射端的第一路由器的备用路由器,所述业务质量测量装置包括:A third aspect provides a service quality measuring apparatus, which is applied to a backup router of a first router at a session transmitting end, where the service quality measuring apparatus includes:
第一接收模块,设置为接收处于会话反射端的第二路由器所发送的第一反射包,其中,所述第一反射包为所述第二路由器接收到所述第一路由器所发送的测量包后所生成的数据包;The first receiving module is configured to receive the first reflective packet sent by the second router at the reflective end of the session, where the first reflective packet is after the second router receives the measurement packet sent by the first router The generated data packet;
生成模块,设置为根据所述第一接收模块所接收到的所述第一反射包生成第二反射包;Generating a module, configured to generate a second reflection packet according to the first reflection packet received by the first receiving module;
第一发送模块,设置为将所述生成模块所生成的所述第二反射包发送至所述第一路由器,以使所述第一路由器根据所述第二反射包计算业务质量测量结果。The first sending module is configured to send the second reflective packet generated by the generating module to the first router, so that the first router calculates a service quality measurement result according to the second reflective packet.
进一步地,所述生成模块设置为:在所述第一反射包中添加所述备用路由器接收到所述第一反射包的第一接收时间,生成第二反射包。Further, the generating module is configured to: add, in the first reflective packet, the first receiving time that the standby router receives the first reflective packet, and generate a second reflective packet.
进一步地,所述第一接收模块所接收到的所述第一反射包中,记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;Further, in the first reflection packet received by the first receiving module, a first sending time that the first router sends a measurement packet and a second that the second router receives the measurement packet are recorded. Second receiving time;
所述生成模块所生成的所述第二反射包中,记录有所述第一路由器发送测量包的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。Recording, in the second reflection packet generated by the generating module, a first sending time that the first router sends a measurement packet, a second receiving time that the second router receives the measurement packet, and the The standby router receives the first reception time of the first reflection packet.
第四方面,提供了一种业务质量测量装置,应用于处于会话发射端的第一路由器,所述业务质量测量装置包括:A fourth aspect provides a service quality measuring apparatus, which is applied to a first router at a session transmitting end, where the service quality measuring apparatus includes:
第二发送模块,设置为发送测量包至处于会话反射端的第二路由器;a second sending module, configured to send the measurement packet to the second router at the reflective end of the session;
第二接收模块,设置为接收所述第一路由器的备用路由器所发送的第二反射包;其中,所述第二反射包为所述备用路由器接收到所述第二路由器发送的第一反射包后所生成的数据包;所述第一反射包为所述第二路由器接收到所述第一路由器所发送的所述测量包后所生成的数据包。 a second receiving module, configured to receive a second reflective packet sent by the backup router of the first router, where the second reflective packet is a first reflective packet sent by the standby router to the second router And the first reflected packet is a data packet generated by the second router after receiving the measurement packet sent by the first router.
计算模块,设置为根据所述第二接收模块所接收到的所述第二反射包,计算业务质量测量结果。And a calculating module, configured to calculate a service quality measurement result according to the second reflection packet received by the second receiving module.
进一步地,所述第一反射包中记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;Further, a first sending time that the first router sends a measurement packet and a second receiving time that the second router receives the measurement packet are recorded in the first reflection packet;
所述第二接收模块处所接收到的所述第二反射包中记录有所述第一路由器发送测量包的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。Recording, in the second reflection packet received by the second receiving module, a first sending time that the first router sends a measurement packet, and a second receiving time that the second router receives the measurement packet The standby router receives the first receiving time of the first reflective packet.
进一步地,所述计算模块包括:Further, the calculation module includes:
第一计算单元,设置为根据所述第二反射包中记录的所述第一发送时间和所述第二接收时间,计算会话发射端到会话反射端的单向时延。The first calculating unit is configured to calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflective packet.
进一步地,所述计算模块包括:Further, the calculation module includes:
第二计算单元,设置为根据所述第二反射包中记录的所述第一发送时间和所述第一接收时间,计算会话发射端与会话反射端之间的双向时延。And a second calculating unit, configured to calculate a two-way delay between the session transmitting end and the session reflection end according to the first sending time and the first receiving time recorded in the second reflective packet.
本公开的有益效果是:The beneficial effects of the present disclosure are:
上述技术方案,当处于会话反射端的路由器将反射包发送至发送测量包的路由器的备用路由器时,可由备用路由器将反射包转发至发送测量包的路由器,从而实现TWAMP测量,避免TWAMP测量协议无法正常交互,提升了TWAMP对复杂场景的适用性。In the above technical solution, when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, the reflection packet can be forwarded by the backup router to the router that sends the measurement packet, thereby implementing TWAMP measurement, and the TWAMP measurement protocol is prevented from being abnormal. Interaction enhances the applicability of TWAMP to complex scenes.
附图说明DRAWINGS
图1表示现有技术中的网络边缘的组网结构示意图;FIG. 1 is a schematic diagram showing a networking structure of a network edge in the prior art;
图2表示现有技术中业务质量测量的功能框图;Figure 2 is a functional block diagram showing the measurement of service quality in the prior art;
图3表示现有技术中的网络边缘的另一组网结构示意图;FIG. 3 is a schematic diagram showing another network structure of a network edge in the prior art;
图4表示本公开第一实施例提供的业务质量测量方法的流程图;4 is a flowchart of a service quality measurement method according to a first embodiment of the present disclosure;
图5表示本公开第一实施例提供的示例的结构示意图;FIG. 5 is a schematic structural view showing an example provided by the first embodiment of the present disclosure; FIG.
图6表示本公开第二实施例提供的业务质量测量方法的流程图;6 is a flowchart of a service quality measurement method according to a second embodiment of the present disclosure;
图7表示本公开第三实施例提供的业务质量测量装置的框图;FIG. 7 is a block diagram showing a service quality measuring apparatus according to a third embodiment of the present disclosure;
图8表示本公开第四实施例提供的业务质量测量装置的框图。FIG. 8 is a block diagram showing a service quality measuring apparatus according to a fourth embodiment of the present disclosure.
具体实施方式 detailed description
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.
第一实施例First embodiment
本公开实施例提供了一种业务质量测量方法,应用于处于会话发射端的第一路由器的备用路由器。如图4所示,该业务质量测量方法包括:The embodiment of the present disclosure provides a service quality measurement method, which is applied to a backup router of a first router at a session transmitting end. As shown in FIG. 4, the service quality measurement method includes:
S401、接收处于会话反射端的第二路由器所发送的第一反射包。S401. Receive a first reflection packet sent by a second router that is in a session reflection end.
其中,第一反射包为第二路由器接收到处于会话发射端的第一路由器所发送的测量包后所生成的数据包。The first reflective packet is a data packet generated after the second router receives the measurement packet sent by the first router at the session transmitting end.
其中,第一路由器可对应为图3中的PE1,备用路由器对应为图3中的PE3,第二路由器对应为图3中的PE2,因此以下关于第一路由器、第二路由器以及备用路由器的描述均以PE1、PE2和PE3为例加以说明。其中,PE1定义为会话发射端设备,PE2定义为会话反射端设备,PE3定义为转发设备。当PE1发送测量包至PE2时,PE2根据相关协议(如RFC5357)对测量包进行处理,生成第一反射包,当PE2将第一反射包发送至PE1时,则PE1根据第一反射包计算业务质量测量结果;当PE2将第一反射包发送至PE3时,则进入S402。The first router may correspond to PE1 in FIG. 3, the backup router corresponds to PE3 in FIG. 3, and the second router corresponds to PE2 in FIG. 3, so the following descriptions about the first router, the second router, and the backup router are performed. PE1, PE2, and PE3 are taken as examples. PE1 is defined as a session transmitting device, PE2 is defined as a session reflector device, and PE3 is defined as a forwarding device. When PE1 sends a measurement packet to PE2, PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet. When PE2 sends the first reflection packet to PE1, PE1 calculates the service according to the first reflection packet. Quality measurement result; when PE2 sends the first reflection packet to PE3, it proceeds to S402.
S402、根据第一反射包生成第二反射包。S402. Generate a second reflection packet according to the first reflection packet.
当PE3接收到PE2发送的第一反射包后,对第一反射包进行处理,生成第二反射包。例如,在第一反射包中添加PE3接收到第一反射包的第一接收时间,生成第二反射包,以便PE1根据PE3接收到第一反射包的第一接收时间计算会话发射端与会话反射端之间的双向时延。After receiving the first reflection packet sent by the PE2, the PE3 processes the first reflection packet to generate a second reflection packet. For example, adding a first receiving time that the PE3 receives the first reflective packet in the first reflective packet, and generating a second reflective packet, so that the PE1 calculates the session transmitting end and the session reflection according to the first receiving time that the PE3 receives the first reflective packet. Two-way delay between the ends.
S403、将第二反射包发送至第一路由器,以使第一路由器根据第二反射包计算业务质量测量结果。S403. Send the second reflection packet to the first router, so that the first router calculates the service quality measurement result according to the second reflection packet.
其中,PE3将生成的第二反射包发送至PE1,以使PE1计算业务质量测量(如计算丢包率和双向时延等)。这样,即使PE2没有直接将第一反射包发送至PE1,也可以通过PE3进行转发,从而实现通过TWAMP技术进行业务质量测量,使得TWAMP技术可以在更复杂的网络环境中部署应用,提升了TWAMP对复杂场景的适用性。The PE3 sends the generated second reflection packet to the PE1, so that the PE1 calculates the service quality measurement (such as calculating the packet loss rate and the two-way delay). In this way, even if the PE2 does not directly send the first reflection packet to the PE1, it can be forwarded through the PE3, thereby implementing the service quality measurement by the TWAMP technology, so that the TWAMP technology can deploy the application in a more complex network environment, and the TWAMP pair is improved. The applicability of complex scenes.
具体地,第一反射包中记录有PE1发送测量包的第一发送时间和PE2接收到测量包的第二接收时间。第二反射包中记录有PE1发送测量包的第一发送时间、PE2 接收到测量包的第二接收时间和PE3接收到第一反射包的第一接收时间。这样,PE1可根据第二反射包中记录的第一发送时间和第二接收时间,计算会话发射端到会话反射端的单向时延,以及根据第二反射包中记录的第一发送时间和第一接收时间,计算会话发射端与会话反射端之间的双向时延。其中,丢包率的计算与现有技术相同,对此本公开实施例便不再进行赘述。Specifically, the first transmission packet records the first transmission time that PE1 sends the measurement packet and the second reception time that PE2 receives the measurement packet. The first transmission time, PE2, in which the PE1 sends the measurement packet is recorded in the second reflection packet. The second reception time of the measurement packet is received and the first reception time of the first reflection packet is received by the PE3. In this way, PE1 may calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflection packet, and according to the first sending time and the first recorded in the second reflection packet. A receiving time calculates a two-way delay between the session transmitter and the session reflector. The calculation of the packet loss rate is the same as the prior art, and the embodiments of the present disclosure will not be described again.
进一步地,为了进一步理解本公开实施例提供的业务质量测量方法,下面以一示例加以说明,如图5所示,该示例中包括:测量发包模块(部署于第一路由器上)、测量反射模块(部署于第二路由器上)和反射包转发模块(部署于备用路由器上),具有如下所述步骤:Further, in order to further understand the service quality measurement method provided by the embodiment of the present disclosure, an example is illustrated below. As shown in FIG. 5, the example includes: a measurement delivery module (disposed on the first router), and a measurement reflection module. (Deployed on the second router) and the Reflective Packet Forwarding Module (deployed on the standby router) with the following steps:
步骤一:测量发包模块根据RFC5357要求构造测量包并发送至测量反射模块,然后进入步骤二。Step 1: The measurement delivery module constructs the measurement package according to the requirements of RFC5357 and sends it to the measurement reflection module, and then proceeds to step 2.
步骤二:测量反射模块根据RFC5357要求处理收到的测量报文,构建测量反射包(即第一反射包)并进行发送,然后进入步骤三或步骤四。Step 2: The measurement reflection module processes the received measurement message according to the requirements of RFC5357, constructs a measurement reflection packet (ie, the first reflection packet), and transmits it, and then proceeds to step 3 or step 4.
其中,测量反射包中记录有测量包的接收时间(即第二接收时间),测量包报文中的序列号和发包时间(即第一发送时间)以及测量反射包报文的序列号和发包时间等信息。The measurement reflection packet records the reception time of the measurement packet (ie, the second reception time), measures the sequence number and the packet transmission time (ie, the first transmission time) in the packet, and the sequence number and the packet of the measurement reflection packet. Time and other information.
步骤三:若测量发包模块接收到测量反射包,则按RFC5357要求计算业务质量测量结果,结束。Step 3: If the measurement and delivery module receives the measurement reflection packet, the service quality measurement result is calculated according to the requirements of RFC5357, and the process ends.
第四步:若反射包转发模块接收到测量反射包,则记录接收到测量反射包时刻的时间信息(即第一接收时间),在测量反射包中打上时间戳后,将测量反射包转发给测量发包模块,然后进入步骤五。Step 4: If the reflection packet forwarding module receives the measurement reflection packet, records the time information (ie, the first reception time) at which the measurement reflection packet is received, and after the time stamp is set in the measurement reflection packet, forwards the measurement reflection packet to Measure the delivery module and proceed to step five.
步骤五:测量发包模块收到反射包转发模块的测量反射包后,计算业务质量测量结果,结束。Step 5: After the measurement packet receiving module receives the measurement reflection packet of the reflection packet forwarding module, the service quality measurement result is calculated and ended.
如果是计算丢包率,则按RFC5357要求计算即可;如果是计算双向时延,则应以反射包转发模块接收到报文的时间为准进行计算,也就是第一发送时间和第一接收时间,计算会话发射端与会话反射端之间的双向时延。If the packet loss rate is calculated, it can be calculated according to the requirements of RFC5357. If the two-way delay is calculated, the calculation should be based on the time when the packet forwarding module receives the packet, that is, the first transmission time and the first reception. Time, calculate the two-way delay between the session transmitter and the session reflection end.
综上所述,本公开实施例提供的业务质量测量方法,当处于会话反射端的路由器将反射包发送至发送测量包的路由器的备用路由器时,可由备用路由器将反射包转发至发送测量包的路由器,从而实现TWAMP测量,避免TWAMP测量协议无法正常交互,提升了TWAMP对复杂场景的适用性。 In summary, in the service quality measurement method provided by the embodiment of the present disclosure, when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, the reflective packet can be forwarded by the backup router to the router that sends the measurement packet. To achieve TWAMP measurement, to avoid the TWAMP measurement protocol can not interact properly, improve the applicability of TWAMP to complex scenarios.
第二实施例Second embodiment
本公开实施例提供了一种业务质量测量方法,应用于处于会话发射端的第一路由器。如图6所示,该业务质量测量方法包括:The embodiment of the present disclosure provides a service quality measurement method, which is applied to a first router at a session transmitting end. As shown in FIG. 6, the service quality measurement method includes:
S601、发送测量包至处于会话反射端的第二路由器。S601. Send a measurement packet to a second router that is in the reflective end of the session.
其中,第一路由器根据要求(如RFC5357要求)构造测量包并发送至处于会话反射端的第二路由器,以进行TWAMP测量。The first router constructs a measurement packet according to requirements (as required by RFC5357) and sends it to a second router at the session reflection end for TWAMP measurement.
S602、接收第一路由器的备用路由器所发送的第二反射包。S602. Receive a second reflection packet sent by the backup router of the first router.
其中,第二反射包为备用路由器接收到第二路由器发送的第一反射包后所生成的数据包。第一反射包为第二路由器接收到处于会话发射端的第一路由器所发送的测量包后所生成的数据包。The second reflection packet is a data packet generated after the standby router receives the first reflection packet sent by the second router. The first reflected packet is a data packet generated after the second router receives the measurement packet sent by the first router at the session transmitting end.
其中,第一路由器可以对应为图3中的PE1,第二路由器对应为图3中的PE2,备用路由器对应为图3中的PE3,因此以下关于第一路由器、第二路由器以及备用路由器的描述均以PE1、PE2和PE3为例加以说明。其中,PE1定义为会话发射端设备,PE2定义为会话反射端设备,PE3定义为转发设备。当PE1发送测量包至PE2时,PE2根据相关协议(如RFC5357)对测量包进行处理,生成第一反射包,当PE2将第一反射包发送至PE1时,则PE1直接根据第一反射包计算业务质量测量结果;当PE1将第一反射包发送至PE3时,则由PE3对第一反射包进行一定处理后生成第二反射包,并将第二反射包发送至PE1,然后进入S503。The first router may correspond to PE1 in FIG. 3, the second router corresponds to PE2 in FIG. 3, and the backup router corresponds to PE3 in FIG. 3, so the following descriptions about the first router, the second router, and the backup router are performed. PE1, PE2, and PE3 are taken as examples. PE1 is defined as a session transmitting device, PE2 is defined as a session reflector device, and PE3 is defined as a forwarding device. When PE1 sends a measurement packet to PE2, PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet. When PE2 sends the first reflection packet to PE1, PE1 directly calculates according to the first reflection packet. The service quality measurement result; when PE1 sends the first reflection packet to PE3, PE3 performs certain processing on the first reflection packet to generate a second reflection packet, and sends the second reflection packet to PE1, and then proceeds to S503.
S603、根据第二反射包,计算业务质量测量结果。S603. Calculate a service quality measurement result according to the second reflection packet.
PE1在接收到第二反射包后,根据第二反射包中的信息,计算业务质量测量结果。这样,即使PE2没有直接将第一反射包发送至PE1,也可以通过PE3进行转发,从而实现通过TWAMP技术进行业务质量测量,使得TWAMP技术可以在更复杂的网络环境中部署应用,提升了TWAMP对复杂场景的适用性。After receiving the second reflection packet, PE1 calculates a service quality measurement result according to the information in the second reflection packet. In this way, even if the PE2 does not directly send the first reflection packet to the PE1, it can be forwarded through the PE3, thereby implementing the service quality measurement by the TWAMP technology, so that the TWAMP technology can deploy the application in a more complex network environment, and the TWAMP pair is improved. The applicability of complex scenes.
具体地,第一反射包中记录有第一路由器发送测量包的第一发送时间和第二路由器接收到测量包的第二接收时间。第二反射包中记录有第一路由器发送测量包的第一发送时间、第二路由器接收到测量包的第二接收时间和备用路由器接收到第一反射包的第一接收时间。这样,PE1可根据第二反射包中记录的第一发送时间和第二接收时间,计算会话发射端到会话反射端的单向时延。以及根据第二反射包中记录的第一发送时间和第一接收时间,计算会话发射端与会话反射端之间的双向时延。其中,丢包率的计算与现有技术相同,对此本公开实施例便不再进行赘述。 Specifically, the first transmission packet records the first transmission time that the first router sends the measurement packet and the second reception time that the second router receives the measurement packet. The second reflection packet records a first transmission time when the first router sends the measurement packet, a second reception time when the second router receives the measurement packet, and a first reception time when the standby router receives the first reflection packet. In this way, PE1 can calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflected packet. And calculating a two-way delay between the session transmitting end and the session reflecting end according to the first sending time and the first receiving time recorded in the second reflection packet. The calculation of the packet loss rate is the same as the prior art, and the embodiments of the present disclosure will not be described again.
综上所述,本公开实施例提供的业务质量测量方法,当处于会话反射端的路由器将反射包发送至发送测量包的路由器的备用路由器时,可由备用路由器将反射包转发至发送测量包的路由器,从而实现TWAMP测量,避免TWAMP测量协议无法正常交互,提升了TWAMP对复杂场景的适用性。In summary, in the service quality measurement method provided by the embodiment of the present disclosure, when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, the reflective packet can be forwarded by the backup router to the router that sends the measurement packet. To achieve TWAMP measurement, to avoid the TWAMP measurement protocol can not interact properly, improve the applicability of TWAMP to complex scenarios.
第三实施例Third embodiment
本公开实施例提供了一种业务质量测量装置,应用于处于会话发射端的第一路由器的备用路由器。如图7所示,该业务质量测量装置包括:The embodiment of the present disclosure provides a service quality measuring apparatus, which is applied to a backup router of a first router at a session transmitting end. As shown in FIG. 7, the service quality measuring apparatus includes:
第一接收模块701,设置为接收处于会话反射端的第二路由器所发送的第一反射包。The first receiving module 701 is configured to receive the first reflective packet sent by the second router at the reflective end of the session.
其中,第一反射包为第二路由器接收到第一路由器所发送的测量包后所生成的数据包。The first reflection packet is a data packet generated after the second router receives the measurement packet sent by the first router.
其中,第一路由器可对应为图3中的PE1,备用路由器对应为图3中的PE3,第二路由器对应为图3中的PE2,因此以下关于第一路由器、第二路由器以及备用路由器的描述均以PE1、PE2和PE3为例加以说明。其中,PE1定义为会话发射端设备,PE2定义为会话反射端设备,PE3定义为转发设备。当PE1发送测量包至PE2时,PE2根据相关协议(如RFC5357)对测量包进行处理,生成第一反射包,当PE2将第一反射包发送至PE1时,则PE1根据第一反射包计算业务质量测量结果;当PE2将第一反射包发送至PE3时,由PE3中的第一接收模块701进行接收。The first router may correspond to PE1 in FIG. 3, the backup router corresponds to PE3 in FIG. 3, and the second router corresponds to PE2 in FIG. 3, so the following descriptions about the first router, the second router, and the backup router are performed. PE1, PE2, and PE3 are taken as examples. PE1 is defined as a session transmitting device, PE2 is defined as a session reflector device, and PE3 is defined as a forwarding device. When PE1 sends a measurement packet to PE2, PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet. When PE2 sends the first reflection packet to PE1, PE1 calculates the service according to the first reflection packet. Quality measurement result; when PE2 sends the first reflection packet to PE3, it is received by the first receiving module 701 in PE3.
生成模块702,设置为根据第一接收模块701所接收到的第一反射包生成第二反射包。The generating module 702 is configured to generate a second reflection packet according to the first reflection packet received by the first receiving module 701.
当第一接收模块701接收到PE2发送的第一反射包后,对第一反射包进行处理,生成第二反射包。例如,在第一反射包中添加PE3接收到第一反射包的第一接收时间,生成第二反射包,以便PE1根据PE3接收到第一反射包的第一接收时间计算会话发射端与会话反射端之间的双向时延。After receiving the first reflection packet sent by the PE2, the first receiving module 701 processes the first reflection packet to generate a second reflection packet. For example, adding a first receiving time that the PE3 receives the first reflective packet in the first reflective packet, and generating a second reflective packet, so that the PE1 calculates the session transmitting end and the session reflection according to the first receiving time that the PE3 receives the first reflective packet. Two-way delay between the ends.
第一发送模块703,设置为将生成模块702所生成的第二反射包发送至第一路由器,以使第一路由器根据第二反射包计算业务质量测量结果。The first sending module 703 is configured to send the second reflective packet generated by the generating module 702 to the first router, so that the first router calculates the service quality measurement result according to the second reflected packet.
其中,PE3中的第一发送模块703将生成的第二反射包发送至PE1,以使PE1计算业务质量测量(如计算丢包率和双向时延等)。这样,即使PE2没有直接将第一反射包发送至PE1,也可以通过PE3进行转发,从而实现通过TWAMP技术进行业务质量测量,使得TWAMP技术可以在更复杂的网络环境中部署应用,提升了 TWAMP对复杂场景的适用性。The first sending module 703 in the PE3 sends the generated second reflected packet to the PE1, so that the PE1 calculates the service quality measurement (such as calculating the packet loss rate and the two-way delay, etc.). In this way, even if PE2 does not directly send the first reflection packet to PE1, it can be forwarded through PE3, thereby implementing service quality measurement through TWAMP technology, enabling TWAMP technology to deploy applications in a more complex network environment, and improving TWAMP's applicability to complex scenes.
进一步地,生成模块702设置为:在第一反射包中添加备用路由器接收到第一反射包的第一接收时间,生成第二反射包。Further, the generating module 702 is configured to: add a first receiving time that the standby router receives the first reflective packet in the first reflective packet, and generate a second reflective packet.
其中,第一接收模块701在接收到第一反射包时,记录接收到第一反射包时刻的时间信息(即第一接收时间),而生成模块702在第一反射包中打上时间戳后生成第二反射包并转发给PE1。The first receiving module 701 records the time information of receiving the first reflected packet time (ie, the first receiving time) when the first reflective packet is received, and the generating module 702 generates a time stamp in the first reflective packet to generate a time stamp. The second reflection packet is forwarded to PE1.
进一步地,第一接收模块701所接收到的第一反射包中,记录有第一路由器发送测量包的第一发送时间和第二路由器接收到测量包的第二接收时间。生成模块702所生成的第二反射包中,记录有第一路由器发送测量包的第一发送时间、第二路由器接收到测量包的第二接收时间和备用路由器接收到第一反射包的第一接收时间。这样,PE1可根据第二反射包中记录的第一发送时间和第二接收时间,计算会话发射端到会话反射端的单向时延,以及根据第二反射包中记录的第一发送时间和第一接收时间,计算会话发射端与会话反射端之间的双向时延。其中,丢包率的计算与现有技术相同,对此,本公开实施例便不再进行赘述。Further, the first transmission packet received by the first receiving module 701 records the first sending time that the first router sends the measurement packet and the second receiving time that the second router receives the measurement packet. The second reflection packet generated by the generation module 702 records the first transmission time when the first router sends the measurement packet, the second reception time when the second router receives the measurement packet, and the first time that the standby router receives the first reflection packet. Receive time. In this way, PE1 may calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflection packet, and according to the first sending time and the first recorded in the second reflection packet. A receiving time calculates a two-way delay between the session transmitter and the session reflector. The calculation of the packet loss rate is the same as the prior art, and the embodiments of the present disclosure will not be described again.
综上所述,本公开实施例提供的业务质量测量装置,当处于会话反射端的路由器将反射包发送至发送测量包的路由器的备用路由器时,可由备用路由器将反射包转发至发送测量包的路由器,从而实现TWAMP测量,避免TWAMP测量协议无法正常交互,提升了TWAMP对复杂场景的适用性。In summary, the service quality measuring apparatus provided by the embodiment of the present disclosure can forward the reflected packet to the router that sends the measurement packet when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet. To achieve TWAMP measurement, to avoid the TWAMP measurement protocol can not interact properly, improve the applicability of TWAMP to complex scenarios.
第四实施例Fourth embodiment
本公开实施例提供了一种业务质量测量装置,应用于处于会话发射端的第一路由器。如图8所示,该业务质量测量装置包括:The embodiment of the present disclosure provides a service quality measuring apparatus, which is applied to a first router at a session transmitting end. As shown in FIG. 8, the service quality measuring apparatus includes:
第二发送模块801,设置为发送测量包至处于会话反射端的第二路由器。The second sending module 801 is configured to send the measurement packet to the second router at the session reflection end.
其中,第一路由器根据要求(如RFC5357要求)构造测量包,并通过第二发送模块801将测量包发送至处于会话反射端的第二路由器,以进行TWAMP测量。The first router constructs a measurement packet according to requirements (such as required by RFC5357), and sends the measurement packet to the second router at the session reflection end through the second sending module 801 to perform TWAMP measurement.
第二接收模块802,设置为接收第一路由器的备用路由器所发送的第二反射包。The second receiving module 802 is configured to receive the second reflective packet sent by the backup router of the first router.
其中,第二反射包为备用路由器接收到第二路由器发送的第一反射包后所生成的数据包。第一反射包为第二路由器接收到第一路由器所发送的测量包后所生成的数据包。The second reflection packet is a data packet generated after the standby router receives the first reflection packet sent by the second router. The first reflection packet is a data packet generated after the second router receives the measurement packet sent by the first router.
其中,第一路由器可以对应为图3中的PE1,第二路由器对应为图3中的PE2,备用路由器对应为图3中的PE3,因此以下关于第一路由器、第二路由器以及备用路 由器的描述均以PE1、PE2和PE3为例加以说明。其中,PE1定义为会话发射端设备,PE2定义为会话反射端设备,PE3定义为转发设备。当PE1发送测量包至PE2时,PE2根据相关协议(如RFC5357)对测量包进行处理,生成第一反射包,当PE2将第一反射包发送至PE1时,则PE1直接根据第一反射包计算业务质量测量结果;当PE1将第一反射包发送至PE3时,则由PE3对第一反射包进行一定处理后生成第二反射包,并将第二反射包发送至PE1。The first router may correspond to the PE1 in FIG. 3, the second router corresponds to the PE2 in FIG. 3, and the backup router corresponds to the PE3 in FIG. 3, so the following follows the first router, the second router, and the backup path. The description of the device is described by taking PE1, PE2 and PE3 as examples. PE1 is defined as a session transmitting device, PE2 is defined as a session reflector device, and PE3 is defined as a forwarding device. When PE1 sends a measurement packet to PE2, PE2 processes the measurement packet according to the relevant protocol (such as RFC5357) to generate a first reflection packet. When PE2 sends the first reflection packet to PE1, PE1 directly calculates according to the first reflection packet. The service quality measurement result; when PE1 sends the first reflection packet to PE3, PE3 performs certain processing on the first reflection packet to generate a second reflection packet, and sends the second reflection packet to PE1.
计算模块803,设置为根据第二接收模块802所接收到的第二反射包,计算业务质量测量结果。The calculating module 803 is configured to calculate a service quality measurement result according to the second reflection packet received by the second receiving module 802.
PE1中的计算模块803在接收到第二反射包后,根据第二反射包中的信息,计算业务质量测量结果。这样,即使PE2没有直接将第一反射包发送至PE1,也可以通过PE3进行转发,从而实现通过TWAMP技术进行业务质量测量,使得TWAMP技术可以在更复杂的网络环境中部署应用,提升了TWAMP对复杂场景的适用性。After receiving the second reflection packet, the calculation module 803 in the PE1 calculates the service quality measurement result according to the information in the second reflection packet. In this way, even if the PE2 does not directly send the first reflection packet to the PE1, it can be forwarded through the PE3, thereby implementing the service quality measurement by the TWAMP technology, so that the TWAMP technology can deploy the application in a more complex network environment, and the TWAMP pair is improved. The applicability of complex scenes.
进一步地,第一反射包中记录有第一路由器发送测量包的第一发送时间和第二路由器接收到测量包的第二接收时间。Further, the first transmission packet records a first transmission time when the first router sends the measurement packet and a second reception time when the second router receives the measurement packet.
第二接收模块处所接收到的第二反射包中记录有第一路由器发送测量包的第一发送时间、第二路由器接收到测量包的第二接收时间和备用路由器接收到第一反射包的第一接收时间。The second transmission packet received by the second receiving module records a first transmission time when the first router sends the measurement packet, a second reception time when the second router receives the measurement packet, and a second router receives the first reflection packet. A receiving time.
进一步地,计算模块803包括:Further, the calculation module 803 includes:
第一计算单元,设置为根据第二反射包中记录的第一发送时间和第二接收时间,计算会话发射端到会话反射端的单向时延。The first calculating unit is configured to calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflective packet.
也就是,用第二路由器接收到测量包的第二接收时间减去第一路由器发送测量包的第一发送时间的计算结果作为会话发射端到会话反射端的单向时延。That is, the second receiving time of receiving the measurement packet by the second router minus the calculation result of the first sending time of the first router transmitting the measurement packet is used as a one-way delay from the session transmitting end to the session reflecting end.
进一步地,计算模块803包括:Further, the calculation module 803 includes:
第二计算单元,设置为根据第二反射包中记录的第一发送时间和第一接收时间,计算会话发射端与会话反射端之间的双向时延。The second calculating unit is configured to calculate a two-way delay between the session transmitting end and the session reflecting end according to the first sending time and the first receiving time recorded in the second reflective packet.
也就是,用备用路由器接收到第一反射包的第一接收时间减去第一路由器发送测量包的第一发送时间的计算结果作为会话发射端与会话反射端之间的双向时延。That is, the first receiving time of receiving the first reflected packet by the standby router minus the calculation result of the first sending time of the first measuring packet sent by the first router is used as a two-way delay between the session transmitting end and the session reflecting end.
综上所述,本公开实施例提供的业务质量测量装置,当处于会话反射端的路由器将反射包发送至发送测量包的路由器的备用路由器时,可接收由备用路由器转发的反射包,从而实现TWAMP测量,避免TWAMP测量协议无法正常交互,提升了TWAMP 对复杂场景的适用性。In summary, the service quality measuring apparatus provided by the embodiment of the present disclosure can receive the reflection packet forwarded by the backup router when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, thereby implementing TWAMP. Measurement, to avoid TWAMP measurement protocol can not interact properly, improve TWAMP Applicability to complex scenes.
本公开实施例中的各个模块或单元可以通过一个或多个数字信号处理器(DSP)、专用集成电路(ASIC)、处理器、微处理器、控制器、微控制器、现场可编程阵列(FPGA)、可编程逻辑器件或其他电子单元或其任意组合来实现。在本申请实施例中描述的一些功能或处理也可以通过在处理器上执行的软件来实现。Each module or unit in an embodiment of the present disclosure may be implemented by one or more digital signal processors (DSPs), application specific integrated circuits (ASICs), processors, microprocessors, controllers, microcontrollers, field programmable arrays ( FPGA, programmable logic device or other electronic unit or any combination thereof. Some of the functions or processes described in this application embodiment may also be implemented by software executing on a processor.
例如,本公开的实施例还提供了一种路由器(例如处于会话发射端的第一路由器的备用路由器),包括:For example, an embodiment of the present disclosure also provides a router (eg, a backup router of a first router at a session transmitting end), including:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为执行上述业务质量测量方法中的步骤。Wherein the processor is configured to perform the steps in the foregoing quality of service measurement method.
例如,本公开的实施例还提供了一种路由器(例如处于会话发射端的第一路由器),包括:For example, an embodiment of the present disclosure further provides a router (such as a first router at a session transmitting end), including:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为执行上述业务质量测量方法中的步骤。Wherein the processor is configured to perform the steps in the foregoing quality of service measurement method.
上述存储器可以是包括指令的非临时性计算机可读存储介质,例如,ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。The above memory may be a non-transitory computer readable storage medium including instructions such as a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
以上的是本公开的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本公开的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本公开的保护范围内。The above is a preferred embodiment of the present disclosure, and it should be noted that those skilled in the art can also make several improvements and refinements without departing from the principles of the present disclosure. These improvements and refinements are also within the scope of the present disclosure. Inside.
工业实用性Industrial applicability
本公开的实施例提供的方法及装置可以应用于通信领域。使用本公开的实施例提供的方法及装置,当处于会话反射端的路由器将反射包发送至发送测量包的路由器的备用路由器时,可由备用路由器将反射包转发至发送测量包的路由器,从而实现TWAMP测量,避免TWAMP测量协议无法正常交互,提升了TWAMP对复杂场景的适用性。 The method and apparatus provided by the embodiments of the present disclosure can be applied to the field of communications. Using the method and apparatus provided by the embodiments of the present disclosure, when the router at the session reflection end sends the reflection packet to the backup router of the router that sends the measurement packet, the reflective packet can be forwarded by the backup router to the router that sends the measurement packet, thereby implementing TWAMP. Measurements, to avoid the TWAMP measurement protocol can not interact properly, improve the applicability of TWAMP to complex scenarios.

Claims (14)

  1. 一种业务质量测量方法,应用于处于会话发射端的第一路由器的备用路由器,其中,所述业务质量测量方法包括:A service quality measurement method is applied to a backup router of a first router at a session transmitting end, where the service quality measurement method includes:
    接收处于会话反射端的第二路由器所发送的第一反射包,其中,所述第一反射包为所述第二路由器接收到所述第一路由器所发送的测量包后所生成的数据包;And receiving, by the second router, the first reflective packet sent by the second router, where the first reflective packet is a data packet generated by the second router after receiving the measurement packet sent by the first router;
    根据所述第一反射包生成第二反射包;Generating a second reflection packet according to the first reflection packet;
    将所述第二反射包发送至所述第一路由器,以使所述第一路由器根据所述第二反射包计算业务质量测量结果。Sending the second reflection packet to the first router, so that the first router calculates a service quality measurement result according to the second reflection packet.
  2. 根据权利要求1所述业务质量测量方法,其中,所述根据所述第一反射包生成第二反射包的步骤包括:The service quality measurement method according to claim 1, wherein the step of generating a second reflection packet according to the first reflection packet comprises:
    在所述第一反射包中添加所述备用路由器接收到所述第一反射包的第一接收时间,生成第二反射包。Adding, in the first reflection packet, the first receiving time that the backup router receives the first reflection packet, and generating a second reflection packet.
  3. 根据权利要求1所述的业务质量测量方法,其中,在接收处于会话反射端的第二路由器所发送的第一反射包的步骤中,所接收到的所述第一反射包中,记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;The service quality measuring method according to claim 1, wherein in the step of receiving the first reflected packet sent by the second router at the session reflection end, the received first reflected packet is recorded a first sending time at which the first router sends the measurement packet and a second receiving time at which the second router receives the measurement packet;
    所述根据所述第一反射包生成第二反射包的步骤中,所生成的所述第二反射包中,记录有所述第一路由器发送测量包的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。In the step of generating the second reflection packet according to the first reflection packet, the first transmission time of the first router transmitting the measurement packet and the second router are recorded in the generated second reflection packet. Receiving a second receiving time of the measurement packet and a first receiving time at which the standby router receives the first reflective packet.
  4. 一种业务质量测量方法,应用于处于会话发射端的第一路由器,其中,所述业务质量测量方法包括:A service quality measurement method is applied to a first router at a session transmitting end, where the service quality measurement method includes:
    发送测量包至处于会话反射端的第二路由器;Sending a measurement packet to a second router at the reflective end of the session;
    接收所述第一路由器的备用路由器所发送的第二反射包;其中,所述第二反射包为所述备用路由器接收到所述第二路由器发送的第一反射包后所生成的数据包;所述第一反射包为所述第二路由器接收到所述第一路由器所发送的所述测量包后所生成的数据包;And receiving, by the standby router, the second reflective packet sent by the standby router, where the second reflective packet is a data packet generated by the standby router after receiving the first reflective packet sent by the second router; The first reflected packet is a data packet generated by the second router after receiving the measurement packet sent by the first router;
    根据所述第二反射包,计算业务质量测量结果。Calculating a service quality measurement result according to the second reflection packet.
  5. 根据权利要求4所述的业务质量测量方法,其中, The service quality measuring method according to claim 4, wherein
    所述第一反射包中记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;Recording, in the first reflection packet, a first sending time that the first router sends a measurement packet, and a second receiving time that the second router receives the measurement packet;
    所述接收处于会话发射端的备用路由器所发送的第二反射包的步骤中,所接收到的所述第二反射包中记录有所述第一路由器发送测量包的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。In the step of receiving the second reflection packet sent by the backup router at the session transmitting end, the received second transmission packet records the first transmission time, the first The second router receives the second receiving time of the measurement packet and the first receiving time that the standby router receives the first reflective packet.
  6. 根据权利要求5所述的业务质量测量方法,其中,所述根据所述第二反射包,计算测量结果的步骤包括:The service quality measurement method according to claim 5, wherein the calculating the measurement result according to the second reflection packet comprises:
    根据所述第二反射包中记录的所述第一发送时间和所述第二接收时间,计算会话发射端到会话反射端的单向时延。And calculating a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflection packet.
  7. 根据权利要求5所述的业务质量测量方法,其中,所述根据所述第二反射包,计算测量结果的步骤包括:The service quality measurement method according to claim 5, wherein the calculating the measurement result according to the second reflection packet comprises:
    根据所述第二反射包中记录的所述第一发送时间和所述第一接收时间,计算会话发射端与会话反射端之间的双向时延。And calculating a two-way delay between the session transmitting end and the session reflection end according to the first sending time and the first receiving time recorded in the second reflection packet.
  8. 一种业务质量测量装置,应用于处于会话发射端的第一路由器的备用路由器,其中,所述业务质量测量装置包括:A service quality measuring apparatus is applied to a backup router of a first router at a session transmitting end, wherein the service quality measuring apparatus includes:
    第一接收模块,设置为接收处于会话反射端的第二路由器所发送的第一反射包,其中,所述第一反射包为所述第二路由器接收到所述第一路由器所发送的测量包后所生成的数据包;The first receiving module is configured to receive the first reflective packet sent by the second router at the reflective end of the session, where the first reflective packet is after the second router receives the measurement packet sent by the first router The generated data packet;
    生成模块,设置为根据所述第一接收模块所接收到的所述第一反射包生成第二反射包;Generating a module, configured to generate a second reflection packet according to the first reflection packet received by the first receiving module;
    第一发送模块,设置为将所述生成模块所生成的所述第二反射包发送至所述第一路由器,以使所述第一路由器根据所述第二反射包计算业务质量测量结果。The first sending module is configured to send the second reflective packet generated by the generating module to the first router, so that the first router calculates a service quality measurement result according to the second reflective packet.
  9. 根据权利要求8所述业务质量测量装置,其中,所述生成模块设置为:在所述第一反射包中添加所述备用路由器接收到所述第一反射包的第一接收时间,生成第二反射包。The service quality measuring apparatus according to claim 8, wherein the generating module is configured to: add, in the first reflection packet, the first receiving time that the backup router receives the first reflection packet, and generate a second Reflective package.
  10. 根据权利要求8所述的业务质量测量装置,其中,所述第一接收模块所接收到的所述第一反射包中,记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;The service quality measuring apparatus according to claim 8, wherein the first transmission packet received by the first receiving module records a first transmission time of the first router transmitting a measurement packet and the Receiving, by the second router, the second receiving time of the measurement packet;
    所述生成模块所生成的所述第二反射包中,记录有所述第一路由器发送测量包 的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。In the second reflection packet generated by the generating module, the first router sends a measurement packet. a first transmission time, a second reception time at which the second router receives the measurement packet, and a first reception time at which the standby router receives the first reflection packet.
  11. 一种业务质量测量装置,应用于处于会话发射端的第一路由器,其中,所述业务质量测量装置包括:A service quality measuring apparatus is applied to a first router at a session transmitting end, where the service quality measuring apparatus includes:
    第二发送模块,设置为发送测量包至处于会话反射端的第二路由器;a second sending module, configured to send the measurement packet to the second router at the reflective end of the session;
    第二接收模块,设置为接收所述第一路由器的备用路由器所发送的第二反射包;其中,所述第二反射包为所述备用路由器接收到所述第二路由器发送的第一反射包后所生成的数据包;所述第一反射包为所述第二路由器接收到所述第一路由器所发送的所述测量包后所生成的数据包;a second receiving module, configured to receive a second reflective packet sent by the backup router of the first router, where the second reflective packet is a first reflective packet sent by the standby router to the second router a data packet generated after the first reflected packet is a data packet generated by the second router after receiving the measurement packet sent by the first router;
    计算模块,设置为根据所述第二接收模块所接收到的所述第二反射包,计算业务质量测量结果。And a calculating module, configured to calculate a service quality measurement result according to the second reflection packet received by the second receiving module.
  12. 根据权利要求11所述的业务质量测量装置,其中,The service quality measuring apparatus according to claim 11, wherein
    所述第一反射包中记录有所述第一路由器发送测量包的第一发送时间和所述第二路由器接收到所述测量包的第二接收时间;Recording, in the first reflection packet, a first sending time that the first router sends a measurement packet, and a second receiving time that the second router receives the measurement packet;
    所述第二接收模块处所接收到的所述第二反射包中记录有所述第一路由器发送测量包的第一发送时间、所述第二路由器接收到所述测量包的第二接收时间和所述备用路由器接收到所述第一反射包的第一接收时间。Recording, in the second reflection packet received by the second receiving module, a first sending time that the first router sends a measurement packet, and a second receiving time that the second router receives the measurement packet The standby router receives the first receiving time of the first reflective packet.
  13. 根据权利要求12所述的业务质量测量装置,其中,所述计算模块包括:The service quality measuring apparatus according to claim 12, wherein said calculation module comprises:
    第一计算单元,设置为根据所述第二反射包中记录的所述第一发送时间和所述第二接收时间,计算会话发射端到会话反射端的单向时延。The first calculating unit is configured to calculate a one-way delay from the session transmitting end to the session reflection end according to the first sending time and the second receiving time recorded in the second reflective packet.
  14. 根据权利要求12所述的业务质量测量装置,其中,所述计算模块包括:The service quality measuring apparatus according to claim 12, wherein said calculation module comprises:
    第二计算单元,设置为根据所述第二反射包中记录的所述第一发送时间和所述第一接收时间,计算会话发射端与会话反射端之间的双向时延。 And a second calculating unit, configured to calculate a two-way delay between the session transmitting end and the session reflection end according to the first sending time and the first receiving time recorded in the second reflective packet.
PCT/CN2017/087503 2016-06-16 2017-06-08 Service quality measurement method and apparatus WO2017215503A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610428077.8 2016-06-16
CN201610428077.8A CN107517137A (en) 2016-06-16 2016-06-16 A kind of quality of service measuring method and device

Publications (1)

Publication Number Publication Date
WO2017215503A1 true WO2017215503A1 (en) 2017-12-21

Family

ID=60663224

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087503 WO2017215503A1 (en) 2016-06-16 2017-06-08 Service quality measurement method and apparatus

Country Status (2)

Country Link
CN (1) CN107517137A (en)
WO (1) WO2017215503A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988193A (en) * 2019-05-24 2020-11-24 中兴通讯股份有限公司 TWAMP-based detection method and related equipment
CN111585834B (en) * 2020-04-14 2021-09-14 中国联合网络通信集团有限公司 Network information storage method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010052028A1 (en) * 2008-11-07 2010-05-14 Nokia Siemens Networks Oy Inter-network carrier ethernet service protection
CN102025619A (en) * 2010-12-03 2011-04-20 中兴通讯股份有限公司 Method and system as well as equipment for transmitting response message
CN102137483A (en) * 2010-08-09 2011-07-27 华为技术有限公司 Time synchronization method, device and system
WO2013189456A2 (en) * 2012-12-19 2013-12-27 中兴通讯股份有限公司 Method and apparatus for rapidly restoring spanning tree backup port
CN103595588A (en) * 2013-11-26 2014-02-19 北京奥普维尔科技有限公司 Method for accurately measuring asynchronous Ethernet circuit time delay

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010052028A1 (en) * 2008-11-07 2010-05-14 Nokia Siemens Networks Oy Inter-network carrier ethernet service protection
CN102137483A (en) * 2010-08-09 2011-07-27 华为技术有限公司 Time synchronization method, device and system
CN102025619A (en) * 2010-12-03 2011-04-20 中兴通讯股份有限公司 Method and system as well as equipment for transmitting response message
WO2013189456A2 (en) * 2012-12-19 2013-12-27 中兴通讯股份有限公司 Method and apparatus for rapidly restoring spanning tree backup port
CN103595588A (en) * 2013-11-26 2014-02-19 北京奥普维尔科技有限公司 Method for accurately measuring asynchronous Ethernet circuit time delay

Also Published As

Publication number Publication date
CN107517137A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
US11843535B2 (en) Key performance indicators (KPI) for tracking and correcting problems for a network-under-test
US11665207B2 (en) Inline secret sharing
US9705735B2 (en) System and method using RSVP hello suppression for graceful restart capable neighbors
US10404742B2 (en) Coordinated detection and differentiation of denial of service attacks
US10178009B2 (en) Method, a computer program product, and a carrier for indicating one-way latency in a data network
US11388292B2 (en) Monitoring voice-over-IP performance over the internet
US6662223B1 (en) Protocol to coordinate network end points to measure network latency
US7475272B2 (en) Method for calculating clock offset and skew
US7924730B1 (en) Method and apparatus for operations, administration and maintenance of a network messaging layer
US20190372876A1 (en) Monitoring overlay networks
WO2008098448A1 (en) Method, apparatus and system for diagnosing route in the network based on diameter protocol
US7881214B2 (en) Method for performing remote testing of network using IP measurement protocol packets
WO2016173403A1 (en) Routing device, load balancing device, and message distribution method and system
WO2017032133A1 (en) Packet loss rate detection method and apparatus
WO2017113771A1 (en) Packet processing method and device
US8971195B2 (en) Querying health of full-meshed forwarding planes
WO2020135429A1 (en) Traffic analysis method and apparatus, and traffic detection method and apparatus
US20230300051A1 (en) In-band Edge-to-Edge Round-Trip Time Measurement
WO2017215503A1 (en) Service quality measurement method and apparatus
WO2015184759A1 (en) Apparatus and method for state detection and fault tolerance of service network port
KR20170092602A (en) Method and apparatus for detecting connectivity of label switched path
US20120063332A1 (en) System and method for determining and controlling loopback points in a network environment
US11736307B2 (en) Automatic discovery and localization of voice degradation faults using ultrasound techniques
NASCIMENTO Design and Development of IDS for AVB/TSN
WO2020238799A1 (en) Twamp-based detection method and related device

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: 17812614

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: 17812614

Country of ref document: EP

Kind code of ref document: A1