The content of the invention
It is an object of the invention to provide a kind of retransmission method and device of TRILL multicast messages, for solving realizing
TRILL multicast messages locally termination and network side forwarding simultaneously effectively when, message is returned can introduce asking for complexity and risk
Topic.
To achieve these goals, the present invention provides a kind of retransmission method of TRILL multicast messages, is applied to flowing water knot
The TRILL network of the interchanger of structure, and the TRILL network at least includes interface unit, Ingress RB, storage scheduling unit
With Egress RB, the retransmission method of the TRILL multicast messages includes:TRILL multicast messages are received by interface unit;
Ingress RB obtain the network side outlet information and local breakout information of received TRILL multicast messages;Dispatched in storage
Unit carries out the duplication of the TRILL multicast messages according to the network side outlet information and the local breakout information;And
Recognize that replicated TRILL multicast messages are forwarded message or local breakout message in Egress RB, and according to identification
Result enters edlin output to the TRILL multicast messages for being replicated.
Alternatively, the Ingress RB at least include packet parsing module, channel message processing module, L2 modules and L3
Module;Also, the network side outlet information and local breakout that received TRILL multicast messages are obtained in Ingress RB
Information includes:The TRILL multicast messages are parsed by the packet parsing module;Sentenced by the channel message processing module
Whether the disconnected TRILL multicast messages for parsing need local decapsulation;To the TRILL groups that need not locally decapsulate
Text is reported, the multicast according to the TRILL multicast messages for parsing is indexed in the L3 module polls network side outlet information;
And to needing the TRILL multicast messages of local decapsulation, according to the multicast rope of the TRILL multicast messages for parsing
Draw in the L3 module polls network side outlet information, and locally decapsulated in the L2 modules, to be peelled off
The internal layer message of TRILL tunnels head, and one or more local breakout information are obtained according to the type of the internal layer message.
Alternatively, the type according to the internal layer message obtains one or more local breakout information and includes:If interior
Layer message is known unicast message, then obtain a local breakout information;If internal layer message is unknown unicast message, multicast message
One of with broadcasting packet, then the setting according to corresponding message obtains multiple local breakout information.
Alternatively, it is described it is described storage scheduling unit according to the network side outlet information and the local breakout information
The duplication for carrying out the TRILL multicast messages includes:For the TRILL multicast messages for being replicated are set from local breakout or network
The flag bit of side outlet;And it is described Egress RB recognize replicated TRILL multicast messages be forwarded message or
Local breakout message includes:The flag bit of the replicated TRILL multicast messages of identification, and judge what is replicated according to the flag bit
TRILL multicast messages are forwarded message or local breakout message.
Alternatively, it is described according to recognition result the TRILL multicast messages for being replicated are entered edlin output include:If answering
The TRILL multicast messages of system are forwarded messages, then obtain the information that TRILL multicast messages need in network side forwarding, and
Editor's TRILL heads, then forward the TRILL multicast messages;If the TRILL multicast messages for being replicated are local breakout messages, will
TRILL is peeled off, and carries out VLAN ((Virtual Local Area Network, VLAN)) treatment, then forwards this
TRILL multicast messages.
Present invention also offers a kind of retransmission unit of TRILL multicast messages, the interchanger of pipeline organization is applied to
TRILL network, and the TRILL network at least includes interface unit, Ingress RB, storage scheduling unit and Egress RB,
The retransmission unit of the TRILL multicast messages includes:Receiver module, for receiving TRILL multicast messages by interface unit;Go out
Mouth data obtaining module, for the network side outlet information in the received TRILL multicast messages of Ingress RB acquisitions and originally
Ground outlet information;Message replication module, for storage scheduling unit is according to the network side outlet information and described locally goes out
Message breath carries out the duplication of the TRILL multicast messages;And message output module, for being replicated in Egress RB identifications
TRILL multicast messages be forwarded message or local breakout message, and according to recognition result to the TRILL groups that are replicated
Report text and enter edlin output.
Alternatively, the Ingress RB at least include packet parsing module, channel message processing module, L2 modules and L3
Module;Also, the outlet information acquisition module includes:Analyzing sub-module, for parsing institute by the packet parsing module
State TRILL multicast messages;Judging submodule, for the TRILL for judging to parse by the channel message processing module
Whether multicast message needs local decapsulation;First treatment submodule, for the TRILL groups to need not locally decapsulate
Text is reported, the multicast according to the TRILL multicast messages for parsing is indexed in the L3 module polls network side outlet information;
And second processing submodule, for the TRILL multicast messages to needing local decapsulation, according to parsing
The multicast of TRILL multicast messages is indexed in the L3 module polls network side outlet information, and carries out this in the L2 modules
Ground decapsulation, the internal layer message of TRILL tunnels head is peelled off to obtain, and obtain one or many according to the type of the internal layer message
Individual local breakout information.
Alternatively, for the second processing submodule:If internal layer message is known unicast message, one is obtained locally
Outlet information;If internal layer message is one of unknown unicast message, multicast message and broadcasting packet, according to corresponding message
Set and obtain multiple local breakout information.
Alternatively, the retransmission unit of the TRILL multicast messages also includes:Flag bit setup module, for being the report
The TRILL multicast messages that literary replication module is replicated set the flag bit from local breakout or network side outlet.
Alternatively, the message output module includes:Identification submodule, for recognizing replicated TRILL multicast messages
Flag bit, and judge that replicated TRILL multicast messages are forwarded message or local breakout report according to the flag bit
Text;Network side message editing submodule, for when the TRILL multicast messages for being replicated are forwarded messages, obtaining TRILL
The information that multicast message needs in network side forwarding, and TRILL heads are edited, then forward the TRILL multicast messages;And local report
Text editor's submodule, for when the TRILL multicast messages for being replicated are local breakout messages, TRILL being peeled off, and carry out
VLAN treatment, then forward the TRILL multicast messages.
By above-mentioned technical proposal, the solution have the advantages that:Using the forwarding side of TRILL multicast messages of the invention
The scheme being related in method and device, TRILL network can simultaneously perform network side forwarding and local decapsulation, not by returning knot
Structure, but network side is forwarded by the different phase of streamline is processed with local decapsulation, realize in Ingress
RB ends mixed processing, the classification treatment at Egress RB ends, so as to avoid complexity, risk that the mode of returning introduces and not true
It is qualitative.
Other features and advantages of the present invention will be described in detail in subsequent specific embodiment part.
Specific embodiment
Specific embodiment of the invention is described in detail below in conjunction with accompanying drawing.It should be appreciated that this place is retouched
The specific embodiment stated is merely to illustrate and explain the present invention, and is not intended to limit the invention.
The embodiment of the present invention gives a kind of retransmission method of TRILL multicast messages, its friendship for being applied to pipeline organization
The TRILL network changed planes, as shown in Fig. 2 the TRILL network at least includes interface unit 11, Ingress RB 12, storage
Scheduling unit 13 and Egress RB 14, but include as shown in phantom in fig. 1 return structure.Based on as shown in Figure 2
Without the TRILL network for returning structure, as shown in figure 3, the retransmission method of the TRILL multicast messages described in the embodiment of the present invention is main
Comprise the following steps:
Step S301, TRILL multicast messages are received by interface unit 11.
Wherein, the interface unit 11 is the interface that TRILL network realizes being carried out with other networks or equipment information exchange, should
Interaction includes sending and receiving, i.e., interface unit can also send TRILL multicast messages in addition to TRILL multicast messages are received.
Step S302, the network side outlet information and sheet of received TRILL multicast messages are obtained in Ingress RB 12
Ground outlet information.
In the TRILL network of the interchanger of pipeline organization, the flow of Ingress RB 12 is mainly used in entering message
Row decapsulation, with the lookup for realizing exporting message purpose.
In the present embodiment, the Ingress RB 12 obtain network side outlet information by the form of pipeline processes
And local breakout information, as shown in figure 4, the Ingress RB 12 of streamline form mainly include packet parsing module 41, tunnel
Message processing module (MPM) 42, L2 modules 43 and L3 modules 44.
Wherein, packet parsing module 41 is mainly used in identification entrance message type, such as can decide whether to be TRILL tunnels
Road message;It is additionally operable to after entrance message type is recognized, parses heading key section, such as mac, VLAN, TRILL head
Etc. the domain section that rear class treatment needs.
Wherein, channel message processing module 42 is mainly for the treatment of prime (the present embodiment corresponds to packet parsing module 41)
The channel message for identifying.For TRILL channel messages, more specifically function is that judgement is to channel message processing module 42
It is no to need local termination, and give terminated flag position;Meanwhile, provide the next hop information that the forwarding of TRILL packet networks side needs.
Wherein, the basic function of L2 modules 43 is to complete the inquiry of local exchange outlet.If TRILL multicast messages need
Local termination, then message DMAC and vlan information can complete exit interrogation after the L2 modules 43 are according to termination.
Wherein, the basic function of L3 modules 44 is to carry out routing inquiry, carries out routing forwarding.Wherein, TRILL network side report
Routing inquiry flow, the multicast next-hop list item of multiplexing L3 modules 44, to obtain network side outlet can be skipped during text forwarding.
It should be noted that, implementing for this four basic functions of the function of module refers to correlation of the prior art
Document, the present embodiment mainly uses this four basic functions of module to come while the network side for obtaining TRILL multicast messages goes out
Message ceases and local breakout information.
Specifically, the Ingress RB 12 based on above-mentioned streamline form, as shown in figure 5, in the present embodiment,
Ingress RB12 obtain received TRILL multicast messages network side outlet information and local breakout information mainly include with
Lower step:
Step S501, TRILL multicast messages are parsed by the packet parsing module 41.
Wherein, packet parsing module 41 can recognize TRILL messages by ethernet type ethertype.Here, pass through
TRILL of message can be obtained to the parsing of TRILL multicast messages, MAC address entries, multicast index and indicates whether message needs
Information of local decapsulation etc..
Whether step S502, the TRILL multicast messages that parse are judged by the channel message processing module 42
Need local decapsulation.
Wherein, TRILL multicast messages can carry out network side forwarding, but whether it is locally decapsulating needs according to TRILL
Information in head is inquired about, so as to decide whether to be decapsulated.For example, if carry out the judgement of local decapsulation,
It is that, according to user configuring list item, entrance message trill and mac first-class relevant information carries out conclusion obtained from list item inquiry.
It is different according to the result tabled look-up after TRILL multicast messages are come in from the point of view of final message outlet, have two kinds of results:One is
Only carry out the forwarding of TRILL multicast networks side;Two is while carrying out the forwarding of TRILL multicast networks side and local decapsulation.
Step S503, to the TRILL multicast messages that need not locally decapsulate, according to the TRILL for parsing
The multicast index of multicast message inquires about network side outlet information in the L3 modules 44.
Wherein, for the TRILL multicast messages that need not locally decapsulate, that is, show that it need not locally be terminated,
And need to only realize network side and forward.In this way, the multicast index according to the TRILL multicast messages for parsing can directly in L3 modules
Network side outlet information is inquired about in 44.
Step S504, the TRILL multicast messages to needing local decapsulation, according to the TRILL groups for parsing
The multicast index for reporting text inquires about network side outlet information in the L3 modules 44, and is locally solved in the L2 modules 43
Encapsulation, the internal layer message of TRILL tunnels head is peelled off to obtain, and obtain one or more originally according to the type of the internal layer message
Ground outlet information.
Wherein, the detailed process of decapsulation can be:The information such as DMAC and VLAN according to TRILL message internal layer MAC headers,
Inquiry two-layer retransmitting table, obtains outlet information.
In step S504, the network side outlet information of TRILL multicast messages is obtained by L3 modules 44, by L2 moulds
Block 43 obtains the local breakout information of TRILL multicast messages.That is, local decapsulation is realized that it will stripping by L2 modules 43
Go the internal layer message of TRILL tunnels head to be processed according to common two layer message forwarding process, and can according to result, it is determined that
The type of internal layer message.
Wherein, the type according to the internal layer message obtains one or more local breakout information and includes:If internal layer message
It is known unicast message, then obtains a local breakout information;If internal layer message is unknown unicast message, multicast message or wide
Text is reported, then the setting according to corresponding message obtains multiple local breakout information.
In this way, by step S501-S504, realizing the different phase in the streamline of Ingress RB 12 to network
Side is forwarded and the message of local decapsulation is processed, i.e., realize that the network side of message turns using without the pure pipeline organization returned
Hair and local decapsulation are carried out simultaneously so that network side outlet information and local breakout information exist simultaneously, after being conducive to
It is continuous to realize that locally termination and network side are forwarded simultaneously effectively TRILL multicast messages.
Step S303, is carried out in storage scheduling unit 13 according to the network side outlet information and the local breakout information
The duplication of the TRILL multicast messages.
Wherein, according to the network side outlet information and the local breakout information, schedulable is obtained storage scheduling unit 13
Corresponding outlet is taken, and message is copied to the outlet of acquisition.In addition, can also be the TRILL for being replicated when message is replicated
Multicast message sets the flag bit from local breakout or network side outlet, and the flag bit indicates replicated message from this
Ground outlet or network side outlet.
Step S304, recognizes that replicated TRILL multicast messages are forwarded message or sheet in Egress RB 14
Ground outlet message, and edlin output is entered to the TRILL multicast messages for being replicated according to recognition result.
Wherein, the identification process of Egress RB 14 is mainly:Can recognize that as the TRILL multicast messages that are replicated are set
Flag bit from local breakout or network side outlet, and judge that replicated TRILL multicast messages are nets according to the flag bit
Network E-Packets or local breakout message.
Wherein, entering edlin output to the TRILL multicast messages for being replicated according to recognition result can specifically include:If
Forwarded message, then obtain the information that TRILL multicast messages need in network side forwarding, and edits TRILL heads, then forwards this
TRILL multicast messages;If local breakout message, then TRILL is peeled off, and carry out VLAN treatment, then forward the TRILL groups
Report text.
Wherein, editing TRILL can include:Egress nickname, Ingress in modification TRILL
The information such as nickname, VLAN, hop_cnt, increase new rbridge mac heads.
Wherein, peeling and carry out VLAN treatment off by TRILL includes:After peeling outer layer mac and TRILL off, in modification
Locally forwarded after the vlan information of mac, layer.
To sum up, TRILL network performs network side forwarding and local decapsulation simultaneously in the present embodiment, not by returning knot
Structure, but network side is forwarded by the different phase of streamline is processed with local decapsulation, realize in Ingress
RB ends mixed processing, the classification treatment at Egress RB ends, so as to avoid complexity, risk that the mode of returning introduces and not true
It is qualitative.
Based on the retransmission method identical invention thinking with above-mentioned TRILL multicast messages, another embodiment of the present invention is also carried
A kind of retransmission unit of TRILL multicast messages has been supplied, the TRILL network of the interchanger of pipeline organization has been applied to, similarly, institute
TRILL network is stated as shown in Fig. 2 including interface unit 11, Ingress RB 12, storage scheduling unit 13 and Egress RB
14.As shown in fig. 6, the retransmission unit of the TRILL multicast messages in the present embodiment includes:Receiver module 61, for passing through
Interface unit receives TRILL multicast messages;Outlet information acquisition module 62, for obtaining what is received in Ingress RB
The network side outlet information and local breakout information of TRILL multicast messages;Message replication module 63, in storage scheduling unit
The duplication of the TRILL multicast messages is carried out according to the network side outlet information and the local breakout information;And message
Output module 64, for recognizing that replicated TRILL multicast messages are forwarded message or local breakout in Egress RB
Message, and edlin output is entered to the TRILL multicast messages for being replicated according to recognition result.
Further, as shown in figure 4, the Ingress RB 12 can include at packet parsing module 41, channel message
Reason module 42, L2 modules 43 and L3 modules 44.Accordingly, as shown in fig. 7, the outlet information acquisition module 62 of the present embodiment can
To include:Analyzing sub-module 621, for parsing the TRILL multicast messages by the packet parsing module;Judging submodule
622, for judging whether the TRILL multicast messages for parsing need local deblocking by the channel message processing module
Dress;First treatment submodule 623, for the TRILL multicast messages to need not locally decapsulate, according to the institute for parsing
The multicast for stating TRILL multicast messages is indexed in the L3 module polls network side outlet information;And second processing submodule
624, for the TRILL multicast messages to needing local decapsulation, according to the group of the TRILL multicast messages for parsing
Index is broadcast in the L3 module polls network side outlet information, and is locally decapsulated in the L2 modules, to be shelled
The internal layer message of TRILL tunnels head is removed, and one or more local breakout information are obtained according to the type of the internal layer message.
Wherein, for the second processing submodule 624:If internal layer message is known unicast message, a sheet is obtained
Ground outlet information;If internal layer message is unknown unicast message, multicast message or broadcasting packet, according to the setting of corresponding message
Obtain multiple local breakout information.
Further, the retransmission unit of the TRILL multicast messages can also include:Flag bit setup module is (in Fig. 6 not
Show), the TRILL multicast messages for being replicated by the message replication module are set from local breakout or network side outlet
Flag bit.
Further, as shown in figure 8, the message output module 64 can include:Identification submodule 641, for recognizing
The flag bit of the TRILL multicast messages for being replicated, and judge that replicated TRILL multicast messages are that network turns according to the flag bit
Transmit messages text or local breakout message;Network side message editing submodule 642, for being in the TRILL multicast messages for being replicated
During forwarded message, the information that TRILL multicast messages need in network side forwarding is obtained, and edit TRILL heads, then forward this
TRILL multicast messages;And local message editing submodule 643, for being local breakout in the TRILL multicast messages for being replicated
During message, TRILL is peeled off, and carry out VLAN treatment, then forward the TRILL multicast messages.
The retransmission unit of the TRILL multicast messages of the present embodiment is specific with the retransmission method of above-mentioned TRILL multicast messages
Implementation detail and effect are same or like, will not be repeated here.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention is not limited to above-mentioned reality
The detail in mode is applied, in range of the technology design of the invention, various letters can be carried out to technical scheme
Monotropic type, these simple variants belong to protection scope of the present invention.
It is further to note that each particular technique feature described in above-mentioned specific embodiment, in not lance
In the case of shield, can be combined by any suitable means.In order to avoid unnecessary repetition, the present invention to it is various can
The combination of energy is no longer separately illustrated.
Additionally, can also be combined between a variety of implementation methods of the invention, as long as it is without prejudice to originally
The thought of invention, it should equally be considered as content disclosed in this invention.