CN105828218A - Method for detecting transmission quality of multicast streams, device and system - Google Patents

Method for detecting transmission quality of multicast streams, device and system Download PDF

Info

Publication number
CN105828218A
CN105828218A CN201610244477.3A CN201610244477A CN105828218A CN 105828218 A CN105828218 A CN 105828218A CN 201610244477 A CN201610244477 A CN 201610244477A CN 105828218 A CN105828218 A CN 105828218A
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.)
Granted
Application number
CN201610244477.3A
Other languages
Chinese (zh)
Other versions
CN105828218B (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 invention discloses a method for detecting the transmission quality of multicast streams. The method includes the following steps that: a first network device receives at least one test message sent by a second network device, wherein the test messages are ICMP (Internet control message protocol) messages which contain the identifiers of the multicast streams and are transmitted between the first network device and the second network device based on the identifiers of the multicast streams according to the transmission mode of the multicast streams, and the first network device and the second network device are both a network device on the transmission path of the multicast streams; and the first network device analyzes the transmission quality of the multicast streams between the second network device and the first network device according to the at least one test message, so as to obtain a detection result for describing the transmission quality. In addition, the invention also discloses a device for detecting the transmission quality of the multicast streams.

Description

A kind of multicast data flow that detects transmits the method for quality, Apparatus and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of multicast data flow that detects and transmit the method for quality, Apparatus and system.
Background technology
Video live broadcast service etc. is had to the business of single point-to-multipoint feature, use multicasting technology to carry out data transmission, it is possible to avoid the waste of server resource and the network bandwidth.Therefore, multicast functionality application on forwarding unit is more and more wider.Wherein, the data stream using multicast protocol to send can be referred to as multicast data flow.During multicast data flow is transmitted, the transmission quality of multicast data flow is the best, as in video live broadcast service, user finds video card screen sometimes sometimes.In this case, the problem the best in order to get rid of multicast data flow transmission quality, need in the transmission path of multicast data flow, find out the position that there are transmission quality problems.And in order to search the position that there are transmission quality problems, it is necessary to the transmission quality between detection multicast data flow heterogeneous networks equipment on the transmit path.
Inventor finds through research, and the transmission quality of multicast data flow typically requires and detects by external equipment.Multicast data flow being transmitted to a network equipment on path, technical staff needs to be connected with the described network equipment by external equipment at the scene residing for the described network equipment.And in order to the multicast data flow transmission quality of all positions on transmission path be detected, technical staff needs on transmission path the scene residing for each network equipment to go, respectively external equipment is connected with each network equipment, thus the multicast data flow transmission quality from multicast source to each network equipment detected respectively.But, the transmission path of multicast data flow is generally of the substantial amounts of network equipment, it is seen then that technical staff needs to undertake heavy, complicated work when positioning multicast data flow transmission quality problems.
Summary of the invention
Technical problems to be solved in this application are, there is provided a kind of and detect multicast data flow the transmission method of quality, Apparatus and system, so that without being connected to the external equipment of detection on network devices during detection multicast data flow transmission quality, thus simplify the work that technical staff undertakes when positioning multicast data flow transmission quality problems.
First aspect, it is provided that a kind of method detecting multicast transmission quality, described method includes:
First network equipment receives at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow;
Described first network equipment, according at least one test packet described, analyzes described multicast data flow transmission quality between described second network equipment and described first network equipment, obtains the testing result for describing described transmission quality.
Optionally, described testing result includes that shaky time, at least one test packet described include the first test packet, the second test packet and the 3rd test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
The difference that described first network equipment calculates the described very first time and the second time is poor as the very first time, and calculates the difference of described second time and the 3rd time as the second time difference;Wherein, the described very first time represents that described first network equipment receives the time of described first test packet, first network equipment described in described second time representation receives the time of described second test packet, and described in described 3rd time representation, first network equipment receives the time of described 3rd test packet;
Described first network equipment calculates the difference between difference of the described very first time and described second time difference, as described multicast data flow shaky time between described second network equipment and described first network equipment.
Optionally, described testing result includes that packet loss, at least one test packet described include the 4th test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
Described first network equipment, according to the first sequence identification, determines the reception time limit that described 4th test packet is corresponding;Wherein, described first sequence identification represents the order at the 4th test packet described in the test packet that described second network equipment sends, and described first sequence identification carries in described 4th test packet;
If described first network equipment receives described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by described first network equipment;
If described first network equipment does not receives described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by described first network equipment refusal;
Wherein, described reception message number is for calculating described multicast data flow packet loss between described second network equipment transmission and described first network equipment.
Optionally, described testing result includes out of order, and at least one test packet described includes the 5th test packet and the 6th test packet, and wherein, described first network equipment receives described 6th test packet after receiving described 5th test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
Described first network equipment compares the second sequence identification and the 3rd sequence identification;Wherein, described second transmission order represents the order at the 5th test packet described in the test packet that described second network equipment sends, described second sequence identification carries in described 5th test packet, described 3rd transmission order represents that described 3rd sequence identification carries in described 6th test packet in the order of the 6th test packet described in the test packet that described second network equipment sends;
If described second sequence identification is less than described 3rd sequence identification, described 6th test packet is counted the described multicast data flow out of order message number between described second network equipment and described first network equipment by described first network equipment.
Optionally, described testing result includes wrong bag, and at least one test packet described includes the 7th test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
Described first network equipment identification also verifies verification summation Checksum carried in described 7th test packet;
If described verification summation is not verified, described 7th test packet is counted the described multicast data flow wrong packet voice number between described second network equipment and described first network equipment by described first network equipment.
Optionally, described method also includes:
Described first network equipment sends described testing result to described second network equipment.
Optionally, described first network equipment sends described testing result to described second network equipment, particularly as follows:
The testing result obtained based on each test packet, after receiving each test packet, is sent by described first network equipment respectively to described second network equipment.
Optionally, described first network equipment sends described testing result to described second network equipment, particularly as follows:
The all testing results obtained based on multiple test packets, after receiving multiple test packet, are sent jointly to second network equipment by described first network equipment.
Optionally, described first network equipment receives at least one test packet that second network equipment sends, particularly as follows: described first network equipment receives at least one test packet described in described second network equipment transmission by receiving specialized hardware, described reception specialized hardware is the separate hardware for receiving described test packet.
Optionally, setting up between described first network equipment with described second network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described second network equipment with described first network equipment.
Optionally, described method also includes:
Described first network equipment according to forwarding strategy corresponding to described multicast data flow, forwards at least one test packet described.
Optionally, described first network equipment receives at least one test packet that second network equipment sends, including:
Described first network equipment receives multicast message;
Described first network equipment searches the mark whether carrying described test packet in described multicast message, and the mark of described test packet includes Magic number;
If carrying the mark of described test packet in described multicast message, described multicast message is identified as described test packet by described first network equipment.
Optionally, before described first network equipment receives at least one test packet that described second network equipment sends, described method also includes:
Described first network equipment receives the setup test notice that described second network equipment sends;
Described first network equipment performs the preparation operation of test based on described setup test notice, and rear send setup test to described second network equipment what described preparation operation was finished and respond, in order to described second network equipment is responded based on described setup test and is sent at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
Second aspect, it is provided that a kind of method detecting multicast data flow transmission quality, described method includes:
Second network equipment generates at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
Described second network equipment sends at least one test packet described to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
Optionally, described method also includes:
Described second network equipment receives the described testing result that described first network equipment sends.
Optionally, described testing result is that described first network equipment respectively obtains based on each test packet after receiving each test packet and sends testing result respectively.
Optionally, described testing result is that described first network equipment obtains based on the plurality of test packet after receiving multiple test packet and sends all testing results together.
Optionally, described second network equipment sends at least one test packet to second network equipment, particularly as follows: described second network equipment sends at least one test packet described by sending specialized hardware to described first network equipment, described transmission specialized hardware is the separate hardware for sending described test packet.
Optionally, setting up between described second network equipment with described first network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described first network equipment with described second network equipment.
Optionally, carrying the Magic number that described second network equipment is squeezed in described test packet, described Magic number is used for identifying described test packet by described first network equipment.
Optionally, at described second network equipment before described first network equipment sends at least one test packet described, also include:
Described second network equipment sends setup test notice to described first network equipment, in order to described first network equipment performs the preparation operation of test based on described setup test notice;
Described second network equipment receives setup test and responds;
Described setup test is responded, be described first network equipment described prepare that operation is finished rear send to described second network equipment, be used for triggering described second network equipment and send at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
The third aspect, it is provided that a kind of device detecting multicast data flow transmission quality, described device is first network equipment, and described device includes:
Receive unit, for receiving at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow;
Analytic unit, for according at least one test packet described, analyzes described multicast data flow transmission quality between described second network equipment and described first network equipment, obtains the testing result for describing described transmission quality.
Optionally, described testing result includes that shaky time, at least one test packet described include the first test packet, the second test packet and the 3rd test packet;
Described analytic unit, specifically for:
The difference calculating the described very first time and the second time is poor as the very first time, and calculates the difference of described second time and the 3rd time as the second time difference;Wherein, the described very first time represents that described first network equipment receives the time of described first test packet, first network equipment described in described second time representation receives the time of described second test packet, and described in described 3rd time representation, first network equipment receives the time of described 3rd test packet;
Calculate the difference between difference of the described very first time and described second time difference, as described multicast data flow shaky time between described second network equipment and described first network equipment.
Optionally, described testing result includes that packet loss, at least one test packet described include the 4th test packet;
Described analytic unit, specifically for:
According to the first sequence identification, determine the reception time limit that described 4th test packet is corresponding;Wherein, described first sequence identification represents the order at the 4th test packet described in the test packet that described second network equipment sends, and described first sequence identification carries in described 4th test packet;
If receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number;
If not receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by refusal;
Wherein, described reception message number is for calculating described multicast data flow packet loss between described second network equipment transmission and described first network equipment.
Optionally, described testing result includes out of order, and at least one test packet described includes the 5th test packet and the 6th test packet, and wherein, described first network equipment receives described 6th test packet after receiving described 5th test packet;
Described analytic unit, specifically for:
Relatively the second sequence identification and the 3rd sequence identification;Wherein, described second transmission order represents the order at the 5th test packet described in the test packet that described second network equipment sends, described second sequence identification carries in described 5th test packet, described 3rd transmission order represents that described 3rd sequence identification carries in described 6th test packet in the order of the 6th test packet described in the test packet that described second network equipment sends;
If described second sequence identification is less than described 3rd sequence identification, described 6th test packet is counted the described multicast data flow out of order message number between described second network equipment and described first network equipment.
Optionally, described testing result includes wrong bag, and at least one test packet described includes the 7th test packet;
Described analytic unit, specifically for:
Described first network equipment identification also verifies verification summation Checksum carried in described 7th test packet;
If described verification summation is not verified, described 7th test packet is counted the described multicast data flow wrong packet voice number between described second network equipment and described first network equipment by described first network equipment.
Optionally, described device also includes:
First transmitting element, for sending described testing result to described second network equipment.
Optionally, described first transmitting element, specifically for:
After receiving each test packet, the testing result obtained based on each test packet is sent to described second network equipment respectively.
Optionally, described second transmitting element, specifically for:
After receiving multiple test packet, all testing results obtained based on multiple test packets are sent jointly to second network equipment.
Optionally, described reception unit, specifically for:
Receiving at least one test packet described in described second network equipment transmission by receiving specialized hardware, described reception specialized hardware is the separate hardware for receiving described test packet.
Optionally, setting up between described first network equipment with described second network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described second network equipment with described first network equipment.
Optionally, described device also includes:
Second transmitting element, is used for the forwarding strategy corresponding according to described multicast data flow, the test packet of at least one described in forwarding.
Optionally, described reception unit, specifically for:
Receive multicast message;
Searching the mark whether carrying described test packet in described multicast message, the mark of described test packet includes Magic number;
If described multicast message carries the mark of described test packet, described multicast message is identified as described test packet.
Optionally, described device also includes:
Notice receives unit, for, before described first receives at least one test packet that described second network equipment of unit reception sends, receiving the setup test notice that described second network equipment sends;
Preparatory unit, performs the preparation operation of test for described first network equipment based on described setup test notice;
Respond transmitting element, rear to described second network equipment transmission setup test response for be finished in described preparation operation, in order to described second network equipment is responded based on described setup test and sent at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
Fourth aspect, it is provided that a kind of device detecting multicast data flow transmission quality, described device is second network equipment, and described device includes:
Signal generating unit, is used for generating at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
Transmitting element, for sending at least one test packet described to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
Optionally, described device also includes:
Receive unit, for receiving the described testing result that described first network equipment sends.
Optionally, described testing result is that described first network equipment respectively obtains based on each test packet after receiving each test packet and sends testing result respectively.
Optionally, described testing result is that described first network equipment obtains based on the plurality of test packet after receiving multiple test packet and sends all testing results together.
Optionally, described transmitting element, specifically for:
Sending at least one test packet described by sending specialized hardware to described first network equipment, described transmission specialized hardware is the separate hardware for sending described test packet.
Optionally, setting up between described second network equipment with described first network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described first network equipment with described second network equipment.
Optionally, carrying the Magic number that described second network equipment is squeezed in described test packet, described Magic number is used for identifying described test packet by described first network equipment.
Optionally, described device also includes:
Notice transmitting element, for at described transmitting element before described first network equipment sends at least one test packet described, setup test notice is sent, in order to described first network equipment performs the preparation operation of test based on described setup test notice to described first network equipment;
Respond and receive unit, receive setup test for described second network equipment and respond;
Described setup test is responded, be described first network equipment described prepare that operation is finished rear send to described second network equipment, be used for triggering described second network equipment and send at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
5th aspect, it is provided that a kind of network equipment.The described network equipment is specially first network equipment;The described network equipment includes: processor, memorizer, network interface, bus system;
Described bus system, for being coupled each nextport hardware component NextPort of physical server;
Described network interface, for realizing the communication connection between physical server and at least one other network element;
Described memorizer, is used for storing programmed instruction and data;
Described processor, operation below reading the instruction and data of storage in memorizer, performing:
Receive at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow;
According at least one test packet described, analyze described multicast data flow transmission quality between described second network equipment and described first network equipment, obtain the testing result for describing described transmission quality.
6th aspect, it is provided that a kind of network equipment.The described network equipment is specially second network equipment;The described network equipment includes: processor, memorizer, network interface, bus system;
Described bus system, for being coupled each nextport hardware component NextPort of physical server;
Described network interface, for realizing the communication connection between physical server and at least one other network element;
Described memorizer, is used for storing programmed instruction and data;
Described processor, operation below reading the instruction and data of storage in memorizer, performing:
Generate at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
At least one test packet described is sent to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
In this application, for being positioned at the first network equipment on multicast data flow transmission path and second network equipment, if desired detection multicast data flow transmission quality between the two devices, first network equipment can test instruction instruction under according to described multicast flow to second the network equipment send for detect transmission quality multicast message as test packet so that described test packet according to described multicast data flow from described first network device transmission to second network equipment.And described second network equipment can analyze described multicast data flow transmission quality between the two devices according to the described test packet received, thus obtain testing result.Visible, owing to the transmission quality of multicast data flow is analyzed by the network equipment on multicast data flow transmission path and is detected, technical staff has only to trigger test packet and is transmitted between the network devices according to multicast data flow, just can obtain the testing result of multicast data flow transmission quality between each network equipment, without going to the scene of each network equipment to connect external equipment into each network equipment, therefore, the quantity needing the network equipment of technical staff's execute-in-place greatly reduces, and technical staff needs the work undertaken to be simplified when positioning multicast data flow transmission quality problems.
Additionally, due to test packet is to be transmitted between the network devices according to multicast data flow, the transmitting procedure of test packet and the transmitting procedure of multicast data flow are identical.And, owing to the transmission quality of multicast data flow is to carry out detecting based on the test packet unidirectional multicast transmitting procedure on the transmission direction of multicast data flow, thus avoid test packet multicast data flow reverse on unicast transmission process be introduced in the transmission quality testing of multicast data flow.Visible, the testing result obtained based on described test packet is the most believable.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in describing embodiment below, the required accompanying drawing used is briefly described, apparently, accompanying drawing in describing below is only some embodiments described in the application, for those of ordinary skill in the art, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the network system block schematic illustration in the embodiment of the present invention involved by an application scenarios;
Fig. 2 is the flow chart of a kind of method detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 3 is the schematic diagram of the example of part field in a kind of test packet in the embodiment of the present invention;
Fig. 4 is the flow chart of a kind of method detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 5 is the structural representation of a kind of device detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of device detecting multicast data flow transmission quality in the embodiment of the present invention;
Fig. 7 is the structural representation of a kind of network equipment in the embodiment of the present invention;
Fig. 8 is the structural representation of a kind of network equipment in the embodiment of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
Inventor finds through research, and the transmission quality of multicast data flow typically requires and detects by external equipment.Multicast data flow being transmitted to a network equipment on path, technical staff needs to be connected with the described network equipment by external equipment at the scene residing for the described network equipment.In the case of the described network equipment supports image feature, on the described network equipment, the forwarding strategy that described multicast data flow is corresponding is configured by technical staff, described multicast data flow mirror image can be out forwarded to described external equipment when forwarding described multicast data flow by the described network equipment, and described external equipment analyzes the described multicast data flow transmission quality from multicast source to the described network equipment further according to mirror image multicast data flow out.Visible, in order to the multicast data flow transmission quality of all positions on transmission path be detected, technical staff needs the scene on transmission path residing for each network equipment, respectively external equipment is connected with each network equipment, thus the multicast data flow transmission quality from multicast source to each network equipment detected respectively.But, the transmission path of multicast data flow is generally of the substantial amounts of network equipment, it is seen then that technical staff needs to undertake heavy, complicated work when positioning multicast data flow transmission quality problems.
In order to solve the problems referred to above, embodiments provide a kind of method and apparatus detecting multicast data flow transmission quality.Wherein, for being positioned at the first network equipment on multicast data flow transmission path and second network equipment, if desired detection multicast data flow transmission quality between the two devices, first network equipment can test instruction instruction under according to described multicast flow to second the network equipment send for detect transmission quality multicast message as test packet so that described test packet according to described multicast data flow from described first network device transmission to second network equipment.Described second network equipment can analyze described multicast data flow transmission quality between the two devices according to the described test packet received, thus obtains testing result.Visible, owing to the transmission quality of multicast data flow is analyzed by the network equipment on multicast data flow transmission path and is detected, technical staff has only to trigger test packet and is transmitted between the network devices according to multicast data flow, just can obtain the testing result of multicast data flow transmission quality between each network equipment, without going to the scene of each network equipment to connect external equipment into each network equipment, therefore, the quantity needing the network equipment of technical staff's execute-in-place greatly reduces, and technical staff needs the work undertaken to be simplified when positioning multicast data flow transmission quality problems.
For example, one of scene of the embodiment of the present invention, can be applied in network system as shown in Figure 1.Multicast data flow transmission path in described network system is as it is shown in figure 1, first network equipment and second network equipment are the network equipment on the transmission path of described multicast data flow.Described first network equipment generates at least one test packet and sends to described second network equipment.At least one test packet described is transmitted between described first network equipment and described second network equipment according to described multicast data flow.Described second network equipment receives at least one test packet described, and according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality.
It is understood that on the transmission path of described multicast data flow, described first network equipment is positioned at the upstream of described second network equipment, described second network equipment is positioned at the downstream of described first network equipment.As a kind of example, described first network equipment can be multicast source server 101, and described second network equipment can be any one forwarding unit 102, any one access device 103 or any one subscriber equipment 104.As another kind of example, described first network equipment can be any one forwarding unit 102, and described second network equipment can be any one forwarding unit 102 of described first network device downstream, any one access device 103 or any one subscriber equipment 104.As another example, described first network equipment can be any one access device 103, and described second network equipment is any one subscriber equipment 104 of described first network device downstream.Wherein, described multicast source server 101 can be such as video server etc., described forwarding unit 102 can be such as router, switch etc., and described access device 103 can be such as hub, switch, router etc., and described subscriber equipment 104 can be such as Set Top Box etc..
It is understood that above-mentioned scene is only the Sample Scenario that the embodiment of the present invention provides, the embodiment of the present invention is not limited to this scene.
Below in conjunction with the accompanying drawings, described in detail the specific implementation of the method and apparatus detecting multicast data flow transmission quality in the embodiment of the present invention by embodiment.
Fig. 2 is the flow chart of a kind of method detecting multicast data flow transmission quality in the embodiment of the present invention.The present embodiment introduces described method from the angle of the receiving terminal of test packet.In the present embodiment, described method the most specifically may include that
201, first network equipment receives at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
Having described first network equipment and described second network equipment on the transmission path of described multicast data flow, wherein, described first network equipment is positioned at the upstream of described second network equipment, and described second network equipment is positioned at the downstream of described first network equipment.If desired described multicast data flow transmission quality between described second network equipment and described first network equipment is detected, such as can be initiated test instruction to described second network equipment by technical staff, wherein, described test instruction carries the mark of described multicast data flow, and described multicast data flow is transmitted the detection of quality for instruction.After getting described test request, described second network equipment is according to the mark of the described multicast data flow carried in described test instruction, determine the described multicast data flow that described test instruction is corresponding, generate test packet for described multicast data flow and send to described first network equipment.Automatically trigger additionally, described test instruction can also be described second network equipment itself according to the rule pre-set, described second network equipment instructs according to described test automatically of certain detection cycle.
It is understood that technical staff can trigger described test instruction to described second network equipment by the way of plurality of optional.Such as, technical staff can directly operate on described second network equipment, and described second network equipment can trigger described test instruction in response to the operation of technical staff.And for example, technical staff can also operate on its terminal unit, described terminal unit can trigger described test instruction in response to the operation of technical staff and send to described second network equipment, wherein, has, between described terminal unit and described second network equipment, the connection being in communication with each other.For another example, technical staff can also operate on described first network equipment, and described first network equipment can trigger described test instruction in response to the operation of technical staff and send to described second network equipment.
It should be noted that, owing to described test packet has the mark of described multicast data flow, therefore, the most described test packet is actually by the multicast message of the described multicast data flow that disguised oneself as, that is, described test packet is transmitted in a network according to the transmission means of described multicast data flow.Specifically, during described test packet transmits between described second network equipment and described first network equipment, send described second network equipment and each network equipment of described test packet process of described test packet, all according to the forwarding strategy that described multicast data flow is corresponding, described test packet is carried out forward process.Wherein, the forwarding strategy that described multicast data flow is corresponding the most such as can be embodied as the multicast forward table that described multicast data flow is corresponding.Owing to described test packet transmitting procedure between described second network equipment and described first network equipment is on all four with the transmitting procedure of described multicast data flow, described first network equipment analyzes the transmission quality of described multicast data flow based on described test packet, thus can be obtained by accurate believable testing result.
For one-time detection process, described second network equipment such as can send multiple test packets to described first network equipment, so that described first network equipment can analyze the transmission quality of multicast data flow based on multiple test packets, thus obtain broadly testing result.Specifically, described second network equipment can send one test packet of cycle transmission every one, until the test packet of described message total is sent according to the transmission cycle made an appointment and message total.
It is understood that described second network equipment is before sending described test packet, first setup test notice can be sent to described first network equipment.The preparation operation based on described setup test notice execution test of described first network equipment, and send setup test response having performed the rear of preparation operation to described second network equipment.Described second network equipment can send described test packet receiving the rear of described setup test response to described first network equipment.Wherein, described prepare operation and such as can include, to about the counting of test packet and the clear operation of timing on described first network equipment.In addition, the parameters such as the transmission sum of test packet, transmission cycle such as can be carried in described setup test notifies, namely, notifying that described second network equipment and described first network equipment can be made an appointment the parameters such as the transmission sum of test packet during this detection and transmission cycle by described setup test, the most described first network equipment can send sum and transmission cycle analyze the transmission quality of described multicast data flow based on described.
In some embodiments, described second network equipment can use an independent hardware to be specifically designed to the described test packet of transmission, the transmission of the most described test packet can be not take up the CPU of described second network equipment, thus prevents the transmission of a large amount of test packet from impacting CPU.Wherein, it is specifically designed to and sends the separate hardware of described test packet and can referred to as send specialized hardware.Specifically, the test packet generated can be sent to described transmission specialized hardware by the test program in described second network equipment, and described transmission specialized hardware can be squeezed in described test packet and sends timestamp and send carrying the described test packet sending timestamp.Wherein, described transmission timestamp represents that described second network equipment sends the time of described test packet.As a kind of example, described transmission specialized hardware can be the logic hardware formed by programming in logic on the basis of the existing hardware of described second network equipment, and described logic hardware is implemented for sending the logic function that described test sends.Such as, described transmission specialized hardware can be the CPU coprocessor of described second network equipment.
Similarly, described first network equipment can use an independent hardware to be specifically designed to the described test packet of reception, the reception of the most described test packet can be not take up the CPU of described first network equipment, thus prevents the transmission of a large amount of test packet from impacting CPU.Wherein, it is specifically designed to and sends the separate hardware of described test packet and can referred to as receive specialized hardware, that is, step 201 such as can be particularly as follows: described first network equipment receives at least one test packet described in described second network equipment transmission by receiving specialized hardware.Specifically, described reception special equipment, after receiving described test packet, is squeezed into reception timestamp in described test packet and the described test packet carrying described reception timestamp is sent to the test program in described second network equipment.Wherein, described reception timestamp represents that described first network equipment receives the time of described test packet.As a kind of example, described reception specialized hardware can be the logic hardware formed by programming in logic on the basis of the existing hardware of described first network equipment, and described logic hardware is implemented for sending the logic function that described test sends.Such as, described transmission specialized hardware can be the CPU coprocessor of described first network equipment.
In some embodiments, transmission control protocol can be used between described second network equipment and described first network equipment (English: TransmissionControlProtocol, it is called for short TCP)/internet protocol (English: InternetProtocol, it is called for short IP) connect and transmit described test packet, the most described test packet can transmit more reliably.Specifically, before test packet sends, described second network equipment is set up TCP/IP with described first network equipment and is connected.After described TCP/IP connection establishment, described second network equipment connects to described first network equipment transmission at least one test packet described by described TCP/IP, that is, at least one test packet described is connected transmission by described TCP/IP between described second network equipment with described first network equipment.In addition, in addition to test packet, can also be connected by TCP/IP to detection relevant other messages of multicast data flow and transmit, aforementioned setup test notice, aforementioned setup test response, as described in first network equipment feed back to as described in the testing result etc. of second network equipment.
In some embodiments, described second network equipment can embed Magic number in described test packet, by Magic number, described first network equipment can identify that described test packet, the most described first network equipment just can be got rid of the interference of other messages, identify described test packet more accurately.Specifically, step 201 such as may include that described first network equipment receives multicast message;Described first network equipment searches the mark whether carrying described test packet in described multicast message, and the mark of described test packet includes Magic number;If carrying the mark of described test packet in described multicast message, described multicast message is identified as described test packet by described first network equipment.Wherein, the mark of described test packet in addition to described Magic number, such as, can also include group IP address and the IP message protocol number of described multicast data flow.
In the present embodiment, described test packet can be such as Internet Control Message agreement (English: InternetControlMessageProtocol, to be called for short ICMP) message.Specifically, it is the example of part field in a kind of test packet shown in Fig. 3.ICMPHeader field at described test packet includes the type field, Code field, Checksum field, Id field, Sequence field and Data field.Wherein, the type field can write a kind of types value, in order to the network equipment can be that described test packet squeezes into timestamp based on the described types value for time request when receiving described test packet.Such as, the type field can write the types value for time request, so can avoid the network equipment receiving described test packet that maloperation occurs under the triggering of described test packet.Code field such as can write numerical value " 0 ".Checksum field can write the verification summation for detecting wrong bag.Id field can write the mark of test program, can have one or more test program for realizing detecting multicast data flow transmission quality function on described second network equipment, the mark of described test program is for distinguishing test programs different on described second network equipment.Sequence field such as can write for represent described test packet this detect during transmission order sequence identification, Sequence field carry sequence identification " 5 " then represent as described in test packet be this detection during the 5th send test packet.Data field such as can write transmission timestamp, receive timestamp, Magic number, reservation etc..Described transmission timestamp represents that second network equipment sends the time of described test packet, squeezes into the Data field of described test packet, take 32 bits when can be and be sent described test packet by described second network equipment.Described reception timestamp represents that first network equipment receives the time of described test packet, writes the Data field of described test packet when can be and be received described test packet by described first network equipment.Described Magic number is the Data field being write described test packet by described second network equipment, may be used for described first network equipment exclusive PCR when identifying described test packet.
If described second network equipment sends described test packet by the interface of EtherType, the most described test packet such as can also include the target MAC (Media Access Control) address (being called for short DMAC) of described test packet, source MAC (being called for short SMAC), purpose IP address (being called for short DIP), source IP address (being called for short SIP) and IP message protocol number.Wherein, described target MAC (Media Access Control) address such as can include the group IP address of multicast mark and described multicast data flow, described multicast mark can be such as character string " 0100 ", described source MAC can be such as sending the MAC Address of the interface of described test packet on described second network equipment, the group IP address that the most described multicast data flow in described purpose IP address is corresponding, described source IP address can be such as the source IP address that described multicast data flow is corresponding.If described test packet is icmp packet, the most described IP message protocol number can be " 1 ".
202, described first network equipment is according at least one test packet described, analyzes described multicast data flow transmission quality between described second network equipment and described first network equipment, obtains the testing result for describing described transmission quality.
It is understandable that, owing to the transmission quality of multicast data flow is analyzed by described first network equipment, the external equipment that described first network equipment belongs to the network equipment on described multicast data flow transmission path and is not connected with the network equipment, visible, technical staff is without being connected external equipment with described first network equipment at the scene residing for described first network equipment, accordingly, it would be desirable to the number of devices of technical staff's execute-in-place is reduced, the operation of technical staff is simplified.In addition, it is analyzed based on test packet one-way transmission process between described second network equipment and described first network equipment owing to the transmission quality of multicast data flow is described first network equipment, this one-way transmission process is i.e. the one-way transmission process of multicast data flow, visible, test packet multicast data flow reverse on unicast transmission process be not applied to analyze multicast data flow transmission quality, therefore, the testing result obtained based on described test packet is the most believable.
In some embodiments, described first network equipment is after receiving described test packet, except analyzing described multicast data flow transmission quality between described second network equipment and described first network equipment based on described test packet, it is also possible that state test packet to continue the network equipment described test packet of transmission downstream, in order to the network equipment in described downstream can analyze the transmission quality of described multicast data flow.Wherein, the network equipment in described downstream represents the network equipment being positioned at described first network device downstream on the transmission path of described multicast data flow.Specifically, the method for the present embodiment such as can also include: described first network equipment according to forwarding strategy corresponding to described multicast data flow, forwards at least one test packet described.Wherein, the forwarding strategy that described multicast data flow is corresponding such as can be presented as the multicast forward table that described multicast data flow is corresponding.
In the present embodiment, the described testing result for describing described transmission quality such as can include shaky time, packet loss, out of order and/or wrong bag etc..
For shaky time, described first network equipment such as can be calculated by the time of described first network equipment reception test packet.Owing to the calculating of shaky time does not use described second network equipment to send the time of test packet, even if described first network equipment is asynchronous with the clock of described second network equipment, described first network equipment still can calculate shaky time accurately.
Specifically, first test packet, the second test packet, the 3rd test packet represent three transmission order continuous print test packets, wherein, described second network equipment sends and has been separated by a transmission cycle between the time of described first test packet and the time of described second network equipment described second test packet of transmission, and described second network equipment sends and has been separated by a transmission cycle between the time of described second test packet and the time of described second network equipment described 3rd test packet of transmission.In other words, if described first test packet is the n-th test packet that described second network equipment sends, the most described second test packet is (n+1)th test packet that described second network equipment sends, and described 3rd test packet is the n-th+2 test packets that described second network equipment sends.It is poor as the very first time that step 202 such as may include that described first network equipment calculates the difference of the described very first time and the second time, and calculates the difference of described second time and the 3rd time as the second time difference;Described first network equipment calculates the difference between difference of the described very first time and described second time difference, as described multicast data flow shaky time between described second network equipment and described first network equipment.Wherein, the described very first time represents that described first network equipment receives the time of described first test packet, first network equipment described in described second time representation receives the time of described second test packet, and described 3rd time difference represents that described first network equipment receives the time of described 3rd test packet.
It is understood that the timestamp that described first network equipment can pass through to carry in described first test packet, described second test packet and described 3rd test packet respectively obtains the described very first time, described second time and described 3rd time.Specifically, after described first test packet arrives described first network equipment, the reception specialized hardware of described first network equipment can squeeze into the first reception timestamp in described first test packet, in order to can receive time-stamp Recognition based on described first in described first test packet when described first network equipment calculates shaky time and go out the described very first time.Similarly, after described second test packet arrives described first network equipment, the reception specialized hardware of described first network equipment can squeeze into the second reception timestamp in described second test packet, in order to can receive time-stamp Recognition based on described second in described second test packet when described first network equipment calculates shaky time and go out described second time.And, after described 3rd test packet arrives described first network equipment, the reception specialized hardware of described first network equipment can squeeze into the 3rd reception timestamp in described 3rd test packet, in order to can receive time-stamp Recognition based on the described 3rd in described 3rd test packet when described first network equipment calculates shaky time and go out described 3rd time.
For packet loss, described first network equipment such as can be judged by the transmission order of test packet.Specifically, as a example by judging whether the 4th test packet packet loss occurs, described 4th test packet can be any one test packet that described second network equipment is sent to described first network equipment.Step 202 such as may include that described first network equipment, according to the first sequence identification, determines the reception time limit that described 4th test packet is corresponding;If described first network equipment receives described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by described first network equipment;If described first network equipment does not receives described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by described first network equipment refusal.Wherein, described first sequence identification represents the order at the 4th test packet described in the test packet that described second network equipment sends, and described first network equipment such as the Sequence field from described 4th test packet can obtain described first sequence identification.The reception time limit that described 4th test packet is corresponding can be such as based on described first sequence identification, transmission cycle with default transmission calculation of time out, i.e., receive time limit=sequence number value * and send cycle+transmission time limit, wherein, for the 4th test packet, described sequence number value is the occurrence of described first sequence identification, the described transmission cycle is the transmission time interval between adjacent two test packets, and the described transmission time limit is specially the time limit that test packet transmits between described second network equipment and described first network equipment.Described reception message number is for calculating described multicast data flow packet loss between described second network equipment transmission and described first network equipment, and such as, the ratio of described packet loss is specifically as follows the ratio sending sum of described reception message number and test packet.It is understood that actually two kinds test packets are not counted into described reception message number, a kind of test packet being described first network equipment and not receiving, another kind is that described first network equipment exceedes and receives the test packet that receives of time limit.
For out of order, described first network equipment such as can be judged by the transmission order of test packet.Specifically, as a example by the 5th test packet and the 6th test packet, described 5th test packet and described 6th test packet can be any two test packets that described second network equipment is sent to described first network equipment.Wherein, described first network equipment receives described 6th test packet after receiving described 5th test packet.Such as, described 5th test packet and described 6th test packet represent an even transmission order continuous print test packet, that is, described second the network equipment send described 5th test packet time with described second the network equipment send described 6th test packet time be separated by a transmission cycle.In other words, if described 5th test packet is the n-th test packet that described second network equipment sends, the most described 6th test packet is (n+1)th test packet that described second network equipment sends.Step 202 such as may include that described first network equipment compares the second sequence identification and the 3rd sequence identification;If described second sequence identification is less than described 3rd sequence identification, described 6th test packet is counted the described multicast data flow out of order message number between described second network equipment and described first network equipment by described first network equipment.Wherein, described second sequence identification represents the order at the 5th test packet described in the test packet that described second network equipment sends, described second sequence identification carries in described 5th test packet, and described first network equipment such as the Sequence field from described 5th test packet can obtain described second sequence identification;Described 3rd sequence identification represents the order at the 6th test packet described in the test packet that described second network equipment sends, described 3rd sequence identification carries in described 6th test packet, and described first network equipment such as the Sequence field from described 6th test packet can obtain described 3rd sequence identification.The second sequence identification in described 5th test packet such as can be identified as current order by described first network equipment when receiving described five test packet, the size that the 3rd sequence identification in more described 6th test packet identifies with current order when receiving described six test packet, so that it is determined that described second transmission order and the size of described 3rd transmission order.
For mistake bag, described first network equipment such as can be by verifying that the verification summation carried in described test packet judges.Specifically, as a example by the 7th test packet, described 7th test packet can be any one test packet that described second network equipment is sent to described first network equipment.Step 202 such as may include that described first network equipment identification and verifies the verification summation carried in described 7th test packet;If described verification summation is not verified, described 7th test packet is counted the described multicast data flow wrong packet voice number between described second network equipment and described first network equipment by described first network equipment.
In some embodiments, described first network equipment is after obtaining described testing result, it is also possible that state testing result to feed back to described second network equipment, such technical staff just can trigger test instruction at described second network equipment and obtain testing result.Specifically, the present embodiment such as can also include: described first network equipment sends described testing result to described second network equipment.Furthermore, owing to second network equipment described during one-time detection can send multiple test packets to described first network equipment, described first network equipment can obtain testing result when receiving each test packet.In some embodiments, for the testing result respectively obtained based on multiple test packets during one-time detection, the testing result obtained based on each test packet such as can be sent by described first network equipment respectively to described second network equipment, so, first network equipment is the testing result that all can be returned for this test packet received after every time receiving test packet to second network equipment.In other embodiments, for the testing result respectively obtained based on multiple test packets during one-time detection, the all testing results obtained based on multiple test packets and for example can be sent jointly to second network equipment by described first network equipment, so, first network equipment can be unified after all test packet end of transmissions to send test result to described second network equipment during this detects.
In the present embodiment, owing to the transmission quality of multicast data flow is analyzed by the network equipment on multicast data flow transmission path and is detected, technical staff has only to trigger test packet and is transmitted between the network devices according to multicast data flow, just can obtain the testing result of multicast data flow transmission quality between each network equipment, without going to the scene of each network equipment to connect external equipment into each network equipment, therefore, the quantity needing the network equipment of technical staff's execute-in-place greatly reduces, technical staff needs the work undertaken to be simplified when positioning multicast data flow transmission quality problems.
Fig. 4 is the flow chart of a kind of method detecting multicast data flow transmission quality in the embodiment of the present invention.The present embodiment introduces described method from the angle of the transmitting terminal of test packet.In the present embodiment, described method the most specifically may include that
401, second network equipment generates at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
402, described second network equipment sends at least one test packet described to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
Optionally, described method also includes:
Described second network equipment receives the described testing result that described first network equipment sends.
Optionally, described second network equipment sends at least one test packet to first network equipment, particularly as follows: described second network equipment sends at least one test packet described by sending specialized hardware to described first network equipment, described transmission specialized hardware is the separate hardware for sending described test packet.
Optionally, setting up between described first network equipment with described second network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described first network equipment with described second network equipment.
Optionally, carrying the Magic number that described second network equipment is squeezed in described test packet, described Magic number is used for identifying described test packet by described first network equipment.
It should be noted that, second network equipment in the embodiment of the present invention is equivalent to the first network equipment mentioned in the embodiment shown in earlier figures 2, and the first network equipment in the embodiment of the present invention is equivalent to second network equipment mentioned in the embodiment shown in earlier figures 2.In the present embodiment, the various detailed description of the invention of the method that second network equipment performs, all may refer to being discussed in detail of the embodiment shown in earlier figures 2, and here is omitted.
In the present embodiment, owing to the transmission quality of multicast data flow is analyzed by the network equipment on multicast data flow transmission path and is detected, technical staff has only to trigger test packet and is transmitted between the network devices according to multicast data flow, just can obtain the testing result of multicast data flow transmission quality between each network equipment, without going to the scene of each network equipment to connect external equipment into each network equipment, therefore, the quantity needing the network equipment of technical staff's execute-in-place greatly reduces, technical staff needs the work undertaken to be simplified when positioning multicast data flow transmission quality problems.
Shown in Fig. 5 is the structural representation controlling device of a kind of statistic flow in the embodiment of the present invention.In the present embodiment, described device 500 is first network equipment.Described device 500 the most specifically may include that
Receive unit 501, for receiving at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow;
Analytic unit 502, for according at least one test packet described, analyzes described multicast data flow transmission quality between described second network equipment and described first network equipment, obtains the testing result for describing described transmission quality.
For example, the device 500 shown in Fig. 5 may be used for the method shown in Fig. 2 that performs.Specifically, receive unit 501 to may be used for performing 201 in Fig. 2.Analytic unit 502 may be used for performing 202 in Fig. 2.
Optionally, described testing result includes that shaky time, at least one test packet described include the first test packet, the second test packet and the 3rd test packet;
Described analytic unit 502, specifically for:
The difference calculating the described very first time and the second time is poor as the very first time, and calculates the difference of described second time and the 3rd time as the second time difference;Wherein, the described very first time represents that described first network equipment receives the time of described first test packet, first network equipment described in described second time representation receives the time of described second test packet, and described in described 3rd time representation, first network equipment receives the time of described 3rd test packet;
Calculate the difference between difference of the described very first time and described second time difference, as described multicast data flow shaky time between described second network equipment and described first network equipment.
Optionally, described testing result includes that packet loss, at least one test packet described include the 4th test packet;
Described analytic unit 502, specifically for:
According to the first sequence identification, determine the reception time limit that described 4th test packet is corresponding;Wherein, described first sequence identification represents the order at the 4th test packet described in the test packet that described second network equipment sends, and described first sequence identification carries in described 4th test packet;
If receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number;
If not receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by refusal;
Wherein, described reception message number is for calculating described multicast data flow packet loss between described second network equipment transmission and described first network equipment.
Optionally, described testing result includes out of order, and at least one test packet described includes the 5th test packet and the 6th test packet, and wherein, described first network equipment receives described 6th test packet after receiving described 5th test packet;
Described analytic unit 502, specifically for:
Relatively the second sequence identification and the 3rd sequence identification;Wherein, described second transmission order represents the order at the 5th test packet described in the test packet that described second network equipment sends, described second sequence identification carries in described 5th test packet, described 3rd transmission order represents that described 3rd sequence identification carries in described 6th test packet in the order of the 6th test packet described in the test packet that described second network equipment sends;
If described second sequence identification is less than described 3rd sequence identification, described 6th test packet is counted the described multicast data flow out of order message number between described second network equipment and described first network equipment.
Optionally, described testing result includes wrong bag, and at least one test packet described includes the 7th test packet;
Described analytic unit 502, specifically for:
Described first network equipment identification also verifies verification summation Checksum carried in described 7th test packet;
If described verification summation is not verified, described 7th test packet is counted the described multicast data flow wrong packet voice number between described second network equipment and described first network equipment by described first network equipment.
Optionally, described device 500 also includes:
First transmitting element, for sending described testing result to described second network equipment.
Optionally, described first transmitting element, specifically for:
After receiving each test packet, the testing result obtained based on each test packet is sent to described second network equipment respectively.
Optionally, described second transmitting element, specifically for:
After receiving multiple test packet, all testing results obtained based on multiple test packets are sent jointly to second network equipment.
Optionally, described reception unit 501, specifically for:
Receiving at least one test packet described in described second network equipment transmission by receiving specialized hardware, described reception specialized hardware is the separate hardware for receiving described test packet.
Optionally, setting up between described first network equipment with described second network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described second network equipment with described first network equipment.
Optionally, described device 500 also includes:
Second transmitting element, is used for the forwarding strategy corresponding according to described multicast data flow, the test packet of at least one described in forwarding.
Optionally, described reception unit 501, specifically for:
Receive multicast message;
Searching the mark whether carrying described test packet in described multicast message, the mark of described test packet includes Magic number;
If described multicast message carries the mark of described test packet, described multicast message is identified as described test packet.
Optionally, described device 500 also includes:
Notice receives unit, for, before described first receives at least one test packet that described second network equipment of unit reception sends, receiving the setup test notice that described second network equipment sends;
Preparatory unit, performs the preparation operation of test for described first network equipment based on described setup test notice;
Respond transmitting element, rear to described second network equipment transmission setup test response for be finished in described preparation operation, in order to described second network equipment is responded based on described setup test and sent at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
It should be noted that the device 500 in the present embodiment is the first network equipment in the embodiment shown in earlier figures 2.The various detailed description of the invention of device 500 in the present embodiment, all may refer to being discussed in detail about first network equipment of the embodiment shown in earlier figures 2, and here is omitted.
In the present embodiment, owing to the transmission quality of multicast data flow is analyzed by the network equipment on multicast data flow transmission path and is detected, technical staff has only to trigger test packet and is transmitted between the network devices according to multicast data flow, just can obtain the testing result of multicast data flow transmission quality between each network equipment, without going to the scene of each network equipment to connect external equipment into each network equipment, therefore, the quantity needing the network equipment of technical staff's execute-in-place greatly reduces, technical staff needs the work undertaken to be simplified when positioning multicast data flow transmission quality problems.
Shown in Fig. 6 is a kind of structural representation controlling device detecting multicast data flow transmission quality in the embodiment of the present invention.In the present embodiment, described device 600 is deployed with second network equipment.Described device 600 the most specifically may include that
Signal generating unit 601, is used for generating at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
Transmitting element 602, for sending at least one test packet described to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
For example, the device 600 shown in Fig. 6 may be used for the method shown in Fig. 4 that performs.Specifically, signal generating unit 601 may be used for performing 401 in Fig. 4.Transmitting element 402 may be used for performing 402 in Fig. 4.
Optionally, described device 600 also includes:
Receive unit, for receiving the described testing result that described first network equipment sends.
Optionally, described testing result is that described first network equipment respectively obtains based on each test packet after receiving each test packet and sends testing result respectively.
Optionally, described testing result is that described first network equipment obtains based on the plurality of test packet after receiving multiple test packet and sends all testing results together.
Optionally, described transmitting element 602, specifically for:
Sending at least one test packet described by sending specialized hardware to described first network equipment, described transmission specialized hardware is the separate hardware for sending described test packet.
Optionally, setting up between described second network equipment with described first network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described first network equipment with described second network equipment.
Optionally, carrying the Magic number that described second network equipment is squeezed in described test packet, described Magic number is used for identifying described test packet by described first network equipment.
Optionally, described device 600 also includes:
Notice transmitting element, for at described transmitting element before described first network equipment sends at least one test packet described, setup test notice is sent, in order to described first network equipment performs the preparation operation of test based on described setup test notice to described first network equipment;
Respond and receive unit, receive setup test for described second network equipment and respond;
Described setup test is responded, be described first network equipment described prepare that operation is finished rear send to described second network equipment, be used for triggering described second network equipment and send at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
It should be noted that the device 600 in the present embodiment is second network equipment in the embodiment shown in earlier figures 2.The various detailed description of the invention of device 600 in the present embodiment, all may refer to being discussed in detail about second network equipment of the embodiment shown in earlier figures 2, and here is omitted.
In the present embodiment, owing to the transmission quality of multicast data flow is analyzed by the network equipment on multicast data flow transmission path and is detected, technical staff has only to trigger test packet and is transmitted between the network devices according to multicast data flow, just can obtain the testing result of multicast data flow transmission quality between each network equipment, without going to the scene of each network equipment to connect external equipment into each network equipment, therefore, the quantity needing the network equipment of technical staff's execute-in-place greatly reduces, technical staff needs the work undertaken to be simplified when positioning multicast data flow transmission quality problems.
Fig. 7 is the structural representation of a kind of network equipment in the embodiment of the present invention.In the present embodiment, the network equipment 700 is specially the first network equipment in the embodiment shown in Fig. 2, the method that may be used for performing the embodiment shown in Fig. 2.The described network equipment 700 includes: processor 701, memorizer 702, network interface 703, bus system 704.
Described bus system 704, for being coupled each nextport hardware component NextPort of physical server 700.
The modes such as described network interface 703, is used for the communication connection realizing between physical server 700 and at least one other network element, it is possible to use the Internet, wide area network, LAN, Metropolitan Area Network (MAN).
Described memorizer 702, is used for storing programmed instruction and data.
Described processor 701, operation below reading the instruction and data of storage in memorizer 702, performing:
Receive at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow;
According at least one test packet described, analyze described multicast data flow transmission quality between described second network equipment and described first network equipment, obtain the testing result for describing described transmission quality.
Optionally, described testing result includes that shaky time, at least one test packet described include the first test packet, the second test packet and the 3rd test packet;
In order to analyze described transmission quality, described processor 701 can perform following operation:
The difference calculating the described very first time and the second time is poor as the very first time, and calculates the difference of described second time and the 3rd time as the second time difference;Wherein, the described very first time represents that described first network equipment receives the time of described first test packet, first network equipment described in described second time representation receives the time of described second test packet, and described in described 3rd time representation, first network equipment receives the time of described 3rd test packet;
Calculate the difference between difference of the described very first time and described second time difference, as described multicast data flow shaky time between described second network equipment and described first network equipment.
Optionally, described testing result includes that packet loss, at least one test packet described include the 4th test packet;
In order to analyze described transmission quality, described processor 701 can perform following operation:
According to the first sequence identification, determine the reception time limit that described 4th test packet is corresponding;Wherein, described first sequence identification represents the order at the 4th test packet described in the test packet that described second network equipment sends, and described first sequence identification carries in described 4th test packet;
If receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number;
If not receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by refusal;
Wherein, described reception message number is for calculating described multicast data flow packet loss between described second network equipment transmission and described first network equipment.
Optionally, described testing result includes out of order, and at least one test packet described includes the 5th test packet and the 6th test packet, wherein, receives described 6th test packet after receiving described 5th test packet;
In order to analyze described transmission quality, described processor 701 can perform following operation:
Relatively the second sequence identification and the 3rd sequence identification;Wherein, described second transmission order represents the order at the 5th test packet described in the test packet that described second network equipment sends, described second sequence identification carries in described 5th test packet, described 3rd transmission order represents that described 3rd sequence identification carries in described 6th test packet in the order of the 6th test packet described in the test packet that described second network equipment sends;
If described second sequence identification is less than described 3rd sequence identification, described 6th test packet is counted the described multicast data flow out of order message number between described second network equipment and described first network equipment.
Optionally, described testing result includes wrong bag, and at least one test packet described includes the 7th test packet;
In order to analyze described transmission quality, described processor 701 can perform following operation:
Identify and verify verification summation Checksum carried in described 7th test packet;
If described verification summation is not verified, described 7th test packet is counted the described multicast data flow wrong packet voice number between described second network equipment and described first network equipment.
Optionally, described processor 701 can also carry out following operation:
Described testing result is sent to described second network equipment.
Optionally, in order to send described testing result to described second network equipment, described processor 701 can perform following operation:
After receiving each test packet, the testing result obtained based on each test packet is sent to described second network equipment respectively.
Optionally, in order to send described testing result to described second network equipment, described processor 701 can perform following operation:
After receiving multiple test packet, all testing results obtained based on multiple test packets are sent jointly to second network equipment.
Optionally, receive at least one test packet that second network equipment sends, particularly as follows: described first network equipment receives at least one test packet described in described second network equipment transmission by receiving specialized hardware, described reception specialized hardware is the separate hardware for receiving described test packet.
Optionally, setting up between described first network equipment with described second network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described second network equipment with described first network equipment.
Optionally, described processor 701 can also carry out following operation:
According to the forwarding strategy that described multicast data flow is corresponding, forward at least one test packet described.
Optionally, in order to receive at least one test packet that second network equipment sends, described processor 701 can perform following operation:
Receive multicast message;
Searching the mark whether carrying described test packet in described multicast message, the mark of described test packet includes Magic number;
If described multicast message carries the mark of described test packet, described multicast message is identified as described test packet.
Optionally, before receiving at least one test packet that described second network equipment sends, described processor 701 can also carry out following operation:
Described first network equipment receives the setup test notice that described second network equipment sends;
Described first network equipment performs the preparation operation of test based on described setup test notice, and rear send setup test to described second network equipment what described preparation operation was finished and respond, in order to described second network equipment is responded based on described setup test and is sent at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
Fig. 8 is the structural representation of a kind of network equipment in the embodiment of the present invention.Second network equipment that the network equipment 800 is deployed with in the embodiment shown in Fig. 2 in the present embodiment, the method that may be used for performing the embodiment shown in Fig. 4.The described network equipment 800 includes: processor 801, memorizer 802, network interface 803, bus system 804.
Described bus system 804, for being coupled each nextport hardware component NextPort of physical server 800.
The modes such as described network interface 803, is used for the communication connection realizing between physical server 800 and at least one other network element, it is possible to use the Internet, wide area network, LAN, Metropolitan Area Network (MAN).
Described memorizer 802, is used for storing programmed instruction and data.
Described processor 801, operation below reading the instruction and data of storage in memorizer 802, performing:
Generate at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
At least one test packet described is sent to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
Optionally, described processor 801 can also carry out following operation:
Receive the described testing result that described first network equipment sends.
Optionally, described testing result is that described first network equipment respectively obtains based on each test packet after receiving each test packet and sends testing result respectively.
Optionally, described testing result is that described first network equipment obtains based on the plurality of test packet after receiving multiple test packet and sends all testing results together.
Optionally, in order to send at least one test packet described to first network equipment, described processor 801 can perform following operation:
Sending at least one test packet described by sending specialized hardware to described first network equipment, described transmission specialized hardware is the separate hardware for sending described test packet.
Optionally, setting up between described second network equipment with described first network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described first network equipment with described second network equipment.
Optionally, carrying the Magic number that described second network equipment is squeezed in described test packet, described Magic number is used for identifying described test packet by described first network equipment.
Optionally, before sending at least one test packet described to described first network equipment, described processor 801 can also carry out following operation:
Setup test notice is sent, in order to described first network equipment performs the preparation operation of test based on described setup test notice to described first network equipment;
Reception setup test is responded;
Described setup test is responded, be described first network equipment described prepare that operation is finished rear send to described second network equipment, be used for triggering described second network equipment and send at least one test packet described.
Optionally, described setup test notice carries transmission sum and the transmission cycle of at least one test packet described.
Optionally, carrying transmission timestamp and receive timestamp in described test packet, described transmission timestamp represents that second network equipment sends the time of described test packet, and described reception timestamp represents that first network equipment receives the time of described test packet.
Optionally, carrying the mark of test program in described test packet, described test program is for realizing detecting the program of multicast data flow transmission quality function on described second network equipment.
" first " in the title such as " first network equipment ", " the first test packet ", " very first time ", " very first time is poor " mentioned in the embodiment of the present invention, " the first sequence identification ", " " is used only to do name mark, does not represent first sequentially.This rule is equally applicable to " second ", " the 3rd ", " the 4th ", " the 5th ", " the 6th ", " the 7th " etc..
As seen through the above description of the embodiments, those skilled in the art is it can be understood that can add the mode of general hardware platform by software to all or part of step in above-described embodiment method and realize.Based on such understanding, technical scheme can embody with the form of software product, this computer software product can be stored in storage medium, as read only memory is (English: read-onlymemory, ROM)/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment (can be personal computer, server, or the network communication equipment such as such as router) perform each embodiment of the present invention or the method described in some part of embodiment.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and between each embodiment, identical similar part sees mutually, and what each embodiment stressed is the difference with other embodiments.For embodiment of the method and apparatus embodiments, owing to it is substantially similar to system embodiment, so describing fairly simple, relevant part sees the part of system embodiment and illustrates.Equipment described above and system embodiment are only schematically, the module wherein illustrated as separating component can be or may not be physically separate, the parts shown as module can be or may not be physical module, i.e. may be located at a place, or can also be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.Those of ordinary skill in the art, in the case of not paying creative work, are i.e. appreciated that and implement.
The above is only the preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.It should be pointed out that, for those skilled in the art, under the premise of not departing from the present invention, it is also possible to make some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (30)

1. the method detecting multicast data flow transmission quality, it is characterised in that including:
First network equipment receives at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow;
Described first network equipment, according at least one test packet described, analyzes described multicast data flow transmission quality between described second network equipment and described first network equipment, obtains the testing result for describing described transmission quality.
Method the most according to claim 1, it is characterised in that described testing result includes that shaky time, at least one test packet described include the first test packet, the second test packet and the 3rd test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
The difference that described first network equipment calculates the described very first time and the second time is poor as the very first time, and calculates the difference of described second time and the 3rd time as the second time difference;Wherein, the described very first time represents that described first network equipment receives the time of described first test packet, first network equipment described in described second time representation receives the time of described second test packet, and described in described 3rd time representation, first network equipment receives the time of described 3rd test packet;
Described first network equipment calculates the difference between difference of the described very first time and described second time difference, as described multicast data flow shaky time between described second network equipment and described first network equipment.
Method the most according to claim 1, it is characterised in that described testing result includes that packet loss, at least one test packet described include the 4th test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
Described first network equipment, according to the first sequence identification, determines the reception time limit that described 4th test packet is corresponding;Wherein, described first sequence identification represents the order at the 4th test packet described in the test packet that described second network equipment sends, and described first sequence identification carries in described 4th test packet;
If described first network equipment receives described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by described first network equipment;
If described first network equipment does not receives described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by described first network equipment refusal;
Wherein, described reception message number is for calculating described multicast data flow packet loss between described second network equipment transmission and described first network equipment.
Method the most according to claim 1, it is characterized in that, described testing result includes out of order, at least one test packet described includes the 5th test packet and the 6th test packet, wherein, described first network equipment receives described 6th test packet after receiving described 5th test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
Described first network equipment compares the second sequence identification and the 3rd sequence identification;Wherein, described second transmission order represents the order at the 5th test packet described in the test packet that described second network equipment sends, described second sequence identification carries in described 5th test packet, described 3rd transmission order represents that described 3rd sequence identification carries in described 6th test packet in the order of the 6th test packet described in the test packet that described second network equipment sends;
If described second sequence identification is less than described 3rd sequence identification, described 6th test packet is counted the described multicast data flow out of order message number between described second network equipment and described first network equipment by described first network equipment.
Method the most according to claim 1, it is characterised in that described testing result includes wrong bag, and at least one test packet described includes the 7th test packet;
Described first network equipment, according at least one test packet described, is analyzed described multicast data flow from described second network equipment to the transmission quality of described first network equipment, is obtained the testing result for describing described transmission quality, including:
Described first network equipment identification also verifies verification summation Checksum carried in described 7th test packet;
If described verification summation is not verified, described 7th test packet is counted the described multicast data flow wrong packet voice number between described second network equipment and described first network equipment by described first network equipment.
6. according to the method described in Claims 1 to 5 any one, it is characterised in that also include:
Described first network equipment sends described testing result to described second network equipment.
7. according to the method described in Claims 1 to 5 any one, it is characterized in that, described first network equipment receives at least one test packet that second network equipment sends, particularly as follows: described first network equipment receives at least one test packet described in described second network equipment transmission by receiving specialized hardware, described reception specialized hardware is the separate hardware for receiving described test packet.
8. according to the method described in Claims 1 to 5 any one, it is characterized in that, setting up between described first network equipment with described second network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described second network equipment with described first network equipment.
9. according to the method described in Claims 1 to 5 any one, it is characterised in that also include:
Described first network equipment according to forwarding strategy corresponding to described multicast data flow, forwards at least one test packet described.
10. according to the method described in Claims 1 to 5 any one, it is characterised in that described first network equipment receives at least one test packet that second network equipment sends, including:
Described first network equipment receives multicast message;
Described first network equipment searches the mark whether carrying described test packet in described multicast message, and the mark of described test packet includes Magic number;
If carrying the mark of described test packet in described multicast message, described multicast message is identified as described test packet by described first network equipment.
11. 1 kinds of methods detecting multicast data flow transmission quality, it is characterised in that including:
Second network equipment generates at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
Described second network equipment sends at least one test packet described to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
12. methods according to claim 11, it is characterised in that also include:
Described second network equipment receives the described testing result that described first network equipment sends.
13. methods according to claim 11, it is characterized in that, described second network equipment sends at least one test packet to second network equipment, particularly as follows: described second network equipment sends at least one test packet described by sending specialized hardware to described first network equipment, described transmission specialized hardware is the separate hardware for sending described test packet.
14. methods according to claim 11, it is characterized in that, setting up between described second network equipment with described first network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described first network equipment with described second network equipment.
15. methods according to claim 11, it is characterised in that carry the Magic number that described second network equipment is squeezed in described test packet, described Magic number is used for identifying described test packet by described first network equipment.
16. 1 kinds of devices detecting multicast data flow transmission quality, it is characterised in that described device is first network equipment, including:
Receive unit, for receiving at least one test packet that second network equipment sends, described test packet is Internet Control Message agreement icmp packet, described icmp packet has the mark of multicast data flow, described icmp packet mark based on described multicast data flow between described first network equipment and described second network equipment is transmitted according to the transmission means of described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow;
Analytic unit, for according at least one test packet described, analyzes described multicast data flow transmission quality between described second network equipment and described first network equipment, obtains the testing result for describing described transmission quality.
17. devices according to claim 16, it is characterised in that described testing result includes that shaky time, at least one test packet described include the first test packet, the second test packet and the 3rd test packet;
Described analytic unit, specifically for:
The difference calculating the described very first time and the second time is poor as the very first time, and calculates the difference of described second time and the 3rd time as the second time difference;Wherein, the described very first time represents that described first network equipment receives the time of described first test packet, first network equipment described in described second time representation receives the time of described second test packet, and described in described 3rd time representation, first network equipment receives the time of described 3rd test packet;
Calculate the difference between difference of the described very first time and described second time difference, as described multicast data flow shaky time between described second network equipment and described first network equipment.
18. devices according to claim 16, it is characterised in that described testing result includes that packet loss, at least one test packet described include the 4th test packet;
Described analytic unit, specifically for:
According to the first sequence identification, determine the reception time limit that described 4th test packet is corresponding;Wherein, described first sequence identification represents the order at the 4th test packet described in the test packet that described second network equipment sends, and described first sequence identification carries in described 4th test packet;
If receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number;
If not receiving described 4th test packet within the described reception time limit, described 4th test packet is counted reception message number by refusal;
Wherein, described reception message number is for calculating described multicast data flow packet loss between described second network equipment transmission and described first network equipment.
19. devices according to claim 16, it is characterized in that, described testing result includes out of order, at least one test packet described includes the 5th test packet and the 6th test packet, wherein, described first network equipment receives described 6th test packet after receiving described 5th test packet;
Described analytic unit, specifically for:
Relatively the second sequence identification and the 3rd sequence identification;Wherein, described second transmission order represents the order at the 5th test packet described in the test packet that described second network equipment sends, described second sequence identification carries in described 5th test packet, described 3rd transmission order represents that described 3rd sequence identification carries in described 6th test packet in the order of the 6th test packet described in the test packet that described second network equipment sends;
If described second sequence identification is less than described 3rd sequence identification, described 6th test packet is counted the described multicast data flow out of order message number between described second network equipment and described first network equipment.
20. devices according to claim 16, it is characterised in that described testing result includes wrong bag, and at least one test packet described includes the 7th test packet;
Described analytic unit, specifically for:
Described first network equipment identification also verifies verification summation Checksum carried in described 7th test packet;
If described verification summation is not verified, described 7th test packet is counted the described multicast data flow wrong packet voice number between described second network equipment and described first network equipment by described first network equipment.
21. according to the device described in claim 16~20 any one, it is characterised in that also include:
First transmitting element, for sending described testing result to described second network equipment.
22. according to the device described in claim 16~20 any one, it is characterised in that described reception unit, specifically for:
Receiving at least one test packet described in described second network equipment transmission by receiving specialized hardware, described reception specialized hardware is the separate hardware for receiving described test packet.
23. according to the device described in claim 16~20 any one, it is characterized in that, setting up between described first network equipment with described second network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described second network equipment with described first network equipment.
24. according to the device described in claim 16~20 any one, it is characterised in that also include:
Second transmitting element, is used for the forwarding strategy corresponding according to described multicast data flow, the test packet of at least one described in forwarding.
25. according to the device described in claim 16~20 any one, it is characterised in that described reception unit, specifically for:
Receive multicast message;
Searching the mark whether carrying described test packet in described multicast message, the mark of described test packet includes Magic number;
If described multicast message carries the mark of described test packet, described multicast message is identified as described test packet.
26. 1 kinds of devices detecting multicast data flow transmission quality, it is characterised in that described device is second network equipment, including:
Signal generating unit, is used for generating at least one test packet;Described test packet is Internet Control Message agreement icmp packet, has the mark of multicast data flow in described icmp packet;
Transmitting element, for sending at least one test packet described to first network equipment, so that described first network equipment is according at least one test packet described, analyze multicast data flow transmission quality between described first network equipment and described second network equipment, obtain the testing result for describing described transmission quality;
Wherein, at least one test packet described is the multicast message transmitted according to described multicast data flow, and described first network equipment and described second network equipment are the network equipment on the transmission path of described multicast data flow.
27. devices according to claim 26, it is characterised in that also include:
Receive unit, for receiving the described testing result that described first network equipment sends.
28. devices according to claim 26, it is characterised in that described transmitting element, specifically for:
Sending at least one test packet described by sending specialized hardware to described first network equipment, described transmission specialized hardware is the separate hardware for sending described test packet.
29. devices according to claim 26, it is characterized in that, setting up between described second network equipment with described first network equipment has transmission control protocol TCP/internet protocol IP to be connected, and at least one test packet described is connected transmission by described TCP/IP between described first network equipment with described second network equipment.
30. devices according to claim 26, it is characterised in that carry the Magic number that described second network equipment is squeezed in described test packet, described Magic number is used for identifying described test packet by described first network equipment.
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 true CN105828218A (en) 2016-08-03
CN105828218B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121017A (en) * 2018-09-12 2019-01-01 视联动力信息技术股份有限公司 A kind of view intranet network method for evaluating quality and device
CN112511365A (en) * 2020-03-24 2021-03-16 中兴通讯股份有限公司 Performance measurement method, device, equipment and storage medium
CN113162855A (en) * 2020-01-22 2021-07-23 华为技术有限公司 Multicast message detection method, network equipment and system

Citations (8)

* 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
CN101272291A (en) * 2008-04-29 2008-09-24 北京星网锐捷网络技术有限公司 Network appliance testing method and system
CN101674204A (en) * 2009-10-13 2010-03-17 东南大学 Method for measuring multimedia multicast service quality based on client
US20100278179A1 (en) * 2007-06-26 2010-11-04 At&T Intellectual Property I, L.P. System and Method of Detecting Lost Packets
CN102630377A (en) * 2011-10-11 2012-08-08 华为技术有限公司 Method, apparatus and system for processing quality parameters of multicast streams
CN103188120A (en) * 2013-04-08 2013-07-03 华为技术有限公司 Detection method for packet loss of multicast business and device thereof
CN103402144A (en) * 2013-07-29 2013-11-20 华为技术有限公司 Method, device and system for automatically measuring multicast service performances

Patent Citations (8)

* 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
US20100278179A1 (en) * 2007-06-26 2010-11-04 At&T Intellectual Property I, L.P. System and Method of Detecting Lost Packets
CN101272291A (en) * 2008-04-29 2008-09-24 北京星网锐捷网络技术有限公司 Network appliance testing method and system
CN101674204A (en) * 2009-10-13 2010-03-17 东南大学 Method for measuring multimedia multicast service quality based on client
CN102630377A (en) * 2011-10-11 2012-08-08 华为技术有限公司 Method, apparatus and system for processing quality parameters of multicast streams
CN103188120A (en) * 2013-04-08 2013-07-03 华为技术有限公司 Detection method for packet loss of multicast business and device thereof
CN103402144A (en) * 2013-07-29 2013-11-20 华为技术有限公司 Method, device and system for automatically measuring multicast service performances

Cited By (5)

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

Also Published As

Publication number Publication date
CN105828218B (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN103401726B (en) Network path detection method and device, system
US9306819B2 (en) Controller driven OAM for split architecture network
CN108111432B (en) Message forwarding method and device
US7693092B2 (en) Multicast tree monitoring method and system in IP network
US7706278B2 (en) Triggering flow analysis at intermediary devices
US20060013143A1 (en) Network looping detecting apparatus
US7607049B2 (en) Apparatus and method for detecting network failure location
CN101841441B (en) Test method and system for flow control device and data stream playback device
EP2587755A1 (en) Method, apparatus and system for implementing multicast
US10116545B2 (en) Method, device and system for processing OAM packet
CN105024868A (en) Network quality detection method and network quality detection system for video Internet
CN106375139B (en) Method, device and system for copying request
WO2016041379A1 (en) Method and apparatus for implementing nni ping
CN109788247B (en) Method and device for identifying monitoring instruction
US10623278B2 (en) Reactive mechanism for in-situ operation, administration, and maintenance traffic
US20120269068A1 (en) Testing system
US8441942B1 (en) Method and apparatus for link level loop detection
CN102195832A (en) Loopback testing method, device and system
WO2016103006A1 (en) Media performance monitoring and analysis
CN105828218A (en) Method for detecting transmission quality of multicast streams, device and system
US20170222953A1 (en) User packet forwarding control method and processing node
CN106685693A (en) Network anomaly detection method, system and network device
CN111385163A (en) Flow analysis and detection method and device
EP2432160A1 (en) Method, device and system for measuring network performance
CN102630377B (en) Method, apparatus and system for processing quality parameters of multicast streams

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