CN108900440A - Message forwarding method and device - Google Patents
Message forwarding method and device Download PDFInfo
- Publication number
- CN108900440A CN108900440A CN201810682139.7A CN201810682139A CN108900440A CN 108900440 A CN108900440 A CN 108900440A CN 201810682139 A CN201810682139 A CN 201810682139A CN 108900440 A CN108900440 A CN 108900440A
- Authority
- CN
- China
- Prior art keywords
- port
- source
- message
- eport
- local
- 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
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/45—Arrangements for providing or supporting expansion
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
This application provides message forwarding methods and device.It is message matching source EPORT when the PE of annular stacking system receives message by up going port in the application, and determining with the associated source ID of source EPORT, source EPORT, source ID is carried and sent in annular stacking system by least one stacking opening in messages;And when PE receives message by stacking opening, if it was found that the source EPORT that message carries is identical as the assigned EPORT of local Single port, think that the port is the source port that message enters annular stacking system at this time, it can then force the source ID for carrying message to be revised as being used to indicate the source ID in source port and local all stacking opening Block message forwardings, source port filtering is finally realized in annular stacking system.
Description
Technical field
This application involves network communication technology fields, in particular to message forwarding method and device.
Background technique
802.1BR defines the interchanger with ports-Extending ability by (group) control bridge (CB:Controlling
Bridge) the tree-like multiple ports-Extending bridge (PE of connection:Port Extender) composition.
PE provides the extension of port number and port access capability for CB, passes through up going port (Upstream Port)
Higher level PE or CB are connected, junior PE is connected by cascade port (Cascade Port).It can be cascaded between CB, CB is on PE
Port carries out empty port (vPort) mapping management, passes through Cascade Port connection PE.Fig. 1 shows the friendship that 802.1BR is defined
It changes planes structure chart.
Summary of the invention
This application provides message forwarding methods and device, with real in the annular stacking system being stacked by PE annular stack
The source port filtering of existing message.
Specifically, the application is achieved by the following technical solution:
A kind of message forwarding method, this method are applied to the PE as member device in annular stacking system, including:
The first message is received by local up going port, the Ingress ECID carried according to the first message determines the first message
Matched first source EPORT, and the determining and associated first source ID of the first source EPORT, search first in local source filter table
The port status of the corresponding each port source ID is the first message of the port block forwarding for blocking Block in port status, in port
State is the first message for forwarding the port forwarding of Forward to carry the first source EPORT, the first source ID, port
State is that the port of Forward includes at least one stacking opening;
The second message is received by local stacking opening, if the second source EPORT and local first port that the second message carries
Assigned EPORT is identical, and first port is the port in addition to up going port, stacking opening, then pressure carries the second message
Second source ID is revised as being used to indicate the third source ID in first port and local all the second message of stacking opening Block forwardings,
ID corresponding first port in third source is searched in local source filter table and locally the port status of all stacking openings is
Block, then the second message of Block is in first port and local all stacking opening forwardings.
A kind of apparatus for forwarding message, the device are applied to the ports-Extending bridge as member device in annular stacking system
PE, including:Up going port, stacking opening, at least one port in addition to up going port, stacking opening, forwarding control subsystem;
The forwarding control subsystem, the Ingress ECID for carrying according to local received first message of up going port are true
First source EPORT of fixed first message matching, and the determining and associated first source ID of the first source EPORT, in local source filter table
The middle port status for searching the corresponding each port the first source ID is the first message of port block for blocking Block in port status
Forwarding, port status be forward Forward port forward carry the first EPORT, the first source ID first
Message, port status are that the port of Forward includes at least one stacking opening;And
What the second source EPORT and local first port for carrying in received second message of local stacking opening were assigned
When EPORT is identical, first port is the port in addition to up going port, stacking opening, then forces the second source for carrying the second message
ID is revised as being used to indicate the third source ID in first port and local all the second message of stacking opening Block forwardings, in local
The port status that the corresponding first port of third source ID and local all stacking openings are searched in the filter table of source is Block, then
The second message of Block is in first port and local all stacking opening forwardings.
It can be seen that in this application by above technical scheme provided by the present application, when the PE of annular stacking system is logical
It is message matching source EPORT when crossing up going port and receiving message, and determining with the associated source ID of source EPORT, by source EPORT, source ID
It carries and is sent in annular stacking system by least one stacking opening in messages;And when PE receives message by stacking opening
When, if the source EPORT that discovery message carries is identical as the assigned EPORT of local Single port, think that the port is message at this time
Into the source port of annular stacking system, then the source ID for carrying message can be forced to be revised as being used to indicate in source port and local
The source ID of all stacking opening Block message forwardings, finally realizes source port filtering in annular stacking system;
Further, in this application, by force to be revised as being used to indicate by the source ID that message carries source port with
The source ID of local all stacking opening Block message forwardings, realizes a source ID and had both indicated to forward in source port Block message,
Instruction is forwarded in local all stacking opening Block messages again, saves source ID quantity.
Also further, in this application, once the source ID that message carries is revised as being used to indicate in source by PE pressure
The source ID of mouth and local all stacking opening Block messages forwardings, then other PE are in same annular stacking system after meaning
It can not receive the message, be based on this, in this application, to save source ID, variant PE can be used to indicate in local source
The source ID of mouth and the forwarding of all stacking opening Block messages, saves source ID.
Detailed description of the invention
Fig. 1 is the switch architecture figure that existing 802.1BR is defined;
Fig. 2 is annular stacking system structural schematic diagram in 802.1BR provided by the present application;
Fig. 3 is method flow diagram provided by the present application;
Fig. 4 is embodiment implementation flow chart provided by the present application;
Fig. 5 is structure drawing of device provided by the present application.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
In 802.1BR networking, often need to be stacked between PE and PE to carry out link backup.Fig. 2 shows PE it
Between annular stack structure.In Fig. 2,4 PE are stacked by stacking opening annular.It should be noted that as one embodiment,
In this application, CB can also be stacked with each PE mutually annular, such as CB shown in Fig. 2.
Based between PE annular stack premise, present applicant proposes between pes-pes annular stack under the premise of how
Realize the filtering of PE source port.For ease of description, annular between PE and PE, which is stacked the stacking system formed, here is known as annular stack
Folded system, and participate in the member device that each PE stacked is known as annular stacking system.
Below to how realizing that the source port filtering of PE is described in annular stacking system provided by the present application:
Referring to Fig. 3, Fig. 3 is method flow diagram provided by the present application.This method is applied to the PE in annular stacking system, such as
Shown in Fig. 3, this approach includes the following steps:
Step 301, when receiving the first message by local up going port, step 302 is executed, is connect when by local stacking opening
When receiving the second message, step 303 is executed.
In this application, the first message, the second message can be non-unicast message, for example be broadcasting packet, multicast message, not
Know unicast or multicast message etc..Wherein, the name that so-called first message, the second message only carry out for ease of description, not
For limiting.
Step 302, source port (Ingress) the ether forwarding channel identifier (ECID carried according to the first message:E-
Tag Channel Identifier) determine the first source EPORT of the first message matching, and determine and be associated with the first source EPORT
The first source ID, the port status of the corresponding each port the first source ID is searched in local source filter table, port status be resistance
The first message of the port block forwarding for filling in (Block) is that the port forwarding of (Forward) is forwarded to carry first in port status
The first message of source EPORT, the first source ID, port status are that the port of Forward includes at least one stacking opening.
This step 302 is executed under the premise of local up going port receives the first message.Hereafter can emphasis step is described
302 specific implementation wouldn't repeat here.
Step 303, the second message is received by local stacking opening, if the second source EPORT of the second message carrying and local
The assigned EPORT of first port is identical, then forces the second source ID for carrying the second message to be revised as being used to indicate first
The third source ID of port and local all the second message of stacking opening Block forwardings, searches third source ID in local source filter table
The port status of corresponding first port and local all stacking openings is Block, then the second message of Block is in first port
And local all stacking opening forwardings.
This step 303 is executed under the premise of local stacking opening receives the second message.Hereafter can emphasis step is described
303 specific implementation wouldn't repeat here.Here, first port is port in addition to up going port, stacking opening, for example, for
Family side ports.
So far, process shown in Fig. 3 is completed.It should be noted that in the above description, first port, the first source EPORT,
The name that first source ID, the second source EPORT, the second source ID, third source ID are only carried out for ease of description, is not intended to limit
It is fixed.
It can be seen that in annular stacking system by process shown in Fig. 3, when PE receives message (ratio by stacking opening
Such as the second above-mentioned message) when, if the source EPORT that discovery message carries is identical as the assigned EPORT of local Single port, at this time
Think that the port is the source port that message enters annular stacking system, then the source ID for carrying message can be forced to be revised as being used to refer to
Show in the source ID of source port and local all stacking opening Block message forwardings, finally realizes source port filtering.
Further, in this application, it forces to be revised as being used to indicate in source port and local by the source ID that message carries
The source ID of all stacking opening Block message forwardings realizes a source ID and had not only indicated to forward in source port Block message, but also refers to
Show and forwarded in local all stacking opening Block messages, saves source ID quantity.
Further, in this application, once the source ID that message carries is revised as being used to indicate in source port by PE pressure
With the source ID of local all stacking opening Block message forwardings, then other PE are to receive in same annular stacking system after meaning
Less than the message, it is based on this, in this application, to save source ID, variant PE can be used to indicate in local source port
With the source ID of all stacking opening Block messages forwarding, source ID is saved.For example, by taking above-mentioned third source ID as an example, in this PE, third
ID instruction in source can indicate other PE local one in first port and local all stacking opening Block, in other PE, third source ID
Non-stacking mouth and local all stacking opening Block.
In above-mentioned steps 302, reality there are two types of the first source EPORT of the first message matching is determined according to Ingress ECID
Existing mode, is described separately below:
Mode 1:
The method 1 is applied to the field that the Ingress ECID that the first message carries is the assigned ECID of local second port
Scape.Here second port is the port in addition to up going port, stacking opening, for example is user-side port.Here why it is known as
Second port is only the name carried out convenient for distinguishing with above-mentioned first port, is not intended to limit.
Under the method 1, in above-mentioned steps 302, the first source of the first message matching is determined according to Ingress ECID
EPORT includes:
The EPORT that local second port is assigned is determined as to the first source EPORT of the first message matching.
Based on the first source EPORT that the method 1 is distributed, then in above-mentioned steps 302, determination is associated with the first source EPORT
First source ID includes:Preassigned be used to indicate is determined as and the in the 4th source ID of second port Block message forwarding
The associated first source ID of one source EPORT.Here the 4th source ID be the name that carries out convenient for differentiation, be not intended to limit
It is fixed.
Applied to the method 1, the corresponding port status of first source ID is that the port of Block is at least wrapped in above-mentioned steps 302
Include above-mentioned second port.
So far, the description of mode 1 is completed.
Mode 2:
It is not the assigned ECID of local either port that the method 2, which is applied to the Ingress ECID that the first message carries,
Scene.
Under the method 2, in above-mentioned steps 302, the first source of the first message matching is determined according to Ingress ECID
EPORT includes:
If the Ingress ECID that the first message carries is not the assigned ECID of local either port, according to other PE
Synchronous port information determines the port that the Ingress ECID is assigned on other PE, and the port of the determination is assigned
EPORT is determined as the first source EPORT of first message matching, and synchronous port information includes at least:What port was assigned
ECID、EPORT。
Based on lower the first source EPORT distributed of the method 2, in above-mentioned steps 302, determination is associated with the first source EPORT
First source ID includes:Preassigned this PE that is used to indicate is received message and is used for locating for the source port of the Block message
Purpose PE mark ID;Here source port refers to:The port identical with the Ingress ECID assigned ECID.
So far, the description of mode 2 is completed.
It should be noted that it is applied to aforesaid way 1 or mode 2, the corresponding each end the first source ID in local source filter table
The port status of mouth is to be based on shortest path according to this PE to send message (broadcast or multicast) in annular stacking system and do not cause
Loop principle setting, wherein under the premise of not causing loop message via port, port status Forward,
It otherwise is Block.Can hereafter illustrate description, wouldn't repeat here.
In above-mentioned steps 303, if checking what the second source EPORT of the second message carrying and local either port were assigned
EPORT is different, then can further comprise:
The port status of the corresponding each port the second source ID of the second message carrying is searched in local source filter table,
The second message forwarding described in the port block that port status is Block is forwarding Forward in port status
Port forwards second message;The port status of the corresponding each port second source ID is based on according to the source device of the second message
Shortest path sends message in annular stacking system and the principle of loop is not caused to be arranged, wherein when the port on this PE
For message via port, port status Forward, on the contrary be Block;The source device of second message refers to:Pass through this
Ground up going port receives the PE of the second message.
Based on being described above, the application is described below by one embodiment:
Referring to fig. 4, Fig. 4 is embodiment application networking diagram provided by the present application.In Fig. 4, PE401 to PE404 annular stack
It is stacked annular stacking system, CB and annular stack system buildup into basic 802.1BR network.
In Fig. 4, PE401 to PE404 is respectively four member devices in annular stacking system.In Fig. 4, PE401 two
Side stacking opening is Port1/1, Port1/2, and the two sides PE402 stacking opening is Port2/1, Port2/2, and the two sides PE403 stacking opening is
Port3/1, Port3/2, the two sides PE404 stacking opening are Port4/1, Port4/2.Port501 is the user-side port of PE401,
Port502 is the user-side port of PE402, and Port503 is the user-side port of PE403, and Port504 is the user side of PE404
Port.In Fig. 4, every PE is there is likely to be cascade port and other ports, and processing mode is similar to user-side port, here
No longer citing description one by one.
It is described by taking the PE401 in Fig. 4 as an example:
When PE401 is online, PE401 can to local user's side ports Port501 distribution virtual port (EPORT), for convenient for
The Port501 EPORT being assigned is denoted as EPORT501_a here by description.
The Port501 EPORT501_a being assigned is synchronized to other PE i.e. PE402 in same annular stacking system by PE401
To PE404.So far, PE402 to PE404 can locally save the EPORT501_a that Port501 is assigned on PE401.
When PE401 is online, CB can distribute ECID to PE401 local user side ports Port501.For ease of description, here
The Port501 ECID being assigned is denoted as ECID501_b.
The Port501 ECID501_b being assigned is synchronized to other PE i.e. PE402 in same annular stacking system by PE401
To PE404.
It to sum up describes, then finally, PE402 to PE404 can locally save the EPORT501_ that Port501 is assigned on PE401
A and ECID501_b.
In this application, PE402 to PE404 also can be according to the operation that similar PE401 is executed by local user's side ports quilt
The EPORT and ECID of distribution are synchronized to other PE in same annular stacking system.
After forming annular stacking system, the Topology connection based on annular stacking system is that PE401 to PE404 setting is local
Source filter table.Describe how source filter table is set by taking PE401 Topology connection present in annular stacking system as an example:
There are following two Topology connections in annular stacking system by PE401:
Connect C1:PE401->PE402->PE403->PE404->PE401;
Connect C2:PE401->PE404->PE403->PE402->PE401.
Based on above-mentioned two Topology connections, then forward-path is calculated for specified each source ID:By taking source ID is S12 as an example,
S12 be used to indicate E-Packet from this PE401 and in annular stacking system the Block message source port (with Port502
For) locating for PE402 (other PE principles are similar), based on above topology connect, by PE401 annular stack system broadcasts in a manner of
Send message for, multicast principle is similar, then according to shortest path select PE401 can according to as follows come path broadcasting packet:
R1:The Port1/1- of PE401>The Port2/1 of PE402;
R2:The Port1/2- of PE401>The Port4/2- of PE404>The Port4/1- of PE404>The Port3/2 of PE403.
Based on above-mentioned two paths, then corresponding source filtering is respectively set in the local source filter table of PE401 to PE404
List item.Wherein, the source filtering meter item being arranged in PE401 local source filter table includes:Source ID, that is, S12, source ID, that is, S12 are corresponding each
The port status of port is based on above-mentioned path R1, R2, then source ID, that is, S12 corresponding two sides stacking opening Port1/1, Port1/2
Port status is Forward, because the source port Port502 of Block message is in PE402, at this point, even if PE401 passes through this
Other each ports of ground, which send message than user-side port Port501 as shown in Figure 4, will not cause loop, to guarantee that message is general
Flood, then other the local each ports PE401 are also Forward than the port status of user-side port Port501 as shown in Figure 4.
And the source filtering meter item being arranged in PE404 local source filter table includes:The end of the corresponding each port source ID, that is, S12, source ID, that is, S12
Mouth state is based on above-mentioned path R1, R2, and source ID i.e. S12 is corresponding in the source filtering meter item being arranged in PE404 local source filter table
The port status of side stacking opening Port4/1 is Forward, and the port status of other side stacking opening Port4/2 is Block (main
If causing loop to avoid message receiver mouth from retransmiting message) because the source port Port502 of Block message is in
PE402, at this point, even if PE404, which passes through other local each ports, sends message than user-side port Port504 as shown in Figure 4
It will not cause loop, to guarantee that message floods, then other the local each ports PE404 are than user-side port as shown in Figure 4
The port status of Port504 is also Forward.The source filtering meter item being arranged in PE403 local source filter table includes:Source ID is
The port status of the corresponding each port S12, source ID, that is, S12 is based on above-mentioned path R1, R2, is arranged in PE403 local source filter table
Source filtering meter item in corresponding two sides stacking opening Port4/1, Port4/2 of source ID, that is, S12 port status be Block because
The source port Port502 of Block message is in PE402, at this point, even if PE403 is shown by local other each ports such as Fig. 4
User-side port Port503 send message and will not cause loop, to guarantee that message floods, then local other of PE403 each are held
Port status of the mouth than user-side port Port503 as shown in Figure 4 is Forward.As for PE402, because Block message
Source port Port502 is in this PE402, and based on the description of step 303 in process shown in above-mentioned Fig. 3, then source ID can be by PE402
S12 modification, for example be revised as S22, S22 be used to indicate user-side port Port502 and local all stacking opening Port2/1,
The forwarding of Port2/2Block message, the source filtering meter item being arranged in local source filter table include:The corresponding each port S22, S22
Port status, here, the end of the corresponding user-side port Port502 of S22 and local all stacking openings Port2/1, Port2/2
Mouth state is Block.
It is above-mentioned by source ID be S12 for, source ID be S13 (be used to indicate E-Packet from this PE401 and annular stack
PE403 locating for the source port of the Block message in system), source ID be S14 (be used to indicate E-Packet from this PE401 and
PE404 locating for the source port of the Block message in annular stacking system) principle is similar, it repeats no more.
Again by taking source ID is S11 as an example, S11 is used to indicate the forwarding of local user's side ports Port501Block message.Once
Source ID is S11, then means that on this PE401, to realize source port filtering, then S11 can be arranged in the source port Port501 of message
Be used to indicate local user's side ports Port501Block message forwarding, and for message how annular stack system forwards,
Above-mentioned two Topology connections are then based on, following shortest path is selected:
R3:The Port1/1- of PE401>The Port2/1- of PE402>The Port2/2- of PE402>The Port3/1 of PE403;
R4:The Port1/2- of PE401>The Port4/2 of PE404.
Based on above-mentioned two paths, then corresponding source filtering is respectively set in the local source filter table of PE401 to PE404
List item.Wherein, the source filtering meter item being arranged in PE401 local source filter table includes:Source ID, that is, S11, source ID, that is, S11 are corresponding each
The port status of port, based on the forwarding of local user's side ports Port501Block message is used to indicate above in connection with S11, then
The port status of the corresponding user-side port Port501 of S11 is Block, is based on above-mentioned path R3, R4, and source ID, that is, S11 is corresponding
The port status of two sides stacking opening Port1/1, Port1/2 is Forward.The source filtering being arranged in PE402 local source filter table
List item includes:The port status of the corresponding each port source ID, that is, S11, source ID, that is, S11 is based on above-mentioned path R3, R4, PE402 sheet
The port status of the corresponding side stacking opening Port2/1 of source ID i.e. S11 is in the source filtering meter item being arranged in the filter table of ground source
Block (mainly to avoid message receiver mouth from retransmiting message, causes loop), the port of other side stacking opening Port2/2
State is Forward because the source port Port501 of Block message is in PE401, at this point, even if PE402 by it is local its
His each port, which sends message than user-side port Port502 as shown in Figure 4, will not cause loop, to guarantee that message floods,
Then local port status of other each ports than user-side port Port502 as shown in Figure 4 of PE402 is Forward.PE403,
PE404 principle is similar to PE402.
In this application, also source mistake can be set based on PE402 to PE404 Topology connection present in annular stacking system
Table is filtered, principle is repeated no more similar to PE401.
It to sum up describes, local source filter table can be arranged in PE401 to PE404 according to the method described above.
After local source filter table is arranged in PE401 to PE404, it is described below how message carries out source port filtering:
By taking PE402 receives broadcasting packet (being denoted as message 601) by local Port502 as an example:
PE402 receives message 601 by local Port502, encapsulates ether label (E-Tag) in message 601.E-Tag
Including Ingress ECID.Ingress ECID is the ECID (ECID502_b) that Port502 is assigned.For ease of description, here
The message 601 for encapsulating E-Tag is denoted as message 602.
PE402 will be sent on message 602 to CB.
Message 602 is transmitted to PE401 by CB.
PE401 receives message 602 by up going port (being denoted as UP1).
PE401 has found that the Ingress ECID in the E-Tag that message 602 encapsulates is ECID502_b, and ECID502_b is
The upper Port502 of PE402 assigned ECID, then PE401 is that message 602 distributes EPORT502_a as the matched source of message 602
EPORT, and source IDS12 is distributed as the associated source ID of source EPORT.Here, PE401 is that message 602 distributes EPORT502_a work
For the matched source EPORT of message 602, and distributing source IDS12 can be based on issuing in up going port as the associated source ID of source EPORT
The tunnel of UP1 terminates and interface (TTI:Tunnel-Termination and Interface) it realizes.
PE401 searches the source filtering meter item comprising S12 in local source filter table, in the source filtering meter item found,
The port status of Port501, Port1/1, Port1/2 are Forward, then PE401 passes through Port501, Port1/1, Port1/2
E-Packet 602 respectively.Wherein, PE401 by Port501 E-Packet 602 when can to message 602 decapsulate (recover
Message 601) and forward.PE401 by Port1/1, Port1/2 E-Packet 602 when can be by source EPORT (EPORT502_
A), source ID (S12) is carried forwards in message 602.
When PE402 receives message 602, the source EPORT that discovery message 602 carries by stacking opening Port2/1
(EPORT502_a) EPORT being assigned for local port Port502 then forces the source ID (S12) for carrying message 602 to modify
For S22 as above.PE402 searches the source filtering meter item comprising S22 in local source filter table, the source filtering meter item found
In, the port status of Port502, Port2/1, Port2/2 are Block, then PE402 is in Port502, Port2/1, Port2/2
Block message 602.It finally realizes and executes that source port is filtered filters message 602 in PE402, while also filtering out message 602
System forwards are stacked in entire annular.
When PE404 receives message 602, the source EPORT that discovery message 602 carries by stacking opening Port4/2
(EPORT502_a) EPORT not being assigned for local port is then searched in local source filter table comprising the carrying of message 602
The source filtering meter item of source ID (S12), in the source filtering meter item found, the port status of Port504, Port4/1 are Foward,
The port status of Port4/2 is Block, then E-Packets 602 by Port504, Port4/1.Wherein, PE404 is passing through
Port504 E-Packet 602 when can decapsulate (restore outgoing packet 601) to message 602 and forward.
When PE403 receives message 602, the source EPORT that discovery message 602 carries by stacking opening Port3/2
(EPORT502_a) EPORT not being assigned for local port is then searched in local source filter table comprising the carrying of message 602
The source filtering meter item of source ID (S12), in the source filtering meter item found, the port status of Port503 is Foward, Port4/1,
The port status of Port4/2 is Block, then E-Packets 602 by Port504, Port4/1.Wherein, PE403 is passing through
Port503 E-Packet 602 when can decapsulate (restore outgoing packet 601) to message 602 and forward.
It is above-mentioned by taking message 602 is transmitted to PE401 by CB as an example, it is similar that message 602 is transmitted to PE403, PE404 principle by CB
It is transmitted to PE401, which is not described herein again.
Below again by taking PE401 receives broadcasting packet (being denoted as message 603) by local Port501 as an example:
PE401 receives message 603 by local Port501, encapsulates E-Tag in message 603.E-Tag includes Ingress
ECID.Ingress ECID is the ECID (ECID501_b) that Port501 is assigned.For ease of description, E- will be encapsulated here
The message 603 of Tag is denoted as message 604.
PE401 will be sent on message 604 to CB.
Message 604 is transmitted to PE401 by CB.
PE401 receives message 604 by up going port UP1.
PE401 has found that the Ingress ECID in the E-Tag that message 604 encapsulates is ECID501_b, and ECID502_b is this
The upper Port501 of PE401 assigned ECID, then PE401 is that message 602 distributes EPORT501_a as the matched source of message 604
EPORT, and source IDS11 is distributed as the associated source ID of source EPORT.Here, PE401 is that message 604 distributes EPORT501_a work
For the matched source EPORT of message 602, and distributing source IDS11 can be based on issuing in up going port as the associated source ID of source EPORT
The TTI of UP1 is realized.
PE401 searches the source filtering meter item comprising S11 in local source filter table, in the source filtering meter item found,
The port status of Port501 is Block, and Port1/1, Port1/2 port status are Forward, then PE401 exists
Port501Block message 604 (realizes source port filtering).PE401 E-Packets 604 in Port1/1, Port1/2.Its
In, PE401 by Port1/1, Port1/2 E-Packet 604 when source EPORT (EPORT501_a), source ID (S11) can be taken
Band is forwarded in message 604.
When PE402 receives message 604, the source EPORT that discovery message 604 carries by stacking opening Port4/2
(EPORT501_a) EPORT not being assigned for local port is then searched in local source filter table comprising the carrying of message 604
The source filtering meter item of source ID (S11), in the source filtering meter item found, the port status of Port2/1 is Block, Port2/2,
The port status of Port502 is Forward, then PE402 E-Packets 604 by Port502, Port2/2.Wherein, PE402 exists
By Port502 E-Packet 604 when can decapsulate (restore outgoing packet 603) to message 604 and forward.PE403, PE404 are former
Manage similar PE402.
So far, the description of embodiment is completed.
It should be noted that in the above-described embodiments, PE401 is used to indicate into PE404 local source filter table in user
The source ID that side ports, two sides stacking opening Block message forward can be identical, this can save the quantity of source ID.
Method provided by the present application is described above, device provided by the present application is described below:
Referring to Fig. 5, Fig. 5 is structure drawing of device provided by the present application.The device be applied to as in annular stacking system at
The ports-Extending bridge PE of member's equipment, including:Up going port, at least one port in addition to up going port, stacking opening, turns stacking opening
Send out control unit;
The forwarding control subsystem, the Ingress ECID for carrying according to local received first message of up going port are true
First source EPORT of fixed first message matching, and the determining and associated first source ID of the first source EPORT, in local source filter table
The middle port status for searching the corresponding each port the first source ID is the first message of port block for blocking Block in port status
Forwarding, port status be forward Forward port forward carry the first EPORT, the first source ID first
Message, port status are that the port of Forward includes at least one stacking opening;And
What the second source EPORT and local first port for carrying in received second message of local stacking opening were assigned
When EPORT is identical, first port is the port in addition to up going port, stacking opening, then forces the second source for carrying the second message
ID is revised as being used to indicate the third source ID in first port and local all the second message of stacking opening Block forwardings, in local
The port status that the corresponding first port of third source ID and local all stacking openings are searched in the filter table of source is Block, then
The second message of Block is in first port and local all stacking opening forwardings.
As one embodiment, the forwarding control subsystem determines the first of the first message matching according to Ingress ECID
Source EPORT includes:
If the Ingress ECID that the first message carries is the assigned ECID of local second port, by local second end
The assigned EPORT of mouth is determined as the first source EPORT of first message matching, and second port is except up going port, stacking opening
Except port.
The forwarding control subsystem is determined with the associated first source ID of the first source EPORT:It is used for preassigned
Instruction is determined as and the associated first source ID of the first source EPORT in the 4th source ID that the second port Block message forwards;Institute
It states the port that the corresponding port status of the first source ID is Block and includes at least the second port;Alternatively,
The forwarding control subsystem determines that the first source EPORT of the first message matching includes according to Ingress ECID:If
The Ingress ECID that first message carries is not the assigned ECID of local either port, then the port synchronous according to other PE
Information determines the port that the Ingress ECID is assigned on other PE, and the EPORT that the port of the determination is assigned is determined
For the first source EPORT of first message matching, synchronous port information is included at least:The assigned ECID in port,
EPORT。
The forwarding control subsystem is determined with the associated first source ID of the first source EPORT:It is used for preassigned
Indicate that this PE receives the mark ID of purpose PE locating for the source port of message and the Block message;
The source port refers to:The port identical with the Ingress ECID assigned ECID.
As one embodiment, the port status of the corresponding each port the first source ID is to be based on shortest path according to this PE to exist
Annular stacking system sends message and the principle of loop is not caused to be arranged, wherein message passes through under the premise of not causing loop
By port, port status Forward, on the contrary be Block.
As one embodiment, if the forwarding control subsystem checks the second source EPORT and local that the second message carries
The assigned EPORT of either port is different, then the second source ID of the second message carrying is further searched in local source filter table
The port status of corresponding each port, the second message forwarding described in the port block that port status is Block, in port status
To forward the port of Forward to forward second message;The port status of the corresponding each port second source ID is according to second
The source device of message is sent message in annular stacking system based on shortest path and the principle of loop is not caused to be arranged,
In, when the port on this PE be message via port, port status Forward, otherwise for Block;Second message
Source device refers to:The PE of the second message is received by local up going port.
So far, apparatus structure description provided by the present application is completed.
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 (11)
1. a kind of message forwarding method, which is characterized in that this method is applied to the end as member device in annular stacking system
Mouth extension bridge PE, including:
The first message is received by local up going port, the Ingress ECID carried according to the first message determines the first message matching
The first source EPORT, and it is determining with the associated first source ID of the first source EPORT, the first source ID is searched in local source filter table
The port status of corresponding each port is the first message of the port block forwarding for blocking Block in port status, in port status
To forward the port forwarding of Forward to carry the first message of the first source EPORT, the first source ID, port status
Port for Forward includes at least one stacking opening;
The second message is received by local stacking opening, if the second source EPORT and local first port that the second message carries are divided
The EPORT matched is identical, and first port is the port in addition to up going port, stacking opening, then forces carry the second message second
Source ID is revised as being used to indicate the third source ID in first port and local all the second message of stacking opening Block forwardings, at this
The port status that the corresponding first port of third source ID and local all stacking openings are searched in the filter table of ground source is Block,
Then the second message of Block is in first port and local all stacking opening forwardings.
2. the method according to claim 1, wherein described determine the first message matching according to Ingress ECID
The first source EPORT include:
If the Ingress ECID that the first message carries is the assigned ECID of local second port, by local second port quilt
The EPORT of distribution is determined as the first source EPORT of first message matching, and the second port is except up going port, stacking opening
Except port.
3. according to the method described in claim 2, it is characterized in that, the determination and the associated first source ID of the first source EPORT
Including:Preassigned be used to indicate is determined as and the first source in the 4th source ID of second port Block message forwarding
The associated first source ID of EPORT;
The port that the corresponding port status of the first source ID is Block includes at least the second port.
4. the method according to claim 1, wherein described determine the first message matching according to Ingress ECID
The first source EPORT include:
If the Ingress ECID that the first message carries is not the assigned ECID of local either port, synchronous according to other PE
Port information determine the port that the Ingress ECID is assigned on other PE, by the port of the determination be assigned
EPORT is determined as the first source EPORT of first message matching, and synchronous port information includes at least:What port was assigned
ECID、EPORT。
5. according to the method described in claim 4, it is characterized in that, the determination and the associated first source ID of the first source EPORT
Including:
Preassigned this PE that is used to indicate is received into mesh locating for the source port of the first message and Block first message
PE mark ID;
The source port refers to:The port identical with the Ingress ECID assigned ECID.
6. according to any method of claim 2 to 5, which is characterized in that the end of the corresponding each port the first source ID
Mouth state is to send message in annular stacking system based on shortest path according to this PE and the principle of loop is not caused to be arranged,
In, under the premise of not causing loop message via port, port status Forward, on the contrary be Block.
7. the method according to claim 1, wherein if checking the second source EPORT and this that the second message carries
Either port assigned EPORT in ground is different, then this method further comprises:
The port status that the corresponding each port the second source ID of the second message carrying is searched in local source filter table, in port shape
State is the forwarding of the second message described in the port block of Block, is the port forwarding described second for forwarding Forward in port status
Message;The port status of the corresponding each port the second source ID is to be based on shortest path in ring according to the source device of the second message
Sending in shape stacking system message and does not cause the principle of loop be arranged, wherein when the port on this PE for message via
Port, port status Forward, on the contrary it is Block;The source device of second message refers to:It is received by local up going port
The PE of second message.
8. a kind of apparatus for forwarding message, which is characterized in that the device is applied to the end as member device in annular stacking system
Mouth extension bridge PE, including:Up going port, stacking opening, at least one port in addition to up going port, stacking opening, forwarding control subsystem;
The forwarding control subsystem, the Ingress ECID for carrying according to received first message of local up going port determine the
First source EPORT of one message matching, and the determining and associated first source ID of the first source EPORT, are looked into local source filter table
The port status for looking for the corresponding each port the first source ID is the first message of the port block forwarding for blocking Block in port status,
It is the first message for forwarding the port forwarding of Forward to carry the first EPORT, the first source ID in port status,
Port status is that the port of Forward includes at least one stacking opening;And
What the second source EPORT and local first port for carrying in received second message of local stacking opening were assigned
When EPORT is identical, first port is the port in addition to up going port, stacking opening, then forces the second source for carrying the second message
ID is revised as being used to indicate the third source ID in first port and local all the second message of stacking opening Block forwardings, in local
The port status that the corresponding first port of third source ID and local all stacking openings are searched in the filter table of source is Block, then
The second message of Block is in first port and local all stacking opening forwardings.
9. device according to claim 8, which is characterized in that the forwarding control subsystem is determined according to Ingress ECID
First source EPORT of the first message matching includes:
If the Ingress ECID that the first message carries is the assigned ECID of local second port, by local second port quilt
The EPORT of distribution is determined as the first source EPORT of first message matching, and second port is in addition to up going port, stacking opening
Port;
The forwarding control subsystem is determined with the associated first source ID of the first source EPORT:It is used to indicate preassigned
It is determined as and the associated first source ID of the first source EPORT in the 4th source ID of second port Block message forwarding;Described
The port that the corresponding port status of one source ID is Block includes at least the second port;Alternatively,
The forwarding control subsystem determines that the first source EPORT of the first message matching includes according to Ingress ECID:If first
The Ingress ECID that message carries is not the assigned ECID of local either port, then the port information synchronous according to other PE
It determines the port for being assigned with the Ingress ECID on other PE, the EPORT that the port of the determination is assigned is determined as institute
The first source EPORT of the first message matching is stated, synchronous port information includes at least:Port assigned ECID, EPORT;
The forwarding control subsystem is determined with the associated first source ID of the first source EPORT:It is used to indicate preassigned
This PE receives the mark ID of purpose PE locating for the source port of message and the Block message;
The source port refers to:The port identical with the Ingress ECID assigned ECID.
10. device according to claim 8 or claim 9, which is characterized in that the port shape of the corresponding each port the first source ID
State is to send message in annular stacking system based on shortest path according to this PE and the principle of loop is not caused to be arranged, wherein
Under the premise of not causing loop message via port, port status Forward, on the contrary be Block.
11. according to the method described in claim 8, it is characterized in that, if the forwarding control subsystem checks that the second message carries
The second source EPORT it is different from the assigned EPORT of local either port, then further search second in local source filter table
Message carry the corresponding each port the second source ID port status, port status be Block port block described in second
Message forwarding is that the port of Forward is forwarded to forward second message in port status;The corresponding each port second source ID
Port status is to be based on shortest path according to the source device of the second message to send message in annular stacking system and do not cause ring
The principle setting on road, wherein when the port on this PE be message via port, port status Forward is on the contrary to be
Block;The source device of second message refers to:The PE of the second message is received by local up going port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810682139.7A CN108900440B (en) | 2018-06-27 | 2018-06-27 | Message forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810682139.7A CN108900440B (en) | 2018-06-27 | 2018-06-27 | Message forwarding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108900440A true CN108900440A (en) | 2018-11-27 |
CN108900440B CN108900440B (en) | 2021-02-26 |
Family
ID=64346422
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810682139.7A Active CN108900440B (en) | 2018-06-27 | 2018-06-27 | Message forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900440B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639573A (en) * | 2019-01-28 | 2019-04-16 | 新华三技术有限公司 | One provenance filters detection method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1412980A (en) * | 2002-11-08 | 2003-04-23 | 华为技术有限公司 | Data transmission method between web bridge |
CN101018180A (en) * | 2007-03-12 | 2007-08-15 | 中兴通讯股份有限公司 | A method for implementing the forward table in the stack system |
CN101594304A (en) * | 2009-07-02 | 2009-12-02 | 杭州华三通信技术有限公司 | Prevent that pile system from producing the method for loop and the member device in the pile system |
CN102075410A (en) * | 2009-11-20 | 2011-05-25 | 杭州华三通信技术有限公司 | Port mirroring method and device in stacking equipment |
US8358651B1 (en) * | 2009-09-21 | 2013-01-22 | Marvell International Ltd. | Switch device having a plurality of processing cores |
CN103024089A (en) * | 2011-09-20 | 2013-04-03 | 中国电信股份有限公司 | Network address translation method and device |
CN107547372A (en) * | 2017-08-30 | 2018-01-05 | 新华三技术有限公司 | One introduces a collection filters implementation method and device |
CN108055215A (en) * | 2017-12-26 | 2018-05-18 | 新华三技术有限公司 | Message forwarding method and device |
CN108259329A (en) * | 2017-08-30 | 2018-07-06 | 新华三技术有限公司 | A kind of message forwarding method and device |
-
2018
- 2018-06-27 CN CN201810682139.7A patent/CN108900440B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1412980A (en) * | 2002-11-08 | 2003-04-23 | 华为技术有限公司 | Data transmission method between web bridge |
CN101018180A (en) * | 2007-03-12 | 2007-08-15 | 中兴通讯股份有限公司 | A method for implementing the forward table in the stack system |
CN101594304A (en) * | 2009-07-02 | 2009-12-02 | 杭州华三通信技术有限公司 | Prevent that pile system from producing the method for loop and the member device in the pile system |
CN101594304B (en) * | 2009-07-02 | 2012-02-08 | 杭州华三通信技术有限公司 | Method for preventing stack system from generating loop and member equipment in stack system |
US8358651B1 (en) * | 2009-09-21 | 2013-01-22 | Marvell International Ltd. | Switch device having a plurality of processing cores |
CN102075410A (en) * | 2009-11-20 | 2011-05-25 | 杭州华三通信技术有限公司 | Port mirroring method and device in stacking equipment |
CN103024089A (en) * | 2011-09-20 | 2013-04-03 | 中国电信股份有限公司 | Network address translation method and device |
CN107547372A (en) * | 2017-08-30 | 2018-01-05 | 新华三技术有限公司 | One introduces a collection filters implementation method and device |
CN108259329A (en) * | 2017-08-30 | 2018-07-06 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN108055215A (en) * | 2017-12-26 | 2018-05-18 | 新华三技术有限公司 | Message forwarding method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109639573A (en) * | 2019-01-28 | 2019-04-16 | 新华三技术有限公司 | One provenance filters detection method and device |
CN109639573B (en) * | 2019-01-28 | 2021-05-25 | 新华三技术有限公司 | Source filtering detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108900440B (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6839348B2 (en) | System and method for distributing multicasts in virtual local area networks | |
US5959989A (en) | System for efficient multicast distribution in a virtual local area network environment | |
CN112119616B (en) | Packet replication method, apparatus and computer readable storage medium related to in-place operation implementation and management (IOAM) | |
US7388877B2 (en) | Packet transfer apparatus | |
CN103748835B (en) | The dynamic renewal of label switched path | |
CN106936777A (en) | Cloud computing distributed network implementation method based on OpenFlow, system | |
US20140122704A1 (en) | Remote port mirroring | |
JP2009094832A (en) | Multicast data distribution apparatus, distribution method therefor, and distribution control program thereof | |
CN102215172B (en) | A kind of method and system for realizing cross-virtual private local area network multicast | |
CN104579894B (en) | The IGMP Snooping implementation methods and device of the distributed virtual switch system | |
CN106411750B (en) | Data distributing method and system | |
CN101616014A (en) | A kind of method that realizes cross-virtual private local area network multicast | |
CN104579982B (en) | A kind of Layer 2 Multicast data message forwarding method and device | |
CN108243123A (en) | Processing method, device, controller and the interchanger of broadcasting packet | |
CN102984043B (en) | The retransmission method and device of multicast traffic stream | |
CN103546383B (en) | Redundant transmission method, equipment and system on a kind of looped network | |
CN101369994A (en) | Method, apparatus and system for implementing multicast group member management protocol proxy | |
CN102647359B (en) | Method for implementing network bridge IGMP (internet group management protocol) Snooping based on DSA TAG (digital signature algorithm tag) and user-defined protocol stack | |
CN101179412A (en) | Multi-multicast carrying network access equipment, system and method | |
CN108900440A (en) | Message forwarding method and device | |
CN106027352A (en) | Service message forwarding method and device | |
CN103179031B (en) | Based on multi-service forwarding and the processing method of stream mode | |
CN109257190A (en) | A kind of multicast processing method based on SDN, controller, interchanger and system | |
CN101022355A (en) | Method of broadcast transmitting message and an exchange equipment | |
CN108183851B (en) | Message forwarding method and forwarding equipment |
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 |