CN101159665A - Method and device to implement forwarding of unknown multicast packet to router port - Google Patents

Method and device to implement forwarding of unknown multicast packet to router port Download PDF

Info

Publication number
CN101159665A
CN101159665A CNA200710145588XA CN200710145588A CN101159665A CN 101159665 A CN101159665 A CN 101159665A CN A200710145588X A CNA200710145588X A CN A200710145588XA CN 200710145588 A CN200710145588 A CN 200710145588A CN 101159665 A CN101159665 A CN 101159665A
Authority
CN
China
Prior art keywords
unknown multicast
forwarding
multicast packets
table item
unknown
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
CNA200710145588XA
Other languages
Chinese (zh)
Other versions
CN101159665B (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 H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN200710145588XA priority Critical patent/CN101159665B/en
Publication of CN101159665A publication Critical patent/CN101159665A/en
Application granted granted Critical
Publication of CN101159665B publication Critical patent/CN101159665B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for realizing retransmission of an unknown multicast message to the port of a router. The method comprises constructing unknown multicast message retransmission table when meeting the predetermined condition, wherein the unknown multicast message retransmission table is a retransmission table matching the multicast message source address and destination address, and the retransmission table comprises a router port of virtual local area network (VLAN); searching the unknown multicast message retransmission table when a received multicast message is judged to be an unknown multicast message; and when the searching succeeds, retransmits the unknown multicast message to the router port. The invention also discloses a device for realizing retransmission of the unknown multicast message to the port of the router. The invention can realize construction and maintenance of all multicast message retransmission tables in the interchange chip from the protocol platform, so as to reduce the complexity of retransmission of unknown multicast message to port of router, reduce the impact to the CPU of interchange equipments, and improve the performance of interchange equipments.

Description

Realize the method and apparatus that unknown multicast packets is transmitted to router port
Technical field
The present invention relates to communication technical field, particularly a kind of method and apparatus of realizing that unknown multicast packets is transmitted to router port.
Background technology
Traditional Ethernet switch adopts broadcast mode that multicast message is transmitted, promptly the port of this Ethernet switch is at same VLAN (Virtual Local Area Network, VLAN) in, when one of them port received multicast message, this multicast message was transmitted all other ports in this VLAN.The waste of the network bandwidth resources that causes when by broadcast mode multicast message being transmitted in order to save, on Ethernet switch, introduced IGMP (Internet Group Management Protocol, Internet Group Management Protocol)-Snooping (eavesdropping) function, can set up the mapping table of known multicast address information and VLAN inner port by this function Ethernet switch, also can be described as known multicast message forwarding-table item, can be according to this known multicast message forwarding-table item with the multicast message precise relay to corresponding port, and all of the port broadcasting that needn't be in VLAN.For the unknown multicast packets that in known multicast message forwarding-table item, does not have corresponding forwarding port, to guarantee that according to the regulation of RFC4541 this unknown multicast packets transmits to router port, when router port is transmitted, can select whether to broadcast to other host port.
A typical case who in the prior art unknown multicast packets is transmitted uses schematic diagram as shown in Figure 1: router-A and router B are by ethernet device LSW interconnection, port a on the LSW, port b and port c are in same VLAN, set up PIM (ProtocolIndependent Multicast between router-A and the router B, Protocol Independent Multicast) neighborhood, the unicast routing table that PIM can utilize static unicast routing protocol or arbitrarily dynamic unicast routing protocol to generate provides route for multicast message.Suppose that router-A is the upstream that multicast message flows to, router B is the downstream that multicast message flows to, B needs adding<S1 when router, G1〉during multicast message, router B is by the router-A report upstream of PIM agreement, router-A is multicast message<S1, G1〉be transmitted to router B by sharing the network segment.When ethernet device LSW listens to the hello packet of PIM agreement by the IGMP-Snooping function on port a and port b, because hello packet belongs to the multicast routing protocol message, therefore port a and port b are set to router port, and because the host port in the VLAN does not have receiving group message<S1, G1〉demand, therefore can on ethernet device LSW, not set up respective hosts port<S1, G1〉known multicast message forwarding-table item.As multicast message<S1, G1〉when router port a enters ethernet device LSW, since in known multicast message forwarding-table item not to forwarding port that should multicast message, so this multicast message<S1, G1〉be unknown multicast packets, in order to prevent that this unknown multicast packets from broadcasting in VLAN, need this unknown multicast packets<S1, G1 to router port b precise relay.
Usually adopt exchange chip when in the prior art multicast message being transmitted, exchange chip is transmitted multicast message based on the multicast message MAC Address, and the IGMP-Snooping function is usually located in the protocol platform.Forwarding for known multicast message, the IGMP-Snooping function of protocol platform is after having set up known multicast message forwarding-table item, MAC (Media Access Control with this known multicast message, media interviews control) address is issued to exchange chip with the binding information of corresponding port, and exchange chip is forwarded to corresponding port according to this binding relationship with known multicast message.Forwarding for unknown multicast packets, the IGMP-Snooping function of protocol platform is not owing to create known multicast message forwarding-table item, exchange chip can't be known the MAC Address of this unknown multicast packets and the binding information of corresponding port, if this unknown multicast packets is carried out precise relay by exchange chip, then this exchange chip need extract a unknown multicast packets and be sent to CPU (Central Processing Unit, central processing unit), CPU is by analyzing the mac address information that this unknown multicast packets obtains this unknown multicast packets, and this mac address information and router port bound, again binding information is issued to exchange chip, the subsequent exchange chip arrives the all-router port according to binding information with this unknown multicast packets precise relay.
By above description to prior art as can be known, known multicast message forwarding-table item can only be created and safeguard to protocol platform of the prior art, and to the forwarding of unknown multicast packets, then need CPU to analyze the address information of unknown multicast packets, after then address information and router port being bound, could realize unknown multicast packets is forwarded to router port, so the realization flow complexity; And a large amount of unknown multicast packets are sent to CPU, can bring certain impact, thereby influence the performance of entire equipment CPU; Further prior art is applicable to the exchange chip of transmitting based on multicast mac address, and its design has been not suitable for becoming day by day the exchange chip based on the forwarding of IP (Internet Protocol, Internet protocol) address of main flow.
Summary of the invention
The object of the present invention is to provide a kind of method that realizes that unknown multicast packets is transmitted to router port, to overcome method realization flow complexity and the problem that easily CPU is impacted of having now.
Another object of the present invention is to provide a kind of device of realizing that unknown multicast packets is transmitted to router port, overcoming existing apparatus realization flow complexity, and the problem that easily CPU is impacted.
For solving the problems of the technologies described above, the invention provides following technical scheme:
A kind of method that realizes that unknown multicast packets is transmitted to router port comprises:
Satisfy when pre-conditioned, set up the unknown multicast packets forwarding-table item, described unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, has comprised the router port of virtual LAN VLAN in this forwarding-table item;
Judge when the multicast message that receives is unknown multicast packets, search described unknown multicast packets forwarding-table item;
When described searching successfully, described unknown multicast packets is forwarded to described router port.
Describedly satisfy pre-conditioned comprising:
In described VLAN, set in advance not broadcast capability of unknown multicast;
According to the router port of the described VLAN that intercepts and learn by the IGMP-Snooping function, open not broadcast capability of described unknown multicast.
Also comprise:
Close unknown multicast in the described VLAN not behind the broadcast capability, delete described unknown multicast packets forwarding-table item.
Also comprise:
Delete router port aging in the described unknown multicast packets forwarding-table item;
When not having router port in the described unknown multicast packets forwarding-table item, delete described unknown multicast packets forwarding-table item.
The multicast message that described judgement receives is that unknown multicast packets is realized by following mode:
Search the multicast forwarding list item of known multicast source address and destination address and the multicast forwarding list item of known multicast destination address successively after receiving multicast message,, then transmit according to above-mentioned forwarding-table item as coupling; As do not match, then described multicast message is judged as unknown multicast packets.
Further comprise:
Search when unsuccessful when described, handle described unknown multicast packets according to default.
Describedly handle described unknown multicast packets and comprise according to default:
According to default described unknown multicast packets is transmitted to the port of described VLAN by the mode of broadcasting; Or described unknown multicast packets is abandoned according to default.
A kind of device of realizing that unknown multicast packets is transmitted to router port comprises:
Set up the unit, be used to satisfy when pre-conditioned, set up the unknown multicast packets forwarding-table item, described unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, has comprised the router port of virtual LAN VLAN in this forwarding-table item;
Search the unit, be used to judge when the multicast message that receives is unknown multicast packets, search described unknown multicast packets forwarding-table item;
Judging unit is used to judge whether the described unit of searching is searched successfully;
Performance element is used for when described judgment unit judges is searched successfully described unknown multicast packets being forwarded to described router port.
Described device also comprises:
Default unit is used for setting in advance not broadcast capability of unknown multicast in described VLAN;
Operating unit is used for the router port according to the described VLAN that intercepts and learn by the IGMP-Snooping function, opens not broadcast capability of described unknown multicast.
Described operating unit is further used for closing not broadcast capability of described unknown multicast, and described device also comprises:
Delete cells is used for described operating unit and closes unknown multicast not behind the broadcast capability, deletes described unknown multicast packets forwarding-table item.
Described device also comprises:
Maintenance unit is used for deleting the aging router port of described unknown multicast packets forwarding-table item, and when not having router port in the described unknown multicast packets forwarding-table item, deletes described unknown multicast packets forwarding-table item.
When described judgment unit judges was searched failure, described performance element was further used for according to the described unknown multicast packets of default processing.
By above description to technical solution of the present invention as can be known, the present invention is satisfying when pre-conditioned, set up the unknown multicast packets forwarding-table item, this unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, the router port that has comprised virtual LAN VLAN in this forwarding-table item, judge when the multicast message that receives is unknown multicast packets, search the unknown multicast packets forwarding-table item, when described searching successfully, unknown multicast packets is forwarded to router port.Using the present invention can realize safeguarding all multicast message forwarding-table items in the exchange chip by protocol platform, the forwarding-table item of protocol platform and exchange chip can be consistent, when being transmitted, unknown multicast packets, therefore reduced the complexity that unknown multicast packets is transmitted to router port owing to need not to analyze the router port information of obtaining by CPU; Owing to realized forwarding to unknown multicast packets by setting up the unknown multicast packets forwarding-table item, also reduced the impact of unknown multicast packets simultaneously to CPU, improved the performance of ethernet switching device.
Description of drawings
Fig. 1 is the application schematic diagram that unknown multicast packets is transmitted in the prior art;
Fig. 2 is the first embodiment flow chart of the inventive method;
Fig. 3 is the second embodiment flow chart of the inventive method;
Fig. 4 is the concrete applicating flow chart of the inventive method embodiment at key-course;
Fig. 5 is that the inventive method embodiment is at the concrete applicating flow chart of transmitting layer;
Fig. 6 is the concrete applicating flow chart of the inventive method embodiment in management level;
Fig. 7 is the 3rd embodiment flow chart of the inventive method;
Fig. 8 is the first embodiment block diagram of apparatus of the present invention;
Fig. 9 is the second embodiment block diagram of apparatus of the present invention.
Embodiment
Core of the present invention provides a kind of method that realizes that unknown multicast packets is transmitted to router port, the present invention is satisfying when pre-conditioned, set up the unknown multicast packets forwarding-table item, this unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, and the router port that has comprised virtual LAN VLAN in this forwarding-table item, judge when the multicast message that receives is unknown multicast packets, search the unknown multicast packets forwarding-table item, when described searching successfully, unknown multicast packets is forwarded to router port.
In order to make those skilled in the art person understand the present invention program better, and above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
When Ethernet switch enables the IGMP-Snooping agreement, when certain port in VLAN listened to IGMP member relation report message, the IGMP-Snooping function was set up known multicast message forwarding-table item<S, G, VID〉and list item< *, G, VID 〉, and known multicast message forwarding-table item is issued to the exchange chip of this protocol platform control, exchange chip is transmitted the known multicast message that receives according to known multicast message forwarding-table item.Wherein, known multicast message forwarding-table item<S, G, VID〉be used for multicast data flow of unique sign, S represents the source IP address of multicast message, and G represents the purpose IP address of multicast message, and VID represents the sign of the VLAN at multicast message place; Known multicast message forwarding-table item< *, G, VID〉and be used to characterize one group of multicast message, *All source IP addresss of expression coupling multicast message, G represents the purpose IP address of multicast message, VID represents the sign of the VLAN at multicast message place.
When Ethernet switch enables the IGMP-Snooping agreement, when certain port in VLAN listened to IGMP general polling message or IGMP multicast routing protocol message, this port is set became router port.By protocol platform control exchange chip set up the unknown multicast packets forwarding-table item< *, *, VID 〉, list item< *, *, VID〉and be used for characterizing all multicast messages of coupling, VID represents the sign of the VLAN at multicast message place.This list item< *, *, VID〉be forwarding-table item to all multicast message source addresses and destination address wildcard, comprised the router port in the VLAN in this list item, exchange chip according to this list item< *, *, VID〉unknown multicast packets that receives is transmitted to router port.
The first embodiment flow chart of the inventive method is as shown in Figure 2:
Step 201: satisfy when pre-conditioned, set up the unknown multicast packets forwarding-table item.
The unknown multicast packets forwarding-table item of setting up is the forwarding-table item to all multicast message source addresses and destination address wildcard, has comprised the router port of virtual LAN VLAN in this forwarding-table item.
Step 202: judge when the multicast message that receives is unknown multicast packets, search the unknown multicast packets forwarding-table item.
After receiving multicast message, search the known multicast message forwarding-table item<S of known multicast source address and destination address successively, G, VID〉and the known multicast message forwarding-table item of known multicast destination address< *, G, VID 〉, if coupling judges that then multicast message is known multicast message and transmits according to above-mentioned list item, if do not match, then is judged as unknown multicast packets with multicast message.
Step 203: when searching successfully, unknown multicast packets is forwarded to the router port that comprises in the unknown multicast packets forwarding-table item.
Further,, unknown multicast packets is transmitted to the port of VLAN by the mode of broadcasting, perhaps unknown multicast packets is abandoned according to default when searching when unsuccessful.
The second embodiment flow chart of the inventive method as shown in Figure 3, the difference of this embodiment and embodiment one is to describe in detail to increase and sets in advance not broadcast capability of unknown multicast, and according to whether open this unknown multicast not broadcast capability select whether to set up the process of unknown multicast packets forwarding-table item:
Step 301: in VLAN, set in advance not broadcast capability of unknown multicast.
Step 302: the router port of intercepting and learn this VLAN by the IGMP-Snooping function.
Step 303: judge whether to open not broadcast capability of unknown multicast, if then execution in step 304; Otherwise, execution in step 305.
Step 304: set up the unknown multicast packets forwarding-table item that has comprised router port in the VLAN.
Step 305: search known multicast message forwarding-table item successively after receiving multicast message.
Step 306: judge whether multicast message and known multicast message forwarding-table item mate, if then execution in step 307; Otherwise, execution in step 308.
Step 307: transmit according to known multicast message forwarding-table item, finish current flow process.
Step 308: search the unknown multicast packets forwarding-table item.
Step 309: whether the unknown multicast packets forwarding-table item is searched in judgement successful, if then execution in step 310; Otherwise, execution in step 311.
Step 310: unknown multicast packets is forwarded to router port, finishes current flow process.
Step 311:, finish current flow process according to the default unknown multicast packets of handling.
Among the foregoing description one or the embodiment two, set up at the key-course of ethernet switching device usually< *, *, VID〉and list item, protocol platform such as the hello packet of PIM agreement, is provided with the router port in the VLAN by intercepting IGMP general polling message or multicast routing protocol message.When having router port in the VLAN, then protocol platform control exchange chip establishment< *, *, VID〉and list item,< *, *, VID〉list item is the forwarding-table item to all multicast message source addresses and destination address wildcard, and all router port collection form should< *, *, VID〉and the forwarding port of list item; When not having router port in the VLAN, then protocol platform need not to control exchange chip and create< *, *, VID〉and list item.
Key-course except foundation be used to transmit unknown multicast packets< *, *, VID〉outside the list item, also set up simultaneously be used to transmit known multicast message<S, G, VID〉list item and< *, G, VID〉and list item.At foundation<S, G, VID〉during list item, after protocol platform listens to the member relation report message that IGMPv3 protocol filtering pattern is INCLUDE, set up known multicast source address and destination address<S, G, VID〉list item and issue this list item to exchange chip, this<S, G, VID〉to transmit port be protocol platform<S for multicast message in the list item, G, VID host port,< *, G, VID〉host port and VLAN in the union of router port.Setting up< *, G, VID〉during list item, protocol platform listens to after IGMPv1 agreement, IGMPv2 agreement or IGMPv3 protocol filtering pattern be EXCLUDE member relation report message, set up known multicast destination address< *, G, VID〉list item and issue this list item to exchange chip, this< *, G, VID〉multicast message in the list item transmit port be protocol platform< *, G, VID〉host port and VLAN in the union of router port.
On the basis of foregoing description, when enabling the IGMP-Snooping agreement, protocol platform listens to IGMP general polling message or multicast routing protocol message, and behind the router port in protocol platform is provided with VLAN, this protocol platform creates at the control exchange chip< *, *, VID〉list item the time, also to add<S the router port that is provided with to G, VID list item and< *, G, VID〉and the port of list item, so that the follow-up multicast message that receives is searched<S G, VID when transmitting successively〉list item,< *, G, VID〉list item and< *, *, VID〉and list item.
The operating process of key-course in the foregoing description is described with a concrete application example below, be illustrated in figure 4 as by protocol platform enable the IGMP-Snooping agreement set up< *, *, VID〉and list item and add the detailed process of router port:
Step 401: ethernet switching device is opened the IGMP-Snooping function.
Step 402: protocol platform listens to the PIM hello packet being designated on certain port of 1 VLAN.
Step 403: protocol platform is provided with the router port that this port is VLAN1, then while execution in step 404 and step 407.
Step 404: whether have<S G1, V1 on the protocol platform〉list item and< *, G1, V1〉and list item, if then execution in step 405; Otherwise, execution in step 408.
Step 405: add router port to<S, G1, V1〉list item and< *, G1, V1〉and the sets of ports of list item.
Step 406: protocol platform indication exchange chip renewals<S, G1, V1〉list item with< *, G1, V1〉and list item, finish current flow process.
Step 407: whether open not broadcast capability of unknown multicast in this VLAN1, if then execution in step 409; Otherwise, execution in step 408.
Step 408: be not for further processing, finish current flow process.
Step 409: the establishment of protocol platform control exchange chip< *, *, V1〉and list item, finish current flow process.
Among the foregoing description one or the embodiment two, judge at the forwarding layer usually< *, *, VID〉and list item and carry out accordingly forwarding operation to unknown multicast packets according to judged result.But, owing to set up<S G, VID at key-course〉list item,< *, G, VID〉list item and< *, *, VID〉list item, therefore after transmitting layer and receiving a multicast message, at first search<S G, VID〉list item and< *, G, VID〉and list item, illustrate that then this multicast message is known multicast message, is forwarded to this known multicast message the host port of this coupling if find the host port of coupling; If do not find the host port of coupling, illustrate that then this multicast message is a unknown multicast packets, further search< *, *, VID〉list item, when find< *, *, VID〉and behind the list item, this unknown multicast packets is forwarded to this< *, *, VID〉and router port in the list item.
With a concrete application example operating process of transmitting layer in the foregoing description is described below, is illustrated in figure 5 as exchange chip and receives multicast message<S1, G1, V1 the back detailed process that this multicast message is transmitted:
Step 501: ethernet switching device receives multicast message<S1, G1, V1 〉.
Step 502: search<S G, V1〉whether success of list item, if then execution in step 505; Otherwise, execution in step 503.
Step 503: search< *, G, V1〉whether success of list item, if then execution in step 506; Otherwise, execution in step 504.
Step 504: search< *, *, V1〉whether success of list item, if then execution in step 507; Otherwise, execution in step 508.
Step 505:, G, V1 according to<S〉coupling port in the list item transmits, and finishes current flow process.
Step 506: according to< *, G, V1〉and coupling port in the list item transmits, and finishes current flow process.
Step 507: according to< *, *, V1〉and coupling port in the list item transmits, and finishes current flow process.
Step 508:, finish current flow process according to the default of exchange chip transmitted.
In the foregoing description two, in management level not broadcast capability of unknown multicast is set usually, this function is a kind of optional command, can make administration configuration to the processing of unknown multicast packets by this function management person.Under default situation, can close not broadcast capability of this unknown multicast, all of the port of unknown multicast packets in VLAN broadcasted forwarding.
When the keeper opens this unknown multicast not behind the broadcast capability by command configuration, protocol platform control exchange chip generates< *, *, VID〉list item, exchange chip to the unknown multicast packets that receives according to< *, *, VID〉and list item transmits to router port; After receiving unknown multicast packets, search< *, *, VID〉and the list item failure, exchange chip can be set unknown multicast packets is carried out discard processing.
When the keeper closes the unknown multicast opened not behind the broadcast capability by command configuration, protocol platform can not control exchange chip and generate< *, *, VID〉and list item, can be provided with exchange chip all of the port of unknown multicast packets in VLAN broadcasted forwarding this moment.
The operating process of management level in the foregoing description is described with a concrete application example below, is illustrated in figure 6 as management level exchange chip is provided with the not detailed process of broadcast capability of unknown multicast:
Step 601: ethernet switching device is opened the IGMP-Snooping function.
Step 602: whether current VLAN opens not broadcast capability of unknown multicast, if then execution in step 603; Otherwise, execution in step 604.
Step 603: exchange chip is set the unknown multicast packets of searching failure is taked discard processing, finish current flow process.
Step 604: exchange chip is set adopts broadcasting to transmit, finish current flow process to the unknown multicast packets of searching failure.
The 3rd embodiment flow chart of the inventive method as shown in Figure 7, this embodiment shows on the basis of embodiment two, when the unknown multicast of closing unlatching not behind the broadcast capability or when aging router port is arranged in the VLAN, the process that protocol platform control exchange chip is safeguarded the unknown multicast packets forwarding-table item:
Step 701: whether close not broadcast capability of the unknown multicast opened, if then execution in step 706; Otherwise, execution in step 702.
Whether there is aging router port in the step 702:VLAN, if then execution in step 703; Otherwise, return step 701.
Step 703: aging router port in the deletion unknown multicast packets forwarding-table item.
Step 704: whether have router port in the unknown multicast packets forwarding-table item, if then execution in step 705; Otherwise, return step 701.
Step 705: deletion unknown multicast packets forwarding-table item, finish current flow process.
Corresponding with method, the present invention also provides the device of realizing that unknown multicast packets is transmitted to router port, and this device is used to set up the unknown multicast packets forwarding-table item, and the unknown multicast packets that receives is forwarded to router port in this list item.
The first embodiment block diagram that the present invention realizes the device that unknown multicast packets is transmitted to router port is as shown in Figure 8:
This device comprises: set up unit 810, search unit 820, judging unit 830 and performance element 840.
Wherein, setting up unit 810 is used to satisfy when pre-conditioned, set up the unknown multicast packets forwarding-table item, described unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, has comprised the router port of virtual LAN VLAN in this forwarding-table item; Search unit 820 and be used to judge when the multicast message that receives is unknown multicast packets, search described unknown multicast packets forwarding-table item; Whether judging unit 830 is used for the disconnected described unit 820 of searching and searches successfully; Performance element 840 is used for when described judging unit 830 judgements are searched successfully described unknown multicast packets being forwarded to described router port; When failure is searched in described judging unit 830 judgements, according to the described unknown multicast packets of default processing.
The second embodiment block diagram that the present invention realizes the device that unknown multicast packets is transmitted to router port is as shown in Figure 9:
This device comprises: default unit 910, operating unit 920 is set up unit 930, searches unit 940, judging unit 950, performance element 960, delete cells 970 and maintenance unit 980.
Wherein, default unit 910 is used for setting in advance not broadcast capability of unknown multicast in described VLAN; Operating unit 920 is used for the router port according to the described VLAN that intercepts and learn by the IGMP-Snooping function, opens not broadcast capability of described unknown multicast; Setting up unit 930 is used for opening unknown multicasts not behind the broadcast capability at described operating unit 920, set up the unknown multicast packets forwarding-table item, described unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, has comprised the router port of virtual LAN VLAN in this forwarding-table item; Search unit 940 and be used to judge when the multicast message that receives is unknown multicast packets, search the unknown multicast packets forwarding-table item; Judging unit 950 is used to judge whether the described unit 940 of searching is searched successfully; Performance element 960 is used for when described judging unit 950 judgements are searched successfully described unknown multicast packets being forwarded to described router port, when failure is searched in described judging unit 950 judgements, according to the described unknown multicast packets of default processing; Delete cells 970 is used for described operating unit 920 and closes unknown multicast not behind the broadcast capability, and the unknown multicast packets forwarding-table item that unit 930 is set up is set up in deletion; Maintenance unit 980 is used for deleting the aging router port of described unknown multicast packets forwarding-table item, and when not having router port in the described unknown multicast packets forwarding-table item, deletes described unknown multicast packets forwarding-table item.
Device embodiment provided by the present invention does not repeat them here realizing that the details and the method embodiment of unknown multicast packets when router port is transmitted is similar.
By the description of the above embodiment of the invention as can be known, using the present invention can realize creating and safeguard all Layer 2 Multicast forwarding-table items in the exchange chip by protocol platform, the forwarding-table item of protocol platform and exchange chip can be consistent, reduced the complexity that unknown multicast packets is transmitted to router port, shield the difference of exchange chip, be convenient to the inter-product transplanting of exchange chip; Therefore forwarding owing to having realized by the unknown multicast packets forwarding-table item unknown multicast packets has reduced the impact of unknown multicast packets to CPU, has improved the performance of switching equipment.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (12)

1. a method that realizes that unknown multicast packets is transmitted to router port is characterized in that, comprising:
Satisfy when pre-conditioned, set up the unknown multicast packets forwarding-table item, described unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, has comprised the router port of virtual LAN VLAN in this forwarding-table item;
Judge when the multicast message that receives is unknown multicast packets, search described unknown multicast packets forwarding-table item;
When described searching successfully, described unknown multicast packets is forwarded to described router port.
2. method according to claim 1 is characterized in that, describedly satisfies pre-conditioned comprising:
In described VLAN, set in advance not broadcast capability of unknown multicast;
According to the router port of the described VLAN that intercepts and learn by the IGMP-Snooping function, open not broadcast capability of described unknown multicast.
3. method according to claim 2 is characterized in that, also comprises:
Close unknown multicast in the described VLAN not behind the broadcast capability, delete described unknown multicast packets forwarding-table item.
4. method according to claim 1 is characterized in that, also comprises:
Delete router port aging in the described unknown multicast packets forwarding-table item;
When not having router port in the described unknown multicast packets forwarding-table item, delete described unknown multicast packets forwarding-table item.
5. method according to claim 1 is characterized in that, the multicast message that described judgement receives is that unknown multicast packets is realized by following mode:
Search the multicast forwarding list item of known multicast source address and destination address and the multicast forwarding list item of known multicast destination address successively after receiving multicast message,, then transmit according to above-mentioned forwarding-table item as coupling; As do not match, then described multicast message is judged as unknown multicast packets.
6. according to any described method of claim 1 to 5, it is characterized in that, further comprise:
Search when unsuccessful when described, handle described unknown multicast packets according to default.
7. method according to claim 6 is characterized in that, describedly handles described unknown multicast packets and comprises according to default:
According to default described unknown multicast packets is transmitted to the port of described VLAN by the mode of broadcasting; Or described unknown multicast packets is abandoned according to default.
8. a device of realizing that unknown multicast packets is transmitted to router port is characterized in that, comprising:
Set up the unit, be used to satisfy when pre-conditioned, set up the unknown multicast packets forwarding-table item, described unknown multicast packets forwarding-table item is the forwarding-table item to all multicast message source addresses and destination address wildcard, has comprised the router port of virtual LAN VLAN in this forwarding-table item;
Search the unit, be used to judge when the multicast message that receives is unknown multicast packets, search described unknown multicast packets forwarding-table item;
Judging unit is used to judge whether the described unit of searching is searched successfully;
Performance element is used for when described judgment unit judges is searched successfully described unknown multicast packets being forwarded to described router port.
9. device according to claim 8 is characterized in that, described device also comprises:
Default unit is used for setting in advance not broadcast capability of unknown multicast in described VLAN;
Operating unit is used for the router port according to the described VLAN that intercepts and learn by the IGMP-Snooping function, opens not broadcast capability of described unknown multicast.
10. device according to claim 9 is characterized in that, described operating unit is further used for closing not broadcast capability of described unknown multicast, and described device also comprises:
Delete cells is used for described operating unit and closes unknown multicast not behind the broadcast capability, deletes described unknown multicast packets forwarding-table item.
11. device according to claim 8 is characterized in that, described device also comprises:
Maintenance unit is used for deleting the aging router port of described unknown multicast packets forwarding-table item, and when not having router port in the described unknown multicast packets forwarding-table item, deletes described unknown multicast packets forwarding-table item.
12. device according to claim 8 is characterized in that, when described judgment unit judges was searched failure, described performance element was further used for according to the described unknown multicast packets of default processing.
CN200710145588XA 2007-08-28 2007-08-28 Method and device to implement forwarding of unknown multicast packet to router port Active CN101159665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710145588XA CN101159665B (en) 2007-08-28 2007-08-28 Method and device to implement forwarding of unknown multicast packet to router port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710145588XA CN101159665B (en) 2007-08-28 2007-08-28 Method and device to implement forwarding of unknown multicast packet to router port

Publications (2)

Publication Number Publication Date
CN101159665A true CN101159665A (en) 2008-04-09
CN101159665B CN101159665B (en) 2010-04-14

Family

ID=39307590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710145588XA Active CN101159665B (en) 2007-08-28 2007-08-28 Method and device to implement forwarding of unknown multicast packet to router port

Country Status (1)

Country Link
CN (1) CN101159665B (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860483A (en) * 2010-06-01 2010-10-13 中兴通讯股份有限公司 BFD realization method and device based on chip lookup table
CN101540692B (en) * 2009-04-14 2011-07-27 杭州华三通信技术有限公司 Dynamic multicast configuration method and node equipment
CN101425976B (en) * 2008-12-09 2011-08-24 中兴通讯股份有限公司 Method for multicast data packet forwarding control
CN103368850A (en) * 2013-07-16 2013-10-23 杭州华三通信技术有限公司 Method and device for processing unicast message with unknown destination
CN103986658A (en) * 2014-05-14 2014-08-13 北京锐安科技有限公司 Message output method and device
CN104683267A (en) * 2013-11-26 2015-06-03 浙江大华系统工程有限公司 Data forwarding method, data forwarding device, and switching equipment
CN104753796A (en) * 2013-12-30 2015-07-01 上海斐讯数据通信技术有限公司 Method for optimizing multicast routing table building
WO2015131486A1 (en) * 2014-03-07 2015-09-11 中兴通讯股份有限公司 Multicast packet forwarding method and device
CN105227465A (en) * 2014-06-23 2016-01-06 杭州迪普科技有限公司 A kind of CPU Proxy Method and the network equipment
CN105530188A (en) * 2014-10-27 2016-04-27 杭州迪普科技有限公司 Multicast forwarding method and device
WO2015071914A3 (en) * 2013-11-14 2016-09-09 Hewlett-Packard Development Company, L.P. Multicast data management
CN106059935A (en) * 2016-07-29 2016-10-26 杭州华三通信技术有限公司 Processing method and processing apparatus for unknown multicast message
CN106713348A (en) * 2017-01-17 2017-05-24 深圳市西迪特科技有限公司 OLT multicast uplink protocol message forwarding method and system
CN107623636A (en) * 2016-07-13 2018-01-23 华为技术有限公司 A kind of user isolation method and interchanger
CN109067585A (en) * 2018-08-15 2018-12-21 杭州迪普科技股份有限公司 A kind of inquiry ACL table item delivery method and device
CN110398918A (en) * 2019-07-12 2019-11-01 中国电信集团工会上海市委员会 A kind of multicast flow control system of home gateway
CN110708329A (en) * 2019-10-16 2020-01-17 盛科网络(苏州)有限公司 Method for identifying unknown tunnel message based on UDF
CN110830371A (en) * 2019-11-13 2020-02-21 迈普通信技术股份有限公司 Message redirection method and device, electronic equipment and readable storage medium
CN111130816A (en) * 2019-12-27 2020-05-08 北京东土军悦科技有限公司 Message forwarding processing equipment, method, device and storage medium
WO2020103574A1 (en) * 2018-11-23 2020-05-28 中兴通讯股份有限公司 Message processing method and device, and storage medium
CN111970201A (en) * 2020-08-28 2020-11-20 迈普通信技术股份有限公司 Multi-chip cascade forwarding system and forwarding control method
CN114244768A (en) * 2021-12-23 2022-03-25 北京东土军悦科技有限公司 Forwarding method, device, equipment and storage medium for two-layer unknown multicast
CN114885190A (en) * 2022-07-07 2022-08-09 中央广播电视总台 Method, system, equipment and storage medium for multicast traffic detection
CN115514721A (en) * 2022-09-23 2022-12-23 北京东土军悦科技有限公司 Unknown multicast data processing method and device, computing equipment and storage medium
WO2024021672A1 (en) * 2022-07-25 2024-02-01 中兴通讯股份有限公司 Multicast packet processing method and device, storage medium, and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7095741B1 (en) * 2000-12-20 2006-08-22 Cisco Technology, Inc. Port isolation for restricting traffic flow on layer 2 switches
US7570639B2 (en) * 2004-11-30 2009-08-04 Broadcom Corporation Multicast trunking in a network device
US7756146B2 (en) * 2005-03-08 2010-07-13 Nippon Telegraph And Telephone Corporation Flooding reduction method
CN100466606C (en) * 2005-08-24 2009-03-04 杭州华三通信技术有限公司 Unknown multicasting message processing method

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425976B (en) * 2008-12-09 2011-08-24 中兴通讯股份有限公司 Method for multicast data packet forwarding control
CN101540692B (en) * 2009-04-14 2011-07-27 杭州华三通信技术有限公司 Dynamic multicast configuration method and node equipment
CN101860483A (en) * 2010-06-01 2010-10-13 中兴通讯股份有限公司 BFD realization method and device based on chip lookup table
CN101860483B (en) * 2010-06-01 2015-01-28 中兴通讯股份有限公司 BFD realization method and device based on chip lookup table
CN103368850A (en) * 2013-07-16 2013-10-23 杭州华三通信技术有限公司 Method and device for processing unicast message with unknown destination
CN103368850B (en) * 2013-07-16 2016-12-28 杭州华三通信技术有限公司 The processing method of a kind of purpose unknown unicast message and equipment
WO2015071914A3 (en) * 2013-11-14 2016-09-09 Hewlett-Packard Development Company, L.P. Multicast data management
CN104683267A (en) * 2013-11-26 2015-06-03 浙江大华系统工程有限公司 Data forwarding method, data forwarding device, and switching equipment
CN104683267B (en) * 2013-11-26 2018-09-28 浙江大华系统工程有限公司 A kind of data forwarding method, device and switching equipment
CN104753796A (en) * 2013-12-30 2015-07-01 上海斐讯数据通信技术有限公司 Method for optimizing multicast routing table building
WO2015131486A1 (en) * 2014-03-07 2015-09-11 中兴通讯股份有限公司 Multicast packet forwarding method and device
US10033648B2 (en) 2014-03-07 2018-07-24 Zte Corporation Multicast message forwarding method and device
CN103986658B (en) * 2014-05-14 2017-06-06 北京锐安科技有限公司 A kind of message output intent and device
CN103986658A (en) * 2014-05-14 2014-08-13 北京锐安科技有限公司 Message output method and device
CN105227465B (en) * 2014-06-23 2018-09-04 杭州迪普科技股份有限公司 A kind of CPU agent method and the network equipment
CN105227465A (en) * 2014-06-23 2016-01-06 杭州迪普科技有限公司 A kind of CPU Proxy Method and the network equipment
CN105530188B (en) * 2014-10-27 2019-01-22 杭州迪普科技股份有限公司 A kind of multicast forward method and device
CN105530188A (en) * 2014-10-27 2016-04-27 杭州迪普科技有限公司 Multicast forwarding method and device
CN107623636A (en) * 2016-07-13 2018-01-23 华为技术有限公司 A kind of user isolation method and interchanger
CN107623636B (en) * 2016-07-13 2020-08-25 华为技术有限公司 User isolation method and switch
CN106059935A (en) * 2016-07-29 2016-10-26 杭州华三通信技术有限公司 Processing method and processing apparatus for unknown multicast message
CN106059935B (en) * 2016-07-29 2019-12-06 新华三技术有限公司 unknown multicast message processing method and device
CN106713348B (en) * 2017-01-17 2019-12-31 无锡雷华网络技术有限公司 OLT multicast uplink protocol message forwarding method and system
CN106713348A (en) * 2017-01-17 2017-05-24 深圳市西迪特科技有限公司 OLT multicast uplink protocol message forwarding method and system
CN109067585A (en) * 2018-08-15 2018-12-21 杭州迪普科技股份有限公司 A kind of inquiry ACL table item delivery method and device
WO2020103574A1 (en) * 2018-11-23 2020-05-28 中兴通讯股份有限公司 Message processing method and device, and storage medium
CN111224882A (en) * 2018-11-23 2020-06-02 中兴通讯股份有限公司 Message processing method and device and storage medium
CN110398918A (en) * 2019-07-12 2019-11-01 中国电信集团工会上海市委员会 A kind of multicast flow control system of home gateway
CN110708329A (en) * 2019-10-16 2020-01-17 盛科网络(苏州)有限公司 Method for identifying unknown tunnel message based on UDF
CN110830371A (en) * 2019-11-13 2020-02-21 迈普通信技术股份有限公司 Message redirection method and device, electronic equipment and readable storage medium
CN111130816A (en) * 2019-12-27 2020-05-08 北京东土军悦科技有限公司 Message forwarding processing equipment, method, device and storage medium
CN111130816B (en) * 2019-12-27 2022-06-24 北京东土军悦科技有限公司 Message forwarding processing equipment, method, device and storage medium
CN111970201A (en) * 2020-08-28 2020-11-20 迈普通信技术股份有限公司 Multi-chip cascade forwarding system and forwarding control method
CN114244768A (en) * 2021-12-23 2022-03-25 北京东土军悦科技有限公司 Forwarding method, device, equipment and storage medium for two-layer unknown multicast
CN114885190A (en) * 2022-07-07 2022-08-09 中央广播电视总台 Method, system, equipment and storage medium for multicast traffic detection
CN114885190B (en) * 2022-07-07 2022-11-08 中央广播电视总台 Method, system, equipment and storage medium for multicast traffic detection
WO2024021672A1 (en) * 2022-07-25 2024-02-01 中兴通讯股份有限公司 Multicast packet processing method and device, storage medium, and electronic device
CN115514721A (en) * 2022-09-23 2022-12-23 北京东土军悦科技有限公司 Unknown multicast data processing method and device, computing equipment and storage medium
CN115514721B (en) * 2022-09-23 2023-11-07 北京东土军悦科技有限公司 Unknown multicast data processing method and device, computing equipment and storage medium

Also Published As

Publication number Publication date
CN101159665B (en) 2010-04-14

Similar Documents

Publication Publication Date Title
CN101159665B (en) Method and device to implement forwarding of unknown multicast packet to router port
CN100566282C (en) The Apparatus and method for of control transmitting multicast data
CN100456740C (en) Layer 2 switch
CN102075439B (en) Multicast message transmitting method and routing equipment
US20070011350A1 (en) Method and apparatus for multicast management of user interface in a network access device
CN101616014A (en) A kind of method that realizes cross-virtual private local area network multicast
US8045461B2 (en) Method and device for implementing virtual-switch
CN102457386B (en) Multicast message transmission method in bidirectional PIM (Personal Information Management) of communication equipment and communication equipment
CN100407704C (en) Method of dynamically learning address on MAC layer
CN102215172B (en) A kind of method and system for realizing cross-virtual private local area network multicast
CN101286990A (en) Forwarding method and apparatus of double-layer multicast
CN106375223B (en) A kind of data forwarding system and method based on SDN
CN102137000A (en) Method, device and system for establishing switching multicast distribution tree
CN100527713C (en) Multicast transmission method based on virtual distribution net in network
CN100466606C (en) Unknown multicasting message processing method
EP2897328B1 (en) Method, system and apparatus for establishing communication link
CN103716172A (en) Multiple protocol label switching-based operation, administration and maintenance (OAM) method and apparatus
CN1996956A (en) L3 network device and method for multi-cast cross-VLAN forwarding
CN106209558B (en) The method for forming same mac address forwarding table item extension forwarding table capacity
CN103905285A (en) Method for dividing users with the same MAC address into multiple different VLANs
CN100377549C (en) Method for retransmitting data frame by data retransmitting entity
CN102694734B (en) Two-layer switching equipment realizes the method for multicast based on linux kernel bridge
CN102244583A (en) Method and network equipment for forwarding multicast streaming
CN105376161B (en) Multicast distribution tree switching method and device
US11323279B1 (en) Internet group management protocol host mobility in ethernet virtual private network multicast networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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