CN100527680C - Method and device for automatically identifying multicast agent device interface types - Google Patents

Method and device for automatically identifying multicast agent device interface types Download PDF

Info

Publication number
CN100527680C
CN100527680C CNB2006101455847A CN200610145584A CN100527680C CN 100527680 C CN100527680 C CN 100527680C CN B2006101455847 A CNB2006101455847 A CN B2006101455847A CN 200610145584 A CN200610145584 A CN 200610145584A CN 100527680 C CN100527680 C CN 100527680C
Authority
CN
China
Prior art keywords
interface
upstream
multicast
multicast agent
message
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.)
Expired - Fee Related
Application number
CNB2006101455847A
Other languages
Chinese (zh)
Other versions
CN1988464A (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 CNB2006101455847A priority Critical patent/CN100527680C/en
Publication of CN1988464A publication Critical patent/CN1988464A/en
Application granted granted Critical
Publication of CN100527680C publication Critical patent/CN100527680C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This invention provides a method and a device for identifying interface kind of multicast proxy devices automatically, in which, the method includes: the interface of a multicast proxy device rceives information, the interface got the information is taken as the up one and others are taken as the down interfaces, said interface is not taken as the up one any more or it is continued to be the up one when it does not receive information in set time. This invention also provides a device for automatically identifying interface kind of multicast proxy device including a receiving module and an identifying module.

Description

Automatically discern the method and apparatus of multicast agent device interface types
Technical field
The present invention relates to field of network communication, particularly a kind of method and apparatus of automatic identification multicast agent device interface types.
Background technology
Development along with network and data service, many new broadband application business have appearred, as VoIP (Voice over InternetProtocol, the IP network voice), IPTV (Internet Protocol Television, IPTV), video conference, VOD (Video On Demand, video request program) and multimedia remote education etc., these application have brought problems such as the rapid consumption of bandwidth and network congestion.In order to address these problems, people have proposed IP multicasting technology scheme.Compare other technologies, the IP multicasting technology has unique network backbone bandwidth, does not need characteristics such as growth with number of users is directly proportional, and making it become telecom operators does not increase the backbone network cost, carries out the one preferred technique of new business.
Multicast (Multicast) is that point is delivered to multiple spot to multiple spot delivery or multiple spot for broadcasting (Broadcast) and clean culture (Unicast).The basic thought of multicast is the copy that a plurality of recipients can receive the identical data that is sent in the same multicast source simultaneously.As shown in Figure 1, the data that recipient 1 can receive same server simultaneously and sent to recipient 4, Here it is multicast.
Multicast protocol is divided into agreement between main frame and the router, i.e. IGMP (Internet GroupManagement Protocol, IGMP) according to sphere of action; And agreement between router and the router, mainly be various Routing Protocols.In addition, in order effectively to suppress the diffusion in the double layer network of multicast packet between main frame and router, multicast listener agreement (IGMP Snooping) and multicast agent agreement Layer 2 Multicast agreements such as (IGMP Proxy) have been introduced.By IGMP and Layer 2 Multicast agreement, make user's main frame realize that the user adds or leave the function of multicast group by communicating between IGMP protocol massages and the upper strata multicast router, and router is to functions such as the inquiry of multicast group and maintenances.
In general, the multicast agent equipment of using the multicast agency agreement both can be Layer 2 switch, also can be low end router.The multicast agent agreement is arranged to two types with the interface (normally device port) of multicast agent equipment: upstream Interface and downstream interface.Upstream Interface is called host interface again, is meant the port that links to each other with router on the multicast agent equipment, and multicast agent equipment moves the igmp host function on upstream Interface.Downstream interface is called router interface again, is meant the port that links to each other with main frame on the multicast agent equipment, and multicast agent equipment moves the IGMP router feature on downstream interface.
When the router that links to each other with upstream Interface need inquire about and safeguard that the multicast member of its second line of a couplet concerns, can send the igmp querying message to multicast agent equipment, after multicast agent equipment receives this igmp querying message, send on the continuous router by of IGMP member's report of multicast agent agreement with all multicast group.Upstream Interface not only can be transmitted the multicast packet that receives and be arrived the router that links to each other according to the multicast member database; And when certain host port adds or leaves certain multicast group, can be according to the variation of multicast member database, send initiatively that main frame adds or the protocol massages that leaves multicast to continuous router.
Multicast agent equipment carries out registration, inquiry and the deletion work of multicast member on downstream interface, safeguard the multicast member database; Receive member's report, set up or revise the multicast member table; Initiatively send query message, whether the inquiry main frame leaves the group that has added; Multicast member database according to registration is transmitted the multicast packet that receives to uplink and downlink.
The multicast agent agreement is applied in the simple tree topology network, as shown in Figure 2 usually.Under this scene, need the interface of manual configuration multicast agent equipment, specify upstream Interface and downstream interface.P1 port as designated multicast agent equipment A is a upstream Interface, and its points to the root node of tree, is linked to multicast router on promptly; P2 port and the p3 port of designated multicast agent equipment A are downstream interface, and they deviate from root node, second line of a couplet multicast agent equipment B and C.Multicast agent equipment B and C are by upstream Interface first line of a couplet multicast agent device A, by downstream interface second line of a couplet subscriber's main station.
Existing multicast agent agreement is done following processing for the query message of sending as the multicast router of requestor: at first judge and receive that the interface type of query message is upstream Interface or downstream interface, if upstream Interface, then retrieve the effective multicast group tabulation on the multicast agent equipment, and at each multicast group requestor transmission upstream group membership report message; If downstream interface, then carry out the requestor election, and judge whether this multicast agent equipment is elected as requestor, if be elected as requestor, then on multicast agent equipment, move the requestor function, if be not elected as requestor, then on multicast agent equipment, move the non-querier function.
When existing multicast agent protocol application in ring topology network the time, need on ring topology network, start Spanning-Tree Protocol, ring topology from becoming a tree topology in logic, even network is an annular so physically, can block certain physical port fall by Spanning-Tree Protocol, message no longer transmits and receive data on this port.Therefore message can ceaselessly not transmit on ring, thereby has avoided the situation of network storm to take place.As shown in Figure 3, wherein the upstream Interface p1 of multicast agent equipment B and C is root port, promptly be the sensing root node according to the final port status that forms of Spanning-Tree Protocol, the downstream interface p2 of multicast agent equipment C is a port blocked, promptly this port has been generated tree protocol and has blocked, no longer receiving data packets.
Under the situation that causes topological structure thereupon to change because of network link change or device configuration change, need revise the upstream Interface configuration of multicast agent agreement simultaneously, multicast agent equipment is connected all the time to the root node of setting.As shown in Figure 4, because the netting twine that the p1 port of multicast agent equipment C is connected has broken, this port no longer links to each other with router, so receiving data packets again.In order to make the multicast agent equipment C still can the receiving multicast data message, and the report multicast member concern that message to router, need change former upstream Interface p1 into downstream interface, and former downstream interface p2 changes upstream Interface into.
The shortcoming of existing multicast agent agreement is as follows:
1, the interface type of multicast agent equipment can't be discerned automatically, needs manual configuration, and functional limitation is bigger.And after the interface change that is connected with upstream router, the interface type of multicast agent equipment also can't be discerned automatically.
2, interface type can't change automatically with the change of network topology structure, need the upstream Interface configuration of manual change multicast agent agreement, not only increase network manager's workload, cost of equipment maintenance is raise, but also will bear the risk that the change configuration may bring.
3, before the change configuration, because the multicast agent agreement can't normally be moved, multicast service can interrupt.This moment, multicast agent equipment can not receive query message, therefore can not report response as the group membership yet, not only caused the upstream plant of multicast agent agreement can't know in time that the group membership concerns, but also can influence the normal receive multicast packet of user.
Summary of the invention
Problem such as can't discern automatically for the interface type that solves multicast agent equipment in the prior art, the invention provides a kind of method of automatic identification multicast agent device interface types, specifically comprise:
Steps A: the interface of multicast agent equipment receives and can will be chosen as the message of upstream Interface when front port;
Step B: the interface that described multicast agent equipment will receive described message is as upstream Interface, with other interfaces of not receiving described message as downstream interface;
Step C: if described upstream Interface is not also received described message once more in official hour, then no longer with this interface as upstream Interface; Otherwise continue this interface as upstream Interface.
The present invention also provides a kind of device of automatic identification multicast agent device interface types, and described device specifically comprises:
Receiver module is used for receiving and can will being chosen as the message of upstream Interface when front port by the interface of multicast agent equipment;
Identification module, the interface that is used for receiving described message be as upstream Interface, with other interfaces of not receiving described message as downstream interface; In official hour, also do not receive described message once more if also be used for described upstream Interface, then no longer with this interface as upstream Interface; Otherwise continue this interface as upstream Interface.
Beneficial effect of the present invention mainly shows:
1, according to the notice received with the interface of appointment as upstream Interface, other interfaces have been realized the automatic identification of multicast agent device interface types as downstream interface, need not the manual configuration downlink and uplink interfaces.
2, the selection function by in the multicast agent agreement, increasing the static manual configuration of interface type and discerning automatically, the flexibility that has increased equipment.
3, change when interface that router connected, or network topology structure not only need not change the interface configuration of multicast agent agreement when changing, and multicast service and protocol function recover enough rapidly.
Description of drawings
Fig. 1 is existing multicast application scene schematic diagram;
Fig. 2 is that existing multicast agent protocol application is in the schematic diagram of tree-shaped topology network;
Fig. 3 is that existing multicast agent protocol application is in the schematic diagram of ring topology network;
Fig. 4 is the schematic diagram that ring topology changes back change multicast agent protocol configuration;
Fig. 5 is the flow chart that the present invention discerns the method embodiment of multicast agent device interface types automatically;
Fig. 6 is the structure chart that the present invention discerns the device embodiment of multicast agent device interface types automatically.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Embodiment one
Referring to Fig. 5, the invention provides a kind of method of automatic identification multicast agent device interface types, at first carry out following steps:
Step 101: increase by a selection function in the multicast agent agreement, comprise two options: one is the mode that adopts static manual configuration, specifies upstream Interface and downstream interface; Another is to adopt the automatic identification mode of interface type, and the user can select wherein any as required; The present embodiment acquiescence has adopted the automatic identification mode of interface type on the equipment that starts the multicast agent agreement;
Carry out following steps then:
Step 102: an interface of multicast agent equipment receives the igmp querying message (comprising general polling message and group-specific query message) that multicast router is sent, it is router that multicast agent equipment can identify the equipment that this interface connects by the igmp querying message, and promptly the igmp querying message is sent by router;
Step 103: judge whether to have started the automatic identification mode of interface type on multicast agent equipment, if start, then execution in step 105; Otherwise execution in step 104;
Step 104: the mode according to static manual configuration interface type in the prior art is handled, and finishes then;
Step 105: the interface that will receive the igmp querying message is identified as upstream Interface, operation igmp host function on this interface; Other do not receive the interface of igmp querying message, then as downstream interface, and operation IGMP router feature on downstream interface;
Step 106: on upstream Interface, start an ageing timer, as 5 minutes by the default time;
Step 107: judge whether that this upstream Interface is not also received any igmp querying message again in the default time, if, think that then this upstream Interface lost efficacy, then no longer with this interface as upstream Interface; Otherwise continue this interface as upstream Interface.
Igmp querying message in the present embodiment can be by adopting other types but can be shown that the equipment that connects when front port is that the message of router is replaced, for example, PIM (Protocol Independent Multicast, the independent multicast agreement) Hello (shaking hands) message, MOSPF (Multicast Extensions to Open Shortest Path First, the open shortest-path first algorithm of multicast expansion) Hello (shaking hands) message etc.
In the present embodiment receiving the mode of igmp querying message as the upstream Interface basis of characterization, can be by being that the mode of basis of characterization is replaced as the message of its upstream Interface to receive interface that other agreements of multicast agent equipment are selected with uniqueness.For example, when the multicast agent protocol application was in ring topology network, multicast agent equipment can be according to the message of receiving, the root interface (root interface is unique) that Spanning-Tree Protocol is selected is as its upstream Interface.
When multicast agent equipment connects a plurality of multicast router simultaneously, might have a plurality of interfaces and receive the message that router is sent simultaneously, multicast agent equipment all is identified as upstream Interface with these interfaces of receiving message as stated above, and then will there be a plurality of upstream Interfaces in multicast agent equipment.In order to identify a upstream Interface from these upstream Interfaces, present embodiment also needs to increase following step:
In the multicast agent agreement, set up the upstream Interface tabulation, comprise all upstream Interfaces that identify according to the message of receiving in the upstream Interface tabulation; Each upstream Interface all is transmitted to the message of receiving other all upstream Interfaces then, on the all-router that to be the transparent transmission message connected to multicast agent equipment, make these routers elect a requestor voluntarily, thereby guarantee to have only a router to send message as main requestor, the upstream Interface that identifies according to this message also has only one.For example, in the upstream Interface tabulation 5 upstream Interfaces are arranged, then wherein each upstream Interface except will to downstream interface E-Packets, also E-Packeting to other 4 upstream Interfaces.
For fear of the network bandwidth is taken in a large number, in said process, downstream interface can suspend and initiatively sends the multicast inquiry message, remains up to upstream Interface and recovers when having only one again.
When topological structure changes when causing that the interface enable state changes, can find intelligently and change interface type by said method multicast agent agreement, adapt to new topological structure.
When multicast agent equipment does not connect any multicast router, when perhaps the total interface of multicast agent equipment all lost efficacy, do not have any interface and receive message, it is unidentified any upstream Interface that goes out, then can adopt the upstream Interface of static configuration or other default interface (producer sets in advance) transition tactics as upstream Interface on equipment, to reduce the time that the multicast forwarding list item rebulids, ensure the fast quick-recovery of multicast service of downstream interface, promptly downstream interface can be given the user according to the normal forward multicast packets of multicast forward table.Further, also can make the timer burin-in process to this transition upstream Interface.
Embodiment two
Referring to Fig. 6, the present invention also provides a kind of device of automatic identification multicast agent device interface types, and device specifically comprises:
Receiver module is used for receiving and can will working as the message of front port as upstream Interface by the interface of multicast agent equipment;
Identification module, the interface that is used for receiving message be as upstream Interface, with other interfaces of not receiving message as downstream interface; In official hour, also do not receive message once more if also be used for upstream Interface, then no longer with this interface as upstream Interface; Otherwise continue this interface as upstream Interface.
When multicast agent equipment connected a plurality of multicast router, said apparatus also comprised:
Many upstream Interfaces processing module is used for when multicast agent equipment connects a plurality of multicast router, sets up the upstream Interface tabulation in the multicast agent agreement, and the upstream Interface tabulation comprises all upstream Interfaces that identify according to the message of receiving; And make each upstream Interface all with the forwards received to other all upstream Interfaces.
When multicast agent equipment does not connect multicast router, or total interface was when all losing efficacy, and said apparatus also comprises:
The abnormality processing module is used for not connecting multicast router when multicast agent equipment, or total interface was when all losing efficacy, with the interface of the upstream Interface of prior static configuration or acquiescence as upstream Interface.
Above-described embodiment, the present invention embodiment several more preferably just, the common variation that those skilled in the art carries out in the technical solution of the present invention scope and replacing all should be included in protection scope of the present invention.

Claims (10)

1. automatic method of identification multicast agent device interface types is characterized in that described method specifically comprises:
Steps A: the interface of multicast agent equipment receives and can will be chosen as the message of upstream Interface when front port;
Step B: the interface that described multicast agent equipment will receive described message is as upstream Interface, with other interfaces of not receiving described message as downstream interface;
Step C: if described upstream Interface is not also received described message once more in official hour, then no longer with this interface as upstream Interface; Otherwise continue this interface as upstream Interface.
2. the method for automatic identification multicast agent device interface types according to claim 1 is characterized in that, can identify the equipment that interface connected that receives described message by the described multicast agent equipment of described message is router.
3. the method for automatic identification multicast agent device interface types according to claim 2 is characterized in that, described message comprises igmp querying message, PIM handshake message and MOSPF handshake message.
4. the method for automatic identification multicast agent device interface types according to claim 2 is characterized in that, when described multicast agent equipment connected a plurality of multicast router, described method also comprised:
Set up the upstream Interface tabulation in the multicast agent agreement, described upstream Interface tabulation comprises all upstream Interfaces that identify according to the message of receiving; Each upstream Interface all with the forwards received to other all upstream Interfaces.
5. the method for automatic identification multicast agent device interface types according to claim 1 is characterized in that, described message is specially the interface with uniqueness that other agreements of described multicast agent equipment are selected as upstream Interface.
6. the method for automatic identification multicast agent device interface types according to claim 5 is characterized in that, the interface of described uniqueness is the root interface that Spanning-Tree Protocol is selected.
7. the method for automatic identification multicast agent device interface types according to claim 1, it is characterized in that, when described multicast agent equipment does not connect multicast router, or total interface was when all losing efficacy, with the interface of the upstream Interface of prior static configuration or acquiescence as upstream Interface.
8. automatic device of identification multicast agent device interface types is characterized in that described device specifically comprises:
Receiver module is used for receiving and can will being chosen as the message of upstream Interface when front port by the interface of multicast agent equipment;
Identification module, the interface that is used for receiving described message be as upstream Interface, with other interfaces of not receiving described message as downstream interface; In official hour, also do not receive described message once more if also be used for described upstream Interface, then no longer with this interface as upstream Interface; Otherwise continue this interface as upstream Interface.
9. the device of automatic identification multicast agent device interface types according to claim 8 is characterized in that, described device also comprises:
Many upstream Interfaces processing module is used for when described multicast agent equipment connects a plurality of multicast router, sets up the upstream Interface tabulation in the multicast agent agreement, and described upstream Interface tabulation comprises all upstream Interfaces that identify according to the message of receiving; And make each upstream Interface all with the forwards received to other all upstream Interfaces.
10. the device of automatic identification multicast agent device interface types according to claim 8 is characterized in that, described device also comprises:
The abnormality processing module is used for not connecting multicast router when described multicast agent equipment, or total interface was when all losing efficacy, with the interface of the upstream Interface of prior static configuration or acquiescence as upstream Interface.
CNB2006101455847A 2006-11-23 2006-11-23 Method and device for automatically identifying multicast agent device interface types Expired - Fee Related CN100527680C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101455847A CN100527680C (en) 2006-11-23 2006-11-23 Method and device for automatically identifying multicast agent device interface types

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101455847A CN100527680C (en) 2006-11-23 2006-11-23 Method and device for automatically identifying multicast agent device interface types

Publications (2)

Publication Number Publication Date
CN1988464A CN1988464A (en) 2007-06-27
CN100527680C true CN100527680C (en) 2009-08-12

Family

ID=38185106

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101455847A Expired - Fee Related CN100527680C (en) 2006-11-23 2006-11-23 Method and device for automatically identifying multicast agent device interface types

Country Status (1)

Country Link
CN (1) CN100527680C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577659B (en) * 2008-05-09 2012-12-12 华为技术有限公司 Gateway and port selecting method thereof
CN102223286A (en) * 2010-04-16 2011-10-19 华为技术有限公司 Method, exchange equipment and system for realizing multicast forwarding
CN102938737B (en) * 2012-11-22 2016-09-14 华为技术有限公司 Two layers of looped network Proxy Method and equipment
CN103346951B (en) * 2013-07-29 2017-04-19 迈普通信技术股份有限公司 Method and device for establishing agent member database
CN103957164B (en) * 2014-04-29 2018-08-28 新华三技术有限公司 A kind of maintaining method and equipment of second-layer multicast forwarding list item
CN113985248B (en) * 2021-10-26 2023-07-11 西安微电子技术研究所 High-temperature dynamic aging system and method for PCIe (peripheral component interconnect express) switching circuit

Also Published As

Publication number Publication date
CN1988464A (en) 2007-06-27

Similar Documents

Publication Publication Date Title
CN101420362B (en) Method, system and router for multicast flow switching
US7590749B2 (en) Method and apparatus for multicast management of user interface in a network access device
JP4799008B2 (en) Method for transmitting a multipoint stream in a local area network and connection device for implementing the method
US7593402B2 (en) Method of multicast source filtering
US8681668B2 (en) Methods and apparatus for transmitting multicast traffic in a data network
CN101160917A (en) Method for implementing multicast based on switchover between active board and standby board in access device
KR101604810B1 (en) Methods for obtaining terminal multicast status
CN100527680C (en) Method and device for automatically identifying multicast agent device interface types
CN101291240B (en) Multicast flow transmission method and system
JP2006101471A (en) Multicast redundant path router, multicast redundant method
CN100477635C (en) Transmission method and edge apparatus for multicast between fields
CN102598586A (en) Method and devices for dealing multicast
CN101674199A (en) Method for realizing switching during network fault and finders
WO2008031342A1 (en) A method, system and layer 2 equipment for implementing the fast convergence of multicast forwarding path in layer 2
CN100563206C (en) A kind of multicast channel control method and device
CN1852080B (en) Method for treating abnormal multicast business
CN101345678B (en) Multicast communication method, system and multicast communication equipment
CN101304359B (en) Method and apparatus for RRPP looped network link recuperation
CN101060467B (en) A multicast user terminal powered-off fault processing method and system
CN101145922B (en) A system and method for realizing reliable exit of multi-cast terminal
CN101610200A (en) Multicast path by changing method and device
CN101094132B (en) Process method for restarting terminal device of multicast service
CN101827037A (en) Multicast data stream sending method, device and two-layer switching equipment
CN100542142C (en) Change the method and apparatus of three-layer network appliance Interface status
JP2004112724A (en) Switch, network using it, and multicast transmission method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090812

Termination date: 20211123