WO2010003365A1 - Method and device for measuring quality of service of internet protocol transmission network - Google Patents

Method and device for measuring quality of service of internet protocol transmission network Download PDF

Info

Publication number
WO2010003365A1
WO2010003365A1 PCT/CN2009/072659 CN2009072659W WO2010003365A1 WO 2010003365 A1 WO2010003365 A1 WO 2010003365A1 CN 2009072659 W CN2009072659 W CN 2009072659W WO 2010003365 A1 WO2010003365 A1 WO 2010003365A1
Authority
WO
WIPO (PCT)
Prior art keywords
measurement
request message
unit
measuring
message
Prior art date
Application number
PCT/CN2009/072659
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 WO2010003365A1 publication Critical patent/WO2010003365A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for measuring QoS (Quality of Service) of an Internet Protocol (IP) transport network.
  • QoS Quality of Service
  • IP Internet Protocol
  • IP transport networks play a very important role in today's data communications. For example, if there are multiple devices in the home or enterprise that want to access the network through the wireless network, you need to access the IP transmission network through the Access Point (AP).
  • AP Access Point
  • the AP passes the home gateway HGW (Home).
  • Home The Gateway accesses the IP transport network and connects to the Access Gateway (AG) of the mobile core network through the IP transport network.
  • AG Access Gateway
  • the service of the AP is carried over the IP layer.
  • the quality of the AP depends largely on the QoS capabilities of the IP transport network.
  • the IP transport network is not perfect in supporting QoS.
  • the IP transport network In order to ensure the service quality of the AP, the IP transport network must be required to provide corresponding QoS capabilities.
  • the methods for measuring the QoS of an IP transmission network are mainly as follows.
  • ICMP Internet Control Message Protocol
  • IPMP IP Measurement Protocol
  • the measurement entity of this method is the measurement host, response system and forwarding system.
  • the inventor has found that the ICMP ping method uses a router to ping packets with a lower priority, resulting in a queuing delay, and the measurement result error is relatively large. Moreover, some routers will filter ICMP packets to prevent DOS attacks.
  • the destination host receives ICMP Ping packets.
  • IP IP measurement measurement protocol IPMP measurement method is a measurement protocol for routers. To achieve IPMP measurement targets, routers must support them.
  • Embodiments of the present invention provide a method and apparatus for measuring quality of service of an Internet Protocol transport network, which effectively improves the accuracy of measuring QoS of an IP transport network, and also avoids the limitation that the measurement network must have router support.
  • An embodiment of the present invention provides a method for measuring a service quality of an internet protocol transmission network, including: establishing a measurement connection with a measurement response end;
  • an Internet Protocol transmission network service quality indicator is obtained.
  • An embodiment of the present invention provides a measurement apparatus, including:
  • a measuring unit configured to perform measurement between the measurement response end and the measurement response end based on the established measurement connection, and perform measurement to transmit the measurement request message and the measurement response message to be an upper layer protocol of the Internet Protocol layer;
  • a calculating unit configured to calculate an internet protocol transmission network service quality indicator according to the measured result.
  • the embodiment of the invention provides an access point, such as the above measuring device.
  • the embodiment of the invention provides an access gateway, such as the above measuring device.
  • the method for measuring the quality of service (QoS) of the IP transmission network, the measurement device, the access point AP, and the access gateway AG are provided in the embodiment of the present invention, and the QoS measurement is performed on the upper layer IP packet of the router with higher priority, and the QoS measurement is improved.
  • the measurement accuracy is based on the measurement between the measurement initiator and the measurement response, and the number of measurement devices involved is small, which enhances the versatility of the measurement method.
  • Figure 1 is a networking diagram of an AP
  • FIG. 2 is a schematic diagram of a networking in the first embodiment of the present invention
  • FIG. 3 is a flowchart of a method for measuring QoS of an IP transmission network according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of a method for measuring QoS of an IP transmission network according to Embodiment 3 of the present invention
  • FIG. a measurement data map for calculating QoS capability in Example 3;
  • FIG. 6 is a composition diagram of a measuring device according to Embodiment 4 of the present invention.
  • FIG. 7 is a composition diagram of a measurement initiation device according to Embodiment 5 of the present invention.
  • FIG. 8 is a composition diagram of a first measurement unit of a measurement initiation device according to Embodiment 5 of the present invention
  • FIG. 9 is a composition diagram of a measurement response device according to Embodiment 6 of the present invention.
  • FIG. 10 is a composition diagram of a second measurement unit of a measurement response device according to Embodiment 6 of the present invention.
  • FIG. 11 is a composition diagram of a communication system according to Embodiment 9 of the present invention.
  • Embodiments of the present invention provide a method and apparatus for measuring service quality of an internet protocol transmission network, where
  • the transport control protocol TCP Transaction Control Protocol
  • UDP User Datagram Protocol
  • SCTP Stream Control Transmission Protocol
  • Embodiment 1 A method for measuring QoS of an IP transmission network, see FIG. 2, the measurement initiator and the measurement response end communicate through an IP network.
  • the measurement initiator can be a client device, such as a user host, an AP, and the like.
  • the measurement response end can be a router, a host, an access gateway AG, or a network server.
  • the measurement initiator establishes a measurement connection with the measurement response end.
  • the measuring initiator establishes a measurement connection with the measurement response end, and the measurement initiator sends a measurement start request to the measurement response end, and the measurement response end responds to the measurement initiation end with the measurement start response message to determine the two-party measurement establishment information
  • the measurement setup information includes measuring connection information, and may also include measuring traffic model information and establishing a dedicated data channel for performing QoS measurement.
  • the measurement start request message and the measurement start response message may be TCP, UDP, SCTP or Ping packets.
  • the measurement connection information includes information such as a measurement packet, an IP address, and a port number used in the data transmission process, wherein the measurement packet may be a TCP, UDP, or SCTP packet.
  • Measuring traffic model information includes measuring measurement traffic sent by the initiator, such as lMbps, 2Mbps, 3Mbps, and the like.
  • the measurement of the flow model information may further include measuring the number of flow models and the order in which the measurements are performed on the measured flow models, wherein the order in which the measurements are performed on the measured flow models may be determined by negotiation between the measurement initiator and the measurement response.
  • the measurement initiator and the measurement response end perform measurement by transmitting the upper layer IP packet in the measurement connection established in step A1.
  • the measurement initiator sends a measurement request message to the measurement response end according to the measurement data traffic model determined in step A1, and the measurement response end sends a measurement response message to the measurement initiator.
  • the measurement request message includes execution measurement information, such as the serial number and time stamp of the measurement request message sent.
  • the upper layer of the IP layer includes a transport control protocol TCP (Transport Control Protocol) packet, a User Datagram Protocol (UDP) packet, and a Stream Control Transmission Protocol (SCTP).
  • TCP Transport Control Protocol
  • UDP User Datagram Protocol
  • SCTP Stream Control Transmission Protocol
  • the measurement request packet and the measurement response packet are one of the upper layer packets of the IP layer, and may be a Transport Control Protocol (TCP) message, a User Datagram Protocol (UDP) message, or a flow control transmission.
  • TCP Transport Control Protocol
  • UDP User Datagram Protocol
  • SCTP Stream Control Transmission Protocol
  • the measurement initiator calculates the QoS capability of the IP transmission network according to the measurement result in the A2 step.
  • the calculating the QoS capability of the IP transport network includes calculating one or more of round trip time, uplink unidirectional jitter, downlink unidirectional jitter, and packet loss rate. For the QoS capability of the IP transmission network, only one indicator can be calculated, and some indicators or all indicators can be calculated. Which ones are selected as the basis for the judgment ability can be determined by the user's needs.
  • the measurement is performed by using TCP, UDP or SCTP packets, which effectively avoids the disadvantage of low priority of the ping message by the router in the ICMP ping method, and improves the measurement accuracy;
  • the corresponding request is initiated, and the response responder is made to respond accordingly, and the measurement method can be supported without relying on the router.
  • a method for measuring QoS of an IP transmission network according to Embodiment 2 of the present invention is based on Embodiment 1. Above, between steps A2 and A3, the step of removing the measurement connection is added.
  • the measurement initiator establishes a measurement connection with the measurement response end.
  • B2 similar to A2, performs measurement by the measurement initiator and the measurement response via the established measurement connection.
  • the specific process of this step includes:
  • the measurement initiator sends a measurement end request message to the measurement response end.
  • the measurement response end closes the measurement connection established in step B1;
  • the measurement response end sends a measurement end response message to the measurement initiator, where the message includes the measurement result of the measurement response end.
  • the measurement result counted in the step B33 may include one or more of a one-way packet loss rate in the uplink direction, an uplink one-way jitter, and an uplink transmission time.
  • the measurement end request message and the measurement end response message may be TCP, UDP, SCTP or ping messages.
  • step B4 The measurement initiator calculates the QoS capability of the IP transmission network according to the result. It should be understood that step B3 can also be performed after step B4.
  • the method for measuring the QoS capability of the IP transport network disclosed in the second embodiment effectively avoids the disadvantage that the router has low priority for the ping packet in the ICMP ping method, and improves the measurement accuracy; and the corresponding request is initiated by the measurement initiator.
  • the method of measuring the response of the responding end can support the measurement method without relying on the router.
  • the step of removing the measurement connection increases the safety of the measurement target system, that is, the measurement response end, making it difficult to be attacked.
  • the second embodiment is specifically applied to measure the QoS capability of the IP transmission network between the AP and the AG in the case of the AP networking. It can be understood that the method can also be used for measuring the QoS capability of an IP transmission network between other communication devices.
  • the usage system of other communication devices is not limited to UMTS, CDMA or GSM.
  • Embodiment 3 of the present invention provides a method for measuring QoS of an IP transmission network, where the measurement initiator is For the AP, the measurement response is AG. It can be understood that the measurement initiator can also be an AG, and the measurement response end can also be an AP. In order to guarantee the quality of service of the AP, the QoS capabilities of the IP transport network can be measured in two cases as described below, including:
  • the AP starts, it can optimize the network by measuring the transmission QoS of the IP transmission network, determine whether the transmission network meets the QoS specifications required by the AP service, and improve the QoS capability of the transmission network according to the measurement result.
  • the upper layer IP packet used for the QoS measurement of the IP transmission network is described by using a UDP packet as an example. It can be understood that other types of IP layer upper layer packets, such as TCP packets, can also be used. SCTP, etc., the method of calculating the QoS index by using other upper layer packets of the IP layer and the method of measuring the power using the UDP packet.
  • Embodiment 3 includes the following steps:
  • the measurement initiator AP establishes a measurement connection with the measurement response terminal AG, including:
  • the AP sends a measurement start request message to the AG.
  • the measurement start request message is a UDP packet, and the packet includes an IP address, a UDP port number, and a measurement traffic model for AP measurement.
  • the C12 After receiving the measurement start request message, the C12 determines the measurement establishment information between the AP and the AG measurement, and opens the UDP port number.
  • the measurement establishment information may include measuring the connection information, and may further include measuring the traffic model information.
  • the AP may preset the measurement connection information and the measurement traffic model information, and carry the measurement connection information and the measurement traffic model information in the measurement start request message, and send the message to the measurement response end.
  • the AG After receiving the measurement start request message, the AG directly uses the measurement connection information and the measurement traffic model information included in the measurement start request message to perform measurement;
  • the AG determines the AP and the AG measurement establishment information, and the AP may carry the measurement capability information that can be provided by the AP together in the measurement start request message, and send the measurement start request message to the AG, and the AG receives the measurement start. After requesting the message, send the selected measurement connection information to the AP according to its own capabilities. And measuring the flow model information, in the subsequent measurement process, the AP and the AG use the measurement connection information and the measurement flow model information to perform measurement;
  • the measurement connection information determined in the embodiment of the present invention includes a measurement packet, an IP address, and a used by both parties.
  • the UDP port number, the measurement traffic model, is measured in the order of 1 Mbps, 2 Mbps, 3 Mbps, 4 Mbps, 5 Mbps, and 6 Mbps from low to high.
  • the AG responds to the AP with a measurement start response message, and the packet includes an IP address and a UDP port for the AG measurement.
  • the IP layer upper layer packet is transmitted in the measurement connection established in the step C1.
  • the IP layer upper layer packet is a UDP packet
  • the measurement initiator AP and the measurement response end AG perform measurement, including:
  • the AP sends a measurement request message with a sequence number SN (Sequence Number) corresponding to the measurement request message to the AG, and records the local time T1 and SN of the measurement request message. It should be understood that the measurement request message may also include a local time T1.
  • sequence number SN Sequence Number
  • the initial value of the sequence number SN is 1, that is, the sequence number SN corresponding to the first measurement request message sent to the AG is 1, and each time a measurement request message is sent, the SN will be in the original number. Increase by 1.
  • the AP records the T1 and the SN, and records the sequence of the T1 and SN and the measurement request packets.
  • the sequence of the T1 and the SN is not fixed.
  • the number of measurement request packets sent may be set according to actual conditions, and may be the time used by the AP to send all the measurement request packets to the AG and send all measurement request packets. It is not limited; it can also be determined by setting the measurement time of the measurement flow model, in which the AP sends a measurement request message to the AG. In the embodiment, the latter is used, that is, the AP and the AG set the time during the establishment of the measurement connection, and the AP sends a measurement request message to the AG within the set time.
  • the AG receives the measurement request message, records the local time T2 of the measurement request message, and measures the sequence number SN in the request message, and counts the number of received measurement request messages, that is, the received SN. The number is calculated to calculate the uplink packet loss rate.
  • the measurement request message further includes the local time T1 at which the AP sends the measurement request message
  • the AG also records the local time T1 to calculate the uplink time according to T1 and ⁇ 2. Delay or uplink unidirectional jitter.
  • the AG sends a measurement response message to the AP, where the measurement response message includes the time T2 when the AG receives the measurement request message, the local time T3 when the measurement response message is sent, and the information obtained from the measurement request message.
  • the serial number SN it should be understood that when the required QoS indicator includes only the round-trip delay and/or the packet loss rate, the measurement response may not include the time T2 and the time at which the AG receives the measurement request. This measurement responds to the local time T3 at 4 ⁇ .
  • the AP receives the measurement response message, records the local time T4 of the measurement response message, and matches the corresponding measurement request according to the sequence number SN in the measurement response message.
  • step C24 the process of performing the measurement is completed.
  • step C21 to step C24 are to complete the measurement of a measurement flow model phase.
  • the measurement models are measured one by one in descending order. That is, first measure the 1Mbps measurement model, perform steps C21 to C24, measure the 2Mbps measurement model, repeat C21 to C24, and so on.
  • the time taken for the measurement of each measurement model is configurable, ie each measurement model needs to be measured within the specified time.
  • the measurement initiator AP sends a measurement end request message to the measurement response end AG, and closes the measurement connection between the AP and the AG, including:
  • the measurement of the measurement model is completed, and the AP sends a measurement end request message to the AG.
  • the AG receives the measurement end request message and closes the UDP port for measurement.
  • the measurement response end AG can also calculate the uplink QoS capability indicator according to the result recorded in the step C2.
  • Step C3 can also include:
  • the AG sends a measurement end response message to the AP, where the measurement end response message may include any one or more combinations of QoS indicators such as uplink packet loss rate, uplink unidirectional jitter, and uplink delay calculated by the AG. . It should be understood that, in the case where the transmission delay is allowed, the obtained QoS indicator can also be transmitted through the measurement response in C23.
  • QoS indicators such as uplink packet loss rate, uplink unidirectional jitter, and uplink delay calculated by the AG.
  • the measurement initiator AP calculates the QoS capability of the IP transmission network according to the measurement result in the C2 step. It can be understood that step C4 can also be performed before step C3.
  • the process of calculating the QoS capability of the IP transport network is as shown in FIG. 5 , wherein the measurement initiator can be an AP, other devices on the client, such as a user host or an AG, and the measurement response end can be an AG, a server, a router, or AP and so on.
  • T1 is the local time when the measurement initiator sends the measurement request message
  • T2 is the local time when the measurement response end receives the measurement request message
  • T3 is the local time when the measurement response end sends the measurement response message.
  • T4 is the local time at which the measurement initiator receives the measurement response message.
  • the measurement initiator sends a measurement request to the measurement response end, and the direction is an uplink direction.
  • the direction in which the measurement response end sends the measurement response to the measurement initiator is a downlink direction.
  • the QoS indicator of the IP transport network may include, but is not limited to, the indicators listed in the second embodiment. If a detailed report of the capability is not required, one or more of the QoS indicators may be considered, including Which QoS indicators are determined by the system settings. It should be understood that when the measured QoS indicator includes only the packet loss rate, the local time of transmitting and/or receiving the measurement request message and/or the measurement response message may not be transmitted and recorded.
  • the QoS indicators are calculated as follows:
  • the round-trip delay refers to the time difference between the measurement initiator from sending a measurement request message to receiving a corresponding measurement response message. Its value is T4 minus Tl.
  • uplink one-way jitter is the change of delay.
  • the time difference of ⁇ 2 of a certain message minus T1 is taken as the first uplink time difference SI, S1 can also be defined as the uplink delay, and the time difference of ⁇ 2 of the other 4 ⁇ minus T1 is taken as the second uplink time difference S2, S2 minus S1
  • the difference is the upstream one-way jitter.
  • the difference between W2 and W2 minus W1 is the downlink one-way jitter.
  • the packet loss rate is the percentage of lost packets and the number of request packets.
  • the packet loss rate includes one-way packet loss rate and two-way packet loss rate.
  • the one-way packet loss rate includes uplink loss. Packet rate and downlink packet loss rate.
  • the measurement initiator sends a measurement request message with a sequence number SN to the measurement response end, and the sequence number of the first measurement request message sent is 1, and each time a message is sent, the serial number attached to the message Add 1 , the measurement response end counts the uplink packet loss rate according to the lost sequence number, and the measurement initiator counts the two-way packet loss rate according to the lost sequence number.
  • the downlink packet loss rate is obtained according to the following calculation formula.
  • the QoS indicator is for a set of measurement traffic models, and for the measurement of the QoS capability of the IP transmission network having multiple sets of measurement traffic models,
  • the QoS capabilities of each set of measurement traffic models in the IP transport network are calculated separately to understand the QoS capabilities of the IP transport network under various traffic models.
  • the method for measuring the QoS capability of the IP transport network implements the measurement of the QoS of the IP transport network in the AP networking. It should be understood that the method can also be used for the measurement of QoS capabilities of IP transport networks between other communication devices.
  • the UDP packet in the upper layer of the IP layer is used as the measurement packet, the measurement is performed, the measurement data is recorded and received, and the QoS capability is calculated according to the obtained measurement data.
  • the third embodiment provides a more accurate QoS capability of the IP transmission network, while providing a more general measurement method.
  • the foregoing is a description of the method provided by the embodiment of the present invention.
  • the following describes the measuring device in the embodiment of the present invention.
  • the fourth embodiment of the present invention provides a measuring device. Referring to FIG. 6, the following specifically includes:
  • the measuring unit 20 is configured to perform measurement by using an IP layer upper layer message transmitted on the measurement connection; and the calculating unit 30 is configured to calculate an IP transmission network QoS indicator according to the measurement result of the measurement unit.
  • the above measuring device can be either a measurement initiator or a measurement response terminal in practical applications.
  • the following describes the device as a measurement initiator and a measurement response terminal in combination with an embodiment.
  • Embodiment 5 is a measurement initiation apparatus for measuring QoS capability of an IP transmission network. Referring to Fig. 7, the following units are included: First, the measurement connection unit 71, the first measurement unit 72, and the first calculation unit 74 are established.
  • the first establishing measurement connection unit 71 is configured to establish a measurement connection with the measurement response device, and specifically includes: sending a measurement start request message, where the measurement start request message includes measurement establishment information of the measurement initiation device, where the measurement establishment is The information includes measurement connection information, and the measurement establishment information may further include: information for measuring the flow model; receiving a measurement start response message sent by the measurement response device, where the measurement start response includes a measurement establishment information of the measurement response device, where The measurement is built The information includes measurement connection information, and the measurement establishment information may further include measuring traffic model information; and establishing a measurement connection with the measurement response device according to the received measurement start response message.
  • the measurement start request message and the measurement start response message may be in the form of a TCP message, a UDP message, an SCTP message, or a ping message format.
  • the measurement initiating device may further include a flow control unit 75 for controlling the measurement of the measured flow model by the first measuring unit 72 according to the measured flow model information determined by the first established measurement connection unit 71.
  • the flow control unit 75 acquires the measurement flow model information in the measurement establishment information determined in the first establishment measurement connection unit 71, where the measurement flow model may be a group or It is multiple groups.
  • the flow control unit 75 may control the measurement unit to measure the measurement flow model in sequence according to the measurement flow model information in the first established measurement connection unit 71, and complete measurement of a set of measurement models, according to The sequence described performs measurements on the next measured flow model. The sequence is recorded in the measurement traffic model information acquired by the first establishing measurement connection unit 71.
  • the following is a description of performing a set of measurement flow model measurements on the first measurement unit 72.
  • the first measuring unit 72 includes: a recording unit 821, a serial number management unit 822, a statistical unit 823, a transmitting unit 825, and a receiving unit 826, see Fig. 8.
  • the recording unit 821 in the first measuring unit 72 is configured to record the local time T1 of the transmission measurement request message
  • the serial number management unit 822 is configured to record the serial number SN of the transmitted measurement request message, and add the SN to the measurement.
  • the request message is sent to the measurement response device.
  • the serial number management unit 822 increments the SN value every time the measurement initiating device sends the measurement request message, for example: the sequence number SN when the measurement request is sent for the first time is 1, and the measurement request is sent for the second time. ⁇
  • the serial number SN of the text is 2, and so on.
  • the sending unit 825 is configured to send a measurement request message, where the measurement request message includes a sequence number SN corresponding to the measurement request, and may also include a local time T1 for transmitting the measurement request message.
  • the maximum value of the sequence number SN of the measurement request message sent by the sending unit 825 may be determined by the measurement establishment information in the first established measurement connection unit 71 when the measurement flow model needs to be measured.
  • the maximum value of the sequence number SN of the measurement request sent by the sending unit 825 may be determined by the measurement traffic model information in the measurement establishment information in the first establishment measurement connection unit 71, the measurement connection information and the measurement flow.
  • the model information may include the number of measurement request messages sent in one or each set of measurement traffic models, or may set the measurement time of one or each set of measurement traffic models, and the sending unit 825 sets the set time within the set time.
  • the rate sends a measurement request message, and the number of the measurement request message is the number of measurement request messages sent within the set time of the executed measurement traffic model. It should be understood that the measurement request message sent by the sending unit 825
  • the maximum value of the serial number SN can also be determined by the measurement connection information in the measurement establishment information in the first establishment measurement connection unit 71.
  • the receiving unit 826 of the first measurement unit 72 can also acquire the time T2 of the measurement response message that the measurement response device receives the measurement request message.
  • the first calculating unit 74 is configured to: after the first measurement unit 72 completes the measurement, acquire the measurement result from the first measurement unit 72, and calculate a capability indicator of the QoS; wherein the acquired measurement result includes: T1, ⁇ 2, ⁇ 3, ⁇ 4, and The number of measured response packets is calculated.
  • the calculated QoS indicators include any one or more of two-way delay, one-way delay, one-way delay jitter, and two-way packet loss rate.
  • the above description is a process in which the first measurement unit 72 performs a set of measurement flow model measurement. If the measurement flow model in the measurement establishment information is a plurality of groups, the flow control unit 75 follows the measurement sequence of the measurement flow model recorded in the measurement establishment information. Instructing the first measurement unit 72 to measure the next set of flow models.
  • the first calculating unit 74 calculates a QoS capability indicator of the set of traffic models according to the measurement result of the next set of traffic models.
  • the QoS capability indicator of the IP transport network is composed of QoS capability indicators of multiple sets of traffic models. It should be understood that if the measurement establishment information includes only one set of measurement traffic models, the QoS capability indicator of the IP transmission network is composed of the QoS capability indicators of the group of measurement traffic models.
  • the measurement initiating device further includes a first off measurement connection unit 73, and the first off measurement connection unit 73 For closing the measurement connection established by the first established measurement connection unit 71 after the first measurement unit 72 completes the measurement.
  • the local time for transmitting and/or receiving the measurement request message and/or the measurement response message may not be transmitted and recorded.
  • the apparatus may be a communication device having the function modules described above, such as an access point AP, a user host, an access gateway AG, and the like.
  • a measurement initiating apparatus for measuring the QoS capability of an IP transport network provided by Embodiment 5, wherein the apparatus performs measurement by using a TCP, UDP or SCTP message and a measurement response apparatus, thereby effectively avoiding the router to ping in the ICMP Ping method.
  • the shortcoming of low priority of the message improves the measurement accuracy.
  • it can also have the function of closing the measurement connection, ensuring the safety of the measurement target system and not being easily attacked.
  • Embodiment 6 of the present invention further provides a measurement response device for measuring QoS of an IP transmission network.
  • the measurement response device includes a second established measurement connection unit 91 and a second measurement unit 92.
  • the second establishing measurement connection unit 91 is configured to establish a measurement connection with the measurement initiating device, and specifically includes: receiving a measurement start request message sent by the measurement initiating device, and transmitting a measurement start response The message is sent to the measurement initiating device, that is, the measurement connection between the measurement response device and the measurement initiating device is completed; the measurement start request message and the measurement start response message can use TCP packets, UDP packets, and SCTP packets. Text or Ping message.
  • a second measuring unit 92 configured to perform measurement with the measurement initiating device after establishing a measurement connection with the measurement initiating device; the measuring comprises receiving the measurement request message, and sending the measurement response message; the second measuring unit 92 includes The second recording unit 101, the second transmitting unit 103, and the second receiving unit 104 are shown in FIG.
  • the second measuring unit 92 is configured to perform measurement by the measurement connection established by the second establishing measurement connecting unit 91, the second receiving unit 104 receives the measurement request message sent by the measurement initiating device, and the second recording unit 101 records the measurement response device receiving the measurement.
  • the measurement request message and the measurement response message use the upper layer packet of the IP layer, and the upper layer packet of the IP layer may include a TCP packet, a UDP packet, or an SCTP packet format.
  • the second sending unit 103 is configured to send a measurement response message, where the measurement response message includes a time T2 when the measurement response device receives the measurement request message, a local time T3 when the measurement response message is sent, and the acquired measurement request message.
  • the serial number SN in .
  • the second measurement unit 92 may further include a second statistical unit 102 for counting the number of received SNs.
  • the measurement response device may further include a second calculating unit 94, configured to calculate any one of a QoS indicator such as an uplink packet loss rate, an uplink one-way jitter, and an uplink delay after obtaining the measurement result of the second statistical unit 102 or Several.
  • a QoS indicator such as an uplink packet loss rate, an uplink one-way jitter, and an uplink delay after obtaining the measurement result of the second statistical unit 102 or Several.
  • the second statistical unit 102 in the second measurement unit 92 may also be located in the second calculation unit 94.
  • the measurement response device may further include a second closed connection unit 93, configured to: when receiving the measurement end request message sent by the measurement initiation device, close the measurement connection, send a measurement end response message to the measurement initiator; and secondly close the connection unit
  • the measurement end response message sent by 93 further includes the QoS indicator obtained in the second calculating unit 94. It should be understood that, in the case where the transmission delay is allowed, the QoS indicator obtained in the second calculation unit 94 can also be transmitted by measuring the response > 3 ⁇ 4 text.
  • the local time for transmitting and/or receiving the measurement request message and/or the measurement response message may not be transmitted and recorded.
  • a measurement response apparatus for measuring QoS capability of an IP transmission network may be a router, a host, an access point AP, an access gateway AG, or a network server.
  • the device performs measurement by using the TCP, UDP or SCTP message and the measurement initiating device, and effectively avoids the disadvantage that the router has low priority of the Ping message in the ICMP Ping method, and improves the measurement accuracy;
  • the seventh embodiment of the present invention further provides an access point AP, where the access point AP includes the measurement device described in Embodiment 4 or the measurement initiation device described in Embodiment 5. It can be understood that the access point is The AP may also include the measurement initiating device described in Embodiment 6.
  • the eighth embodiment of the present invention further provides an access gateway AG, which includes the measurement device described in the fourth embodiment, or the measurement response device described in the seventh embodiment. It can be understood that The access gateway AG may also include the measurement initiating device described in Embodiment 6.
  • An access point AP or an access gateway AG provided by Embodiments 7 and 8 of the present invention, the AP or the AG performs measurement by using TCP, UDP or SCTP packets and the measurement response device, thereby effectively avoiding the use of ICMP Ping.
  • the router has the disadvantage of lower priority of the ping packet, which improves the measurement accuracy.
  • it can also have the function of closing the measurement connection, ensuring the security of the measurement target system and not being easily attacked.
  • Embodiment 9 of the present invention also provides a communication system, see Fig. 11, including a measurement initiating device 111 and a measurement response device 112.
  • the measurement initiation device 111 and the measurement response device 112 establish a measurement connection by transmitting a TCP packet, a UDP packet, an SCTP packet, or a ping packet, and may also be other types of packets, which are not limited herein;
  • the measurement connection established by the device 111 and the measurement response device 112, the measurement initiation device 111 and the measurement response device 112 perform measurement by transmitting a measurement TCP message, a UDP message or an SCTP message; the measurement initiation device 111 and the measurement response device 112 are based on The measurement result obtained after the measurement is performed, and the QoS capability of the IP transmission network is calculated.
  • the measurement initiating device 111 and the measurement response device 112 in the communication system can also close the measurement connection established by the measurement initiating device 111 and the measurement response device 112.
  • the measurement initiating device 111 may be the measurement initiating device described in the fifth embodiment, and the measurement response device 112 may be the measurement response device described in the sixth embodiment.
  • the communication system can also include an access point AP and an access gateway AG, wherein the access point AP serves as a measurement initiator, the access gateway AG serves as a measurement response end, or the access gateway AG serves as a measurement initiator.
  • the access point AP acts as a measurement response end.
  • a communication system is provided in Embodiment 9 of the present invention, in which the measurement initiating device 111 performs measurement by using a TCP, UDP or SCTP message and the measurement response device 112, thereby effectively avoiding the use of the router to ping packets in the ICMP Ping method.
  • the disadvantage of low priority improves measurement accuracy;
  • a method, system, and apparatus for measuring the quality of the Internet Protocol transport network service provided by the embodiments of the present invention are described in detail. Those skilled in the art can understand that all or part of the steps in the foregoing method can be implemented through the program. To instruct the relevant hardware to complete, the process described The sequence may be stored in a computer readable storage medium, and when executed, the program includes the following steps: establishing a measurement connection with the measurement response end;
  • the program can also perform the measurement methods described in the method embodiments of the present invention.
  • the above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. It is to be noted that the description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in specific embodiments and applications. In the above, the contents of this specification are not to be construed as limiting the invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method and a device for measuring the quality of service of the Internet protocol transmission network are provided. The method includes: establishing a measuring connection with the measuring response terminal; carrying out the measurement with the measuring responding terminal according to the upper layer message of the Internet protocol layer transmitted in the measuring connection; calculating the quality index of service of the Internet protocol transmission according to the measured result.

Description

一种测量互联网协议传输网服务质量的方法和装置  Method and device for measuring service quality of internet protocol transmission network
本申请要求于 2008 年 07 月 07 日提交中国专利局、 申请号为 200810040651.8、 发明名称为 "一种测量互联网协议传输网服务质量的方法和 装置" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  This application claims priority to Chinese Patent Application No. 200810040651.8, entitled "A Method and Apparatus for Measuring the Quality of Internet Protocol Transmission Network Service" submitted by the Chinese Patent Office on July 7, 2008, the entire contents of which are hereby incorporated by reference. The citations are incorporated herein by reference. Technical field
本发明涉及通信技术领域, 尤其涉及一种测量互联网协议(IP, Internet Protocol )传输网服务质量 QoS (Quality of Service)的方法和装置。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for measuring QoS (Quality of Service) of an Internet Protocol (IP) transport network. Background technique
IP传输网在当今的数据通信中发挥非常重要的作用。 比如家中或者企业 有多台设备想要通过无线方式接入到网络中,要通过接入点 AP ( Access Point ) 进入 IP传输网络, AP 的组网图参见图 1 , AP 通过家庭网关 HGW(Home Gateway)接入到 IP传输网, 再通过 IP传输网连接到移动核心网的接入网关 AG ( Access Gateway )。 AP的业务承载在 IP层之上, AP的业务质量很大程度 上依赖 IP传输网的 QoS能力。 现阶段 IP传输网在支持 QoS方面并不完善, 为了保证 AP的业务服务质量必须要求 IP传输网提供相应的 QoS能力。 目前 测量 IP传输网 QoS的方法主要是如下两种。  IP transport networks play a very important role in today's data communications. For example, if there are multiple devices in the home or enterprise that want to access the network through the wireless network, you need to access the IP transmission network through the Access Point (AP). For the networking diagram of the AP, see Figure 1. The AP passes the home gateway HGW (Home). The Gateway accesses the IP transport network and connects to the Access Gateway (AG) of the mobile core network through the IP transport network. The service of the AP is carried over the IP layer. The quality of the AP depends largely on the QoS capabilities of the IP transport network. At this stage, the IP transport network is not perfect in supporting QoS. In order to ensure the service quality of the AP, the IP transport network must be required to provide corresponding QoS capabilities. At present, the methods for measuring the QoS of an IP transmission network are mainly as follows.
其中一种为通过因特网控制信息协议 ICMP ( Internet Control Message Protocol ) Ping 的方法。 因特网控制信息协议 ICMP Ping 方法的原理是利用 ICMP Echo协议报文来检测网络的连通情况。 本端主机发送 ICMP Echo请求 报文, 目的主机收到请求报文后返回应答 ICMP Echo报文。 本端主机收到应 答>¾文, 通过计算, 判断网络的大致情况。 另一种方法为釆用 IP性能测量协 议 IPMP ( IP Measurement Protocol )的测量方法, 此方法的测量实体是测量主 机、 响应系统和转发系统。  One of them is a method of controlling the information protocol ICMP (Internet Control Message Protocol) through the Internet. Internet Control Information Protocol The principle of the ICMP Ping method is to use ICMP Echo protocol packets to detect network connectivity. The local host sends an ICMP Echo request packet. After receiving the request packet, the destination host returns an ICMP Echo packet. The local host receives the response >3⁄4 text, and through calculation, judges the general situation of the network. Another method is to use the IPMP (IP Measurement Protocol) measurement method. The measurement entity of this method is the measurement host, response system and forwarding system.
在本发明过程中, 发明人发现釆用 ICMP Ping方法由于路由器对 Ping报 文的处理优先级比较低, 产生排队延迟, 测量结果误差比较大。 而且某些路由 器会把 ICMP分组过滤掉以防止 DOS攻击, 目的主机在接收 ICMP Ping报文 时, 容易被攻击; 釆用 IP性能测量协议 IPMP的测量方法是一种面向路由器 的一种测量协议, 要实现 IPMP测量目标, 路由器必须对其提供支持。 In the process of the present invention, the inventor has found that the ICMP ping method uses a router to ping packets with a lower priority, resulting in a queuing delay, and the measurement result error is relatively large. Moreover, some routers will filter ICMP packets to prevent DOS attacks. The destination host receives ICMP Ping packets. When it is easy to be attacked; IP IP measurement measurement protocol IPMP measurement method is a measurement protocol for routers. To achieve IPMP measurement targets, routers must support them.
发明内容 Summary of the invention
本发明实施例提供一种测量互联网协议传输网服务质量的方法和装置,有 效的提高了测量 IP传输网 QoS的准确度, 同时也避免了测量网络必须有路由器 支持的限制。  Embodiments of the present invention provide a method and apparatus for measuring quality of service of an Internet Protocol transport network, which effectively improves the accuracy of measuring QoS of an IP transport network, and also avoids the limitation that the measurement network must have router support.
本发明实施例提供一种测量互联网协议传输网服务质量的方法, 包括: 建立与测量响应端之间的测量连接;  An embodiment of the present invention provides a method for measuring a service quality of an internet protocol transmission network, including: establishing a measurement connection with a measurement response end;
基于所建立的测量连接, 执行与所述测量响应端之间的测量, 执行测量所 传输的测量请求报文和测量应答报文为互联网协议层上层报文;  And performing, according to the established measurement connection, performing measurement with the measurement response end, and performing measurement on the measured measurement request message and the measurement response message as an upper layer protocol of the Internet Protocol layer;
根据所述测量的结果获得互联网协议传输网服务质量指标。  According to the result of the measurement, an Internet Protocol transmission network service quality indicator is obtained.
本发明实施例提供一种测量装置, 包括:  An embodiment of the present invention provides a measurement apparatus, including:
建立测量连接单元, 用于与测量对端装置建立测量连接;  Establishing a measurement connection unit for establishing a measurement connection with the measurement peer device;
测量单元, 用于基于所建立的测量连接, 执行与所述测量响应端之间的测 量, 执行测量所传输的测量请求报文和测量应答报文为互联网协议层上层报 文;  a measuring unit, configured to perform measurement between the measurement response end and the measurement response end based on the established measurement connection, and perform measurement to transmit the measurement request message and the measurement response message to be an upper layer protocol of the Internet Protocol layer;
计算单元, 用于根据所述测量的结果计算互联网协议传输网服务质量指 标。  And a calculating unit, configured to calculate an internet protocol transmission network service quality indicator according to the measured result.
本发明实施例提供一种接入点, 具体如上述的测量装置。  The embodiment of the invention provides an access point, such as the above measuring device.
本发明实施例提供一种接入网关, 具体如上述的测量装置。  The embodiment of the invention provides an access gateway, such as the above measuring device.
本发明实施例中提供的测量 IP传输网服务质量 QoS的方法、 测量装置、 接 入点 AP、 接入网关 AG, 釆用在路由器上优先级较高的 IP层上层报文进行 QoS 测量,提高了测量准确度, 而且测量是基于测量发起端和测量响应端之间的测 量, 涉及到的测量设备少, 增强了测量方法的通用性。  The method for measuring the quality of service (QoS) of the IP transmission network, the measurement device, the access point AP, and the access gateway AG are provided in the embodiment of the present invention, and the QoS measurement is performed on the upper layer IP packet of the router with higher priority, and the QoS measurement is improved. The measurement accuracy is based on the measurement between the measurement initiator and the measurement response, and the number of measurement devices involved is small, which enhances the versatility of the measurement method.
附图说明 DRAWINGS
图 1是 AP的组网图;  Figure 1 is a networking diagram of an AP;
图 2是本发明实施例一中组网简图; 图 3是本发明实施例一提供的一种测量 IP传输网 QoS的方法流程图; 图 4是本发明实施例三提供的一种测量 IP传输网 QoS的方法流程图; 图 5是本发明实施例三中计算 QoS能力的测量数据图; 2 is a schematic diagram of a networking in the first embodiment of the present invention; FIG. 3 is a flowchart of a method for measuring QoS of an IP transmission network according to Embodiment 1 of the present invention; FIG. 4 is a flowchart of a method for measuring QoS of an IP transmission network according to Embodiment 3 of the present invention; FIG. a measurement data map for calculating QoS capability in Example 3;
图 6是本发明实施例四提供的一种测量装置组成图;  6 is a composition diagram of a measuring device according to Embodiment 4 of the present invention;
图 7是本发明实施例五提供的一种测量发起装置组成图;  7 is a composition diagram of a measurement initiation device according to Embodiment 5 of the present invention;
图 8是本发明实施例五提供的一种测量发起装置第一测量单元组成图; 图 9是本发明实施例六提供的一种测量响应装置组成图;  8 is a composition diagram of a first measurement unit of a measurement initiation device according to Embodiment 5 of the present invention; FIG. 9 is a composition diagram of a measurement response device according to Embodiment 6 of the present invention;
图 10是本发明实施例六提供的一种测量响应装置第二测量单元组成图; 图 11是本发明实施例九提供的一种通信系统组成图。  10 is a composition diagram of a second measurement unit of a measurement response device according to Embodiment 6 of the present invention; and FIG. 11 is a composition diagram of a communication system according to Embodiment 9 of the present invention.
具体实施方式 detailed description
本发明实施例提供一种测量互联网协议传输网服务质量的方法和装置,在 Embodiments of the present invention provide a method and apparatus for measuring service quality of an internet protocol transmission network, where
IP传输网中, 釆用传输控制协议 TCP ( Transport Control Protocol )报文、 用户 数据报协议 UDP ( User Datagram Protocol )报文或者流控制传输协议 SCTP ( Stream Control Transmission Protocol )才艮文, 路由器对这些才艮文的处理的优 先级高, 使得测量误差相对较小, 通过测量发起端和测量响应端之间的测量, 最终得出测量结果, 不需要路由器的支持, 使得测量具有通用性。 为了更好的 理解, 以下进行详细的说明。 In the IP transport network, the transport control protocol TCP (Transport Control Protocol) packet, the User Datagram Protocol (UDP) packet, or the Stream Control Transmission Protocol (SCTP) are used. The priority of the processing of the essay is high, so that the measurement error is relatively small. By measuring the measurement between the initiator and the measurement response end, the measurement result is finally obtained, and the support of the router is not required, so that the measurement is versatile. For a better understanding, the following is a detailed description.
实施例一、 一种测量 IP传输网 QoS的方法, 参见图 2 , 测量发起端与测量 响应端通过 IP网络通信。 测量发起端可以是用户端设备, 如用户主机、 AP等。 测量响应端可以是路由器, 也可以是主机、 接入网关 AG或者网络服务器。  Embodiment 1 A method for measuring QoS of an IP transmission network, see FIG. 2, the measurement initiator and the measurement response end communicate through an IP network. The measurement initiator can be a client device, such as a user host, an AP, and the like. The measurement response end can be a router, a host, an access gateway AG, or a network server.
方法流程参见图 3 , 包括步骤:  The method flow is shown in Figure 3, including the steps:
A1、 测量发起端与测量响应端建立测量连接。  A1. The measurement initiator establishes a measurement connection with the measurement response end.
测量发起端与测量响应端建立测量连接包括测量发起端向测量响应端发 送测量开始请求^艮文, 测量响应端向测量发起端回应测量开始应答^艮文, 以确 定双方测量建立信息, 所述测量建立信息包括测量连接信息,还可以包括测量 流量模型信息, 建立专门的数据通道, 用来进行 QoS测量。  The measuring initiator establishes a measurement connection with the measurement response end, and the measurement initiator sends a measurement start request to the measurement response end, and the measurement response end responds to the measurement initiation end with the measurement start response message to determine the two-party measurement establishment information, The measurement setup information includes measuring connection information, and may also include measuring traffic model information and establishing a dedicated data channel for performing QoS measurement.
其中, 测量开始请求报文和测量开始应答报文可以是 TCP、 UDP, SCTP 或者 Ping分组。 测量连接信息包括数据传输过程中使用的测量分组、 IP地址和端口号等信 息, 其中, 测量分组可以是 TCP、 UDP, SCTP分组。 The measurement start request message and the measurement start response message may be TCP, UDP, SCTP or Ping packets. The measurement connection information includes information such as a measurement packet, an IP address, and a port number used in the data transmission process, wherein the measurement packet may be a TCP, UDP, or SCTP packet.
测量流量模型信息包括测量发起端发送的测量流量, 如 lMbps、 2Mbps, 3Mbps等。 测量流量模型信息还可以包括测量流量模型的个数和对测量流量模 型执行测量的顺序,其中对测量流量模型执行测量的顺序可以由测量发起端和 测量响应端协商确定。  Measuring traffic model information includes measuring measurement traffic sent by the initiator, such as lMbps, 2Mbps, 3Mbps, and the like. The measurement of the flow model information may further include measuring the number of flow models and the order in which the measurements are performed on the measured flow models, wherein the order in which the measurements are performed on the measured flow models may be determined by negotiation between the measurement initiator and the measurement response.
A2、 通过在 A1步骤中建立的测量连接中传输 IP层上层报文, 测量发起端 与测量响应端执行测量。  A2. The measurement initiator and the measurement response end perform measurement by transmitting the upper layer IP packet in the measurement connection established in step A1.
测量发起端按照 A1步骤中确定的测量数据流量模型, 向测量响应端发送 测量请求报文, 测量响应端发送测量应答报文给测量发起端。 测量请求报文中 包括执行测量信息, 如所发测量请求报文的序列号、 时间戳等。  The measurement initiator sends a measurement request message to the measurement response end according to the measurement data traffic model determined in step A1, and the measurement response end sends a measurement response message to the measurement initiator. The measurement request message includes execution measurement information, such as the serial number and time stamp of the measurement request message sent.
其中, IP层上层 4艮文包括传输控制协议 TCP ( Transport Control Protocol ) 报文、 用户数据报协议 UDP ( User Datagram Protocol )报文和流控制传输协议 SCTP ( Stream Control Transmission Protocol )才艮文。  The upper layer of the IP layer includes a transport control protocol TCP (Transport Control Protocol) packet, a User Datagram Protocol (UDP) packet, and a Stream Control Transmission Protocol (SCTP).
测量请求报文和测量应答报文为 IP层上层报文中的一种,可以是传输控制 协议 TCP ( Transport Control Protocol ) 报文、 用户数据报协议 UDP ( User Datagram Protocol ) 报文或者流控制传输协议 SCTP ( Stream Control Transmission Protocol )才艮文。  The measurement request packet and the measurement response packet are one of the upper layer packets of the IP layer, and may be a Transport Control Protocol (TCP) message, a User Datagram Protocol (UDP) message, or a flow control transmission. The protocol SCTP (Stream Control Transmission Protocol) is the text.
A3、测量发起端根据 A2步骤中测量的结果,计算出 IP传输网的 QoS的能力。 其中, 计算 IP传输网的 QoS能力包括计算往返时间、 上行单向抖动、 下行 单向抖动和丟包率中的一种或几种。 对于 IP传输网 QoS能力, 可以只计算某一 个指标,也可以计算某几个指标或者全部指标, 具体选择哪几项作为评判能力 的依据可由用户的需求来确定。  A3. The measurement initiator calculates the QoS capability of the IP transmission network according to the measurement result in the A2 step. The calculating the QoS capability of the IP transport network includes calculating one or more of round trip time, uplink unidirectional jitter, downlink unidirectional jitter, and packet loss rate. For the QoS capability of the IP transmission network, only one indicator can be calculated, and some indicators or all indicators can be calculated. Which ones are selected as the basis for the judgment ability can be determined by the user's needs.
在本发明实施例中, 釆用 TCP、 UDP或者 SCTP报文执行测量, 有效的避 免釆用 ICMP Ping方法中路由器对 Ping报文优先级低的缺点, 提高了测量准确 度; 釆用测量发起端发起相应的请求, 测量响应端做出相应的回应的方法, 可 以不依靠路由器对测量方法支持与否。  In the embodiment of the present invention, the measurement is performed by using TCP, UDP or SCTP packets, which effectively avoids the disadvantage of low priority of the ping message by the router in the ICMP ping method, and improves the measurement accuracy; The corresponding request is initiated, and the response responder is made to respond accordingly, and the measurement method can be supported without relying on the router.
本发明实施例二提供的一种测量 IP传输网 QoS的方法, 在实施例一的基础 上, 在步骤 A2与 A3之间, 增加拆除测量连接的步骤。 A method for measuring QoS of an IP transmission network according to Embodiment 2 of the present invention is based on Embodiment 1. Above, between steps A2 and A3, the step of removing the measurement connection is added.
实施例二的具体实施步骤如下所示:  The specific implementation steps of the second embodiment are as follows:
Bl、 与 A1相似, 测量发起端与测量响应端建立测量连接。  Bl, similar to A1, the measurement initiator establishes a measurement connection with the measurement response end.
B2、 与 A2相似, 通过已建立的测量连接, 测量发起端与测量响应端执行 测量。  B2, similar to A2, performs measurement by the measurement initiator and the measurement response via the established measurement connection.
B3、 执行测量结束后, 测量发起端与测量响应端拆除测量连接, 此步骤 的具体过程包括:  B3. After the measurement is completed, the measurement initiator and the measurement response end are removed from the measurement connection. The specific process of this step includes:
B31、 测量发起端发送测量结束请求报文到测量响应端;  B31. The measurement initiator sends a measurement end request message to the measurement response end.
B32、 测量响应端收到测量结束请求报文后, 关闭 B1步骤中建立的测量连 接;  B32. After receiving the measurement end request message, the measurement response end closes the measurement connection established in step B1;
B33、 测量响应端向测量发起端发送测量结束应答报文, 报文中包含测量 响应端统计的测量结果。  B33. The measurement response end sends a measurement end response message to the measurement initiator, where the message includes the measurement result of the measurement response end.
B33步骤中统计的测量结果可以包含上行方向的单向丟包率, 上行单向抖 动和上行传输时间中的一种或几种。  The measurement result counted in the step B33 may include one or more of a one-way packet loss rate in the uplink direction, an uplink one-way jitter, and an uplink transmission time.
测量结束请求报文和测量结束应答报文可以是 TCP、 UDP、 SCTP或者 Ping 报文。  The measurement end request message and the measurement end response message may be TCP, UDP, SCTP or ping messages.
B4、测量发起端根据结果,计算出 IP传输网的 QoS的能力。应当理解的是, 步骤 B3也可以在步骤 B4之后执行。  B4. The measurement initiator calculates the QoS capability of the IP transmission network according to the result. It should be understood that step B3 can also be performed after step B4.
实施例二公开的测量 IP传输网 QoS能力的方法, 有效的避免釆用 ICMP Ping方法中路由器对 Ping报文优先级低的缺点, 提高了测量准确度; 釆用测量 发起端发起相应的请求, 测量响应端做出相应的回应的方法, 可以不依靠路由 器对测量方法支持与否。 而且增加拆除测量连接的步骤,保证了测量目标系统 即测量响应端的安全, 使其不易被攻击。  The method for measuring the QoS capability of the IP transport network disclosed in the second embodiment effectively avoids the disadvantage that the router has low priority for the ping packet in the ICMP ping method, and improves the measurement accuracy; and the corresponding request is initiated by the measurement initiator. The method of measuring the response of the responding end can support the measurement method without relying on the router. Moreover, the step of removing the measurement connection increases the safety of the measurement target system, that is, the measurement response end, making it difficult to be attacked.
下面给出了实施例二具体应用于在 AP组网的情况下测量 AP与 AG之间 IP 传输网的 QoS能力。 可以理解的是, 该方法也可以用于其他通信设备之间 IP 传输网 QoS能力的测量。 其他通信设备的使用制式不限于 UMTS、 CDMA或者 GSM。  The second embodiment is specifically applied to measure the QoS capability of the IP transmission network between the AP and the AG in the case of the AP networking. It can be understood that the method can also be used for measuring the QoS capability of an IP transmission network between other communication devices. The usage system of other communication devices is not limited to UMTS, CDMA or GSM.
本发明实施例三提供了一种测量 IP传输网 QoS的方法, 其中测量发起端为 AP, 测量响应端为 AG, 可以理解的是, 测量发起端也可以为 AG, 测量响应 端也可以为 AP。 为了保证 AP的服务质量, 可以在以下描述的两种情况中测量 IP传输网的 QoS能力, 包括: Embodiment 3 of the present invention provides a method for measuring QoS of an IP transmission network, where the measurement initiator is For the AP, the measurement response is AG. It can be understood that the measurement initiator can also be an AG, and the measurement response end can also be an AP. In order to guarantee the quality of service of the AP, the QoS capabilities of the IP transport network can be measured in two cases as described below, including:
1、 开局优化组网。 在 AP开局时可以通过测量 IP传输网的传输 QoS, 来优 化网络,判断传输网是否达到 AP业务要求的 QoS指标,依据测量结果改进传输 网的 QoS的能力。  1. Start the optimization network. When the AP starts, it can optimize the network by measuring the transmission QoS of the IP transmission network, determine whether the transmission network meets the QoS specifications required by the AP service, and improve the QoS capability of the transmission network according to the measurement result.
2、 故障检测。 在发生故障, 或者用户投诉时, 测量 IP传输网的 QoS , 并 利用检测结果进行故障定位, 判断是 IP传输网不能达到 AP业务要求的 QoS指 标, 还是 AP发生了故障。  2. Fault detection. In the event of a failure, or a user complaint, the QoS of the IP transmission network is measured, and the detection result is used to locate the fault, and it is determined whether the IP transmission network cannot meet the QoS index required by the AP service, or the AP has failed.
在本发明实施例中用于 IP传输网 QoS测量的 IP层上层报文以 UDP报文为例 进行说明,可以理解的是, 同样可以釆用其他类型的 IP层上层报文如 TCP报文、 SCTP等,釆用其它 IP层上层报文进行 QoS指标计算的方式与釆用 UDP报文进行 力测量的方法。  In the embodiment of the present invention, the upper layer IP packet used for the QoS measurement of the IP transmission network is described by using a UDP packet as an example. It can be understood that other types of IP layer upper layer packets, such as TCP packets, can also be used. SCTP, etc., the method of calculating the QoS index by using other upper layer packets of the IP layer and the method of measuring the power using the UDP packet.
参见图 4所示, 实施例三包括以下步骤:  Referring to FIG. 4, Embodiment 3 includes the following steps:
Cl、 测量发起端 AP与测量响应端 AG建立测量连接, 包括:  Cl, the measurement initiator AP establishes a measurement connection with the measurement response terminal AG, including:
Cll、 AP向 AG发送测量开始请求报文, 该测量开始请求报文为 UDP报文, 报文中包括 AP测量用的 IP地址、 UDP端口号和测量流量模型。  Cll. The AP sends a measurement start request message to the AG. The measurement start request message is a UDP packet, and the packet includes an IP address, a UDP port number, and a measurement traffic model for AP measurement.
C12、 AG收到测量开始请求报文后, 确定 AP与 AG测量之间的测量建立信 息, 打开 UDP端口号, 所述测量建立信息可以包括测量连接信息, 还可以包括 测量流量模型信息。  After receiving the measurement start request message, the C12 determines the measurement establishment information between the AP and the AG measurement, and opens the UDP port number. The measurement establishment information may include measuring the connection information, and may further include measuring the traffic model information.
在本发明实施例中, 可以是 AP预先设定测量连接信息和测量流量模型信 息, 并将测量连接信息和测量流量模型信息携带于测量开始请求报文中, 向测 量响应端发送该报文, AG收到测量开始请求报文后, 直接釆用该测量开始请 求报文中所包含的测量连接信息和测量流量模型信息进行测量;  In the embodiment of the present invention, the AP may preset the measurement connection information and the measurement traffic model information, and carry the measurement connection information and the measurement traffic model information in the measurement start request message, and send the message to the measurement response end. After receiving the measurement start request message, the AG directly uses the measurement connection information and the measurement traffic model information included in the measurement start request message to perform measurement;
AG确定 AP与 AG测量建立信息, 也可以是 AP将自身所能提供的建立测量 的能力信息一起携带于测量开始请求报文中,向 AG发送该测量开始请求报文, AG收到该测量开始请求报文后, 根据自身能力向 AP发送选定的测量连接信息 和测量流量模型信息, 在后续测量过程中 AP和 AG釆用该测量连接信息和测量 流量模型的信息进行测量; The AG determines the AP and the AG measurement establishment information, and the AP may carry the measurement capability information that can be provided by the AP together in the measurement start request message, and send the measurement start request message to the AG, and the AG receives the measurement start. After requesting the message, send the selected measurement connection information to the AP according to its own capabilities. And measuring the flow model information, in the subsequent measurement process, the AP and the AG use the measurement connection information and the measurement flow model information to perform measurement;
可以理解的是,具体的确定测量连接信息和测量流量模型信息的过程在实 际应用中还有很多其他的可能性, 此处不作限定。  It can be understood that there are many other possibilities in the actual application of the process of determining the measurement connection information and measuring the flow model information, which is not limited herein.
本发明实施例中确定的测量连接信息包括双方使用的测量分组、 IP地址和 The measurement connection information determined in the embodiment of the present invention includes a measurement packet, an IP address, and a used by both parties.
UDP端口号,测量流量模型釆用 1Mbps、 2Mbps、 3Mbps、 4Mbps, 5Mbps、 6Mbps 由低到高的顺序进行测量。 The UDP port number, the measurement traffic model, is measured in the order of 1 Mbps, 2 Mbps, 3 Mbps, 4 Mbps, 5 Mbps, and 6 Mbps from low to high.
C13、 AG向 AP回应测量开始应答报文, 报文中包含 AG测量用的 IP地址和 UDP端口。  C13. The AG responds to the AP with a measurement start response message, and the packet includes an IP address and a UDP port for the AG measurement.
C2、 通过在 C1步骤中建立的测量连接中传输 IP层上层报文, 在本实施例 中所述 IP层上层报文为 UDP报文, 测量发起端 AP与测量响应端 AG执行测量, 包括:  C2: The IP layer upper layer packet is transmitted in the measurement connection established in the step C1. In the embodiment, the IP layer upper layer packet is a UDP packet, and the measurement initiator AP and the measurement response end AG perform measurement, including:
C21、 AP向 AG发送附带有对应于该测量请求报文的序列号 SN ( Sequence Number ) 的测量请求报文, 并记录发送测量请求报文的本地时间 T1和 SN。 应 当理解的是, 该测量请求报文中还可以包含本地时间 Tl。  C21. The AP sends a measurement request message with a sequence number SN (Sequence Number) corresponding to the measurement request message to the AG, and records the local time T1 and SN of the measurement request message. It should be understood that the measurement request message may also include a local time T1.
其中, 序列号 SN的初始值为 1 , 即 ΑΡ向 AG发送的第一个测量请求报文所 对应的序列号 SN为 1 ,每次发送一个测量请求报文后, SN都会在原来的数目上 递增 1。 AP记录下 T1和 SN, 且记录 T1和 SN与发送测量请求报文的先后顺序可 以不固定, 也可以认为先发送测量请求报文, 后记录 T1和 SN。 在一组测量流 量模型中, 所发送的测量请求报文的数目可以根据实际情况设定, 可以是 AP 将设定数目的测量请求报文全部发送给 AG, 发送全部测量请求报文所用的时 间不受限制; 也可以由设定所述测量流量模型的测量时间来决定,在所述测量 时间内 AP发送测量请求报文给 AG。 在本实施例中釆用后者, 即 AP与 AG在建 立测量连接过程中设定时间, 在设定的时间内 AP发送测量请求报文到 AG。  The initial value of the sequence number SN is 1, that is, the sequence number SN corresponding to the first measurement request message sent to the AG is 1, and each time a measurement request message is sent, the SN will be in the original number. Increase by 1. The AP records the T1 and the SN, and records the sequence of the T1 and SN and the measurement request packets. The sequence of the T1 and the SN is not fixed. In a set of measurement traffic models, the number of measurement request packets sent may be set according to actual conditions, and may be the time used by the AP to send all the measurement request packets to the AG and send all measurement request packets. It is not limited; it can also be determined by setting the measurement time of the measurement flow model, in which the AP sends a measurement request message to the AG. In the embodiment, the latter is used, that is, the AP and the AG set the time during the establishment of the measurement connection, and the AP sends a measurement request message to the AG within the set time.
C22、 AG接收测量请求报文, 并记录接收到测量请求报文的本地时间 T2, 测量请求报文中序列号 SN, 统计接收到的测量请求报文的个数, 即统计收到 的 SN的个数, 以计算上行丟包率; 当测量请求报文中还包含 AP发送该测量请 求报文的本地时间 T1时, AG还记录该本地时间 T1 , 以根据 Tl、 Τ2计算上行时 延或上行单向抖动。 C22. The AG receives the measurement request message, records the local time T2 of the measurement request message, and measures the sequence number SN in the request message, and counts the number of received measurement request messages, that is, the received SN. The number is calculated to calculate the uplink packet loss rate. When the measurement request message further includes the local time T1 at which the AP sends the measurement request message, the AG also records the local time T1 to calculate the uplink time according to T1 and Τ2. Delay or uplink unidirectional jitter.
C23、 AG向 AP发送测量应答报文, 该测量应答报文包含有 AG接收到该测 量请求报文的时间 T2、 发送该测量应答报文时的本地时间 T3及从测量请求报 文中获取的序列号 SN;应当理解的是, 当所需获得的 QoS指标仅包括往返时延 和 /或丟包率时, 该测量应答 ^文中可以不包含 AG接收到该测量请求 ^文的时 间 T2和发送该测量应答 4艮文时的本地时间 T3。  C23. The AG sends a measurement response message to the AP, where the measurement response message includes the time T2 when the AG receives the measurement request message, the local time T3 when the measurement response message is sent, and the information obtained from the measurement request message. The serial number SN; it should be understood that when the required QoS indicator includes only the round-trip delay and/or the packet loss rate, the measurement response may not include the time T2 and the time at which the AG receives the measurement request. This measurement responds to the local time T3 at 4 艮.
C24、 AP接收测量应答 ^艮文, 记录收到该测量应答报文的本地时间 T4, 并 根据该测量应答报文中的序列号 SN匹配对应的测量请求 4艮文。  C24. The AP receives the measurement response message, records the local time T4 of the measurement response message, and matches the corresponding measurement request according to the sequence number SN in the measurement response message.
当流量模型不同时, AP所发送的测量请求报文的速率是不同的, AG发送 的测量应答报文的速率也不同。 流量模型包括一组时, 执行完步骤 C24, 即完 成了执行测量的过程。 而流量模型包括多组时, 步骤 C21至步骤 C24是完成测 量一个测量流量模型阶段。对于已确定的待测测量模型, 釆用由低到高的顺序 对测量模型逐一测量。 即先测量 1Mbps测量模型,执行步骤 C21至 C24, 再测量 2Mbps测量模型, 重复执行 C21至 C24, 如此类推。每种测量模型的测量所用的 时间是可以配置的, 即每种测量模型需在规定的时间内完成测量。 当完成所有 已确定的待测的测量模型, 即完成了 AP与 AG之间的执行测量过程。  When the traffic models are different, the rate of measurement request packets sent by the AP is different. The rate of measurement response packets sent by the AG is also different. When the flow model includes one set, after performing step C24, the process of performing the measurement is completed. When the flow model includes multiple groups, step C21 to step C24 are to complete the measurement of a measurement flow model phase. For the determined measurement models to be tested, the measurement models are measured one by one in descending order. That is, first measure the 1Mbps measurement model, perform steps C21 to C24, measure the 2Mbps measurement model, repeat C21 to C24, and so on. The time taken for the measurement of each measurement model is configurable, ie each measurement model needs to be measured within the specified time. When all the determined measurement models to be tested are completed, the execution measurement process between the AP and the AG is completed.
C3、 测量发起端 AP向测量响应端 AG发送测量结束请求报文, 关闭 AP与 AG之间的测量连接, 包括:  C3. The measurement initiator AP sends a measurement end request message to the measurement response end AG, and closes the measurement connection between the AP and the AG, including:
C31、 完成对测量模型的测量, AP向 AG发送测量结束请求报文。  C31. The measurement of the measurement model is completed, and the AP sends a measurement end request message to the AG.
C32、 AG接收测量结束请求报文, 关闭测量用的 UDP端口。  C32. The AG receives the measurement end request message and closes the UDP port for measurement.
测量响应端 AG也可以根据 C2步骤中记录的结果, 计算出上行的 QoS能力 指标, 步骤 C3还可以包括:  The measurement response end AG can also calculate the uplink QoS capability indicator according to the result recorded in the step C2. Step C3 can also include:
C33、 AG向 AP发送测量结束应答报文, 该测量结束应答报文中可以包含 AG计算的上行丟包率、 上行单向抖动、 上行时延等 QoS指标中的任意一种或 多种的组合。 应当理解的是, 在传输时延允许的情况下, 所获得的 QoS指标也 可以通过 C23中的测量应答 "^文发送。  C33: The AG sends a measurement end response message to the AP, where the measurement end response message may include any one or more combinations of QoS indicators such as uplink packet loss rate, uplink unidirectional jitter, and uplink delay calculated by the AG. . It should be understood that, in the case where the transmission delay is allowed, the obtained QoS indicator can also be transmitted through the measurement response in C23.
C4、 测量发起端 AP根据 C2步骤中测量的结果, 计算出 IP传输网的 QoS的 能力。 可以理解的是, 步骤 C4也可以在步骤 C3之前执行。 其中, 计算 IP传输网的 QoS能力的过程, 参见图 5 , 其中, 测量发起端可以 是 AP、 用户端其它设备如用户主机或者 AG等; 测量响应端可以是 AG, 服务 器、 路由器, 也可以是 AP等。 图中 T1为测量发起端发送测量请求报文的本地 时间、 T2为测量响应端接收到所述测量请求 ^艮文时的本地时间、 T3为测量响 应端发送测量应答报文时的本地时间、 T4为测量发起端接收到所述测量应答报 文的本地时间。 测量发起端向测量响应端发送测量请求 ^艮文, 该方向是上行方 向; 相应地, 测量响应端向测量发起端发送测量应答 ^艮文的方向是下行方向。 C4. The measurement initiator AP calculates the QoS capability of the IP transmission network according to the measurement result in the C2 step. It can be understood that step C4 can also be performed before step C3. The process of calculating the QoS capability of the IP transport network is as shown in FIG. 5 , wherein the measurement initiator can be an AP, other devices on the client, such as a user host or an AG, and the measurement response end can be an AG, a server, a router, or AP and so on. In the figure, T1 is the local time when the measurement initiator sends the measurement request message, T2 is the local time when the measurement response end receives the measurement request message, and T3 is the local time when the measurement response end sends the measurement response message. T4 is the local time at which the measurement initiator receives the measurement response message. The measurement initiator sends a measurement request to the measurement response end, and the direction is an uplink direction. Correspondingly, the direction in which the measurement response end sends the measurement response to the measurement initiator is a downlink direction.
在本发明实施例中, IP传输网 QoS的指标可以包括但不限于实施例二中所 列的指标, 如果不需要很详细的能力报告, 可以考虑计算 QoS指标的一种或几 种,具体包括哪些 QoS指标, 由系统设置决定。应当理解的是, 当所测量的 QoS 指标仅包括丟包率时, 发送和 /或接收测量请求报文和 /或测量应答报文的本地 时间可以不进行传送和记录。  In the embodiment of the present invention, the QoS indicator of the IP transport network may include, but is not limited to, the indicators listed in the second embodiment. If a detailed report of the capability is not required, one or more of the QoS indicators may be considered, including Which QoS indicators are determined by the system settings. It should be understood that when the measured QoS indicator includes only the packet loss rate, the local time of transmitting and/or receiving the measurement request message and/or the measurement response message may not be transmitted and recorded.
QoS的指标的计算方法如下:  The QoS indicators are calculated as follows:
( 1 )、往返时延: 往返时延是指测量发起端从发送测量请求报文到接收到 对应的测量应答报文之间的时间差。 它的值为 T4减去 Tl。  (1) Round-trip delay: The round-trip delay refers to the time difference between the measurement initiator from sending a measurement request message to receiving a corresponding measurement response message. Its value is T4 minus Tl.
( 2 )、 上行单向抖动: 抖动就是时延的变化。 某一个报文的 Τ2减去 T1的 时间差作为第一上行时间差 SI , S1也可以定义为上行时延, 另一个 4艮文的 Τ2 减去 T1的时间差作为第二上行时间差 S2 , S2减去 S1的差就是上行单向抖动。  (2), uplink one-way jitter: jitter is the change of delay. The time difference of Τ2 of a certain message minus T1 is taken as the first uplink time difference SI, S1 can also be defined as the uplink delay, and the time difference of Τ2 of the other 4艮 minus T1 is taken as the second uplink time difference S2, S2 minus S1 The difference is the upstream one-way jitter.
( 3 )、 下行单向抖动: 某一个报文的 Τ4减去 Τ3的时间差作为第一下行时 间差 W1 , 即下行时延, 另一个 4艮文的 Τ4减去 Τ3的时间差作为第二下行时间差 (3) Downward one-way jitter: The time difference of Τ4 minus Τ3 of a certain message is taken as the first downlink time difference W1, that is, the downlink delay, and the time difference of 另一个4 minus Τ3 of the other 4艮 is taken as the second downlink time difference.
W2, W2减去 W1的差就是下行单向抖动。 The difference between W2 and W2 minus W1 is the downlink one-way jitter.
( 4 )、丟包率的测量:丟包率就是丟失报文数目和请求报文数目的百分比, 丟包率包括单向丟包率和双向丟包率,其中单向丟包率包括上行丟包率和下行 丟包率。 测量发起端向测量响应端发送带有序列号 SN的测量请求报文, 所发 送的第一个测量请求报文的序列号为 1 , 每发送一个报文, 该报文中所附带的 序列号加 1 , 测量响应端根据丟失的序列号, 统计上行丟包率, 测量发起端根 据丟失的序列号, 统计双向丟包率。 再根据以下的计算公式得到下行丟包率。 公式如下: 下行丟包率 =双向丟包率-上行丟包率 (4) Measurement of packet loss rate: The packet loss rate is the percentage of lost packets and the number of request packets. The packet loss rate includes one-way packet loss rate and two-way packet loss rate. The one-way packet loss rate includes uplink loss. Packet rate and downlink packet loss rate. The measurement initiator sends a measurement request message with a sequence number SN to the measurement response end, and the sequence number of the first measurement request message sent is 1, and each time a message is sent, the serial number attached to the message Add 1 , the measurement response end counts the uplink packet loss rate according to the lost sequence number, and the measurement initiator counts the two-way packet loss rate according to the lost sequence number. Then, the downlink packet loss rate is obtained according to the following calculation formula. The formula is as follows: Downlink packet loss rate = two-way packet loss rate - uplink packet loss rate
应当理解的是, 以上对 IP传输网 QoS的指标的说明中, 所述的 QoS指标是 针对一组测量流量模型而言, 对于有多组测量流量模型的 IP传输网 QoS能力的 测量, 可以将每组测量流量模型在 IP传输网的 QoS能力分别计算出来, 用来了 解该 IP传输网在各种流量模型下的 QoS能力。  It should be understood that, in the foregoing description of the metric of the IP transmission network QoS, the QoS indicator is for a set of measurement traffic models, and for the measurement of the QoS capability of the IP transmission network having multiple sets of measurement traffic models, The QoS capabilities of each set of measurement traffic models in the IP transport network are calculated separately to understand the QoS capabilities of the IP transport network under various traffic models.
在本发明实施例三提供的测量 IP传输网 QoS能力的方法,实现了在 AP组网 中的 IP传输网的 QoS的测量。 应该理解的是, 该方法也可以用于其他通信设备 间的 IP传输网的 QoS能力的测量。 通过本发明实施例提供的方法, 釆用 IP层上 层才艮文分组中的 UDP分组作为测量分组, 执行测量, 记录和接收测量数据, 根 据获得的测量数据计算 QoS能力。 实施例三提供了 IP传输网更为准确的 QoS能 力, 同时提供了更普遍适用的测量方法。  The method for measuring the QoS capability of the IP transport network provided in Embodiment 3 of the present invention implements the measurement of the QoS of the IP transport network in the AP networking. It should be understood that the method can also be used for the measurement of QoS capabilities of IP transport networks between other communication devices. Through the method provided by the embodiment of the present invention, the UDP packet in the upper layer of the IP layer is used as the measurement packet, the measurement is performed, the measurement data is recorded and received, and the QoS capability is calculated according to the obtained measurement data. The third embodiment provides a more accurate QoS capability of the IP transmission network, while providing a more general measurement method.
以上是对本发明实施例提供的方法的描述,下面介绍本发明实施例中的测 量装置, 本发明实施例四提供了一种测量装置, 参见图 6, 具体包括:  The foregoing is a description of the method provided by the embodiment of the present invention. The following describes the measuring device in the embodiment of the present invention. The fourth embodiment of the present invention provides a measuring device. Referring to FIG. 6, the following specifically includes:
建立测量连接单元 10, 用于与测量对端装置建立测量连接;  Establishing a measuring connection unit 10 for establishing a measurement connection with the measuring opposite device;
测量单元 20, 用于通过所述测量连接上传输的 IP层上层报文执行测量; 计算单元 30, 用于根据所述测量单元的测量结果, 计算 IP传输网 QoS指 标。  The measuring unit 20 is configured to perform measurement by using an IP layer upper layer message transmitted on the measurement connection; and the calculating unit 30 is configured to calculate an IP transmission network QoS indicator according to the measurement result of the measurement unit.
可以理解的是,上述测量装置在实际应用中既可以为测量发起端也可以为 测量响应端,下面结合实施例子具体对该装置作为测量发起端以及测量响应端 的情况进行说明。  It can be understood that the above measuring device can be either a measurement initiator or a measurement response terminal in practical applications. The following describes the device as a measurement initiator and a measurement response terminal in combination with an embodiment.
实施例五, 一种测量 IP传输网 QoS能力的测量发起装置。 参见图 7 , 包括 以下单元: 第一建立测量连接单元 71、 第一测量单元 72和第一计算单元 74。  Embodiment 5 is a measurement initiation apparatus for measuring QoS capability of an IP transmission network. Referring to Fig. 7, the following units are included: First, the measurement connection unit 71, the first measurement unit 72, and the first calculation unit 74 are established.
第一建立测量连接单元 71 , 用于建立与测量响应装置的测量连接, 具体 包括发送测量开始请求报文,该测量开始请求报文中包括测量发起装置的测量 建立信息, 其中, 所述测量建立信息包括测量连接信息, 所述测量建立信息还 可以包括测量流量模型的信息; 接收测量响应装置发送的测量开始应答报文, 该测量开始应答"¾文中包括测量响应装置的测量建立信息, 其中, 所述测量建 立信息包括测量连接信息, 所述测量建立信息还可以包括测量流量模型信息; 并根据所接收到的测量开始应答报文, 建立与测量响应装置的测量连接。 测量 开始请求报文和测量开始应答报文可以釆用 TCP报文、 UDP报文、 SCTP报 文或者 Ping报文格式。 The first establishing measurement connection unit 71 is configured to establish a measurement connection with the measurement response device, and specifically includes: sending a measurement start request message, where the measurement start request message includes measurement establishment information of the measurement initiation device, where the measurement establishment is The information includes measurement connection information, and the measurement establishment information may further include: information for measuring the flow model; receiving a measurement start response message sent by the measurement response device, where the measurement start response includes a measurement establishment information of the measurement response device, where The measurement is built The information includes measurement connection information, and the measurement establishment information may further include measuring traffic model information; and establishing a measurement connection with the measurement response device according to the received measurement start response message. The measurement start request message and the measurement start response message may be in the form of a TCP message, a UDP message, an SCTP message, or a ping message format.
该测量发起装置还可以包括流量控制单元 75 , 用于根据第一建立测量连 接单元 71确定的测量流量模型信息,控制第一测量单元 72对测量流量模型的 测量。  The measurement initiating device may further include a flow control unit 75 for controlling the measurement of the measured flow model by the first measuring unit 72 according to the measured flow model information determined by the first established measurement connection unit 71.
在第一建立测量连接单元 71完成测量连接后,流量控制单元 75获取第一建 立测量连接单元 71中确定的测量建立信息中的测量流量模型信息, 其中, 测量 流量模型可以是一组, 也可以是多组。 当测量流量模型为多组时, 流量控制单 元 75可以根据第一建立测量连接单元 71中的测量流量模型信息控制测量单元 按顺序对测量流量模型进行测量, 完成对一组测量模型的测量,按照所述的顺 序对下一个测量流量模型执行测量。其中, 所述的顺序是第一建立测量连接单 元 71获取的测量流量模型信息中所记录的。  After the first measurement connection unit 71 completes the measurement connection, the flow control unit 75 acquires the measurement flow model information in the measurement establishment information determined in the first establishment measurement connection unit 71, where the measurement flow model may be a group or It is multiple groups. When the measurement flow model is a plurality of groups, the flow control unit 75 may control the measurement unit to measure the measurement flow model in sequence according to the measurement flow model information in the first established measurement connection unit 71, and complete measurement of a set of measurement models, according to The sequence described performs measurements on the next measured flow model. The sequence is recorded in the measurement traffic model information acquired by the first establishing measurement connection unit 71.
下面是对第一测量单元 72执行一组测量流量模型测量的描述。  The following is a description of performing a set of measurement flow model measurements on the first measurement unit 72.
第一测量单元 72 , 用于与测量响应装置建立测量连接后, 执行测量发起装 置与测量响应装置之间的测量;在执行测量中使用到的报文包括测量请求报文 和测量应答报文; 测量请求报文和测量应答报文为 IP层上层报文, 包括 TCP报 文、 UDP报文或者 SCTP报文格式。 第一测量单元 72包括: 记录单元 821、 序列 号管理单元 822、 统计单元 823、 发送单元 825、 接收单元 826, 参见图 8。  a first measurement unit 72, configured to perform measurement between the measurement initiation device and the measurement response device after establishing a measurement connection with the measurement response device; the message used in performing the measurement includes a measurement request message and a measurement response message; The measurement request packet and the measurement response packet are the IP layer upper layer packets, including the TCP packet, the UDP packet, or the SCTP packet format. The first measuring unit 72 includes: a recording unit 821, a serial number management unit 822, a statistical unit 823, a transmitting unit 825, and a receiving unit 826, see Fig. 8.
第一测量单元 72中的记录单元 821用于记录发送测量请求 ^艮文的本地时间 T1 , 同时序列号管理单元 822用于记录所发送的测量请求报文的序列号 SN, 将 SN 添加到测量请求报文中发送给测量响应装置。 其中, 序列号管理单元 822 在测量发起装置每次发送测量请求 ^艮文后递增 SN值, 例如: 在第一次发送测 量请求 ^艮文时的序列号 SN为 1 , 第二次发送测量请求 ^文时的序列号 SN为 2 , 依此类推。 发送单元 825用于发送测量请求报文, 该测量请求报文中包含有对 应于该测量请求^艮文的序列号 SN, 还可以包含发送该测量请求 ^艮文的本地时 间 Tl。 其中, 当有测量流量模型需要测量时, 发送单元 825发送的测量请求报文 的序列号 SN的最大值可以由第一建立测量连接单元 71中测量建立信息决定。 比如, 发送单元 825发送的测量请求 "^文的序列号 SN的最大值可以由第一建立 测量连接单元 71中测量建立信息中的测量流量模型信息决定,所述测量连接信 息和所述测量流量模型信息中可以包含一组或每组测量流量模型中发送测量 请求报文的数目, 也可以设定一组或每组测量流量模型的测量时间,在设定时 间内, 发送单元 825以设定的速率发送测量请求报文, 发送测量请求报文的数 目为在设定的执行的测量流量模型的时间内发送测量请求报文的数目。应当理 解的是,发送单元 825发送的测量请求报文的序列号 SN的最大值也可以由第一 建立测量连接单元 71中测量建立信息中的测量连接信息决定。 The recording unit 821 in the first measuring unit 72 is configured to record the local time T1 of the transmission measurement request message, and the serial number management unit 822 is configured to record the serial number SN of the transmitted measurement request message, and add the SN to the measurement. The request message is sent to the measurement response device. The serial number management unit 822 increments the SN value every time the measurement initiating device sends the measurement request message, for example: the sequence number SN when the measurement request is sent for the first time is 1, and the measurement request is sent for the second time. ^ The serial number SN of the text is 2, and so on. The sending unit 825 is configured to send a measurement request message, where the measurement request message includes a sequence number SN corresponding to the measurement request, and may also include a local time T1 for transmitting the measurement request message. The maximum value of the sequence number SN of the measurement request message sent by the sending unit 825 may be determined by the measurement establishment information in the first established measurement connection unit 71 when the measurement flow model needs to be measured. For example, the maximum value of the sequence number SN of the measurement request sent by the sending unit 825 may be determined by the measurement traffic model information in the measurement establishment information in the first establishment measurement connection unit 71, the measurement connection information and the measurement flow. The model information may include the number of measurement request messages sent in one or each set of measurement traffic models, or may set the measurement time of one or each set of measurement traffic models, and the sending unit 825 sets the set time within the set time. The rate sends a measurement request message, and the number of the measurement request message is the number of measurement request messages sent within the set time of the executed measurement traffic model. It should be understood that the measurement request message sent by the sending unit 825 The maximum value of the serial number SN can also be determined by the measurement connection information in the measurement establishment information in the first establishment measurement connection unit 71.
当第一测量单元 72中接收单元 826接收到对应测量请求报文的测量应答报 文时, 接收单元 826同时也可以获取测量应答报文中含有测量响应装置接收到 测量请求报文的时间 T2、 发送测量应答报文时的本地时间 Τ3 ; 记录单元 721还 用于记录接收到测量应答报文的本地时间 Τ4, 统计单元 823用于根据接收到的 测量应答报文中的序列号 SN匹配对应的测量请求报文的 SN , 统计测量应答报 文的数目。  When the receiving unit 826 of the first measurement unit 72 receives the measurement response message corresponding to the measurement request message, the receiving unit 826 can also acquire the time T2 of the measurement response message that the measurement response device receives the measurement request message. The local time Τ3 when the measurement response message is sent; the recording unit 721 is further configured to record the local time Τ4 of the measurement response message received, and the statistic unit 823 is configured to match the corresponding sequence number SN according to the received measurement response message. Measure the SN of the request message and count the number of response packets.
第一计算单元 74用于在第一测量单元 72完成测量后, 从第一测量单元 72 获取测量结果, 计算 QoS的能力指标; 其中, 所获取的测量结果包括: Tl、 Τ2、 Τ3、 Τ4和统计出的测量应答报文数目, 所计算的 QoS指标包括双向时延、 单向 时延、 单向时延抖动和双向丟包率中的任意一种或几种。  The first calculating unit 74 is configured to: after the first measurement unit 72 completes the measurement, acquire the measurement result from the first measurement unit 72, and calculate a capability indicator of the QoS; wherein the acquired measurement result includes: T1, Τ2, Τ3, Τ4, and The number of measured response packets is calculated. The calculated QoS indicators include any one or more of two-way delay, one-way delay, one-way delay jitter, and two-way packet loss rate.
以上描述是第一测量单元 72执行一组测量流量模型测量的过程,如果测量 建立信息中测量流量模型为多组时,流量控制单元 75按照测量建立信息中记录 的对测量流量模型的测量先后顺序,指示第一测量单元 72对下一组流量模型进 行测量。 第一计算单元 74根据所述下一组流量模型的测量结果, 计算该组流量 模型的 QoS能力指标。 所述 IP传输网的 QoS能力指标由多组流量模型的 QoS能 力指标组成。应当理解的是,如果测量建立信息中只包含一组测量流量模型时, IP传输网的 QoS能力指标由该组测量流量模型的 QoS能力指标组成。  The above description is a process in which the first measurement unit 72 performs a set of measurement flow model measurement. If the measurement flow model in the measurement establishment information is a plurality of groups, the flow control unit 75 follows the measurement sequence of the measurement flow model recorded in the measurement establishment information. Instructing the first measurement unit 72 to measure the next set of flow models. The first calculating unit 74 calculates a QoS capability indicator of the set of traffic models according to the measurement result of the next set of traffic models. The QoS capability indicator of the IP transport network is composed of QoS capability indicators of multiple sets of traffic models. It should be understood that if the measurement establishment information includes only one set of measurement traffic models, the QoS capability indicator of the IP transmission network is composed of the QoS capability indicators of the group of measurement traffic models.
测量发起装置还包括第一关闭测量连接单元 73,第一关闭测量连接单元 73 用于在第一测量单元 72完成测量后,关闭第一建立测量连接单元 71建立的测量 连接。 The measurement initiating device further includes a first off measurement connection unit 73, and the first off measurement connection unit 73 For closing the measurement connection established by the first established measurement connection unit 71 after the first measurement unit 72 completes the measurement.
应当理解的是, 当所测量的 QoS指标仅包括丟包率时,发送和 /或接收测量 请求报文和 /或测量应答报文的本地时间可以不进行传送和记录。  It should be understood that when the measured QoS indicator includes only the packet loss rate, the local time for transmitting and/or receiving the measurement request message and/or the measurement response message may not be transmitted and recorded.
本发明实施例五提供的一种测量 IP传输网 QoS能力的测量发起装置, 此装 置可以是具有以上所描述功能模块的通信设备, 如接入点 AP、 用户主机、 接 入网关 AG等。  A measurement initiation apparatus for measuring QoS capability of an IP transmission network according to Embodiment 5 of the present invention, the apparatus may be a communication device having the function modules described above, such as an access point AP, a user host, an access gateway AG, and the like.
釆用实施例五提供的一种测量 IP传输网 QoS能力的测量发起装置, 此装置 釆用 TCP、 UDP或者 SCTP报文与测量响应装置执行测量, 有效的避免釆用 ICMP Ping方法中路由器对 Ping报文优先级低的缺点, 提高了测量准确度; 其次, 还可以具有关闭测量连接的功能, 保证了测量目标系统的安全, 不 容易被攻击。  A measurement initiating apparatus for measuring the QoS capability of an IP transport network provided by Embodiment 5, wherein the apparatus performs measurement by using a TCP, UDP or SCTP message and a measurement response apparatus, thereby effectively avoiding the router to ping in the ICMP Ping method. The shortcoming of low priority of the message improves the measurement accuracy. Secondly, it can also have the function of closing the measurement connection, ensuring the safety of the measurement target system and not being easily attacked.
本发明实施例六还提供了一种测量 IP传输网 QoS的测量响应装置, 参见图 9, 该测量响应装置包括第二建立测量连接单元 91和第二测量单元 92。  Embodiment 6 of the present invention further provides a measurement response device for measuring QoS of an IP transmission network. Referring to FIG. 9, the measurement response device includes a second established measurement connection unit 91 and a second measurement unit 92.
在本实施例中的测响应装置中, 第二建立测量连接单元 91 , 用于建立与测 量发起装置间的测量连接, 具体包括: 接收测量发起装置发送的测量开始请求 报文,发送测量开始应答报文至测量发起装置, 即完成建立测量响应装置与测 量发起装置之间的测量连接;所述的测量开始请求报文和测量开始应答报文可 以釆用 TCP报文、 UDP报文、 SCTP报文或者 Ping报文。  In the measurement response device of the embodiment, the second establishing measurement connection unit 91 is configured to establish a measurement connection with the measurement initiating device, and specifically includes: receiving a measurement start request message sent by the measurement initiating device, and transmitting a measurement start response The message is sent to the measurement initiating device, that is, the measurement connection between the measurement response device and the measurement initiating device is completed; the measurement start request message and the measurement start response message can use TCP packets, UDP packets, and SCTP packets. Text or Ping message.
第二测量单元 92, 用于与测量发起装置建立测量连接后, 执行与测量发起 装置之间的测量; 该测量包括接收测量请求报文, 并发送测量应答报文; 第二 测量单元 92包括第二记录单元 101、 第二发送单元 103和第二接收单元 104, 参 见图 10。第二测量单元 92用于通过第二建立测量连接单元 91建立的测量连接执 行测量, 第二接收单元 104接收测量发起装置发送的测量请求报文, 第二记录 单元 101记录测量响应装置接收到测量请求报文的时间 T2、 发送测量应答报文 时的本地时间 Τ3和测量请求报文中的序列号。其中,测量请求报文和测量应答 报文釆用 IP层的上层报文, IP层的上层报文可以包括 TCP报文、 UDP报文或者 SCTP报文格式。 第二发送单元 103 , 用于发送测量应答 文, 该测量应答 文中包含测量 响应装置接收到测量请求报文的时间 T2、 发送该测量应答报文时的本地时间 T3和所获取的测量请求报文中的序列号 SN。 a second measuring unit 92, configured to perform measurement with the measurement initiating device after establishing a measurement connection with the measurement initiating device; the measuring comprises receiving the measurement request message, and sending the measurement response message; the second measuring unit 92 includes The second recording unit 101, the second transmitting unit 103, and the second receiving unit 104 are shown in FIG. The second measuring unit 92 is configured to perform measurement by the measurement connection established by the second establishing measurement connecting unit 91, the second receiving unit 104 receives the measurement request message sent by the measurement initiating device, and the second recording unit 101 records the measurement response device receiving the measurement. The time T2 of the request message, the local time 发送3 when the measurement response message is sent, and the serial number in the measurement request message. The measurement request message and the measurement response message use the upper layer packet of the IP layer, and the upper layer packet of the IP layer may include a TCP packet, a UDP packet, or an SCTP packet format. The second sending unit 103 is configured to send a measurement response message, where the measurement response message includes a time T2 when the measurement response device receives the measurement request message, a local time T3 when the measurement response message is sent, and the acquired measurement request message. The serial number SN in .
第二测量单元 92还可以包括第二统计单元 102 , 用于统计收到的 SN的个 数。  The second measurement unit 92 may further include a second statistical unit 102 for counting the number of received SNs.
测量响应装置还可以包括第二计算单元 94, 用于在获得第二统计单元 102 的测量结果后, 计算出上行丟包率、 上行单向抖动、 上行时延等 QoS指标中的 任意一种或几种。  The measurement response device may further include a second calculating unit 94, configured to calculate any one of a QoS indicator such as an uplink packet loss rate, an uplink one-way jitter, and an uplink delay after obtaining the measurement result of the second statistical unit 102 or Several.
应当理解的是, 第二测量单元 92中的第二统计单元 102也可以位于第二计 算单元 94中。  It should be understood that the second statistical unit 102 in the second measurement unit 92 may also be located in the second calculation unit 94.
测量响应装置还可以包括第二关闭连接单元 93 ,用于在接收到测量发起装 置发送的测量结束请求报文时, 关闭测量连接,发送测量结束应答报文给测量 发起端;第二关闭连接单元 93所发送的测量结束应答报文中还包括第二计算单 元 94中所获得的 QoS指标。 应当理解的是, 在传输时延允许的情况下, 第二计 算单元 94中所获得的 QoS指标也可以通过测量应答>¾文发送。  The measurement response device may further include a second closed connection unit 93, configured to: when receiving the measurement end request message sent by the measurement initiation device, close the measurement connection, send a measurement end response message to the measurement initiator; and secondly close the connection unit The measurement end response message sent by 93 further includes the QoS indicator obtained in the second calculating unit 94. It should be understood that, in the case where the transmission delay is allowed, the QoS indicator obtained in the second calculation unit 94 can also be transmitted by measuring the response > 3⁄4 text.
应当理解的是, 当所测量的 QoS指标仅包括丟包率时,发送和 /或接收测量 请求报文和 /或测量应答报文的本地时间可以不进行传送和记录。  It should be understood that when the measured QoS indicator includes only the packet loss rate, the local time for transmitting and/or receiving the measurement request message and/or the measurement response message may not be transmitted and recorded.
本发明实施例六提供的一种测量 IP传输网 QoS能力的测量响应装置, 此装 置可以是路由器、 主机、 接入点 AP、 接入网关 AG或者网络服务器。 该装置釆 用 TCP、 UDP或者 SCTP报文与测量发起装置执行测量, 有效的避免釆用 ICMP Ping方法中路由器对 Ping报文优先级低的缺点, 提高了测量准确度;  A measurement response apparatus for measuring QoS capability of an IP transmission network according to Embodiment 6 of the present invention may be a router, a host, an access point AP, an access gateway AG, or a network server. The device performs measurement by using the TCP, UDP or SCTP message and the measurement initiating device, and effectively avoids the disadvantage that the router has low priority of the Ping message in the ICMP Ping method, and improves the measurement accuracy;
其次, 还可以具有关闭测量连接的功能, 保证了测量目标系统的安全, 不 容易被攻击。  Secondly, it can also have the function of closing the measurement connection, ensuring the safety of the measurement target system and not being easily attacked.
本发明实施例七还提供了一种接入点 AP, 该接入点 AP包含有实施例四描 述的测量装置或实施例五中所描述的测量发起装置, 可以理解的是, 该接入点 AP也可以包含实施例六所描述的测量发起装置。  The seventh embodiment of the present invention further provides an access point AP, where the access point AP includes the measurement device described in Embodiment 4 or the measurement initiation device described in Embodiment 5. It can be understood that the access point is The AP may also include the measurement initiating device described in Embodiment 6.
本发明实施例八还提供了一种接入网关 AG, 该接入网关 AG包含了实施例 四中所描述的测量装置,或者实施例七所描述的测量响应装置,可以理解的是, 该接入网关 AG也可以包含实施例六所描述的测量发起装置。 The eighth embodiment of the present invention further provides an access gateway AG, which includes the measurement device described in the fourth embodiment, or the measurement response device described in the seventh embodiment. It can be understood that The access gateway AG may also include the measurement initiating device described in Embodiment 6.
釆用本发明实施例七、 八提供的一种接入点 AP或接入网关 AG, 此 AP或 AG釆用 TCP、 UDP或者 SCTP报文与测量响应装置执行测量, 有效的避免釆用 ICMP Ping方法中路由器对 Ping报文优先级低的缺点, 提高了测量准确度; 其次, 还可以具有关闭测量连接的功能, 保证了测量目标系统的安全, 不 容易被攻击。  An access point AP or an access gateway AG provided by Embodiments 7 and 8 of the present invention, the AP or the AG performs measurement by using TCP, UDP or SCTP packets and the measurement response device, thereby effectively avoiding the use of ICMP Ping. In the method, the router has the disadvantage of lower priority of the ping packet, which improves the measurement accuracy. Secondly, it can also have the function of closing the measurement connection, ensuring the security of the measurement target system and not being easily attacked.
本发明实施例九还提供了一种通信系统,参见图 11 ,包括测量发起装置 111 和测量响应装置 112。 测量发起装置 111与测量响应装置 112之间通过传输 TCP 报文、 UDP报文、 SCTP报文或者 Ping报文建立测量连接, 同样也可以是其他 类型的报文, 此处不作限定; 根据测量发起装置 111和测量响应装置 112建立的 测量连接, 测量发起装置 111与测量响应装置 112通过传输测量用 TCP报文、 UDP报文或者 SCTP报文, 执行测量; 测量发起装置 111和测量响应装置 112根 据执行测量后得到的测量结果, 计算 IP传输网 QoS能力。 该通信系统中的测量 发起装置 111与测量响应装置 112还可以关闭测量发起装置 111与测量响应装置 112建立的测量连接。  Embodiment 9 of the present invention also provides a communication system, see Fig. 11, including a measurement initiating device 111 and a measurement response device 112. The measurement initiation device 111 and the measurement response device 112 establish a measurement connection by transmitting a TCP packet, a UDP packet, an SCTP packet, or a ping packet, and may also be other types of packets, which are not limited herein; The measurement connection established by the device 111 and the measurement response device 112, the measurement initiation device 111 and the measurement response device 112 perform measurement by transmitting a measurement TCP message, a UDP message or an SCTP message; the measurement initiation device 111 and the measurement response device 112 are based on The measurement result obtained after the measurement is performed, and the QoS capability of the IP transmission network is calculated. The measurement initiating device 111 and the measurement response device 112 in the communication system can also close the measurement connection established by the measurement initiating device 111 and the measurement response device 112.
其中, 测量发起装置 111可以为实施例五中所描述的测量发起装置, 测量 响应装置 112可以为实施例六中所描述的测量响应装置。 可以理解的是, 该通 信系统也可以包括接入点 AP和接入网关 AG , 其中接入点 AP作为测量发起端, 接入网关 AG作为测量响应端, 或者,接入网关 AG作为测量发起端,接入点 AP 作为测量响应端。  The measurement initiating device 111 may be the measurement initiating device described in the fifth embodiment, and the measurement response device 112 may be the measurement response device described in the sixth embodiment. It can be understood that the communication system can also include an access point AP and an access gateway AG, wherein the access point AP serves as a measurement initiator, the access gateway AG serves as a measurement response end, or the access gateway AG serves as a measurement initiator. The access point AP acts as a measurement response end.
本发明实施例九提供的一种通信系统, 该系统中测量发起装置 111釆用 TCP, UDP或者 SCTP报文与测量响应装置 112执行测量,有效的避免釆用 ICMP Ping方法中路由器对 Ping报文优先级低的缺点, 提高了测量准确度;  A communication system is provided in Embodiment 9 of the present invention, in which the measurement initiating device 111 performs measurement by using a TCP, UDP or SCTP message and the measurement response device 112, thereby effectively avoiding the use of the router to ping packets in the ICMP Ping method. The disadvantage of low priority improves measurement accuracy;
其次, 还可以具有关闭测量连接的功能, 保证了测量目标系统的安全, 不 容易被攻击。  Secondly, it can also have the function of closing the measurement connection, ensuring the safety of the measurement target system and not being easily attacked.
以上对本发明实施例所提供的一种测量互联网协议传输网服务质量的方 法、 系统和装置进行了详细介绍, 本领域普通技术人员可以理解实现上述实施 例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程 序可以存储于一种计算机可读存储介质中, 该程序在执行时, 包括如下步骤: 建立与测量响应端之间的测量连接; A method, system, and apparatus for measuring the quality of the Internet Protocol transport network service provided by the embodiments of the present invention are described in detail. Those skilled in the art can understand that all or part of the steps in the foregoing method can be implemented through the program. To instruct the relevant hardware to complete, the process described The sequence may be stored in a computer readable storage medium, and when executed, the program includes the following steps: establishing a measurement connection with the measurement response end;
根据所述测量连接, 通过传输的 IP层上层报文, 执行与所述测量响应端 之间的测量;  Performing, according to the measurement connection, a measurement between the measurement response end and the measurement layer by transmitting an upper layer IP packet;
根据所述测量的结果计算 IP传输网 QoS指标。  Calculating an IP transport network QoS indicator based on the measured result.
该程序还可以执行本发明方法实施例所描述的测量方法。  The program can also perform the measurement methods described in the method embodiments of the present invention.
上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时, 对于本领域的一般技术人员,依据本发明的思想, 在具体实施方式及应用范围 上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。  The above-mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like. It is to be noted that the description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in specific embodiments and applications. In the above, the contents of this specification are not to be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种测量互联网协议传输网服务质量的方法, 其特征在于, 包括: 建立与测量响应端之间的测量连接;  A method for measuring quality of service of an internet protocol transmission network, comprising: establishing a measurement connection between a measurement response end;
基于所建立的测量连接, 执行与所述测量响应端之间的测量, 执行测量所 传输的测量请求报文和测量应答报文为互联网协议层上层报文;  And performing, according to the established measurement connection, performing measurement with the measurement response end, and performing measurement on the measured measurement request message and the measurement response message as an upper layer protocol of the Internet Protocol layer;
根据所述测量的结果获得互联网协议传输网服务质量指标。  According to the result of the measurement, an Internet Protocol transmission network service quality indicator is obtained.
2、 如权利要求 1所述测量互联网协议传输网服务质量的方法, 其特征在 于, 所述互联网协议层上层报文为传输控制协议报文, 用户数据报协议报文, 或者流控制传输协议报文三者中的任意一种。  2. The method for measuring the quality of service of an internet protocol transmission network according to claim 1, wherein the upper layer packet of the Internet Protocol layer is a transmission control protocol packet, a user datagram protocol packet, or a flow control transmission protocol packet. Any one of the three.
3、 如权利要求 1所述测量互联网协议传输网服务质量的方法, 其特征在 于, 所述基于所建立的测量连接, 执行与所述测量响应端之间的测量包括: 记录发送测量请求报文的本地时间 T1以及序列号;  The method for measuring the quality of service of the Internet Protocol transport network according to claim 1, wherein the measuring between the performing and the measuring response terminal based on the established measurement connection comprises: recording and transmitting the measurement request message Local time T1 and serial number;
向所述测量响应端发送包含所述序列号的测量请求报文;  Sending a measurement request message including the sequence number to the measurement response end;
接收包含所述序列号的测量请求报文对应的测量应答报文;  Receiving a measurement response message corresponding to the measurement request message that includes the sequence number;
记录接收到所述测量应答 ^艮文的本地时间 T4;  Recording the local time T4 of receiving the measurement response message;
则, 所述根据所述测量的结果获得互联网协议传输网服务质量指标包括: 根据记录的本地时间 T1和本地时间 T4计算传输网的往返时延。  Then, obtaining the Internet Protocol transport network quality of service indicator according to the measured result includes: calculating a round trip delay of the transport network according to the recorded local time T1 and the local time T4.
4、 如权利要求 3所述测量互联网协议传输网服务质量的方法, 其特征在 于,所述基于所建立的测量连接,执行与所述测量响应端之间的测量,还包括: 在每次发送完成测量请求 文后, 递增序列号;  4. The method for measuring quality of service of an internet protocol transmission network according to claim 3, wherein said performing measurement with said measurement response terminal based on said established measurement connection further comprises: transmitting each time After completing the measurement request, the serial number is incremented;
发送包含所述递增后序列号的测量请求报文给所述测量响应端;  Sending a measurement request message including the incremented sequence number to the measurement response end;
接收所述测量响应端发送的测量应答报文;  Receiving a measurement response message sent by the measurement response end;
根据所述测量应答报文中的序列号匹配对应的测量请求报文的序列号,从 而获得到发送的测量请求报文的数目和接收到的测量应答报文的数目;  And determining, according to the sequence number in the measurement response message, the sequence number of the corresponding measurement request message, and obtaining the number of the measurement request message sent and the number of the received measurement response message;
则所述根据所述测量的结果获得互联网协议传输网服务质量指标, 还包 根据所述获得到发送的测量请求报文的数目和接收到的测量应答报文的 数目, 计算传输网的双向丟包率。 Then obtaining the service quality indicator of the Internet Protocol transmission network according to the result of the measurement, and further And calculating a bidirectional packet loss rate of the transmission network according to the number of the measurement request messages obtained and the number of the received measurement response messages.
5、 如权利要求 4所述测量互联网协议传输网服务质量的方法, 其特征在 于,所述基于所建立的测量连接,执行与所述测量响应端之间的测量,还包括: 根据所述接收的包含所述序列号的测量请求报文对应的测量应答报文,获 取所述测量应答报文中包含的所述测量响应端接收到所述测量请求报文的时 间 T2和所述测量响应端发送所述测量应答 ^艮文的时间 T3;  The method for measuring the quality of service of the Internet Protocol transport network according to claim 4, wherein the performing the measurement with the measurement response terminal based on the established measurement connection further comprises: receiving according to the receiving The measurement response message corresponding to the measurement request message of the sequence number is obtained, and the time T2 and the measurement response end of the measurement response message received by the measurement response end included in the measurement response message are obtained. Sending the time T3 of the measurement response message;
则所述根据所述测量的结果获得互联网协议传输网服务质量指标还包括: 根据获取得到的本地时间 T 1、 本地时间 T2、 时间 T3、 时间 T4计算上行 时延、 上行单向抖动、 下行单向抖动、 下行时延其中四项中的任意一项或者多 于一项的任意组合。  The obtaining the Internet Protocol transmission network service quality indicator according to the result of the measurement further includes: calculating an uplink delay, an uplink one-way jitter, and a downlink single according to the obtained local time T1, local time T2, time T3, and time T4. Any combination of four or more of the jitter and downlink delays.
6、 如权利要求 3所述测量互联网协议传输网服务质量的方法, 其特征在 于,所述基于所建立的测量连接,执行与所述测量响应端之间的测量,还包括: 根据所述接收的包含所述序列号的测量请求报文对应的测量应答报文,获 取所述测量应答报文中包含的发送测量请求报文中的本地时间 T1和所述测量 请求报文的序列号, 以及接收到所述测量请求报文的时间 T2, 所述测量请求 文为与所述测量响应端对应的测量请求 文;  The method for measuring the quality of service of the Internet Protocol transport network according to claim 3, wherein the performing the measurement with the measurement response terminal based on the established measurement connection further comprises: receiving according to the receiving And obtaining a measurement response message corresponding to the measurement request message of the sequence number, acquiring a local time T1 in the measurement measurement request message included in the measurement response message, and a sequence number of the measurement request message, and The time T2 when the measurement request message is received, where the measurement request message is a measurement request message corresponding to the measurement response end;
则所述根据所述测量的结果获得互联网协议传输网服务质量指标还包括: 根据所述本地时间 T1和所述测量请求 ^艮文的序列号、 以及时间 T2, 计算 出上行丟包率、上行单向抖动和上行时延三项中的任意一项或者多于一项的任 意组合。  The obtaining the Internet Protocol transmission network service quality indicator according to the result of the measurement further includes: calculating an uplink packet loss rate and an uplink according to the local time T1, the sequence number of the measurement request, and the time T2. Any one of unidirectional jitter and uplink delay or any combination of more than one.
7、 如权利要求 1所述测量互联网协议传输网服务质量的方法, 其特征在 于, 执行与所述测量响应端之间的测量之后, 所述方法还包括:  The method of claim 1, wherein the method further comprises: after performing the measurement with the measurement response end, the method further comprising:
发送测量结束请求报文, 关闭与测量响应端之间的测量连接。  A measurement end request message is sent, and the measurement connection between the measurement response end is closed.
8、 如权利要求 1所述测量互联网协议传输网服务质量的方法, 其特征在 于, 所述建立与测量响应端之间的测量连接, 具体包括:  The method for measuring the quality of service of the Internet Protocol transport network according to claim 1, wherein the establishing and measuring connection between the measuring and the responding end comprises:
发送测量开始请求报文; 接收测量响应端发送的测量开始应答报文; Send a measurement start request message; Receiving a measurement start response message sent by the measurement response end;
根据所述测量开始请求报文和 /或所述测量开始应答报文中的测量建立信 息, 建立测量连接。  A measurement connection is established based on the measurement start request message and/or the measurement establishment information in the measurement start response message.
9、 如权利要求 8所述测量互联网协议传输网服务质量的方法, 其特征在 于, 所述测量建立信息包括测量用连接信息和测量流量模型信息。  9. The method of measuring quality of service of an internet protocol transmission network according to claim 8, wherein the measurement establishment information comprises measurement connection information and measurement traffic model information.
10、 一种测量装置, 其特征在于, 包括:  10. A measuring device, comprising:
建立测量连接单元, 用于与测量对端装置建立测量连接;  Establishing a measurement connection unit for establishing a measurement connection with the measurement peer device;
测量单元, 用于基于所建立的测量连接, 执行与所述测量响应端之间的测 量, 执行测量所传输的测量请求报文和测量应答报文为互联网协议层上层报 文;  a measuring unit, configured to perform measurement between the measurement response end and the measurement response end based on the established measurement connection, and perform measurement to transmit the measurement request message and the measurement response message to be an upper layer protocol of the Internet Protocol layer;
计算单元, 用于根据所述测量的结果计算互联网协议传输网服务质量指 标。  And a calculating unit, configured to calculate an internet protocol transmission network service quality indicator according to the measured result.
11、 如权利要求 10所述的测量装置, 其特征在于, 还包括:  The measuring device according to claim 10, further comprising:
关闭测量连接单元, 用于关闭所述建立测量连接单元建立的测量连接。  The measuring connection unit is closed for closing the measurement connection established by the establishing measurement connection unit.
12、 如权利要求 10所述的测量装置, 其特征在于, 所述测量单元包括: 发送单元, 用于向所述测量响应端发送包含所述序列号的测量请求 4艮文 , 所述测量请求报文包含序列号; The measurement device according to claim 10, wherein the measurement unit comprises: a sending unit, configured to send, to the measurement response end, a measurement request message including the serial number, the measurement request The message contains a serial number;
接收单元, 用于接收包含所述序列号的测量请求报文对应的测量应答报 文;  a receiving unit, configured to receive a measurement response message corresponding to the measurement request message that includes the sequence number;
序列号管理单元, 用于记录测量请求 文序列号, 在每次发送完成测量请 求才艮文后, 递增序列号;  The serial number management unit is configured to record the measurement request text serial number, and increment the serial number after each transmission completes the measurement request;
记录单元, 用于记录发送单元发送所述测量请求报文的本地时间 T1和接 收单元接收到所述测量应答 4艮文的本地时间 T4;  a recording unit, configured to record a local time T1 at which the transmitting unit sends the measurement request message, and a local time T4 at which the receiving unit receives the measurement response message;
则所述计算单元, 具体用于根据记录的本地时间 T1和本地时间 T4计算 传输网的往返时延。  The computing unit is specifically configured to calculate a round-trip delay of the transmission network according to the recorded local time T1 and the local time T4.
13、 如权利要求 12所述的测量装置, 其特征在于, 所述发送单元, 还用 于发送包含递增后序列号的测量请求报文给所述测量响应端; The measuring device according to claim 12, wherein the transmitting unit is further used Sending a measurement request message including an incremented sequence number to the measurement response end;
所述接收单元, 还用于接收所述测量响应端发送的测量应答报文; 则所述测量单元还包括:  The receiving unit is further configured to receive the measurement response message sent by the measurement response end;
统计单元,用于根据所述测量应答报文中的序列号匹配对应的测量请求报 文的序列号, 从而获得到接收到的测量应答报文的数目;  a statistic unit, configured to match a sequence number of the corresponding measurement request message according to the sequence number in the measurement response message, thereby obtaining the number of the received measurement response message;
则所述计算单元, 还用于根据所述获得到接收到的测量应答报文的数目, 计算传输网的双向丟包率。  The computing unit is further configured to calculate a bidirectional packet loss rate of the transmission network according to the obtained number of received measurement response messages.
14、 如权利要求 12所述的测量装置, 其特征在于, 所述建立测量连接单 元还用于确定测量流量模型信息;  The measuring device according to claim 12, wherein the establishing measurement connection unit is further configured to determine measurement traffic model information;
所述测量装置还包括流量控制单元,用于根据所述建立测量连接单元确定 的测量流量模型信息, 控制所述测量单元对测量流量模型的测量。  The measuring device further includes a flow control unit configured to control the measurement of the measured flow model by the measuring unit according to the measured flow model information determined by the establishing the measuring connection unit.
15、 如权利要求 12所述的测量装置, 其特征在于, 所述接收单元还用于 接收测量应答报文,并获取所述测量应答报文中包含的对应于所述发送单元发 送的测量请求报文的序列号以及所述测量对端装置接收到所述测量请求报文 的本地时间 T2和所述测量对端装置发送所述测量应答 ^艮文的本地时间 T3; 所述记录单元,还用于记录接收单元获取的所述测量对端装置接收到所述 测量请求"¾文的本地时间 T2和所述测量对端装置发送所述测量应答 文的本 地时间 T3;  The measurement device according to claim 12, wherein the receiving unit is further configured to receive a measurement response message, and acquire a measurement request that is included in the measurement response message and that is sent by the sending unit. a sequence number of the message, a local time T2 at which the measurement peer device receives the measurement request message, and a local time T3 at which the measurement peer device transmits the measurement response message; the recording unit further The local time T2 for receiving the measurement request by the measurement peer device obtained by the recording receiving unit and the local time T3 when the measurement peer device sends the measurement response message;
所述计算单元, 还用于根据记录单元记录的本地时间 Tl、 本地时间 Τ2、 时间 Τ3、 时间 Τ4计算上行时延, 下行时延, 上行单向抖动, 下行单向抖动四 项中的任意一项或者多于一项的任意组合。  The calculating unit is further configured to calculate, according to the local time T1, the local time Τ2, the time Τ3, and the time 记录4 recorded by the recording unit, any one of the uplink delay, the downlink delay, the uplink unidirectional jitter, and the downlink unidirectional jitter. Item or any combination of more than one item.
16、 如权利要求 10所述的测量装置, 其特征在于, 所述测量单元包括: 第二接收单元,用于接收测量请求报文并获取所述测量请求报文中包含的 序列号;  The measuring device according to claim 10, wherein the measuring unit comprises: a second receiving unit, configured to receive a measurement request message and obtain a sequence number included in the measurement request message;
第二记录单元, 用于记录接收到所述测量请求^艮文的本地时间 Τ2、 第二 接收单元获取的所述测量请求报文的序列号 SN和发送对应于所述测量请求报 文的测量应答 ^艮文的本地时间 Τ 3; 第二发送单元, 用于发送测量应答报文, 所述测量应答报文中包含所述本 地时间 T2、 T3和所述获取的序列号; a second recording unit, configured to record a local time 接收 received by the measurement request, a serial number SN of the measurement request message acquired by the second receiving unit, and a measurement corresponding to the measurement request message The local time of answering the message is Τ 3; a second sending unit, configured to send a measurement response message, where the measurement response message includes the local time T2, T3, and the acquired sequence number;
其中, 所述测量请求报文和所述测量应答报文为互联网协议层上层报文。 The measurement request message and the measurement response message are upper layer messages of the Internet Protocol layer.
17、 一种接入点, 其特征在于, 包括如权利要求 10至 16任意一项所述的 测量装置。 An access point, comprising the measuring device according to any one of claims 10 to 16.
18、 一种接入网关, 其特征在于, 包括如权利要求 10至 16任意一项所述 的测量装置。  An access gateway, comprising the measuring device according to any one of claims 10 to 16.
PCT/CN2009/072659 2008-07-07 2009-07-07 Method and device for measuring quality of service of internet protocol transmission network WO2010003365A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810040651.8 2008-07-07
CNA2008100406518A CN101321092A (en) 2008-07-07 2008-07-07 Method and device for measuring service quality of internet protocol transmission network

Publications (1)

Publication Number Publication Date
WO2010003365A1 true WO2010003365A1 (en) 2010-01-14

Family

ID=40180938

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072659 WO2010003365A1 (en) 2008-07-07 2009-07-07 Method and device for measuring quality of service of internet protocol transmission network

Country Status (2)

Country Link
CN (1) CN101321092A (en)
WO (1) WO2010003365A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202771A (en) * 2014-09-03 2014-12-10 武汉虹信技术服务有限责任公司 Load balancing method of LTE (Long Term Evolution) core network interface large traffic data
CN110061926A (en) * 2019-04-26 2019-07-26 武汉思创易控科技有限公司 A kind of ping method, storage medium, the terminal and server of multiplexing
CN114615178A (en) * 2022-03-16 2022-06-10 北京轻网科技有限公司 Link quality detection method and device

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321092A (en) * 2008-07-07 2008-12-10 上海华为技术有限公司 Method and device for measuring service quality of internet protocol transmission network
CN101877654B (en) * 2009-04-28 2012-04-04 黑龙江大学 TCP packet based active measurement method of IP path
CN102273136B (en) * 2009-09-01 2012-12-26 华为技术有限公司 Method and apparatus for detecting multi-service performance in tunnel
CN101695171B (en) * 2009-10-16 2013-02-27 中兴通讯股份有限公司 Method utilizing stream control transmission protocol to measure network transmission quality and device thereof
CN101848119A (en) * 2010-05-19 2010-09-29 同济大学 High-accuracy network round-trip delay measuring method for eliminating system processing time
WO2011124182A2 (en) * 2011-05-13 2011-10-13 华为技术有限公司 Detection method, device and system of transmission between controller and base station
CN103024326A (en) * 2011-09-22 2013-04-03 中兴通讯股份有限公司 Video backup method and system based on security and protection home gateway
CN102594821B (en) * 2011-11-28 2018-08-17 南京中兴软件有限责任公司 A kind of method and device of processing diameter protocol message
CN106559283A (en) * 2015-09-30 2017-04-05 华为技术有限公司 A kind of network monitoring method, apparatus and system
CN106535302B (en) * 2017-01-06 2019-12-17 湘潭大学 intelligent fast domain-following access method based on terminal characteristic value
CN108923995B (en) * 2017-04-24 2021-04-02 上海大唐移动通信设备有限公司 Method and device for determining transmission delay
WO2019001129A1 (en) * 2017-06-30 2019-01-03 华为技术有限公司 Method, apparatus, and system for measuring transmission performance
CN109218122B (en) * 2017-06-30 2022-04-29 华为技术有限公司 Method, device and system for realizing transmission performance detection
CN107317605A (en) * 2017-07-31 2017-11-03 广东电网有限责任公司电力科学研究院 The communication success rate computational methods and device of a kind of power wire broadband carrier
CN111385822B (en) 2018-12-29 2021-11-09 华为技术有限公司 Configuration method and controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988468A (en) * 2005-12-22 2007-06-27 华为技术有限公司 Method, device and system for monitoring network performance between net elements
CN101056283A (en) * 2007-06-07 2007-10-17 杭州华三通信技术有限公司 Voice gateway and method for providing VoIP service
CN101321092A (en) * 2008-07-07 2008-12-10 上海华为技术有限公司 Method and device for measuring service quality of internet protocol transmission network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988468A (en) * 2005-12-22 2007-06-27 华为技术有限公司 Method, device and system for monitoring network performance between net elements
CN101056283A (en) * 2007-06-07 2007-10-17 杭州华三通信技术有限公司 Voice gateway and method for providing VoIP service
CN101321092A (en) * 2008-07-07 2008-12-10 上海华为技术有限公司 Method and device for measuring service quality of internet protocol transmission network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202771A (en) * 2014-09-03 2014-12-10 武汉虹信技术服务有限责任公司 Load balancing method of LTE (Long Term Evolution) core network interface large traffic data
CN110061926A (en) * 2019-04-26 2019-07-26 武汉思创易控科技有限公司 A kind of ping method, storage medium, the terminal and server of multiplexing
CN114615178A (en) * 2022-03-16 2022-06-10 北京轻网科技有限公司 Link quality detection method and device
CN114615178B (en) * 2022-03-16 2024-02-13 北京轻网科技股份有限公司 Link quality detection method and device

Also Published As

Publication number Publication date
CN101321092A (en) 2008-12-10

Similar Documents

Publication Publication Date Title
WO2010003365A1 (en) Method and device for measuring quality of service of internet protocol transmission network
JP4348124B2 (en) Method and communication device for estimating QoS
JP5864664B2 (en) Method and apparatus for determining communication link quality
JP5808501B2 (en) Method and apparatus for monitoring transmission characteristics in a network
JP2017098962A5 (en)
US8867364B2 (en) Method and apparatus for multi-homing path selection of stream control transmission protocol
US20140297805A1 (en) Method and apparatus for assigning priority levels to streams by a network element in a communications network
TW200835226A (en) Methods and apparatus for determining communication link quality
WO2014139461A1 (en) Method and device for monitoring network performance
TW201524155A (en) A controller for delay measurement, a delay measurement system and a delay measurement method in SDN
TW201141133A (en) Methods and apparatus for monitoring network link quality
JP2009506444A (en) How to test the service performance of a file transfer protocol
WO2009062411A1 (en) Method and device for implementing test
CN101960781B (en) The failture evacuation of the voice deployment based on WLAN
WO2007079630A1 (en) A method and system for testing quality of service qos in next generation network ngn
McGovern et al. Endpoint-based call admission control and resource management for VoWLAN
Kocak et al. Performance measurement of IP networks using two-way active measurement protocol
WO2014117665A1 (en) Link state detection apparatus and working method thereof
JP2014518047A (en) Data packet loss reduction system and method using adaptive transmission queue length
WO2012071851A1 (en) Method and apparatus for adjusting bidirectional forwarding detection transmission interval according to network jitter
WO2007028299A1 (en) A statistic method of the media flow in the next generation netwokr (ngn)
WO2013177894A1 (en) Method for measuring traffic performance indicator and transmission side device
KR100737678B1 (en) Delay analysis method for multimedia streaming services
Sarkar et al. Performance studies on campus-wide focus on ftp, video and VoIP ethernet network
WO2014019487A1 (en) Method, apparatus, and network device for data service experience evaluation

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

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

Country of ref document: EP

Kind code of ref document: A1