CN1744572A - Switchnig equipment and method for controlling multicasting data forwarding - Google Patents

Switchnig equipment and method for controlling multicasting data forwarding Download PDF

Info

Publication number
CN1744572A
CN1744572A CNA2005100936173A CN200510093617A CN1744572A CN 1744572 A CN1744572 A CN 1744572A CN A2005100936173 A CNA2005100936173 A CN A2005100936173A CN 200510093617 A CN200510093617 A CN 200510093617A CN 1744572 A CN1744572 A CN 1744572A
Authority
CN
China
Prior art keywords
multicast
address
router
port
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2005100936173A
Other languages
Chinese (zh)
Other versions
CN100463447C (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou Huawei 3Com 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 Hangzhou Huawei 3Com Technology Co Ltd filed Critical Hangzhou Huawei 3Com Technology Co Ltd
Priority to CNB2005100936173A priority Critical patent/CN100463447C/en
Publication of CN1744572A publication Critical patent/CN1744572A/en
Application granted granted Critical
Publication of CN100463447C publication Critical patent/CN100463447C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The device includes modules: module for recording IP address in use for obtaining and storing source IP address of network device of reception member in multicast group; module for controlling MAC list item of multicast in use for generating and down sending MAC list item of multicast based on stored IP address in order to control multicast message to forward to appointed device. The method includes steps: (1) monitoring message in multicast protocol received on the port of exchange equipment and transmitted from network device of multicast; (2) recoding ID information of network device of multicast included in message of multicast protocol; (3) based on prearranged rules, filtering out ID information to obtain appointed network device of multicast; (4) building multicast data forwarding list to control multicast data message to forward to appointed device. The invention controls multicast data forwarding and avoids unnecessary impulsion on network device from multicast stream.

Description

The switching equipment and the method for control transmitting multicast data
Technical field
The present invention relates to technical field of multicast, relate in particular to a kind of switching equipment and method of controlling transmitting multicast data.
Background technology
The IP multicast, promptly IP main frame in source sends multicast IP messages, and the purpose IP address of this message is a D class address, or claims group address, that is to say that the main frame that only joins this group could receive this message.
The multicast source is meant a side that connects multicast source.The multicast router of connection multicast source is being born first redirect of multicast service and is being sent out task, if this router is out of order, whole multicast service will be paralysed.Therefore during networking, generally to connect multicast source and some multicast routers, to increase the robustness of network by Layer 2 switch.
In these multicast routers that are connected with Layer 2 switch, have only the router of one of them appointment, generally be that multicast router that connects the interface IP address maximum of multicast server is just really carried out the function that multicast service is transmitted.Though other router is also receiving multicast data flow, do not bear the task of transmitting these multicast data flows, only play backup.Yet, in the prior art, because the Layer 2 switch of multicast data forwarding can not better controlled and its multicast packet that need transmit of screening, therefore these backup routers tend to be subjected to the impact of multicast data flow, so constantly abandon action, cause the consumption and the waste of Internet resources from the impingement flow of multicast server.
This is because existing Layer 2 switch adopts IGMP-SNOOPING agreement (following abbreviation IGSP agreement) usually to the processing method of multicast data flow.Use the IGSP agreement, switch is monitored IGMP agreement (the INTERNET GROUP MANAGEMENT PROTOCOL that main frame sends, Internet Group Management Protocol) IGMP, PIM (the ProtocolIndependent Multicast that sends of message and multicast router, independent multicast) multicast routing protocol message such as, generate the multicast MAC address entries of particular group, thus the forwarding of control group business stream in switch.Described multicast MAC (Media Access Control, media interviews control) list item is meant that switch is used for writing down the list item of Ether frame multicast mac address and outbound port tabulation corresponding relation, when group business stream when two layers are transmitted, elder generation is according to the purpose MAC of Business Stream, multicast MAC address entries on the coupling switch, to find the corresponding output port tabulation, carry out duplicating and transmitting of one-to-many.
The switch that adopts the IGSP agreement is by monitoring the IGMP member relation report message that main frame sends, and issue the multicast MAC address entries of corresponding group from multicast routing protocol messages such as the IGMP general polling message of multicast router and PIM, thereby the control multicast data flow is in the forwarding behavior of switch inside.Hence one can see that, may be summarized to be for the processing method to multicast data flow in the two-layer switching equipment of prior art: generate the multicast MAC address entries, this multicast MAC address entries comprises its all member ports and all-router port, these router ports comprise: the IGMP-SNOOPING switch will receive that the port of IGMP general polling message or PIM protocol massages is considered as router port, because this two classes message is all sent by multicast router, so what can confirm that these ports connect is multicast router; Described member port: the IGMP-SNOOPING switch will receive that the port of IGMP member relation report is considered as the member port of corresponding multicast group, because the report of IGMP member relation is sent by main frame, what these ports connected is the main frame of wishing to receive some multicast data flows; Switch is monitored IGMP general polling message and the PIM protocol massages from router, thereby determines router port; By the IGMP member relation report message of monitoring from main frame, thus the member port of definite particular multicast group; Switch one listens to the IGMP member relation report from main frame, just issues corresponding multicast MAC address entries.When multicast data flow enters switch, mated this multicast MAC address entries, will find the corresponding port collection to transmit.
As shown in Figure 1, switch has started the IGMP-SNOOPING agreement, and router-A has started PIM agreement (multicast router moves the IGMP agreement generally speaking automatically, so also can send IGMP general polling message).When switch was received from the IGMP general polling message of router-A or PIM protocol massages, it was router port that corresponding connectivity port then is set; This moment, host A was wished the multicast data flow that the receiving group source sends, and for example purpose IP address is 224.1.1.1, and it will send the IGMP member relation report of corresponding group; Switch one is received the report of IGMP member relation, just issues corresponding M AC list item 01005e010101, and its corresponding port collection comprises: the port and the port that is connected host A that connect router-A.Like this, switch will only be transmitted to router-A and host A with multicast data flow, and can not be transmitted to the host B that does not send request, makes host B avoid impacting.
For the network of multicast source, switch is connecting multicast server and multicast router.Multicast server does not generally require the IGMP member relation message that sends corresponding group, like this, if following two kinds of situations then may appear in the IGSP agreement of switch operation standard.
1, multicast server does not send the IGMP member relation report of corresponding multicast group, and then switch does not issue the multicast MAC address entries; So multicast data flow is forwarded to all available ports, causes multicast data flow to impact the backup multicast router.
2, multicast server sends the IGMP member relation report of corresponding multicast group, switch generates the multicast MAC address entries, this multicast MAC address entries comprises the port that connects multicast server and all multicast router ports, so multicast data flow is forwarded to the port of connection multicast server and all multicast router ports, causes multicast data flow to impact the backup multicast router.
So, adopting the IGSP agreement, the backup multicast router all can be subjected to the meaningless impact of multicast data flow in any case.
CISCO has proposed a RGMP (Router-port Group ManagementProtocol, router port igmpinternet) agreement in RFC3488, this agreement is the proprietary protocol of CISCO, needs multicast router and switch to support simultaneously.Multicast router is responsible for sending the RGMP protocol massages, and switch only is responsible for monitoring the RGMP protocol massages.Switch is according to the RGMP protocol massages that listens to, and it is concentrated just can to know that the port that needs to connect this multicast router adds multicast MAC corresponding port to.For example, switch is received the RGMP adding group message from multicast router, just illustrates that this router wishes to receive certain multicast data flow, and the port that then will connect this router joins the port of corresponding multicast MAC address entries; Otherwise, receive that the RGMP of multicast router leaves the group message, illustrate that this router no longer wishes to receive certain multicast data flow, then with of the port deletion of corresponding port from corresponding multicast MAC address entries.So just can control multicast data flow and transmit, and avoid transmitting toward the multicast router that does not need multicast data flow toward the multicast router that needs.
The RGMP of CISCO can control multicast data flow and not impact the backup multicast router, but also exists following problem:
1, this agreement is the proprietary protocol of CISCO, and other manufacturers can't freely use;
2, the support of this protocol requirement multicast router is sold separately so work as switch, and is when running into the multicast router of not supporting the RGMP agreement, just lack scope for their abilities;
Do not support the same port back of switch to have plural multicast router when 3, the characteristics of agreement own have determined networking, because when a multicast router that connects same port sends RGMP adding group message, and another RGMP that sends same group address leaves when organizing message, just can't handle.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of two-layer switching equipment and method of controlling transmitting multicast data, and the same router port that the feasible multicast packet of using the multicast source network of this Apparatus and method for can not impact on backup multicast router and the two-layer switching equipment can connect a plurality of multicast routers.
In order to address the above problem, the invention provides a kind of switching equipment of controlling transmitting multicast data, be used to connect multicast server and multicast group and receive member's network equipment, described switching equipment is supported internet group management protocol listening, comprising:
IP address logging modle is used to obtain multicast group and receives member's network equipment source IP address and storage;
Multicast MAC address entries control module is used for described multicast group according to storage and receives member's network equipment source IP address and generate and issue the multicast MAC address entries and flow to the designated multicast winding with the control multicast message and be subjected to member's network equipment.
In addition, described equipment also comprises the mapping relations maintenance module, is used for setting up between described device forwards port and multicast group reception member network equipment source IP address and safeguarding mapping relations.
Wherein, described multicast MAC address entries control module further comprises
Multicast group receives member's network equipment source IP address and selects module, is used for selecting the multicast member source IP address that needs use according to predetermined rule at the multicast member source IP address of storage;
Multicast MAC address entries sets of ports generates control module, is used for receiving member's network equipment source IP address corresponding equipment according to the described multicast group of selecting and transmits port and generate the sets of ports of corresponding multicast MAC address entries and issue.
Wherein, described pre-defined rule is an IP address maximum.
Another object of the present invention provides a kind of switching method of controlling transmitting multicast data, be applied on the switching equipment that connects the multicast server and the multicast group reception member network equipment, described equipment is supported the standard the Internet group management protocol listening, and described method comprises the following steps:
1) obtains and store described multicast group and receive member's network equipment source IP address;
2) set up, safeguard the mapping relations between described network equipment source IP address and the forwarding port;
3) the described multicast group in storage receives in member's network equipment source IP address according to pre-defined rule screening IP address;
4) according to the sets of ports in the switching equipment port generation multicast MAC address entries of described screening IP address correspondence in mapping relations;
5) described equipment is according to the sets of ports multicast data forwarding in the MAC address entries.
Wherein, multicast group receives member's network equipment and can specifically comprise the steps: in the step 1) for supporting the multicast router of multicast routing protocol
11) judge whether the protocol massages that interface is received is the general polling message or the independent multicast protocol massages of Internet Group Management Protocol;
12) if then extract source IP address and storage in the protocol massages.
Wherein, step 2) in, described mapping relations are to include the port numbers that connects multicast router and the router port list of multicast router source IP address.
Wherein, step 2) in, the described method of setting up the mapping relations between described multicast router source IP address and the forwarding port is:
21) if the port numbers that receives the protocol massages port in router port list, and its pairing multicast router source IP address also exists, then upgrades the timestamp of this multicast router source IP address list item;
22) if described port numbers in router port list, and its pairing multicast router source IP address does not exist, and then adds this multicast router source IP address and timestamp is set;
23) connect the multicast router port port numbers if described port numbers not in router port list, is then added earlier, add its pairing multicast router source IP address again and timestamp is set.
The method of the mapping relations between described network equipment source IP address of the maintenance wherein, step 2) and the forwarding port is:
If described multicast router source IP address list item ageing time to or multicast router port under behind the electricity, then with this multicast router source IP address deletion;
If the tabulation of the multicast router source IP address of the deleted pairing multicast router port correspondence of router source IP address list item is for empty, then this multicast router port number is deleted from router port list.
Wherein, the pre-defined rule described in the step 3) is an IP address maximum, after the deletion of multicast router source IP address, also comprises the steps:
Judge whether maximum IP address corresponding port number changes;
If maximum router source IP address changes, upgrade the sets of ports in the multicast MAC address entries.
Another purpose of the present invention provides a kind of method of controlling transmitting multicast data, is applied on the switching equipment forwarding to multicast network equipment of the multicast data message that sends in order to the control multicast source, may further comprise the steps:
A) the multicast protocol message of the multicast network equipment transmission of receiving on the monitoring switching equipment port;
B) write down the identity information of the multicast network equipment that comprises in those multicast protocol messages;
C) according to pre-defined rule screening identity information, obtain the designated multicast network equipment;
D) set up transmitting multicast data table control multicast data message and be forwarded to this designated multicast network equipment.
Wherein, described identity information is the IP address, and screening rule is that the IP address is maximum or minimum.
Wherein, D) step is specially: only will receive that in transmitting the port that the designated multicast network equipment sends the multicast protocol message transmits port as multicast data message.
Compared with prior art, beneficial effect of the present invention is:
At first, owing to adopted record multicast router source IP address, and the pairing switching equipment of maximum router source IP address connected the port numbers of router as the pairing unique router side slogan of multicast MAC address entries, that is to say the only corresponding Designated Router port numbers of multicast MAC address entries that open-birth becomes, not corresponding backup router port numbers.Switch is forwarded to the pairing router port of multicast MAC address entries with multicast data flow, be that multicast data flow only is forwarded to the pairing router port of maximum router source IP address, it is Designated Router, and be not forwarded to other backup router, thereby backup router can not be subjected to the impact of multicast data flow, has avoided the unnecessary consumption of backup router resource.
Secondly, with respect to other ways, the RGMP agreement of CISCO for example is by finding out the pairing router side slogan of maximum router source IP address, which port the present invention can judge connects Designated Router, thereby the present invention supports same router port to connect a plurality of multicast routers.
In addition, the present invention is that the processing capacity of switch is improved to the network equipment with two layers of function of exchange just, does not relate to the realization of multicast router, therefore can well utilize existing Internet resources to transform, and has reduced equipment cost.
At last, Apparatus and method for provided by the invention can with the IGMP-SNOOPING compatibility, can not cause any problem of docking with existing network, reduced the workload of network upgrade.
Description of drawings
Fig. 1 is the network diagram that method operation provided by the present invention is relied on;
Fig. 2 is the process chart of the switching method of control transmitting multicast data provided by the present invention;
Fig. 3 is a flow chart of setting up the router port list method in the specific embodiment of the present invention;
Embodiment
Further describe the specific embodiment of the present invention below in conjunction with accompanying drawing.
In this manual, will use as giving a definition:
The IP multicast: source IP main frame sends multicast IP messages, and the purpose IP address of this message is a D class address, or claims group address, that is to say that the main frame that only joins this group could receive this message.
MAC address entries: switch is used for writing down the list item of Ether frame MAC Address and outbound port corresponding relation, when Business Stream when two layers are transmitted, according to the target MAC (Media Access Control) address of Business Stream, the MAC address entries on the coupling switch to find corresponding output port, is transmitted earlier.
The multicast MAC address entries: switch is used for writing down the list item of Ether frame multicast mac address and outbound port tabulation corresponding relation, when group business stream when two layers are transmitted, elder generation is according to the purpose MAC of Business Stream, multicast MAC address entries on the coupling switch, to find the corresponding output port tabulation, carry out duplicating and transmitting of one-to-many.
Group address: i.e. IP multicast address, IP multicast address often corresponding a certain service, so also custom is called group, Wen Zhonghui repeatedly mentions the XXX of corresponding group, is exactly the XXX of corresponding some IP multicast address.
IGMP agreement: INTERNET GROUP MANAGEMENT PROTOCOL, Internet Group Management Protocol, when main frame is wished to add or left the multicast group of appointment and prepare to receive or when rejecting this multicast service, it can send IGMP message with notice local multicast router.Three versions are arranged at present, and equipment is supported two versions of V1, V2 usually.
IGMP-SNOOPING agreement: a kind of in the Layer 2 Multicast agreement that is applied on the switch.The multicast routing protocol messages such as IGMP, PIM that IGMP protocol massages that switch monitoring main frame sends and multicast router send are set up the multicast MAC address entries of particular group, thereby control the forwarding of group business stream in switch.
Router port: the IGMP-SNOOPING switch will receive that the port of IGMP general polling message or PIM protocol massages is considered as router port; Because this two classes message is all sent by multicast router, so what can confirm that these ports connect is router, so gain the name.
Member port: the IGMP-SNOOPING switch will receive that the port of IGMP member relation report is considered as the member port of corresponding group; The report of IGMP member relation is sent by main frame, and what these ports connected is the main frame of wishing to receive some multicast data flows.
Port DOWN: port UP, this port that refers generally to can be used, and can receive and dispatch the agreement more than two layers in the above; If port DOWN, protocol massages can't be received and dispatched; Normally power down causes port DOWN because the netting twine on the port is pulled out.
PIM agreement: Protocol Independent Multicast, independent multicast agreement, a kind of popular multicast routing protocol.
The RGMP agreement: Router-port Group Management Protocol, the router port igmpinternet, the proprietary protocol of CISCO is used with the IGMP-SNOOPING agreement, and the control multicast data flow is transmitted toward specific router port.
Fig. 1 shows a kind of typical network environment that Apparatus and method for operation provided by the present invention is relied on.In the background technology basic principle of this network environment operation has been done elaboration in more detail.Switch among Fig. 1 is the representative instance that the present invention will improve equipment.
In a specific embodiment of the present invention, the router in the network shown in Figure 1 is referred to as multicast router, and it supports IGMP agreement and multicast routing protocol, particularly PIM agreement, and the IGMP-SNOOPING agreement (IGSP agreement) of operation standard on the switch.The present invention to the basic thought that Fig. 1 made improvements is: strengthen the processing from the IGMP general polling message and the PIM protocol massages of multicast router, increased record to the source IP address of multicast router, and and receive between the port of its message and set up mapping relations, according to predetermined Rules Filtering source IP address, for example select wherein address the maximum, only that it is corresponding mapped port generates MAC address entries as router port and issues, thereby has just realized the purpose of control transmitting multicast data to Designated Router.
For this reason, the invention provides a kind of switching equipment that multicast data flow is transmitted of controlling, this equipment is used to connect multicast server and multicast group receives member's network equipment, multicast group described herein receives the member and generally comprises multicast member main frame and multicast router, this switching equipment is supported standard the Internet group management protocol listening (IGMP-SNOOPING agreement), compare with the two-layer switching equipment of traditional support IGMP-SNOOPING agreement, in short, this equipment should further comprise following key modules:
IP address logging modle is used to obtain multicast group and receives member's network equipment source IP address and storage;
Multicast MAC address entries control module is used for receiving the generation of member's network equipment source IP address and issuing the multicast MAC address entries according to the described multicast group of storage.
Wherein, the function and the mode of operation of IP address logging modle are mainly, monitor at device port, will receive that not only the port of IGMP general polling message, PIM agreement carries out record, but also obtain and write down the source IP address and the storage of corresponding protocol massages from multicast router; And multicast MAC address entries control module, according to the multicast member network equipment source IP address of being stored device port is screened, source IP address corresponding port after only will screening is as the member of the corresponding sets of ports of multicast address in the multicast MAC address entries, give up other no source IP address corresponding equipment ports, thereby generate the multicast MAC address entries that is subjected to pre-defined rule control, also just controlled the equipment after the multicast traffic stream of transmitting subsequently only mails to screening indirectly in equipment.
Thus; those skilled in the art can learn; record network equipment source IP address is just as a kind of means of screening the forwarding unit port; its basic goal is exactly that the multicast address corresponding port collection in the MAC address entries is screened, controls; under this purpose was guided, those of ordinary skill in the art was easy to expect that other alternative means realize, therefore; it goes without saying that these simple variations are included within the present invention's scope required for protection.
In a specific embodiment of the present invention, is example with the control transmitting multicast data to multicast router, for the better source IP address of the multicast router of stored record, and it is it is corresponding with the device port that is connected multicast router, in equipment, also set up the mapping relations maintenance module, be used between described device forwards port and multicast router source IP address, setting up and safeguarding mapping relations.Wherein, these mapping relations in a specific embodiment of the present invention, adopted set up have multicast router port number, the method for multicast router source IP address tables of data.In addition, issuing control module for the multicast MAC address entries further is divided into: multicast member network equipment source IP address is selected module, be used for selecting the multicast member source IP address that needs use at the multicast member source IP address of storage according to predetermined rule, for example, in a specific embodiment of the present invention, this rule promptly is its corresponding port of screening according to the source IP address maximum; Multicast MAC address entries generation module is used for transmitting port according to the described multicast member network equipment source IP address corresponding equipment selected and generates the multicast MAC address entries and issue.
Below promptly be the summary feature and the implementation method in some specific embodiments thereof of equipment provided by the present invention, above-mentioned narration and only be for a better understanding of the present invention for example can not be construed as limiting protection scope of the present invention.
Set forth the switching method of control transmitting multicast data provided by the present invention below in conjunction with accompanying drawing.This method is applied on the two-layer switching equipment of the network equipment that connects multicast server and receiving multicast data, and described equipment is supported standard I GMP-SNOOPING agreement (IGSP agreement).On equipment, if use this method, mainly be that the function of utilizing the IGSP agreement to provide is further strengthened, therefore can be referred to as EIGSP (Enhanced IGSP, the IGSP agreement that strengthens) agreement, when on equipment, using this method, this two-layer switching equipment has just had control transmitting multicast data ground function of exchange, do not use this method, the two-layer switching equipment of then described two-layer switching equipment and common operation IGSP agreement is as broad as long, therefore, in a specific embodiment of the present invention, we control enabling of described EIGSP agreement by increase an overall switch on two-layer switching equipment, promptly can determine whether enabling function provided by the present invention by the user.When two-layer switching equipment is used for connecting multicast server and multicast router, just open this switch, then can control, otherwise close this switch, then the IGSP agreement of two-layer switching equipment operation standard the two-layer switching equipment multicast data forwarding.
With reference to figure 2, in a specific embodiment of the present invention, for a better understanding of the present invention, two-layer switching equipment is a switch, the multicast member network equipment is defined as router, be multicast router, two layer switching methods of control transmitting multicast data provided by the present invention are thus realized as follows:
At step S100, switch obtains and stores described multicast router source IP address.This step is IGMP general polling message, the PIM protocol massages of receiving by the snooping switch port, and extracts the source IP address and the storage of the protocol massages of multicast router from message.
At step S200, set up, safeguard the mapping relations between described network equipment source IP address and the forwarding port.In order to set up the relation between multicast router source IP address and the forwarding port, adopted the method that in the router port list of switch record, increases router source IP address field, this field is used for the storage router source IP address, thereby set up the mapping relations between the two, also solved the storage problem after the router source IP address writes down.As shown in table 1, switch has all been received IGMP general polling message or PIM protocol massages from port one and port 2, and the port one back has connected two multicast routers (may have the cascade of switch or HUB).The interface IP address of the multicast router that port one connects is 20.1.1.1 and 20.1.1.2, and the interface IP address of the multicast router that port 2 connects is 20.1.1.5.
The router side slogan The router source IP address
1 20.1.1.1
20.1.1.2
2 20.1.1.5
Table 1
Each router source IP address list item all has a timestamp, is used for the burin-in process of list item.Initial value is preferably the router protocol message and sends at interval 3 times, As time goes on progressively successively decreases; There is duplicate message to come, then stabs update time.
For the processing of newly-increased list item, with reference to figure 3, Fig. 3 shows the exemplary process method of newly-increased list item when safeguarding the mapping relations table, summarizes as follows:
At step S201, judge that port numbers is whether in router port list.Specifically, promptly when port receives IGMP general polling message or PIM protocol massages, write down port numbers, search for router port list then, judge whether this port numbers exists in router port list, if having, then enter step S202, otherwise continue step S205;
At step S202, judge further whether the multicast router source IP address exists.Because this port exists in the router port list, need further judge whether its pairing router source IP address exists, if having, then enter step S203, otherwise continue step S204;
At step S203, upgrade the timestamp of this multicast router source IP address list item.Exist by the multicast router source IP address, need not duplicate record, but find that once more this address needs record, illustrate that this equipment is comparatively active, therefore should upgrade the ageing time of its corresponding IP address and stab, be equivalent to refresh this record, finish.
At step S204, because the multicast router source IP address does not exist, illustrate that this is the record first time in list item, therefore add this multicast router source IP address and timestamp is set, finish.
At step S205, port numbers does not exist, and then adds this multicast router port number, continues step S206.
At step S206, from the agreement that receives, extract the source IP address of multicast router, add under the newly-increased port in the router port list, finish.
Below promptly be the method for newly-increased list item record in the router port list, in maintenance process, also need aging, the multicast router port DOWN of list item are handled that implementation method is basic identical and fairly simple, general description is as follows:
Any one " multicast router source IP address " list item ageing time one is to deletion immediately; Check the upper level " port numbers " of deleted IP address list item then, whether see " router source IP address " tabulation that it hangs down for empty, empty then with the deletion from " port numbers " tabulation of this port numbers.
What the processing during multicast router port DOWN was slightly different is to need not to check whether " multicast router source IP address " tabulation of port correspondence is empty, immediately the port list item in the delete list and corresponding " multicast router source IP address " list item thereof.
At step S300, in the network equipment source IP address of the described receiving multicast data of storing, screen the IP address according to pre-defined rule.In a specific embodiment of the present invention, at this moment pre-defined rule needs to travel through the router source IP address row in the router port list for screening IP address the maximum, checks maximum IP address wherein.Need to prove, if in router port list, increase or deleted " multicast router source IP address " list item, then cause to change to some extent according to the pre-defined rule results of screening, therefore must repeat this step and step S400, promptly, when newly-increased in the list item or deletion " multicast router source IP address ", should travel through " multicast router source IP address " tabulation, see whether corresponding maximum IP address corresponding port change number has taken place, if change and then need reappear the definite required source IP address of screening, execution in step S400 then refreshes the multicast MAC address entries and issues.
At step S400, according to the sets of ports in the switching equipment port generation multicast MAC address entries of described screening IP address correspondence in mapping relations.Actual generation that comprises the multicast MAC address entries and control that multicast MAC address entries middle port collection is generated thereof in this step.Wherein, the generation of multicast MAC address entries is the prerequisite that method provided by the present invention is rely and moved, but when switching equipment is supported the IGSP agreement, general triggering of the generation of multicast MAC address entries based on IGMP member relation message, that is to say, have only and when switching equipment is connected to the main frame of supporting the IGMP agreement, can guarantee the generation of multicast MAC address entries or issue, if switching equipment only connects multicast router or other switching equipment, and other multicast member main frames of getting along well are when linking to each other, must make this switching equipment can trigger the generation of multicast MAC address entries automatically, in a specific embodiment of the present invention, the way that adopts is when switching equipment is received multicast traffic stream, controls it and generates the multicast MAC address entries.Therefore, this step ground is carried out generally based on the refreshing of MAC Address list item middle port collection, and also may be to carry out this step when receiving multicast traffic stream or IGMP member relation message.
At step S500, switching equipment is according to the sets of ports multicast data forwarding in the MAC address entries.
Come the concrete operations flow process and the committed step of comprehensive for example explanation method provided by the invention below by the example in the specific embodiment.
Continue with reference to above-mentioned table 1, exchange opportunity will receive that those ports of IGMP general polling message and PIM protocol massages carry out record, preserve as router port.Traditional IGSP agreement only writes down the router side slogan, and the switch that has started after the E1GSP agreement not only writes down the router side slogan, and needs the corresponding source IP address from the protocol massages of multicast router of record.
As can be seen from Table 1, switch has all been received IGMP general polling message or PIM protocol massages from port one and port 2, and the port one back has connected two multicast routers (may have the cascade of switch or HUB).The interface IP address of the multicast router that port one connects is 20.1.1.1 and 20.1.1.2, and the interface IP address of the multicast router that port 2 connects is 20.1.1.5.
Each router source IP address list item all has a timestamp, is used for the burin-in process of list item.The initial value suggestion sends at interval 3 times for the router protocol message, As time goes on progressively successively decreases; There is duplicate message to come, then stabs update time.
Maximum in this embodiment router source IP address is 20.1.15, thus according to the router side slogan of 20.1.15 correspondence: 2, form multicast MAC address entries corresponding port and concentrate a router port ports having 2.
When switch receives IGMP general polling message or PIM protocol massages or IGMP member relation report message, just generate the multicast MAC address entries, switch is according to the router side slogan in this multicast MAC address entries, multicast data flow is forwarded to Designated Router, and this example is the router side slogan: 2.
Maintenance for router port list, if port is received IGMP general polling message or PIM protocol massages from multicast router, if this port exists in " router side slogan " tabulation of table 1, and corresponding router source IP address also exists, the then direct more timestamp of new router source IP address list item, for example in the table 1, receive IGMP general polling message, then upgrade the timestamp of 20.1.1.1 from multicast router 20.1.1.1; If this port exists in " router side slogan " tabulation, but corresponding router source IP address does not exist, then directly add the router source IP address, and timestamp is set, for example in the table 1, the port one back connects a multicast router 20.1.1.3 again, and switch is received from the IGMP general polling message of multicast router or PIM message, then below port one, add the list item of 20.1.1.3, timestamp is set simultaneously; If this port does not exist in " router side slogan " tabulation, then add router port earlier, add the router source IP address again, and timestamp is set, for example in the table 1, connect a multicast router 20.1.1.10 again, then need to add router side slogan 3 in port numbers 3 back, below it, add router source IP address 20.1.1.10 simultaneously, and timestamp is set.
Traversal " router source IP address " tabulation then if maximum IP address corresponding port number change has taken place, is then upgraded the multicast MAC address entries, refreshes the corresponding port collection.
For the situation of router port DOWN, for example in the table 1, if port 2 DOWN, this port numbers then, the router source IP address list item together with the subordinate all needs to delete immediately; At this moment, variation has taken place in maximum IP address, become 20.1.1.2, so variation number has also taken place in maximum IP address corresponding port, become port one, promptly variation has taken place in Designated Router, needs to upgrade the multicast MAC address entries this moment, port one is joined in the corresponding port tabulation, and with port 2 deletion from the corresponding port tabulation.Need to prove: owing to stipulated that the router of IP address maximum is a Designated Router in all Routing Protocols basically, so the screening rule of present embodiment is to select maximum IP address; Yet agreement may change to the regulation of Designated Router future, and at first screening rule can become minimum, even other rule; Next adopts other identity informations to come the regulation Designated Router, and as MAC Address or even specifically-built identity information, the present invention can set up corresponding screening rule and adapt to such variation.Therefore, on the angle of broad sense, the present invention can be regarded as router identity information record the record of IP address, and obtains Designated Router with this, this point is to understand easily for a person skilled in the art, so the solution of the present invention also can be summed up as follows:
A kind of method of controlling transmitting multicast data is applied on the switching equipment forwarding to multicast network equipment of the multicast data message that sends in order to the control multicast source, may further comprise the steps:
A) the multicast protocol message of the multicast network equipment transmission of receiving on the monitoring switching equipment port;
B) write down the identity information of the multicast network equipment that comprises in those multicast protocol messages;
C) according to pre-defined rule screening identity information, obtain the designated multicast network equipment;
D) set up transmitting multicast data table control multicast data message and be forwarded to this designated multicast network equipment.
Wherein, described identity information is the IP address, and screening rule is that the IP address is maximum or minimum.
Wherein, D) step is specially: only will receive that in transmitting the port that the designated multicast network equipment sends the multicast protocol message transmits port as multicast data message.
Though described the present invention by embodiment, those of ordinary skills know, without departing from the spirit and substance in the present invention, just can make the present invention that many distortion and variation are arranged, and scope of the present invention is limited to the appended claims.

Claims (13)

1, a kind of switching equipment of controlling transmitting multicast data is used to connect multicast server and multicast group and receives member's network equipment, and described switching equipment is supported internet group management protocol listening, it is characterized in that described equipment comprises:
IP address logging modle is used to obtain multicast group and receives member's network equipment source IP address and storage;
Multicast MAC address entries control module is used for generating and issue the multicast MAC address entries according to the described multicast group reception member network equipment source IP address of storing and flows to the designated multicast group of received member network equipment with the control multicast message.
2, the switching equipment of control transmitting multicast data as claimed in claim 1, it is characterized in that described equipment also comprises the mapping relations maintenance module, be used between described device forwards port and multicast group reception member network equipment source IP address, setting up and safeguarding mapping relations.
3, the switching equipment of control transmitting multicast data as claimed in claim 1 or 2 is characterized in that described multicast MAC address entries control module further comprises
Multicast group receives member's network equipment source IP address and selects module, is used for selecting the multicast member source IP address that needs use according to predetermined rule at the multicast member source IP address of storage;
Multicast MAC address entries sets of ports generates control module, is used for receiving member's network equipment source IP address corresponding equipment according to the described multicast group of selecting and transmits port and generate the sets of ports of corresponding multicast MAC address entries and issue.
4, the switching equipment of control transmitting multicast data as claimed in claim 3 is characterized in that described pre-defined rule is an IP address maximum.
5, a kind of method of controlling transmitting multicast data is applied on the switching equipment that connects the multicast server and the multicast group reception member network equipment, and described equipment is supported the standard the Internet group management protocol listening, it is characterized in that, comprises the following steps:
1) obtains and store described multicast group and receive member's network equipment source IP address;
2) set up, safeguard the mapping relations between described network equipment source IP address and the forwarding port;
3) the described multicast group in storage receives in member's network equipment source IP address according to pre-defined rule screening IP address;
4) according to the sets of ports in the switching equipment port generation multicast MAC address entries of described screening IP address correspondence in mapping relations;
5) described equipment is according to the sets of ports multicast data forwarding in the MAC address entries.
6, the switching method of control transmitting multicast data as claimed in claim 5 is characterized in that multicast group receives member's network equipment for supporting the multicast router of multicast routing protocol, specifically comprises the steps: in the step 1)
11) judge whether the protocol massages that interface is received is the general polling message or the independent multicast protocol massages of Internet Group Management Protocol;
12) if then extract source IP address and storage in the protocol massages.
7, the switching method of control transmitting multicast data as claimed in claim 6 is characterized in that step 2) in, described mapping relations are to include the port numbers that connects multicast router and the router port list of multicast router source IP address.
8, the switching method of control transmitting multicast data as claimed in claim 7 is characterized in that step 2) described in the method for setting up described multicast router source IP address and transmitting the mapping relations between the port be:
21) if the port numbers that receives the protocol massages port in router port list, and its pairing multicast router source IP address also exists, then upgrades the timestamp of this multicast router source IP address list item;
22) if described port numbers in router port list, and its pairing multicast router source IP address does not exist, and then adds this multicast router source IP address and timestamp is set;
23) connect the multicast router port port numbers if described port numbers not in router port list, is then added earlier, add its pairing multicast router source IP address again and timestamp is set.
9, the switching method of control transmitting multicast data as claimed in claim 8 is characterized in that step 2) described in the described network equipment source IP address of maintenance and the method for transmitting the mapping relations between the port be:
If described multicast router source IP address list item ageing time to or multicast router port under behind the electricity, then with this multicast router source IP address deletion;
If the tabulation of the multicast router source IP address of the deleted pairing multicast router port correspondence of router source IP address list item is for empty, then this multicast router port number is deleted from router port list.
10, the switching method of control transmitting multicast data as claimed in claim 9 is characterized in that, the pre-defined rule described in the step 3) is an IP address maximum, after the deletion of multicast router source IP address, also comprises the steps:
Judge whether maximum IP address corresponding port number changes;
If maximum router source IP address changes, upgrade the sets of ports in the multicast MAC address entries.
11, a kind of method of controlling transmitting multicast data is applied on the switching equipment forwarding to multicast network equipment of the multicast data message that sends in order to the control multicast source, it is characterized in that may further comprise the steps:
A) the multicast protocol message of the multicast network equipment transmission of receiving on the monitoring switching equipment port;
B) write down the identity information of the multicast network equipment that comprises in those multicast protocol messages;
C) according to pre-defined rule screening identity information, obtain the designated multicast network equipment;
D) set up transmitting multicast data table control multicast data message and be forwarded to this designated multicast network equipment.
12, as the method for control transmitting multicast data as described in the claim 11, it is characterized in that described identity information is the IP address, screening rule is that the IP address is maximum or minimum.
13, as the method for control transmitting multicast data as described in the claim 11, it is characterized in that D) step is specially: only will receive that in transmitting the port that the designated multicast network equipment sends the multicast protocol message transmits port as multicast data message.
CNB2005100936173A 2005-08-31 2005-08-31 Switchnig equipment and method for controlling multicasting data forwarding Active CN100463447C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100936173A CN100463447C (en) 2005-08-31 2005-08-31 Switchnig equipment and method for controlling multicasting data forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100936173A CN100463447C (en) 2005-08-31 2005-08-31 Switchnig equipment and method for controlling multicasting data forwarding

Publications (2)

Publication Number Publication Date
CN1744572A true CN1744572A (en) 2006-03-08
CN100463447C CN100463447C (en) 2009-02-18

Family

ID=36139772

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100936173A Active CN100463447C (en) 2005-08-31 2005-08-31 Switchnig equipment and method for controlling multicasting data forwarding

Country Status (1)

Country Link
CN (1) CN100463447C (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008017270A1 (en) * 2006-08-01 2008-02-14 Huawei Technologies Co., Ltd. Method and device and system of ethernet supporting source specific multicast forwarding
WO2008040202A1 (en) * 2006-09-06 2008-04-10 Huawei Technologies Co., Ltd. Method, apparatus and system for sending mbms service in ip load-carrying web
CN100466832C (en) * 2006-09-30 2009-03-04 中兴通讯股份有限公司 Group broadcasting member management method for radio local network IP group broadcasting frame transmission
CN101291240B (en) * 2008-06-19 2010-08-25 杭州华三通信技术有限公司 Multicast flow transmission method and system
CN101834791A (en) * 2010-04-21 2010-09-15 瑞斯康达科技发展股份有限公司 Method for forwarding multicast message
CN101123744B (en) * 2006-08-11 2010-12-29 中兴通讯股份有限公司 A multicast device and method for multimedia broadcast and multicast service
CN1980246B (en) * 2006-12-07 2011-04-13 杭州华三通信技术有限公司 Two-layer multi-casting flow retransmission method
CN101175068B (en) * 2006-11-02 2011-08-17 上海未来宽带技术及应用工程研究中心有限公司 Multi-version multicast protocol amalgamation method
CN101132298B (en) * 2006-08-21 2011-11-30 中兴通讯股份有限公司 Multicast device used for multimedia broadcast multicast service and method thereof
CN101924692B (en) * 2009-06-09 2012-06-20 鸿富锦精密工业(深圳)有限公司 Method for processing multicast message by router
CN1921402B (en) * 2006-08-15 2012-07-04 华为技术有限公司 Method and system for treating multicast business
CN102694734A (en) * 2012-06-11 2012-09-26 烽火通信科技股份有限公司 Multicasting method of double-layer switching equipment based on Linux kernel bridge
CN103685040A (en) * 2013-12-02 2014-03-26 杭州华三通信技术有限公司 MD (multicast domain) based multicast VPN (virtual private network) traffic optimization method and equipment
CN104113484A (en) * 2013-04-19 2014-10-22 中兴通讯股份有限公司 Message forwarding processing method and device
CN104202174A (en) * 2014-08-13 2014-12-10 上海斐讯数据通信技术有限公司 Implementation method of precisely forwarding IP (Internet Protocol) specific source multicast data
CN108111324A (en) * 2017-12-19 2018-06-01 刘昱 A kind of multicast control method based on SDN network, device and storage medium
CN108111323A (en) * 2017-11-10 2018-06-01 中国电子科技集团公司第三十二研究所 Realization system of igmpsnooping protocol under vxworks system
CN111064824A (en) * 2019-12-29 2020-04-24 苏州浪潮智能科技有限公司 Method, device, equipment and medium for verifying addition and deletion of IP address of port of switch
CN112187756A (en) * 2020-09-21 2021-01-05 普联国际有限公司 Multicast data transmission method, device, equipment and storage medium
CN114143132A (en) * 2021-11-15 2022-03-04 云知声(上海)智能科技有限公司 Method and system for realizing intelligent linkage of multi-terminal equipment based on RTP-MESH

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6847638B1 (en) * 2000-10-16 2005-01-25 Cisco Technology, Inc. Multicast system for forwarding desired multicast packets in a computer network
CN1192574C (en) * 2002-01-30 2005-03-09 华为技术有限公司 Controlled group broadcasting system and its realizing method
TW569575B (en) * 2002-04-30 2004-01-01 Realtek Semiconductor Corp Transmission setup method and device for multicast packet
CN1218540C (en) * 2003-08-29 2005-09-07 港湾网络有限公司 Control method for exact multicast forwarding

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008017270A1 (en) * 2006-08-01 2008-02-14 Huawei Technologies Co., Ltd. Method and device and system of ethernet supporting source specific multicast forwarding
CN101123744B (en) * 2006-08-11 2010-12-29 中兴通讯股份有限公司 A multicast device and method for multimedia broadcast and multicast service
CN1921402B (en) * 2006-08-15 2012-07-04 华为技术有限公司 Method and system for treating multicast business
CN101132298B (en) * 2006-08-21 2011-11-30 中兴通讯股份有限公司 Multicast device used for multimedia broadcast multicast service and method thereof
WO2008040202A1 (en) * 2006-09-06 2008-04-10 Huawei Technologies Co., Ltd. Method, apparatus and system for sending mbms service in ip load-carrying web
CN100466832C (en) * 2006-09-30 2009-03-04 中兴通讯股份有限公司 Group broadcasting member management method for radio local network IP group broadcasting frame transmission
CN101175068B (en) * 2006-11-02 2011-08-17 上海未来宽带技术及应用工程研究中心有限公司 Multi-version multicast protocol amalgamation method
CN1980246B (en) * 2006-12-07 2011-04-13 杭州华三通信技术有限公司 Two-layer multi-casting flow retransmission method
CN101291240B (en) * 2008-06-19 2010-08-25 杭州华三通信技术有限公司 Multicast flow transmission method and system
CN101924692B (en) * 2009-06-09 2012-06-20 鸿富锦精密工业(深圳)有限公司 Method for processing multicast message by router
CN101834791A (en) * 2010-04-21 2010-09-15 瑞斯康达科技发展股份有限公司 Method for forwarding multicast message
CN102694734A (en) * 2012-06-11 2012-09-26 烽火通信科技股份有限公司 Multicasting method of double-layer switching equipment based on Linux kernel bridge
CN102694734B (en) * 2012-06-11 2016-02-10 烽火通信科技股份有限公司 Two-layer switching equipment realizes the method for multicast based on linux kernel bridge
CN104113484A (en) * 2013-04-19 2014-10-22 中兴通讯股份有限公司 Message forwarding processing method and device
CN103685040A (en) * 2013-12-02 2014-03-26 杭州华三通信技术有限公司 MD (multicast domain) based multicast VPN (virtual private network) traffic optimization method and equipment
CN103685040B (en) * 2013-12-02 2017-01-18 杭州华三通信技术有限公司 MD (multicast domain) based multicast VPN (virtual private network) traffic optimization method and equipment
CN104202174A (en) * 2014-08-13 2014-12-10 上海斐讯数据通信技术有限公司 Implementation method of precisely forwarding IP (Internet Protocol) specific source multicast data
CN104202174B (en) * 2014-08-13 2017-12-19 上海斐讯数据通信技术有限公司 A kind of implementation method of precise relay IP specific source multicasting data
CN108111323A (en) * 2017-11-10 2018-06-01 中国电子科技集团公司第三十二研究所 Realization system of igmpsnooping protocol under vxworks system
CN108111323B (en) * 2017-11-10 2020-08-14 中国电子科技集团公司第三十二研究所 Realization system of igmpsnooping protocol under vxworks system
CN108111324A (en) * 2017-12-19 2018-06-01 刘昱 A kind of multicast control method based on SDN network, device and storage medium
CN108111324B (en) * 2017-12-19 2022-06-03 刘昱 Multicast control method, device and storage medium based on SDN network
CN111064824A (en) * 2019-12-29 2020-04-24 苏州浪潮智能科技有限公司 Method, device, equipment and medium for verifying addition and deletion of IP address of port of switch
CN111064824B (en) * 2019-12-29 2022-05-13 苏州浪潮智能科技有限公司 Method, device, equipment and medium for verifying addition and deletion of IP address of port of switch
CN112187756A (en) * 2020-09-21 2021-01-05 普联国际有限公司 Multicast data transmission method, device, equipment and storage medium
CN114143132A (en) * 2021-11-15 2022-03-04 云知声(上海)智能科技有限公司 Method and system for realizing intelligent linkage of multi-terminal equipment based on RTP-MESH
CN114143132B (en) * 2021-11-15 2023-08-04 云知声(上海)智能科技有限公司 Method and system for realizing intelligent linkage of multi-terminal equipment based on RTP-MESH

Also Published As

Publication number Publication date
CN100463447C (en) 2009-02-18

Similar Documents

Publication Publication Date Title
CN1744572A (en) Switchnig equipment and method for controlling multicasting data forwarding
CN1878118A (en) System for realizing data communication and its method
CN1777149A (en) Method for realizing multicast translation in three-layer switching unit
CN101043429A (en) Method for establishing multicasting LSP in MPLS field and multicasting data communication system
CN1946041A (en) VLAN polymerizing method, converging exchanger and system based on ARP detector intercept
CN1741492A (en) Equiment and method for controlling group transmitting data retransmission
CN1845527A (en) Method and system for providing multicast service in microwave access global intercommunication system
CN1863157A (en) Method and apparatus for implementing network communication through NAT
CN1878143A (en) Multicast network deploying method and multicast network
CN1921457A (en) Network equipment and message transferring method based on multiple-core processor
CN1805388A (en) Method for establishing pier-to-pier direct channels
CN1856163A (en) Communication system with dialog board controller and its command transmitting method
CN1501659A (en) Communication device, edge router device, server device, communication system and communication method
CN1588927A (en) Method for large scale multimedia cut-in net gate
CN101079728A (en) A method, server and system fro optimizing group management protocol
CN1731740A (en) Network device management method and network management system
CN101060498A (en) A method for realizing the gateway Mac binding, assembly, gateway and layer 2 switch
CN1809032A (en) Method of dynamically learning address on MAC layer
CN1180575C (en) Centralized management method of local net exchange equipment
CN101053211A (en) Method and apparatus for configuring and managing a robust overlay multicast tree
CN107666592A (en) Camera head monitor method, system, storage medium and computer equipment
CN101051920A (en) Method for realizing multicast business and network equipment
CN1852328A (en) Diskless workstation start system and method
CN1870568A (en) Method for implementing network address conversion anti-virus transition
CN1852261A (en) Method for maintenance of neighbor entry

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address