CN105828218B - A kind of method, apparatus and system detecting multicast data flow transmission quality - Google Patents

A kind of method, apparatus and system detecting multicast data flow transmission quality Download PDF

Info

Publication number
CN105828218B
CN105828218B CN201610244477.3A CN201610244477A CN105828218B CN 105828218 B CN105828218 B CN 105828218B CN 201610244477 A CN201610244477 A CN 201610244477A CN 105828218 B CN105828218 B CN 105828218B
Authority
CN
China
Prior art keywords
network equipment
test packet
data flow
multicast data
packet
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.)
Active
Application number
CN201610244477.3A
Other languages
Chinese (zh)
Other versions
CN105828218A (en
Inventor
陈式斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610244477.3A priority Critical patent/CN105828218B/en
Publication of CN105828218A publication Critical patent/CN105828218A/en
Application granted granted Critical
Publication of CN105828218B publication Critical patent/CN105828218B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6405Multicasting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64723Monitoring of network processes or resources, e.g. monitoring of network load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The embodiment of the invention discloses a kind of methods for detecting multicast data flow transmission quality.This method comprises: first network equipment receives at least one test packet that second network equipment is sent, and the first network equipment is according at least one described test packet, transmission quality of the multicast data flow between second network equipment and the first network equipment is analyzed, the testing result for describing the transmission quality is obtained;Wherein, the test packet is Internet Control Message agreement icmp packet, with the mark of multicast data flow in the icmp packet, icmp packet mark based on the multicast data flow between the first network equipment and second network equipment is transmitted according to the transmission mode of the multicast data flow, and the first network equipment and second network equipment are the network equipment in the transmission path of the multicast data flow.In addition, the embodiment of the invention also discloses a kind of devices for detecting multicast data flow transmission quality.

Description

A kind of method, apparatus and system detecting multicast data flow transmission quality
Technical field
The present invention relates to field of communication technology, more particularly to a kind of method, apparatus for detecting multicast data flow transmission quality and System.
Background technique
There is the business of single point-to-multipoint feature for video live broadcast service etc., carried out data transmission using multicasting technology, It can be avoided the waste of server resource and network bandwidth.Therefore, application of the multicast functionality on forwarding device is more and more wider.Its In, multicast data flow can be referred to as using the data flow that multicast protocol is sent.The multicast data flow sometimes during multicast data flow transmission Transmission quality is bad, and user has found video card screen sometimes such as in video live broadcast service.In this case, in order to exclude group It broadcasts and spreads the bad problem of transmission quality, need to find out the position that there are problems that transmission quality in the transmission path of multicast data flow. And in order to search the position that there are problems that transmission quality, it is necessary to detect multicast data flow on the transmit path between heterogeneous networks equipment Transmission quality.
Inventor has found that the transmission quality of multicast data flow usually requires to detect by external equipment.For group A network equipment in the transmission path of stream is broadcast, technical staff needs the scene locating for the network equipment by external equipment It is connected with the network equipment.And in order to detect the multicast data flow transmission quality of all positions in transmission path, technical staff It needs to scene locating for each network equipment in transmission path to go, external equipment is connected with each network equipment respectively It connects, to detect transmission quality of the multicast data flow from multicast source to each network equipment respectively.But the transmission road of multicast data flow Usually there is a large amount of network equipment, it is seen then that technical staff needs to undertake numerous when positioning multicast data flow transmission quality problem on diameter Weight, complicated work.
Summary of the invention
Technical problems to be solved in this application be to provide it is a kind of detect multicast data flow transmission quality method, apparatus and be System, so that without connecting the external equipment for detection on network devices when detection multicast data flow transmission quality, to simplify The work that technical staff undertakes when positioning multicast data flow transmission quality problem.
In a first aspect, providing a kind of method for detecting multicast transmission quality, which comprises
First network equipment receives at least one test packet that second network equipment is sent, and the test packet is interconnection Net Internet Control Message Protocol icmp packet, with the mark of multicast data flow in the icmp packet, the icmp packet is described first Between the network equipment and second network equipment mark based on the multicast data flow according to the multicast data flow transmission mode into Row transmission, the first network equipment and second network equipment are that the network in the transmission path of the multicast data flow is set It is standby;
The first network equipment analyzes the multicast data flow in second network according at least one described test packet Transmission quality between equipment and the first network equipment, obtains the testing result for describing the transmission quality.
Optionally, the testing result includes shaky time, at least one described test packet include the first test packet, Second test packet and third test packet;
The first network equipment analyzes the multicast data flow from second network according at least one described test packet Equipment obtains the testing result for describing the transmission quality to the transmission quality of the first network equipment, comprising:
The first network equipment calculates the first time and the difference of the second time is poor as first time, and calculates institute The difference of the second time and third time are stated as the second time difference;Wherein, the first time indicates the first network equipment The time of first test packet is received, second time indicates that the first network equipment receives the second test report The time of text, the third time indicate that the first network equipment receives the time of the third test packet;
The first network equipment calculates the first time poor difference between second time difference, as described Shaky time of the multicast data flow between second network equipment and the first network equipment.
Optionally, the testing result includes packet loss, at least one described test packet includes the 4th test packet;
The first network equipment analyzes the multicast data flow from second network according at least one described test packet Equipment obtains the testing result for describing the transmission quality to the transmission quality of the first network equipment, comprising:
The first network equipment determines the 4th test packet corresponding reception time limit according to the first sequence identification; Wherein, first sequence identification indicates the 4th test packet described in the test packet sent in second network equipment Sequentially, first sequence identification carries in the 4th test packet;
If the first network equipment receives the 4th test packet, the first network within the reception time limit 4th test packet is included in and receives message number by equipment;
If the first network equipment does not receive the 4th test packet, first net within the reception time limit 4th test packet is included in by network equipment refusal receives message number;
Wherein, the reception message number is for calculating the multicast data flow in second network equipment transmission and described first Packet loss between the network equipment.
Optionally, the testing result includes random ordering, at least one described test packet includes the 5th test packet and the Six test packets, wherein the first network equipment receives the described 6th after receiving the 5th test packet and surveys Try message;
The first network equipment analyzes the multicast data flow from second network according at least one described test packet Equipment obtains the testing result for describing the transmission quality to the transmission quality of the first network equipment, comprising:
The first network equipment compares the second sequence identification and third sequence identification;Wherein, the second transmission sequence Indicate the sequence of the 5th test packet described in the test packet sent in second network equipment, second sequence identification It carries in the 5th test packet, the third transmission sequentially indicates the test packet sent in second network equipment Described in the 6th test packet sequence, the third sequence identification carries in the 6th test packet;
If second sequence identification is less than the third sequence identification, the first network equipment is tested the described 6th Message is included in out-of-order message number of the multicast data flow between second network equipment and the first network equipment.
Optionally, the testing result includes wrong packet, at least one described test packet includes the 7th test packet;
The first network equipment analyzes the multicast data flow from second network according at least one described test packet Equipment obtains the testing result for describing the transmission quality to the transmission quality of the first network equipment, comprising:
The first network equipment identifies and verifies the verification summation Checksum carried in the 7th test packet;
If the verification summation is unverified, the 7th test packet is included in described group by the first network equipment Broadcast the wrong packet voice number flowed between second network equipment and the first network equipment.
Optionally, the method also includes:
The first network equipment sends the testing result to second network equipment.
Optionally, the first network equipment sends the testing result to second network equipment, specifically:
The first network equipment is after receiving each test packet, the detection that will be obtained based on each test packet As a result it is sent respectively to second network equipment.
Optionally, the first network equipment sends the testing result to second network equipment, specifically:
The first network equipment will be obtained all after receiving multiple test packets based on multiple test packets Testing result sends jointly to second network equipment.
Optionally, the first network equipment receives at least one test packet that second network equipment is sent, specifically: The first network equipment receives at least one described test report that second network equipment is sent by receiving specialized hardware Text, the specialized hardware that receives is the separate hardware for receiving the test packet.
Optionally, between the first network equipment and second network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between second network equipment and the first network equipment The TCP/IP connection transmission.
Optionally, the method also includes:
The first network equipment is according to the corresponding forwarding strategy of the multicast data flow, forwarding at least one the test report Text.
Optionally, the first network equipment receives at least one test packet that second network equipment is sent, comprising:
The first network equipment receives multicast message;
The first network equipment searches the mark that the test packet whether is carried in the multicast message, the survey The mark for trying message includes Magic number;
If carrying the mark of the test packet in the multicast message, the first network equipment broadcasts described group Text is identified as the test packet.
Optionally, the first network equipment receive at least one test packet that second network equipment is sent it Before, the method also includes:
The first network equipment receives the setup test notice that second network equipment is sent;
The first network equipment notifies to execute the preparation operation of test based on the setup test, and grasps in the preparation Make to be finished rear to second network equipment transmission setup test response, so that second network equipment is based on described Setup test, which is responded, sends at least one described test packet.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
Second aspect provides a kind of method for detecting multicast data flow transmission quality, which comprises
Second network equipment generates at least one test packet;The test packet is Internet Control Message agreement ICMP Message, with the mark of multicast data flow in the icmp packet;
Second network equipment sends at least one described test packet to first network equipment, so as to first net Network equipment analyzes multicast data flow in the first network equipment and second network equipment according at least one described test packet Between transmission quality, obtain the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network Equipment and second network equipment are the network equipment in the transmission path of the multicast data flow.
Optionally, the method also includes:
Second network equipment receives the testing result that the first network equipment is sent.
Optionally, the testing result is that the first network equipment is based on each after receiving each test packet Test packet respectively obtains and sends testing result respectively.
Optionally, the testing result is described in the first network equipment is based on after receiving multiple test packets Multiple test packets obtain simultaneously sending all testing results together.
Optionally, second network equipment sends at least one test packet to second network equipment, specifically: it is described Second network equipment sends at least one described test packet, the hair to the first network equipment by sending specialized hardware Sending specialized hardware is the separate hardware for sending the test packet.
Optionally, between second network equipment and the first network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between the first network equipment and second network equipment The TCP/IP connection transmission.
Optionally, the Magic number that second network equipment is squeezed into, the Magic number are carried in the test packet By the first network equipment test packet for identification.
Optionally, second network equipment to the first network equipment send at least one described test packet it Before, further includes:
Second network equipment sends setup test notice to the first network equipment, so that the first network is set The standby preparation operation for notifying to execute test based on the setup test;
Second network equipment receives setup test and responds;
The setup test is responded, be the first network equipment it is described prepare that operation is finished it is rear to described the What two network equipments were sent, at least one described test packet is sent for triggering second network equipment.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
The third aspect, provides a kind of device for detecting multicast data flow transmission quality, and described device is first network equipment, institute Stating device includes:
Receiving unit, for receiving at least one test packet of second network equipment transmission, the test packet is mutual Networking control message protocol icmp packet, with the mark of multicast data flow in the icmp packet, the icmp packet is described the Between one network equipment and second network equipment mark based on the multicast data flow according to the multicast data flow transmission mode It is transmitted, the first network equipment and second network equipment are that the network in the transmission path of the multicast data flow is set It is standby;
Analytical unit, for analyzing the multicast data flow and being set in second network according at least one described test packet The standby transmission quality between the first network equipment, obtains the testing result for describing the transmission quality.
Optionally, the testing result includes shaky time, at least one described test packet include the first test packet, Second test packet and third test packet;
The analytical unit, is specifically used for:
The difference for calculating the first time and the second time is poor as first time, and calculates second time and third The difference of time is as the second time difference;Wherein, the first time indicates that the first network equipment receives first test The time of message, second time indicate that the first network equipment receives the time of second test packet, described Three times indicated that the first network equipment received the time of the third test packet;
The first time poor difference between second time difference is calculated, as the multicast data flow described second Shaky time between the network equipment and the first network equipment.
Optionally, the testing result includes packet loss, at least one described test packet includes the 4th test packet;
The analytical unit, is specifically used for:
According to the first sequence identification, the 4th test packet corresponding reception time limit is determined;Wherein, first sequence Mark indicates the sequence of the 4th test packet described in the test packet sent in second network equipment, first sequence Mark carries in the 4th test packet;
If receiving the 4th test packet within the reception time limit, the 4th test packet is included in reception report Literary number;
If not receiving the 4th test packet within the reception time limit, the 4th test packet is included in by refusal Receive message number;
Wherein, the reception message number is for calculating the multicast data flow in second network equipment transmission and described first Packet loss between the network equipment.
Optionally, the testing result includes random ordering, at least one described test packet includes the 5th test packet and the Six test packets, wherein the first network equipment receives the described 6th after receiving the 5th test packet and surveys Try message;
The analytical unit, is specifically used for:
Compare the second sequence identification and third sequence identification;Wherein, the second transmission sequence is indicated in second net The sequence of 5th test packet described in the test packet that network equipment is sent, second sequence identification is carried to be surveyed the described 5th It tries in message, the third transmission sequence indicates the 6th test report described in the test packet sent in second network equipment The sequence of text, the third sequence identification carry in the 6th test packet;
If second sequence identification is less than the third sequence identification, the 6th test packet is included in the multicast Flow the out-of-order message number between second network equipment and the first network equipment.
Optionally, the testing result includes wrong packet, at least one described test packet includes the 7th test packet;
The analytical unit, is specifically used for:
The first network equipment identifies and verifies the verification summation Checksum carried in the 7th test packet;
If the verification summation is unverified, the 7th test packet is included in described group by the first network equipment Broadcast the wrong packet voice number flowed between second network equipment and the first network equipment.
Optionally, described device further include:
First transmission unit, for sending the testing result to second network equipment.
Optionally, first transmission unit, is specifically used for:
After receiving each test packet, by the testing result obtained based on each test packet respectively to described Two network equipments are sent.
Optionally, second transmission unit, is specifically used for:
After receiving multiple test packets, all testing results obtained based on multiple test packets are sent together To second network equipment.
Optionally, the receiving unit, is specifically used for:
At least one test packet described in second network equipment transmission is received by receiving specialized hardware, it is described to connect Receiving specialized hardware is the separate hardware for receiving the test packet.
Optionally, between the first network equipment and second network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between second network equipment and the first network equipment The TCP/IP connection transmission.
Optionally, described device further include:
Second transmission unit, for according to the corresponding forwarding strategy of the multicast data flow, forwarding at least one the test Message.
Optionally, the receiving unit, is specifically used for:
Receive multicast message;
The mark that the test packet whether is carried in the multicast message is searched, the mark of the test packet includes Magic number;
If carrying the mark of the test packet in the multicast message, the multicast message is identified as the test Message.
Optionally, described device further include:
Notification receiving unit, for receiving at least one that second network equipment sends in first receiving unit Before test packet, the setup test notice that second network equipment is sent is received;
Preparatory unit notifies the preparation for executing test to operate for the first network equipment based on the setup test;
Transmission unit is responded, rear send to second network equipment for being finished in the preparation operation prepares Test is responded, and responds at least one described test packet of transmission so that second network equipment is based on the setup test.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
Fourth aspect, provides a kind of device for detecting multicast data flow transmission quality, and described device is second network equipment, institute Stating device includes:
Generation unit, for generating at least one test packet;The test packet is Internet Control Message agreement Icmp packet, with the mark of multicast data flow in the icmp packet;
Transmission unit, for sending at least one described test packet to first network equipment, so as to the first network Equipment according at least one described test packet, analysis multicast data flow the first network equipment and second network equipment it Between transmission quality, obtain the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network Equipment and second network equipment are the network equipment in the transmission path of the multicast data flow.
Optionally, described device further include:
Receiving unit, the testing result sent for receiving the first network equipment.
Optionally, the testing result is that the first network equipment is based on each after receiving each test packet Test packet respectively obtains and sends testing result respectively.
Optionally, the testing result is described in the first network equipment is based on after receiving multiple test packets Multiple test packets obtain simultaneously sending all testing results together.
Optionally, the transmission unit, is specifically used for:
At least one described test packet is sent to the first network equipment by sending specialized hardware, it is described to send specially With the separate hardware that hardware is for sending the test packet.
Optionally, between second network equipment and the first network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between the first network equipment and second network equipment The TCP/IP connection transmission.
Optionally, the Magic number that second network equipment is squeezed into, the Magic number are carried in the test packet By the first network equipment test packet for identification.
Optionally, described device further include:
Transmission unit is notified, for sending at least one described test to the first network equipment in the transmission unit Before message, Xiang Suoshu first network equipment sends setup test notice, so that the first network equipment is based on the preparation Test notice executes the preparation operation of test;
Receiving unit is responded, setup test is received for second network equipment and responds;
The setup test is responded, be the first network equipment it is described prepare that operation is finished it is rear to described the What two network equipments were sent, at least one described test packet is sent for triggering second network equipment.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
5th aspect, provides a kind of network equipment.The network equipment is specially first network equipment;The network is set Standby includes: processor, memory, network interface, bus system;
The bus system, for each hardware component of physical server to be coupled;
The network interface, for realizing the communication connection between physical server and at least one other network element;
The memory, for storing program instruction and data;
The processor, for reading the instruction and data stored in memory, the following operation of execution:
At least one test packet of second network equipment transmission is received, the test packet is Internet Control Message association Icmp packet is discussed, the mark with multicast data flow in the icmp packet, the icmp packet is in the first network equipment and institute It states the mark based on the multicast data flow between second network equipment to be transmitted according to the transmission mode of the multicast data flow, described One network equipment and second network equipment are the network equipment in the transmission path of the multicast data flow;
According at least one described test packet, the multicast data flow is analyzed in second network equipment and first net Transmission quality between network equipment obtains the testing result for describing the transmission quality.
6th aspect, provides a kind of network equipment.The network equipment is specially second network equipment;The network is set Standby includes: processor, memory, network interface, bus system;
The bus system, for each hardware component of physical server to be coupled;
The network interface, for realizing the communication connection between physical server and at least one other network element;
The memory, for storing program instruction and data;
The processor, for reading the instruction and data stored in memory, the following operation of execution:
Generate at least one test packet;The test packet is Internet Control Message agreement icmp packet, described With the mark of multicast data flow in icmp packet;
Send at least one described test packet to first network equipment, so as to the first network equipment according to extremely A few test packet analyzes transmission quality of the multicast data flow between the first network equipment and second network equipment, Obtain the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network Equipment and second network equipment are the network equipment in the transmission path of the multicast data flow.
In this application, for the first network equipment being located in multicast data flow transmission path and second network equipment, if needing Detect the transmission quality of multicast data flow between the two devices, first network equipment can under the instruction of test instruction according to The multicast flows to second network equipment and sends for detecting the multicast message of transmission quality as test packet, so that described Test packet is transferred to second network equipment from the first network equipment according to the multicast data flow.And second network equipment It can analyze the transmission quality of the multicast data flow between the two devices according to the test packet received, to obtain Testing result.As it can be seen that the transmission quality due to multicast data flow is analyzed and is examined by the network equipment in multicast data flow transmission path It surveys, technical staff only needs to trigger test packet and transmits between the network devices according to multicast data flow, it will be able to obtain multicast The testing result for flowing the transmission quality between each network equipment, without going to the scene of each network equipment as each network equipment company External equipment is connect, therefore, it is necessary to the quantity of the network equipment of technical staff's execute-in-place to greatly reduce, and technical staff is in positioning group The work that needs undertake when spreading transmission quality problem is broadcast to be simplified.
Further, since test packet is transmitted between the network devices according to multicast data flow, test packet is transmitted across The transmission process of journey and multicast data flow is identical.Moreover, because the transmission quality of multicast data flow is based on test packet in multicast data flow Transmission direction on unidirectional multicast transmission process detected, avoid in this way test packet multicast data flow it is reversed on Unicast transmission process be introduced in multicast data flow transmission quality detection.As it can be seen that the detection knot obtained based on the test packet Fruit is accurate believable.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations as described in this application Example, for those of ordinary skill in the art, is also possible to obtain other drawings based on these drawings.
Fig. 1 is network system block schematic illustration involved in an application scenarios in the embodiment of the present invention;
Fig. 2 is a kind of flow chart for the method for detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 3 is a kind of exemplary schematic diagram of part field in test packet in the embodiment of the present invention;
Fig. 4 is a kind of flow chart for the method for detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram for the device for detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram for the device for detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of the network equipment in the embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of the network equipment in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Inventor has found that the transmission quality of multicast data flow usually requires to detect by external equipment.For group A network equipment in the transmission path of stream is broadcast, technical staff needs the scene locating for the network equipment by external equipment It is connected with the network equipment.In the case where the network equipment supports image feature, by technical staff in the net Configure the corresponding forwarding strategy of the multicast data flow in network equipment, the network equipment can will be described when forwarding the multicast data flow Multicast traffic mirroring, which comes out, is forwarded to the external equipment, and the external equipment analyzes described group further according to the multicast data flow that mirror image comes out Stream is broadcast from multicast source to the transmission quality of the network equipment.As it can be seen that the multicast in order to detect all positions in transmission path Spread transmission quality, technical staff needs scene locating for each network equipment in transmission path, respectively by external equipment with Each network equipment is connected, to detect transmission quality of the multicast data flow from multicast source to each network equipment respectively. But usually there is a large amount of network equipment in the transmission path of multicast data flow, it is seen then that technical staff transmits matter in positioning multicast data flow It needs to undertake heavy, complicated work when amount problem.
To solve the above-mentioned problems, the embodiment of the invention provides a kind of methods and dress for detecting multicast data flow transmission quality It sets.Wherein, for the first network equipment being located in multicast data flow transmission path and second network equipment, multicast data flow is if desired detected Transmission quality between the two devices, second network equipment can flow under the instruction of test instruction according to the multicast First network equipment is sent for detecting the multicast message of transmission quality as test packet so that the test packet according to The multicast data flow is transferred to first network equipment from second network equipment.The first network equipment is according to the institute received Stating test packet can analyze the transmission quality of the multicast data flow between the two devices, to obtain testing result.As it can be seen that Since the transmission quality of multicast data flow is analyzed and detected by the network equipment in multicast data flow transmission path, technical staff is only needed Trigger test packet and transmitted between the network devices according to multicast data flow, it will be able to obtain multicast data flow each network equipment it Between transmission quality testing result, without to the scene of each network equipment go for each network equipment connect external equipment, therefore, The quantity of the network equipment of technical staff's execute-in-place is needed to greatly reduce, technical staff is in positioning multicast data flow transmission quality problem When need the work that undertakes to be simplified.
For example, one of the scene of the embodiment of the present invention, can be applied in network system as shown in Figure 1.Group It broadcasts and flows transmission path in the network system as shown in Figure 1, first network equipment with second network equipment is described The network equipment in the transmission path of multicast data flow.Second network equipment generates at least one test packet and to described first The network equipment is sent.At least one described test packet is according to the multicast data flow in the first network equipment and second net It is transmitted between network equipment.The first network equipment receives at least one described test packet, and according to described at least one A test packet is analyzed transmission quality of the multicast data flow between the first network equipment and second network equipment, is obtained For describing the testing result of the transmission quality.
It is understood that second network equipment is located at first net in the transmission path of the multicast data flow The upstream of network equipment, the first network equipment are located at the downstream of second network equipment.As an example, described second The network equipment can be multicast source server 101, and the first network equipment can be any one forwarding device 102, any One access device 103 or any one user equipment 104.As another example, second network equipment can be to appoint It anticipates a forwarding device 102, the first network equipment can set for any one forwarding in second network equipment downstream Standby 102, any one access device 103 or any one user equipment 104.As another example, second network is set Standby can be any one access device 103, and the first network equipment is any one of second network equipment downstream User equipment 104.Wherein, the multicast source server 101 is such as can be for video server, the forwarding device 102 It such as can be router, interchanger, the access device 103 is described such as can be for hub, interchanger, router User equipment 104 is such as can be for set-top box.
It is understood that above-mentioned scene is only a Sample Scenario provided in an embodiment of the present invention, the embodiment of the present invention It is not limited to this scene.
With reference to the accompanying drawing, the side of multicast data flow transmission quality is detected in the present invention will be described in detail embodiment by embodiment The specific implementation of method and device.
Fig. 2 is a kind of flow chart for the method for detecting multicast data flow transmission quality in the embodiment of the present invention.The present embodiment is from survey The angle for trying the receiving end of message introduces the method.In the present embodiment, the method for example can specifically include:
201, first network equipment receives at least one test packet that second network equipment is sent, and the test packet is Internet Control Message agreement icmp packet, with the mark of multicast data flow in the icmp packet, the icmp packet is described Between first network equipment and second network equipment mark based on the multicast data flow according to the multicast data flow transmission side Formula is transmitted, and the first network equipment and second network equipment are the network in the transmission path of the multicast data flow Equipment.
There is the first network equipment and second network equipment in the transmission path of the multicast data flow, wherein Second network equipment is located at the upstream of the first network equipment, and the first network equipment is located at second network and sets Standby downstream.If desired transmission matter of the multicast data flow between second network equipment and the first network equipment is detected Amount, such as test instruction can be initiated to second network equipment from technical staff, wherein the test instruction carries There is the mark of the multicast data flow, is used to indicate the detection for carrying out transmission quality to the multicast data flow.It is asked getting the test After asking, second network equipment determines the test according to the mark of the multicast data flow carried in the test instruction The corresponding multicast data flow is instructed, generate test packet for the multicast data flow and is sent to the first network equipment.In addition, institute It states test instruction and is also possible to second network equipment itself according to pre-set regular automatic trigger, such as described second The network equipment is instructed according to the automatic test of certain detection cycle.
It is understood that technical staff can be by way of plurality of optional to described in second network equipment triggering Test instruction.For example, technical staff can directly operate on second network equipment, second network equipment in response to The operation of technical staff can trigger the test instruction.For another example, technical staff can also operate on its terminal device, described Terminal device can trigger the test instruction in response to the operation of technical staff and send to second network equipment, In, there is the connection being in communication with each other between the terminal device and second network equipment.For another example, technical staff can also be It is operated in the first network equipment, the first network equipment can trigger the test in response to the operation of technical staff and refer to It enables and is sent to second network equipment.
It should be noted that since the test packet has the mark of the multicast data flow, the survey in a network Examination message is actually the multicast message of the multicast data flow of having been disguised oneself as, that is, the test packet is according to the multicast data flow Transmission mode is transmitted in a network.Specifically, the test packet is in second network equipment and the first network During being transmitted between equipment, what second network equipment and the test packet for sending the test packet passed through Each network equipment is forwarded processing to the test packet according to the corresponding forwarding strategy of the multicast data flow.Wherein, The corresponding forwarding strategy of the multicast data flow can for example be embodied as the corresponding multicast of the multicast data flow on network devices and turn It delivers.Due to transmission process of the test packet between second network equipment and the first network equipment with it is described The transmission process of multicast data flow be it is completely the same, the first network equipment analyzes the multicast data flow based on the test packet Transmission quality, to can be obtained by accurate believable testing result.
For one-time detection process, second network equipment for example can send multiple surveys to the first network equipment Message is tried, so that the first network equipment can analyze the transmission quality of multicast data flow based on multiple test packets, thus To broadly testing result.Specifically, second network equipment can be total according to the sending cycle and message made an appointment Number sends a test packet every a sending cycle, until the test packet of the message total is sent.
It is understood that second network equipment is before sending the test packet, it can be first to described first The network equipment sends setup test notice.The first network equipment notifies to execute the preparation behaviour of test based on the setup test Make, and prepares the rear to second network equipment transmission setup test response of operation having executed.Second network equipment The test packet can be sent to the first network equipment receiving the rear of the setup test response.Wherein, described Preparing operation for example may include, and grasp in the first network equipment to the clearing of counting and timing in relation to test packet Make.In addition, in setup test notice such as can carry test packet transmission sum, parameter sending cycle, That is, notifying second network equipment and the first network equipment that can make an appointment by the setup test, this is detected The parameters such as the transmission sum of test packet and sending cycle in the process, the first network equipment described in this way can be based on the transmission The total transmission quality that the multicast data flow is analyzed with sending cycle.
In some embodiments, second network equipment can send institute using an independent hardware Test packet is stated, the transmission of the test packet described in this way can be not take up the CPU of second network equipment, to prevent a large amount of The transmission of test packet causes to impact to CPU.Wherein, can be referred to as dedicated for sending the separate hardware of the test packet Send specialized hardware.Specifically, the test program in second network equipment can send generated test packet to The transmission specialized hardware, the transmission specialized hardware can squeeze into sending time in the test packet and stab and will carry The test packet of sending time stamp is sent.Wherein, the sending time stamp indicates that second network equipment is sent The time of the test packet.As an example, the transmission specialized hardware can be showing in second network equipment There is the logic hardware formed on hardware foundation by programming in logic, the logic hardware is implemented for sending the test The logic function of transmission.For example, the specialized hardware that sends can be the CPU coprocessor of second network equipment.
Similarly, the first network equipment can receive the test report using an independent hardware The reception of text, the test packet described in this way can be not take up the CPU of the first network equipment, to prevent a large amount of test packets Transmission CPU is caused to impact.Wherein, the separate hardware dedicated for the transmission test packet can be referred to as to receive dedicated Hardware, that is, step 201 for example can be with specifically: the first network equipment receives described second by receiving specialized hardware At least one described test packet that the network equipment is sent.Specifically, the reception special equipment is receiving the test report After text, receiving time stamp is squeezed into the test packet and sends out the test packet for carrying the receiving time stamp The test program being sent in second network equipment.Wherein, the receiving time stamp indicates that the first network equipment receives The time of the test packet.As an example, the reception specialized hardware can be showing in the first network equipment There is the logic hardware formed on hardware foundation by programming in logic, the logic hardware is implemented for sending the test The logic function of transmission.For example, the specialized hardware that sends can be the CPU coprocessor of the first network equipment.
It in some embodiments, can be using transmission control between second network equipment and the first network equipment Agreement (English: Transmission Control Protocol, abbreviation TCP)/internet protocol (English: Internet processed Protocol, abbreviation IP) to transmit the test packet, the test packet described in this way can be transmitted more reliably for connection.Specifically Ground, before test packet transmission, second network equipment is established TCP/IP with the first network equipment and is connect.Described After TCP/IP connection is established, second network equipment is connected to the first network equipment by the TCP/IP and sends institute At least one test packet is stated, that is, at least one described test packet is in second network equipment and the first network It is transmitted between equipment by the TCP/IP connection.In addition, other than test packet, other reports relevant to detection multicast data flow Text can also be transmitted by TCP/IP connection, such as aforementioned setup test notice, aforementioned setup test response, the first network Equipment feeds back to the testing result etc. of second network equipment.
In some embodiments, second network equipment can be embedded in Magic number in the test packet, described First network equipment can identify the test packet by Magic number, and the first network equipment described in this way can exclude it The interference of his message more accurately identifies the test packet.Specifically, step 201 for example may include: the first network Equipment receives multicast message;The first network equipment searches the mark that the test packet whether is carried in the multicast message Know, the mark of the test packet includes Magic number;It is described if carrying the mark of the test packet in the multicast message The multicast message is identified as the test packet by first network equipment.Wherein, the mark of the test packet is in addition to described It except Magic number, such as can also include the group IP address and IP packet protocol number of the multicast data flow.
In the present embodiment, the test packet can be for example Internet Control Message agreement (English: Internet Control Message Protocol, abbreviation ICMP) message.Specifically, shown in Fig. 3 is partial words in a kind of test packet The example of section.In the ICMP Header field of the test packet include the type field, Code field, Checksum field, Id field, Sequence field and Data field.Wherein, the type field can be written into a kind of types value, so that the network equipment exists It can be that the test packet squeezes into timestamp based on the types value for time request when receiving the test packet. For example, the type field can be written into the types value for time request, it in this way can be to avoid the net for receiving the test packet Under the triggering of the test packet maloperation occurs for network equipment.Code field for example can be written into numerical value " 0 ".Checksum word Section can be written into the verification summation for detecting wrong packet.Id field can be written into the mark of test program, and second network is set It is standby above to can have one or more test programs for realizing detection multicast data flow transmission quality function, the test program Mark is for distinguishing test program different on second network equipment.Sequence field for example can be written into for indicating The sequence identification of test packet transmission sequence in this detection process, as Sequence field carries sequence identification " 5 " then indicate that the test packet is the test packet of the 5th transmission in this detection process.Data field for example can be written into Sending time stamp, receiving time stamp, Magic number, reservation etc..The sending time stamp indicates that second network equipment sends the survey The time for trying message, it can be the Data that the test packet is squeezed into when sending the test packet by second network equipment Field occupies 32 bits.Receiving time stamp indicates that first network equipment receives the time of the test packet, can be by The Data field of the test packet is written in the first network equipment when receiving the test packet.The Magic number is by institute The Data field that the test packet is written in second network equipment is stated, can be used for the first network equipment and identifying the survey Try exclusive PCR when message.
If second network equipment sends the test packet, the test packet example by the interface of EtherType As that can also include the target MAC (Media Access Control) address (abbreviation DMAC), source MAC (abbreviation SMAC), destination IP of the test packet Location (abbreviation DIP), source IP address (abbreviation SIP) and IP packet protocol number.Wherein, the target MAC (Media Access Control) address for example may include The group IP address of multicast mark and the multicast data flow, the multicast mark for example can be character string " 0100 ", the source MAC Location for example can be on second network equipment for sending the MAC Address of the interface of the test packet, the destination IP Address is, for example, corresponding group of IP address of the multicast data flow, and the source IP address for example can be the corresponding source IP of the multicast data flow Address.If the test packet is icmp packet, the IP packet protocol number can be " 1 ".
202, the first network equipment analyzes the multicast data flow described second according at least one described test packet Transmission quality between the network equipment and the first network equipment, obtains the testing result for describing the transmission quality.
It is understood that since the transmission quality of multicast data flow is analyzed by the first network equipment, it is described The network equipment that first network equipment belongs in the multicast data flow transmission path and the external equipment being not connected with the network equipment, As it can be seen that technical staff is not necessarily to the scene locating for the first network equipment for external equipment and the first network equipment phase Even, therefore, it is necessary to the number of devices of technical staff's execute-in-place to be reduced, and the operation of technical staff is simplified.In addition, by It is that the first network equipment is based on test packet in second network equipment and described first in the transmission quality of multicast data flow What the one-way transmission process between the network equipment was analyzed, which is the one-way transmission process of multicast data flow, As it can be seen that test packet multicast data flow it is reversed on unicast transmission process be not applied to analyze multicast data flow transmission quality, because This, the testing result obtained based on the test packet is accurate believable.
In some embodiments, the first network equipment is after receiving the test packet, in addition to being based on institute It states test packet and analyzes transmission quality of the multicast data flow between second network equipment and the first network equipment, also The network equipment that the test packet can be continued downstream sends the test packet, so as to the network equipment in the downstream It can analyze the transmission quality of the multicast data flow.Wherein, the network equipment in the downstream indicates on the transmission road of the multicast data flow It is located at the network equipment of the first network device downstream on diameter.Specifically, the method for the present embodiment for example can also include: institute First network equipment is stated according to the corresponding forwarding strategy of the multicast data flow, forwarding at least one the test packet.Wherein, institute The corresponding multicast forward table of the multicast data flow can be presented as by stating the corresponding forwarding strategy of multicast data flow for example.
In the present embodiment, the testing result for describing the transmission quality for example may include shaky time, Packet loss, random ordering and/or wrong packet etc..
For shaky time, the first network equipment for example can receive test packet by the first network equipment Time calculated.Since the calculating of shaky time is without using second network equipment to send the time of test packet, Even if the first network equipment is asynchronous with the clock of second network equipment, the first network equipment can still be counted Calculate accurate shaky time.
Specifically, the first test packet, the second test packet, third test packet indicate three continuous surveys of transmission sequence Try message, wherein second network equipment sends the time of first test packet and second network equipment is sent A sending cycle it has been separated by between the time of second test packet, second network equipment sends second test The time of message and second network equipment have been separated by a sending cycle between sending time of the third test packet. In other words, if first test packet is n-th of test packet that second network equipment is sent, second test Message is (n+1)th test packet that second network equipment is sent, and the third test packet is that second network is set The n-th+2 test packets that preparation is sent.Step 202 for example may include: that the first network equipment calculates the first time It is poor as first time with the difference of the second time, and the difference of second time and third time are calculated as the second time difference; The first network equipment calculates the first time poor difference between second time difference, exists as the multicast data flow Shaky time between second network equipment and the first network equipment.Wherein, first time indicates described the One network equipment receives the time of first test packet, and second time indicates described in the first network equipment reception The time of second test packet, the third time difference indicate the first network equipment receive the third test packet when Between.
It is understood that the first network equipment can pass through first test packet, second survey respectively The timestamp carried in examination message and the third test packet obtains the first time, second time and the third Time.Specifically, after first test packet reaches the first network equipment, the reception of the first network equipment Specialized hardware can squeeze into the first receiving time stamp in first test packet, so that first network equipment calculating is trembled It can be stabbed based on first receiving time in first test packet when dynamic time and identify the first time.It is similar Ground, after second test packet reaches the first network equipment, the reception specialized hardware of the first network equipment The second receiving time stamp can be squeezed into second test packet, when calculating shaky time so as to the first network equipment It can be stabbed based on second receiving time in second test packet and identify second time.And described After third test packet reaches the first network equipment, the reception specialized hardware of the first network equipment can be described Third receiving time stamp is squeezed into third test packet, can be based on institute when calculating shaky time so as to the first network equipment The third receiving time stamp stated in third test packet identifies the third time.
For packet loss, the first network equipment can for example be judged by the transmission sequence of test packet.Specifically Ground, for judging whether the 4th test packet packet loss occurs, the 4th test packet can be second network equipment It is sent to any one test packet of the first network equipment.Step 202 for example may include: the first network equipment According to the first sequence identification, the 4th test packet corresponding reception time limit is determined;If the first network equipment is described It receives and receives the 4th test packet in the time limit, the 4th test packet is included in reception report by the first network equipment Literary number;If the first network equipment does not receive the 4th test packet, the first network within the reception time limit 4th test packet is included in by equipment refusal receives message number.Wherein, first sequence identification is indicated described second The sequence of 4th test packet described in the test packet that the network equipment is sent, the first network equipment for example can be from described Sequence field in 4th test packet obtains first sequence identification.When the corresponding reception of the 4th test packet Limit for example can be to be come out based on first sequence identification, sending cycle and preset transmission calculation of time, that is, when reception Limit=sequence number value * sending cycle+transmission time limit, wherein the sequence number value is described first suitable for the 4th test packet The occurrence of sequence mark, transmission time interval of the sending cycle between two neighboring test packet, the transmission time limit Specially time limit for being transmitted between second network equipment and the first network equipment of test packet.The reception message Number transmits the packet loss between the first network equipment in second network equipment for calculating the multicast data flow, for example, The ratio of the packet loss is specifically as follows the ratio of the transmission sum of the reception message number and test packet.It is understood that It is that actually two kinds of test packets are not counted into the reception message number, is not received one is the first network equipment Test packet, another kind are that the first network equipment is more than the test packet received in the reception time limit.
For random ordering, the first network equipment can for example be judged by the transmission sequence of test packet.Specifically Ground, by taking the 5th test packet and the 6th test packet as an example, the 5th test packet can be with the 6th test packet Second network equipment is sent to any two test packet of the first network equipment.Wherein, the first network is set It is standby to receive the 6th test packet after receiving the 5th test packet.For example, the 5th test packet with 6th test packet indicates the even continuous test packet of transmission sequence, that is, second network equipment sends described the The time that the time of five test packets and second network equipment send the 6th test packet has been separated by a transmission week Phase.In other words, if the 5th test packet is n-th of test packet that second network equipment is sent, the described 6th Test packet is (n+1)th test packet that second network equipment is sent.Step 202 for example may include: described first The network equipment compares the second sequence identification and third sequence identification;It is marked if second sequence identification is less than the third sequence Know, the 6th test packet is included in the multicast data flow in second network equipment and described the by the first network equipment Out-of-order message number between one network equipment.Wherein, the second sequence identification expression is sent in second network equipment The sequence of 5th test packet described in test packet, second sequence identification carry the institute in the 5th test packet Stating first network equipment for example can obtain second sequence identification from the Sequence field in the 5th test packet; The third sequence identification indicates the sequence of the 6th test packet described in the test packet sent in second network equipment, The third sequence identification carries in the 6th test packet, and the first network equipment can for example be surveyed from the described 6th The Sequence field tried in message obtains the third sequence identification.The first network equipment for example can be receiving It is identified when stating five test packets using the second sequence identification in the 5th test packet as current order, receiving The size of the third sequence identification and current order mark when six test packets in the 6th test packet is stated, thus Determine the size of the second transmission sequence and the third transmission sequence.
Mistake is wrapped, the first network equipment for example can be by verifying the verification summation carried in the test packet Judged.Specifically, by taking the 7th test packet as an example, the 7th test packet can be second network equipment and send To any one test packet of the first network equipment.Step 202 for example may include: the first network equipment identification And verify the verification summation carried in the 7th test packet;If the verification summation is unverified, the first network 7th test packet is included in the multicast data flow between second network equipment and the first network equipment by equipment Wrong packet voice number.
In some embodiments, the first network equipment is after obtaining the testing result, can also will be described Testing result feeds back to second network equipment, and such technical staff can trigger test in second network equipment and refer to It enables and obtains testing result.Specifically, the present embodiment for example can also include: the first network equipment to second network Equipment sends the testing result.Furthermore, since second network equipment described during one-time detection can be to described First network equipment sends multiple test packets, and the first network equipment can be obtained when receiving each test packet Testing result.In some embodiments, the detection knot for being respectively obtained during one-time detection based on multiple test packets Fruit, the first network equipment for example can be by the testing results obtained based on each test packet respectively to second network Equipment is sent, in this way, first network equipment is all to return to needle to second network equipment after receiving test packet every time To the testing result of this received test packet.In other embodiments, multiple for being based on during one-time detection The testing result that test packet respectively obtains, the institute that the first network equipment can will for another example be obtained based on multiple test packets There is testing result to send jointly to second network equipment, in this way, first network equipment can all surveys in this detection process Examination message transmissions are unified after finishing to send test result to second network equipment.
In the present embodiment, divided due to the transmission quality of multicast data flow by the network equipment in multicast data flow transmission path Analysis and detection, technical staff only need to trigger test packet and transmit between the network devices according to multicast data flow, it will be able to To the testing result of transmission quality of the multicast data flow between each network equipment, without going to the scene of each network equipment as each network Equipment connects external equipment, and therefore, it is necessary to the quantity of the network equipment of technical staff's execute-in-place to greatly reduce, and technical staff exists The work undertaken is needed to be simplified when positioning multicast data flow transmission quality problem.
Fig. 4 is a kind of flow chart for the method for detecting multicast data flow transmission quality in the embodiment of the present invention.The present embodiment is from survey The angle for trying the transmitting terminal of message introduces the method.In the present embodiment, the method for example can specifically include:
401, second network equipment generates at least one test packet;The test packet is Internet Control Message agreement Icmp packet, with the mark of multicast data flow in the icmp packet;
402, second network equipment sends at least one described test packet to first network equipment, so as to described the One network equipment analyzes multicast data flow in the first network equipment and second network according at least one described test packet Transmission quality between equipment obtains the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network Equipment and second network equipment are the network equipment in the transmission path of the multicast data flow.
Optionally, the method also includes:
Second network equipment receives the testing result that the first network equipment is sent.
Optionally, second network equipment sends at least one test packet to first network equipment, specifically: it is described Second network equipment sends at least one described test packet, the hair to the first network equipment by sending specialized hardware Sending specialized hardware is the separate hardware for sending the test packet.
Optionally, between the first network equipment and second network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between the first network equipment and second network equipment The TCP/IP connection transmission.
Optionally, the Magic number that second network equipment is squeezed into, the Magic number are carried in the test packet By the first network equipment test packet for identification.
It should be noted that second network equipment in the embodiment of the present invention is equivalent in aforementioned embodiment shown in Fig. 2 The first network equipment referred to, the first network equipment in the embodiment of the present invention, which is equivalent in aforementioned embodiment shown in Fig. 2, to be mentioned And second network equipment.The various specific embodiments for the method that second network equipment executes in the present embodiment, can join See being discussed in detail for aforementioned embodiment shown in Fig. 2, details are not described herein again.
In the present embodiment, divided due to the transmission quality of multicast data flow by the network equipment in multicast data flow transmission path Analysis and detection, technical staff only need to trigger test packet and transmit between the network devices according to multicast data flow, it will be able to To the testing result of transmission quality of the multicast data flow between each network equipment, without going to the scene of each network equipment as each network Equipment connects external equipment, and therefore, it is necessary to the quantity of the network equipment of technical staff's execute-in-place to greatly reduce, and technical staff exists The work undertaken is needed to be simplified when positioning multicast data flow transmission quality problem.
Shown in fig. 5 is a kind of structural schematic diagram for the control device for counting flow in the embodiment of the present invention.In this implementation In example, described device 500 is first network equipment.Described device 500 for example can specifically include:
Receiving unit 501, for receiving at least one test packet of second network equipment transmission, the test packet is Internet Control Message agreement icmp packet, with the mark of multicast data flow in the icmp packet, the icmp packet is described Between first network equipment and second network equipment mark based on the multicast data flow according to the multicast data flow transmission side Formula is transmitted, and the first network equipment and second network equipment are the network in the transmission path of the multicast data flow Equipment;
Analytical unit 502, for analyzing the multicast data flow in second network according at least one described test packet Transmission quality between equipment and the first network equipment, obtains the testing result for describing the transmission quality.
For example, device 500 shown in fig. 5 can be used for executing method shown in Fig. 2.Specifically, receiving unit 501 It can be used for executing 201 in Fig. 2.Analytical unit 502 can be used for executing 202 in Fig. 2.
Optionally, the testing result includes shaky time, at least one described test packet include the first test packet, Second test packet and third test packet;
The analytical unit 502, is specifically used for:
The difference for calculating the first time and the second time is poor as first time, and calculates second time and third The difference of time is as the second time difference;Wherein, the first time indicates that the first network equipment receives first test The time of message, second time indicate that the first network equipment receives the time of second test packet, described Three times indicated that the first network equipment received the time of the third test packet;
The first time poor difference between second time difference is calculated, as the multicast data flow described second Shaky time between the network equipment and the first network equipment.
Optionally, the testing result includes packet loss, at least one described test packet includes the 4th test packet;
The analytical unit 502, is specifically used for:
According to the first sequence identification, the 4th test packet corresponding reception time limit is determined;Wherein, first sequence Mark indicates the sequence of the 4th test packet described in the test packet sent in second network equipment, first sequence Mark carries in the 4th test packet;
If receiving the 4th test packet within the reception time limit, the 4th test packet is included in reception report Literary number;
If not receiving the 4th test packet within the reception time limit, the 4th test packet is included in by refusal Receive message number;
Wherein, the reception message number is for calculating the multicast data flow in second network equipment transmission and described first Packet loss between the network equipment.
Optionally, the testing result includes random ordering, at least one described test packet includes the 5th test packet and the Six test packets, wherein the first network equipment receives the described 6th after receiving the 5th test packet and surveys Try message;
The analytical unit 502, is specifically used for:
Compare the second sequence identification and third sequence identification;Wherein, the second transmission sequence is indicated in second net The sequence of 5th test packet described in the test packet that network equipment is sent, second sequence identification is carried to be surveyed the described 5th It tries in message, the third transmission sequence indicates the 6th test report described in the test packet sent in second network equipment The sequence of text, the third sequence identification carry in the 6th test packet;
If second sequence identification is less than the third sequence identification, the 6th test packet is included in the multicast Flow the out-of-order message number between second network equipment and the first network equipment.
Optionally, the testing result includes wrong packet, at least one described test packet includes the 7th test packet;
The analytical unit 502, is specifically used for:
The first network equipment identifies and verifies the verification summation Checksum carried in the 7th test packet;
If the verification summation is unverified, the 7th test packet is included in described group by the first network equipment Broadcast the wrong packet voice number flowed between second network equipment and the first network equipment.
Optionally, described device 500 further include:
First transmission unit, for sending the testing result to second network equipment.
Optionally, first transmission unit, is specifically used for:
After receiving each test packet, by the testing result obtained based on each test packet respectively to described Two network equipments are sent.
Optionally, second transmission unit, is specifically used for:
After receiving multiple test packets, all testing results obtained based on multiple test packets are sent together To second network equipment.
Optionally, the receiving unit 501, is specifically used for:
At least one test packet described in second network equipment transmission is received by receiving specialized hardware, it is described to connect Receiving specialized hardware is the separate hardware for receiving the test packet.
Optionally, between the first network equipment and second network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between second network equipment and the first network equipment The TCP/IP connection transmission.
Optionally, described device 500 further include:
Second transmission unit, for according to the corresponding forwarding strategy of the multicast data flow, forwarding at least one the test Message.
Optionally, the receiving unit 501, is specifically used for:
Receive multicast message;
The mark that the test packet whether is carried in the multicast message is searched, the mark of the test packet includes Magic number;
If carrying the mark of the test packet in the multicast message, the multicast message is identified as the test Message.
Optionally, described device 500 further include:
Notification receiving unit, for receiving at least one that second network equipment sends in first receiving unit Before test packet, the setup test notice that second network equipment is sent is received;
Preparatory unit notifies the preparation for executing test to operate for the first network equipment based on the setup test;
Transmission unit is responded, rear send to second network equipment for being finished in the preparation operation prepares Test is responded, and responds at least one described test packet of transmission so that second network equipment is based on the setup test.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
It should be noted that the device 500 in the present embodiment sets for the first network in aforementioned embodiment shown in Fig. 2 It is standby.The various specific embodiments of device 500 in the present embodiment may refer to aforementioned embodiment shown in Fig. 2 about first The network equipment is discussed in detail, and details are not described herein again.
In the present embodiment, divided due to the transmission quality of multicast data flow by the network equipment in multicast data flow transmission path Analysis and detection, technical staff only need to trigger test packet and transmit between the network devices according to multicast data flow, it will be able to To the testing result of transmission quality of the multicast data flow between each network equipment, without going to the scene of each network equipment as each network Equipment connects external equipment, and therefore, it is necessary to the quantity of the network equipment of technical staff's execute-in-place to greatly reduce, and technical staff exists The work undertaken is needed to be simplified when positioning multicast data flow transmission quality problem.
Shown in fig. 6 is a kind of structural representation for the control device for detecting multicast data flow transmission quality in the embodiment of the present invention Figure.In the present embodiment, described device 600 is deployed with second network equipment.Described device 600 for example can specifically include:
Generation unit 601, for generating at least one test packet;The test packet is Internet Control Message agreement Icmp packet, with the mark of multicast data flow in the icmp packet;
Transmission unit 602, for sending at least one described test packet to first network equipment, so as to first net Network equipment analyzes multicast data flow in the first network equipment and second network equipment according at least one described test packet Between transmission quality, obtain the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network Equipment and second network equipment are the network equipment in the transmission path of the multicast data flow.
For example, device 600 shown in fig. 6 can be used for executing method shown in Fig. 4.Specifically, generation unit 601 It can be used for executing 401 in Fig. 4.Transmission unit 402 can be used for executing 402 in Fig. 4.
Optionally, described device 600 further include:
Receiving unit, the testing result sent for receiving the first network equipment.
Optionally, the testing result is that the first network equipment is based on each after receiving each test packet Test packet respectively obtains and sends testing result respectively.
Optionally, the testing result is described in the first network equipment is based on after receiving multiple test packets Multiple test packets obtain simultaneously sending all testing results together.
Optionally, the transmission unit 602, is specifically used for:
At least one described test packet is sent to the first network equipment by sending specialized hardware, it is described to send specially With the separate hardware that hardware is for sending the test packet.
Optionally, between second network equipment and the first network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between the first network equipment and second network equipment The TCP/IP connection transmission.
Optionally, the Magic number that second network equipment is squeezed into, the Magic number are carried in the test packet By the first network equipment test packet for identification.
Optionally, described device 600 further include:
Transmission unit is notified, for sending at least one described test to the first network equipment in the transmission unit Before message, Xiang Suoshu first network equipment sends setup test notice, so that the first network equipment is based on the preparation Test notice executes the preparation operation of test;
Receiving unit is responded, setup test is received for second network equipment and responds;
The setup test is responded, be the first network equipment it is described prepare that operation is finished it is rear to described the What two network equipments were sent, at least one described test packet is sent for triggering second network equipment.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
It should be noted that the device 600 in the present embodiment sets for the second network in aforementioned embodiment shown in Fig. 2 It is standby.The various specific embodiments of device 600 in the present embodiment may refer to aforementioned embodiment shown in Fig. 2 about second The network equipment is discussed in detail, and details are not described herein again.
In the present embodiment, divided due to the transmission quality of multicast data flow by the network equipment in multicast data flow transmission path Analysis and detection, technical staff only need to trigger test packet and transmit between the network devices according to multicast data flow, it will be able to To the testing result of transmission quality of the multicast data flow between each network equipment, without going to the scene of each network equipment as each network Equipment connects external equipment, and therefore, it is necessary to the quantity of the network equipment of technical staff's execute-in-place to greatly reduce, and technical staff exists The work undertaken is needed to be simplified when positioning multicast data flow transmission quality problem.
Fig. 7 is a kind of structural schematic diagram of the network equipment in the embodiment of the present invention.In the present embodiment, the network equipment 700 First network equipment in embodiment specially shown in Fig. 2, can be used for executing the method for embodiment shown in Fig. 2.It is described The network equipment 700 includes: processor 701, memory 702, network interface 703, bus system 704.
The bus system 704, for each hardware component of physical server 700 to be coupled.
The network interface 703, for realizing the communication link between physical server 700 and at least one other network element It connects, internet, wide area network, local network, the modes such as Metropolitan Area Network (MAN) can be used.
The memory 702, for storing program instruction and data.
The processor 701, for reading the instruction and data stored in memory 702, the following operation of execution:
At least one test packet of second network equipment transmission is received, the test packet is Internet Control Message association Icmp packet is discussed, the mark with multicast data flow in the icmp packet, the icmp packet is in the first network equipment and institute It states the mark based on the multicast data flow between second network equipment to be transmitted according to the transmission mode of the multicast data flow, described One network equipment and second network equipment are the network equipment in the transmission path of the multicast data flow;
According at least one described test packet, the multicast data flow is analyzed in second network equipment and first net Transmission quality between network equipment obtains the testing result for describing the transmission quality.
Optionally, the testing result includes shaky time, at least one described test packet include the first test packet, Second test packet and third test packet;
In order to analyze the transmission quality, the processor 701 can execute following operation:
The difference for calculating the first time and the second time is poor as first time, and calculates second time and third The difference of time is as the second time difference;Wherein, the first time indicates that the first network equipment receives first test The time of message, second time indicate that the first network equipment receives the time of second test packet, described Three times indicated that the first network equipment received the time of the third test packet;
The first time poor difference between second time difference is calculated, as the multicast data flow described second Shaky time between the network equipment and the first network equipment.
Optionally, the testing result includes packet loss, at least one described test packet includes the 4th test packet;
In order to analyze the transmission quality, the processor 701 can execute following operation:
According to the first sequence identification, the 4th test packet corresponding reception time limit is determined;Wherein, first sequence Mark indicates the sequence of the 4th test packet described in the test packet sent in second network equipment, first sequence Mark carries in the 4th test packet;
If receiving the 4th test packet within the reception time limit, the 4th test packet is included in reception report Literary number;
If not receiving the 4th test packet within the reception time limit, the 4th test packet is included in by refusal Receive message number;
Wherein, the reception message number is for calculating the multicast data flow in second network equipment transmission and described first Packet loss between the network equipment.
Optionally, the testing result includes random ordering, at least one described test packet includes the 5th test packet and the Six test packets, wherein receive the 6th test packet after receiving the 5th test packet;
In order to analyze the transmission quality, the processor 701 can execute following operation:
Compare the second sequence identification and third sequence identification;Wherein, the second transmission sequence is indicated in second net The sequence of 5th test packet described in the test packet that network equipment is sent, second sequence identification is carried to be surveyed the described 5th It tries in message, the third transmission sequence indicates the 6th test report described in the test packet sent in second network equipment The sequence of text, the third sequence identification carry in the 6th test packet;
If second sequence identification is less than the third sequence identification, the 6th test packet is included in the multicast Flow the out-of-order message number between second network equipment and the first network equipment.
Optionally, the testing result includes wrong packet, at least one described test packet includes the 7th test packet;
In order to analyze the transmission quality, the processor 701 can execute following operation:
It identifies and verifies the verification summation Checksum carried in the 7th test packet;
If the verification summation is unverified, the 7th test packet is included in the multicast data flow in second net Wrong packet voice number between network equipment and the first network equipment.
Optionally, following operation can also be performed in the processor 701:
The testing result is sent to second network equipment.
Optionally, in order to send the testing result to second network equipment, the processor 701 can execute with Lower operation:
After receiving each test packet, by the testing result obtained based on each test packet respectively to described Two network equipments are sent.
Optionally, in order to send the testing result to second network equipment, the processor 701 can execute with Lower operation:
After receiving multiple test packets, all testing results obtained based on multiple test packets are sent together To second network equipment.
Optionally, at least one test packet that second network equipment is sent is received, specifically: the first network equipment At least one test packet described in second network equipment transmission is received by receiving specialized hardware, the reception is dedicated hard Part is the separate hardware for receiving the test packet.
Optionally, between the first network equipment and second network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between second network equipment and the first network equipment The TCP/IP connection transmission.
Optionally, following operation can also be performed in the processor 701:
According to the corresponding forwarding strategy of the multicast data flow, forwarding at least one the test packet.
Optionally, in order to receive at least one test packet that second network equipment is sent, the processor 701 can be held The following operation of row:
Receive multicast message;
The mark that the test packet whether is carried in the multicast message is searched, the mark of the test packet includes Magic number;
If carrying the mark of the test packet in the multicast message, the multicast message is identified as the test Message.
Optionally, before receiving at least one test packet that second network equipment is sent, the processor 701 Following operation can also be performed:
The first network equipment receives the setup test notice that second network equipment is sent;
The first network equipment notifies to execute the preparation operation of test based on the setup test, and grasps in the preparation Make to be finished rear to second network equipment transmission setup test response, so that second network equipment is based on described Setup test, which is responded, sends at least one described test packet.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
Fig. 8 is a kind of structural schematic diagram of the network equipment in the embodiment of the present invention.The network equipment 800 in the present embodiment There is second network equipment in embodiment shown in Fig. 2 in administration, can be used for executing the method for embodiment shown in Fig. 4.The net Network equipment 800 includes: processor 801, memory 802, network interface 803, bus system 804.
The bus system 804, for each hardware component of physical server 800 to be coupled.
The network interface 803, for realizing the communication link between physical server 800 and at least one other network element It connects, internet, wide area network, local network, the modes such as Metropolitan Area Network (MAN) can be used.
The memory 802, for storing program instruction and data.
The processor 801, for reading the instruction and data stored in memory 802, the following operation of execution:
Generate at least one test packet;The test packet is Internet Control Message agreement icmp packet, described With the mark of multicast data flow in icmp packet;
Send at least one described test packet to first network equipment, so as to the first network equipment according to extremely A few test packet analyzes transmission quality of the multicast data flow between the first network equipment and second network equipment, Obtain the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network Equipment and second network equipment are the network equipment in the transmission path of the multicast data flow.
Optionally, following operation can also be performed in the processor 801:
Receive the testing result that the first network equipment is sent.
Optionally, the testing result is that the first network equipment is based on each after receiving each test packet Test packet respectively obtains and sends testing result respectively.
Optionally, the testing result is described in the first network equipment is based on after receiving multiple test packets Multiple test packets obtain simultaneously sending all testing results together.
Optionally, in order to send at least one described test packet to first network equipment, the processor 801 can be held The following operation of row:
At least one described test packet is sent to the first network equipment by sending specialized hardware, it is described to send specially With the separate hardware that hardware is for sending the test packet.
Optionally, between second network equipment and the first network equipment establish have transmission control protocol TCP/mutually The IP connection of networking association, at least one described test packet pass through between the first network equipment and second network equipment The TCP/IP connection transmission.
Optionally, the Magic number that second network equipment is squeezed into, the Magic number are carried in the test packet By the first network equipment test packet for identification.
Optionally, before sending at least one described test packet to the first network equipment, the processor 801 Following operation can also be performed:
Setup test notice is sent to the first network equipment, so that the first network equipment is surveyed based on the preparation It pings and knows the preparation operation for executing test;
Setup test is received to respond;
The setup test is responded, be the first network equipment it is described prepare that operation is finished it is rear to described the What two network equipments were sent, at least one described test packet is sent for triggering second network equipment.
Optionally, the transmission sum of at least one test packet is carried in the setup test notice and send week Phase.
Optionally, sending time stamp and receiving time stamp are carried in the test packet, the sending time stamp indicates Second network equipment sends the time of the test packet, and the receiving time stamp indicates that first network equipment receives the test The time of message.
Optionally, the mark of test program is carried in the test packet, the test program is that second network is set For realizing the program of detection multicast data flow transmission quality function on standby.
" the first network equipment " mentioned in the embodiment of the present invention, " the first test packet ", " first time ", " when first Between it is poor ", " the first sequence identification ", " first " in the titles such as " " be used only to do name mark, do not represent sequentially One.The rule is equally applicable to " second ", " third ", " the 4th ", " the 5th ", " the 6th ", " the 7th " etc..
As seen through the above description of the embodiments, those skilled in the art can be understood that above-mentioned implementation All or part of the steps in example method can add the mode of general hardware platform to realize by software.Based on this understanding, Technical solution of the present invention can be embodied in the form of software products, which can store is situated between in storage In matter, such as read-only memory (English: read-only memory, ROM)/RAM, magnetic disk, CD etc., including some instructions to So that a computer equipment (can be the network communication equipments such as personal computer, server, or router) executes Method described in certain parts of each embodiment of the present invention or embodiment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for method reality For applying example and apparatus embodiments, since it is substantially similar to system embodiment, so describe fairly simple, related place ginseng See the part explanation of system embodiment.Equipment and system embodiment described above is only schematical, wherein making It may or may not be physically separated for the module of separate part description, the component shown as module can be Or it may not be physical module, it can it is in one place, or may be distributed over multiple network units.It can be with Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment according to the actual needs.The common skill in this field Art personnel can understand and implement without creative efforts.
The above is only a preferred embodiment of the present invention, it is not intended to limit the scope of the present invention.It should refer to Out, for those skilled in the art, under the premise of not departing from the present invention, can also make several improvements And retouching, these modifications and embellishments should also be considered as the scope of protection of the present invention.

Claims (30)

1. a kind of method for detecting multicast data flow transmission quality characterized by comprising
First network equipment receives at least one test packet that second network equipment is sent, and the test packet is interconnection network control Message protocol icmp packet processed, with the mark of multicast data flow in the icmp packet, the icmp packet is in the first network The mark based on the multicast data flow is passed according to the transmission mode of the multicast data flow between equipment and second network equipment Defeated, the first network equipment and second network equipment are the network equipment in the transmission path of the multicast data flow;? In the transmission path of the multicast data flow, second network equipment is located at the upstream of the first network equipment, first net Network equipment is located at the downstream of second network equipment;
The first network equipment analyzes the multicast data flow in second network equipment according at least one described test packet Transmission quality between the first network equipment, obtains the testing result for describing the transmission quality.
2. the method according to claim 1, wherein the testing result includes shaky time, described at least one A test packet includes the first test packet, the second test packet and third test packet;
The first network equipment analyzes the multicast data flow from second network equipment according at least one described test packet To the transmission quality of the first network equipment, the testing result for describing the transmission quality is obtained, comprising:
The first network equipment calculates at the first time and the difference of the second time is as poor at the first time, and when calculating described second Between and the third time difference as the second time difference;Wherein, the first time indicates described in the first network equipment reception The time of first test packet, second time indicate the first network equipment receive second test packet when Between, the third time indicates that the first network equipment receives the time of the third test packet;
The first network equipment calculates the first time poor difference between second time difference, as the multicast Flow the shaky time between second network equipment and the first network equipment.
3. the method according to claim 1, wherein the testing result includes packet loss, at least one described survey Trying message includes the 4th test packet;
The first network equipment analyzes the multicast data flow from second network equipment according at least one described test packet To the transmission quality of the first network equipment, the testing result for describing the transmission quality is obtained, comprising:
The first network equipment determines the 4th test packet corresponding reception time limit according to the first sequence identification;Wherein, First sequence identification indicates the sequence of the 4th test packet described in the test packet sent in second network equipment, First sequence identification carries in the 4th test packet;
If the first network equipment receives the 4th test packet, the first network equipment within the reception time limit 4th test packet is included in and receives message number;
If the first network equipment does not receive the 4th test packet within the reception time limit, the first network is set 4th test packet is included in by standby refusal receives message number;
Wherein, the reception message number is for calculating the multicast data flow in second network equipment transmission and the first network Packet loss between equipment.
4. the method according to claim 1, wherein the testing result includes out-of-order, at least one described survey Trying message includes the 5th test packet and the 6th test packet, wherein the first network equipment is receiving the 5th survey The 6th test packet is received after examination message;
The first network equipment analyzes the multicast data flow from second network equipment according at least one described test packet To the transmission quality of the first network equipment, the testing result for describing the transmission quality is obtained, comprising:
The first network equipment compares the second sequence identification and third sequence identification;Wherein, second sequence identification indicates The sequence of the 5th test packet described in the test packet that second network equipment is sent, second sequence identification carry In the 5th test packet, the third sequence identification indicates the institute in the test packet that second network equipment is sent The sequence of the 6th test packet is stated, the third sequence identification carries in the 6th test packet;
If second sequence identification is less than the third sequence identification, the first network equipment is by the 6th test packet It is included in out-of-order message number of the multicast data flow between second network equipment and the first network equipment.
5. the method according to claim 1, wherein the testing result includes wrong packet, at least one described survey Trying message includes the 7th test packet;
The first network equipment analyzes the multicast data flow from second network equipment according at least one described test packet To the transmission quality of the first network equipment, the testing result for describing the transmission quality is obtained, comprising:
The first network equipment identifies and verifies the verification summation Checksum carried in the 7th test packet;
If the verification summation is unverified, the 7th test packet is included in the multicast data flow by the first network equipment Wrong packet voice number between second network equipment and the first network equipment.
6. method described in any one according to claim 1~5, which is characterized in that further include:
The first network equipment sends the testing result to second network equipment.
7. method described in any one according to claim 1~5, which is characterized in that the first network equipment receives second At least one test packet that the network equipment is sent, specifically: the first network equipment receives institute by receiving specialized hardware At least one described test packet of second network equipment transmission is stated, the reception specialized hardware is for receiving the test report The separate hardware of text.
8. method described in any one according to claim 1~5, which is characterized in that the first network equipment and described the Establishing between two network equipments has transmission control protocol TCP/internet protocol IP connection, at least one described test packet is described It is transmitted between second network equipment and the first network equipment by the TCP/IP connection.
9. method described in any one according to claim 1~5, which is characterized in that further include:
The first network equipment is according to the corresponding forwarding strategy of the multicast data flow, forwarding at least one the test packet.
10. method described in any one according to claim 1~5, which is characterized in that the first network equipment receives second At least one test packet that the network equipment is sent, comprising:
The first network equipment receives multicast message;
The first network equipment searches the mark that the test packet whether is carried in the multicast message, the test report The mark of text includes Magic number;
If carrying the mark of the test packet in the multicast message, the first network equipment knows the multicast message It Wei not the test packet.
11. a kind of method for detecting multicast data flow transmission quality characterized by comprising
Second network equipment generates at least one test packet;The test packet is Internet Control Message agreement ICMP report Text, with the mark of multicast data flow in the icmp packet;
Second network equipment sends at least one described test packet to first network equipment, so that the first network is set Standby at least one test packet according to analyzes multicast data flow between the first network equipment and second network equipment Transmission quality, obtain the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network equipment With the network equipment that second network equipment is in the transmission path of the multicast data flow;In the transmission path of the multicast data flow On, second network equipment is located at the upstream of the first network equipment, and the first network equipment is located at second net The downstream of network equipment.
12. according to the method for claim 11, which is characterized in that further include:
Second network equipment receives the testing result that the first network equipment is sent.
13. according to the method for claim 11, which is characterized in that second network equipment is sent to first network equipment At least one test packet, specifically: second network equipment is sent out by sending specialized hardware to the first network equipment At least one described test packet is sent, the specialized hardware that sends is the separate hardware for sending the test packet.
14. according to the method for claim 11, which is characterized in that second network equipment and the first network equipment Between establish have transmission control protocol TCP/internet protocol IP connection, at least one described test packet is set in the first network It is standby to be transmitted between second network equipment by the TCP/IP connection.
15. according to the method for claim 11, which is characterized in that carry second network in the test packet The Magic number that equipment is squeezed into, the Magic number is by the first network equipment test packet for identification.
16. a kind of device for detecting multicast data flow transmission quality, which is characterized in that described device is first network equipment, comprising:
Receiving unit, for receiving at least one test packet of second network equipment transmission, the test packet is internet Internet Control Message Protocol icmp packet, with the mark of multicast data flow in the icmp packet, the icmp packet is in first net The mark based on the multicast data flow is carried out according to the transmission mode of the multicast data flow between network equipment and second network equipment Transmission, the first network equipment and second network equipment are the network equipment in the transmission path of the multicast data flow; In the transmission path of the multicast data flow, second network equipment is located at the upstream of the first network equipment, and described first The network equipment is located at the downstream of second network equipment;
Analytical unit, for according at least one described test packet, analyze the multicast data flow second network equipment with Transmission quality between the first network equipment, obtains the testing result for describing the transmission quality.
17. device according to claim 16, which is characterized in that the testing result includes shaky time, it is described at least One test packet includes the first test packet, the second test packet and third test packet;
The analytical unit, is specifically used for:
It calculates at the first time and the difference of the second time is poor as first time, and calculate the difference of second time and third time As the second time difference;Wherein, the first time indicate the first network equipment receive first test packet when Between, second time indicates that the first network equipment receives the time of second test packet, the third timetable Show that the first network equipment receives the time of the third test packet;
The first time poor difference between second time difference is calculated, as the multicast data flow in second network Shaky time between equipment and the first network equipment.
18. device according to claim 16, which is characterized in that the testing result includes packet loss, it is described at least one Test packet includes the 4th test packet;
The analytical unit, is specifically used for:
According to the first sequence identification, the 4th test packet corresponding reception time limit is determined;Wherein, first sequence identification Indicate the sequence of the 4th test packet described in the test packet sent in second network equipment, first sequence identification It carries in the 4th test packet;
If receiving the 4th test packet within the reception time limit, the 4th test packet is included in reception message Number;
If not receiving the 4th test packet within the reception time limit, the 4th test packet is included in reception by refusal Message number;
Wherein, the reception message number is for calculating the multicast data flow in second network equipment transmission and the first network Packet loss between equipment.
19. device according to claim 16, which is characterized in that the testing result include random ordering, it is described at least one Test packet includes the 5th test packet and the 6th test packet, wherein the first network equipment is receiving the described 5th The 6th test packet is received after test packet;
The analytical unit, is specifically used for:
Compare the second sequence identification and third sequence identification;Wherein, the second sequence identification expression is set in second network The sequence of 5th test packet described in the test packet that preparation is sent, second sequence identification are carried in the 5th test report Wen Zhong, the third sequence identification indicate the 6th test packet described in the test packet sent in second network equipment Sequentially, the third sequence identification carries in the 6th test packet;
If second sequence identification is less than the third sequence identification, the 6th test packet is included in the multicast data flow and is existed Out-of-order message number between second network equipment and the first network equipment.
20. device according to claim 16, which is characterized in that the testing result includes wrong packet, it is described at least one Test packet includes the 7th test packet;
The analytical unit, is specifically used for:
The first network equipment identifies and verifies the verification summation Checksum carried in the 7th test packet;
If the verification summation is unverified, the 7th test packet is included in the multicast data flow by the first network equipment Wrong packet voice number between second network equipment and the first network equipment.
21. device described in 6~20 any one according to claim 1, which is characterized in that further include:
First transmission unit, for sending the testing result to second network equipment.
22. device described in 6~20 any one according to claim 1, which is characterized in that the receiving unit is specifically used for:
At least one test packet described in second network equipment transmission is received by receiving specialized hardware, it is described to receive specially With the separate hardware that hardware is for receiving the test packet.
23. device described in 6~20 any one according to claim 1, which is characterized in that the first network equipment with it is described Establishing between second network equipment has transmission control protocol TCP/internet protocol IP connection, at least one described test packet is in institute It states and is transmitted between second network equipment and the first network equipment by the TCP/IP connection.
24. device described in 6~20 any one according to claim 1, which is characterized in that further include:
Second transmission unit, for according to the corresponding forwarding strategy of the multicast data flow, forwarding at least one the test packet.
25. device described in 6~20 any one according to claim 1, which is characterized in that the receiving unit is specifically used for:
Receive multicast message;
The mark that the test packet whether is carried in the multicast message is searched, the mark of the test packet includes magic Word;
If carrying the mark of the test packet in the multicast message, the multicast message is identified as the test and is reported Text.
26. a kind of device for detecting multicast data flow transmission quality, which is characterized in that described device is second network equipment, comprising:
Generation unit, for generating at least one test packet;The test packet is Internet Control Message agreement ICMP report Text, with the mark of multicast data flow in the icmp packet;
Transmission unit, for sending at least one described test packet to first network equipment, so as to the first network equipment According at least one described test packet, multicast data flow is analyzed between the first network equipment and second network equipment Transmission quality obtains the testing result for describing the transmission quality;
Wherein, at least one described test packet is the multicast message transmitted according to the multicast data flow, the first network equipment With the network equipment that second network equipment is in the transmission path of the multicast data flow;In the transmission path of the multicast data flow On, second network equipment is located at the upstream of the first network equipment, and the first network equipment is located at second net The downstream of network equipment.
27. device according to claim 26, which is characterized in that further include:
Receiving unit, the testing result sent for receiving the first network equipment.
28. device according to claim 26, which is characterized in that the transmission unit is specifically used for:
At least one described test packet is sent to the first network equipment by sending specialized hardware, the transmission is dedicated hard Part is the separate hardware for sending the test packet.
29. device according to claim 26, which is characterized in that second network equipment and the first network equipment Between establish have transmission control protocol TCP/internet protocol IP connection, at least one described test packet is set in the first network It is standby to be transmitted between second network equipment by the TCP/IP connection.
30. device according to claim 26, which is characterized in that carry second network in the test packet The Magic number that equipment is squeezed into, the Magic number is by the first network equipment test packet for identification.
CN201610244477.3A 2016-04-19 2016-04-19 A kind of method, apparatus and system detecting multicast data flow transmission quality Active CN105828218B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610244477.3A CN105828218B (en) 2016-04-19 2016-04-19 A kind of method, apparatus and system detecting multicast data flow transmission quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610244477.3A CN105828218B (en) 2016-04-19 2016-04-19 A kind of method, apparatus and system detecting multicast data flow transmission quality

Publications (2)

Publication Number Publication Date
CN105828218A CN105828218A (en) 2016-08-03
CN105828218B true CN105828218B (en) 2019-06-11

Family

ID=56527111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610244477.3A Active CN105828218B (en) 2016-04-19 2016-04-19 A kind of method, apparatus and system detecting multicast data flow transmission quality

Country Status (1)

Country Link
CN (1) CN105828218B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121017B (en) * 2018-09-12 2021-08-20 视联动力信息技术股份有限公司 Method and device for evaluating quality of video networking network
CN113162855B (en) * 2020-01-22 2022-12-27 华为技术有限公司 Multicast message detection method, network equipment and system
CN112511365A (en) * 2020-03-24 2021-03-16 中兴通讯股份有限公司 Performance measurement method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893392A (en) * 2005-07-07 2007-01-10 华为技术有限公司 Method and apparatus for preventing user from obtaining operation trader network information
CN101035037A (en) * 2007-04-17 2007-09-12 华为技术有限公司 Method, system and related device for detecting the network communication quality

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7782851B2 (en) * 2007-06-26 2010-08-24 At&T Intellectual Property I, L.P. System and method of detecting lost video data packets
CN101272291B (en) * 2008-04-29 2012-05-30 北京星网锐捷网络技术有限公司 Network appliance testing method and system
CN101674204B (en) * 2009-10-13 2011-10-05 东南大学 Method for measuring multimedia multicast service quality based on client
CN102630377B (en) * 2011-10-11 2014-11-05 华为技术有限公司 Method, apparatus and system for processing quality parameters of multicast streams
CN103188120B (en) * 2013-04-08 2016-08-10 华为技术有限公司 The method for detecting packet loss of a kind of multicast service and device
CN103402144B (en) * 2013-07-29 2016-12-28 华为技术有限公司 Automatically the method for multicast service performance, Apparatus and system are measured

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1893392A (en) * 2005-07-07 2007-01-10 华为技术有限公司 Method and apparatus for preventing user from obtaining operation trader network information
CN101035037A (en) * 2007-04-17 2007-09-12 华为技术有限公司 Method, system and related device for detecting the network communication quality

Also Published As

Publication number Publication date
CN105828218A (en) 2016-08-03

Similar Documents

Publication Publication Date Title
US9306819B2 (en) Controller driven OAM for split architecture network
KR100523486B1 (en) Traffic measurement system and traffic analysis method thereof
CN103401726B (en) Network path detection method and device, system
EP1802037B1 (en) System and method for measuring network performance using real network traffic
US20090180393A1 (en) Sampling apparatus distinguishing a failure in a network even by using a single sampling and a method therefor
US20170331700A1 (en) Ecmp path tracing in an mpls enabled network
CN105828218B (en) A kind of method, apparatus and system detecting multicast data flow transmission quality
CN107453884A (en) The service quality detection method and device of a kind of network equipment
CN101699786A (en) Method, device and system for detecting packet loss
CN105308904B (en) A kind of OAM message processing method, the network equipment and network system
CN104270282B (en) A kind of IP network end-to-end test method and apparatus
CN111934936B (en) Network state detection method and device, electronic equipment and storage medium
US10623278B2 (en) Reactive mechanism for in-situ operation, administration, and maintenance traffic
CN106789625A (en) A kind of loop detecting method and device
CN102195832A (en) Loopback testing method, device and system
CN106656643A (en) Measuring method of segmental calculation of network delay
CN106685693A (en) Network anomaly detection method, system and network device
US8295186B2 (en) Individual end-to-end D/DV/L measurement in IP multicast
CN102630377B (en) Method, apparatus and system for processing quality parameters of multicast streams
CN109587520A (en) A kind of method and apparatus of positioning video traffic failure
US20200106701A1 (en) Routing path analysis method and device
US8854984B1 (en) Network fabric stress test
EP3264682A1 (en) Debugging failure of a service validation test
US10917326B1 (en) Methods, systems, and computer readable media for debugging test traffic generation
Pennefather et al. An exploration of geolocation and traffic visualisation using network flows

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant