WO2011120470A2 - Method and device for medium stream performance monitoring - Google Patents
Method and device for medium stream performance monitoring Download PDFInfo
- Publication number
- WO2011120470A2 WO2011120470A2 PCT/CN2011/073825 CN2011073825W WO2011120470A2 WO 2011120470 A2 WO2011120470 A2 WO 2011120470A2 CN 2011073825 W CN2011073825 W CN 2011073825W WO 2011120470 A2 WO2011120470 A2 WO 2011120470A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- media stream
- data
- performance monitoring
- data packet
- sequence number
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Classifications
-
- 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/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- 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/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/106—Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
Definitions
- the embodiments of the present invention relate to communication technologies, and in particular, to a media stream performance monitoring method and device. Background technique
- the data packets of the media stream are usually transmitted through the network.
- a certain link or a node fails, you need to quickly locate the link and device where the fault occurs. Repair the device. And links to ensure the normal operation of the business.
- the CC (communication counter) in the TS (Transport Stream) packet calculates the network packet loss.
- CC is a field in the TS header that occupies 4 bits and can represent 0 to 15. According to the discontinuity of CC, it can be determined how many TS packets are lost.
- Another method is to use RTP header serial number and timestamp for RTP (Real Time Transport Protocol) packets to calculate network packet loss and jitter.
- the RTP sequence number is a 16-bit field of the RTP header, which is usually incremented by one for each RTP packet sent.
- the RTP timestamp is a 32-bit field of the RTP header used to record time with a time precision of microseconds.
- calculating the network packet loss according to the CC in the TS stream depends on the TS information of the application layer, and calculating the network packet loss and jitter according to the sequence number and the timestamp in the RTP packet depends on the application layer RTP information, if the network application is not used. If RTP or TS encapsulates a data packet, the performance of the media stream cannot be monitored by the above two methods. Summary of the invention
- the embodiments of the present invention provide a media stream performance monitoring method and device, which are used to solve the defect that the existing media stream performance monitoring method relies on the packet application layer encapsulation information, and provide a general media stream performance monitoring method.
- An embodiment of the present invention provides a media stream performance monitoring method, including:
- the media stream performance monitoring data includes a timestamp of the IP data packet and a sequence number of the IP data packet;
- the IP data packet filled with the media stream performance monitoring data is sent to the downstream node.
- the embodiment of the invention further provides a media stream performance monitoring method, including:
- the upstream node Receiving, by the upstream node, an IP data packet including media stream performance monitoring data;
- the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet;
- the embodiment of the invention further provides a media stream transmission device, including:
- a filling module configured to fill the media stream performance monitoring data in the IP data packet;
- the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet;
- a transmitter configured to send, to the downstream node, the IP data packet that is filled with the media stream performance monitoring data.
- the embodiment of the invention further provides a media stream performance monitoring device, including:
- a receiver configured to receive an IP data packet that includes the media stream performance monitoring data sent by the upstream node, where the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet;
- the performance monitoring module is configured to monitor performance of the media stream according to the media stream performance monitoring data.
- the node that sends the IP data packet encapsulates the media stream performance monitoring data in the IP data packet
- the network node that receives the IP data packet monitors the media stream performance of the network according to the media stream performance monitoring data therein. For example, the number of packet loss, delay, and jitter of the network. Since the embodiment of the present invention adopts a general IP encapsulation to encapsulate a media stream, media stream performance monitoring can be implemented in the absence of application layer encapsulation information.
- FIG. 1 is a flowchart of a media stream performance monitoring method according to an embodiment of the present invention
- FIG. 2 is a flowchart of another method for monitoring media stream performance according to an embodiment of the present invention
- FIG. 3 is an application scenario diagram of FIG. 2;
- FIG. 4 is a flowchart of still another method for monitoring performance of a media stream according to an embodiment of the present invention
- FIG. 5 is a flowchart of another method for monitoring performance of a media stream according to an embodiment of the present invention
- FIG. 7 is an application scenario diagram of FIG.
- FIG. 8 is a schematic structural diagram of a media stream transmission device according to an embodiment of the present invention
- FIG. 8B is a schematic diagram of another media transmission device according to an embodiment of the present invention
- FIG. 8C is a schematic diagram of another embodiment of the present invention
- FIG. 8 is a schematic structural diagram of another media transmission device according to an embodiment of the present invention
- FIG. 9A is a schematic structural diagram of a media stream performance monitoring device according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a media stream performance monitoring method according to an embodiment of the present invention.
- the technical solution of the media stream performance monitoring method is mainly described from the perspective of a node that transmits an IP data packet.
- the node that sends the IP packet can be a terminal device or a network side device.
- the embodiment includes: Step 11: Fill media data performance monitoring data in an IP data packet; the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending serial number of the IP data packet.
- Step 12 Send an IP packet filled with media stream performance monitoring data to the downstream node.
- the media stream performance monitoring data is filled into the IP data packet.
- the media stream performance monitoring data can be filled in each IP packet of the media stream.
- media stream performance monitoring data can also be populated once every few IP packets. For example, the media stream is sampled, and the media stream performance monitoring data is filled in the sampled IP packet.
- the sending time stamp of the IP data packet may be the system time when the IP data packet is sent.
- the transmission sequence number of the IP packet can be the order in which the IP packets are sent.
- a counter can be set for the media stream to be monitored.
- the sending sequence number of the IP packet can be the value of the counter.
- the media stream accumulates one for each IP packet sent.
- the initial value of the counter can be set arbitrarily, for example, the initial value is 0.
- the counter can also count only the number of IP packets that have been sent in the media stream and are filled with the transmission sequence number.
- the IP header includes a 16-bit identification field and an option field.
- the media stream performance monitoring data may be multiplexed in the 16 identification field of the IP header, or the media stream performance monitoring data may be populated into the option field of the IP header.
- the option field of the IP header is a variable length optional field in the IP header with a maximum length of 40 bytes. Table 1 shows the IP header structure.
- the data timestamp and the transmission sequence number can be simultaneously multiplexed in the 16-bit identification field of the IP header, and the transmission timestamp and the transmission sequence number each occupy the IP address. Identify several bits of the field.
- the sending time stamp and the sending sequence number can also be time-multiplexed in the 16 identifier field of the IP header, that is, the sending time stamp and the sending sequence number are respectively filled in the IP identification fields of the two IP data packets.
- the sending timestamp and the sending sequence number may be simultaneously multiplexed in the option field of the IP header, and the sending timestamp and the sending sequence number each occupy the option field of the IP header.
- the transmission time stamp and the transmission sequence number can also be time-multiplexed in the option field of the IP header of the IP header, that is, the transmission time stamp and the transmission sequence number are respectively filled in the option fields of the IP headers of the two IP packets.
- time-multiplex the 16-bit identification field or option field of the IP header There are several ways to time-multiplex the 16-bit identification field or option field of the IP header. For example, fill the transmission sequence number in the first IP packet, and fill the transmission timestamp in the second IP packet. The IP data packet is filled with the transmission sequence number, and the fourth IP data packet is filled with the transmission time stamp... and so on, and one IP packet is filled with one transmission time stamp every interval. Another example, in the first IP packet, and fill the transmission timestamp in the second IP packet.
- the IP data packet is filled with the transmission sequence number
- the fourth IP data packet is filled with the transmission time stamp... and so on
- one IP packet is filled with one transmission time stamp every interval.
- One IP packet is filled with the transmission sequence number, and the second, third, and fourth IP packets are filled with the transmission timestamp, and the fifth IP packet is filled with the transmission sequence number, at the sixth, seventh, and eighth.
- the IP data packet is filled with the transmission timestamp respectively... and so on, each time three IP data packets are filled with a transmission sequence number.
- the time-multiplexing can identify whether the current IP data packet is filled with a sending time stamp or a serial number by using multiple methods. One method is to use the highest bit of the 16-bit identification field to identify the current The lower 15 bits of the identification field of the IP header are filled with the transmission timestamp or the transmission sequence number.
- Another method is to use message time division multiplexing, multiplexing into serial numbers for a period of time, and multiplexing into time stamps for another period of time.
- the network node agrees that the IP data packet in a certain period of time, in which the identification field of the IP header is multiplexed is the transmission time stamp, and the IP data packet in another time period, where the IP header is identified in the identification field Is to send the serial number.
- the node that sends the IP data packet encapsulates the media stream performance monitoring data in the IP data packet, and the downstream node that receives the IP data packet monitors the data according to the media stream performance therein, and monitors the network.
- Media stream performance such as network packet loss, delay, and media layer performance monitoring when layering information is encapsulated.
- the embodiments of the present invention can be used for performance monitoring of media streams, and can also be used for fault demarcation and positioning of network devices.
- FIG. 2 is a flowchart of another method for monitoring media stream performance according to an embodiment of the present invention.
- Figure 3 is an application scenario diagram of Figure 2.
- the identification field of the IP header may be multiplexed on the outgoing interface board of the upstream node. That is, the transmission sequence number and the transmission time stamp are multiplexed in the identification field of the IP header.
- This embodiment mainly describes how the upstream node fills the transmission sequence number and the transmission timestamp in the identification field of the IP header by using the message time division multiplexing method.
- this embodiment includes:
- Step 21 Receive an IP packet of the media stream to be monitored.
- Step 22 Determine whether the transmission time stamp is filled in the IP packet. If yes, go to step 23, otherwise go to step 24.
- the identification field multiplexing policy adopted in this embodiment is: every time one IP data packet is filled with one transmission time stamp, and the IP data packet that is not filled with the transmission time stamp is filled with the transmission sequence number. In step 22, it is determined according to the foregoing identification field multiplexing policy whether to fill the IP data packet with a transmission time stamp.
- Step 23 Fill the current system time as the sending timestamp of the IP packet to the IP header The identification field of the department.
- the number of bits of system time that is populated into the identification field can be based on the system's requirements for time accuracy. The more data bits occupied by the send timestamp, the higher the time precision indicated. Therefore, when the time precision is high, more data bits can be extracted from the system time and filled into the identification field.
- Step 24 Fill in the value of the counter as the transmission sequence number of the IP packet to the identification field of the IP header, and accumulate the counter by one.
- a 16-bit counter is set for the media stream to be monitored, and is used to count the number of IP packets that have been sent in the media stream and filled with the transmission sequence number.
- the number of bits filled into the counter in the identification field can depend on the stream density of the system. Therefore, several bits of the extractable counter are filled into the identification field of the IP header. The more data bits the serial number occupies, the higher the stream density. When the stream density is high, the more packets are represented, more data bits can be extracted from the counter and filled into the IP identification field.
- Step 25 Calculate the IP header checksum and populate the corresponding fields in the IP packet.
- Step 26 Add link layer information in the IP data packet, calculate CRC (Cyclic Redundancy Check), and fill the calculated CRC into the corresponding field in the IP data packet.
- CRC Cyclic Redundancy Check
- Step 27 Send an IP packet filled with media stream performance monitoring data to the downstream node.
- the identification field of the IP header is a mandatory field in the IP packet
- the method of filling the transmission time stamp and the transmission sequence number into the identification field of the IP header is versatile, and the network node can monitor the performance of any media stream.
- FIG. 4 is a flowchart of still another method for monitoring performance of a media stream according to an embodiment of the present invention.
- This embodiment mainly explains how the upstream node fills the transmission sequence number and the transmission timestamp into the option field of the IP header at the same time.
- the IP header contains an option field.
- the send timestamp and the send sequence number can be carried in the option field of the IP header.
- the general format of the option field of the IP header is 1 byte code (code), one byte length (len), and one byte pointer (ptr).
- the option field of the entire IP header with the length including the first 3 bytes is a maximum of 40 bytes.
- this embodiment includes:
- Step 41 Receive an IP data packet of the media stream to be monitored.
- Step 42 Determine whether the media stream performance monitoring data can be filled in the option field of the IP header. If yes, go to step 43, otherwise go to step 46.
- the number of bytes occupied by the padding data must be an integral multiple of 4.
- information such as the type and length added in it needs to occupy at least 2 to 3 bytes of space, and the number of bytes occupied by information such as type and length must be satisfied.
- An integer multiple of 4 is required. Therefore, when filling the media stream performance monitoring data in the option field of the IP header, at least 8 bytes of space are required.
- the other fields of the IP header have a fixed length of 20 bytes, and the total length of the IP header's option field and the IP header's other fields is 60 bytes. Therefore, the media stream performance monitoring data can be filled in the option field when the IP header length is less than or equal to 52 bytes before the media stream performance monitoring data is filled. If the IP header length is greater than 52 bytes before filling, the media stream performance monitoring data cannot be filled in the option field.
- Step 44 Modify the length of the IP packet header and the total length of the IP packet.
- the length of the IP header is calculated, and the value of the 4-bit header length field of the IP header is modified according to the calculation result. And calculate the total length of the IP packet, and modify the value of the 16-bit total length field of the IP header according to the calculation result.
- Step 45 Implement IP fragmentation processing according to the MTU (Maximum Transmission Unit).
- the length of the MTU represents the maximum number of bytes that can be transmitted at one time. After the send timestamp and the send sequence number are filled in the option field, the total length of the IP packet increases. When the total length of the IP packet is greater than the length of the MTU, the IP packet is fragmented, that is, an IP packet is divided into multiple IP packets for transmission. Step 46: Calculate the IP header checksum and populate the corresponding fields in the IP packet.
- FIG. 5 is a flowchart of still another method for monitoring media stream performance according to an embodiment of the present invention. This embodiment mainly describes the technical solution of the media stream performance monitoring method from the perspective of the node that receives the IP data packet. As shown in FIG. 5, this embodiment includes:
- the jitter of the media stream can be monitored according to the transmission timestamp in the two IP data packets and the arrival time of the two IP data packets.
- the number of lost packets is the number of lost packets in the media stream.
- Delay is a packet that is lost during transmission Time spent.
- the delay of the data packet is usually expressed by the difference between the actual arrival time of the data packet and the actual transmission time.
- various reasons such as a large number of P2P traffic, file downloads, and VoIP calls
- jitter reflects the delay variation of two packets.
- the reference value of jitter is 200ms, that is, the range allowed by jitter is 0 ⁇ 200ms.
- the jitter reaches 200ms, it indicates that the transmission jitter begins to change significantly.
- the quality of the media stream playback has not been immediately caused, the media stream should be monitored.
- FIG. 6 is a flowchart of still another method for monitoring media stream performance according to an embodiment of the present invention.
- Figure 7 is an application scenario diagram of Figure 6.
- the path includes three network side devices: network side device R3, network side device R2, and network side device R1.
- the upstream node adds the transmission timestamp and the transmission sequence number of the IP data packet to the IP data packet of the media stream transmitted on the path, in the path.
- the upstream node in turn monitors the network's packet loss, delay, and jitter.
- a network device that has lost packets may be a failed device.
- this embodiment includes:
- Step 60 R3 receives an IP packet filled with a media stream with a transmission timestamp and a transmission sequence number.
- the number of lost packets can be calculated according to Equation 1 and Equation 2.
- pkt num lost pkt num expected - pkt num received ( Equation 2)
- pkt_ nu m_ ex p eC ted represented filled with a desired received transmission sequence number of IP packets Number
- Pkt_mim_r ece i ve d represents the actually received transmission sequence number is filled with the number of IP packets
- max_ Se q represents the largest sequence number received
- S t represents the number of lost packets
- basejeq represents the minimum sequence number received.
- the formula 2 can monitor the number of lost packets in the media stream that have been filled with the transmission sequence number of the IP packet during transmission.
- the delay can be calculated according to Equation 3, and the jitter can be calculated according to Equation 4.
- Step 62 R3 modifies the transmission timestamp and the transmission sequence number in the IP data packet.
- Step 63 R3 forwards the modified IP data packet to the downstream node R2.
- Step 64 R2 calculates the packet loss, delay, and jitter of the media stream according to the sending timestamp and the sending sequence number in the IP data packet.
- Step 65 R3 modifies the transmission timestamp and the transmission sequence number in the IP data packet.
- Step 67 R1 calculates the packet loss, delay, and jitter of the media stream according to the sending timestamp and the sending sequence number in the IP data packet.
- Table 2 shows the number of packets and jitter on R3, R2, and R1.
- Packet loss 0 0 0 20 20 20 Jitter (ms) 80 100 100 280 280 100
- the sender fills the IP data packet with the transmission timestamp and the transmission sequence number, and the receiving end receives the IP data packet according to the IP address.
- the timestamp and the transmission sequence number are sent in the data packet, and the number of lost packets, delay, and jitter are calculated.
- the sending timestamp and the sending sequence number are modified, so that the downstream node can calculate the network packet loss, delay, and the sending time according to the sending timestamp and the sending sequence number in the IP data packet. shake.
- the filling module 81 is configured to fill the media stream performance monitoring data in the IP data packet; the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet.
- the transmitter 82 is configured to send, to the downstream node, the IP data packet after the filling module 81 fills the media stream performance monitoring data.
- the embodiment further includes: an accumulation module 83 on the basis of FIG. 8A.
- the accumulating module 83 is configured to accumulate the counters before the transmitter 82 sends the IP data packets to the downstream node.
- the counter is used to count the number of transmitted IP packets in the media stream, or to count the number of IP packets that have been sent in the media stream and are filled with the transmission sequence number.
- the filling module 81 includes a first filling unit 811 and a second filling unit 812.
- the first padding unit 811 is configured to simultaneously fill the sending timestamp and the sending sequence number in an identifier field of an IP header in an IP data packet.
- the second padding unit 812 is configured to time-separate the sending timestamp and the sending sequence number in an identifier field of an IP header in two IP data packets.
- the filling module 81 includes a third filling unit 813 and a fourth filling unit 814.
- the third padding unit 813 is configured to fill the sending timestamp and the sending sequence number in an option field of the IP header in an IP data packet.
- the fourth padding unit 814 is configured to time-separate the sending timestamp and the sending sequence number in an option field of an IP header in two IP data packets.
- the filling module 81 may also include a first filling unit 811, a second filling unit 812, a third filling unit 813, and a fourth filling unit 814.
- a first filling unit 811 a second filling unit 812
- a third filling unit 813 a third filling unit 813
- a fourth filling unit 814 a fourth filling unit 814.
- the filling module 81 of the media stream transmission device encapsulates the media stream performance monitoring data in the IP data packet, and the transmitter 82 sends the IP data packet after the filling module 81 fills the media stream performance monitoring data to the downstream node.
- the downstream node that receives the IP data packet monitors the data according to the media stream performance of the network, and monitors the media stream performance of the network, such as the number of packet loss, delay, and jitter of the network.
- the media stream transmission device uses a general IP encapsulation to encapsulate the media stream, and the downstream node can implement media stream performance monitoring when the application layer encapsulation information is lacking.
- FIG. 9A is a schematic structural diagram of a media stream performance monitoring device according to an embodiment of the present invention. As shown in FIG. 9A, the embodiment includes: a receiver 91 and a performance monitoring module 92.
- the receiver 91 is configured to receive an IP data packet that includes the media stream performance monitoring data that is sent by the upstream node, where the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet.
- the performance monitoring module 92 is configured to monitor performance of the media stream according to the media stream performance monitoring data.
- the performance monitoring module 92 includes: a packet loss monitoring unit 921 and jitter monitoring. Unit 922.
- the packet loss monitoring unit 921 is configured to monitor the number of lost packets of the media stream according to the received maximum transmission sequence number, the minimum transmission sequence number, and the number of received IP data packets including the transmission sequence number.
- the jitter monitoring unit 922 is configured to monitor the jitter of the media stream according to the sending timestamp in the two IP data packets and the arrival time of the two IP data packets.
- the upstream node encapsulates the media stream performance monitoring data in the IP data packet.
- the performance monitoring module 92 monitors the data according to the media stream performance monitoring data.
- Media stream performance such as network packet loss, latency, and jitter.
- the media streaming device uses a general IP encapsulation to encapsulate the media stream, and the performance monitoring module 92 can implement media stream performance monitoring in the absence of application layer encapsulation information.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
媒体流性能监控方法及设备 Media stream performance monitoring method and device
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种媒体流性能监控方法及设 备。 背景技术 The embodiments of the present invention relate to communication technologies, and in particular, to a media stream performance monitoring method and device. Background technique
媒体流的数据包通过网络传输通常存在网络丟包和抖动, 网络在实际的 运营中, 若某段链路或者是某个节点发生故障, 需要快速定位出故障发生的 链路和设备, 修复设备和链路, 保障业务的正常进行。 为了得到用户体验的 客观情况, 需要对用户所请求的媒体流实施监测, 监测该媒体流的丟包、 抖 动和时延, 当出现较大的异常 (丟包率增大、 时延值偏大或抖动值偏大) 时 需要监测网络传输设备是否存在故障。 The data packets of the media stream are usually transmitted through the network. In the actual operation, if a certain link or a node fails, you need to quickly locate the link and device where the fault occurs. Repair the device. And links to ensure the normal operation of the business. In order to obtain the objective situation of the user experience, it is necessary to monitor the media stream requested by the user, and monitor the packet loss, jitter, and delay of the media stream. When a large abnormality occurs, the packet loss rate increases and the delay value is large. Or the jitter value is too large) It is necessary to monitor the network transmission equipment for faults.
在媒体流传输过程中, 为监测网络丟包和抖动情况, 一种方法是, 根据 In the process of media streaming, in order to monitor network packet loss and jitter, one method is
TS ( Transport Stream, 传输流)包中的 CC ( continuity counter, 连续计数器 ) 来计算网络丟包。 CC是 TS头部的一个字段, 占用 4位, 可表示 0到 15。 根据 CC 的不连续, 可以判定丟失了多少个 TS包。 另一种方法是对 RTP ( Real Time Transport Protocol, 实时传输协议)包使用 RTP头部的序列号和时间戳来计算 网络丟包和抖动。 RTP序列号为 RTP头部的 1个 16位的字段, 通常每发送一个 RTP包该数值加一。 RTP时间戳为 RTP头部的一个 32位字段, 用来记录时间, 时间精度为微秒。 The CC (communication counter) in the TS (Transport Stream) packet calculates the network packet loss. CC is a field in the TS header that occupies 4 bits and can represent 0 to 15. According to the discontinuity of CC, it can be determined how many TS packets are lost. Another method is to use RTP header serial number and timestamp for RTP (Real Time Transport Protocol) packets to calculate network packet loss and jitter. The RTP sequence number is a 16-bit field of the RTP header, which is usually incremented by one for each RTP packet sent. The RTP timestamp is a 32-bit field of the RTP header used to record time with a time precision of microseconds.
然而,根据 TS流中的 CC计算网络丟包依赖于应用层的 TS信息, 根 据 RTP 包中的序列号和时间戳来计算网络丟包和抖动依赖于应用层的 RTP信息, 如果网络应用没有使用 RTP或 TS来封装数据包, 则无法通过 上述两种方法实现媒体流性能的监控。 发明内容 However, calculating the network packet loss according to the CC in the TS stream depends on the TS information of the application layer, and calculating the network packet loss and jitter according to the sequence number and the timestamp in the RTP packet depends on the application layer RTP information, if the network application is not used. If RTP or TS encapsulates a data packet, the performance of the media stream cannot be monitored by the above two methods. Summary of the invention
本发明实施例提供一种媒体流性能监控方法及设备, 用以解决现有的 媒体流性能监控方法依赖于数据包应用层封装信息的缺陷, 提供了通用的 媒体流性能监控方法。 The embodiments of the present invention provide a media stream performance monitoring method and device, which are used to solve the defect that the existing media stream performance monitoring method relies on the packet application layer encapsulation information, and provide a general media stream performance monitoring method.
本发明实施例提供一种媒体流性能监控方法, 包括: An embodiment of the present invention provides a media stream performance monitoring method, including:
在 IP数据包中填充媒体流性能监控数据; 所述媒体流性能监控数据 包括所述 IP数据包的时间戳和所述 IP数据包的序列号; Filling the media stream performance monitoring data in the IP data packet; the media stream performance monitoring data includes a timestamp of the IP data packet and a sequence number of the IP data packet;
向下游节点发送所述填充了媒体流性能监控数据的 IP数据包。 The IP data packet filled with the media stream performance monitoring data is sent to the downstream node.
本发明实施例还提供一种媒体流性能监控方法, 包括: The embodiment of the invention further provides a media stream performance monitoring method, including:
接收上游节点发送的包括媒体流性能监控数据的 IP数据包; 所述媒体 流性能监控数据包括所述 IP数据包的发送时间戳和所述 IP数据包的发送序 列号; Receiving, by the upstream node, an IP data packet including media stream performance monitoring data; the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet;
根据所述媒体流性能监控数据, 监控媒体流的性能。 Monitoring the performance of the media stream according to the media stream performance monitoring data.
本发明实施例还提供一种媒体流传输设备, 包括: The embodiment of the invention further provides a media stream transmission device, including:
填充模块, 用于在 IP数据包中填充媒体流性能监控数据; 所述媒体 流性能监控数据包括所述 IP数据包的发送时间戳和所述 IP数据包的发送 序列号; a filling module, configured to fill the media stream performance monitoring data in the IP data packet; the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet;
发送器, 用于向下游节点发送所述填充了媒体流性能监控数据的 IP 数据包。 And a transmitter, configured to send, to the downstream node, the IP data packet that is filled with the media stream performance monitoring data.
本发明实施例还提供一种媒体流性能监控设备, 包括: The embodiment of the invention further provides a media stream performance monitoring device, including:
接收器, 用于接收上游节点发送的包括媒体流性能监控数据的 IP数 据包; 所述媒体流性能监控数据包括所述 IP数据包的发送时间戳和所述 IP数据包的发送序列号; a receiver, configured to receive an IP data packet that includes the media stream performance monitoring data sent by the upstream node, where the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet;
性能监控模块, 用于根据所述媒体流性能监控数据, 监控媒体流的性 能。 本发明实施例媒体流中, 发送 IP数据包的节点在 IP数据包中封装了 媒体流性能监控数据, 接收到 IP数据包的网络节点根据其中的媒体流性 能监控数据,监控网络的媒体流性能, 例如网络的丟包数、 时延和抖动等。 由于本发明实施例采用了通用的 IP 封装来封装媒体流, 能够在缺少应用 层封装信息时实现媒体流性能监控。 附图说明 The performance monitoring module is configured to monitor performance of the media stream according to the media stream performance monitoring data. In the media stream of the embodiment of the present invention, the node that sends the IP data packet encapsulates the media stream performance monitoring data in the IP data packet, and the network node that receives the IP data packet monitors the media stream performance of the network according to the media stream performance monitoring data therein. For example, the number of packet loss, delay, and jitter of the network. Since the embodiment of the present invention adopts a general IP encapsulation to encapsulate a media stream, media stream performance monitoring can be implemented in the absence of application layer encapsulation information. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例提供的一种媒体流性能监控方法流程图; FIG. 1 is a flowchart of a media stream performance monitoring method according to an embodiment of the present invention;
图 2为本发明实施例提供的另一 -种媒体流性能监控方法流程图; 图 3为图 2的应用场景图; FIG. 2 is a flowchart of another method for monitoring media stream performance according to an embodiment of the present invention; FIG. 3 is an application scenario diagram of FIG. 2;
图 4为本发明实施例提供的再一 -种媒体流性能监控方法流程图; 图 5为本发明实施例提供的又一 -种媒体流性能监控方法流程图; 图 6为本发明实施例提供的还一 -种媒体流性能监控方法流程图; 图 7为图 6的应用场景图; FIG. 4 is a flowchart of still another method for monitoring performance of a media stream according to an embodiment of the present invention; FIG. 5 is a flowchart of another method for monitoring performance of a media stream according to an embodiment of the present invention; A further flow chart of a media stream performance monitoring method; FIG. 7 is an application scenario diagram of FIG.
图 8A为本发明实施例提供的一种媒体流传输设备结构示意图; 图 8B为本发明实施例提供的另一种媒体传输设备结;沟示意图; 图 8C为本发明实施例提供的又一种媒体传输设备结;沟示意图; 图 8D为本发明实施例提供的再一种媒体传输设备结构示意图; 图 9A为本发明实施例提供的一种媒体流性能监控设备结构示意图; 图 9B为本发明实施例提供的另一种媒体流性能监控设备结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 FIG. 8 is a schematic structural diagram of a media stream transmission device according to an embodiment of the present invention; FIG. 8B is a schematic diagram of another media transmission device according to an embodiment of the present invention; FIG. 8C is a schematic diagram of another embodiment of the present invention; FIG. 8 is a schematic structural diagram of another media transmission device according to an embodiment of the present invention; FIG. 9A is a schematic structural diagram of a media stream performance monitoring device according to an embodiment of the present invention; Another schematic diagram of the structure of the media stream performance monitoring device provided by the embodiment. detailed description The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
图 1为本发明实施例提供的一种媒体流性能监控方法流程图。 本实施例 主要从发送 IP数据包的节点角度说明媒体流性能监控方法的技术方案。发送 IP数据包的节点可为终端设备或网络侧设备。 如图 1所示, 本实施例包括: 步骤 11 : 在 IP数据包中填充媒体流性能监控数据;媒体流性能监控数据 包括 IP数据包的发送时间戳和 IP数据包的发送序列号。 FIG. 1 is a flowchart of a media stream performance monitoring method according to an embodiment of the present invention. In this embodiment, the technical solution of the media stream performance monitoring method is mainly described from the perspective of a node that transmits an IP data packet. The node that sends the IP packet can be a terminal device or a network side device. As shown in FIG. 1, the embodiment includes: Step 11: Fill media data performance monitoring data in an IP data packet; the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending serial number of the IP data packet.
步骤 12: 向下游节点发送填充了媒体流性能监控数据的 IP数据包。 终端设备或网络侧设备向下游节点发送 IP数据包之前,将媒体流性能监 控数据填充到 IP数据包中。 在填充媒体流性能监控数据时, 可在媒体流的每 个 IP数据包中都填充媒体流性能监控数据。 为提高系统性能, 也可以每间隔 几个 IP数据包填充一次媒体流性能监控数据。 例如, 对媒体流进行采样, 在 采样出的 IP数据包中填充媒体流性能监控数据。 其中, IP数据包的发送时间 戳可为发送 IP数据包时的系统时间。 IP数据包的发送序列号可为 IP数据包 被发送的次序。 Step 12: Send an IP packet filled with media stream performance monitoring data to the downstream node. Before the terminal device or the network side device sends the IP data packet to the downstream node, the media stream performance monitoring data is filled into the IP data packet. When filling the media stream performance monitoring data, the media stream performance monitoring data can be filled in each IP packet of the media stream. To improve system performance, media stream performance monitoring data can also be populated once every few IP packets. For example, the media stream is sampled, and the media stream performance monitoring data is filled in the sampled IP packet. The sending time stamp of the IP data packet may be the system time when the IP data packet is sent. The transmission sequence number of the IP packet can be the order in which the IP packets are sent.
为统计媒体流中已发送 IP数据包的个数, 可为待监控的媒体流设置计数 器, IP数据包的发送序列号可为计数器的值。 该媒体流每发送一个 IP数据包 计数器累加一。 计数器的初始值可任意设置, 例如初始值为 0。 另外, 计数 器也可以只统计媒体流中已发送的、 填充有发送序列号的 IP数据包的个数。 To count the number of IP packets sent in the media stream, a counter can be set for the media stream to be monitored. The sending sequence number of the IP packet can be the value of the counter. The media stream accumulates one for each IP packet sent. The initial value of the counter can be set arbitrarily, for example, the initial value is 0. In addition, the counter can also count only the number of IP packets that have been sent in the media stream and are filled with the transmission sequence number.
如表 1所示, IP首部中包括 16位标识字段和选项字段。可将媒体流性能 监控数据复用在 IP首部的 16标识字段中, 也可将媒体流性能监控数据填充 到 IP首部的选项字段中。 IP首部的选项字段, 是 IP首部中一个可变长的可 选字段, 最大长度为 40字节。 表 1为 IP首部结构 As shown in Table 1, the IP header includes a 16-bit identification field and an option field. The media stream performance monitoring data may be multiplexed in the 16 identification field of the IP header, or the media stream performance monitoring data may be populated into the option field of the IP header. The option field of the IP header is a variable length optional field in the IP header with a maximum length of 40 bytes. Table 1 shows the IP header structure.
4位版本 4位首部长度 8位服务类型 16位总长度 4-bit version 4-bit header length 8-bit service type 16-bit total length
16位标识 3位分段标志 13位分段偏移量 16-bit identifier 3-bit segmentation flag 13-bit segment offset
8位生存时间 8位协议 16位首部校 -睑和 8-bit survival time 8-bit agreement 16-bit first school - 睑和
32位源地址 32-bit source address
32位目的地址 32-bit destination address
选项 (如果有) Options (if any)
数据 将媒体流性能监控数据复用在 IP首部的 16标识字段中时, 可将发送时 间戳和发送序列号同时复用在 IP首部的 16位标识字段, 发送时间戳和发送 序列号各占用 IP标识字段的若干位。也可将发送时间戳和发送序列号分时复 用在 IP首部的 16标识字段, 即将发送时间戳和发送序列号分别填充到两个 IP数据包的 IP标识字段中。 When the data is multiplexed in the 16 identifier field of the IP header, the data timestamp and the transmission sequence number can be simultaneously multiplexed in the 16-bit identification field of the IP header, and the transmission timestamp and the transmission sequence number each occupy the IP address. Identify several bits of the field. The sending time stamp and the sending sequence number can also be time-multiplexed in the 16 identifier field of the IP header, that is, the sending time stamp and the sending sequence number are respectively filled in the IP identification fields of the two IP data packets.
将媒体流性能监控数据复用在 IP首部的选项字段时, 可将发送时间戳和 发送序列号同时复用在 IP首部的选项字段,发送时间戳和发送序列号各占用 IP首部的选项字段的若干位。 也可将发送时间戳和发送序列号分时复用在 IP 首部的 IP首部的选项字段,即将发送时间戳和发送序列号分别填充到两个 IP 数据包的 IP首部的选项字段。 When the media stream performance monitoring data is multiplexed in the option field of the IP header, the sending timestamp and the sending sequence number may be simultaneously multiplexed in the option field of the IP header, and the sending timestamp and the sending sequence number each occupy the option field of the IP header. Several places. The transmission time stamp and the transmission sequence number can also be time-multiplexed in the option field of the IP header of the IP header, that is, the transmission time stamp and the transmission sequence number are respectively filled in the option fields of the IP headers of the two IP packets.
可有多种方法分时复用 IP首部的 16位标识字段或选项字段, 例如, 在 第 1个 IP数据包中填充发送序列号, 在第 2个 IP数据包中填充发送时间戳, 第 3个 IP数据包中填充发送序列号, 在第 4个 IP数据包中填充发送时间 戳 ......依次类推, 每间隔 1个 IP数据包填充一次发送时间戳。 又例如, 在第 There are several ways to time-multiplex the 16-bit identification field or option field of the IP header. For example, fill the transmission sequence number in the first IP packet, and fill the transmission timestamp in the second IP packet. The IP data packet is filled with the transmission sequence number, and the fourth IP data packet is filled with the transmission time stamp... and so on, and one IP packet is filled with one transmission time stamp every interval. Another example, in the first
1个 IP数据包中填充发送序列号, 在第 2、 3和 4个 IP数据包中分别填充发 送时间戳, 在第 5个 IP数据包中填充发送序列号, 在第 6、 7和 8个 IP数据 包中分别填充发送时间戳 ......依次类推,每间隔 3个 IP数据包填充一次发送 序列号。 其中, 分时复用可以通过多种方法标识当前 IP数据包中填充的是发 送时间戳还是发送序列号,一种方法是使用 16位标识字段的最高位标识当前 IP首部的标识字段的低 15位填充的是发送时间戳还是发送序列号。例如最高 位为 0时, 表示低 15位填充的是发送时间戳; 最高位为 1时, 表示低 15位 填充的是发送序列号。 另一种方法是通过消息分时复用, 一段时间复用为序 列号, 另一段时间复用为时间戳。 网络节点之间约定, 在某段时间内的 IP数 据包, 其中 IP首部的标识字段中复用的是发送时间戳, 在另一段时间内的 IP 数据包, 其中 IP首部的标识字段中复用的是发送序列号。 One IP packet is filled with the transmission sequence number, and the second, third, and fourth IP packets are filled with the transmission timestamp, and the fifth IP packet is filled with the transmission sequence number, at the sixth, seventh, and eighth. The IP data packet is filled with the transmission timestamp respectively... and so on, each time three IP data packets are filled with a transmission sequence number. The time-multiplexing can identify whether the current IP data packet is filled with a sending time stamp or a serial number by using multiple methods. One method is to use the highest bit of the 16-bit identification field to identify the current The lower 15 bits of the identification field of the IP header are filled with the transmission timestamp or the transmission sequence number. For example, when the highest bit is 0, it means that the lower 15 bits are filled with the transmission timestamp; when the highest bit is 1, it means that the lower 15 bits are filled with the transmission sequence number. Another method is to use message time division multiplexing, multiplexing into serial numbers for a period of time, and multiplexing into time stamps for another period of time. The network node agrees that the IP data packet in a certain period of time, in which the identification field of the IP header is multiplexed is the transmission time stamp, and the IP data packet in another time period, where the IP header is identified in the identification field Is to send the serial number.
本发明实施例的媒体流性能监控方法中, 发送 IP数据包的节点在 IP数 据包中封装媒体流性能监控数据,接收到 IP数据包的下游节点根据其中的媒 体流性能监控数据, 监控网络的媒体流性能, 例如网络的丟包数、 时延和抖 用层封装信息时实现媒体流性能监控。 本发明实施例可以用于媒体流的性能 监控, 也可用于网络设备的故障定界和定位。 In the media stream performance monitoring method of the embodiment of the present invention, the node that sends the IP data packet encapsulates the media stream performance monitoring data in the IP data packet, and the downstream node that receives the IP data packet monitors the data according to the media stream performance therein, and monitors the network. Media stream performance, such as network packet loss, delay, and media layer performance monitoring when layering information is encapsulated. The embodiments of the present invention can be used for performance monitoring of media streams, and can also be used for fault demarcation and positioning of network devices.
图 2为本发明实施例提供的另一种媒体流性能监控方法流程图。 图 3为 图 2的应用场景图。 如图 3所示, 为了检测从上游节点到下游节点的两个设 备间的网络抖动和丟包数, 可在上游节点的出接口板上, 对某条媒体流进行 IP首部的标识字段复用,即在 IP首部的标识字段复用发送序列号和发送时间 戳。 本实施例主要说明上游节点如何采用消息分时复用方法在 IP首部的标识 字段中填充发送序列号和发送时间戳。 FIG. 2 is a flowchart of another method for monitoring media stream performance according to an embodiment of the present invention. Figure 3 is an application scenario diagram of Figure 2. As shown in Figure 3, in order to detect the network jitter and packet loss between two devices from the upstream node to the downstream node, the identification field of the IP header may be multiplexed on the outgoing interface board of the upstream node. That is, the transmission sequence number and the transmission time stamp are multiplexed in the identification field of the IP header. This embodiment mainly describes how the upstream node fills the transmission sequence number and the transmission timestamp in the identification field of the IP header by using the message time division multiplexing method.
如图 2所示, 本实施例包括: As shown in FIG. 2, this embodiment includes:
步骤 21 : 接收待监控媒体流的 IP数据包。 Step 21: Receive an IP packet of the media stream to be monitored.
步骤 22: 判断是否在该 IP数据包中填充发送时间戳。 如果是, 执行步骤 23 , 否则执行步骤 24。 Step 22: Determine whether the transmission time stamp is filled in the IP packet. If yes, go to step 23, otherwise go to step 24.
本实施例采用的标识字段复用策略是: 每间隔一个 IP数据包填充一次发 送时间戳, 未填充发送时间戳的 IP数据包填充发送序列号。 步骤 22中, 根 据上述标识字段复用策略判断是否在该 IP数据包中填充发送时间戳。 The identification field multiplexing policy adopted in this embodiment is: every time one IP data packet is filled with one transmission time stamp, and the IP data packet that is not filled with the transmission time stamp is filled with the transmission sequence number. In step 22, it is determined according to the foregoing identification field multiplexing policy whether to fill the IP data packet with a transmission time stamp.
步骤 23: 将当前的系统时间作为该 IP数据包的发送时间戳填充到 IP首 部的标识字段。 Step 23: Fill the current system time as the sending timestamp of the IP packet to the IP header The identification field of the department.
填充到标识字段中的系统时间的位数可根据系统对时间精度的要求而 定。 发送时间戳占用的数据位数越多, 表示的时间精度越高。 因此, 在时间 精度要求较高时, 可从系统时间中提取更多数据位填充到标识字段中。 The number of bits of system time that is populated into the identification field can be based on the system's requirements for time accuracy. The more data bits occupied by the send timestamp, the higher the time precision indicated. Therefore, when the time precision is high, more data bits can be extracted from the system time and filled into the identification field.
步骤 24: 将计数器的值作为该 IP数据包的发送序列号填充到 IP首部的 标识字段, 并将计数器累加一。 Step 24: Fill in the value of the counter as the transmission sequence number of the IP packet to the identification field of the IP header, and accumulate the counter by one.
为待监控的媒体流设置 16位的计数器, 用于统计媒体流中已发送的、 填 充有发送序列号的 IP数据包的个数。 填充到标识字段中的计数器的位数可根 据系统的流密度而定。 因此, 可取出计数器的若干位填充到 IP首部的标识字 段。 发送序列号占用的数据位数越多, 表示的流密度越高。 在流密度较高时, 表示数据包数越多, 可从计数器中提取更多数据位填充到 IP标识字段中。 A 16-bit counter is set for the media stream to be monitored, and is used to count the number of IP packets that have been sent in the media stream and filled with the transmission sequence number. The number of bits filled into the counter in the identification field can depend on the stream density of the system. Therefore, several bits of the extractable counter are filled into the identification field of the IP header. The more data bits the serial number occupies, the higher the stream density. When the stream density is high, the more packets are represented, more data bits can be extracted from the counter and filled into the IP identification field.
步骤 25: 计算 IP首部校验和, 并填充到 IP数据包中的相应字段。 Step 25: Calculate the IP header checksum and populate the corresponding fields in the IP packet.
步骤 26:在该 IP数据包中添加链路层信息,计算 CRC (循环冗余校验 ), 并将计算得到的 CRC填充到 IP数据包中的相应字段。 Step 26: Add link layer information in the IP data packet, calculate CRC (Cyclic Redundancy Check), and fill the calculated CRC into the corresponding field in the IP data packet.
步骤 27: 向下游节点发送填充了媒体流性能监控数据的 IP数据包。 Step 27: Send an IP packet filled with media stream performance monitoring data to the downstream node.
由于 IP首部的标识字段是 IP数据包中必有的字段, 因而将发送时间戳 和发送序列号填充到 IP首部的标识字段的方法具有通用性, 网络节点可监控 任何媒体流的性能。 Since the identification field of the IP header is a mandatory field in the IP packet, the method of filling the transmission time stamp and the transmission sequence number into the identification field of the IP header is versatile, and the network node can monitor the performance of any media stream.
图 4为本发明实施例提供的再一种媒体流性能监控方法流程图。 本实施 例主要说明上游节点如何将发送序列号和发送时间戳同时填充到 IP首部的选 项字段。 如表 1所示, IP首部含有选项字段。 可在 IP首部的选项字段中携带 发送时间戳和发送序列号。 IP首部的选项字段的一般格式是 1个字节的代码 (code), 一个字节的长度 (len), —个字节的指针 (ptr)。 长度包括前面 3字节在 内的整个 IP首部的选项字段最大值为 40个字节。 FIG. 4 is a flowchart of still another method for monitoring performance of a media stream according to an embodiment of the present invention. This embodiment mainly explains how the upstream node fills the transmission sequence number and the transmission timestamp into the option field of the IP header at the same time. As shown in Table 1, the IP header contains an option field. The send timestamp and the send sequence number can be carried in the option field of the IP header. The general format of the option field of the IP header is 1 byte code (code), one byte length (len), and one byte pointer (ptr). The option field of the entire IP header with the length including the first 3 bytes is a maximum of 40 bytes.
如图 4所示, 本实施例包括: As shown in FIG. 4, this embodiment includes:
步骤 41 : 接收待监控媒体流的 IP数据包。 步骤 42: 判断是否可在 IP首部的选项字段中填充媒体流性能监控数据。 如果是, 执行步骤 43 , 否则执行步骤 46。 Step 41: Receive an IP data packet of the media stream to be monitored. Step 42: Determine whether the media stream performance monitoring data can be filled in the option field of the IP header. If yes, go to step 43, otherwise go to step 46.
根据 IP首部的选项字段的结构, 在其中填充数据时需相应添加数据的类 型和长度等信息, 且填充数据所占用的字节数必须是 4的整数倍。 在 IP首部 的选项字段中填充媒体流性能监控数据时 , 在其中添加的类型和长度等信息 至少需占用 2至 3个字节的空间, 而类型和长度等信息占用的字节数还需满 足 4的整数倍的要求, 因此, 在 IP首部的选项字段中填充媒体流性能监控数 据时,至少需占用 8个字节的空间。如表 1所示, 除 IP首部的选项字段之外, IP首部的其它字段的固定长度为 20个字节, IP首部的选项字段和 IP首部的 其它字段的总长度为 60个字节。 因而, 填充媒体流性能监控数据之前 IP首 部长度小于等于 52个字节时, 才能在选项字段中填充媒体流性能监控数据。 如果在填充之前 IP首部长度大于 52字节, 则不能在选项字段填充媒体流性 能监控数据。 According to the structure of the option field of the IP header, information such as the type and length of the data needs to be added when filling the data, and the number of bytes occupied by the padding data must be an integral multiple of 4. When the media stream performance monitoring data is filled in the option field of the IP header, information such as the type and length added in it needs to occupy at least 2 to 3 bytes of space, and the number of bytes occupied by information such as type and length must be satisfied. An integer multiple of 4 is required. Therefore, when filling the media stream performance monitoring data in the option field of the IP header, at least 8 bytes of space are required. As shown in Table 1, except for the option field of the IP header, the other fields of the IP header have a fixed length of 20 bytes, and the total length of the IP header's option field and the IP header's other fields is 60 bytes. Therefore, the media stream performance monitoring data can be filled in the option field when the IP header length is less than or equal to 52 bytes before the media stream performance monitoring data is filled. If the IP header length is greater than 52 bytes before filling, the media stream performance monitoring data cannot be filled in the option field.
步骤 43: 将当前的系统时间作为该 IP数据包的发送时间戳填充到 IP首 部的选项字段中时间戳位置,将计数器的值作为该 IP数据包的发送序列号填 充到 IP首部的选项字段中序列号位置, 并将计数器累加一。 Step 43: Fill the current system time as the sending time stamp of the IP data packet into the timestamp position in the option field of the IP header, and fill the value of the counter as the sending sequence number of the IP data packet into the option field of the IP header. The serial number position, and the counter is incremented by one.
步骤 44: 修改 IP数据包首部的长度和 IP数据包的总长度。 Step 44: Modify the length of the IP packet header and the total length of the IP packet.
在 IP首部的选项字段中填充发送序列号和发送时间戳后, 计算 IP首部 的长度, 根据计算结果修改 IP首部的 4位首部长度字段的值。 并计算 IP数 据包的总长度, 根据计算结果修改 IP首部的 16位总长度字段的值。 After filling the transmission sequence number and the transmission timestamp in the option field of the IP header, the length of the IP header is calculated, and the value of the 4-bit header length field of the IP header is modified according to the calculation result. And calculate the total length of the IP packet, and modify the value of the 16-bit total length field of the IP header according to the calculation result.
步骤 45: 根据 MTU (最大传输单元, Maximum Transmission Unit )实施 IP分片处理。 Step 45: Implement IP fragmentation processing according to the MTU (Maximum Transmission Unit).
MTU的长度表示一次能传输的最大字节数。在选项字段中填充发送时间 戳和发送序列号后, IP数据包的总长度增加。当 IP数据包的总长度大于 MTU 的长度时, 对 IP数据包进行分片, 即将一个 IP数据包分成多个 IP数据包发 送。 步骤 46: 计算 IP首部校验和, 并填充到 IP数据包中的相应字段。 The length of the MTU represents the maximum number of bytes that can be transmitted at one time. After the send timestamp and the send sequence number are filled in the option field, the total length of the IP packet increases. When the total length of the IP packet is greater than the length of the MTU, the IP packet is fragmented, that is, an IP packet is divided into multiple IP packets for transmission. Step 46: Calculate the IP header checksum and populate the corresponding fields in the IP packet.
步骤 47: 在该 IP数据包中添加链路层信息, 计算 CRC, 并将计算得到 的 CRC填充到 IP数据包中的相应字段。 Step 47: Add link layer information to the IP data packet, calculate a CRC, and fill the calculated CRC into a corresponding field in the IP data packet.
步骤 48: 向下游节点发送填充了媒体流性能监控数据的 IP数据包。 由于每一个 IP数据包都可以包含选项字段, 因而上游节点可以在 IP首 部的选项字段中填充发送序列号和发送时间戳, 下游节点根据 IP数据包中的 发送序列号和发送时间戳计算网络抖动和丟包的方法, 能够实现缺少应用层 封装信息时的媒体流性能监控, 具有通用性。 Step 48: Send an IP packet filled with the media stream performance monitoring data to the downstream node. Since each IP packet can contain an option field, the upstream node can fill the transmission sequence number and the transmission timestamp in the option field of the IP header, and the downstream node calculates the network jitter according to the transmission sequence number and the transmission timestamp in the IP data packet. And the packet loss method can realize the media stream performance monitoring when the application layer encapsulation information is lacking, and has versatility.
图 5为本发明实施例提供的又一种媒体流性能监控方法流程图。 本实施 例主要从接收 IP数据包的节点的角度说明媒体流性能监控方法的技术方案。 如图 5所示, 本实施例包括: FIG. 5 is a flowchart of still another method for monitoring media stream performance according to an embodiment of the present invention. This embodiment mainly describes the technical solution of the media stream performance monitoring method from the perspective of the node that receives the IP data packet. As shown in FIG. 5, this embodiment includes:
步骤 51 :接收上游节点发送的包括媒体流性能监控数据的 IP数据包;媒 体流性能监控数据包括 IP数据包的发送时间戳和 IP数据包的发送序列号。 Step 51: Receive an IP data packet that includes the media stream performance monitoring data sent by the upstream node. The media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet.
上游节点将媒体流性能监控数据复用在 IP首部的 16位标识字段中时, 可将发送时间戳和发送序列号同时复用在 IP首部的 16位标识字段, 发送时 间戳和发送序列号各占用 IP位标识字段的若干位。也可将发送时间戳和发送 序列号分时复用在 IP首部的 16位标识字段。 When the upstream node multiplexes the media stream performance monitoring data in the 16-bit identification field of the IP header, the sending timestamp and the sending sequence number can be simultaneously multiplexed in the 16-bit identification field of the IP header, and the sending timestamp and the sending sequence number are respectively A number of bits occupying the IP bit identification field. The transmit timestamp and the transmit sequence number can also be time-multiplexed in the 16-bit identification field of the IP header.
步骤 52: 根据 IP数据包中的媒体流性能监控数据, 监控媒体流的性能。 监控媒体流的性能包括监控媒体流的丟包数、 时延和抖动等。 Step 52: Monitor the performance of the media stream according to the media stream performance monitoring data in the IP packet. Monitoring the performance of media streams includes monitoring the number of packet loss, delay, and jitter of media streams.
具体地, 对于媒体流的丟包数, 在发送时间戳和发送序列号分时填充到 两个 IP数据包中的 IP位标识字段时, 根据接收到的最大发送序列号、 最小 发送序列号、 已接收到的包括有发送序列号的 IP数据包的个数, 监控媒体流 的丟包数。 对于媒体流的抖动, 可根据两个 IP数据包中的发送时间戳和两个 IP数据包的到达时间, 监控媒体流的抖动。 Specifically, when the number of packet loss of the media stream is filled in the IP bit identifier field in the two IP data packets when the timestamp is sent and the sequence number is sent, according to the received maximum transmission sequence number, the minimum transmission sequence number, The number of received IP packets including the transmission sequence number is received, and the number of packet loss of the media stream is monitored. For the jitter of the media stream, the jitter of the media stream can be monitored according to the transmission timestamp in the two IP data packets and the arrival time of the two IP data packets.
以下对媒体流性能监控数据: 丟包数、 抖动和时延的概念进行说明。 丟 包数是媒体流中被丟失的数据包的个数。 时延是一个数据包在传输过程中消 耗的时间。 通常用 个数据包的实际到达时间与实际发送时间的差值来表示 该数据包的时延。 媒体流在传输过程中, 各种原因 (例如大量 P2P流量、 文 件下载和 VoIP通话 )都可引起网络瞬时拥塞, 导致数据包通过网络节点的时 延发生变化, 这就是所谓的抖动。 抖动反映两个数据包的时延变化。 通常情 况下, 抖动的参考值为 200ms, 即抖动允许的范围是 0 ~ 200ms。 在抖动达到 200ms时, 表明传输抖动开始出现明显的变化。 虽还没有立刻造成媒体流播 放质量问题, 但应对媒体流进行监控。 The following describes the concept of media stream performance monitoring data: packet loss, jitter, and delay. The number of lost packets is the number of lost packets in the media stream. Delay is a packet that is lost during transmission Time spent. The delay of the data packet is usually expressed by the difference between the actual arrival time of the data packet and the actual transmission time. During the transmission of the media stream, various reasons (such as a large number of P2P traffic, file downloads, and VoIP calls) can cause instantaneous congestion of the network, which causes the delay of the data packet to pass through the network node. This is called jitter. Jitter reflects the delay variation of two packets. Normally, the reference value of jitter is 200ms, that is, the range allowed by jitter is 0 ~ 200ms. When the jitter reaches 200ms, it indicates that the transmission jitter begins to change significantly. Although the quality of the media stream playback has not been immediately caused, the media stream should be monitored.
本发明实施例的媒体流性能监控方法中,接收到 IP数据包的下游节点根 据其中的媒体流性能监控数据, 监控网络的媒体流性能, 例如网络的丟包数、 时延和抖动等。 由于本发明实施例采用了通用的 IP封装来封装媒体流, 能够 在缺少应用层封装信息时实现媒体流性能监控本发明实施例可以用于媒体流 的性能监控, 也可用于网络设备的故障定界和定位。 In the media stream performance monitoring method of the embodiment of the present invention, the downstream node that receives the IP data packet monitors the media stream performance of the network according to the media stream performance monitoring data therein, such as the number of packet loss, delay, and jitter of the network. The embodiment of the present invention can implement the media stream performance monitoring in the absence of the application layer encapsulation information. The embodiment of the present invention can be used for performance monitoring of the media stream, and can also be used for network device fault determination. Boundary and positioning.
图 6为本发明实施例提供的还一种媒体流性能监控方法流程图。 图 7为 图 6的应用场景图。 如图 7所示, 路径上包括三个网络侧设备: 网络侧设备 R3、 网络侧设备 R2和网络侧设备 Rl。 在该路径上的传输质量变差时, 为定 位路径上发生故障的设备, 上游节点在该路径上传输的媒体流的 IP数据包中 添加 IP数据包的发送时间戳和发送序列号, 在路径上的下游节点依次监控网 络的丟包数、 时延和抖动。 出现丟包的网络设备就可能是发生故障的设备。 FIG. 6 is a flowchart of still another method for monitoring media stream performance according to an embodiment of the present invention. Figure 7 is an application scenario diagram of Figure 6. As shown in Figure 7, the path includes three network side devices: network side device R3, network side device R2, and network side device R1. When the transmission quality on the path is degraded, in order to locate the device that is faulty on the path, the upstream node adds the transmission timestamp and the transmission sequence number of the IP data packet to the IP data packet of the media stream transmitted on the path, in the path. The upstream node in turn monitors the network's packet loss, delay, and jitter. A network device that has lost packets may be a failed device.
如图 6所示, 本实施例包括: As shown in FIG. 6, this embodiment includes:
步骤 60: R3接收填充有发送时间戳和发送序列号的媒体流的 IP数据包。 步骤 61 : R3根据 IP数据包中的发送时间戳和发送序列号, 计算媒体流 的丟包数、 时延和抖动。 Step 60: R3 receives an IP packet filled with a media stream with a transmission timestamp and a transmission sequence number. Step 61: R3 calculates the packet loss, delay, and jitter of the media stream according to the sending timestamp and the sending sequence number in the IP data packet.
丟包数可根据公式 1和公式 2计算。 The number of lost packets can be calculated according to Equation 1 and Equation 2.
pkt num expected = max seq base_seq (公式 1 ) Pkt num expected = max seq base_seq (formula 1)
pkt num lost = pkt num expected - pkt num received (公式 2 ) 其中, pkt_num_expeCted表示期望接收到的填充有发送序列号的 IP数据包 的个数, Pkt_mim_received表示实际接收到的填充有发送序列号的 IP数据包的 个数, max_Seq表示接收到的最大序列号, pkt_mm _l。St表示丟包数, basejeq表 示接收到的最小序列号。 通过公式 2可监控媒体流中已填充发送序列号的 IP 数据包在传输过程中的丟包数。 pkt num lost = pkt num expected - pkt num received ( Equation 2) wherein, pkt_ nu m_ ex p eC ted represented filled with a desired received transmission sequence number of IP packets Number, Pkt_mim_r ece i ve d represents the actually received transmission sequence number is filled with the number of IP packets, max_ Se q represents the largest sequence number received, pkt_mm _l. S t represents the number of lost packets, and basejeq represents the minimum sequence number received. The formula 2 can monitor the number of lost packets in the media stream that have been filled with the transmission sequence number of the IP packet during transmission.
时延可根据公式 3 , 抖动可根据公式 4计算。 The delay can be calculated according to Equation 3, and the jitter can be calculated according to Equation 4.
D; = R; _ S; D; = R; _ S;
J( ) = - Dj = (Rt - St ) - (Rj -5.) = (Rt - Rj ) - (St - Sj ) 其中, R表示包的接收时间, S是复用在 IP数据包中的发送时间戳。 i, j是包的实际到达序号。 A表示第 i个包的时延。 , 表示第 i个包和第 j个 包的抖动。 J( ) = - Dj = (R t - S t ) - (Rj -5.) = (R t - Rj ) - (S t - Sj ) where R represents the reception time of the packet and S is multiplexed in the IP The timestamp of the transmission in the packet. i, j is the actual arrival number of the packet. A represents the delay of the i-th packet. , indicates the jitter of the i-th packet and the j-th packet.
步骤 62: R3修改 IP数据包中的发送时间戳和发送序列号。 Step 62: R3 modifies the transmission timestamp and the transmission sequence number in the IP data packet.
步骤 63: R3向下游节点 R2转发修改后的 IP数据包。 Step 63: R3 forwards the modified IP data packet to the downstream node R2.
步骤 64: R2根据 IP数据包中的发送时间戳和发送序列号, 计算媒体流 的丟包数、 时延和抖动。 Step 64: R2 calculates the packet loss, delay, and jitter of the media stream according to the sending timestamp and the sending sequence number in the IP data packet.
步骤 65: R3修改 IP数据包中发送时间戳和发送序列号。 Step 65: R3 modifies the transmission timestamp and the transmission sequence number in the IP data packet.
步骤 66: R3向下游节点 R1转发修改后的 IP数据包。 Step 66: R3 forwards the modified IP data packet to the downstream node R1.
步骤 67: R1根据 IP数据包中的发送时间戳和发送序列号, 计算媒体流 的丟包数、 时延和抖动。 Step 67: R1 calculates the packet loss, delay, and jitter of the media stream according to the sending timestamp and the sending sequence number in the IP data packet.
假设 R3、 R2和 R1上的丟包数和时延情况如表 2所示, 从丟包情况可以 看出, R2的入接口上没有出现丟包, R2的出接口上开始丟包, 因此可以初 步断定 R2内部出现了故障。 从抖动情况可以看出, R2的入接口上抖动小于 200ms, 在抖动允许范围内, R2的出接口上抖动变长, 超出抖动允许范围。 根据抖动情况也可以初步断定 R2内部出现了故障。 Assume that the number of packets and delays on R3, R2, and R1 are as shown in Table 2. As shown in the packet loss scenario, no packet loss occurs on the inbound interface of R2, and packet loss starts on the outbound interface of R2. It is preliminarily concluded that there is a fault inside R2. It can be seen from the jitter situation that the jitter on the inbound interface of R2 is less than 200ms. Within the allowable range of jitter, the jitter on the outbound interface of R2 becomes longer than the allowable range of jitter. According to the jitter condition, it can be preliminarily determined that a fault has occurred inside R2.
表 2为 R3、 R2和 R1上的丢包数和抖动 丢包数 0 0 0 20 20 20 抖动 ( ms ) 80 100 100 280 280 100 本实施例, 发送端在 IP数据包中填充发送时间戳和发送序列号, 接收端 接收到该 IP数据包后根据 IP数据包中发送时间戳和发送序列号, 计算丟包 数、 时延和抖动。 同时接收端向下游节点转发该 IP数据包之前, 修改其中的 发送时间戳和发送序列号,使下游节点可根据 IP数据包中发送时间戳和发送 序列号计算网络的丟包数、 时延和抖动。 Table 2 shows the number of packets and jitter on R3, R2, and R1. Packet loss 0 0 0 20 20 20 Jitter (ms) 80 100 100 280 280 100 In this embodiment, the sender fills the IP data packet with the transmission timestamp and the transmission sequence number, and the receiving end receives the IP data packet according to the IP address. The timestamp and the transmission sequence number are sent in the data packet, and the number of lost packets, delay, and jitter are calculated. At the same time, before the receiving end forwards the IP data packet to the downstream node, the sending timestamp and the sending sequence number are modified, so that the downstream node can calculate the network packet loss, delay, and the sending time according to the sending timestamp and the sending sequence number in the IP data packet. shake.
图 8A为本发明实施例提供的一种媒体流传输设备结构示意图。 如图 8A 所示本实施例包括: 填充模块 81和发送器 82。 FIG. 8 is a schematic structural diagram of a media stream transmission device according to an embodiment of the present invention. This embodiment as shown in Fig. 8A includes: a filling module 81 and a transmitter 82.
填充模块 81 ,用于在 IP数据包中填充媒体流性能监控数据; 所述媒体流 性能监控数据包括所述 IP数据包的发送时间戳和所述 IP数据包的发送序列 号。 The filling module 81 is configured to fill the media stream performance monitoring data in the IP data packet; the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet.
在 IP数据包中填充媒体流性能监控数据时, 可在每个 IP数据包中都填 充媒体流性能监控数据。 为提高系统性能, 也可以每间隔几个 IP数据包填充 一次媒体流性能监控数据。 例如, 填充模块 81具体用于对媒体流进行采样, 在采样出的 IP数据包中填充媒体流性能监控数据。 填充媒体流性能监控数据 时。 可将媒体流性能监控数据复用在 IP首部的 16标识字段中, 也可将媒体 流性能监控数据填充到 IP首部的 IP首部的选项字段中。 When the media stream performance monitoring data is filled in the IP packet, the media stream performance monitoring data can be filled in each IP packet. To improve system performance, media stream performance monitoring data can also be populated once every few IP packets. For example, the filling module 81 is specifically configured to sample the media stream, and fill the media stream performance monitoring data in the sampled IP data packet. When populating media stream performance monitoring data. The media stream performance monitoring data may be multiplexed in the 16 identification field of the IP header, or the media stream performance monitoring data may be populated into the option field of the IP header of the IP header.
发送器 82 , 用于向下游节点发送填充模块 81填充媒体流性能监控数据 后的 IP数据包。 The transmitter 82 is configured to send, to the downstream node, the IP data packet after the filling module 81 fills the media stream performance monitoring data.
如图 8B所示, 在图 8A基础上本实施例还包括: 累加模块 83。 As shown in FIG. 8B, the embodiment further includes: an accumulation module 83 on the basis of FIG. 8A.
累加模块 83 , 用于在发送器 82向下游节点发送 IP数据包之前, 将计数 器累加一。 计数器用于统计媒体流中已发送 IP数据包的个数, 或用于统计媒 体流中已发送的、 填充有发送序列号的 IP数据包的个数。 The accumulating module 83 is configured to accumulate the counters before the transmitter 82 sends the IP data packets to the downstream node. The counter is used to count the number of transmitted IP packets in the media stream, or to count the number of IP packets that have been sent in the media stream and are filled with the transmission sequence number.
如图 8C所示,填充模块 81包括:第一填充单元 811和第二填充单元 812。 第一填充单元 811 ,用于在一个 IP数据包中 IP首部的标识字段同时填充 所述发送时间戳和所述发送序列号。 As shown in FIG. 8C, the filling module 81 includes a first filling unit 811 and a second filling unit 812. The first padding unit 811 is configured to simultaneously fill the sending timestamp and the sending sequence number in an identifier field of an IP header in an IP data packet.
第二填充单元 812,用于在两个 IP数据包中 IP首部的标识字段分时填充 所述发送时间戳和所述发送序列号。 The second padding unit 812 is configured to time-separate the sending timestamp and the sending sequence number in an identifier field of an IP header in two IP data packets.
如图 8D所示,填充模块 81包括:第三填充单元 813和第四填充单元 814。 第三填充单元 813 ,用于在一个 IP数据包中 IP首部的选项字段同时填充 所述发送时间戳和所述发送序列号。 As shown in FIG. 8D, the filling module 81 includes a third filling unit 813 and a fourth filling unit 814. The third padding unit 813 is configured to fill the sending timestamp and the sending sequence number in an option field of the IP header in an IP data packet.
第四填充单元 814,用于在两个 IP数据包中 IP首部的选项字段分时填充 所述发送时间戳和所述发送序列号。 The fourth padding unit 814 is configured to time-separate the sending timestamp and the sending sequence number in an option field of an IP header in two IP data packets.
另外,填充模块 81也可同时包括有第一填充单元 811、第二填充单元 812、 第三填充单元 813和第四填充单元 814。 上述各模块实现的功能可参见图 1、 图 2和图 4对应实施例的描述, 在此不再赘述。 In addition, the filling module 81 may also include a first filling unit 811, a second filling unit 812, a third filling unit 813, and a fourth filling unit 814. For the functions of the foregoing modules, reference may be made to the description of the corresponding embodiments in FIG. 1 , FIG. 2 and FIG. 4 , and details are not described herein again.
本发明实施例媒体流传输设备中填充模块 81在 IP数据包中封装媒体流 性能监控数据,发送器 82将填充模块 81填充媒体流性能监控数据后的 IP数 据包发送给下游节点。接收到 IP数据包的下游节点根据其中的媒体流性能监 控数据, 监控网络的媒体流性能, 例如网络的丟包数、 时延和抖动等。 由于 本发明实施例中, 媒体流传输设备采用了通用的 IP封装来封装媒体流, 下游 节点能够在缺少应用层封装信息时实现媒体流性能监控。 In the embodiment of the present invention, the filling module 81 of the media stream transmission device encapsulates the media stream performance monitoring data in the IP data packet, and the transmitter 82 sends the IP data packet after the filling module 81 fills the media stream performance monitoring data to the downstream node. The downstream node that receives the IP data packet monitors the data according to the media stream performance of the network, and monitors the media stream performance of the network, such as the number of packet loss, delay, and jitter of the network. In the embodiment of the present invention, the media stream transmission device uses a general IP encapsulation to encapsulate the media stream, and the downstream node can implement media stream performance monitoring when the application layer encapsulation information is lacking.
图 9A为本发明实施例提供的一种媒体流性能监控设备结构示意图。 如 图 9A所示, 本实施例包括: 接收器 91和性能监控模块 92。 FIG. 9A is a schematic structural diagram of a media stream performance monitoring device according to an embodiment of the present invention. As shown in FIG. 9A, the embodiment includes: a receiver 91 and a performance monitoring module 92.
接收器 91 ,用于接收上游节点发送的包括媒体流性能监控数据的 IP数据 包; 所述媒体流性能监控数据包括所述 IP数据包的发送时间戳和所述 IP数 据包的发送序列号。 The receiver 91 is configured to receive an IP data packet that includes the media stream performance monitoring data that is sent by the upstream node, where the media stream performance monitoring data includes a sending timestamp of the IP data packet and a sending sequence number of the IP data packet.
性能监控模块 92, 用于根据所述媒体流性能监控数据, 监控媒体流的性 能。 The performance monitoring module 92 is configured to monitor performance of the media stream according to the media stream performance monitoring data.
如图 9B所示, 性能监控模块 92包括: 丟包数监控单元 921和抖动监控 单元 922。 As shown in FIG. 9B, the performance monitoring module 92 includes: a packet loss monitoring unit 921 and jitter monitoring. Unit 922.
丟包数监控单元 921 , 用于根据接收到的最大发送序列号、 最小发送序 列号和已接收到的包括有发送序列号的 IP数据包的个数,监控媒体流的丟包 数。 The packet loss monitoring unit 921 is configured to monitor the number of lost packets of the media stream according to the received maximum transmission sequence number, the minimum transmission sequence number, and the number of received IP data packets including the transmission sequence number.
抖动监控单元 922,用于根据两个 IP数据包中的发送时间戳和两个 IP数 据包的到达时间, 监控媒体流的抖动。 The jitter monitoring unit 922 is configured to monitor the jitter of the media stream according to the sending timestamp in the two IP data packets and the arrival time of the two IP data packets.
上述各模块所实现的功能可参见图 5和图 6对应实施例的描述, 在此不 再赘述。 For the functions implemented by the above modules, reference may be made to the description of the corresponding embodiments in FIG. 5 and FIG. 6, and details are not described herein again.
本发明实施例上游节点在 IP数据包中封装了媒体流性能监控数据,媒体 流性能监控设备中接收器 91接收到 IP数据包时, 性能监控模块 92根据其中 的媒体流性能监控数据, 监控网络的媒体流性能, 例如网络的丟包数、 时延 和抖动等。 由于本发明实施例中 , 媒体流传输设备采用了通用的 IP封装来封 装媒体流,性能监控模块 92能够在缺少应用层封装信息时实现媒体流性能监 控。 In the embodiment of the present invention, the upstream node encapsulates the media stream performance monitoring data in the IP data packet. When the receiver 91 receives the IP data packet in the media stream performance monitoring device, the performance monitoring module 92 monitors the data according to the media stream performance monitoring data. Media stream performance, such as network packet loss, latency, and jitter. In the embodiment of the present invention, the media streaming device uses a general IP encapsulation to encapsulate the media stream, and the performance monitoring module 92 can implement media stream performance monitoring in the absence of application layer encapsulation information.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。 最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk. It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2011800007594A CN102217237B (en) | 2011-05-09 | 2011-05-09 | Media streaming performance monitoring method and device |
| PCT/CN2011/073825 WO2011120470A2 (en) | 2011-05-09 | 2011-05-09 | Method and device for medium stream performance monitoring |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2011/073825 WO2011120470A2 (en) | 2011-05-09 | 2011-05-09 | Method and device for medium stream performance monitoring |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| WO2011120470A2 true WO2011120470A2 (en) | 2011-10-06 |
| WO2011120470A3 WO2011120470A3 (en) | 2012-04-19 |
Family
ID=44712680
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2011/073825 Ceased WO2011120470A2 (en) | 2011-05-09 | 2011-05-09 | Method and device for medium stream performance monitoring |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102217237B (en) |
| WO (1) | WO2011120470A2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017132911A1 (en) * | 2016-02-03 | 2017-08-10 | 华为技术有限公司 | Data transmission method and apparatus |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109842856A (en) * | 2017-11-29 | 2019-06-04 | 成都鼎桥通信技术有限公司 | A kind of method and apparatus shielding uplink packet loss |
| CN108683555A (en) * | 2018-04-17 | 2018-10-19 | 上海电力学院 | A kind of RTP method for detecting packet loss |
| CN112134747A (en) * | 2019-06-24 | 2020-12-25 | 中兴通讯股份有限公司 | Method for detecting transmission delay and related equipment |
| CN113382437A (en) * | 2020-03-10 | 2021-09-10 | 华为技术有限公司 | Follow-up flow detection method and device |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1223192C (en) * | 2003-10-17 | 2005-10-12 | 中兴通讯股份有限公司 | Video data network ditter elimlating method for H.323 conference television system |
| CN101674228B (en) * | 2008-09-08 | 2011-10-05 | 华为技术有限公司 | Method, device and system for realizing streaming media communication |
| EP2197153B1 (en) * | 2008-12-15 | 2012-07-04 | Koninklijke KPN N.V. | Method and device for reliable multicast using UDP |
| CN101888310B (en) * | 2009-05-11 | 2012-02-22 | 黑龙江大学 | A method for active measurement of IP path based on UDP packets |
| CN102026221B (en) * | 2009-09-17 | 2014-05-07 | 华为技术有限公司 | Measuring method, device and system |
| CN101848396B (en) * | 2009-11-30 | 2012-10-17 | 深圳市华曦达科技股份有限公司 | Audio/video synchronization and anti-shaking method of transport stream |
| CN101902370A (en) * | 2010-07-21 | 2010-12-01 | 中兴通讯股份有限公司 | Device, system and method for frame delay measurement |
| CN101944982B (en) * | 2010-08-11 | 2013-04-10 | 南昌市恒鑫电子技术有限公司 | Real-time stream media transmitting method based on time-driven sliding window protocol |
| CN101924625A (en) * | 2010-08-23 | 2010-12-22 | 华为技术有限公司 | Data packet retransmission control method and network side device |
-
2011
- 2011-05-09 CN CN2011800007594A patent/CN102217237B/en not_active Expired - Fee Related
- 2011-05-09 WO PCT/CN2011/073825 patent/WO2011120470A2/en not_active Ceased
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017132911A1 (en) * | 2016-02-03 | 2017-08-10 | 华为技术有限公司 | Data transmission method and apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102217237B (en) | 2013-12-04 |
| WO2011120470A3 (en) | 2012-04-19 |
| CN102217237A (en) | 2011-10-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4000905B2 (en) | Information processing system and method, information processing apparatus and method, recording medium, and program | |
| US8223807B2 (en) | Synchronizing data transmission over wireless networks | |
| US9781488B2 (en) | Controlled adaptive rate switching system and method for media streaming over IP networks | |
| CN102035718B (en) | Method, device and system for protection switching of packet transport network | |
| EP2515481A1 (en) | Transmission control method, access equipment and transmission system | |
| WO2006033201A1 (en) | Node device, packet control device, radio communication device, and transmission control method | |
| US11102273B2 (en) | Uplink performance management | |
| KR101521897B1 (en) | Feedback protocol for end-to-end multiple path network systems | |
| BRPI0617569A2 (en) | Data packet transmission method, data packet transmission apparatus, data packet receiving method, data packet receiving apparatus, system and computer readable media | |
| US20110080835A1 (en) | Traffic monitoring by lowest transmission layer marking | |
| CN105071897B (en) | A kind of network real-time audio conversation media data multi-path redundancy transmission method | |
| JP2004320785A (en) | Test apparatus and method for network communication | |
| CN101415276A (en) | Method and equipment for sending and receiving data | |
| JP2023530994A (en) | IN-SITU FLOW DETECTION METHOD AND ELECTRONIC DEVICE | |
| CN102217237B (en) | Media streaming performance monitoring method and device | |
| CN103825841B (en) | A kind of Ethernet packet sorting method and device | |
| CN115118663A (en) | Method for acquiring network congestion information by combining in-band network telemetry | |
| CN101141225B (en) | A method for processing data loss in a mobile communication system | |
| CN102025437B (en) | Method, system and device for protection switching | |
| CN114765585B (en) | Service quality detection method, message processing method and device | |
| US9137112B2 (en) | Bonding line mismatch discovery method and node arrangements | |
| US20100158008A1 (en) | Switching exchange | |
| CN103402144A (en) | Method, device and system for automatically measuring multicast service performances | |
| CN103780954B (en) | Method of using streaming media cutting technology and explicit congestion notification technology in combination mode | |
| JP2006109325A (en) | Communication system, communication device, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 201180000759.4 Country of ref document: CN |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11762044 Country of ref document: EP Kind code of ref document: A2 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 11762044 Country of ref document: EP Kind code of ref document: A2 |