WO2013177894A1 - 用于测量业务流的性能指标的方法和发送端设备 - Google Patents

用于测量业务流的性能指标的方法和发送端设备 Download PDF

Info

Publication number
WO2013177894A1
WO2013177894A1 PCT/CN2012/083465 CN2012083465W WO2013177894A1 WO 2013177894 A1 WO2013177894 A1 WO 2013177894A1 CN 2012083465 W CN2012083465 W CN 2012083465W WO 2013177894 A1 WO2013177894 A1 WO 2013177894A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
measurement
forwarding
packet
service flow
Prior art date
Application number
PCT/CN2012/083465
Other languages
English (en)
French (fr)
Inventor
薛晶
廖猛蛟
刘宏明
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP12877802.4A priority Critical patent/EP2768187B1/en
Publication of WO2013177894A1 publication Critical patent/WO2013177894A1/zh
Priority to US14/288,187 priority patent/US9391868B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Definitions

  • the performance of the network traffic flow can be measured, for example, by performance indicators including packet loss rate and delay.
  • the sender device when it is required to measure the performance indicator of the service flow between the sender device and the receiver device, the sender device inserts a special protocol packet as a measurement packet in the service flow, and passes the The measurement packet carries the original parameters, such as the number of packets sent by the sending device during the period of sending the two measurement packets, to trigger the receiving end to perform the corresponding measurement action, and obtain the measurement result.
  • the measurement results may be inaccurate. Summary of the invention
  • the embodiment of the present invention provides a method for measuring a performance indicator of a service flow, and a device for transmitting a device, which can solve the problem in the prior art because a special protocol packet is inserted into the service flow as a measurement packet.
  • the measurement packets are consistent with the forwarding attributes of the service flows (the forwarding attributes include forwarding paths and forwarding priorities), which may result in inaccurate measurement results.
  • the embodiment of the present invention provides a method for measuring a performance indicator of a service flow, where: the sending end device constructs a first measurement packet, where the first measurement packet is used to trigger the receiving end device to measure the service flow.
  • a performance indicator the forwarding attribute of the first measurement packet is the same as the forwarding attribute of the packet of the service flow, so that the forwarding path of the first measurement packet and the service flow are The forwarding path of the packet is the same, and the forwarding priority of the first measurement packet is the same as the forwarding priority of the packet of the service flow, and the first measurement packet carries the first identifier for indicating the first
  • a measurement packet is not a packet of the service flow; the sender device sends the first measurement packet to the receiver device.
  • the embodiment of the present invention provides a transmitting end device for measuring a performance indicator of a service flow, including: constructing a message unit, configured to construct a first measurement message, where the first measurement message is used to trigger
  • the receiving device measures the performance indicator of the service flow, and the forwarding attribute of the first measurement packet is the same as the forwarding attribute of the packet of the service flow, so that the forwarding path of the first measurement packet and the service flow are
  • the forwarding path of the packet is the same, and the forwarding priority of the first measurement packet is the same as the forwarding priority of the packet of the service flow, and the first measurement packet carries the first identifier for indicating the first
  • a measurement message is not a message of the service flow; and a message unit is configured to send the first measurement message to the receiving device.
  • the method for transmitting the performance indicator of the service flow and the sending end device of the embodiment of the present invention sends the measurement packet with the same forwarding attribute as the forwarding attribute of the service flow to the receiving end device to trigger the receiving end device.
  • the performance indicator of the service flow is measured, and the measurement packet can be forwarded according to the path of the service flow, and the packet is out of sequence, so that the accuracy of the performance indicator measurement of the service flow can be improved.
  • FIG. 1 is a flow chart of a method for measuring performance indicators of a service flow according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a transmitting end device for measuring performance indicators of a service flow according to an embodiment of the present invention
  • FIG. 3 is another transmitting end device for measuring performance indicators of a service flow according to an embodiment of the present invention
  • Schematic diagram. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The technical solutions of the embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments.
  • an embodiment of the present invention provides a method for measuring a performance indicator of a service flow, including:
  • the transmitting device configures a first measurement packet, where the first measurement packet is used to trigger the receiving end device to measure the performance indicator of the service flow, and the forwarding attribute of the first measurement packet and the packet of the service flow.
  • the forwarding attributes are the same, such that the forwarding path of the first measurement packet is the same as the forwarding path of the packet of the service flow, and the forwarding priority of the first measurement packet is the same as the packet of the service flow.
  • the forwarding priority is the same.
  • the first measurement packet carries a first identifier, which is used to indicate that the first measurement packet is not a packet of the service flow.
  • the sending end device sends the first measurement packet to the receiving end device.
  • the sending end device and the receiving end device may be network devices such as a router and a switch, and the sending end device forwards the service flow to the receiving end device.
  • the sending end device constructs a first measurement message, and sends the first measurement message to the receiving end device.
  • the forwarding attribute of the first measurement packet is the same as the forwarding attribute of the packet of the service flow, so that the first measurement packet and the packet of the service flow have the same forwarding path and forwarding priority.
  • the same forwarding attribute is used to ensure that the packet is not out of sequence.
  • the out-of-sequence packet refers to the packet that is sent later.
  • the first measurement packet carries a first identifier, and is used to indicate that the first measurement packet is not a packet of the service flow.
  • the first measurement packet is an IP (Internet Protocol) packet in a Layer 3 protocol packet
  • the first identifier may be carried in an Option field of an IP packet header. For example, a new option with a serial number of 26 is defined.
  • IP ⁇ ⁇ ⁇ ⁇ forwarding path by IP ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ , , , , , Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Source Control Protocol, TCP) or User Datagram Protocol (UDP) source port number (TCP or UDP Source Port), TCP or UDP destination port number (TCP or UDP Destination Port), where TCP or UCP is IP
  • TCP User Datagram Protocol
  • TCP or UDP Destination Port TCP or UDP Destination Port
  • the quintuple in the header of the first measurement packet is the same as the quintuple in the header of the service flow, and in the header of the first measurement packet.
  • the value of the service type is the same as the value of the service type in the header of the service flow packet.
  • the Ethernet packet in the Layer 2 protocol packet is used as an example.
  • the common Ethernet packet is two types.
  • the RFC894 Ethernet packet (Ethernet-II) is used. One is 802.1Q Ethernet.
  • the first identifier may be carried in the type Type field of the RFC894 Ethernet header, or in the Type/Length/Type field in the 802.1Q, for example, a type with a value of 0x1011.
  • the forwarding path of the Ethernet 4 text is determined by the Destination Media Access Control (DMAC) in the Ethernet header.
  • DMAC Destination Media Access Control
  • the value of the DMAC in the packet header of the first measurement packet is the same as the value of the DMAC in the packet header of the service flow packet.
  • the 802.1Q tag field in the Ethernet header of the 802.1Q includes the priority PRI subfield, and the forwarding priority of the Ethernet packet in the 802.1Q is determined by the value of the priority subfield.
  • the value of the priority in the packet header of the first measurement packet is the same as the value of the priority in the packet header of the service flow packet.
  • the receiving device After receiving the packet of the service flow and the first measurement packet, the receiving device determines whether the first measurement packet carries the first identifier, for example, for the IP packet, determining the The option header of the first measurement packet has an option number of 26; for the Ethernet packet, determining that the value of the type field in the header of the first measurement packet is 0x1011, The first measurement message is not a message of the service flow. Then, the receiving end device starts a corresponding action for measuring a performance indicator of the service flow, where the performance indicator includes one or more of a packet loss rate and a delay.
  • the performance indicator includes one or more of a packet loss rate and a delay.
  • the sending end device is sending the After the measurement packet is sent, the service flow is continuously sent, and the statistics are sent to the receiving end device after the sending end device sends the first measurement message to the receiving end device in a preset interval.
  • the number of packets of the service flow (for the convenience of subsequent description, the number of packets sent by the sending device in the measurement interval).
  • the preset interval may be a time interval or a packet interval of the service flow. For example, the interval can be set to 2 seconds, and the packets of the 10,000 service flows can be set.
  • the sending end device constructs a second measurement packet, and the forwarding attribute of the second measurement packet is the same as the forwarding attribute of the packet of the service flow, so that the second measurement packet and the The packets of the service flow have the same forwarding path and forwarding priority.
  • the sending end device carries the number of the packets sent by the sending end in the second measurement packet.
  • the second measurement packet is an IP packet, and may be carried in a Type Length Value in a selection field of the sequence number 26 in the packet header of the second measurement packet.
  • the sending end device sends the second measurement message to the receiving end device.
  • the number of the packets sent by the sending device in the measurement interval may not be sent by using the second measurement packet, but may be sent to the receiving device by being carried in the protocol packet. It is called a protocol packet, which is used to distinguish it from the measurement packet.
  • the forwarding attribute of the protocol packet is different from the packet of the service flow.
  • the protocol packet does not need to be strictly ordered with the service flow.
  • the sending end device constructs a first protocol packet, where the first protocol packet carries the number of packets sent by the sending end device in the measurement interval, and the packet header of the first protocol packet The packet header of the packet of the service flow is different.
  • the second measurement message may be constructed first, and then the number of packets sent by the sending end device in the measurement interval may be counted, and when the statistics are finished, the second measurement text is sent.
  • the receiving device after receiving the first measurement message and the second measurement message, the receiving device triggers an action of the device to measure a performance indicator of the service flow.
  • the receiving device After receiving the first measurement message, start a counter, and count the number of packets of the service flow that arrive after the first measurement message; and when the second measurement message is received, record a value of the counter, the value corresponding to the number of packets of the service flow that arrives after the first measurement packet is received when the second measurement packet is received (for the convenience of subsequent description, It is called the number of packets received by the receiving device in the measurement interval).
  • Receiving, by the receiving device, the second measurement packet Or obtaining, from the received first protocol packet, the number of packets sent by the sending end device in the measurement interval, and determining a packet loss rate of the service flow.
  • the number of packets sent by the sending device in the measurement interval is 1000, and the number of packets received by the receiving device in the measurement interval is 999, and the packet loss rate of the service flow is determined to be a thousandth.
  • the performance indicator is a delay: the first measurement packet may carry time information when the measurement packet is sent.
  • the time measurement information is carried in the type length value (Type Length Value) in the selection field of the sequence number 26 in the packet header of the first measurement packet, for example, the first measurement packet is an IP packet.
  • the sending end device may also construct a second protocol packet, and the time information is carried in the second protocol packet and sent to the receiving end device (the second protocol packet and the first The protocol message type is the same).
  • the receiving end device records the time when the first measurement packet is received, and calculates a delay of the service flow.
  • the packet type of the service flow includes a Layer 2 protocol packet or a Layer 3 protocol packet.
  • the embodiment of the present invention can be used to measure performance indicators of a Layer 2 service flow and a Layer 3 service flow.
  • the embodiments of the present invention are exemplified by IP packets and Ethernet packets, but the same idea can be extended to other Layer 2 protocols, such as Asynchronous Transfer Mode (ATM) and Point-to-Point Protocol (PPP). ), Frame Relay (FR), High Level Data Link Control (HDLC), etc.
  • the sending end device may periodically send the measurement packet to the receiving end device.
  • the packet type of the first protocol packet and the second protocol packet may be the same as the packet type of the service flow, or may be different, and may carry the measurement end to send the measurement packet. Time information or the number of packets sent by the sending device within the measurement interval.
  • the method for measuring the performance indicator of the service flow in the embodiment of the present invention the sending end device sends a measurement packet with the same forwarding attribute as the packet of the service flow to the receiving end device to trigger the receiving end device to measure the service.
  • the performance indicator of the traffic, the measurement packet can be forwarded according to the path of the service flow, and the packet is not out of sequence, so that the performance indicator of the service flow can be improved. The accuracy of the measurement.
  • an embodiment of the present invention provides a sending end device for measuring performance indicators of a service flow, including:
  • Constructing a message unit 201 configured to construct a first measurement message, where the first measurement message is used to trigger a performance parameter of the service device to measure the service flow, and the forwarding attribute of the first measurement message and the service flow
  • the forwarding attributes of the packets are the same, such that the forwarding path of the first measurement packet is the same as the forwarding path of the packet of the service flow, and the forwarding priority of the first measurement packet is related to the service flow.
  • the forwarding priority of the packet is the same.
  • the first measurement packet carries a first identifier, which is used to indicate that the first measurement packet is not a packet of the service flow.
  • the sending message unit 202 is configured to send the first measurement message to the receiving end device.
  • the performance indicator is a packet loss rate
  • the first measurement packet is specifically configured to trigger the receiving end device to start counting the number of received packets of the service flow, refer to FIG.
  • the configuration message unit 201 is further configured to construct a second measurement message, where the second measurement message is used to trigger the receiving end device to record the received number of the service flow packets, and the second measurement report
  • the forwarding attribute of the text is the same as the forwarding attribute of the packet of the service flow, so that the forwarding path of the second measurement packet is the same as the forwarding path of the packet of the service flow, and the second measurement packet is
  • the forwarding priority is the same as the forwarding priority of the packet of the service flow, and the second measurement packet carries the second identifier to indicate that the second measurement packet is not the packet of the service flow.
  • the sending end device further includes a statistic unit 203, configured to send, after the sending end device sends the first measurement message to the receiving end device, to the receiving end device, in a preset interval.
  • the number of packets of the service flow is not limited to a statistic unit 203, configured to send, after the sending end device sends the first measurement message to the receiving end device, to the receiving end device, in a preset interval. The number of packets of the service flow.
  • the sending unit 202 is further configured to: when the statistics unit 203 counts the number of the packets, send the second measurement packet and the number of the packets to the receiving device.
  • the configuration unit 201 is further configured to construct a first protocol, where the first protocol packet carries the number of the packet, and the forwarding attribute of the first protocol packet is related to the service flow.
  • the forwarding attributes of the packets are different, so that the forwarding path of the first protocol packet is different from the forwarding path of the packet of the service flow, or the forwarding priority of the first protocol packet is related to the service flow.
  • the forwarding priority of packets is different.
  • the first measurement packet carries a timestamp of sending the first measurement packet.
  • the configuration message unit 201 is further configured to construct a second protocol packet, where the second protocol packet carries a timestamp of sending the first measurement packet.
  • the forwarding attribute of the second protocol packet is different from the forwarding attribute of the packet of the service flow, so that the forwarding path of the second protocol packet is different from the forwarding path of the packet of the service flow.
  • the priority of the second protocol packet is different from the forwarding priority of the packet of the service flow.
  • the sending message unit 202 is further configured to send the second protocol message to the receiving end device.
  • the transmitting end device for measuring the performance indicator of the service flow in the embodiment of the present invention sends the measurement message with the same forwarding attribute of the packet of the service flow to the receiving end device to trigger the receiving device measurement station.
  • the performance indicator of the service flow, the measurement packet can be forwarded according to the path of the service flow, and the packet out of sequence does not occur, so the accuracy of the performance indicator measurement of the service flow can be improved.
  • the units in the embodiments shown in Figures 2 and 3 can be combined into one or more units. Also for example, the units can all be implemented by hardware.
  • a person of ordinary skill in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, for example, for example.
  • the media can include: a read only memory, a read-only memory, a disk or a compact disc, and the like.
  • the method for measuring the performance indicator of the service flow and the sender device are described in detail above, but the description of the above embodiment is only used to help understand the method and core idea of the present invention, and should not be construed as Limitations of the invention. Those skilled in the art will be able to devise variations or substitutions within the scope of the present invention within the scope of the present invention.

Landscapes

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

Abstract

一种用于测量业务流的性能指标的方法,包括:发送端设备构造测量报文,所述测量报文用于触发接收端设备测量所述业务流的性能指标,所述测量报文与所述业务流的报文的转发属性相同,向接收端发送所述测量报文。该方法通过采用与所述业务流的报文的转发属性相同的测量报文,可以解决现有技术中测量性能指标不准确的问题。

Description

用于测量业务流的性能指标的方法和发送端设备
本申请要求于 2012 年 5 月 29 日提交中国专利局、 申请号为 201210171739.X, 发明名称为"用于测量业务流的性能指标的方法和发送端 设备"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术领域, 具体涉及一种用于测量业务流的性能指标 的方法和发送端设备。 背景技术
网络业务流的性能, 举例来说, 可以用包括丟包率、 时延等性能指标 来衡量。 现有技术中, 当需要测量在发送端设备和接收端设备之间的业务流的 性能指标时, 发送端设备在业务流中间隔性地插入专门的协议报文作为测 量报文, 并通过该测量报文携带发送端设备统计的原始参数,例如发送端设 备在发送两个测量报文期间内发送的业务流的报文数量, 以触发接收端进 行相应的测量动作, 得到测量结果, 这样得到的测量结果可能会不准确。 发明内容
本发明实施例提供一种用于测量业务流的性能指标的方法和发送端设 备, 可以解决现有技术因在业务流中间隔性地插入专门的协议报文作为测 量报文, 不能保证这种测量报文和业务流的转发属性一致(转发属性包括 转发路径和转发优先级), 导致测量结果可能会不准确的问题。
一方面, 本发明实施例提供一种用于测量业务流的性能指标的方法, 包括: 发送端设备构造第一测量报文, 所述第一测量报文用于触发接收端设 备测量业务流的性能指标, 所述第一测量报文的转发属性与所述业务流的 报文的转发属性相同, 以使得所述第一测量报文的转发路径与所述业务流 的报文的转发路径相同并且所述第一测量报文的转发优先级与所述业务流 的报文的转发优先级相同, 所述第一测量报文携带第一标识用于表明所述 第一测量报文不是所述业务流的报文; 所述发送端设备向所述接收端设备发送所述第一测量报文。 另一方面, 本发明实施例提供一种用于测量业务流的性能指标的发送 端设备, 包括: 构造报文单元, 用于构造第一测量报文, 所述第一测量报文用于触发 接收端设备测量业务流的性能指标, 所述第一测量报文的转发属性与所述 业务流的报文的转发属性相同, 以使得所述第一测量报文的转发路径与所 述业务流的报文的转发路径相同并且所述第一测量报文的转发优先级与所 述业务流的报文的转发优先级相同, 所述第一测量报文携带第一标识用于 表明所述第一测量报文不是所述业务流的报文; 发送报文单元, 用于向所述接收端设备发送所述第一测量报文。 本发明实施例的用于测量业务流的性能指标的方法和发送端设备, 通 过发送端设备向接收端设备发送与所述业务流的报文的转发属性相同的测 量报文以触发接收端设备测量所述业务流的性能指标, 测量报文可以按照 所述业务流的路径转发, 并且不会出现报文失序, 因此可以提高所述业务 流的性能指标测量的准确性。
附图说明 图 1 是本发明实施例提供的一种用于测量业务流的性能指标的方法流 程图;
图 2是本发明实施例提供的一种用于测量业务流的性能指标的发送端 设备的示意图; 图 3是本发明实施例提供的又一种用于测量业务流的性能指标的发送 端设备的示意图。 具体实施方式 下面通过附图和实施例, 对本发明实施例的技术方案做进一步的详细 描述。 如图 1 所示, 本发明实施例提供一种用于测量业务流的性能指标的方 法, 包括:
101、 发送端设备构造第一测量报文, 所述第一测量报文用于触发接收 端设备测量业务流的性能指标, 所述第一测量报文的转发属性与所述业务 流的报文的转发属性相同, 以使得所述第一测量报文的转发路径与所述业 务流的报文的转发路径相同并且所述第一测量报文的转发优先级与所述业 务流的报文的转发优先级相同, 所述第一测量报文携带第一标识用于表明 所述第一测量报文不是所述业务流的报文。
102、 所述发送端设备向所述接收端设备发送所述第一测量报文。 举例来说, 发送端设备和接收端设备可以是路由器、 交换机等网络设 备, 所述发送端设备转发业务流给所述接收端设备。 当需要测量所述业务 流的性能指标时, 所述发送端设备构造第一测量报文, 向所述接收端设备 发送所述第一测量报文。 所述第一测量报文的转发属性和所述业务流的报 文的转发属性相同, 以使得所述第一测量报文和所述业务流的报文具有相 同的转发路径和转发优先级, 釆用相同的转发属性可以保证不会出现报文 失序的情况, 报文失序指后发的报文先到, 例如在所述第一测量报文后发 的所述业务流的报文反而先到所述接收端设备, 或所述第一测量报文的转 发路径与没有按照所述业务流的路径转发, 从而提高所述业务流的性能指 标测量结果的准确性。 所述第一测量报文携带第一标识, 用于表明所述第一测量报文不是所 述业务流的报文。 以所述第一测量报文是三层协议报文中的 IP ( Internet Protocol, 网络协 议)报文为例, 所述第一标识可以携带在 IP报文头的选项 Options字段中, 例如新定义一种序号为 26的选项。 IP · ^艮文的转发路径, 由 IP · ^艮文头中的 五元组, 即源 IP地址( Source Address ), 目的 IP地址 (Destination Address), 协议号 (Protocol), 传输控制协议 ( Transmission Control Protocol, TCP )或 用户数据才艮协议(User Datagram Protocol , UDP ) 源端口号 (TCP or UDP Source Port), TCP或 UDP目的端口号 (TCP or UDP Destination Port)确定, 其中 TCP或 UCP是 IP报文中的净荷 (Payload)部分 ;IP报文的转发优先级, 由 IP报文头中的服务类型(Type of Service )确定。 所述第一测量报文的报 文头中的五元组和所述业务流 ^艮文的 ^艮文头中的五元组相同, 以及所述第 一测量报文的报文头中的服务类型的值和所述业务流报文的报文头中的服 务类型的值相同。 以所述第一测量报文的报文是二层协议报文中以太网报文为例, 常见 的以太网报文有两种, 一种是 RFC894以太网报文(即 Ethernet— II ) , 一种 是 802.1Q以太网 ^艮文。 所述第一标识可以携带在 RFC894以太网 4艮文头的 类型 Type字段中, 或 802.1Q中的类型长度 /类型 (Length/Type)字段中, 例 如新增一种值为 0x1011的类型。 以太网 4艮文的转发路径, 由以太网 4艮文头 中的目的媒体接入控制地址( Destination Media Access Control, DMAC )确 定。 所述第一测量报文的报文头中的 DMAC的值, 和所述业务流报文的报 文头中的 DMAC的值相同。 在 802.1Q中的以太网 4艮文头中的 802.1Q Tag 字段中, 包括优先级 PRI子字段, 802.1Q中的以太网报文的转发优先级, 由优先级子字段的值确定, 所述第一测量报文的报文头中的优先级的值, 和所述业务流报文的报文头中的优先级的值相同。 所述接收端设备在收到所述业务流的报文和所述第一测量报文后, 判 断所述第一测量报文中是否携带有第一标识, 例如对于 IP报文, 确定所述 第一测量报文的报文头中有选项序号为 26的选项; 对于以太网报文, 确定 所述第一测量报文的报文头中的类型字段的值是 0x1011 , 因此得知所述第 一测量报文不是所述业务流的报文。 之后, 所述接收端设备启动测量所述 业务流的性能指标的相应动作, 所述性能指标包括丟包率和时延中的一种 或者多种。
可选地, 如果所述性能指标为丟包率, 所述发送端设备在发送所述第 一测量报文后, 继续发送所述业务流, 在预设的间隔内, 统计在所述发送 端设备向所述接收端设备发送所述第一测量报文之后发往所述接收端设备 的所述业务流的报文数量(为方便后续描述, 称为发送端设备在测量区间 内发送的报文数量)。 预设的间隔, 可以是时间间隔, 也可以是所述业务流 的报文数量间隔。 例如可以设置间隔时间为 2秒, 也可以设置间隔 1万个 所述业务流的报文。 统计完时, 所述发送端设备构造第二测量报文, 所述 第二测量报文的转发属性和所述业务流的报文的转发属性相同, 以使得所 述第二测量报文和所述业务流的报文具有相同的转发路径和转发优先级。 所述发送端设备在所述第二测量报文携带发送端发送的报文数量。 以 所述第二测量报文是 IP报文举例, 可以在所述第二测量报文的报文头中序 号为 26的选择字段中的类型长度值( Type Length Value ) 中携带。 所述发送端设备向所述接收端设备发送所述第二测量报文。 又举例来说, 所述发送端设备在测量区间内发送的报文数量, 可以不 通过所述第二测量报文发送, 而是可以通过携带在协议报文中发送给所述 接收端设备。 称之为协议报文, 是为了和测量报文区分, 协议报文的转发 属性和所述业务流的报文是不同的, 协议报文不需要和业务流的报文严格 保序。 例如, 所述发送端设备构造第一协议报文, 所述第一协议报文携带 所述发送端设备在测量区间内发送的报文数量, 所述第一协议报文的报文 头与所述业务流的报文的报文头不相同。 在这种情况下, 可以先构造所述 第二测量报文, 之后再统计所述发送端设备在测量区间内发送的报文数量, 统计完时, 发送所述第二测量 文。 相应地, 所述接收端设备在收到所述第一测量报文和所述第二测量报 文后, 触发设备测量所述业务流的性能指标的动作。 例如, 收到所述第一 测量报文后, 启动计数器, 计数在所述第一测量报文之后到达的所述业务 流的报文的数量; 收到所述第二测量报文时, 记录计数器的值, 该值对应 截至到收到所述第二测量报文时, 所收到的在所述第一测量报文之后到达 的所述业务流的报文的数量(为方便后续描述, 称为接收端设备在测量区 间内接收到的报文数量)。 所述接收端设备从收到的所述第二测量报文中, 或从收到的所述第一协议报文中, 获取所述发送端设备在测量区间内发送 的报文数量, 确定所述业务流的丟包率。 例如, 所述发送端设备在测量区 间内发送的报文数量为 1000, 所述接收端设备在测量区间内接收到的报文 数量为 999, 则确定所述业务流丟包率为千分之一。 可选地, 如果所述性能指标为时延: 在第一测量报文中可以携带发送该测量报文时的时间信息。 以所述第 一测量报文是 IP报文举例,可以在所述第一测量报文的报文头中序号为 26 的选择字段中的类型长度值(Type Length Value ) 中携带所述时间信息。 当 然, 所述发送端设备也可以构造第二协议报文, 将该时间信息携带在所述 第二协议报文中发送给所述接收端设备(所述第二协议报文与所述第一协 议报文类型相同)。 相应地, 所述接收端设备记录收到所述第一测量报文的时间, 计算所 述业务流的时延。 所述业务流的报文类型包括二层协议报文或三层协议报文, 本发明实 施例可以用于测量二层业务流和三层业务流的性能指标。 本发明实施例以 I P报文和以太网报文举例, 但相同的思路可以扩展到其他二层协议, 例如 异步传输模式 ( Asynchronous Transfer Mode , ATM ) , 点对点协议 ( Point-to-Point Protocol, PPP ), 帧中继 (Frame Relay, FR ), 高级数据链 路控制 ( High level Data Link Control, HDLC )等。 可选地, 所述发送端设备可以周期性地向所述接收端设备发送测量报 文。 本发明实施例中, 所述第一协议报文和所述第二协议报文的报文类型 可以和所述业务流的报文类型相同, 也可以不同, 能够携带发送端发送测 量报文的时间信息或发送端设备在测量区间内发送的报文数量。 本发明实施例的用于测量业务流的性能指标的方法,通过发送端设备 向接收端设备发送与所述业务流的报文的转发属性相同的测量报文以触发 接收端设备测量所述业务流的性能指标, 测量报文可以按照所述业务流的 路径转发, 并且不会出现报文失序, 因此可以提高所述业务流的性能指标 测量的准确性。
请参考图 2 ,本发明的一个实施例提供一种用于测量业务流的性能指标 的发送端设备, 包括:
构造报文单元 201 , 用于构造第一测量报文, 所述第一测量报文用于触 发接收端设备测量业务流的性能指标, 所述第一测量报文的转发属性与所 述业务流的报文的转发属性相同, 以使得所述第一测量报文的转发路径与 所述业务流的报文的转发路径相同并且所述第一测量报文的转发优先级与 所述业务流的报文的转发优先级相同, 所述第一测量报文携带第一标识用 于表明所述第一测量报文不是所述业务流的报文。
发送报文单元 202, 用于向所述接收端设备发送所述第一测量报文。 举例来说,如果所述性能指标为丟包率时, 所述第一测量报文具体用于 触发所述接收端设备开始计数接收到的所述业务流的报文数量, 参考图 3 , 所述构造报文单元 201 还用于构造第二测量报文, 所述第二测量报文 用于触发所述接收端设备记录接收到的所述业务流的报文数量, 所述第二 测量报文的转发属性与所述业务流的报文的转发属性相同, 以使得所述第 二测量报文的转发路径与所述业务流的报文的转发路径相同并且所述第二 测量报文的转发优先级与所述业务流的报文的转发优先级相同, 所述第二 测量报文携带第二标识用于表明所述第二测量报文不是所述业务流的报 文。
所述发送端设备还包括统计单元 203 , 用于在预设的间隔内, 统计在所 述发送端设备向所述接收端设备发送所述第一测量报文之后发往所述接收 端设备的所述业务流的报文数量。
相应地, 所述发送^艮文单元 202还用于所述统计单元 203统计完所述 报文数量时, 向所述接收端设备发送所述第二测量报文和所述报文数量。
例如, 所述报文数量携带在所述第二测量报文中, 相应地, 所述构造 文单元 201构造所述第二测量 文在所述统计单元 203统计完所述 "^文 数量时执行。 又例如, 所述构造^艮文单元 201 还用于构造第一协议 文, 所述第一 协议报文携带所述报文数量, 所述第一协议报文的转发属性与所述业务流 的报文的转发属性不相同, 以使得所述第一协议报文的转发路径与所述业 务流的报文的转发路径不相同或者所述第一协议报文的转发优先级与所述 业务流的报文的转发优先级不相同。 举例来说, 如果所述性能指标为时延, 所述第一测量报文中还携带发 送所述第一测量报文的时间戳。 又举例来说, 如果所述性能指标为时延, 所述构造报文单元 201 还用 于构造第二协议报文, 所述第二协议报文携带发送所述第一测量报文的时 间戳, 所述第二协议报文的转发属性与所述业务流的报文的转发属性不相 同, 以使得所述第二协议报文的转发路径与所述业务流的报文的转发路径 不相同或者所述第二协议报文的优先级与所述业务流的报文的转发优先级 不相同。 相应地, 所述发送报文单元 202还用于向所述接收端设备发送所述第 二协议 4艮文。 本发明实施例的用于测量业务流的性能指标的发送端设备, 通过发送 端设备向接收端设备发送与所述业务流的报文的转发属性相同的测量报文 以触发接收端设备测量所述业务流的性能指标, 测量报文可以按照所述业 务流的路径转发, 并且不会出现报文失序, 因此可以提高所述业务流的性 能指标测量的准确性。 举例来说, 图 2和图 3所示实施例中的单元可以合并为一个或者多个 单元。 又举例来说, 所述单元均可通过硬件来实现。 本领域普通技术人员可 以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令 相关的硬件来完成, 该程序可以存储于一计算机可读存储介质中, 举例来 说, 存储介质可以包括: 只读存储器、 随即读取存储器、 磁盘或光盘等。 以上对本发明实施例的用于测量业务流的性能指标的方法和发送端设 备进行了详细介绍, 但以上实施例的说明只是用于帮助理解本发明的方法 及其核心思想, 不应理解为对本发明的限制。 本技术领域的技术人员在本 发明揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的 保护范围之内。

Claims

权利要求
1、 一种用于测量业务流的性能指标的方法,其特征在于,包括: 发送端设备构造第一测量报文,所述第一测量报文用于触发接收端设 备测量业务流的性能指标,所述第一测量报文的转发属性与所述业务流的 报文的转发属性相同 ,以使得所述第一测量报文的转发路径与所述业务流 的报文的转发路径相同并且所述第一测量报文的转发优先级与所述业务流 的报文的转发优先级相同 ,所述第一测量报文携带第一标识用于表明所述 第一测量报文不是所述业务流的报文;
所述发送端设备向所述接收端设备发送所述第一测量报文。
2、 根据权利要求 1所述的方法,其特征在于,如果所述性能指标为丟 包率,所述第一测量报文具体用于触发所述接收端设备开始计数接收到的 所述业务流的报文数量,所述方法还包括:
所述发送端设备构造第二测量报文,所述第二测量报文用于触发所述 接收端设备记录接收到的所述业务流的报文数量,所述第二测量报文的转 发属性与所述业务流的报文的转发属性相同 ,以使得所述第二测量报文的 转发路径与所述业务流的报文的转发路径相同并且所述第二测量报文的转 发优先级与所述业务流的报文的转发优先级相同 ,所述第二测量报文携带 第二标识用于表明所述第二测量报文不是所述业务流的报文; 在预设的间隔内 ,所述发送端设备统计在所述发送端设备向所述接收 端设备发送所述第一测量报文之后发往所述接收端设备的所述业务流的报 文数量;
统计完所述报文数量时,所述发送端设备向所述接收端设备发送所述 第二测量报文和所述报文数量。
3、 根据权利要求 2所述的方法,其特征在于,所述报文数量携带在所 述第二测量报文中 ,相应地,所述构造第二测量报文在所述统计完所述报 文数量时执行。
4、 根据权利要求 2所述的方法,其特征在于,所述向接收端设备发送 所述第二测量报文和所述报文数量,包括:
所述发送端设备向所述接收端设备发送所述第二测量报文;
所述发送端设备构造第一协议报文,所述第一协议报文携带所述报文 数量,所述第一协议报文的转发属性与所述业务流的报文的转发属性不相 同 ,以使得所述第一协议报文的转发路径与所述业务流的报文的转发路径 不相同或者所述第一协议报文的转发路径与所述业务流的报文的转发优先 级不相同;
所述发送端设备向所述接收端设备发送所述第一协议报文。
5、根据权利要求 1所述的方法,其特征在于,如果所述性能指标为时延, 所述第一测量报文中还携带发送所述第一测量报文的时间戳。
6、根据权利要求 1所述的方法,其特征在于,如果所述性能指标为时延, 所述方法还包括:
所述发送端设备构造第二协议报文,所述第二协议报文携带发送所述 第一测量报文的时间戳,所述第二协议报文的转发属性与所述业务流的报 文的转发属性不相同 ,以使得所述第二协议报文的转发路径与所述业务流 的报文的转发路径不相同或者所述第二协议报文的转发路径与所述业务流 的报文的转发优先级不相同;
所述发送端设备向所述接收端设备发送所述第二协议报文。
7、根据权利要求 1至 6任一所述的方法,其特征在于,所述业务流的报文 包括:二层协议报文或三层协议报文。
8、 一种用于测量业务流的性能指标的发送端设备,其特征在于,包括: 构造报文单元,用于构造第一测量报文,所述第一测量报文用于触发 接收端设备测量业务流的性能指标,所述第一测量报文的转发属性与所述 业务流的报文的转发属性相同 ,以使得所述第一测量报文的转发路径与所 述业务流的报文的转发路径相同并且所述第一测量报文的转发优先级与所 述业务流的报文的转发优先级相同 ,所述第一测量报文携带第一标识用于 表明所述第一测量报文不是所述业务流的报文;
发送报文单元,用于向所述接收端设备发送所述第一测量报文。
9、 根据权利要求 8所述的发送端设备,其特征在于,如果所述性能指 标为丟包率,所述第一测量报文具体用于触发所述接收端设备开始计数接 收到的所述业务流的报文数量;
所述构造报文单元还用于构造第二测量报文,所述第二测量报文用于 触发所述接收端设备记录接收到的所述业务流的报文数量,所述第二测量 报文的转发属性与所述业务流的报文的转发属性相同 ,以使得所述第二测 量报文的转发路径与所述业务流的报文的转发路径相同并且所述第二测量 报文的转发优先级与所述业务流的报文的转发优先级相同 ,所述第二测量 报文携带第二标识用于表明所述第二测量报文不是所述业务流的报文; 所述发送端设备还包括统计单元,用于在预设的间隔内 ,统计在所述 发送端设备向所述接收端设备发送所述第一测量报文之后发往所述接收端 设备的所述业务流的报文数量;
相应地,所述发送报文单元还用于所述统计单元统计完所述报文数量 时, 向所述接收端设备发送所述第二测量报文和所述报文数量。
10、 根据权利要求 9所述的发送端设备,其特征在于,所述报文数量携 带在所述第二测量报文中 ,相应地,所述构造报文单元构造所述第二测量 报文在所述统计单元统计完所述报文数量时执行。
11、 根据权利要求 9所述的发送端设备,其特征在于,所述构造报文单 元还用于构造第一协议报文,所述第一协议报文携带所述报文数量,所述 第一协议报文的转发属性与所述业务流的报文的转发属性不相同, 以使得 所述第一协议报文的转发路径与所述业务流的报文的转发路径不相同或者 所述第一协议报文的转发优先级与所述业务流的报文的转发优先级不相 同。
12、 根据权利要求 8所述的发送端设备,其特征在于,如果所述性能指 标为时延,所述第一测量报文中还携带发送所述第一测量报文的时间戳。
13、 根据权利要求 8所述的发送端设备,其特征在于,如果所述性能指 标为时延,
所述构造报文单元还用于构造第二协议报文,所述第二协议报文携带 发送所述第一测量报文的时间戳,所述第二协议报文的转发属性与所述业 务流的报文的转发属性不相同 ,以使得所述第二协议报文的转发路径与所 述业务流的报文的转发路径不相同或者所述第二协议报文的优先级与所述 业务流的报文的转发优先级不相同;
相应地,所述发送报文单元还用于向所述接收端设备发送所述第二协 议报文。
PCT/CN2012/083465 2012-05-29 2012-10-25 用于测量业务流的性能指标的方法和发送端设备 WO2013177894A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP12877802.4A EP2768187B1 (en) 2012-05-29 2012-10-25 Method for measuring traffic performance indicator and transmission side device
US14/288,187 US9391868B2 (en) 2012-05-29 2014-05-27 Method and sending-end device for measuring performance indicator of service flow

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210171739.XA CN102685014B (zh) 2012-05-29 2012-05-29 用于测量业务流的性能指标的方法和发送端设备
CN201210171739.X 2012-05-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/288,187 Continuation US9391868B2 (en) 2012-05-29 2014-05-27 Method and sending-end device for measuring performance indicator of service flow

Publications (1)

Publication Number Publication Date
WO2013177894A1 true WO2013177894A1 (zh) 2013-12-05

Family

ID=46816399

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/083465 WO2013177894A1 (zh) 2012-05-29 2012-10-25 用于测量业务流的性能指标的方法和发送端设备

Country Status (4)

Country Link
US (1) US9391868B2 (zh)
EP (1) EP2768187B1 (zh)
CN (1) CN102685014B (zh)
WO (1) WO2013177894A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685014B (zh) 2012-05-29 2014-06-25 华为技术有限公司 用于测量业务流的性能指标的方法和发送端设备
US20190014029A1 (en) * 2015-12-30 2019-01-10 Telecom Italia S.P.A. Performance measurement in a packet-switched communication network
CN112311614B (zh) * 2019-07-30 2022-10-04 华为技术有限公司 评估网络节点相关传输性能的系统、方法以及相关设备
CN112532468B (zh) * 2019-09-19 2023-03-28 华为技术有限公司 网络测量系统、方法、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056215A (zh) * 2006-04-14 2007-10-17 华为技术有限公司 一种网络性能测量方法及系统
CN101197737A (zh) * 2008-01-09 2008-06-11 中兴通讯股份有限公司 一种iptv接入网的测量装置及测量方法
US20080276001A1 (en) * 2007-05-02 2008-11-06 Spirent Communications Of Rockville, Inc. Quality of experience indicator for network diagnosis
CN102301651A (zh) * 2009-05-15 2011-12-28 华为技术有限公司 网络性能测量的方法、装置和系统
CN102685014A (zh) * 2012-05-29 2012-09-19 华为技术有限公司 用于测量业务流的性能指标的方法和发送端设备

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793976A (en) * 1996-04-01 1998-08-11 Gte Laboratories Incorporated Method and apparatus for performance monitoring in electronic communications networks
US7716330B2 (en) * 2001-10-19 2010-05-11 Global Velocity, Inc. System and method for controlling transmission of data packets over an information network
CN100583784C (zh) * 2005-03-30 2010-01-20 华为技术有限公司 在多协议标签交换网络中监测丢包率的方法
CN101729384B (zh) * 2008-10-15 2013-04-17 华为技术有限公司 一种标签交换方法、装置和系统
CN101854268B (zh) * 2009-04-04 2013-06-05 华为技术有限公司 Ip网络性能测量、服务质量控制的方法、装置和系统
US8963366B2 (en) 2011-10-04 2015-02-24 Hitachi, Ltd. System for power transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056215A (zh) * 2006-04-14 2007-10-17 华为技术有限公司 一种网络性能测量方法及系统
US20080276001A1 (en) * 2007-05-02 2008-11-06 Spirent Communications Of Rockville, Inc. Quality of experience indicator for network diagnosis
CN101197737A (zh) * 2008-01-09 2008-06-11 中兴通讯股份有限公司 一种iptv接入网的测量装置及测量方法
CN102301651A (zh) * 2009-05-15 2011-12-28 华为技术有限公司 网络性能测量的方法、装置和系统
CN102685014A (zh) * 2012-05-29 2012-09-19 华为技术有限公司 用于测量业务流的性能指标的方法和发送端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2768187A4 *

Also Published As

Publication number Publication date
US20140313927A1 (en) 2014-10-23
CN102685014B (zh) 2014-06-25
EP2768187B1 (en) 2016-12-21
EP2768187A4 (en) 2014-11-19
US9391868B2 (en) 2016-07-12
CN102685014A (zh) 2012-09-19
EP2768187A1 (en) 2014-08-20

Similar Documents

Publication Publication Date Title
KR101459252B1 (ko) Traceroute_delay 진단 커맨드
US8724503B2 (en) Sub-path E2E probing
TW536890B (en) Scalable real-time quality of service monitoring and analysis of service dependent subscriber satisfaction in IP networks
WO2017000750A1 (zh) 测量终端上运行的业务的质量的方法、设备及系统
JP2004112791A (ja) ネットワーク動作パラメータを測定する方法
WO2014048137A1 (zh) 网络丢包测量方法、装置和系统
WO2014139461A1 (zh) 网络性能监测方法及装置
WO2012066371A1 (en) Systems and methods for measuring available capacity and tight link capacity of ip paths from a single endpoint
WO2006133635A1 (fr) Procede de mesure des parametres de performance du reseau a commutation multiprotocole par etiquette
WO2008010918A2 (en) Methods and apparatus for improved determination of network metrics
WO2010003365A1 (zh) 一种测量互联网协议传输网服务质量的方法和装置
EP2754267B1 (en) Feedback protocol for end-to-end multiple path network systems
WO2013060163A1 (zh) 丢包检测方法和系统、发送设备及接收设备
EP2140613A1 (en) Method and apparatus for performance monitoring in a communications network
WO2011144114A2 (zh) 探测路径信息的方法、设备及系统
WO2013177894A1 (zh) 用于测量业务流的性能指标的方法和发送端设备
WO2007056915A1 (en) A method for measuring mpls network performance parameter and device and system for transmitting packet
WO2007033555A1 (fr) Procede, dispositif et systeme d'obtention d'un parametre d'efficacite de liaison
WO2010130102A1 (zh) 网络性能测量的方法、装置和系统
WO2011124184A2 (zh) 丢包处理方法、目的网络节点设备及移动传输网络系统
WO2013078594A1 (zh) 检测路径通信质量的方法和设备
WO2014000509A1 (zh) 一种传输监控方法及装置
EP1879349A1 (en) Method of measuring packet loss
EP2704362A2 (en) Method, apparatus and system for analyzing network transmission characteristics
US20230063253A1 (en) Recording packet loss in a network

Legal Events

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

Ref document number: 12877802

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2012877802

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012877802

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE