WO2007006194A1 - A method and a device of detecting the quality of service in a communication network - Google Patents
A method and a device of detecting the quality of service in a communication network Download PDFInfo
- Publication number
- WO2007006194A1 WO2007006194A1 PCT/CN2006/000968 CN2006000968W WO2007006194A1 WO 2007006194 A1 WO2007006194 A1 WO 2007006194A1 CN 2006000968 W CN2006000968 W CN 2006000968W WO 2007006194 A1 WO2007006194 A1 WO 2007006194A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- detection
- packet
- qos parameter
- qos
- packets
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
- H04L43/55—Testing of service level quality, e.g. simulating service usage
Definitions
- the invention relates to a Qos (Quality Of Service) detection technology in the field of data communication, in particular to a Qos detection between a router, a Layer 3 switch or a Next Generation Network (NGN) device capable of outputting an IP interface in a communication network.
- Qos Quality Of Service
- NTN Next Generation Network
- Qos is used to measure the quality of IP networks, and is generally measured by indicators such as packet loss rate, jitter, delay, error, and out of order. Qos is generally determined by the devices and links on the transmission path. Congestion of routing devices may cause packet loss, delay, and jitter (delay and jitter if there is no congestion); simultaneous transmission of the same session on multiple paths It may cause out-of-order; the transmission link may cause bit errors and packet loss due to interference, signal attenuation, etc.
- IP packets arrive from one device to another device. There are multiple reachable paths.
- the devices use IP routing to determine which IP packets are forwarded to that link.
- a router unless the link or router in the routing direction fails, will cause the route to re-converge and select other routing directions to forward the packet. Otherwise, even if the QoS in the routing direction is poor (if there are a large number of packet loss and error) , and will not reroute to select other IP routes.
- the current data communication network uses Diff-Serv, multi-protocol label switching - virtual private network (MPLS-VPN), virtual local area network Technology such as (VLAN) guarantees the QoS of the network, but it can only do QoS guarantee on the basis of existing resources, and cannot effectively solve the problems of link quality degradation and congestion.
- MPLS-VPN multi-protocol label switching - virtual private network
- VLAN virtual local area network Technology
- Existing data communication networks generally use both ping technology and route tracking (TraceRt) technology to detect and locate faults.
- the Pirig method can detect whether two IP addresses can communicate with each other. When the connection fails, the TraceRt method locates the fault on that router.
- the Ping and TraceRt methods are available on general routers and Layer 3 Ethernet switches and are based on the Internet Control Message Protocol (ICMP) protocol defined by the standard RFC0792.
- ICMP Internet Control Message Protocol
- the general usage method is that when a user finds that a certain network is unreachable, it first uses Ping to detect and then uses TraceRt to locate the fault.
- the prior art has the following disadvantages:
- the object of the present invention is to provide a method and a detection device for detecting Qos in a communication network, which can automatically detect the connectivity and Qos quality of a communication path between any two addresses in a communication network.
- a method for detecting quality of service Qos in a communication network comprising:
- the first end of the two address endpoints in the communication network sends a predetermined number of detection packets to the second end, and the second end returns a corresponding detection response packet after receiving the detection packet;
- the first end determines a Qos parameter between the two addresses according to the received return time and/or return quality of the second end detection response packet.
- the communication network has an active/standby interface and is connected to a third-party interface.
- step A and step B are performed between the primary and secondary interfaces and the third-party interface to detect the primary
- the QoS parameter between the interface and the third-party interface of the backup interface reaches the preset Qos parameter threshold between the interface of the current service interface and the third-party interface, and the interface between the other interface and the third interface
- the master/slave interface is switched.
- the method further comprises: setting a threshold value of the Qos parameter, and triggering an alarm when a Qos parameter between the two address endpoints reaches the threshold.
- the Qos parameter includes any one or a combination of the number of lost packets, the number of errored packets, the transmission delay, the jitter delay, the percentage of packet loss, the average transmission delay, and the average jitter delay.
- the Qos parameter includes the number of lost packets
- the method for determining the number of lost packets between the two address endpoints is: after the first end sends a detection packet, if the detection packet is not received within a predetermined time Corresponding detection response packet, then 'accumulate the number of lost packets.
- the Qos parameter further includes a percentage of packet loss, and the percentage of the packet loss is determined.
- the specific method is: dividing the accumulated number of lost packets by the total number of detected packets sent.
- the Qos parameter includes the number of error packets
- the method for determining the number of error packets between the two address endpoints is: after the first end sends a detection packet, if the detection is received within a predetermined time If the packet corresponding to the detection response packet is detected, it is further detected whether the content of the detection response packet is incorrect. When an error is detected, the number of error packets is accumulated.
- the Qos parameter includes a percentage error
- the specific method for determining the error percentage is: dividing the accumulated number of error packets by the total number of detected packets.
- the Qos parameter includes a transmission delay
- the method for determining a transmission delay between two address endpoints is: after the first end sends a detection packet, if the detection packet corresponding to the detection packet is received within a predetermined time
- the response packet further detects whether the content of the detection response packet is incorrect.
- the time difference from the transmission of the detection packet to the receipt of the corresponding detection response packet is determined as the transmission time of the detection packet. Delay.
- the Qos parameter includes an average transmission delay
- the specific method for determining the average transmission delay is: dividing the total of the determined transmission delays by the total number of correct response packets of the content.
- the Qos parameter includes a jitter delay
- the method for determining a jitter delay between two address endpoints is: after transmitting the detection packet twice, and determining the transmission delay of the two detection packets, The time difference between the transmission delays of the two detection packets is taken as a jitter delay.
- the Qos parameter between the two addresses includes an average jitter delay
- the method for determining an average jitter delay is: dividing the total of the determined jitter delay by the total number of detection response packets with the correct content. .
- whether the content of the detection response packet is incorrect is: detecting whether the content of the media access control layer, the IP protocol layer, and the Internet Control Message Protocol layer of the detection response packet is incorrect.
- the detection period is preset, and the step A and the step A are repeatedly performed in each detection period. Step B.
- the address is an interface address or an IP address.
- the detection packet is a Ping detection packet, an ARP protocol packet, an echo packet, or a link control protocol negotiation packet.
- the path between the two addresses includes at least one routing node, and the method further includes a process for detecting a Qos parameter of each segment, specifically:
- the first end sequentially sends detection packets numbered 1, 2, the source address of each detection packet is a first endpoint, and the destination address is a second endpoint;
- C2 Send a predetermined number of times for each number of detection packets; the routing node that receives the detection packet decrements the number by 1, and determines whether the number is 0, if yes, discards the detection packet, and returns a detection response to the first endpoint. a packet, including the address of the routing node; if the number is not 0, forwarding the detection packet to the next routing node, repeating step C2 until the detection packet reaches the second endpoint, from the second endpoint to the first end Point return detection response packet, including the address of the second endpoint;
- the first endpoint determines a Qos parameter between the first endpoint and each routing node according to the received return time and/or return quality of the detected response packet returned by each routing node.
- the method further includes: setting a threshold value of the Qos parameter, determining whether the Qos parameter between the first endpoint and each routing node reaches a threshold of the Qos parameter, and if so, stopping the pair of segments Detecting the Qos parameter of the path, and positioning the fault point and/or the Qos falling point between the corresponding routing nodes; otherwise, if the detection response packet of the second endpoint is received, determining the path detection between the two address endpoints After completion, the Qos parameter detection for each segment path is stopped.
- a device for detecting Qos in a communication network comprising:
- the detection packet transceiver unit is disposed on the detected endpoint in the communication network, and is configured to send a predetermined number of detection packets to the opposite end interval, return a detection response packet to the opposite end after receiving the detection packet, and receive the same.
- the Qos parameter calculation unit is connected to the detection packet transceiver unit, and determines a Qos parameter between the two detected endpoints according to a return time and/or a return shield amount of the detection response packet of the opposite end received by the detection packet transceiver unit.
- the detecting device further includes an alarm unit, configured to set a threshold value of the Qos parameter, determine whether the Qos parameter determined by the Qos parameter calculation unit reaches the threshold, and if so, trigger an alarm.
- an alarm unit configured to set a threshold value of the Qos parameter, determine whether the Qos parameter determined by the Qos parameter calculation unit reaches the threshold, and if so, trigger an alarm.
- the communication network has a primary and secondary interfaces and is connected to the third interface;
- the detecting device is configured on the primary and secondary interfaces and the third interface, and is configured to detect Qos parameters of the primary and secondary interfaces and the third interface;
- a switching unit configured to be connected to the alarm unit, configured to trigger an alarm when the QoS parameter between the interface currently processing the service and the third interface in the active/standby interface, and the Qos parameter between the other interface and the third interface is not When the alarm is triggered, the active and standby interfaces are switched.
- the Qos detection method and the detection device can automatically detect the faults and QoS values between any two addresses periodically, and can not only detect the on/off status of the network, but also detect the QoS of the network. If the network is faulty or the QoS value exceeds the threshold, you can also perform an alarm. If the active/standby interface is available, you can perform the active/standby switchover based on the fault and the QoS status to protect the service from being affected. Notify the user to maintain and automatically detect the point of failure. In addition, it can automatically detect the Qos from the source IP address to each routing node on the path, and record it as the basis for user fault location and Qos drop positioning.
- the present invention can be applied to a commonly used data communication network without special requirements for devices such as transmission links and routers.
- FIG. 1 is a schematic diagram of a network structure including an active/standby interface in an Ethernet network
- FIG. 3 is a schematic diagram of positioning a routing node fault according to the present invention.
- FIG. 4 is a schematic structural view of a detecting device according to the present invention.
- FIG. 5 is a schematic diagram of a networking structure of the device according to the present invention applied to an Ethernet network including active and standby devices. Mode for Carrying Out the Invention The present invention will be described in detail below by way of specific examples and the accompanying drawings.
- the core technical solution of the present invention is: A method for detecting a quality of service Qos in a communication network, comprising: A. The first end of the two address endpoints in the communication network sends a predetermined number of detection packets to the second end, and the second end After receiving the detection packet, a corresponding detection response packet is returned; B. The first end determines a Qos parameter between the two addresses according to the received return time and/or return quality of the second response detection packet.
- the method of the present invention is suitable for a general IP network, and is particularly suitable for an NGN network, and has no special requirements for devices such as transmission links and routers.
- the Qos detection must be configured with the parameters including the source endpoint address between the detected two-point devices (That is, the first endpoint address) and the destination endpoint address (ie, the second endpoint address, where the address may be an interface address or an IP address), a predetermined number of detection packets sent each time, and each detection packet The waiting response duration, the interval between each detection cycle, and the threshold of the Qos parameter.
- the detection packet may be a Ping detection packet.
- ARP Association can also be used for Ethernet interfaces.
- the protocol packet detects the Qos parameter of the link between the two Layer 3 devices.
- the POS interface can also detect the between the two Layer 3 devices by using the PPP echo (Echo) packet and the PPP Link Control Protocol (LCP) negotiation packet. Qos of the link. If it is a Ping detection packet, the optional parameters configured above are optional parameters of the standard Ping command. In this embodiment, the Ping detection packet is taken as an example for description.
- the Qos parameter includes any combination or one of a packet loss number, a number of error packets, a transmission delay, a jitter delay, a packet loss percentage, an average transmission delay, and an average jitter delay.
- the threshold parameters of the Qos include the number of lost packets, the number of errored packets, the transmission delay, the threshold parameters of the jitter delay, and the threshold parameters of the percentage of packet loss, the threshold parameters of the delay average duration, and the threshold parameters of the jitter average duration. .
- the detection of the network is started periodically, and the time of each detection is also determined.
- the number of packets sent by each test determines the length of the test.
- the detection interval determines the time interval between the two tests.
- the waiting response time of each Ping detection packet is used to determine whether the response packet of the Ping detection packet can be received, that is, the Ping detection response packet.
- FIG. 2 is a flow chart of an embodiment of the method of the present invention. Referring to Figure 2, the process includes:
- Step 201 The first end of the two address endpoints determines whether the time interval of each set detection period is up. If yes, step 202 is performed, otherwise, the process continues.
- Step 202 The first end sends a Ping detection packet (the format of the Ping detection packet complies with the requirements of RFC0792), and records the time of transmission, and determines whether the Ping detection packet is received within a predetermined waiting period of each Ping detection packet.
- the Ping detection response packet (referred to as the response packet), if not, accumulates the number of packet loss, otherwise step 203 is performed.
- Step 203 The first end receives the corresponding response packet within the waiting response time of each Ping detection packet, and detects whether the content of the response packet is correct, and specifically, the content of the MAC layer, the IP protocol layer, and the ICMP protocol layer may be performed. Detect, if not correct, accumulate the number of error packets, ⁇ Otherwise, step 204 is performed;
- Step 204 Determine, according to the time received by the response packet, a time difference from sending the detection packet to receiving the corresponding response packet as a transmission delay of the detection packet; further, detecting the packet every time, and determining the packet After the transmission delay of the two detection packets, the time difference of the transmission delays of the two detection packets is taken as a jitter delay. Accumulate the sum of the transmission delays and the sum of the accumulated jitter delays.
- Step 205 Determine whether the number of sent Ping detection packets is greater than the number of detection detection packets per pre-configuration requirement. If not, return to step 202, otherwise, return to step 201.
- the Qos parameters detected in the above steps can be further calculated to obtain a more optimized Qos parameter, and the calculation formulas of each parameter are as follows:
- Packet loss percentage number of lost packets I total number of detection packets
- Average delay sum of delays I total number of correct response packets
- Average jitter duration sum of jitter durations I Total number of correct response packets.
- the first end may further determine whether the determined Qos parameter reaches the threshold according to a preset threshold of the Qos parameter, and if yes, trigger an alarm.
- the above detection method can be applied to a communication network having an interface of the active and standby interfaces, for example, the communication network shown in FIG. 1.
- the access device has an active/standby interface, that is, a primary Ethernet interface and a backup Ethernet interface, and the active and standby interfaces are active and standby.
- the interfaces are respectively connected to the third-party interfaces of the Layer 3 devices. In this case, you need to configure an IP address for the active and standby interfaces, and use different MAC addresses.
- the Qos detection method described in Figure 2 is automatically run between the active and standby interfaces and the third-party interfaces. Detect the QoS parameter between itself and the connected three-party interface, and use the detection result as the basis for the active/standby switchover.
- the detection result between the active/standby interface and its respective third-party interfaces (such as the number of lost packets, the number of errored packets, the transmission delay, the jitter delay, the percentage of packet loss, the average delay, and the average).
- the jitter duration is recorded, and the Qos threshold parameters (including the packet loss threshold parameter, the error packet number threshold parameter, the transmission delay threshold parameter, the jitter delay threshold parameter, the threshold parameter of the packet loss percentage, and the delay parameter respectively)
- the threshold parameter of the average duration is compared with the threshold parameter of the average duration of the jitter.
- the QoS parameter between the interface of the current processing interface and the third-party interface reaches the preset Qos parameter threshold, the other interface and the third interface are compared.
- the active and standby interfaces are switched. For example, if the active/standby interface fails or the QoS parameters exceed the threshold, the percentage of detected packets is greater than the percentage of packet loss and error packets configured by the user. The average delay of detection and jitter is greater than the delay and jitter configured by the user. Average duration. In an extreme case, if the percentage of the packet loss is 100%, it is determined that an open circuit fault occurs between the corresponding primary interface or the backup interface and the third-party interface, and the primary and secondary interfaces are switched.
- the present invention can also perform Qos detection on paths between non-active and standby interfaces and other interfaces. If the Qos parameter exceeds the threshold, Bay ij automatically alarms.
- the process of performing an active/standby switchover on the primary and backup interfaces, and performing the alarm on the non-active and standby interfaces may include the following steps:
- Step 3 Record the test results in the system: so that the user can query at any time;
- Step 12 When the main or backup interfaces: Interface standby failure or any Qos parameters of each index parameter generating parameters exceed the threshold, 'will carry out service switching or alarms.
- Step 13 If the primary interface of the primary and secondary interfaces is faulty or the parameters of the QoS indicators exceed the threshold, if the backup interface is faulty and the QoS is met, the switchover is performed, and the service of the primary interface is switched to the standby interface. normal.
- Step 14 The main interface of the other non-active or non-active and standby interfaces is faulty or the QoS parameters of the QoS exceed the threshold. The interface is alarmed and recorded.
- the Qos parameters such as packet loss rate, bit error rate, average delay, and average jitter are calculated, and the fault is further judged according to Qos.
- the present invention may also detect the Qos parameter of each segment path, and locate the fault point and the Qos falling point according to the detection result (ie, cause the Qos to decrease) Device or path).
- FIG. 3 is a schematic diagram of positioning a routing node fault according to the present invention.
- the present invention can automatically detect a faulty node on each routing node, that is, a source IP address to a QoS of each Layer 3 data communication device on the path, and use the detection result as a basis for user fault location, on the path.
- Each routing node performs automatic detection to locate the fault point and the device or path that causes the QoS parameters of the QoS to exceed the threshold.
- the steps specifically include:
- Step 31 According to the implementation principle of the Tmcert command, the ping detection packet of the source address IP1, the destination address IP2, and the TTL number 1 is sent from the endpoint of the access device whose address is IP1.
- the router R1 receives the ping detection packet and puts the TTL. The value is decremented by 1. If the TTL value is equal to 0, the packet is discarded, and an Internet Control Management Protocol (ICMP) packet is sent to the source IP1 as the detection response packet. The reason is that the IP packet lifetime is invalid.
- ICMP Internet Control Management Protocol
- TTL is greater than 0, Find the route, send the packet to the router R2; Send the Ping detection packet with the TTL number of 1, 2, in the IP header field in sequence, and the source destination addresses are the same, that is, the source address IP1 and the destination address IP2.
- Step 32 As in the method shown in FIG. 2, for a ping detection packet with a TTL number of 1, the interval is sent a predetermined number of times, and the packet loss rate and error are counted according to the return time and return quality of the received detection response packet. Packet rate, delay, jitter and other parameters, and record each detection result; simultaneously record the IP address of each detection response packet, so that the Qos between the first end (ie, address IP1) and the router R1 can be determined. parameter.
- Step 33 In turn, increase the TTL value by 1 to detect the Qos of the first end and the routers R2 and R3.
- the parameter that is, the detection of the TTL number 2, 3... is sequentially performed according to the method of step 32, and the corresponding Qos parameter is obtained, and further compared with the preset Q 0S parameter threshold, if the Q 0S parameter reaches the preset If the Qos parameter threshold is used, it is determined that a fault or a Qos drop occurs between the first end and the router. For example, if the packet loss rate is 100%, the disconnection fault occurs, and the detection is stopped, indicating that the fault point has been found; When the TTL is greater than n+1, the packet received on the router Rn is forwarded to the access device where the destination IP2 is located. In this case, the correct ping detection response packet is sent to the first end. It is determined that the routing node on the entire path has been detected, and the detection of the segments is stopped.
- the detection response packet may be an ICMP packet whose route hop count exceeds the maximum value, in addition to the ping detection response packet.
- FIG. 4 is a schematic diagram of a device for detecting Qos in a communication network according to the present invention.
- the device includes:
- the detection packet transceiver unit 41 is disposed on the detected endpoint in the communication network, for example, the first end of the address IP1 and the second end of the IP2 address are used to send a predetermined number of detection packets to the peer interval. After receiving the detection packet from the peer end, returning the detection response packet to the opposite end, and receiving the detection response packet returned by the opposite end;
- the Qos parameter calculation unit 42 is connected to the detection packet transceiver unit, and determines the Qos parameter between the two detected endpoints according to the return time and/or the return quality of the detection response packet of the opposite end received by the detection packet transceiver unit 41.
- the detecting device further includes an alarm unit 43 for setting a threshold value of the Qos parameter, determining whether the Qos parameter determined by the Qos parameter calculating unit 42 reaches the threshold value, and triggering an alarm if it is reached.
- FIG. 5 is a schematic diagram of a networking structure of the device according to the present invention applied to an Ethernet including an active and standby device. Referring to FIG.
- the Ethernet access device has a primary and secondary interfaces and is configured with The third-party interface (that is, the interface of the L3) is connected; the detecting device is configured on the primary and secondary interfaces and the third-party interface, and is configured to detect the QoS parameter of the primary and secondary interfaces and the third-party interface; and further includes the switching unit 51, and the The alarm unit is connected, and is configured to trigger an alarm when the QoS parameter is triggered between the interface of the current service interface and the third-party interface, and the QoS parameter is not triggered when the QoS parameter between the other interface and the third-party interface is not triggered.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A method of detecting the quality of service in a communication network includes: A. the first point of the two address points in the communication network transmits the predetermined number of test packets to the second point, after the second point has received the test packets, it returns a corresponding test response packets; B. the first point determines the QoS parameter between of the two address points according to the return time and/or return quality of test response packets received form the second point. A device of detecting the quality of service in a communication network includes: a transceiving unit for transceiving the test packets, and a QoS parameter calculating unit for determining the QoS parameter between of the two address points according to the return time and/or return quality of test response packets of the opposite point. The invention not only automatically detects the onoff fault of the network, but also detects the QoS of the network, and in time switches the master network and the standby network to ensure the service on the rails; and automatically detects and orientates the fault point and the device and line which reduces the QoS to inform user to repair it.
Description
通信网絡中服务质量的检测方法和检测装置 技术领域 Method and device for detecting quality of service in communication network
本发明涉及数据通讯领域中的服务盾量( Qos , Quality Of Service ) 检测技术, 尤其涉及通讯网络中路由器、 三层交换机或者所有能出 IP 接口的下一代网络(NGN )设备之间的 Qos检测方法和检测装置。 发明背景 The invention relates to a Qos (Quality Of Service) detection technology in the field of data communication, in particular to a Qos detection between a router, a Layer 3 switch or a Next Generation Network (NGN) device capable of outputting an IP interface in a communication network. Method and detection device. Background of the invention
在数据通讯领域中, Qos用于衡量 IP网络的质量, 一般用丟包率、 抖动、.延迟、 误码、 乱序等指标衡量。 Qos—般是由传输路径上的设备 和链路决定, 路由设备的拥塞可能会造成丢包、 延迟、 抖动(如果不拥 塞也会有延迟和抖动); 同一个会话在多个路径上同时传输可能会引起 乱序; 传输链路因干扰、 信号衰减等原因会产生误码和丟包。 In the field of data communication, Qos is used to measure the quality of IP networks, and is generally measured by indicators such as packet loss rate, jitter, delay, error, and out of order. Qos is generally determined by the devices and links on the transmission path. Congestion of routing devices may cause packet loss, delay, and jitter (delay and jitter if there is no congestion); simultaneous transmission of the same session on multiple paths It may cause out-of-order; the transmission link may cause bit errors and packet loss due to interference, signal attenuation, etc.
传统数据通讯领域中, 设备之间都是网状连接, IP包从一个设备到 达另外一个设备有多个可达路径, 设备之间通过 IP路由决定 IP包在那 一个链路上被转发到那一个路由器, 除非这个路由方向的链路或者路由 器故障, 才会引起路由重新收敛, 选择其它的路由方向转发报文, 否则 即使这个路由方向上的 Qos很差 (如有大量丢包和误码), 也不会重新 路由收敛选择其它的 IP路由。 在电信领域, 特别是在下一代网络(NGN )领域, 语音业务对 IP 网络的服务质量要求很高 (一般认为丟包率 =1%, 网络抖动 =20ms, 时 延 =100ms的情况是较差网络环境),如果出现 IP网络较严重丟包、延迟 或者抖动, 会严重影响通话质量。 目前的数据通讯网络都是采用 Diff-Serv, 多协议标记交换 -虚拟专用网 (MPLS-VPN )、 虚拟局域网
( VLAN )等技术保证网络的 Qos,但只能做到在已有资源基础上做 Qos 保证, 对链路质量衰减、 拥塞等问题不能有效解决。 特别是对主备組网的情况, '如图 1所示的以太网组网: In the traditional data communication field, devices are connected by mesh. IP packets arrive from one device to another device. There are multiple reachable paths. The devices use IP routing to determine which IP packets are forwarded to that link. A router, unless the link or router in the routing direction fails, will cause the route to re-converge and select other routing directions to forward the packet. Otherwise, even if the QoS in the routing direction is poor (if there are a large number of packet loss and error) , and will not reroute to select other IP routes. In the field of telecommunications, especially in the field of next-generation networks (NGN), voice services require high quality of service for IP networks (generally, packet loss rate = 1%, network jitter = 20ms, delay = 100ms is poor) Network environment), if there is a serious packet loss, delay or jitter in the IP network, the quality of the call will be seriously affected. The current data communication network uses Diff-Serv, multi-protocol label switching - virtual private network (MPLS-VPN), virtual local area network Technology such as (VLAN) guarantees the QoS of the network, but it can only do QoS guarantee on the basis of existing resources, and cannot effectively solve the problems of link quality degradation and congestion. Especially for the case of active/standby networking, 'Ethernet networking as shown in Figure 1:
一般情况主以太网接口故障时, 若备以太网接口正常, 则倒换到备 接口。 但若备接口没有中断, 而线路有严重信号衰减时, 若没有及时检 测修复, 业务倒换到备链路上, 因为 Qos差, 也严重影响业务, 类似的 需要检测 Qos的情况很多; 因此需要一种 Qos的自动检测和定位方法, 以便及时发现网络质量问题, 并且能定位出是在哪一段链路或者哪一个 路由器上出现了服务质量下降, 可以采取措施整改。 In general, when the primary Ethernet interface is faulty, if the standby Ethernet interface is normal, it is switched to the standby interface. However, if the backup interface is not interrupted and the line has a serious signal attenuation, if the repair is not detected in time, the service is switched to the backup link. Because the Qos is poor, the service is seriously affected. There are many situations in which the Qos needs to be detected. Therefore, a need is needed. A method for automatic detection and location of QoS, in order to detect network quality problems in time, and to locate which part of the link or which router has experienced a decline in service quality, and measures can be taken to correct it.
现有的数据通讯网络一般是通过 Ping技术和路由跟踪 ( TraceRt ) 技术两种方法来检测和定位故障。 用户通过 Pirig方法可以检测两个 IP 地址之间是否能连通; 在不能连通时, 通过 TraceRt方法定位是那个路 由器上出现故障。 Existing data communication networks generally use both ping technology and route tracking (TraceRt) technology to detect and locate faults. The Pirig method can detect whether two IP addresses can communicate with each other. When the connection fails, the TraceRt method locates the fault on that router.
Ping和 TraceRt方法在一般的路由器、三层以太网交换机上都提供, 是基于标准 RFC0792定义的因特网控制报文协议( ICMP )协议实现的。 一般使用方法是用户在发现了某个网络不通时, 先用 Ping检测, 再用 TraceRt定位故障。 但现有技术存在如下缺点: The Ping and TraceRt methods are available on general routers and Layer 3 Ethernet switches and are based on the Internet Control Message Protocol (ICMP) protocol defined by the standard RFC0792. The general usage method is that when a user finds that a certain network is unreachable, it first uses Ping to detect and then uses TraceRt to locate the fault. However, the prior art has the following disadvantages:
( 1 )现有的技术只是对网络的通断给出了检测和定位方法, 但对 服务质量不好的问题不能检测和定位; (1) The existing technology only gives the detection and positioning method for the continuity of the network, but the problem of poor service quality cannot be detected and located;
( 2 )检测需要依赖于用户手工操作, 不能自动检测和定位。 因 IP 网络流量突发性较多, 可能出现大量故障再去定位时, 网絡质量又恢复 正常。
发明内容 (2) Detection needs to rely on manual operation by the user, and cannot be automatically detected and located. Due to the sudden burst of IP network traffic, a large number of faults may occur and the network quality returns to normal. Summary of the invention
本发明的目的在于, 针对现有技术的不足, 提出通信网络中 Qos 的检测方法和检测装置, 可以自动检测出通讯网络中任意两个地址间通 讯路径的连通性和 Qos质量。 The object of the present invention is to provide a method and a detection device for detecting Qos in a communication network, which can automatically detect the connectivity and Qos quality of a communication path between any two addresses in a communication network.
本发明的目的是这样实现的: The object of the invention is achieved in this way:
一种通信网络中服务质量 Qos的检测方法, 包括: A method for detecting quality of service Qos in a communication network, comprising:
A、 通信网络中两地址端点间的第一端向第二端间隔发送预定数量 的检测包, 第二端收到检测包后返回一对应的检测应答包; A. The first end of the two address endpoints in the communication network sends a predetermined number of detection packets to the second end, and the second end returns a corresponding detection response packet after receiving the detection packet;
B、 第一端根据所接收到的第二端的检测应答包的返回时间和 /或返 回质量确定所述两地址间的 Qos参数。 B. The first end determines a Qos parameter between the two addresses according to the received return time and/or return quality of the second end detection response packet.
优选地, 所述通信网络中具有主备接口, 分别与第三方接口连接; 在主备接口之一进行业务处理时, 主备接口与所述第三方接口间执行步 骤 A和步骤 B以检测主备接口与所述第三方接口间的 Qos参数, 当主 备接口中当前处理业务的接口与第三方接口间的 Qos 参数到达预设的 Qos参数门限值, 而另一接口与第三接口间的 Qos参数没有达到所述门 P艮值时, 则切换主备接口。 Preferably, the communication network has an active/standby interface and is connected to a third-party interface. When one of the primary and secondary interfaces performs service processing, step A and step B are performed between the primary and secondary interfaces and the third-party interface to detect the primary The QoS parameter between the interface and the third-party interface of the backup interface reaches the preset Qos parameter threshold between the interface of the current service interface and the third-party interface, and the interface between the other interface and the third interface When the Qos parameter does not reach the threshold of the threshold, the master/slave interface is switched.
优选地, 该方法进一步包括: 设置 Qos参数的门限值, 当所述两地 址端点间的 Qos参数达到所述门限值时则触发告警。 Preferably, the method further comprises: setting a threshold value of the Qos parameter, and triggering an alarm when a Qos parameter between the two address endpoints reaches the threshold.
优选地, 所述 Qos参数包括丟包个数、 误码包个数、 传输时延、 抖 动时延、 丟包百分比、 平均传输时延、 平均抖动时延的任意组合或其中 之一。 Preferably, the Qos parameter includes any one or a combination of the number of lost packets, the number of errored packets, the transmission delay, the jitter delay, the percentage of packet loss, the average transmission delay, and the average jitter delay.
优选地, 所述 Qos参数包括丟包个数, 且所述确定两地址端点间丟 包个数的方法为: 第一端每发出一个检测包后, 若在预定时间内未收到 该检测包对应的检测应答包, 则'累加丟包个数。 Preferably, the Qos parameter includes the number of lost packets, and the method for determining the number of lost packets between the two address endpoints is: after the first end sends a detection packet, if the detection packet is not received within a predetermined time Corresponding detection response packet, then 'accumulate the number of lost packets.
优选地, 所述 Qos参数还包括丢包百分比, 且确定该丢包百分比的
具体方法为: 将所累加的丢包个数除以所发送的检测包总数。 Preferably, the Qos parameter further includes a percentage of packet loss, and the percentage of the packet loss is determined. The specific method is: dividing the accumulated number of lost packets by the total number of detected packets sent.
优选地, 所述 Qos参数包括误码包个数, 且所述确定两地址端点间 误码包个数的方法为: 第一端每发出一个检测包后, 若在预定时间内收 到该检测包对应的检测应答包, 则进一步检测该检测应答包的内容是否 有误, 在检测出错误的情况下, 则累加误码包个数。 Preferably, the Qos parameter includes the number of error packets, and the method for determining the number of error packets between the two address endpoints is: after the first end sends a detection packet, if the detection is received within a predetermined time If the packet corresponding to the detection response packet is detected, it is further detected whether the content of the detection response packet is incorrect. When an error is detected, the number of error packets is accumulated.
优选地, 所述 Qos参数包括误码百分比, 且确定该误码百分比的具 体方法为: 将所累加的误码包个数除以所发送的检测包总数。 Preferably, the Qos parameter includes a percentage error, and the specific method for determining the error percentage is: dividing the accumulated number of error packets by the total number of detected packets.
优选地, 所述 Qos参数包括传输时延, 且所述确定两地址端点间传 输时延的方法为: 第一端每发出一个检测包后, 若在预定时间内收到该 检测包对应的检测应答包, 则进一步检测该检测应答包的内容是否有 误, 在检测应答包的内容正确的情况下, 确定从发送检测包到收到该对 应检测应答包的时间差, 作为该检测包的传输时延。 Preferably, the Qos parameter includes a transmission delay, and the method for determining a transmission delay between two address endpoints is: after the first end sends a detection packet, if the detection packet corresponding to the detection packet is received within a predetermined time The response packet further detects whether the content of the detection response packet is incorrect. When the content of the detection response packet is correct, the time difference from the transmission of the detection packet to the receipt of the corresponding detection response packet is determined as the transmission time of the detection packet. Delay.
优选地, 所述 Qos参数包括平均传输时延, 且确定该平均传输时延 的具体方法为: 将所确定的传输时延的总和除以所述内容正确的检测应 答包的总个数。 Preferably, the Qos parameter includes an average transmission delay, and the specific method for determining the average transmission delay is: dividing the total of the determined transmission delays by the total number of correct response packets of the content.
优选地, 所述 Qos参数包括抖动时延, 且所述确定两地址端点间抖 动时延的方法为: 每发送两次检测包, 并确定出这两个检测包的传输时 延后, 将该两个检测包传输时延的时间差作为一个抖动时延。 Preferably, the Qos parameter includes a jitter delay, and the method for determining a jitter delay between two address endpoints is: after transmitting the detection packet twice, and determining the transmission delay of the two detection packets, The time difference between the transmission delays of the two detection packets is taken as a jitter delay.
优选地, 所述两地址间的 Qos参数包括平均抖动时延, 且确定平均 抖动时延的方法为: 将所确定的抖动时延的总和除以所述内容正确的检 测应答包的总个数。 Preferably, the Qos parameter between the two addresses includes an average jitter delay, and the method for determining an average jitter delay is: dividing the total of the determined jitter delay by the total number of detection response packets with the correct content. .
优选地, 所述检测应答包的内容是否有误具体为: 检测该检测应答 包的媒体访问控制层、 IP协议层、 因特网控制报文协议层的内容是否有 误。 Preferably, whether the content of the detection response packet is incorrect is: detecting whether the content of the media access control layer, the IP protocol layer, and the Internet Control Message Protocol layer of the detection response packet is incorrect.
优选地, 预设检测周期, 在每个检测周期内重复执行所述步骤 A和
步骤 B。 Preferably, the detection period is preset, and the step A and the step A are repeatedly performed in each detection period. Step B.
优选地, 所述地址为接口地址或 IP地址。 Preferably, the address is an interface address or an IP address.
优选地, 所述检测包为 Ping检测包、 ARP协议包、 回声包、 或链 路控制协议协商包。 Preferably, the detection packet is a Ping detection packet, an ARP protocol packet, an echo packet, or a link control protocol negotiation packet.
优选地, 所述两地址端 、间的路径上包括至少一个路由节点, 该方 法进一步包括对各段路径的 Qos参数检测过程, 具体为: Preferably, the path between the two addresses includes at least one routing node, and the method further includes a process for detecting a Qos parameter of each segment, specifically:
Cl、 所述第一端依次发送编号为 1、 2 的检测包, 每个检测 包的源地址为第一端点, 目的地址为第二端点; Cl, the first end sequentially sends detection packets numbered 1, 2, the source address of each detection packet is a first endpoint, and the destination address is a second endpoint;
C2、 对每种编号的检测包间隔发送预定的次数; 收到该检测包的路 由节点将编号减 1, 并判断编号是否为 0, 是则丢弃该检测包, 向第一 端点返回检测应答包, 其中包括该路由节点的地址; 如果编号不为 0, 则转发所述检测包给下一个路由节点,重复步骤 C2,直到检测包到达所 述第二端点, 由第二端点向第一端点返回检测应答包, 其中包括第二端 点的地址; C2: Send a predetermined number of times for each number of detection packets; the routing node that receives the detection packet decrements the number by 1, and determines whether the number is 0, if yes, discards the detection packet, and returns a detection response to the first endpoint. a packet, including the address of the routing node; if the number is not 0, forwarding the detection packet to the next routing node, repeating step C2 until the detection packet reaches the second endpoint, from the second endpoint to the first end Point return detection response packet, including the address of the second endpoint;
C3、 第一端点根据 所接收到的各个路由节点返回的检测应答包的 返回时间和 /或返回质量 确定本第一端点与各个路由节点间的 Qos 参 数。 C3. The first endpoint determines a Qos parameter between the first endpoint and each routing node according to the received return time and/or return quality of the detected response packet returned by each routing node.
优选地, 该方法进一步包括: 设置 Qos参数的门限值, 依次判断所 述第一端点与各个路由节点间 Qos参数是否达到 Qos参数的门限值,如 果达到, 则停止所述对各段路径的 Qos参数检测, 将故障点和 /或 Qos 下降点定位在对应的路由节点之间; 否则, 如果收到所述第二端点的检 测应答包, 则判定所述两地址端点间的路径检测完毕, 停止所述对各段 路径的 Qos参数检测。 Preferably, the method further includes: setting a threshold value of the Qos parameter, determining whether the Qos parameter between the first endpoint and each routing node reaches a threshold of the Qos parameter, and if so, stopping the pair of segments Detecting the Qos parameter of the path, and positioning the fault point and/or the Qos falling point between the corresponding routing nodes; otherwise, if the detection response packet of the second endpoint is received, determining the path detection between the two address endpoints After completion, the Qos parameter detection for each segment path is stopped.
作为本发明的另一方面,还公开了一种通信网络中 Qos的检测装置 , 该装置包括:
检测包收发单元, 设置在通信网络中的被检端点上, 用于向对端间 隔发送预定数量的检测包, 在收到对端发送检测包后向对端返回检测应 答包, 以及用于接收对端返回的检测应答包; As another aspect of the present invention, a device for detecting Qos in a communication network is disclosed, the device comprising: The detection packet transceiver unit is disposed on the detected endpoint in the communication network, and is configured to send a predetermined number of detection packets to the opposite end interval, return a detection response packet to the opposite end after receiving the detection packet, and receive the same. The detection response packet returned by the peer end;
Qos参数计算单元, 与检测包收发单元连接, 根据检测包收发单元 所接收到的对端的检测应答包的返回时间和 /或返回盾量确定所述两被 检端点间的 Qos参数。 The Qos parameter calculation unit is connected to the detection packet transceiver unit, and determines a Qos parameter between the two detected endpoints according to a return time and/or a return shield amount of the detection response packet of the opposite end received by the detection packet transceiver unit.
优选的, 所述检测装置进一步包括告警单元, 用于设置 Qos参数的 门限值,判断所述 Qos参数计算单元确定的 Qos参数是否达到该门限值, 如果达到则触发告警。 Preferably, the detecting device further includes an alarm unit, configured to set a threshold value of the Qos parameter, determine whether the Qos parameter determined by the Qos parameter calculation unit reaches the threshold, and if so, trigger an alarm.
优选的, 所述通信网络中具有主备接口且与第三接口连接; 所述检 测装置设置在所述主备接口和第三接口上, 用于检测主备接口与第三接 口的 Qos参数; 并进一步包括切换单元, 与所述告警单元连接, 用于当 主备接口中当前处理业务的接口与该第三接口间的 Qos参数触发告警, 而另一接口与该第三接口间的 Qos参数没有触发告警时,切换主备接口。 Preferably, the communication network has a primary and secondary interfaces and is connected to the third interface; the detecting device is configured on the primary and secondary interfaces and the third interface, and is configured to detect Qos parameters of the primary and secondary interfaces and the third interface; And further comprising a switching unit, configured to be connected to the alarm unit, configured to trigger an alarm when the QoS parameter between the interface currently processing the service and the third interface in the active/standby interface, and the Qos parameter between the other interface and the third interface is not When the alarm is triggered, the active and standby interfaces are switched.
从以上可以看出, 本发明提供的 Qos检测方法和检测装置可以定期 自动检测任意两地址间的故障和 Qos的值, 不但能对网络的通断状况进 行检测, 还可以对网絡的 Qos进行检测, 当网络出现故障或者 Qos值超 过门限参数, 还可以进行报警, 在具备主备接口的情况下, 还可以根据 故障和 Qos情况进行主备倒换以保障业务不受影响, 或非主备接口告警 通知用户维护并且自动检测故障点。另外还可以自动检测从源 IP地址到 路径上各个路由节点间的 Qos, 并进行记录作为用户故障定位和 Qos下 降定位的依据。 本发明可以适用于常用的数通网络, 对传输链路和路由 器等设备没有特别要求。 It can be seen from the above that the Qos detection method and the detection device provided by the present invention can automatically detect the faults and QoS values between any two addresses periodically, and can not only detect the on/off status of the network, but also detect the QoS of the network. If the network is faulty or the QoS value exceeds the threshold, you can also perform an alarm. If the active/standby interface is available, you can perform the active/standby switchover based on the fault and the QoS status to protect the service from being affected. Notify the user to maintain and automatically detect the point of failure. In addition, it can automatically detect the Qos from the source IP address to each routing node on the path, and record it as the basis for user fault location and Qos drop positioning. The present invention can be applied to a commonly used data communication network without special requirements for devices such as transmission links and routers.
通信网络中对 Qos要求较高,本发明通过自动检测 IP承载网的 Qos质 量, 以便及时通过主备倒换保护业务的正常进行和提醒用户修复; 同时
自动检测在 Qos质量降低是那个时刻、 由那个节点或者那个链路引发的, 以供用户精确定位问题。 附图简要说明 图 1为以太网组网中包含主备接口的组网结构示意图; The QoS of the QoS is high in the communication network. The present invention automatically detects the QoS of the IP bearer network, so as to timely protect the normal operation of the active/standby switchover and prompt the user to repair; Automatic detection is caused by the node or that link at the moment when the Qos quality degradation is reduced, so that the user can pinpoint the problem. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a network structure including an active/standby interface in an Ethernet network;
图 2为本发明所述方法的一种实施例的流程图; 2 is a flow chart of an embodiment of the method of the present invention;
图 3为本发明对一种路由节点故障进行定位的示意图; 3 is a schematic diagram of positioning a routing node fault according to the present invention;
图 4为本发明所述检测装置的结构示意图; 4 is a schematic structural view of a detecting device according to the present invention;
图 5为本发明所述装置应用在包含主备设备以太网中的组网结构示 意图。 实施本发明的方式 以下通过具体的实施例和附图对本发明进行详细的说明。 FIG. 5 is a schematic diagram of a networking structure of the device according to the present invention applied to an Ethernet network including active and standby devices. Mode for Carrying Out the Invention The present invention will be described in detail below by way of specific examples and the accompanying drawings.
本发明的核心技术方案为: 一种通信网络中服务质量 Qos的检测方 法, 包括: A、 通信网络中两地址端点间的第一端向第二端间隔发送预 定数量的检测包, 第二端收到检测包后返回一对应的检测应答包; B、 第一端根据所接收到的第二端的检测应答包的返回时间和 /或返回质量 确定所述两地址间的 Qos参数。 The core technical solution of the present invention is: A method for detecting a quality of service Qos in a communication network, comprising: A. The first end of the two address endpoints in the communication network sends a predetermined number of detection packets to the second end, and the second end After receiving the detection packet, a corresponding detection response packet is returned; B. The first end determines a Qos parameter between the two addresses according to the received return time and/or return quality of the second response detection packet.
本发明的方法适合于一般的 IP网络, 特别适用于 NGN网络, 对传 输链路和路由器等设备没有特别要求。 The method of the present invention is suitable for a general IP network, and is particularly suitable for an NGN network, and has no special requirements for devices such as transmission links and routers.
在故障和 Qos检测过程开始之前, 用户需要配置自动检测故障和 Qos值时需要用到的参数, 要求配置的参数如下: Qos检测必须配置的 参数包括所检测的两端点设备间的源端点地址(即所述第一端点地址) 和目的端点地址(即所述第二端点地址, 此处的地址可以为接口地址或 IP 地址)、 每次检测发送检测包的预定个数、 每个检测包的等待响应时 长、 每次检测周期的时间间隔和 Qos参数的门限值。 Before the fault and QoS detection process begins, the user needs to configure the parameters that need to be used to automatically detect the fault and the QoS value. The parameters required to be configured are as follows: The Qos detection must be configured with the parameters including the source endpoint address between the detected two-point devices ( That is, the first endpoint address) and the destination endpoint address (ie, the second endpoint address, where the address may be an interface address or an IP address), a predetermined number of detection packets sent each time, and each detection packet The waiting response duration, the interval between each detection cycle, and the threshold of the Qos parameter.
所述检测包可以为 Ping检测包。 对以太网接口也可以使用 ARP协
议包检测两个三层设备之间的链路 Qos参数;对 POS接口也可以用 PPP 的回声 (Echo ) 包、 PPP的链路控制协议 ( LCP )协商包检测两个三层 设备之间的链路的 Qos。 如果是 Ping检测包, 则上述所配置的可选参数 为标准 Ping命令的可选参数。 本实施例中用 Ping检测包为例进行说明。 The detection packet may be a Ping detection packet. ARP Association can also be used for Ethernet interfaces. The protocol packet detects the Qos parameter of the link between the two Layer 3 devices. The POS interface can also detect the between the two Layer 3 devices by using the PPP echo (Echo) packet and the PPP Link Control Protocol (LCP) negotiation packet. Qos of the link. If it is a Ping detection packet, the optional parameters configured above are optional parameters of the standard Ping command. In this embodiment, the Ping detection packet is taken as an example for description.
所述 Qos参数包括丢包个数、 误码包个数、 传输时延、 抖动时延、 丟包百分比、 平均传输时延、 平均抖动时延的任意組合或其中之一。 The Qos parameter includes any combination or one of a packet loss number, a number of error packets, a transmission delay, a jitter delay, a packet loss percentage, an average transmission delay, and an average jitter delay.
所述 Qos的门限参数包括丟包个数、 误码包个数、 传输时延、 抖动 时延的门限参数, 以及丟包百分比的门限参数, 延迟平均时长的门限参 数和抖动平均时长的门限参数。 The threshold parameters of the Qos include the number of lost packets, the number of errored packets, the transmission delay, the threshold parameters of the jitter delay, and the threshold parameters of the percentage of packet loss, the threshold parameters of the delay average duration, and the threshold parameters of the jitter average duration. .
设备正常运行后, 对网络的检测是定时启动的, 并且每次检测的时 间也是确定的, 根据配置的参数, 由每次检测发送报文的个数决定本次 测试的过程长度, 由每次检测时间间隔决定两次测试之间的时间间隔, 设定的每个 Ping检测包的等待响应时长用于判定能否收到 Ping检测包 的应答包, 即 Ping检测应答包。 After the device is running normally, the detection of the network is started periodically, and the time of each detection is also determined. According to the configured parameters, the number of packets sent by each test determines the length of the test. The detection interval determines the time interval between the two tests. The waiting response time of each Ping detection packet is used to determine whether the response packet of the Ping detection packet can be received, that is, the Ping detection response packet.
图 2为本发明所述方法的一种实施例的流程图。 请参阅图 2, 该流 程包括: 2 is a flow chart of an embodiment of the method of the present invention. Referring to Figure 2, the process includes:
步骤 201: 所述两地址端点的第一端判断所述设置的每次检测周期 的时间间隔是否到时, 若到时, 执行步骤 202, 否则继续等待。 Step 201: The first end of the two address endpoints determines whether the time interval of each set detection period is up. If yes, step 202 is performed, otherwise, the process continues.
步骤 202: 所述第一端发送 Ping检测包(Ping检测包的格式遵从 RFC0792要求), 并记录发送的时间, 判断在预定的每个 Ping检测包等 待响应时长内是否收到该 Ping检测包对应的 Ping检测应答包(简称应 答包), 若没有, 则累加丟包个数, 否则执行步骤 203。 Step 202: The first end sends a Ping detection packet (the format of the Ping detection packet complies with the requirements of RFC0792), and records the time of transmission, and determines whether the Ping detection packet is received within a predetermined waiting period of each Ping detection packet. The Ping detection response packet (referred to as the response packet), if not, accumulates the number of packet loss, otherwise step 203 is performed.
步驟 203: 所述第一端在每个 Ping检测包的等待响应时长内收到对 应的应答包, 检测应答包的内容是否正确, 具体可以对 MAC层、 IP协 议层、 ICMP协议层的内容进行检测, 若不正确, 则累加误码包的个数, δ
否则执行步骤 204; Step 203: The first end receives the corresponding response packet within the waiting response time of each Ping detection packet, and detects whether the content of the response packet is correct, and specifically, the content of the MAC layer, the IP protocol layer, and the ICMP protocol layer may be performed. Detect, if not correct, accumulate the number of error packets, δ Otherwise, step 204 is performed;
步骤 204: 根据应答包接收到的时间确定从发送检测包到收到该对 应应答包的时间差, 作为所述检测包的传输时延; 进一步地, 在每发送 两次检测包, 并确定出这两个检测包的传揄时延后, 将该两个检测包传 输时延的时间差作为一个抖动时延。 累加传输时延总和以及累加抖动时 延总和。 Step 204: Determine, according to the time received by the response packet, a time difference from sending the detection packet to receiving the corresponding response packet as a transmission delay of the detection packet; further, detecting the packet every time, and determining the packet After the transmission delay of the two detection packets, the time difference of the transmission delays of the two detection packets is taken as a jitter delay. Accumulate the sum of the transmission delays and the sum of the accumulated jitter delays.
步骤 205: 判断已发送的 Ping检测包的个数是否大于预先配置要求 的每次检测发送检测包的个数, 若不是, 返回步骤 202, 否则, 返回步 骤 201。 Step 205: Determine whether the number of sent Ping detection packets is greater than the number of detection detection packets per pre-configuration requirement. If not, return to step 202, otherwise, return to step 201.
.检测完成后,还可进一步将上述步骤中所检测到的 Qos参数进行计 算, 得到更优化的 Qos参数, 各参数计算公式如下: After the detection is completed, the Qos parameters detected in the above steps can be further calculated to obtain a more optimized Qos parameter, and the calculation formulas of each parameter are as follows:
丢包百分比 =丢包个数 I 总检测包个数; Packet loss percentage = number of lost packets I total number of detection packets;
平均时延 = 时延总和 I总的正确应答包个数; Average delay = sum of delays I total number of correct response packets;
平均抖动时长 =抖动时长总和 I总的正确应答包个数。 Average jitter duration = sum of jitter durations I Total number of correct response packets.
所述第一端还可以根据预设的 Qos参数的门 P艮值, 判断上述所确定 的 Qos参数是否达到所述门限值, 如果是则触发告警。 The first end may further determine whether the determined Qos parameter reaches the threshold according to a preset threshold of the Qos parameter, and if yes, trigger an alarm.
上述检测方法可以应用到具有对出主备接口的通讯网絡中, 例如图 1 所示的通讯网络, 所述接入设备具备主备接口, 即主以太网接口和备 以太网接口, 且主备接口分别与三层设备的第三方接口连接。 此时要求 主备接口各配置一个 IP地址, 使用不同的 MAC地址, 网络接入设备正 常运行后, 主备接口与各自的第三方接口之间分别自动运行上述图 2所 述的 Qos检测方法, 检测自身与所连接的笫三方接口间的 Qos参数, 并 可以把检测结果作为主备倒换的依据。 The above detection method can be applied to a communication network having an interface of the active and standby interfaces, for example, the communication network shown in FIG. 1. The access device has an active/standby interface, that is, a primary Ethernet interface and a backup Ethernet interface, and the active and standby interfaces are active and standby. The interfaces are respectively connected to the third-party interfaces of the Layer 3 devices. In this case, you need to configure an IP address for the active and standby interfaces, and use different MAC addresses. After the network access device runs normally, the Qos detection method described in Figure 2 is automatically run between the active and standby interfaces and the third-party interfaces. Detect the QoS parameter between itself and the connected three-party interface, and use the detection result as the basis for the active/standby switchover.
系统对主备接口与其各自的第三方接口间的检测结果(如: 丢包个 数、 误码包个数、 传输时延、 抖动时延、 丢包百分比、 平均时延和平均
抖动时长)进行记录, 并且分别与 Qos的门限参数 (包括丟包个数门限 参数、 误码包个数门限参数、 传输时延门限参数、 抖动时延门限参数、 丟包百分比的门限参数、 延迟平均时长的门限参数和抖动平均时长的门 限参数)进行比较, 当主备接口中当前处理业务的接口与第三方接口间 的 Qos参数到达预设的 Qos参数门限值, 而另一接口与第三接口间的 Qos参数没有达到所述门限值时, 则切换主备接口。 例如: 主备接口发 生故障或者 Qos各指标参数超过门限包括: 检测的丟包的百分比大于用 户配置的丢包和错包的百分比; 检测的延迟和抖动的平均时长大于用户 配置的延迟和抖动的平均时长。 极端的, 如果所述丟包百分比达到百分 之百, 则判断对应的主接口或备接口与笫三方接口之间发生断路故障, 进行主备接口的切换。 The detection result between the active/standby interface and its respective third-party interfaces (such as the number of lost packets, the number of errored packets, the transmission delay, the jitter delay, the percentage of packet loss, the average delay, and the average The jitter duration is recorded, and the Qos threshold parameters (including the packet loss threshold parameter, the error packet number threshold parameter, the transmission delay threshold parameter, the jitter delay threshold parameter, the threshold parameter of the packet loss percentage, and the delay parameter respectively) The threshold parameter of the average duration is compared with the threshold parameter of the average duration of the jitter. When the QoS parameter between the interface of the current processing interface and the third-party interface reaches the preset Qos parameter threshold, the other interface and the third interface are compared. If the QoS parameter between the interfaces does not reach the threshold, the active and standby interfaces are switched. For example, if the active/standby interface fails or the QoS parameters exceed the threshold, the percentage of detected packets is greater than the percentage of packet loss and error packets configured by the user. The average delay of detection and jitter is greater than the delay and jitter configured by the user. Average duration. In an extreme case, if the percentage of the packet loss is 100%, it is determined that an open circuit fault occurs between the corresponding primary interface or the backup interface and the third-party interface, and the primary and secondary interfaces are switched.
除了对主备接口进行 Qos检测, 本发明还可以对非主备接口与其他 接口间的路径进行 Qos检测, 如果 Qos参数超过门限值, 贝 ij自动报警。 In addition to performing Qos detection on the primary and secondary interfaces, the present invention can also perform Qos detection on paths between non-active and standby interfaces and other interfaces. If the Qos parameter exceeds the threshold, Bay ij automatically alarms.
例如, 所述对主备接口进行主备倒换, 对非主备接口进行告警的过 程具体可包括如下步骤: For example, the process of performing an active/standby switchover on the primary and backup interfaces, and performing the alarm on the non-active and standby interfaces may include the following steps:
步¾ 11: 在系统中记录检测结果,:以便用户随时查询; Step 3: Record the test results in the system: so that the user can query at any time;
步骤 12:若主备接口或非 :主备接口发生故障或者 Qos各指标参数中 的任意参数超过门限参数, '则要进行业务倒换或者告警。 Step 12: When the main or backup interfaces: Interface standby failure or any Qos parameters of each index parameter generating parameters exceed the threshold, 'will carry out service switching or alarms.
步骤 13: 若是主备接口的主接口故障或者 Qos各指标参数超过门 限, 则当备接口没有故障, 而且 Qos满足要求, 则进行主^到换, 把主 接口的业务倒换到备接口, 业务恢复正常。 Step 13: If the primary interface of the primary and secondary interfaces is faulty or the parameters of the QoS indicators exceed the threshold, if the backup interface is faulty and the QoS is met, the switchover is performed, and the service of the primary interface is switched to the standby interface. normal.
步骤 14:对其它非主备或者非主备接口的主接口故障或者 Qos各指 标参数超过门限, 告警并记录接口状态。 Step 14: The main interface of the other non-active or non-active and standby interfaces is faulty or the QoS parameters of the QoS exceed the threshold. The interface is alarmed and recorded.
从上述过程 , 可以看到以下两点: From the above process, you can see the following two points:
( 1 )利用 Ping检测包定期自动检测任意两 IP地址间的 Qos, 统计
出丟包率、 误码率、 平均延时、 平均抖动等 Qos参数, 并根据 Qos进一 步判断故障。 (1) Using the Ping detection package to automatically detect the Qos between any two IP addresses periodically, statistics The Qos parameters such as packet loss rate, bit error rate, average delay, and average jitter are calculated, and the fault is further judged according to Qos.
( 2 ) 当 Qos超过门限参数或者故障时, 则主 ^到换以保障业务不 受影响, 告警通知用户维护。 (2) When Qos exceeds the threshold parameter or fault, the master is replaced by the protection service, and the alarm is notified to the user for maintenance.
另外, 如果所述两个地址端点间的路径上包括至少一个路由节点, 则本发明还可对各段路径的 Qos参数进行检测, 并根据检测结果定位故 障点和 Qos下降点 (即引起 Qos下降的设备或路径)。 In addition, if at least one routing node is included in the path between the two address endpoints, the present invention may also detect the Qos parameter of each segment path, and locate the fault point and the Qos falling point according to the detection result (ie, cause the Qos to decrease) Device or path).
图 3为本发明对一种路由节点故障进行定位的示意图。请参阅图 3, 本发明能自动检测各路由节点上的故障节点,即从源 IP地址到路径上各 个三层数通设备的 Qos, 并将检测结果作为用户故障定位的依据, 对路 径上的每一个路由节点进行自动检测, 以定位故障点和引起 Qos各指标 参数超过门限的设备或路径。 其步驟具体包括: FIG. 3 is a schematic diagram of positioning a routing node fault according to the present invention. Referring to FIG. 3, the present invention can automatically detect a faulty node on each routing node, that is, a source IP address to a QoS of each Layer 3 data communication device on the path, and use the detection result as a basis for user fault location, on the path. Each routing node performs automatic detection to locate the fault point and the device or path that causes the QoS parameters of the QoS to exceed the threshold. The steps specifically include:
步骤 31: 按 Tmcert命令的实现原理, 从接入设备的地址为 IP 1的 端点发送源地址 IP1、 目的地址 IP2、 TTL编号为 1的 Ping检测包, 路 由器 R1接收到此 Ping检测包, 把 TTL值减 1, 若 TTL值等于 0, 则丢 弃报文, 向源地址 IP1发送因特网控制管理协议( ICMP )报文作为检测 应答包, 原因值是 IP报文生命周期失效; 若 TTL大于 0, 则查找路由, 把报文发送给路由器 R2; 依次发送 IP头字段 TTL编号为 1、 2...的 Ping 检测包, 其源目的地址都相同, 即源地址 IP1、 目的地址 IP2。 Step 31: According to the implementation principle of the Tmcert command, the ping detection packet of the source address IP1, the destination address IP2, and the TTL number 1 is sent from the endpoint of the access device whose address is IP1. The router R1 receives the ping detection packet and puts the TTL. The value is decremented by 1. If the TTL value is equal to 0, the packet is discarded, and an Internet Control Management Protocol (ICMP) packet is sent to the source IP1 as the detection response packet. The reason is that the IP packet lifetime is invalid. If the TTL is greater than 0, Find the route, send the packet to the router R2; Send the Ping detection packet with the TTL number of 1, 2, in the IP header field in sequence, and the source destination addresses are the same, that is, the source address IP1 and the destination address IP2.
步驟 32: 与图 2所示的方法一样, 对于 TTL编号为 1的 Ping检测 包, 间隔发送预定的次数, 并按所收到的检测应答包的返回时间和或返 回质量统计丢包率、错包率、延时、抖动等参数, 并记录每次检测结果; 同时记录每个检测应答包的 IP地址,从而可以确定所述第一端(即地址 IP1 )与所述路由器 R1之间的 Qos参数。 Step 32: As in the method shown in FIG. 2, for a ping detection packet with a TTL number of 1, the interval is sent a predetermined number of times, and the packet loss rate and error are counted according to the return time and return quality of the received detection response packet. Packet rate, delay, jitter and other parameters, and record each detection result; simultaneously record the IP address of each detection response packet, so that the Qos between the first end (ie, address IP1) and the router R1 can be determined. parameter.
步骤 33: 依次 TTL值加 1 , 检测到第一端与路由器 R2、 R3的 Qos Step 33: In turn, increase the TTL value by 1 to detect the Qos of the first end and the routers R2 and R3.
II
参数, 即按步骤 32的方法依次进行 TTL编号为 2, 3...的检测, 得到对 应的 Qos参数, 并进一步与预设的 Q0S参数门限值比较, 若 Q0S参数达 到预设的 Qos参数门限值, 则判定在第一端与该路由器之间发生故障或 Qos下降, 例如如果丟包率 =100%, 则说明发生断路故障, 此时停止检 测, 说明故障点已经找到; 当 TTL大于 n+1时, 在路由器 Rn上接收到 此报文, 会转发给目的地址 IP2所在的接入设备, 这时才会响应正确的 Ping检测应答包给第一端, 此时第一端判定整个路径上的路由节点已经 检测完毕, 停止对所述各段路径的检测。 II The parameter, that is, the detection of the TTL number 2, 3... is sequentially performed according to the method of step 32, and the corresponding Qos parameter is obtained, and further compared with the preset Q 0S parameter threshold, if the Q 0S parameter reaches the preset If the Qos parameter threshold is used, it is determined that a fault or a Qos drop occurs between the first end and the router. For example, if the packet loss rate is 100%, the disconnection fault occurs, and the detection is stopped, indicating that the fault point has been found; When the TTL is greater than n+1, the packet received on the router Rn is forwarded to the access device where the destination IP2 is located. In this case, the correct ping detection response packet is sent to the first end. It is determined that the routing node on the entire path has been detected, and the detection of the segments is stopped.
另夕卜,所述的检测应答包除了 Ping检测应答包,还可以为路由跳数 超过最大值的 ICMP报文。 In addition, the detection response packet may be an ICMP packet whose route hop count exceeds the maximum value, in addition to the ping detection response packet.
图 4为本发明所述通信网络中 Qos的检测装置示意图。 参见图 4, 该装置包括: 4 is a schematic diagram of a device for detecting Qos in a communication network according to the present invention. Referring to Figure 4, the device includes:
检测包收发单元 41 , 设置在通信网络中的被检端点上,.例如图中的 地址为 IP1的第一端和地址为 IP2的第二端, 用于向对端间隔发送预定 数量的检测包, 在收到对端发送检测包后向对端返回检测应答包, 以及 用于接收对端返回的检测应答包; The detection packet transceiver unit 41 is disposed on the detected endpoint in the communication network, for example, the first end of the address IP1 and the second end of the IP2 address are used to send a predetermined number of detection packets to the peer interval. After receiving the detection packet from the peer end, returning the detection response packet to the opposite end, and receiving the detection response packet returned by the opposite end;
Qos参数计算单元 42, 与检测包收发单元连接, 根据检测包收发单 元 41所接收到的对端的检测应答包的返回时间和 /或返回质量确定所述 两被检端点间的 Qos参数。 The Qos parameter calculation unit 42 is connected to the detection packet transceiver unit, and determines the Qos parameter between the two detected endpoints according to the return time and/or the return quality of the detection response packet of the opposite end received by the detection packet transceiver unit 41.
该检测装置进一步包括告警单元 43, 用于设置 Qos参数的门限值, 判断所述 Qos参数计算单元 42确定的 Qos参数是否达到该门限值, 如 果达到则触发告警。 The detecting device further includes an alarm unit 43 for setting a threshold value of the Qos parameter, determining whether the Qos parameter determined by the Qos parameter calculating unit 42 reaches the threshold value, and triggering an alarm if it is reached.
如果所述装置应用在具有主备接口的通讯网絡中, 则还需进一步包 括一切换单元。 图 5为本发明所述装置应用在包含主备设备以太网中的 组网结构示意图。 参见图 5, 所述以太网接入设备具有主备接口且与第
三方接口 (即 L3 的接口)连接; 所述检测装置设置在所述主备接口和 第三方接口上, 用于检测主备接口与第三方接口的 Qos参数; 并进一步 包括切换单元 51, 与所述告警单元连接, 用于当主备接口中当前处理业 务的接口与该第三方接口间的 Qos参数触发告警, 而另一接口与该第三 方接口间的 Qos参数没有触发告警时, 切换主备接口。 If the device is to be used in a communication network having a primary and secondary interfaces, it is further necessary to further include a switching unit. FIG. 5 is a schematic diagram of a networking structure of the device according to the present invention applied to an Ethernet including an active and standby device. Referring to FIG. 5, the Ethernet access device has a primary and secondary interfaces and is configured with The third-party interface (that is, the interface of the L3) is connected; the detecting device is configured on the primary and secondary interfaces and the third-party interface, and is configured to detect the QoS parameter of the primary and secondary interfaces and the third-party interface; and further includes the switching unit 51, and the The alarm unit is connected, and is configured to trigger an alarm when the QoS parameter is triggered between the interface of the current service interface and the third-party interface, and the QoS parameter is not triggered when the QoS parameter between the other interface and the third-party interface is not triggered. .
最后应说明的是, 以上实施例仅用以说明本发明而并非限制本发明 所描述的技术方案; 因此, 尽管本说明书参照上述的各个实施例对本发 明已进行了详细的说明, 但是, 本领域的普通技术人员应当理解, 仍然 可以对本发明进行修改或者等同替换; 而一切不脱离本发明的精神和范 围的技术方案及其改进, 其均应涵盖在本发明的范围当中。
It should be noted that the above embodiments are merely illustrative of the present invention and are not intended to limit the technical solutions described in the present invention; therefore, although the present specification has been described in detail with reference to the various embodiments described above, It is to be understood that the invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
Claims
1、 一种通信网络中服务质量 Qos的检测方法, 其特征在于, 包括: A method for detecting a quality of service Qos in a communication network, comprising:
A、 通信网絡中两地址端点间的第一端向第二端间隔发送预定数量 的检测包, 第二端收到检测包后返回一对应的检测应答包; A. The first end of the two address endpoints in the communication network sends a predetermined number of detection packets to the second end, and the second end returns a corresponding detection response packet after receiving the detection packet;
B、 第一端根据所接收到的第二端的检测应答包的返回时间和 /或返 回质量确定所述两地址间的 Qos参数。 B. The first end determines a Qos parameter between the two addresses according to the received return time and/or return quality of the second end detection response packet.
. .
2、 根据权利要求 1 所述的方法, 其特征在于, 所述通信网络中具 有主备接口,分别与第三方接口连接;在主备接口之一进行业务处理时, 主备接口与所述第三方接口间执行步骤 A和步骤 B以检测主备接口与所 述第三方接口间的 Qos参数, 当主备接口中当前处理业务的接口与第三 方接口间的 Qos参数到达预设的 Qos参数门限值, 而另一接口与第三接 口间的 Qos参数没有达到所述门限值时, 则切换主备接口。 The method of claim 1, wherein the communication network has an active/standby interface and is connected to a third-party interface; and when one of the primary and secondary interfaces performs service processing, the primary and secondary interfaces and the first Steps A and B are performed between the three interfaces to detect the QoS parameters between the active and standby interfaces and the third-party interface. The QoS parameters between the interface that processes the service and the third-party interface on the active and standby interfaces reach the preset Qos parameter threshold. If the value of the QoS parameter between the other interface and the third interface does not reach the threshold, the active and standby interfaces are switched.
3、 根据权利要求 1 所述的方法, 其特征在于, 该方法进一步包括: 设置 Qos参数的门限值, 当所述两地址端点间的 Qos参数达到所述门限 值时则触发告警。 The method according to claim 1, wherein the method further comprises: setting a threshold value of the Qos parameter, and triggering an alarm when a Qos parameter between the two address endpoints reaches the threshold value.
4、 根据权利要求 1 所述的方法, 其特征在于, 所述 Qos参数包括 丢包个数、 误码包个数、 传输时延、 抖动时延、 丢包百分比、 平均传输 时延、 平均抖动时延的任意组合或其中之一。 The method according to claim 1, wherein the Qos parameter includes the number of lost packets, the number of error packets, the transmission delay, the jitter delay, the percentage of packet loss, the average transmission delay, and the average jitter. Any combination of delays or one of them.
5、 居权利要求 1 所述的方法, 其特征在于, 所述 Qos参数包括 丢包个数, 且所述确定两地址端点间丟包个数的方法为: 第一端每发出 一个检测包后, 若在预定时间内未收到该检测包对应的检测应答包, 则 累加丢包个数。 The method of claim 1, wherein the Qos parameter includes the number of lost packets, and the method for determining the number of lost packets between the two address endpoints is: after the first end sends a detection packet If the detection response packet corresponding to the detection packet is not received within a predetermined time, the number of lost packets is accumulated.
6、 根据权利要求 5 所述的方法, 其特征在于, 所述 Qos参数还包 括丟包百分比, 且确定该丟包百分比的具体方法为: 将所累加的丟包个
数除以所发送的检测包总数。 The method according to claim 5, wherein the Qos parameter further includes a percentage of packet loss, and the specific method for determining the percentage of the packet loss is: adding the accumulated packet loss The number is divided by the total number of detected packets sent.
7、 根据权利要求 1 所述的方法, 其特征在于, 所述 Qos参数包括 误码包个数, 且所述确定两地址端点间误码包个数的方法为: 第一端每 发出一个检测包后, 若在预定时间内收到该检测包对应的检测应答包, 则进一步检测该检测应答包的内容是否有误, 在检测出错误的情况下, 则累加误码包个数。 The method according to claim 1, wherein the Qos parameter includes an error packet number, and the method for determining the number of error packets between the two address endpoints is: After the packet, if the detection response packet corresponding to the detection packet is received within a predetermined time, it is further detected whether the content of the detection response packet is incorrect, and when an error is detected, the number of error packets is accumulated.
8、 居权利要求 7所述的方法, 其特征在于, 所述 Qos参数还包 括误码百分比, 且确定该误码百分比的具体方法为: 将所累加的误码包 个数除以所发送的检测包总数。 The method of claim 7, wherein the Qos parameter further includes a percentage error, and the specific method for determining the error percentage is: dividing the accumulated number of error packets by the sent The total number of packets detected.
9、 根据权利要求 1所述的方法, 其特征在于, 所述 Qos参数包括 传输时延, 且所述确定两地址端点间传输时延的方法为: 第一端每发出 一个检测包后, 若在预定时间内收到该检测包对应的检测应答包, 则进 一步检测该检测应答包的内 是否有误, 在检测应答包的内容正确的情 况下, 确定从发送检测包到收到该对应检测应答包的时间差, 作为该检 测包的传输时延。 The method according to claim 1, wherein the Qos parameter includes a transmission delay, and the method for determining a transmission delay between two address endpoints is: after each detection packet is sent by the first end, Receiving the detection response packet corresponding to the detection packet within a predetermined time, further detecting whether there is an error in the detection response packet, and determining whether to send the detection packet to the corresponding detection when the content of the detection response packet is correct The time difference of the response packet is used as the transmission delay of the detection packet.
10、根据权利要求 9 所述的方法, 其特征在于, 所述 Qos参数还包 括平均传输时延, 且确定该平均传输时延的具体方法为: 将所确定的传 输时延的总和除以所述内容正确的检测应答包的总个数。 The method according to claim 9, wherein the Qos parameter further includes an average transmission delay, and the specific method for determining the average transmission delay is: dividing the sum of the determined transmission delays by The total number of correct response packets is described.
11、根据权利要求 9所述的方法, 其特征在于, 所述 Qos参数还包 括抖动时延, 且所述确定两地址端点间抖动时延的方法为: 每发送两次 检测包, 并确定出这两个检测包的传输时延后, 将该两个检测包传输时 延的时间差作为一个抖动时延。 The method according to claim 9, wherein the Qos parameter further comprises a jitter delay, and the method for determining a jitter delay between two address endpoints is: sending a detection packet twice, and determining After the transmission delays of the two detection packets, the time difference between the transmission delays of the two detection packets is taken as a jitter delay.
12、 根据权利要求 11 所述的方法, 其特征在于, 所迷两地址间的 Qos参数还包括平均抖动时延, 且确定平均抖动时延的方法为: 将所确 定的抖动时延的总和除以所述内容正确的检测应答包的总个数。
12. The method according to claim 11, wherein the Qos parameter between the two addresses further comprises an average jitter delay, and the method for determining the average jitter delay is: dividing the sum of the determined jitter delays The total number of response packets is correctly detected with the content.
13、 居权利要求 7至 12任一项所述的方法, 其特征在于, 所述 检测应答包的内容是否有误具体为: 检测该检测应答包的媒体访问控制 层、 IP协议层、 因特网控制报文协议层的内容是否有误。 The method according to any one of claims 7 to 12, wherein the detecting the content of the response packet is incorrect: detecting a media access control layer, an IP protocol layer, and an Internet control of the detection response packet The content of the message protocol layer is incorrect.
14、 根据权利要求 1所述的方法, 其特征在于, 预设检测周期, 在 每个检测周期内重复执行所述步骤 A和步骤 B。 14. The method according to claim 1, wherein the detection period is preset, and the steps A and B are repeatedly performed in each detection period.
15、 才艮据权利要求 1所述的方法, 其特征在于, 所述地址为接口地 址或 IP地址。 15. The method of claim 1, wherein the address is an interface address or an IP address.
16、 根据权利要求 1所述的方法, 其特征在于, 所述检测包为 Ping 检测包、 ARP协议包、 回声包、 或链路控制协议协商包。 The method according to claim 1, wherein the detection packet is a Ping detection packet, an ARP protocol packet, an echo packet, or a link control protocol negotiation packet.
17、 根据权利要求 1至 16任一项所述的方法, 其特征在于, 所述 两地址端点间的路径上包括至少一个路由节点, 该方法进一步包括对各 段路径的 Qos参数检测过程, 具体为: The method according to any one of claims 1 to 16, wherein the path between the two address endpoints includes at least one routing node, and the method further includes a process of detecting a Qos parameter of each segment path, specifically For:
Cl、 所述第一端依次发送编号为 1、 2 的检测包, 每个检测' 包的源地址为第一端点, 目的地址为第二端点; Cl, the first end sequentially sends the detection packets numbered 1, 2, and the source address of each detection 'packet is the first endpoint, and the destination address is the second endpoint;
C2、 对每种编号的检测包间隔发送预定的次数; 收到该检测包的路 由节点将编号减 1 , 并判断编号是否为 0, 是则丟弃该检测包, 向第一 端点返回检测应答包, 其中包括该路由节点的地址; 如果编号不为 0, 则转发所述检测包给下一个路由节点,重复步骤 C2,直到检测包到达所 述第二端点, 由第二端点向第一端点返回检测应答包, 其中包括第二端 点的地址; C2, sending a detection packet interval of each number for a predetermined number of times; the routing node receiving the detection packet decrements the number by 1, and determines whether the number is 0, if yes, discarding the detection packet, and returning detection to the first endpoint a response packet, including an address of the routing node; if the number is not 0, forwarding the detection packet to the next routing node, repeating step C2 until the detection packet reaches the second endpoint, and the second endpoint is first The endpoint returns a detection response packet, including the address of the second endpoint;
C3、 第一端点根据 所接收到的各个路由节点返回的检测应答包的 返回时间和 /或返回质量 确定本第一端点与各个路由节点间的 Qos 参 数。 C3. The first endpoint determines a Qos parameter between the first endpoint and each routing node according to the received return time and/or return quality of the detected response packet returned by each routing node.
18、 根据权利要求 17 所述的方法, 其特征在于, 该方法进一步包 括: 设置 Qos参数的门限值, 依次判断所述第一端点与各个路由节点间
Qos参数是否达到 Qos参数的门限值, 如果达到, 则停止所述对各段路 径的 Qos参数检测, 将故障点和 /或 Qos下降点定位在对应的路由节点 之间; 否则, 如果收到所述第二端点的检测应答包, 则判定所述两地址 端点间的路径检测完毕, 停止所述对各段路径的 Qos参数检测。 The method according to claim 17, wherein the method further comprises: setting a threshold value of the Qos parameter, and sequentially determining between the first endpoint and each routing node Whether the Qos parameter reaches the threshold of the Qos parameter, and if so, stops the Qos parameter detection for each segment path, and locates the fault point and/or the Qos drop point between the corresponding routing nodes; otherwise, if received The detection response packet of the second endpoint determines that the path between the two address endpoints is detected, and stops the Qos parameter detection for each segment path.
19、 一种通信网络中 Qos的检测装置, 其特征在于, 该装置包括: 检测包收发单元, 设置在通信网络中的被检端点上, 用于向对端间 隔发送预定数量的检测包, 在收到对端发送的检测包后向对端返回检测 应答包, 以及用于接收对端返回的检测应答包; A device for detecting a Qos in a communication network, the device comprising: a detection packet transceiver unit, disposed on a detected endpoint in the communication network, configured to send a predetermined number of detection packets to the opposite end interval, Receiving the detection packet sent by the peer end, returning the detection response packet to the opposite end, and receiving the detection response packet returned by the opposite end;
Qos参数计算单元, 与检测包收发单元连接, 根据检测包收发单元 所接收到的对端的检测应答包的返回时间和 /或返回质量确定所述两被 检端点间的 Qos参数。 The Qos parameter calculation unit is connected to the detection packet transceiver unit, and determines a Qos parameter between the two detected endpoints according to a return time and/or a return quality of the detection response packet of the opposite end received by the detection packet transceiver unit.
20、 根据权利要求 19 所述的通信网络中 Qos的检测装置, 其特征 在于, 该检测装置进一步包括告警单元, 用于设置 Qos参数的门限值, 判断所述 Qos参数计算单元确定的 Qos参数是否达到该门限值,如果达 到则触发告警。 The device for detecting Qos in the communication network according to claim 19, wherein the detecting device further comprises an alarm unit, configured to set a threshold value of the Qos parameter, and determine a Qos parameter determined by the Qos parameter calculation unit. Whether the threshold is reached and an alarm is triggered if it is reached.
21、 根据权利要求 20 所述的通信网络中 Qos的检测装置, 其特征 在于, 所述通信网络中具有主备接口且与笫三接口连接; 所述检测装置 设置在所述主备接口和第三接口上, 用于检测主备接口与第三接口的 Qos参数; 并进一步包括切换单元, 与所述告警单元连接, 用于当主备 接口中当前处理业务的接口与该第三接口间的 Qos参数触发告警, 而另 一接口与该第三接口间的 Qos参数没有触发告警时, 切换主备接口。
The apparatus for detecting Qos in a communication network according to claim 20, wherein the communication network has a primary and backup interfaces and is connected to a third interface; the detecting device is disposed on the primary and secondary interfaces and The third interface is configured to detect the QoS parameter of the primary and secondary interfaces and the third interface, and further includes a switching unit, and is connected to the alarm unit, and is used to connect the QoS between the interface currently processing the service and the third interface in the primary and secondary interfaces. When the parameter triggers an alarm, and the QoS parameter between the other interface and the third interface does not trigger an alarm, the active and standby interfaces are switched.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100360258A CN100459528C (en) | 2005-07-14 | 2005-07-14 | Method for inspecting Qos in telecommunication network |
CN200510036025.8 | 2005-07-14 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2007006194A1 true WO2007006194A1 (en) | 2007-01-18 |
Family
ID=37609931
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2006/000968 WO2007006194A1 (en) | 2005-07-14 | 2006-05-15 | A method and a device of detecting the quality of service in a communication network |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN100459528C (en) |
WO (1) | WO2007006194A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756363A (en) * | 2018-11-27 | 2019-05-14 | 平安科技(深圳)有限公司 | Data transmission stability control method, device, computer equipment and storage medium |
CN110912839A (en) * | 2019-12-24 | 2020-03-24 | 北京东土军悦科技有限公司 | Main and standby switch detection method, system, terminal and storage medium |
WO2023024469A1 (en) * | 2021-08-27 | 2023-03-02 | 华为技术有限公司 | Video quality problem determination method and apparatus, storage medium, and program product |
US11647029B2 (en) * | 2017-12-12 | 2023-05-09 | WithSecure Corporation | Probing and responding to computer network security breaches |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101166122B (en) * | 2006-10-18 | 2011-06-22 | 中兴通讯股份有限公司 | A method for locating network failure between communication terminals |
CN101014045B (en) * | 2007-02-02 | 2010-09-01 | 清华大学 | Distributed method of service management in service loading network |
CN101014046B (en) * | 2007-02-02 | 2010-05-19 | 清华大学 | Method for integrating service location with service quality routing in service loading network |
CN101355718B (en) * | 2007-07-25 | 2012-04-04 | 华为技术有限公司 | Method and device for processing secondary activation process initiated by network side |
CN101350740A (en) * | 2007-12-21 | 2009-01-21 | 华为技术有限公司 | Method and system for detecting diathesis caused abnormal QoS |
CN101309213B (en) * | 2008-06-24 | 2012-05-23 | 中国科学院计算技术研究所 | Path switching method and system |
CN101316234B (en) * | 2008-07-02 | 2011-02-02 | 华为技术有限公司 | Route condition detecting method, device and system |
CN101729360B (en) * | 2008-10-22 | 2012-01-04 | 华为技术有限公司 | Method and device for setting path state |
CN101600219A (en) * | 2008-12-18 | 2009-12-09 | 中国移动通信集团浙江有限公司 | A kind of method of monitoring and prewarning service performance |
CN102396259A (en) * | 2009-10-31 | 2012-03-28 | 华为技术有限公司 | Method in a wireless communication system for determining quality of service fulfilment |
WO2012106925A1 (en) * | 2011-07-25 | 2012-08-16 | 华为技术有限公司 | Method, apparatus and system for locating faults in ip network |
CN103404080B (en) * | 2011-11-28 | 2016-10-12 | 华为技术有限公司 | The method and apparatus of detection path communication quality |
CN102843573A (en) * | 2012-07-16 | 2012-12-26 | 上海大学 | Video transmission quality evaluation method implemented by using QoS (quality of service) parameters of wireless local area networks |
CN105721190B (en) * | 2014-12-04 | 2019-06-21 | 华为技术有限公司 | Fault detection method, device and the server of data transfer path |
CN107018001B (en) * | 2016-01-28 | 2020-05-12 | 中国移动通信集团贵州有限公司 | Application fault positioning method and device |
CN106130923A (en) * | 2016-03-28 | 2016-11-16 | 北京肇煜宏泰信息科技有限公司 | A kind of method realizing user data shunting and network system |
CN108206767A (en) * | 2016-12-20 | 2018-06-26 | 北京神州泰岳软件股份有限公司 | A kind of network equipment failure detection method and device |
CN108512673B (en) * | 2017-02-24 | 2021-08-03 | 腾讯科技(深圳)有限公司 | Cloud service quality monitoring method and device and server |
TW201939923A (en) * | 2018-03-09 | 2019-10-01 | 和碩聯合科技股份有限公司 | Network inspection method and network device |
CN111294224B (en) * | 2018-12-10 | 2022-04-22 | 华为技术有限公司 | Method and apparatus for measuring quality of service information |
CN113473541A (en) * | 2020-03-30 | 2021-10-01 | 华为技术有限公司 | Communication method and device |
CN115396336A (en) * | 2022-08-01 | 2022-11-25 | 南京网元通信技术有限公司 | MPLS VPN (Multi-protocol Label switching virtual private network) passenger gathering special line active test method based on software simulation |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000209205A (en) * | 1999-01-20 | 2000-07-28 | Fujitsu I-Network Systems Ltd | Instrument for measuring in-network delay time |
US20040160927A1 (en) * | 2003-02-19 | 2004-08-19 | Yang Zhongjin | Method to measure performance and quality of wireless packet data services for end users |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5477531A (en) * | 1991-06-12 | 1995-12-19 | Hewlett-Packard Company | Method and apparatus for testing a packet-based network |
CN1172481C (en) * | 2002-08-22 | 2004-10-20 | 陈鸣 | Interconnection network end-to-end performance monitoring method and its system |
CA2422258A1 (en) * | 2003-03-14 | 2004-09-14 | Alcatel Canada Inc. | Ethernet route trace |
WO2005022844A1 (en) * | 2003-08-28 | 2005-03-10 | Telefonaktiebolaget Lm Ericsson (Publ) | Resource management system and method for ensuring qos in internet protocol (ip) networks |
-
2005
- 2005-07-14 CN CNB2005100360258A patent/CN100459528C/en not_active Expired - Fee Related
-
2006
- 2006-05-15 WO PCT/CN2006/000968 patent/WO2007006194A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000209205A (en) * | 1999-01-20 | 2000-07-28 | Fujitsu I-Network Systems Ltd | Instrument for measuring in-network delay time |
US20040160927A1 (en) * | 2003-02-19 | 2004-08-19 | Yang Zhongjin | Method to measure performance and quality of wireless packet data services for end users |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11647029B2 (en) * | 2017-12-12 | 2023-05-09 | WithSecure Corporation | Probing and responding to computer network security breaches |
CN109756363A (en) * | 2018-11-27 | 2019-05-14 | 平安科技(深圳)有限公司 | Data transmission stability control method, device, computer equipment and storage medium |
CN110912839A (en) * | 2019-12-24 | 2020-03-24 | 北京东土军悦科技有限公司 | Main and standby switch detection method, system, terminal and storage medium |
CN110912839B (en) * | 2019-12-24 | 2021-11-26 | 北京东土军悦科技有限公司 | Main and standby switch detection method, system, terminal and storage medium |
WO2023024469A1 (en) * | 2021-08-27 | 2023-03-02 | 华为技术有限公司 | Video quality problem determination method and apparatus, storage medium, and program product |
Also Published As
Publication number | Publication date |
---|---|
CN1897547A (en) | 2007-01-17 |
CN100459528C (en) | 2009-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2007006194A1 (en) | A method and a device of detecting the quality of service in a communication network | |
US8891381B2 (en) | Path testing and switching | |
US6829215B2 (en) | IP multi-homing | |
JP4899959B2 (en) | VPN equipment | |
EP2204947A1 (en) | Method and node device of ethernet failure detecting and converging | |
EP2781063B1 (en) | Rerouting technique | |
US20080056142A1 (en) | Test method for message paths in communications networks and redundant network arrangements | |
WO2009046644A1 (en) | A method and device for traffic flow switching | |
US20050099955A1 (en) | Ethernet OAM fault isolation | |
US20050099949A1 (en) | Ethernet OAM domains and ethernet OAM frame format | |
US20100287405A1 (en) | Method and apparatus for internetworking networks | |
US20020196795A1 (en) | Communication relay device with redundancy function for line in network in accordance with WAN environment and communication system using the same | |
WO2007073649A1 (en) | A method and system for obtaining path maximum transfer unit in network | |
JP2003163685A (en) | System and method for providing rapid rerouting of real- time multi-media data flow | |
JP2003158550A (en) | System and method for determining flow quality statistics for real-time transport protocol data flows | |
WO2013071801A1 (en) | Method, device and system for detecting multi-protocol label switching ring network | |
WO2012155817A1 (en) | Loopback testing method, device and system | |
WO2007056929A1 (en) | A method and apparatus for implementing the groups protection in mpls network | |
WO2013185567A1 (en) | Apparatus and method for protecting and switching packet transport network | |
WO2011144158A1 (en) | Method and system for independently implementing fault location by intermediate node | |
WO2006081731A1 (en) | A protection switching method for multi-protocol label switching network | |
WO2009092257A1 (en) | Fault detection method and device for provider backbone transport network | |
CN110166311B (en) | Method, equipment and network system for measuring network performance | |
WO2006089490A1 (en) | A method for implementing fec bfd | |
EP1943787B1 (en) | Method and system for loop-back and continue in packet-based network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWW | Wipo information: withdrawn in national office |
Country of ref document: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 06741858 Country of ref document: EP Kind code of ref document: A1 |