CN110391919A - Flux of multicast retransmission method, device, electronic equipment - Google Patents
Flux of multicast retransmission method, device, electronic equipment Download PDFInfo
- Publication number
- CN110391919A CN110391919A CN201910628921.5A CN201910628921A CN110391919A CN 110391919 A CN110391919 A CN 110391919A CN 201910628921 A CN201910628921 A CN 201910628921A CN 110391919 A CN110391919 A CN 110391919A
- Authority
- CN
- China
- Prior art keywords
- vlan
- multicast
- several
- travelling
- layer
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/38—Flow based routing
Abstract
The application provides a kind of flux of multicast retransmission method, device, electronic equipment and machine readable storage medium.In this application, it receives and adds a group message from several multicasts corresponding with several multicast receiving ends;Wherein, the multicast adds group message to include at least multicast ip address, VLAN mark;Add a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generates corresponding travelling across VLAN two-layer retransmitting table item;Receive the flux of multicast forwarded via the three-layer network appliance from the multicast source;Based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding target multicast reception end, reduces the resource consumption of the network equipment and the network operation cost of user.
Description
Technical field
This application involves fields of communication technology more particularly to flux of multicast retransmission method, device, electronic equipment and machine can
Read storage medium.
Background technique
Multicast is a kind of one-to-many network protocol of data distribution;Based on multicast, the multicast source in network may be implemented
A message sent is only needed, which point copies as N part by the network equipment, and is distributed to addition this multicast and corresponds to multicast
Multiple multicast reception ends of group, and the other hosts for not being added to the multicast group cannot then receive the message.
VLAN (Virtual Local Area Network, virtual LAN) is a kind of works in OSI (Open
System Interconnection, open system interconnection) model layers 2 and 3 network protocol.Based on VLAN,
Several equipment in a big double layer network in local area network (Local Area Network) can logically be divided
To (note that not being physically to divide) several small double layer networks (or perhaps smaller local network LAN);Wherein, often
A corresponding VLAN of small double layer network, and distinguished by different VLAN ID (namely VLAN is identified) instruction, in different VLAN
The broadcast domain of double layer network is mutually isolated where equipment, thus, it is possible to realize business isolation and be effectively prevented from broadcast
Storm.
Summary of the invention
The application provides a kind of flux of multicast retransmission method, and the double layer network that the method is applied in multicast network is set
Standby, the multicast network further includes multicast source, three-layer network appliance, several multicast receiving ends;Wherein, several multicast receptions
It terminates into the two-layer network device, the multicast source accesses the three-layer network appliance, and the multicast source is through two layers of net
Network equipment and the three-layer network appliance are connected with the multicast reception end through network, which comprises
It receives and adds a group message from several multicasts corresponding with several multicast receiving ends;Wherein, the multicast
Group message is added to include at least multicast ip address, VLAN mark;
Add a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generates corresponding travelling across VLAN
Two-layer retransmitting table item;
Receive the flux of multicast forwarded via the three-layer network appliance from the multicast source;
Based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding target multicast reception end.
Optionally, described to add a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generation pair
The travelling across VLAN two-layer retransmitting table item answered, comprising:
Comparing several multicasts adds the corresponding several multicast ip address of group message and several VLAN to identify whether all
It is identical;
If several multicast ip address are all identical and several VLAN mark is different, election it is determining with it is described several
VLAN identifies corresponding target M-VLAN mark;
Generate travelling across VLAN two-layer retransmitting table item corresponding with the target M-VLAN mark.
Optionally, the two-layer network device supports IGMP Snooping, and the election is determining to mark with several VLAN
Know corresponding target M-VLAN mark, comprising:
It counts several VLAN and identifies corresponding VLAN number as the first VLAN number;
It counts the two-layer network device and has enabled the corresponding VLAN number of VLAN interface of IGMP Snooping as the
Two VLAN numbers;Wherein, the described 2nd VLAN number is greater than the described first VLAN number;
With the difference of the described 2nd VLAN number and the described first VLAN number, as reference M-VLAN mark;
If described identify in several VLAN marks with reference to M-VLAN, elect described with reference to M-VLAN mark
It is identified as the target M-VLAN;Otherwise, it in several VLAN marks, elects and refers to M-VLAN mark with described
Know the smallest VLAN mark of difference to identify as the target M-VLAN.
Optionally, the travelling across VLAN two-layer retransmitting table includes at least M-VLAN mark, user vlan mark group, multicast
MAC Address, inbound port group, it is described to generate travelling across VLAN two-layer retransmitting table item corresponding with the target M-VLAN mark, comprising:
Based on several multicast ip address, corresponding target multicast mac address is calculated;
It obtains several multicasts and adds the corresponding several target inbound ports of group message;
In the travelling across VLAN two-layer retransmitting table, target M-VLAN mark, several VLAN are identified, is described
Target multicast mac address and several target inbound ports, save as the correspondence one in the travelling across VLAN two-layer retransmitting table respectively
List item.
Optionally, after the target M-VLAN identifies corresponding travelling across VLAN two-layer retransmitting table item generation, further includes:
Add a group message if receiving and carrying several new multicasts that newly-increased VLAN is identified;Wherein, several new multicasts add group
The multicast ip address of message is identical as the corresponding multicast ip address of travelling across VLAN two-layer retransmitting table item of target M-VLAN mark;
By the newly-increased VLAN mark and its corresponding inbound port, update to it is corresponding with the target M-VLAN mark across
In the user vlan mark group of VLAN two-layer retransmitting table item.
Optionally, described to be based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding target multicast
Receiving end, comprising:
Obtain the corresponding flow multicast mac address of the flux of multicast;
Using the flow multicast mac address as index is searched, search whether to deposit in the travelling across VLAN two-layer retransmitting table
With the flow multicast mac address is matched matches travelling across VLAN two-layer retransmitting table item;
If it exists, then the inbound port group based on the matching travelling across VLAN two-layer retransmitting table item, divides from by the flux of multicast
It is not forwarded to corresponding target multicast reception end.
Optionally, further includes:
If it does not exist with the flow multicast mac address is matched matches travelling across VLAN two-layer retransmitting table item, then be based on IGMP
The flux of multicast is forwarded to target multicast reception end by Snooping forwarding table.
The application also provides a kind of flux of multicast retransmission unit, and the double layer network that described device is applied in multicast network is set
Standby, the multicast network further includes multicast source, three-layer network appliance, several multicast receiving ends;Wherein, several multicast receptions
It terminates into the two-layer network device, the multicast source accesses the three-layer network appliance, and the multicast source is through two layers of net
Network equipment and the three-layer network appliance are connected with the multicast reception end through network, and described device includes:
Receiving module receives and adds a group message from several multicasts corresponding with several multicast receiving ends;Wherein,
The multicast adds group message to include at least multicast ip address, VLAN mark;
Generation module adds a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generates and corresponds to
Travelling across VLAN two-layer retransmitting table item;
The receiving module is further, receives the multicast forwarded via the three-layer network appliance from the multicast source
Flow;
Forwarding module is based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding target multicast and is connect
Receiving end.
The application also provides a kind of electronic equipment, including communication interface, processor, memory and bus, and the communication connects
Pass through bus between mouth, the processor and the memory to be connected with each other;
Machine readable instructions are stored in the memory, the processor is executed by calling the machine readable instructions
Above-mentioned method.
The application also provides a kind of machine readable storage medium, and the machine readable storage medium is stored with machine readable finger
It enables, the machine readable instructions realize the above method when being called and being executed by processor.
By above embodiments, a group message is added by receiving several multicasts based on two-layer network device;And based on described
Several multicasts add a group message, and election generates target M-VLAN mark and its corresponding travelling across VLAN two-layer retransmitting table item, so that multicast
Flow be based on travelling across VLAN two-layer retransmitting table be forwarded to corresponding target multicast reception end, reduce the network equipment resource consumption and
The network operation cost of user.
Detailed description of the invention
Fig. 1 is a kind of topological diagram for multicast network that an exemplary embodiment provides;
Fig. 2 is a kind of flow chart for flux of multicast retransmission method that an exemplary embodiment provides;
Fig. 3 is the topological diagram for another multicast network that an exemplary embodiment provides;
Fig. 4 is a kind of block diagram for flux of multicast retransmission unit that an exemplary embodiment provides;
Fig. 5 is the hardware structure diagram for a kind of electronic equipment that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, below first to this Shen
Please embodiment be related to flux of multicast forwarding the relevant technologies, be briefly described.
Referring to Figure 1, Fig. 1 is a kind of topological diagram for multicast network that one embodiment of the application provides.
Multicast network as shown in Figure 1 includes: multicast source (SRC), three-layer network appliance (RT1), two-layer network device
(SW1), several multicast receiving ends (H1, H2, H3);
Wherein, by different VLAN, (H1, H2, H3 respectively correspond VLAN to several multicast receiving ends (H1, H2, H3) respectively
10, VLAN 20, VLAN 30) access two-layer network device (SW1), multicast source (SRC) access three-layer network appliance (RT1), group
Source (SRC) is broadcast through three-layer network appliance (RT1) and two-layer network device (SW1) through the connected communication of network.
As shown in Figure 1, the flux of multicast that multicast source (SRC) is sent, is forwarded to double layer network through three-layer network appliance (RT1)
Equipment (SW1), by two-layer network device (SW1) by the flux of multicast replicate 3 parts, be forwarded to respectively VLAN 10, VLAN 20,
In VLAN 30, and by multicast reception end H1, H2, H3 in VLAN 10, VLAN 20, VLAN 30.
On the basis of group-network construction illustrated above, the application is directed to one kind, is added based on received several multicasts
Group message generates target M-VLAN mark and its corresponding travelling across VLAN two-layer retransmitting table item, and is based on travelling across VLAN two-layer retransmitting table
Item executes the technical solution of flux of multicast forwarding.
When realizing, multicast network includes two-layer network device, and the multicast network further includes multicast source, three-layer network
Equipment, several multicast receiving ends;Wherein, the two-layer network device is accessed in several multicast receiving ends, and the multicast source connects
Enter the three-layer network appliance, the multicast source is through the two-layer network device and the three-layer network appliance, with the multicast
Receiving end is connected through network.
Further, two-layer network device is received adds from several multicasts corresponding with several multicast receiving ends
Group message;Wherein, the multicast adds group message to include at least multicast ip address, VLAN mark;Add group based on several multicasts
Message generates corresponding travelling across VLAN two-layer retransmitting table item in preset travelling across VLAN two-layer retransmitting table;It receives and comes from the multicast
The flux of multicast forwarded via the three-layer network appliance in source;Based on the travelling across VLAN two-layer retransmitting table, by the multicast data flow
Amount is forwarded to corresponding target multicast reception end.
In above scheme, a group message is added by receiving several multicasts based on two-layer network device;And if based on described
Dry multicast adds a group message, and election generates target M-VLAN mark and its corresponding travelling across VLAN two-layer retransmitting table item, so that multicast data flow
Amount is forwarded to corresponding target multicast reception end based on travelling across VLAN two-layer retransmitting table, reduces the resource consumption and use of the network equipment
The network operation cost at family.
The application is described below by specific embodiment and in conjunction with specific application scenarios.
Referring to FIG. 2, Fig. 2 is a kind of flow chart for flux of multicast retransmission method that one embodiment of the application provides, it is described
Method is applied to the two-layer network device in multicast network, and the multicast network further includes multicast source, three-layer network appliance, several
Multicast reception end;Wherein, the two-layer network device is accessed in several multicast receiving ends, and the multicast source accesses described three layers
The network equipment, the multicast source is through the two-layer network device and the three-layer network appliance, with the multicast reception end through net
Network is connected, and the above method executes following steps:
Step 202 receives and adds a group message from several multicasts corresponding with several multicast receiving ends;Wherein,
The multicast adds group message to include at least multicast ip address, VLAN mark.
Step 204 adds a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generates and corresponds to
Travelling across VLAN two-layer retransmitting table item.
Step 206 receives the flux of multicast forwarded via the three-layer network appliance from the multicast source.
Step 208 is based on the travelling across VLAN two-layer retransmitting table, and the flux of multicast is forwarded to corresponding target multicast reception
End.
In the present specification, above-mentioned two-layer network device refers to any network for supporting the OSI two-layer protocol including multicast
Equipment.
For example, in practical applications, above-mentioned two-layer network device, which can specifically include, supports Layer 2 Multicast agreement and VLAN
The interchanger of agreement, supports Layer 2 Multicast agreement and VLAN agreement at the router for supporting Layer 2 Multicast agreement and VLAN agreement
Firewall etc..
In a kind of embodiment shown, above-mentioned two-layer network device supports IGMP Snooping (Internet
Group Management Protocol Snooping, internet group management protocol snooping);
Wherein, IGMP Snooping refer to operate on two-layer network device multicast constraint mechanism, for manage and
Multicast group is controlled, adds the corresponding inbound port of group message and above-mentioned multicast mac address to establish mapping relations for above-mentioned several multicasts,
IGMP Snooping detailed schematic, refers to DESCRIPTION OF THE PRIOR ART, which is not described herein again.
In the present specification, above-mentioned three-layer network appliance refers to that supporting includes bis- layers of the OSI of multicast and appointing for three layer protocols
What network equipment.
For example, in practical applications, above-mentioned three-layer network appliance, which can specifically include, supports Layer 2 Multicast agreement, VLAN association
The interchanger of view and three-layer routing agreement supports Layer 2 Multicast agreement, the router of VLAN agreement and three-layer routing agreement, support
Layer 2 Multicast agreement, VLAN agreement and firewall of three-layer routing agreement etc..
In the present specification, above-mentioned multicast source, may include be connected with above-mentioned three-layer network appliance multicast can occur
Any equipment of flow.
For example, in practical applications, above-mentioned multicast source can specifically include the PC machine that flux of multicast can occur, service
Device, mobile terminal, cluster, the source station for playing broadcasting and TV program and the source station for playing internet etc..
In the present specification, above-mentioned several multicast receiving ends may include that several are connected with above-mentioned two-layer network device
Any equipment that can receive flux of multicast.
For example, in practical applications, above-mentioned several multicast receiving ends can specifically include several and can receive multicast data flow
PC machine, server, mobile terminal, cluster of amount etc..
In the present specification, above-mentioned flux of multicast, including any data format for being issued by above-mentioned multicast source and content
Above-mentioned several multicast receiving ends based on multicast are located at several multicast messages in multiple VLAN.
For example, in practical applications, please participate in shown in Fig. 1, above-mentioned flux of multicast can be with multicast source SRC sending based on group
The multicast reception end (H1, H2, H3) broadcast is located at audio stream, video flowing, audio/video flow etc. in multiple VLAN.
In the present specification, above-mentioned multicast network, refer to including above-mentioned two-layer network device, above-mentioned three-layer network appliance,
The IP network of above-mentioned several multicast receiving ends;Wherein, the above-mentioned two-layer network device of above-mentioned several multicast receiving end accesses, above-mentioned group
It broadcasts source and accesses above-mentioned three-layer network appliance, above-mentioned multicast source is and upper through above-mentioned two-layer network device and above-mentioned three-layer network appliance
Several multicast receiving ends are stated through the connected communication of network.
For example, above-mentioned multicast network, shown in Figure 1, the detailed description of specific networking shown in FIG. 1, before referring to
Text explanation, which is not described herein again.
In the present specification, above-mentioned multicast source sends above-mentioned flux of multicast, above-mentioned multicast network in above-mentioned multicast network
It can be triggered on interior above-mentioned two-layer network device and above-mentioned three-layer network appliance and generate multicast corresponding with above-mentioned flux of multicast
Group.
For example, shown in Figure 1, multicast source SRC is in multicast network to multicast ip address when realizing
224.100.1.1 send flux of multicast, then can be triggered on two-layer network device SW1 and three-layer network appliance RT1 generation with it is upper
The corresponding multicast group of flux of multicast is stated, the multicast group corresponding address namely above-mentioned multicast ip address 224.100.1.1.
In the present specification, above-mentioned several multicasts add a group message, including it is being sent respectively by above-mentioned several multicast receiving ends,
Several multicasts that the same multicast group is added add a group message;
Wherein, above-mentioned multicast adds group message to include at least multicast ip address, VLAN mark;
When realizing, above-mentioned several multicast receiving ends can be sent multicast group is added respectively based on IGMP Snooping
The multicast of location adds a group message (join message).
Then above example continues to illustrate, and above-mentioned several multicasts add group message to may include connecing positioned at the multicast of VLAN 10
Receiving end H1, the multicast reception end H2 positioned at VLAN 20, the multicast reception end H3 positioned at VLAN 30, respectively in VLAN 10, VLAN
20, it initiates to carry VLAN mark (namely VLAN ID) respectively for multicast group 224.100.1.1 to SW1 in VLAN 30
10,20,30 3 multicasts add a group message.
In the present specification, it when above-mentioned several multicast receiving ends need to obtain above-mentioned flux of multicast, needs to above-mentioned two
The multicast that layer network device first sends the corresponding multicast group of the above-mentioned flux of multicast of addition adds a group message.
Then above example continues to illustrate, shown in Figure 1, positioned at the multicast reception end H1 of VLAN 10, positioned at VLAN
20 multicast reception end H2, the multicast reception end H3 positioned at VLAN 30, respectively in VLAN 10, VLAN 20, VLAN 30 to
SW1 initiates to add a group message for above-mentioned 3 multicasts of multicast group 224.100.1.1.
In the present specification, above-mentioned two-layer network device is received from corresponding with above-mentioned several multicast receiving ends
Above-mentioned several multicasts add a group message.
Then above example continues to illustrate, and SW1, which is received, to be added from respectively corresponding 3 multicasts with multicast reception end H1, H2, H3
Group message.
In the present specification, above-mentioned M-VLAN mark, refers to being directed to across multiple VLAN on above-mentioned two-layer network device
Above-mentioned flux of multicast binding VLAN mark.
When realizing, above-mentioned M-VLAN mark be can be on above-mentioned two-layer network device in existing several VLAN marks
One, be also possible to newly created VLAN mark on above-mentioned two-layer network device.
Then above example continues to illustrate, and above-mentioned M-VLAN mark can be any one of 10,20,30, above-mentioned
The VLAN that it is 100 that M-VLAN mark, which is also possible to newly created value on above-mentioned two-layer network device, identifies (namely VLAN
100)。
It should be noted that several VLAN mark by user configuration on above-mentioned two-layer network device is indicated
VLAN, also referred to as " user vlan ", the mark of VLAN included by " user vlan ", also referred to as " user vlan mark ".Than
Such as: VLAN 10, VLAN 20, VLAN 30 are " user vlans ", and corresponding " user vlan mark " is respectively 10,20,30.
In the present specification, above-mentioned user vlan mark group, refer on above-mentioned two-layer network device with above-mentioned multicast
The set of the correspondence several " user vlan marks " of the above-mentioned flux of multicast across multiple VLAN of the corresponding binding of VLAN mark.
Then above example continues to illustrate, shown in Figure 1, and above-mentioned user vlan mark group includes the VLAN on SW1
Logo collection can be any one or more of 10,20,30 combination, above-mentioned user vlan mark group be such as 10,20,
30}。
In the present specification, above-mentioned multicast mac address refers to and adds the multicast IP carried in group message with above-mentioned several multicasts
The corresponding Layer 2 Multicast MAC Address in address.
When realizing, above-mentioned multicast mac address occupies 48bit, is " 01005E " (16 by high 24bit respective value
System) it takes the lead, then be spliced with low 24bit of multicast ip address (occupying 32bit).
Then above example continues to illustrate, and above-mentioned several multicasts add the multicast ip address carried in group message to be
224.100.1.1, then corresponding low 24bit of multicast ip address 224.100.1.1 be " 640101 " (hexadecimal), then multicast
It is " 01005E640101 " that IP address 224.100.1.1, which corresponds to multicast mac address,.
In the present specification, above-mentioned inbound port group refers to that above-mentioned two-layer network device receives above-mentioned several multicasts and adds a group report
The set of the corresponding network port of text.
Then above example continues to illustrate, and two-layer network device SW1, which is received, adds group from the above-mentioned several multicasts of H1, H2, H3
The corresponding network port of message is divided into port P1, P2, P3, then above-mentioned inbound port group is { P1, P2, P3 }.
In the present specification, above-mentioned travelling across VLAN two-layer retransmitting table refers on above-mentioned two-layer network device for for across more
The flux of multicast of a VLAN carries out the forwarding table of two layers of forwarding;
Wherein, above-mentioned travelling across VLAN two-layer retransmitting table include at least above-mentioned M-VLAN mark, above-mentioned user vlan mark group,
Above-mentioned multicast mac address, above-mentioned inbound port group.
Then above example continues to illustrate, and above-mentioned travelling across VLAN two-layer retransmitting table refers to exemplified by table 1
Table 1
In the present specification, further, above-mentioned two-layer network device adds a group message based on above-mentioned several multicasts, default
Travelling across VLAN two-layer retransmitting table in, generate corresponding travelling across VLAN two-layer retransmitting table item.
Then above example continues to illustrate, and two-layer network device SW1 is added based on above-mentioned several multicasts from H1, H2, H3
Group message generates corresponding travelling across VLAN two-layer retransmitting table item in above-mentioned travelling across VLAN two-layer retransmitting table, and two layers of above-mentioned travelling across VLAN turn
Forwarding list item refers to the corresponding list item of forwarding-table item number 1 shown in table 1.
In the present specification, above-mentioned target M-VLAN mark, refers to that above-mentioned two-layer network device is based on above-mentioned several groups
Broadcast the M-VLAN mark for adding group message to elect.
Then above example continues to illustrate, shown in Figure 1, and above-mentioned target M-VLAN mark can be 10,20,30
Any one of or other values.
In a kind of embodiment shown, in the generating process of above-mentioned travelling across VLAN two-layer retransmitting table item, above-mentioned two layers
The network equipment, more above-mentioned several multicasts add the corresponding several multicast ip address of group message and several VLAN to identify whether all
It is identical.
Then above example continues to illustrate, and two-layer network device SW1 compares 3 multicasts from H1, H2, H3 and adds a group report
Text checks that 3 multicasts add the corresponding multicast ip address of group message whether identical and 3 multicasts add a group message to take respectively
The VLAN of band identifies whether identical.
In the present specification, further, if above-mentioned several multicast ip address are all identical and above-mentioned several VLAN mark
Difference, the determining above-mentioned target M-VLAN mark corresponding with above-mentioned several VLAN marks of above-mentioned two-layer network device election.
Then above example continues to illustrate, and two-layer network device SW1 compares 3 multicasts from H1, H2, H3 and adds a group report
Text, checking that 3 multicasts add the corresponding multicast ip address of group message all identical (is all 224.100.1.1) and 3 multicasts
Several VLAN mark for adding group message to carry respectively is not identical (above-mentioned several VLAN marks include 10,20,30), then SW1 is elected
Determining above-mentioned target M-VLAN mark corresponding with above-mentioned several VLAN marks.
In the present specification, above-mentioned several VLAN marks, refer to several groups corresponding with above-mentioned target M-VLAN mark
It broadcasts and adds VLAN logo collection included by group message.
Then above example continues to illustrate, and above-mentioned several VLAN marks include that above-mentioned target M-VLAN identifies corresponding multicast
IP address is all identical and several VLAN identify different above-mentioned several multicasts and add VLAN logo collection included by group message:
{10、20、30}。
In the present specification, the above-mentioned first VLAN number refers to that above-mentioned several VLAN identify corresponding VLAN number.
Then above example continues to illustrate, the above-mentioned first VLAN number, for above-mentioned several VLAN mark collection be combined into 10,
20,30 }, which corresponds to VLAN number 3.
In a kind of embodiment shown, during above-mentioned target M-VLAN is identified and is elected, above-mentioned two layers of net
Network equipment counts above-mentioned several VLAN and identifies corresponding VLAN number as the first VLAN number;
Then above example continues to illustrate, above-mentioned two-layer network device, counts above-mentioned several VLAN and identifies corresponding VLAN
Number 3 namely the above-mentioned first VLAN number are 3.
In the present specification, the above-mentioned 2nd VLAN number refers to that above-mentioned two-layer network device has enabled IGMP Snooping
The corresponding VLAN number of VLAN interface;Wherein, the above-mentioned 2nd VLAN number is greater than the above-mentioned first VLAN number;
Then above example continues to illustrate, and the VLAN interface that above-mentioned two-layer network device has enabled IGMP Snooping removes
It include that VLAN 10, VLAN 20, VLAN 30 have been enabled outside IGMP Snooping, also in VLAN 40, VLAN 50, VLAN
60 equal VLAN interfaces have enabled IGMP Snooping namely above-mentioned two-layer network device has enabled the VLAN of IGMP Snooping
The corresponding VLAN collection of interface is combined into { 10,20,30,40,50,60 }, and the above-mentioned 2nd VLAN number is that VLAN set is corresponding
VLAN number, the set correspond to VLAN number 6;Above-mentioned 2nd VLAN number (6) is greater than the above-mentioned first VLAN number (3), namely
Before enabling M-VLAN, it is necessary to enable IGMP Snooping.
In the present specification, above-mentioned to be identified with reference to M-VLAN, refer to for determining above-mentioned target M-VLAN mark
It is identified with reference to VLAN;
Wherein, the above-mentioned difference that the above-mentioned 2nd VLAN number with the above-mentioned first VLAN number are identified as with reference to M-VLAN.
Then above example continues to illustrate, it is above-mentioned with reference to M-VLAN mark can for the above-mentioned 2nd VLAN number (6) and
The difference of above-mentioned first VLAN number (3) namely above-mentioned 3 are identified as with reference to M-VLAN.Certainly, above example be only it is several can
One of energy situation, in another possibility situation, the above-mentioned 2nd VLAN number is 20, and the above-mentioned first VLAN number is
10, then it is above-mentioned to be identified as 10 with reference to M-VLAN.
In the present specification, into one, above-mentioned two-layer network device calculate obtain it is above-mentioned with reference to M-VLAN mark after,
Above-mentioned target M-VLAN mark is determined with reference to M-VLAN mark based on above-mentioned.
In a kind of embodiment shown, if above-mentioned identify in above-mentioned several VLAN marks with reference to M-VLAN,
Above-mentioned two-layer network device election is above-mentioned to be identified with reference to M-VLAN mark as above-mentioned target M-VLAN.
10 are identified as with reference to M-VLAN with above-mentioned, then above example continues to illustrate, above-mentioned to identify with reference to M-VLAN
(10) in above-mentioned several VLAN marks { 10,20,30 }, then using 10 (above-mentioned to be identified with reference to M-VLAN) as above-mentioned target group
Broadcast VLAN mark.
In the another embodiment shown, if above-mentioned do not identify with reference to M-VLAN mark in above-mentioned several VLAN
In, then above-mentioned two-layer network device elects in above-mentioned several VLAN marks and identifies difference most with reference to M-VLAN with above-mentioned
Small VLAN mark is identified as above-mentioned target M-VLAN.
28 are identified as with reference to M-VLAN with above-mentioned, then above example continues to illustrate, above-mentioned to identify with reference to M-VLAN
(28) not in above-mentioned several VLAN marks { 10,20,30 }, in above-mentioned several VLAN marks { 10,20,30 }, 30 and 28 differences
Minimum, then election 30 is identified as above-mentioned target M-VLAN from { 10,20,30 }.
It should be noted that the existing realization of M-VLAN is compared, M-VLAN mark (above-mentioned target M-VLAN mark)
To be automatically generated by above-mentioned two-layer network device by election, without being manually pre-configured with, reduce the network operation of user at
This.
In the present specification, identified after election determines in above-mentioned target M-VLAN, above-mentioned two-layer network device generate with
Above-mentioned target M-VLAN identifies corresponding travelling across VLAN two-layer retransmitting table item.
In a kind of embodiment shown, above-mentioned two-layer network device is based on above-mentioned several multicast ip address, calculating pair
The target multicast mac address answered.
Then above example continues to illustrate, and SW1 is based on above-mentioned several multicast ip address (above-mentioned several multicast ip address phases
Corresponding multicast ip address under same and above-mentioned several VLAN mark different situations) the corresponding target multicast of 224.100.1.1 calculating
MAC Address is 01005E640101, specific multicast ip address and multicast mac address calculation method, above " above-mentioned multicast MAC
It is stated that, which is not described herein again in address ".
In the present specification, further, the above-mentioned several multicasts of above-mentioned two-layer network device acquisition add group message right respectively
Several target inbound ports answered.
Then above example continues to illustrate, and SW1 obtains above-mentioned several multicasts and the corresponding several targets of group message is added to enter
Port P1, P2, P3 namely above-mentioned several target inbound ports include P1, P2, P3.
In the present specification, further, above-mentioned two-layer network device, will be above-mentioned in above-mentioned travelling across VLAN two-layer retransmitting table
Target M-VLAN mark, above-mentioned several VLAN marks, above-mentioned target multicast mac address and above-mentioned several target inbound ports, point
One list item of correspondence in above-mentioned travelling across VLAN two-layer retransmitting table is not saved as.
10 are identified as with above-mentioned target M-VLAN, then above example continues to illustrate, and SW1 is by above-mentioned target M-VLAN
(10), above-mentioned several VLAN marks { 10,20,30 }, above-mentioned target multicast mac address " 01005E640101 " are identified and if above-mentioned
Dry target inbound port { P1, P2, P3 }, one list item of correspondence being stored in above-mentioned travelling across VLAN two-layer retransmitting table, the list item is for example
In table 1 shown in forwarding-table item number 1.
It should be noted that above-mentioned two-layer network device is only needed based on a multicast in above-mentioned travelling across VLAN two-layer retransmitting table
VLAN mark and its corresponding table item can realize that travelling across VLAN flux of multicast forwards, and the existing realization of M-VLAN be compared, without matching
The multiple associating policies set;In addition, the inbound port of above-mentioned travelling across VLAN two-layer retransmitting table is without meeting the existing realization of M-VLAN
In " inbound port must be configured to hybrid type " requirement, thus reduce the resource consumption of the network equipment.
Fig. 3 is referred to, Fig. 3 is the topological diagram for another multicast network that one embodiment of the application provides.
Fig. 3 is changed on the basis of Fig. 1, and Fig. 3 is with the difference of Fig. 1: Fig. 1, which has been increased newly, compared with Fig. 3 is located at VLAN
40 multicast reception end H4.
In the present specification, above-mentioned several new multicasts add a group message, and above-mentioned target M-VLAN mark will be added to by referring to
Several multicasts of the newly-increased VLAN mark of the carrying of corresponding multicast group add a group message;
Wherein, above-mentioned several new multicasts add the multicast ip address of group message corresponding with above-mentioned target M-VLAN mark across
The multicast ip address of VLAN two-layer retransmitting table item is identical.
Then above example continues to illustrate, and please participate in shown in Fig. 3, and above-mentioned several new multicasts add group message to be multicast reception end
H4, the new multicast that the multicast ip address for carrying VLAN 40 (newly-increased VLAN mark) is 224.100.1.1 add a group message;Wherein, should
New multicast adds the multicast ip address of group message and above-mentioned target M-VLAN as shown in Table 1 with being identified as 10 corresponding multicast IP
Location is identical, is all 224.100.1.1;Above-mentioned newly-increased VLAN mark is also 40.
In a kind of embodiment shown, corresponding travelling across VLAN two-layer retransmitting table item is identified in above-mentioned target M-VLAN
After generation, after receiving above-mentioned several new multicasts and adding group message, above-mentioned two-layer network device will above-mentioned newly-increased VLAN identify and its
Corresponding inbound port, updates the above-mentioned user vlan mark for arriving travelling across VLAN two-layer retransmitting table item corresponding with above-mentioned target M-VLAN mark
In knowledge group.
Then above example continues to illustrate, and after receiving above-mentioned several new multicasts and adding group message, SW1 is (above-mentioned newly-increased by 40
VLAN mark) and its corresponding inbound port P4, it updates to two layers of travelling across VLAN forwarding corresponding with 10 (above-mentioned target M-VLAN identifies)
In the above-mentioned user vlan mark group of list item (as shown in table 1), then updated 10 (above-mentioned target M-VLAN marks) are corresponding
Travelling across VLAN two-layer retransmitting table item refers to example as shown in table 2 below:
Table 2
As shown in table 2,40 (above-mentioned newly-increased VLAN marks are increased in the corresponding user vlan mark group of forwarding-table item number 1
Know), the corresponding inbound port group of forwarding-table item number 1 increases P4 (above-mentioned newly-increased VLAN identifies corresponding inbound port).
In the present specification, after above-mentioned target M-VLAN identifies corresponding travelling across VLAN two-layer retransmitting table item generation, on
It states two-layer network device and receives the above-mentioned flux of multicast forwarded via above-mentioned three-layer network appliance from above-mentioned multicast source.
Then above example continues to illustrate, in the corresponding travelling across VLAN two-layer retransmitting table of 10 (above-mentioned target M-VLAN marks)
After item (as shown in 2 forwarding-table item number 1 of table) generates, SW1, which is received, is sent to group via RT1 forwarding from multicast source SRC
Broadcast the flux of multicast of IP address 224.100.1.1.
In the present specification, further, above-mentioned two-layer network device is based on above-mentioned travelling across VLAN two-layer retransmitting table, will be above-mentioned
Flux of multicast is forwarded to corresponding target multicast reception end.
In a kind of embodiment shown, above-mentioned two-layer network device obtains the corresponding flow multicast of above-mentioned flux of multicast
MAC Address.
Then above example continues to illustrate, and above-mentioned two-layer network device is calculated by the multicast ip address of above-mentioned flux of multicast
Obtaining corresponding flow multicast mac address is 01005E640101.
In a kind of embodiment shown, above-mentioned two-layer network device is using above-mentioned flow multicast mac address as lookup
Index, searched whether in above-mentioned travelling across VLAN two-layer retransmitting table exist with above-mentioned flow multicast mac address it is matched match across
VLAN two-layer retransmitting table item;If it exists, then the inbound port group based on the matching travelling across VLAN two-layer retransmitting table item, from by above-mentioned group
It broadcasts flow and is forwarded to corresponding above-mentioned target multicast reception end respectively.
Then above example continues to illustrate, and SW1 is using 01005E640101 (above-mentioned flow multicast mac address) as lookup rope
Draw, searches whether to exist in above-mentioned travelling across VLAN two-layer retransmitting table as shown in Table 2 matched with above-mentioned flow multicast mac address
Match travelling across VLAN two-layer retransmitting table item;In the presence of matching travelling across VLAN two-layer retransmitting table item (as shown in 2 forwarding-table item number 1 of table), then
Inbound port group { P1, P2, P3, P4 } based on the matching travelling across VLAN two-layer retransmitting table item, forwards respectively from by above-mentioned flux of multicast
To target multicast reception end H1, H2, H3, H4 corresponding with P1, P2, P3, P4.
In the another embodiment shown, above-mentioned two-layer network device is using above-mentioned flow multicast mac address as looking into
Look for index, searched whether in above-mentioned travelling across VLAN two-layer retransmitting table exist with above-mentioned flow multicast mac address it is matched match across
VLAN two-layer retransmitting table item;If it does not exist with above-mentioned flow multicast mac address is matched matches travelling across VLAN two-layer retransmitting table item, then
Based on IGMP Snooping forwarding table, above-mentioned flux of multicast is forwarded to above-mentioned target multicast reception end.
Then above example continues to illustrate, and SW1 is using 01005E640101 (above-mentioned flow multicast mac address) as lookup rope
Draw, searches whether to exist in above-mentioned travelling across VLAN two-layer retransmitting table as shown in Table 2 matched with above-mentioned flow multicast mac address
Match travelling across VLAN two-layer retransmitting table item;There is no matching travelling across VLAN two-layer retransmitting table items, then above-mentioned two-layer network device is based on
Above-mentioned flux of multicast is forwarded to above-mentioned target multicast reception end by IGMP Snooping forwarding table, specific above-mentioned flux of multicast base
In IGMP Snooping repeating process, existing IGMP Snooping forwarding principle explanation is referred to, which is not described herein again.
In above technical scheme, a group message is added by receiving several multicasts based on two-layer network device;And it is based on institute
It states several multicasts and adds a group message, election generates target M-VLAN mark and its corresponding travelling across VLAN two-layer retransmitting table item, so that group
It broadcasts flow and corresponding target multicast reception end is forwarded to based on travelling across VLAN two-layer retransmitting table, reduce the resource consumption of the network equipment
And the network operation cost of user.
Fig. 4 is a kind of block diagram for flux of multicast retransmission unit that one exemplary embodiment of the application provides.With the above method
Embodiment is corresponding, and present invention also provides a kind of embodiment of flux of multicast retransmission unit, described device is applied to multicast network
Two-layer network device in network, the multicast network further include multicast source, three-layer network appliance, several multicast receiving ends;Wherein,
Several multicast receiving end accesses two-layer network device, the multicast source access three-layer network appliance, described group
Source is broadcast through the two-layer network device and the three-layer network appliance, is connected with the multicast reception end through network, please refers to Fig. 4
A kind of exemplified flux of multicast retransmission unit 40, described device include:
Receiving module receives and adds a group message from several multicasts corresponding with several multicast receiving ends;Wherein,
The multicast adds group message to include at least multicast ip address, VLAN mark;
Generation module adds a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generates and corresponds to
Travelling across VLAN two-layer retransmitting table item;
The receiving module is further, receives the multicast forwarded via the three-layer network appliance from the multicast source
Flow;
Forwarding module is based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding target multicast and is connect
Receiving end.
In the present embodiment, the generation module further,
Comparing several multicasts adds the corresponding several multicast ip address of group message and several VLAN to identify whether all
It is identical;
If several multicast ip address are all identical and several VLAN mark is different, election it is determining with it is described several
VLAN identifies corresponding target M-VLAN mark;
Generate travelling across VLAN two-layer retransmitting table item corresponding with the target M-VLAN mark.
In the present embodiment, the two-layer network device supports IGMP Snooping, the generation module further,
It counts several VLAN and identifies corresponding VLAN number as the first VLAN number;
It counts the two-layer network device and has enabled the corresponding VLAN number of VLAN interface of IGMP Snooping as the
Two VLAN numbers;Wherein, the described 2nd VLAN number is greater than the described first VLAN number;
With the difference of the described 2nd VLAN number and the described first VLAN number, as reference M-VLAN mark;
If described identify in several VLAN marks with reference to M-VLAN, elect described with reference to M-VLAN mark
It is identified as the target M-VLAN;Otherwise, it in several VLAN marks, elects and refers to M-VLAN mark with described
Know the smallest VLAN mark of difference to identify as the target M-VLAN.
In the present embodiment, the travelling across VLAN two-layer retransmitting table include at least M-VLAN mark, user vlan mark group,
Multicast mac address, inbound port group, the generation module further,
Based on several multicast ip address, corresponding target multicast mac address is calculated;
It obtains several multicasts and adds the corresponding several target inbound ports of group message;
In the travelling across VLAN two-layer retransmitting table, target M-VLAN mark, several VLAN are identified, is described
Target multicast mac address and several target inbound ports, save as the correspondence one in the travelling across VLAN two-layer retransmitting table respectively
List item.
In the present embodiment, which is characterized in that identify corresponding travelling across VLAN two-layer retransmitting table in the target M-VLAN
After item generates, further includes:
The receiving module is further, adds a group message if receiving and carrying several new multicasts that newly-increased VLAN is identified;Wherein,
Several new multicasts add the multicast ip address of group message travelling across VLAN two-layer retransmitting table corresponding with the target M-VLAN mark
The multicast ip address of item is identical;
The generation module is further, identifies and its correspond to inbound port for the newly-increased VLAN, update is arrived and the target
M-VLAN identifies in the user vlan mark group of corresponding travelling across VLAN two-layer retransmitting table item.
In the present embodiment, described to be based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding mesh
Mark multicast reception end, the forwarding module further,
Obtain the corresponding flow multicast mac address of the flux of multicast;
Using the flow multicast mac address as index is searched, search whether to deposit in the travelling across VLAN two-layer retransmitting table
With the flow multicast mac address is matched matches travelling across VLAN two-layer retransmitting table item;
If it exists, then the inbound port group based on the matching travelling across VLAN two-layer retransmitting table item, divides from by the flux of multicast
It is not forwarded to corresponding target multicast reception end.
In the present embodiment, the forwarding module further,
If it does not exist with the flow multicast mac address is matched matches travelling across VLAN two-layer retransmitting table item, then be based on IGMP
The flux of multicast is forwarded to target multicast reception end by Snooping forwarding table.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with
It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
System, device, module or the module that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
The embodiment of the flux of multicast retransmission unit of the application can be using on electronic equipment shown in Fig. 5.Device is real
Applying example can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, make
For the device on a logical meaning, being will be corresponding in machine readable storage medium by the processor of electronic equipment where it
Computer program instructions run the machine-executable instruction of formation after reading.For hardware view, as shown in figure 5, being this Shen
A kind of hardware structure diagram of electronic equipment where flux of multicast retransmission unit please, in addition to processor shown in fig. 5, communication connect
Except mouth, bus and machine readable storage medium, the electronic equipment in embodiment where device is generally according to the electronic equipment
Actual functional capability, can also include other hardware, this is repeated no more.
Accordingly, it the embodiment of the present application also provides the hardware configuration of a kind of electronic equipment of Fig. 4 shown device, refers to
Fig. 5, Fig. 5 are the hardware structural diagram of a kind of electronic equipment provided by the embodiments of the present application.The equipment includes: communication interface
501, processor 502, machine readable storage medium 503 and bus 504;Wherein, communication interface 501, processor 502, machine can
It reads storage medium 503 and mutual communication is completed by bus 504.Wherein, communication interface 501, for carrying out network communication.Place
Reason device 502 can be a central processing unit (CPU), and processor 502 can execute to be stored in machine readable storage medium 503
Machine readable instructions, to realize process as described above.
Machine readable storage medium 503 referred to herein can be any electronics, magnetism, optics or other physical stores
Device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that easily
Lose memory, nonvolatile memory or similar storage medium.Specifically, machine readable storage medium 503 can be RAM
(Radom Access Memory, random access memory), flash memory, memory driver (such as hard disk drive), solid state hard disk,
Any kind of storage dish (such as CD, DVD) perhaps similar storage medium or their combination.
So far, hardware configuration description shown in fig. 5 is completed.
In addition, the embodiment of the present application also provides a kind of machine readable storage medium including machine-executable instruction, example
Such as the machine-readable readable storage medium storing program for executing 503 in Fig. 5, the machine-executable instruction can be by data processing equipment
Device 502 is managed to execute to realize data processing method described above.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of flux of multicast retransmission method, which is characterized in that the method is applied to the two-layer network device in multicast network,
The multicast network further includes multicast source, three-layer network appliance, several multicast receiving ends;Wherein, several multicast receiving ends
The two-layer network device is accessed, the multicast source accesses the three-layer network appliance, and the multicast source is through the double layer network
Equipment and the three-layer network appliance are connected with the multicast reception end through network, which comprises
It receives and adds a group message from several multicasts corresponding with several multicast receiving ends;Wherein, the multicast adds group
Message includes at least multicast ip address, VLAN is identified;
Add a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generates two layers of corresponding travelling across VLAN
Forwarding-table item;
Receive the flux of multicast forwarded via the three-layer network appliance from the multicast source;
Based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding target multicast reception end.
2. the method according to claim 1, wherein described add a group message based on several multicasts, default
Travelling across VLAN two-layer retransmitting table in, generate corresponding travelling across VLAN two-layer retransmitting table item, comprising:
Comparing several multicasts, to add the corresponding several multicast ip address of group message and several VLAN to identify whether all identical;
If several multicast ip address are all identical and several VLAN mark is different, election is determining with several VLAN
Identify corresponding target M-VLAN mark;
Generate travelling across VLAN two-layer retransmitting table item corresponding with the target M-VLAN mark.
3. according to the method described in claim 2, it is characterized in that, the two-layer network device supports IGMP Snooping, institute
State the determining target M-VLAN mark corresponding with several VLAN marks of election, comprising:
It counts several VLAN and identifies corresponding VLAN number as the first VLAN number;
It counts the two-layer network device and has enabled the corresponding VLAN number of VLAN interface of IGMP Snooping as second
VLAN number;Wherein, the described 2nd VLAN number is greater than the described first VLAN number;
With the difference of the described 2nd VLAN number and the described first VLAN number, as reference M-VLAN mark;
If described identify in several VLAN marks with reference to M-VLAN, elect described with reference to M-VLAN mark conduct
The target M-VLAN mark;Otherwise, in several VLAN marks, it is poor with the reference M-VLAN mark to elect
It is worth the smallest VLAN mark to identify as the target M-VLAN.
4. according to the method described in claim 2, it is characterized in that, the travelling across VLAN two-layer retransmitting table includes at least M-VLAN
Mark, user vlan mark group, multicast mac address, inbound port group, the generation are corresponding with the target M-VLAN mark
Travelling across VLAN two-layer retransmitting table item, comprising:
Based on several multicast ip address, corresponding target multicast mac address is calculated;
It obtains several multicasts and adds the corresponding several target inbound ports of group message;
In the travelling across VLAN two-layer retransmitting table, by target M-VLAN mark, several VLAN marks, the target
Multicast mac address and several target inbound ports save as one table of correspondence in the travelling across VLAN two-layer retransmitting table respectively
?.
5. according to the method described in claim 4, it is characterized in that, identifying corresponding travelling across VLAN two in the target M-VLAN
After layer retransmitting table item generates, further includes:
Add a group message if receiving and carrying several new multicasts that newly-increased VLAN is identified;Wherein, several new multicasts add a group message
Multicast ip address and the target M-VLAN to identify the corresponding multicast ip address of travelling across VLAN two-layer retransmitting table item identical;
By the newly-increased VLAN mark and its corresponding inbound port, updates and arrive travelling across VLAN two corresponding with the target M-VLAN mark
In the user vlan mark group of layer retransmitting table item.
6., will be described according to the method described in claim 4, it is characterized in that, described be based on the travelling across VLAN two-layer retransmitting table
Flux of multicast is forwarded to corresponding target multicast reception end, comprising:
Obtain the corresponding flow multicast mac address of the flux of multicast;
Using the flow multicast mac address as search index, searched whether in the travelling across VLAN two-layer retransmitting table exist with
The matched matching travelling across VLAN two-layer retransmitting table item of flow multicast mac address;
If it exists, then the inbound port group based on the matching travelling across VLAN two-layer retransmitting table item, turns respectively from by the flux of multicast
It is sent to corresponding target multicast reception end.
7. according to the method described in claim 6, it is characterized by further comprising:
If it does not exist with the flow multicast mac address is matched matches travelling across VLAN two-layer retransmitting table item, then be based on IGMP
The flux of multicast is forwarded to target multicast reception end by Snooping forwarding table.
8. a kind of flux of multicast retransmission unit, which is characterized in that described device is applied to the two-layer network device in multicast network,
The multicast network further includes multicast source, three-layer network appliance, several multicast receiving ends;Wherein, several multicast receiving ends
The two-layer network device is accessed, the multicast source accesses the three-layer network appliance, and the multicast source is through the double layer network
Equipment and the three-layer network appliance are connected with the multicast reception end through network, and described device includes:
Receiving module receives and adds a group message from several multicasts corresponding with several multicast receiving ends;Wherein, described
Multicast adds group message to include at least multicast ip address, VLAN mark;
Generation module adds a group message based on several multicasts, in preset travelling across VLAN two-layer retransmitting table, generate it is corresponding across
VLAN two-layer retransmitting table item;
The receiving module is further, receives the multicast data flow forwarded via the three-layer network appliance from the multicast source
Amount;
Forwarding module is based on the travelling across VLAN two-layer retransmitting table, the flux of multicast is forwarded to corresponding target multicast reception end.
9. a kind of electronic equipment, which is characterized in that including communication interface, processor, memory and bus, the communication interface,
It is connected with each other between the processor and the memory by bus;
Machine readable instructions are stored in the memory, the processor is executed by calling the machine readable instructions as weighed
Benefit requires 1 to 7 described in any item methods.
10. a kind of machine readable storage medium, which is characterized in that the machine readable storage medium is stored with machine readable finger
It enables, the machine readable instructions realize the described in any item methods of claim 1 to 7 when being called and being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910628921.5A CN110391919B (en) | 2019-07-12 | 2019-07-12 | Multicast traffic forwarding method and device, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910628921.5A CN110391919B (en) | 2019-07-12 | 2019-07-12 | Multicast traffic forwarding method and device, and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110391919A true CN110391919A (en) | 2019-10-29 |
CN110391919B CN110391919B (en) | 2021-03-23 |
Family
ID=68286601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910628921.5A Active CN110391919B (en) | 2019-07-12 | 2019-07-12 | Multicast traffic forwarding method and device, and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110391919B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110912777A (en) * | 2019-11-27 | 2020-03-24 | 杭州迪普科技股份有限公司 | Flow tracking method and device, electronic equipment and machine-readable storage medium |
CN112769693A (en) * | 2020-12-24 | 2021-05-07 | 杭州迪普信息技术有限公司 | Method and device for maintaining multicast group |
CN114301960A (en) * | 2021-12-15 | 2022-04-08 | 山石网科通信技术股份有限公司 | Processing method and device for asymmetric flow of cluster, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5959989A (en) * | 1997-06-25 | 1999-09-28 | Cisco Technology, Inc. | System for efficient multicast distribution in a virtual local area network environment |
KR20040033866A (en) * | 2002-10-16 | 2004-04-28 | 한국전자통신연구원 | A IP Multicast Service Method using Virtual LAN(VLAN) |
CN1536837A (en) * | 2003-04-09 | 2004-10-13 | 华为技术有限公司 | Group broadcast implementing method based on virtual local area network |
CN101005434A (en) * | 2007-01-15 | 2007-07-25 | 杭州华为三康技术有限公司 | Polymerizing method for two layer multicast virtual local area network and its convergent exchanger |
CN101083546A (en) * | 2007-07-18 | 2007-12-05 | 中兴通讯股份有限公司 | Multicasting management approach of switch equipment |
CN101262419A (en) * | 2008-01-30 | 2008-09-10 | 华为技术有限公司 | Multicast service forward method and device |
CN101626301A (en) * | 2008-07-11 | 2010-01-13 | 华为技术有限公司 | Method, equipment and system for realizing multicast |
CN102244583A (en) * | 2011-07-20 | 2011-11-16 | 北京星网锐捷网络技术有限公司 | Method and network equipment for forwarding multicast streaming |
CN104539545A (en) * | 2014-12-31 | 2015-04-22 | 杭州华三通信技术有限公司 | Multicast message forwarding method and device of TRILL network |
CN106375219A (en) * | 2016-08-22 | 2017-02-01 | 杭州迪普科技有限公司 | Method and device for forwarding message |
-
2019
- 2019-07-12 CN CN201910628921.5A patent/CN110391919B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5959989A (en) * | 1997-06-25 | 1999-09-28 | Cisco Technology, Inc. | System for efficient multicast distribution in a virtual local area network environment |
KR20040033866A (en) * | 2002-10-16 | 2004-04-28 | 한국전자통신연구원 | A IP Multicast Service Method using Virtual LAN(VLAN) |
CN1536837A (en) * | 2003-04-09 | 2004-10-13 | 华为技术有限公司 | Group broadcast implementing method based on virtual local area network |
CN101005434A (en) * | 2007-01-15 | 2007-07-25 | 杭州华为三康技术有限公司 | Polymerizing method for two layer multicast virtual local area network and its convergent exchanger |
CN101083546A (en) * | 2007-07-18 | 2007-12-05 | 中兴通讯股份有限公司 | Multicasting management approach of switch equipment |
CN101262419A (en) * | 2008-01-30 | 2008-09-10 | 华为技术有限公司 | Multicast service forward method and device |
CN101626301A (en) * | 2008-07-11 | 2010-01-13 | 华为技术有限公司 | Method, equipment and system for realizing multicast |
CN102244583A (en) * | 2011-07-20 | 2011-11-16 | 北京星网锐捷网络技术有限公司 | Method and network equipment for forwarding multicast streaming |
CN104539545A (en) * | 2014-12-31 | 2015-04-22 | 杭州华三通信技术有限公司 | Multicast message forwarding method and device of TRILL network |
CN106375219A (en) * | 2016-08-22 | 2017-02-01 | 杭州迪普科技有限公司 | Method and device for forwarding message |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110912777A (en) * | 2019-11-27 | 2020-03-24 | 杭州迪普科技股份有限公司 | Flow tracking method and device, electronic equipment and machine-readable storage medium |
CN112769693A (en) * | 2020-12-24 | 2021-05-07 | 杭州迪普信息技术有限公司 | Method and device for maintaining multicast group |
CN112769693B (en) * | 2020-12-24 | 2022-04-26 | 杭州迪普信息技术有限公司 | Method and device for maintaining multicast group |
CN114301960A (en) * | 2021-12-15 | 2022-04-08 | 山石网科通信技术股份有限公司 | Processing method and device for asymmetric flow of cluster, electronic equipment and storage medium |
CN114301960B (en) * | 2021-12-15 | 2024-03-15 | 山石网科通信技术股份有限公司 | Processing method and device for cluster asymmetric traffic, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110391919B (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107819663B (en) | Method and device for realizing virtual network function service chain | |
US8913613B2 (en) | Method and system for classification and management of inter-blade network traffic in a blade server | |
US9325526B2 (en) | Mechanism for enabling layer two host addresses to be shielded from the switches in a network | |
JP2023535150A (en) | Interface-based ACLs in Layer 2 networks | |
US10805216B2 (en) | Shared service access for multi-tenancy in a data center fabric | |
KR101995145B1 (en) | Method operating in a fixed access network and ues | |
WO2019137355A1 (en) | Method and device for transmitting data, and network system | |
CN110391919A (en) | Flux of multicast retransmission method, device, electronic equipment | |
CN105338003A (en) | Firewall implementation method applied to software defined networking | |
US10742545B2 (en) | Multicasting system | |
US20210399908A1 (en) | Multicast routing | |
EP4046351B1 (en) | Rtps discovery in kubernetes | |
CN107547346B (en) | Message transmission method and device | |
CN110430076A (en) | A kind of route management method and device | |
US11394635B2 (en) | Aggregated bit index explicit replication networking system | |
US20230370421A1 (en) | Scaling ip addresses in overlay networks | |
CN110192382B (en) | Network communication method, peer and system | |
US9853891B2 (en) | System and method for facilitating communication | |
CN109756412A (en) | A kind of data message forwarding method and equipment | |
CN108632125A (en) | A kind of multicast list management method, device, equipment and machine readable storage medium | |
US11509568B2 (en) | Protocol independent multicast designated networking device election system | |
US20180367446A1 (en) | Dual network interface implementation in multipath networking | |
US11258720B2 (en) | Flow-based isolation in a service network implemented over a software-defined network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |