CN103701706B - A kind of multicast protocol method of testing - Google Patents

A kind of multicast protocol method of testing Download PDF

Info

Publication number
CN103701706B
CN103701706B CN201310465231.5A CN201310465231A CN103701706B CN 103701706 B CN103701706 B CN 103701706B CN 201310465231 A CN201310465231 A CN 201310465231A CN 103701706 B CN103701706 B CN 103701706B
Authority
CN
China
Prior art keywords
message information
reception terminal
multicast
multicast reception
communicator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310465231.5A
Other languages
Chinese (zh)
Other versions
CN103701706A (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.)
Song Yixiao
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201310465231.5A priority Critical patent/CN103701706B/en
Publication of CN103701706A publication Critical patent/CN103701706A/en
Application granted granted Critical
Publication of CN103701706B publication Critical patent/CN103701706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of multicast protocol method of testing, belong to multicast protocol technical field of measurement and test, include a multicast and terminal and at least two multicast reception terminals occur;Terminal occurs for multicast by carrying out interacting for message information between a communicator and at least two multicast reception terminals;Message information includes protocol massages information and data message information;Step 1, communicator is configured to run multicast protocol;Step 2, each multicast reception terminal sends different protocol massages information to communicator;Each multicast reception terminal judges whether multicast protocol can normal operation on the communication device according to the corresponding message information received.The beneficial effect of above-mentioned technical proposal is:Each protocol massages in multicast protocol have effectively been distinguished, for special group address have and has targetedly tested, improved the accuracy of multicast protocol test.

Description

A kind of multicast protocol method of testing
Technical field
The present invention relates to multicast protocol technical field of measurement and test, more particularly to a kind of multicast protocol method of testing.
Background technology
Multicasting technology(Multicast)As a kind of network communications technology, it mainly realizes the network connection of point-to-multipoint With data transfer, that is, all data in the group can be received by adding the main frame of same communication set, and the exchange in network Machine and router are only to having demander to replicate and forward required data.Cast communication technology is needed using cast communication Related protocol, in the prior art, for different communication equipments, multicast protocol survey can be carried out to it before cast communication is carried out Examination, it is intended to which can test multicast protocol normal operation on the communication device.
But existing multicast protocol method of testing and do not have certain specific aim, such as have for some it is special The protocol massages or data message of group address, prior art can not carry out targeted to the identification capacity one by one of communication equipment Test.
Chinese patent(CN102299848A)A kind of multicast message transmission method and provider edge equipment are disclosed, is wrapped Include:PE receives the private network multicast message for needing to carry out multicast transmission in MVPN;And the private network multicast message for determining to receive is private Net multicast protocol message or private network multicast data message;And the private network multicast message is private network multicast protocol message when determination When, by the first multicast distribution tree of multicast group corresponding to the MVPN, group is carried out to the private network multicast protocol message in public network Broadcast transmission;When it is determined that the private network multicast message is private network multicast data message, pass through second of multicast group corresponding to the MVPN Multicast distribution tree, multicast transmission is carried out to the private network multicast data message in public network.Above-mentioned technical proposal only discloses multicast The method of message transmissions, detail section therein is not directed to, can not solve the problems of the prior art;
Chinese patent(CN1859284)Disclose a kind of side that multicast management is carried out to more station terminals under same access interface Method, router side apparatus comprise the following steps when distinguishing more multi-cast terminals under same access interface:Same incoming end is set The terminal number of each multi-cast terminal under mouthful;Different multi-cast terminals are in construction internet multicast management protocol report under same access interface When accusing message or leaving message, terminal number is inserted in the unused field of internet multicast management protocol message;Router side The internet multicast managerial protocol report message and leave the unused field in message that equipment is received by analyzing, distinguish same connect Each multi-cast terminal under inbound port.Above-mentioned technical proposal does not carry out careful differentiation and identification, nothing to the type of protocol massages Method solves problems of the prior art.
The content of the invention
According to problems of the prior art, i.e., it is careful that each protocol massages can not be carried out in multicast protocol test Identification and checking;A kind of technical scheme of multicast protocol method of testing is now provided, specifically included:
A kind of multicast protocol method of testing, suitable for communication equipment;Wherein, including multicast occur terminal with least Two multicast reception terminals;The multicast occur terminal by a communicator and at least two multicast reception terminals it Between carry out message information interaction;The message information includes protocol massages information and data message information;
Step 1, the communicator is configured to run multicast protocol;
Step 2, each multicast reception terminal sends the different protocol massages information to the communicator;Often The individual multicast reception terminal judges whether the multicast protocol can be described according to the corresponding message information received Normal operation on communicator.
Preferably, the multicast protocol method of testing, wherein,
The communicator sends the corresponding protocol massages information to the multicast reception terminal;
The multicast occurs terminal and sends the data message information to the communicator;The communicator is to described Multicast reception terminal sends the corresponding data message information;
Preferably, the multicast protocol method of testing, wherein, the protocol massages information includes join message information, inquiry Message information and leave message information.
Preferably, the multicast protocol method of testing, wherein, at least two multicast reception terminals connect including the first multicast Receive terminal and the second multicast reception terminal;
The multicast occurs terminal and is connected to the communicator by a first interface;
The first multicast reception terminal is connected to the communicator by a second interface;
The second multicast reception terminal is connected to the communicator by one the 3rd interface.
Preferably, the multicast protocol method of testing, wherein,
In the step 2, the first multicast reception terminal sends group address to the communicator first and is 225.0.0.1 the information that joins message:
Step a1, it is described in 225.0.0.1 that the first multicast reception terminal sends group address to the communicator Join message information;
Step a2, judge that the first multicast reception terminal judges whether to receive the corresponding data message information;
If the first multicast reception terminal receives the data message information, step a3 is gone to;
If the first multicast reception terminal does not receive the data message information, judge that the communicator can not The data message information is normally issued, with backed off after random;
Step a3, the second multicast reception terminal send the predetermined protocol massages information to the communicator, And judge whether the multicast reception terminal receives the corresponding message information.
Preferably, the multicast protocol method of testing, wherein, the step a3 is specifically included:
Step b1, it is described in 225.0.0.1 that the second multicast reception terminal sends group address to the communicator Join message information;
Step b2, judges whether the second multicast reception terminal receives the data message information;
If the second multicast reception terminal does not receive the data message information, judge that the communicator can not The data message information is normally issued, with backed off after random;
If the second multicast reception terminal receives the data message information, the step b3 is gone to;
Step b3, judges whether the first multicast reception terminal receives the query message information;
If the first multicast reception terminal receives the query message information, judge the communicator by described in The information that joins message that multicast address is 225.0.0.1 is obscured with the query message information, with backed off after random;
If the first multicast reception terminal does not receive the query message, step b3 is gone to;
Step b4, the first multicast reception terminal send the corresponding protocol massages information to the communicator, And judge whether the multicast reception terminal receives the corresponding message information.
Preferably, the multicast protocol method of testing, wherein, the step b3 is specifically included:
Step c1, it is described in 225.0.0.2 that the first multicast reception terminal sends group address to the communicator Join message information;
Step c2, judges whether the first multicast reception terminal receives the corresponding data message information;
If the first multicast reception terminal receives the corresponding data message information, step c3 is gone to;
If the first multicast reception terminal does not receive the corresponding data message information, the communication dress is judged The data message information can not normally be issued by putting, with backed off after random;
Step c3, judges whether the second multicast reception terminal receives the corresponding query message information;
If the second multicast reception terminal does not receive the corresponding query message information, step c4 is gone to;
If the second multicast reception terminal receives the corresponding query message information, the communicator is judged It is that joining message for 225.0.0.2 is obscured with the message that leaves by the group address, with backed off after random;
Step c4, the second multicast reception terminal send the corresponding protocol massages information to the communicator, And judge whether the second multicast reception terminal receives the corresponding message information.
Preferably, the multicast protocol method of testing, wherein, the step c4 is specifically included:
Step d1, it is described in 225.0.0.2 that the second multicast reception terminal sends group address to the communicator Join message information;
Step d2, judges whether the second multicast reception terminal receives the corresponding data message information;
If the second multicast reception terminal receives the data message information, step d3 is gone to;
If the second multicast reception terminal does not receive the data message information, judge that the communicator can not The data message information is normally issued, with backed off after random;
Step d3, the first multicast reception terminal send the corresponding protocol massages information to the communication equipment, And judge whether the first multicast reception terminal receives the corresponding message information.
Preferably, the multicast protocol method of testing, wherein, the step d3 is specifically included:
Step e1, it is described in 225.0.0.1 that the first multicast reception terminal sends group address to the communication equipment Leave message information;
Step e2, judges whether the first multicast reception terminal receives the corresponding query message information;
If the first multicast reception terminal does not receive the corresponding query message information, the communication dress is judged Put and leave message information described in can not normally identifying, with backed off after random;
If the first multicast reception terminal receives the corresponding query message information, step e3 is gone to;
Step e3, the second multicast reception terminal send the corresponding protocol massages information to the communicator, And judge whether the second multicast reception terminal receives the corresponding message information.
Preferably, the multicast protocol method of testing, wherein, the step e4 is specifically included:
Step f1, it is described in 225.0.0.2 that the second multicast reception terminal sends group address to the communicator Leave message information;
Step f2, judges whether the second multicast reception terminal receives the corresponding query message information
If the second multicast reception terminal receives the corresponding query message information, then go to step f3;
If the second multicast reception terminal does not receive the corresponding query message information, the communication dress is judged Put and leave message information described in can not normally identifying, with backed off after random;
Step f3, judges whether the first multicast reception terminal can continue to play section of the group address for 225.0.0.1 Mesh;
If the first multicast reception terminal can not continue play group address be 225.0.0.1 program, judge described in Communicator obscures group address for the information that joined message described in 225.0.0.2 with the message information that leaves, with backed off after random;
If the first multicast reception terminal can continue to play group address be 225.0.0.1 program, judge described in Multicast protocol normal operation, with backed off after random.
Preferably, the multicast protocol method of testing, wherein, the query message information include general polling message information and Ad hoc inquiry message information;
The communicator sends described general look at least two multicast reception terminals at predetermined intervals Ask message information;
The communicator sends institute according to the protocol massages information received to all multicast reception terminals State general polling message information;
The communicator is sent according to the protocol massages information received to the specific multicast reception terminal The ad hoc inquiry message information.
Preferably, the multicast protocol method of testing, wherein, in the step d3, in the first multicast reception terminal Before sending the corresponding protocol massages information to the communication equipment, first determine whether the multicast reception terminal can hold It is continuous to keep interacting for the message information with the communicator:
Step d31, judges whether the first multicast reception terminal can normally receive the communicator with described pre- If the general polling message that issues of time interval;
If can normally receive, step d32 is gone to;
If can not normally receive, judge that the first multicast reception terminal can not keep normal with the communicator and hand over Mutually, with backed off after random;
Step d32, judges whether the second multicast reception terminal can normally receive the communicator with described pre- If the general polling message that issues of time interval;
If can normally receive, the step d3 is continued executing with;
If can not normally receive, judge that the second multicast reception terminal can not keep normal with the communicator and hand over Mutually, with backed off after random.
Preferably, the multicast protocol method of testing, wherein, in the step f3, normally transported in the judgement multicast protocol After row, judge whether the multicast reception terminal can continue to keep interacting for the message information with the communicator:
Step f31, judges whether the first multicast reception terminal can normally receive the communicator with described pre- If the group address that issues of time interval be 225.0.0.2 the general polling message information;
If can normally receive, step f32 is gone to;
If can not normally receive, judge that the first multicast reception terminal can not keep normal with the communicator and hand over Mutually, with backed off after random;
Step f32, judges whether the second multicast reception terminal can normally receive the communicator with described pre- If the group address that issues of time interval be 225.0.0.1 the general polling message;
If can normally receive, the multicast protocol normal operation is judged;With backed off after random;
If can not normally receive, judge that the second multicast reception terminal can not keep normal with the communicator and hand over Mutually, with backed off after random.
Preferably, the multicast protocol method of testing, wherein, when the multicast reception terminal receives the query message letter During breath, the step of whether the query message information is the query message information needed in the multicast protocol method of testing judged Specifically include:
Step A, first determine whether the type of the query message information;
If the multicast reception terminal receive for the ad hoc inquiry message information, judge the ad hoc inquiry report Literary information is the query message information needed in the multicast protocol method of testing, with backed off after random;
If the multicast reception terminal receive for the general polling message information, go to step B;
Step B, the multicast reception terminal send the corresponding protocol massages information to the communicator again, and Judge whether to receive the corresponding general polling message information;
If the multicast reception terminal still receives the general polling message information, the general polling report is judged Literary information is the query message information needed in the multicast protocol method of testing, with backed off after random;
If the multicast reception terminal does not receive the general polling message information, the general polling message is judged Information is not the query message information needed in the multicast protocol method of testing, then switches into step C;
Step C, the general polling message information is abandoned, with backed off after random.
The beneficial effect of above-mentioned technical proposal is:
1)Each protocol massages in multicast protocol are effectively distinguished;
2)For special group address have and targetedly tested, improved the accuracy of multicast protocol test.
Brief description of the drawings
Fig. 1 is the foundation structure schematic diagram needed for multicast protocol method of testing in the preferred embodiment of the present invention;
Fig. 2 is the overall procedure schematic diagram tested multicast protocol in the preferred embodiment of the present invention;
Fig. 3-10 is in the preferred embodiment of the present invention, enters one to multicast protocol method of testing on the basis of Fig. 2 Walk the schematic flow sheet of expansion.
Embodiment
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
As shown in figure 1, in the preferred embodiment of the present invention, the communicator 1 using multicast protocol communication is surveyed Examination.The communicator 1 includes multiple communication interfaces.One multicast occurs terminal 2 and is connected to communication by a first interface 11 Device 1, at least two multicast reception terminals are connected to communicator 1 by corresponding communication interface;I.e. a multicast occurs eventually End 2 between the multicast reception terminal of communicator 1 and at least two by establishing cast communication annexation.
In the preferred embodiment of the present invention, describe for convenience, at least two multicast reception terminals are defined to two Multicast reception terminal:First multicast reception terminal 3 and the second multicast reception terminal 4;Wherein the first multicast reception terminal 3 passes through one Second interface 12 is connected to communicator 1, and the second multicast reception terminal 4 is connected to communicator 1 by one the 3rd interface 13.
In the preferred embodiment of the present invention, on the basis of said structure, multicast occurs terminal 2 and passes through communicator 1 Establish and connect with the first multicast reception terminal 3 and the second multicast reception terminal 4, and carry out the interaction of message information.
In the preferred embodiment of the present invention, above-mentioned message information includes protocol massages information and data message information, Wherein:
The protocol massages that communicator 1 is sent according to the first multicast reception terminal 3 and/or the second multicast reception terminal 4 are believed Breath, corresponding protocol massages information is sent to the first multicast reception terminal 3 and/or the second multicast reception terminal 4;
Multicast occurs terminal 2 and sent datagram information to communicator 1, and communicator 1 is whole according to above-mentioned multicast reception The different protocol massages information that end 3 and/or 4 is sent, send corresponding data message to multicast reception terminal 3 and/or 4 and believe Breath.
Therefore, in preferred embodiment of the invention, the actual function with data distribution of communicator 1, i.e. multicast is sent out Raw terminal 2 sends data message to communicator 1, while multiple multicast reception terminals send different protocol massages extremely respectively Communicator 1 is to inform self-demand.Communicator 1 will count accordingly according to the different demands of different multicast reception terminals Sent according to message into corresponding multicast reception terminal.
In the preferred embodiment of the present invention, above-mentioned protocol massages information includes the addition for asking addition communication set Message information, the message information that leaves of communication set, and the query message for requesting query message information are left for request Information.
As shown in Fig. 2 in the preferred embodiment of the present invention, a kind of multicast protocol method of testing mainly includes:
Step 1, communicator is configured to run multicast protocol;
In the preferred embodiment of the present invention, by communication device configuration into multicast protocol can be run, then pass through one again The method of testing of series judges whether multicast protocol being capable of complete normal operation under in such a configuration.
Step 2, each multicast reception terminal sends different protocol massages information to communicator;Each multicast reception is whole End judges whether multicast protocol can normal operation on the communication device according to the corresponding message information that receives.
In the preferred embodiment of the present invention, above-mentioned steps 2 are:Each multicast reception terminal is sent not to communicator Same protocol massages information;Communicator is sent not according to the protocol massages information received to different multicast reception terminals Same message information(Data message information and/or protocol massages information);Multicast reception terminal is believed according to received message Breath, judges whether multicast protocol is in the state of normal operation.
In the preferred embodiment of the present invention, tested mainly for the message information of specific group address.Specifically, Because the message information that group address is 225.0.0.1 is identical with the MAC Address of query message information, communicator is possible to incite somebody to action Group address is that 225.0.0.1 message information is mistakenly considered query message information;Likewise, because group address is 225.0.0.2 Message information it is identical with the MAC Address for leaving message information, communicator be possible to can by group address be 225.0.0.2 report Literary information, which is mistakenly considered, leaves message information.For above-mentioned situation that may be present, in preferred embodiment of the invention, specifically Message information under above-mentioned two group address is sent using multicast reception terminal to test multicast protocol.
In the preferred embodiment of the present invention, above-mentioned multicast occurs terminal 2 and simulates multicast source in multicast protocol test, and The data message information that group address is 225.0.0.1 and 225.0.0.2 is sent to communicator by first interface 11.
In the preferred embodiment of the present invention, communicator is configured, IGMP V2 can be run(Internet Group Management Protocol V2, Internet Group Management Protocol version 2)Multicast protocol(proxy), realize multicast point Multicast function.
In the preferred embodiment of the present invention, at least two multicast reception terminals are by simulating user's program request or stopping Program request 225.0.0.1 and 225.0.0.2 tests come the operation to multicast protocol.
In the preferred embodiment of the present invention, above-mentioned simulation program request or the action of simulation multicast source can pass through packet capturing mould Block(Such as VLC modules)To complete.
As shown in figs. 3-10, in preferred embodiment of the invention, on the basis of Fig. 1, to multicast protocol method of testing Expansion description is carried out, is specially:
As shown in figure 3, in the preferred embodiment of the present invention, in step 2, follow the steps below:
Step a1, the first multicast reception terminal send the information that joins message that group address is 225.0.0.1 to communicator;
In the preferred embodiment of the present invention, can the step is intended to test communicator between multicast reception terminal just Normal open is believed.
Step a2, judge that the first multicast reception terminal judges whether to receive corresponding data message information;
If the first multicast reception terminal receives data message information, step a3 is gone to;
If the first multicast reception terminal does not receive data message information, judge that communicator can not normally issue data Message information, with backed off after random;
The present invention preferred embodiment in, when communicator 1 receive 225.0.0.1 join message information when, meeting The information that joins message is identified, and corresponding data message information is sent to the first multicast reception terminal 3;Therefore, if first group Broadcast receiving terminal 3 and receive data message information, then illustrate that communicator 1 can normally issue data message information;If do not receive Arrive, then illustrate that communicator 1 can not normally issue data message information, specifically, it may be possible to the None- identified group of communicator 1 Address is the 225.0.0.1 information that joins message, it is also possible to the data between the multicast reception terminal 3 of communicator 1 and first Transmission link goes wrong.Therefore testing process is exited, communicator is further configured, to solve the above problems.
Step a3, the second multicast reception terminal sends predetermined protocol massages information to communicator, and judges that multicast connects Receive whether terminal receives corresponding message information.
As shown in figure 4, in the preferred embodiment of the present invention, above-mentioned steps a3 is specifically included:
Step b1, the second multicast reception terminal send the information that joins message that group address is 225.0.0.1 to communicator;
In the preferred embodiment of the present invention, can the step be intended to test communicator and distinguish group address and be 225.0.0.1 message information and query message information.
Step b2, judges whether the second multicast reception terminal receives data message information;
If the second multicast reception terminal does not receive data message information, judge that communicator can not normally issue data Message information, with backed off after random;
If the second multicast reception terminal receives data message information, step b3 is gone to;
In the preferred embodiment of the present invention, it is when the second multicast reception terminal 4 sends group address to communicator 1 After joining message 225.0.0.1, the second multicast reception terminal 4 judges whether itself receives corresponding data message;If not Receive, then illustrate that communicator 1 can not normally issue data message information(It is 225.0.0.1 that group address, which can not normally be identified, Join message information/data transmission link error), now exit, and communicator 1 is further configured.
Step b3, judges whether the first multicast reception terminal receives query message information;
If the first multicast reception terminal receives query message information, judge that multicast address is by communicator 225.0.0.1 the information that joins message is obscured with query message information, with backed off after random;
If the first multicast reception terminal does not receive query message, step b3 is gone to;
In the preferred embodiment of the present invention, when communicator 1 receives the group address of the second multicast reception terminal 4 transmission After the 225.0.0.1 information that joins message, if the information that joins message is mistakenly considered query message information by communicator 1, Then communicator 1 can issue general polling message information to the first multicast reception terminal 3.So-called general polling message information is Refer to, the multicast reception terminal of from communicator 1 to all addition group 225.0.0.1 issue general polling message information, to inquire about group Broadcast the cast communication state of receiving terminal.Therefore, in preferred embodiment of the invention, if the first multicast reception terminal 3 receives To general polling message information, then illustrate that the group address that communicator 1 sends the second multicast reception terminal 4 is 225.0.0.1 The information that joins message be mistakenly considered query message information, therefore exit, and communicator 1 is further configured;If First multicast reception terminal 3 does not receive general polling message information, then illustrates that communicator can normally identify that group address is 225.0.0.1 the information that joins message;
In the preferred embodiment of the present invention, communicator 1 periodically can issue general polling to multicast reception terminal 3 and 4 Message information(As detailed below);For simple, after the first multicast reception terminal 3 receives general polling message information, its The general polling message information that is periodically issued for communicator 1 or this general polling required for judging are not determined whether Message information;It is joining message for 225.0.0.1 that now the second multicast reception terminal 4 sends group address to communicator 1 again Information;If the first multicast reception terminal 3 is received again by general polling message information, prove that now communicator 1 is by group address Obscure for joining message for 225.0.0.1 with query message.
Step b4, the first multicast reception terminal sends corresponding protocol massages information to communicator, and judges that multicast connects Receive whether terminal receives corresponding message information.
As shown in figure 5, in the preferred embodiment of the present invention, on the basis of Fig. 4, above-mentioned steps b3 further comprises:
Step c1, the first multicast reception terminal send the information that joins message that group address is 225.0.0.2 to communicator;
In the preferred embodiment of the present invention, can the step be intended to test communicator and distinguish group address and be 225.0.0.2 message information and leave message information.
Step c2, judges whether the first multicast reception terminal receives corresponding data message information;
If the first multicast reception terminal receives corresponding data message information, step c3 is gone to;
If the first multicast reception terminal does not receive corresponding data message information, judge communicator can not normally under Data message information is sent out, with backed off after random;
Step c3, judges whether the second multicast reception terminal receives corresponding query message information;
If the second multicast reception terminal does not receive corresponding query message information, step c4 is gone to;
If the second multicast reception terminal receives corresponding query message information, judge that group address is by communicator 225.0.0.2 the message that joins message and leave is obscured, with backed off after random;
In the preferred embodiment of the present invention, it is when the second multicast reception terminal 4 sends group address to communicator 1 225.0.0.2 after the information that joins message, if the information that joins message is mistakenly considered by communicator 1 leaves message information, Communicator 1 can be directed to the second multicast reception terminal 4 and send an ad hoc inquiry message information.So-called ad hoc inquiry message letter Breath, refers to be directed to some specific multicast reception terminal, the specific multicast is inquired about in a manner of sending query message information and is connect Receive the communications status of terminal.If the second multicast reception terminal 4 receives the ad hoc inquiry message information, illustrate communicator 1 The information that joins message that group address is 225.0.0.2 is mistakenly considered and leaves message information, with backed off after random;If the second multicast reception When terminal 4 does not receive the ad hoc inquiry message information, then illustrate multicast protocol normal operation, carry out next step test.
In the preferred embodiment of the present invention, the query message information required for this judges is ad hoc inquiry message Information, therefore the secondary reception and deterministic process of general polling message information need not be carried out.
Step c4, the second multicast reception terminal sends corresponding protocol massages information to communicator, and judges second group Broadcast whether receiving terminal receives corresponding message information.
As shown in fig. 6, in the preferred embodiment of the present invention, on the basis of Fig. 5, above-mentioned steps c4 is further spread out For:
Step d1, the second multicast reception terminal send the information that joins message that group address is 225.0.0.2 to communicator;
In the preferred embodiment of the present invention, the step is intended to test and is when the second multicast reception terminal 4 sends group address 225.0.0.2 when joining message, whether the data transfer between communicator 1 and the second multicast reception terminal 4 normal.
Step d2, judges whether the second multicast reception terminal receives corresponding data message information;
If the second multicast reception terminal receives data message information, step d3 is gone to;
If the second multicast reception terminal does not receive data message information, judge that communicator can not normally issue data Message information, with backed off after random;
It is similar with described in Fig. 3, in preferred embodiment of the invention, filled using the second multicast reception terminal 4 to communication Put 1 transmission group address and be the 225.0.0.2 information that joins message, and judge whether to receive the datagram from communicator 1 Literary information, judge whether communicator 1 can normally issue data message information with this.
Step d3, the first multicast reception terminal sends corresponding protocol massages information to communication equipment, and judges first group Broadcast whether receiving terminal receives corresponding message information.
In the preferred embodiment of the present invention, in step d3, phase is sent to communication equipment in the first multicast reception terminal Before the protocol massages information answered, first determine whether multicast reception terminal 3 and 4 can normally interact with communicator 1;Specifically such as Shown in Fig. 7, it is:
Step d31, judges whether the first multicast reception terminal can normally receive communicator at predetermined intervals The general polling message issued;
If can normally receive, step d32 is gone to;
If can not normally receive, judge that the first multicast reception terminal can not be kept normally interacting with communicator, then Exit;
In the preferred embodiment of the present invention, communicator 1 regularly can issue general polling to multicast reception terminal 3 and 4 Message information, to inquire about the communications status of multicast reception terminal 3 and 4.
Step d32, judges whether the second multicast reception terminal can normally receive communicator at predetermined intervals The general polling message issued;
If can normally receive, step d3 is continued executing with;
If can not normally receive, judge that the second multicast reception terminal can not be kept normally interacting with communicator, then Exit.
In the preferred embodiment of the present invention, the above-mentioned step for judging whether that interaction can be continued, it is intended to judge communication dress Whether multicast reception terminal between can keep message interaction, to maintain normal cast communication if putting.
As shown in figure 8, in the preferred embodiment of the present invention, on the basis of Fig. 6, above-mentioned steps d3 is further spread out For:
Step e1, the first multicast reception terminal send group address to communication equipment and leave message information for 225.0.0.1;
In the preferred embodiment of the present invention, the step is intended to judge that can communicator 1 normally identify that leaving message believes Breath;
Step e2, judges whether the first multicast reception terminal receives corresponding query message information;
If the first multicast reception terminal does not receive corresponding query message information, judge that communicator can not positive general knowledge Message information is taken leave of out, with backed off after random;
If the first multicast reception terminal receives corresponding query message information, step e3 is gone to;
In the preferred embodiment of the present invention, above-mentioned query message information is for the specific of the first multicast reception terminal 3 Query message information.
In the preferred embodiment of the present invention, when the first multicast reception terminal 3 responds the letter that joins message to communicator 1 Breath, then judge that the first multicast reception terminal 3 can not receive corresponding query message information, and then judge that communicator 1 can not be known Other group address leaves message information for 225.0.0.1's.
In the preferred embodiment of the present invention, the query message information required for this judges is ad hoc inquiry message Information, therefore the secondary reception and deterministic process of general polling message information need not be carried out.
Step e3, the second multicast reception terminal sends corresponding protocol massages information to communicator, and judges second group Broadcast whether receiving terminal receives corresponding message information.
As described in Figure 9, in preferred embodiment of the invention, on the basis of Fig. 8, above-mentioned steps e4 is further spread out For:
Step f1, the second multicast reception terminal send group address to communicator and leave message information for 225.0.0.2;
In the preferred embodiment of the present invention, the step is intended to judge that can communicator 1 normally identify that leaving message believes Breath;
In the preferred embodiment of the present invention, the query message information required for this judges is ad hoc inquiry message Information, therefore the secondary reception and deterministic process of general polling message information need not be carried out.
Step f2, judges whether the second multicast reception terminal receives corresponding query message information
If the second multicast reception terminal receives corresponding query message information, then go to step f3;
In the preferred embodiment of the present invention, if the second multicast reception terminal 4 responds the letter that joins message to communicator 1 Breath, then judge that the second multicast reception terminal 4 does not receive corresponding query message information, and then judge the None- identified of communicator 1 Group address leaves message information for 225.0.0.2's.
In the preferred embodiment of the present invention, above-mentioned query message information is for the specific of the second multicast reception terminal 4 Query message information.
Step f3, judges whether the first multicast reception terminal can continue to play program of the group address for 225.0.0.1;
If the first multicast reception terminal can not continue to play the program that group address is 225.0.0.1, communicator is judged The information that joins message that group address is 225.0.0.2 is obscured with leaving message information, with backed off after random;
If the first multicast reception terminal can continue to play the program that group address is 225.0.0.1, multicast protocol is judged Normal operation, with backed off after random.
In the preferred embodiment of the present invention, as described above, due in foregoing method of testing, being related to more multipair In the judgement of query message, and for query message, it is divided into general polling message and ad hoc inquiry message;Assisted to multicast In the test process of view, communicator still can periodically issue general polling message, therefore, it is necessary to multicast reception terminal 3 and 4 The query message received makes a distinction, and as described above, the specific steps further discriminated between to query message are such as Shown in Figure 10, it is:
Step A, first determine whether the type of query message information;
If multicast reception terminal receive for ad hoc inquiry message information, judge ad hoc inquiry message information for multicast The query message information needed in protocol testing method, with backed off after random;
If multicast reception terminal receive for general polling message information, go to step B;
In the preferred embodiment of the present invention, for ad hoc inquiry message information, due to it is targeted be specific Multicast reception terminal 3 or 4, and communicator 1 will not periodically issue ad hoc inquiry message information;Therefore, if what is received is special Determine query message information, then directly determine that it is effective query message information, and continue the correlated judgment of next step
Step B, multicast reception terminal sends corresponding protocol massages information to communicator again, and judges whether to receive To corresponding general polling message information;
If multicast reception terminal still receives general polling message information, judge general polling message information for multicast The query message information needed in protocol testing method, with backed off after random;
If multicast reception terminal does not receive general polling message information, it is not multicast to judge general polling message information The query message information needed in protocol testing method, then switches into step C;
Step C, general polling message information is abandoned, with backed off after random.
In the preferred embodiment of the present invention, if it is determined that received for general polling message information, then in order to distinguish It is the general polling message information that communicator 1 periodically issues, or general polling message information useful in this method of testing, Need to further discriminate between the general polling message information, specially corresponding multicast reception terminal 3 or 4 fills to communication again The respective protocol message information under the corresponding group address of 1 transmission is put, and judges whether to be received again by general polling message information;If again Secondary to receive, then it is effective query message information to judge the general polling message information.
In the preferred embodiment of the present invention, on the basis of Fig. 9, in above-mentioned steps f3, multicast protocol is being judged just Often after operation, do not exit first, continue to judge whether multicast reception terminal can continue to keep the friendship of message information with communicator Mutually:
Step f31, judges whether the first multicast reception terminal can normally receive communicator at predetermined intervals The group address issued is 225.0.0.2 general polling message information;
If can normally receive, step f32 is gone to;
If can not normally receive, judge that the first multicast reception terminal can not be kept normally interacting with communicator, then Exit;
In the preferred embodiment of the present invention, judge whether the first multicast reception terminal 3 can receive communicator timing The general polling message information issued;Now, for the first multicast reception terminal 3, it has had logged out group address and is 225.0.0.1 group, and do not need other query message information received(Including general polling message information and ad hoc inquiry Message information), therefore, the query message for being 225.0.0.2 for the group address received, can be determined that as general polling report Text.
Step f32, judges whether the second multicast reception terminal can normally receive communicator at predetermined intervals The general polling message issued;
If can normally receive, multicast protocol normal operation is judged;With backed off after random;
If can not normally receive, judge that the second multicast reception terminal can not be kept normally interacting with communicator, then Exit.
In the preferred embodiment of the present invention, judge whether the second multicast reception terminal 4 can receive communicator timing The general polling message information issued;Now, for the second multicast reception terminal 4, it has had logged out group address and is 225.0.0.2 group, and do not need other query message information received(Including general polling message information and ad hoc inquiry Message information), therefore, the query message for being 225.0.0.1 for the group address received, can be determined that as general polling report Text.
Preferred embodiments of the present invention are the foregoing is only, not thereby limit embodiments of the present invention and protection model Enclose, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content Scheme obtained by equivalent substitution and obvious change, should be included in protection scope of the present invention.

Claims (9)

  1. A kind of 1. multicast protocol method of testing, suitable for communication equipment;Characterized in that, terminal occurs applied to a multicast In at least two multicast reception terminals;The multicast occurs terminal and connect by a communicator and at least two multicasts The interaction of message information is carried out between receipts terminal;The message information includes protocol massages information and data message information;It is described Communicator sends the corresponding protocol massages information to the multicast reception terminal;The multicast occurs terminal and led to described T unit sends the data message information;The communicator sends the corresponding datagram to the multicast reception terminal Literary information;The protocol massages information includes joining message information, query message information and leaves message information;At least two institutes Stating multicast reception terminal includes the first multicast reception terminal and the second multicast reception terminal;Terminal occurs for the multicast by one the One interface is connected to the communicator;The first multicast reception terminal is connected to the communication by a second interface and filled Put;The second multicast reception terminal is connected to the communicator by one the 3rd interface;The multicast protocol method of testing Comprise the following steps:
    Step 1, the communicator is configured to run multicast protocol;
    Step 2, each multicast reception terminal sends the different protocol massages information to the communicator;Each institute Multicast reception terminal is stated according to the corresponding message information received, judges whether the multicast protocol can be in the communication Normal operation on device;
    In the step 2, it is 225.0.0.1's that the first multicast reception terminal sends group address to the communicator first The information that joins message, is specifically included:
    Step a1, the first multicast reception terminal send the addition that group address is 225.0.0.1 to the communicator Message information;
    Step a2, judge that the first multicast reception terminal judges whether to receive the corresponding data message information;
    If the first multicast reception terminal receives the data message information, step a3 is gone to;
    If the first multicast reception terminal does not receive the data message information, judge that the communicator can not be normal The data message information is issued, with backed off after random;
    Step a3, the second multicast reception terminal sends the predetermined protocol massages information to the communicator, and sentences Whether the multicast reception terminal of breaking receives the corresponding message information;
    The step a3 is specifically included:
    Step b1, the second multicast reception terminal send the addition that group address is 225.0.0.1 to the communicator Message information;
    Step b2, judges whether the second multicast reception terminal receives the data message information;
    If the second multicast reception terminal does not receive the data message information, judge that the communicator can not be normal The data message information is issued, with backed off after random;
    If the second multicast reception terminal receives the data message information, step b3 is gone to;
    Step b3, judges whether the first multicast reception terminal receives the query message information;
    If the first multicast reception terminal receives the query message information, judge the communicator by described group The information that joins message that location is 225.0.0.1 is obscured with the query message information, with backed off after random;
    If the first multicast reception terminal does not receive the query message, step b3 is gone to;
    Step b4, the first multicast reception terminal sends the corresponding protocol massages information to the communicator, and sentences Whether the multicast reception terminal of breaking receives the corresponding message information.
  2. 2. multicast protocol method of testing as claimed in claim 1, it is characterised in that the step b3 is specifically included:
    Step c1, the first multicast reception terminal send the addition that group address is 225.0.0.2 to the communicator Message information;
    Step c2, judges whether the first multicast reception terminal receives the corresponding data message information;
    If the first multicast reception terminal receives the corresponding data message information, step c3 is gone to;
    If the first multicast reception terminal does not receive the corresponding data message information, judge the communicator without Method normally issues the data message information, with backed off after random;
    Step c3, judges whether the second multicast reception terminal receives the corresponding query message information;
    If the second multicast reception terminal does not receive the corresponding query message information, step c4 is gone to;
    If the second multicast reception terminal receives the corresponding query message information, judge the communicator by institute State group address for joining message for 225.0.0.2 with the message that leaves to obscure, with backed off after random;
    Step c4, the second multicast reception terminal sends the corresponding protocol massages information to the communicator, and sentences Whether the second multicast reception terminal of breaking receives the corresponding message information.
  3. 3. multicast protocol method of testing as claimed in claim 2, it is characterised in that the step c4 is specifically included:
    Step d1, the second multicast reception terminal send the addition that group address is 225.0.0.2 to the communicator Message information;
    Step d2, judges whether the second multicast reception terminal receives the corresponding data message information;
    If the second multicast reception terminal receives the data message information, step d3 is gone to;
    If the second multicast reception terminal does not receive the data message information, judge that the communicator can not be normal The data message information is issued, with backed off after random;
    Step d3, the first multicast reception terminal sends the corresponding protocol massages information to the communication equipment, and sentences Whether the first multicast reception terminal of breaking receives the corresponding message information.
  4. 4. multicast protocol method of testing as claimed in claim 3, it is characterised in that the step d3 is specifically included:
    Step e1, it is to be left described in 225.0.0.1 that the first multicast reception terminal sends group address to the communication equipment Message information;
    Step e2, judges whether the first multicast reception terminal receives the corresponding query message information;
    If the first multicast reception terminal does not receive the corresponding query message information, judge the communicator without Method leaves message information described in normally identifying, with backed off after random;
    If the first multicast reception terminal receives the corresponding query message information, step e3 is gone to;
    Step e3, the second multicast reception terminal sends the corresponding protocol massages information to the communicator, and sentences Whether the second multicast reception terminal of breaking receives the corresponding message information.
  5. 5. multicast protocol method of testing as claimed in claim 4, it is characterised in that the step e3 is specifically included:
    Step f1, it is to be left described in 225.0.0.2 that the second multicast reception terminal sends group address to the communicator Message information;
    Step f2, judges whether the second multicast reception terminal receives the corresponding query message information
    If the second multicast reception terminal receives the corresponding query message information, step f3 is gone to;
    If the second multicast reception terminal does not receive the corresponding query message information, judge the communicator without Method leaves message information described in normally identifying, with backed off after random;
    Step f3, judges whether the first multicast reception terminal can continue to play program of the group address for 225.0.0.1;
    If the first multicast reception terminal can not continue to play the program that group address is 225.0.0.1, the communication is judged Device obscures group address for the information that joined message described in 225.0.0.2 with the message information that leaves, with backed off after random;
    If the first multicast reception terminal can continue to play the program that group address is 225.0.0.1, the multicast is judged Agreement normal operation, with backed off after random.
  6. 6. multicast protocol method of testing as claimed in claim 5, it is characterised in that the query message information includes general look into Ask message information and ad hoc inquiry message information;
    The communicator sends the general polling report at least two multicast reception terminals at predetermined intervals Literary information;
    The communicator is sent described logical according to the protocol massages information received to all multicast reception terminals With query message information;
    The communicator is according to the protocol massages information received, to described in the specific multicast reception terminal transmission Ad hoc inquiry message information.
  7. 7. multicast protocol method of testing as claimed in claim 6, it is characterised in that in the step d3, described first Before multicast reception terminal sends the corresponding protocol massages information to the communication equipment, the multicast reception is first determined whether Whether terminal can continue to keep interacting for the message information with the communicator, specifically include:
    Step d31, judges whether the first multicast reception terminal can normally receive the communicator with described default The general polling message that time interval issues;
    If can normally receive, step d32 is gone to;
    If can not normally receive, judge that the first multicast reception terminal can not be kept normally interacting with the communicator, With backed off after random;
    Step d32, judges whether the second multicast reception terminal can normally receive the communicator with described default The general polling message that time interval issues;
    If can normally receive, the step d3 is continued executing with;
    If can not normally receive, judge that the second multicast reception terminal can not be kept normally interacting with the communicator, With backed off after random.
  8. 8. multicast protocol method of testing as claimed in claim 6, it is characterised in that in the step f3, judging described group After broadcasting agreement normal operation, judge whether the multicast reception terminal can continue to keep the message to believe with the communicator The interaction of breath, is specifically included:
    Step f31, judges whether the first multicast reception terminal can normally receive the communicator with described default The group address that time interval issues is the 225.0.0.2 general polling message information;
    If can normally receive, step f32 is gone to;
    If can not normally receive, judge that the first multicast reception terminal can not be kept normally interacting with the communicator, With backed off after random;
    Step f32, judges whether the second multicast reception terminal can normally receive the communicator with described default The group address that time interval issues is the 225.0.0.1 general polling message;
    If can normally receive, the multicast protocol normal operation is judged;With backed off after random;
    If can not normally receive, judge that the second multicast reception terminal can not be kept normally interacting with the communicator, With backed off after random.
  9. 9. the multicast protocol method of testing as described in any one in claim 7 or 8, it is characterised in that when the multicast connects When receipts terminal receives the query message information, judge whether the query message information is the multicast protocol method of testing The step of query message information of middle needs, specifically includes:
    Step A, first determine whether the type of the query message information;
    If the multicast reception terminal receive for the ad hoc inquiry message information, judge the ad hoc inquiry message letter The query message information to be needed in the multicast protocol method of testing is ceased, with backed off after random;
    If the multicast reception terminal receive for the general polling message information, go to step B;
    Step B, the multicast reception terminal sends the corresponding protocol massages information to the communicator again, and judges Whether the corresponding general polling message information is received;
    If the multicast reception terminal still receives the general polling message information, the general polling message letter is judged The query message information to be needed in the multicast protocol method of testing is ceased, with backed off after random;
    If the multicast reception terminal does not receive the general polling message information, the general polling message information is judged It is not the query message information needed in the multicast protocol method of testing, then switches into step C;
    Step C, the general polling message information is abandoned, with backed off after random.
CN201310465231.5A 2013-10-08 2013-10-08 A kind of multicast protocol method of testing Active CN103701706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310465231.5A CN103701706B (en) 2013-10-08 2013-10-08 A kind of multicast protocol method of testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310465231.5A CN103701706B (en) 2013-10-08 2013-10-08 A kind of multicast protocol method of testing

Publications (2)

Publication Number Publication Date
CN103701706A CN103701706A (en) 2014-04-02
CN103701706B true CN103701706B (en) 2017-12-05

Family

ID=50363108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310465231.5A Active CN103701706B (en) 2013-10-08 2013-10-08 A kind of multicast protocol method of testing

Country Status (1)

Country Link
CN (1) CN103701706B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039814B (en) * 2018-07-26 2019-10-25 北京明朝万达科技股份有限公司 A kind of protocol testing method and device
CN109769100A (en) * 2019-01-17 2019-05-17 苏州科达科技股份有限公司 Video conference test method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207539A (en) * 2007-04-10 2008-06-25 中兴通讯股份有限公司 System and method for multicast performance measuring of broadband switch-in equipment
CN101771938A (en) * 2008-12-31 2010-07-07 中兴通讯股份有限公司 Multicast detection device and method
CN102984026A (en) * 2012-11-23 2013-03-20 上海斐讯数据通信技术有限公司 Test method for exchange unit multicast listener protocol snooping discovering function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207539A (en) * 2007-04-10 2008-06-25 中兴通讯股份有限公司 System and method for multicast performance measuring of broadband switch-in equipment
CN101771938A (en) * 2008-12-31 2010-07-07 中兴通讯股份有限公司 Multicast detection device and method
CN102984026A (en) * 2012-11-23 2013-03-20 上海斐讯数据通信技术有限公司 Test method for exchange unit multicast listener protocol snooping discovering function

Also Published As

Publication number Publication date
CN103701706A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
US8614955B2 (en) Misdirected packet detection apparatus and method
CN103916275A (en) BFD detection device and method
CN107135216B (en) Method for enhancing streaming media transmission in weak network environment
CN106656784A (en) Data stream propagation system and method for block chain network
CN106465159A (en) MBMS bearer fault management
CN101605103A (en) A kind of method of static forwarding multicast data and device
CN102594672A (en) Method and system applicable to high-quality internet communication in low-reliability network environment
CN107635254A (en) A kind of data transmission method and device
CN102281148B (en) Method for establishing multicast distribution tree in mode of inter-virtual private network (VPN), equipment and system thereof
CN107181605A (en) Message detecting method and system, contents extraction device, flow matches device
CN101035136B (en) Multicast testing device running in the multi-network card computer and its using method
CN109981323A (en) A kind of method and the network equipment of detection data Link-Layer Multicast path status
CN103701706B (en) A kind of multicast protocol method of testing
JP4809855B2 (en) IP multicast communication monitoring method and system
WO2016161716A1 (en) Multicast data stream monitoring method and device, and multicast forwarding device
CN105828218B (en) A kind of method, apparatus and system detecting multicast data flow transmission quality
CN105049300B (en) A kind of method and device of detection NAT network types
CN101848113B (en) Network device and method for automatically detecting uplink bandwidth of network
CN106878258A (en) One kind attacks localization method and device
CN101827037A (en) Multicast data stream sending method, device and two-layer switching equipment
CN107846301B (en) End-to-end service test system and method
CN107231303A (en) Data flow transmission method and device
CN105025028B (en) The black holes IP based on flow analysis find method
CN106452963A (en) Network path sensing method and system
WO2009019201A3 (en) System and method for control signaling in mbms networks

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201116

Address after: 221700 4-1-110-shop, Nanyuan new town, Fengxian County, Xuzhou City, Jiangsu Province

Patentee after: Song Yixiao

Address before: 201616 Shanghai city Songjiang District Guangfulin road 4855 Lane 20, No. 90

Patentee before: Phicomm (Shanghai) Co.,Ltd.