CN107547334B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN107547334B
CN107547334B CN201610513688.2A CN201610513688A CN107547334B CN 107547334 B CN107547334 B CN 107547334B CN 201610513688 A CN201610513688 A CN 201610513688A CN 107547334 B CN107547334 B CN 107547334B
Authority
CN
China
Prior art keywords
port
unicast message
local area
area network
virtual 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.)
Active
Application number
CN201610513688.2A
Other languages
Chinese (zh)
Other versions
CN107547334A (en
Inventor
周孟韬
祁正林
修亦宏
刘刀桂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610513688.2A priority Critical patent/CN107547334B/en
Publication of CN107547334A publication Critical patent/CN107547334A/en
Application granted granted Critical
Publication of CN107547334B publication Critical patent/CN107547334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a message forwarding method and a device, which are applied to a port expander of an expanded network bridge system, wherein the method comprises the following steps: receiving a first unicast message with an extended virtual local area network label through an uplink port; identifying the output port information of the expanded virtual local area network label of the first unicast message as the identification of the aggregation port; and stripping the label of the expanded virtual local area network of the first unicast message, and sending the label through an expanded port belonging to the aggregation port.

Description

Message forwarding method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
An Extended Bridge (Extended Bridge) is composed of a Control Bridge (CB) and a Port Extender (PE). The control bridge may be a single device or a stack of multiple devices operating as a single device.
In an Extended bridge as shown in fig. 1, an upstream Port (upstream Port) of each Port extender is correspondingly connected to a Cascade Port (Cascade Port) of the control bridge, and an Extended Port (Extended Port) of the Port extender is connected to a Port of the terminal (End Station).
When the port expander receives an uplink message through the expansion port, the port expander adds an ETAG (Extension VLAN Tag, an Extension virtual local area network Tag), uses the ECID of the ETAG of the expansion port of the received message to indicate an ingress port (ingress port) of the message, and sends the message added with the ETAG through the uplink port.
When the port expander receives the downlink message with the ETAG through the uplink port, the port expander sends a message for stripping the ETAG through an output port (egress port) indicated by the ECID.
Disclosure of Invention
The invention aims to provide a message forwarding method and a message forwarding device, which enable a port expander of an expansion network bridge to transmit a unicast message to a terminal connected with an aggregation port through an expansion port belonging to the aggregation port.
In order to achieve the above object, the present invention provides a packet forwarding method, including: receiving a first unicast message with an extended virtual local area network label through an uplink port; identifying the output port information of the expanded virtual local area network label of the first unicast message as the identification of the aggregation port; and stripping the label of the expanded virtual local area network of the first unicast message, and sending the label through an expanded port belonging to the aggregation port. .
The invention also provides a message forwarding device, which comprises: the receiving unit receives a first unicast message with an extended virtual local area network label through an uplink port; the identification unit is used for identifying the identification of the aggregation port carried by the output port information of the expanded virtual local area network label of the first unicast message; and the forwarding unit is used for stripping the label of the expanded virtual local area network of the first unicast message and sending the label through an expanded port belonging to the aggregation port.
The method and the device realize that the port expander of the expanded network bridge shares the unicast message sent to the terminal through the expanded port belonging to the aggregation port.
Drawings
Fig. 1 is a schematic diagram of a conventional expansion bridge.
Fig. 2A-2B are schematic diagrams of an extended bridge according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a network including the extended bridges shown in fig. 2A-2B.
Fig. 4A-4D are schematic diagrams of unicast packet forwarding in the network shown in fig. 3.
Fig. 5A-5D are schematic diagrams of broadcast packet forwarding in the network shown in fig. 3.
Fig. 6 is a schematic diagram of a message forwarding apparatus applied to the port expander in fig. 2A-2B.
Detailed Description
Fig. 2A shows an extended bridge 26 provided by an example of the present invention. The devices 23 and 24 are connected by a stacking link to form a stacking device as the control bridge 25. Upstream ports 211 and 212 of port expander 21 connect port 231 of device 23 and port 241 of device 24, respectively; upstream ports 221 and 222 of port expander 22 connect port 232 of device 23 and port 242 of device 24, respectively. The control bridge 25 and the port expanders 21 and 22 form an expansion bridge 26; the expansion port 213 of the port expander 21 and the expansion port 223 of the port expander 22 form an Aggregation port 200, and the Aggregation port 200 is connected to the (End Station) terminal 27 through a Link Aggregation Group (LAG) formed by links 201 and 202.
As shown in fig. 2B, the control bridge 25 has a tandem port 251, a tandem port 252 and a tandem port 253. Cascading port 251 includes ports 231 and 241 and cascading port 251 connects the two upstream ports of port expander 21. Cascading port 252 includes ports 232 and 242 and connects the two upstream ports of port expander 22. The cascade port 253 includes ports 231, 241, 232, and 242 and connects the four upstream ports of the port expanders 21 and 22 where the aggregation port 200 is located.
Control bridge 25 sets a Virtual Port (VP) 261 (not shown) of expansion Port 213 and assigns E-213 as an ECID indicating the E-channel between Virtual Port 261 and expansion Port 213. Control bridge 25 sets virtual port 262 (not shown) of expansion port 223 and assigns E-223 as an ECID indicating the E-channel between virtual port 262 and expansion port 223. The controlling bridge 25 sets virtual port 263 (not shown) of aggregation port 200 and assigns E-200 as an ECID indicating the E-channel between virtual port 263 and aggregation port 200.
The E-213, E-223 and E-200 assigned by the controlling bridge 25 belong to the global namespace and to the point-to-point E-channel.
The controlling bridge 25 associates E-213 and tandem port 251 with virtual port 263; associating E-223 and cascading port 252 with virtual port 263; virtual port 263 is associated with E-200 and tandem port 253.
In the network shown in fig. 3, control bridge 25 is connected to terminal 28 via a two-layer network (not shown), and expansion port 224 of port expander 22 is connected to terminal 29 via link 204. For example, when the terminals 27, 28, and 29 receive broadcast packets of the same VLAN, the control bridge 25 may assign broadcast ECIDs to the expansion ports 213, 223, and 224 for indicating E-channels between a virtual port on the control bridge 25 and the expansion ports 213, 223, and 224. The port expanders 21 and 22 receive the ethernet broadcast message with the ETAG through the upstream ports, and the ECID identifying the ETAG includes the identifications of the expansion ports 213, 223, 224. For example, when the terminals 27, 28, and 29 receive multicast packets of the same multicast group, the control bridge 25 may assign a multicast ECID to the expansion ports 213, 223, and 224 for indicating an E-channel between a virtual port on the control bridge 25 and the expansion ports 213, 223, and 224. The flaring expanders 21 and 22 receive the multicast message with the ETAG through the upstream ports, and the ECID identifying the ETAG includes the identifications of the expansion ports 213, 223, 224. The control bridge 25 may assign the broadcast ECID or multicast ECID based on the 802.1BR protocol and related network applications, which are not described in detail herein.
The process of the extended bridge 26 processing unicast packets is described based on the network shown in fig. 3 and fig. 4A-4D.
Uplink unicast packet processing
In fig. 4A, terminal 27 generates an ethernet unicast message 40, wherein the source MAC address and the destination MAC address are the MAC address of terminal 27 and the MAC address of terminal 28, respectively. Terminal 27 may select port 272 from ports 271 and 272 to send an ethernet unicast message.
The port expander 22 receives the ethernet unicast message 40 through the expansion port 223, adds ETAG based on E-223 of the expansion port 223, and selects the uplink port 222 to transmit among the uplink ports 221 and 222. As shown in fig. 4A, the ecad attribute of the ETAG of the unicast packet 41 sent by the port expander 22 is E-223, indicating that the expansion port 223 of the aggregation port 200 is an ingress port.
The control bridge 25 receives the unicast message 41 through the port 242 of the cascade port 252, does not find the MAC address table entry matching the VLAN ID and the source MAC address of the unicast message 41, and learns the MAC address table entry according to the virtual local area network identifier (VLAN ID), the source MAC address, and the virtual port 263 of the unicast message 41. Control bridge 25 may recognize that unicast message 41 was received through virtual port 263 based on the association of tandem ports 252 and E-223 with virtual port 263, and thus perform MAC entry learning based on virtual port 263.
The control bridge 25 finds the MAC address entry matching the VLAN ID of the unicast packet 41 and the destination MAC address, determines that the port is a non-expansion port, removes the ETAG, and transmits the entry through the exit port of the found MAC address entry. As shown in fig. 4A, after the controlling bridge 25 removes the ETAG of the unicast packet 41, the ethernet unicast packet 40 is obtained. Thus, the ethernet unicast message 40 is sent to the terminal 28 through the two-layer network (not shown in fig. 3).
In fig. 4B, the terminal 27 generates an ethernet unicast message 42, wherein the source MAC address and the destination MAC address are the MAC address of the terminal 27 and the MAC address of the terminal 28, respectively. Terminal 27 may select port 271 from ports 271 and 272 and send ethernet unicast message 42.
The port expander 21 receives the ethernet unicast message 42 through the expansion port 213, adds ETAG based on E-213 of the expansion port 213, and selects the uplink port 212 to transmit in the uplink ports 211 and 212. As shown in fig. 4B, the ecad attribute of the ETAG of the unicast packet 43 sent by the port expander 21 is E-223, which indicates that the expansion port 213 of the aggregation port 200 is the ingress port.
The control bridge 25 receives the unicast message 43 through the port 241 of the cascade port 251, finds that the output port of the MAC address table entry matching the VLAN ID and the source MAC address is the virtual port 263, and does not perform MAC address learning. The controlling bridge 25 may recognize that the unicast message 43 was received through virtual port 263 based on the association of the cascading ports 252 and E-223 with virtual port 263. The control bridge 25 finds that the output port of the MAC entry is not bordered according to the unicast message 43, and therefore MAC address learning is not performed.
The control bridge 25 finds the MAC address table entry matching the VLAN ID of the unicast packet 43 and the destination MAC address, removes the ETAG, and sends the entry through the output port of the found MAC address table entry. As shown in fig. 4B, the controlling bridge 25 removes the ETAG of the unicast packet 43, resulting in an ethernet unicast packet 42. Such that ethernet unicast messages 42 are sent to the terminal 28 through the two-layer network.
In the example shown in fig. 4A and 4B, if the controlling bridge 25 determines to perform three-layer forwarding according to the MAC entry matching the destination MAC address of the unicast packet 41 or 43, the ETAG is removed and forwarding is performed according to the destination IP address encapsulation.
Downlink unicast packet forwarding
In fig. 4C, terminal 28 generates an ethernet unicast message 44, wherein the source MAC address and the destination MAC address are the MAC address of terminal 28 and the MAC address of terminal 27, respectively.
The control bridge 25 receives the ethernet unicast message 44 through the two-layer network, finds the MAC address table entry matching the VLAN ID and the destination MAC address and the egress port is the virtual port 263, adds the ETAG according to the E-200 of the aggregation port 200, and transmits the ETAG through the cascade port 253. As shown in fig. 4C, the ECID attribute of unicast message 45 sent out by controlling bridge 25 is E-200, indicating that aggregation port 200 is an egress port. The controlling bridge 25 may select one port from the four ports of the tandem port 253 to send the unicast message 45. When control bridge 25 selects port 231 or 241, unicast message 45 is sent to port extender 21.
The port expander 21 receives the unicast message 45 through the uplink port 211 or 212, identifies that the aggregation port 200 is an egress port based on the ECID attribute E-200, removes the ETAG, and transmits the exit port through the expansion port 213 of the aggregation port 200. As shown in fig. 4C, port extender 21 sends an ethernet unicast message 44. Thus, the ethernet unicast message 44 is sent to the terminal 27 via the link 201 shown in fig. 3.
In fig. 4D, terminal 28 generates an ethernet unicast message 46; wherein the source MAC address and the destination MAC address are the MAC address of the terminal 28 and the MAC address of the terminal 27, respectively.
The control bridge 25 receives the ethernet unicast message 46 through the two-layer network, searches for a MAC address table entry matching the VLAN ID and the destination MAC address and an egress port is a virtual port 263, adds an ETAG based on the E-200 of the aggregation port 200, and transmits the ETAG through the cascade port 253. As shown in fig. 4D, the ECID attribute of the unicast packet 47 sent by the controlling bridge 25 is E-200, indicating that the aggregation port is an egress port. When the controlling bridge 25 can select a port 232 or 242 from the four ports of the tandem port 253, a unicast message 47 is sent to the port expander 22.
The port expander 22 receives the unicast message 47 through the upstream port 221 or 222, identifies that the aggregation port 200 is an egress port based on the ECID attribute E-200, removes the ETAG, and transmits the exit port through the expansion port 223 of the aggregation port 200. As shown in fig. 4D, port extender 22 sends an ethernet unicast message 46 to terminal 27.
Broadcast message forwarding
The process by which the extended bridge 26 processes broadcast messages is described based on the network shown in fig. 3 and fig. 4A-4D.
In fig. 5A, the terminal 27 generates the ethernet broadcast packet 50, and selects the port 272 from the ports 271 and 272 to transmit the ethernet broadcast packet 50.
The port expander 22 receives the ethernet broadcast message 50 through the expansion port 223, adds ETAG based on E-223 of the expansion port 223, and selects the uplink port 221 to transmit among the uplink ports 221 and 222. As shown in fig. 5A, the ecad attribute of the ETAG of the broadcast packet 51 sent by the port expander 22 is E-223, indicating that the expansion port 223 of the aggregation port 200 is an ingress port.
The control bridge 25 receives the broadcast message 51 through the port 242 of the cascade port 252, copies two broadcast messages according to the number of the port extenders 21 and 22, sets the ECID of each copied broadcast message as the broadcast ECID, and sets the Ingress ECID as E-223, to obtain two broadcast messages (e.g., the broadcast message 52 shown in fig. 5A). The control bridge 25 may select one of the two ports of the tandem port 251 to send a single broadcast packet 52 to the port expander 21. The controlling bridge 25 may select one of the two ports of the cascading ports 252 to send another broadcast packet 52 to the port expander 22. As shown in fig. 5A, the controlling bridge 25 selects port 241 and port 242, respectively, to send two broadcast messages 52.
The controlling bridge 25 removes the ETAG of the received broadcast packet 51 to obtain the ethernet broadcast packet 50, copies a plurality of ethernet broadcast packets according to the number of ports with the same VLAN, and sends one ethernet unicast packet 50 through each port with the same VLAN. As shown in fig. 5A, a copy of the ethernet broadcast message 50 is sent to the terminal 28 over a two-tier network.
The port expander 21 receives the broadcast message 52 through the uplink port 212, identifies that the expansion port 213 is an egress port based on the broadcast ECID, identifies that the expansion port 223 is an Ingress port based on the Ingress ECID attribute E-223, and determines that the Ingress port and the egress port belong to the aggregation port 200, and the source filtering fails. The port expander 21 does not re-transmit the ethernet broadcast message 50 from the terminal 27 back to the terminal 27 via the expansion port 213 for which the source filtering failed.
Port expander 22 receives another broadcast message 52 via upstream port 222; identifying expansion ports 223 and 224 as egress ports based on the broadcast ECID; identifying that the expansion port 223 is an ingress port based on the ingress ECID attribute E-223; determining that the expansion port 223 as one of the egress ports is an ingress port and the source filter check fails; determining that expansion port 224, which is another egress port, is different from the ingress port and does not belong to aggregation port 200, the source filtering check is successful, the ETAG is removed, and the result is sent through expansion port 224. As shown in fig. 5A, port expander 22 transmits ethernet broadcast messages 50 from terminal 27 to terminal 29 via expansion port 224 and prevents ethernet broadcast messages 50 from terminal 27 from being transmitted back to terminal 27.
In fig. 5B, the terminal 27 generates the ethernet broadcast packet 53, and selects the port 271 from the ports 271 and 272 to transmit the ethernet broadcast packet 53.
The port expander 21 receives the ethernet broadcast message 53 through the expansion port 213, adds ETAG based on E-213 of the expansion port 213, and selects the uplink port 211 to transmit among the uplink ports 211 and 212. As shown in fig. 5B, the ecad attribute of the ETAG of the broadcast packet 54 sent by the port expander 22 is E-213, which indicates that the expansion port 213 of the aggregation port 200 is an ingress port.
The control bridge 25 receives the broadcast message 54 through the port 241 of the cascade port 251, copies two broadcast messages according to the number of the port extenders 21 and 22, sets the ECID of the indicated port of each broadcast message as the broadcast ECID, and sets the Ingress ECID of each copied broadcast message as E-213, to obtain two broadcast messages, such as the broadcast message 55 shown in fig. 5B. As shown in fig. 5B, the control bridge 25 selects the port 231 of the cascade port 251 to send one broadcast packet 55, and selects the port 232 of the cascade port 252 to send another broadcast packet 55.
The controlling bridge 25 removes the ETAG of the received broadcast message 54 to obtain an ethernet broadcast message 53, copies a plurality of ethernet broadcast messages according to the number of ports with the same VLAN, and sends an ethernet unicast message 53 through each port with the same VLAN. As shown in fig. 5B, a copy of the ethernet broadcast message 53 is sent to the terminal 28 over the two-tier network.
The port expander 21 receives the broadcast message 55 through the uplink port 211; identifying that expansion port 213 is an egress port based on the broadcast ECID; identifying that the expansion port 213 is an Ingress port based on Ingress ECID attribute E-213; determining that the ingress port and the egress port are the same, the source filter check fails. The port expander 21 does not re-transmit the ethernet broadcast message 53 from the terminal 27 back to the terminal 27 through the expansion port 213 for which the source filtering failed.
The port expander 22 receives another broadcast message 55 through the upstream port 212, and recognizes that the expansion ports 223 and 224 are egress ports based on the broadcast ECID; identifying that the expansion port 213 is an ingress port based on the ingress ECID attribute E-213; determining that the expansion port 223 as one of the egress ports and the ingress port belong to the aggregation port 200, and the source filtering check fails; determining that an expansion port 224 port, which is another egress port, is different from the ingress port and does not belong to aggregation port 200, the source filtering check is successful, the ETAG is removed, and the result is sent through expansion port 224. As shown in fig. 5B, port expander 22 transmits ethernet broadcast messages 53 from terminal 27 to terminal 29 via expansion port 224 and prevents ethernet broadcast messages 53 from terminal 27 from being transmitted back to terminal 27.
As shown in fig. 5C, the terminal 28 generates an ethernet broadcast message 56. The control bridge 25 copies the ethernet broadcast messages 56 according to the number of the port expanders 21 and 22, adds ETAGs to each ethernet broadcast message 56 based on the broadcast ECID, selects the port 241 of the cascade port 251 to send one broadcast message 57 carrying the broadcast ECID, and selects the port 242 of the cascade port 252 to send one broadcast message 57 carrying the broadcast ECID.
The port expander 21 receives the broadcast message 57 through the uplink port 212; identifying that the egress port is an expansion port 213 based on the broadcast ECID, determining that the ingress port is different from the egress port and does not belong to the expansion port 200, and passing the source filtering check; performing hash calculation on the broadcast message 57, and determining that the hash value is matched with the hash value allowed to pass through by the expansion port 213; the ETAG is removed and the ethernet broadcast message 56 is sent through the expansion port 213.
Port expander 22 receives broadcast message 57 via upstream port 222; identifying ports as expansion ports 223 and 224 based on the broadcast ECID; determining that the expansion port 223 of one of the ingress port and the egress port is different and does not belong to the expansion port 200, and the source filtering check passes; performing hash calculation on the broadcast message 57, determining that the hash value is not matched with the hash value allowed to pass through the expansion port 223, and not sending the hash value through the expansion port 223; determining that the ingress port and the expansion port 224 as another egress port are different and do not belong to the aggregation port 220, the source filtering check is successful; the ETAG of broadcast message 57 is removed and ethernet broadcast message 56 is sent via expansion port 223. As shown in fig. 5C, the expansion bridge 26 sends only one ethernet broadcast message from the terminal 28 to the terminal 27 via the aggregation port 200.
As shown in fig. 5D, terminal 28 generates an ethernet broadcast message 58. The control bridge 25 copies the ethernet broadcast messages 58 according to the number of the port expanders 21 and 22, adds ETAGs to each ethernet broadcast message 58 based on the broadcast ECID, selects the port 231 of the cascade port 251 to send one broadcast message 59 carrying the broadcast ECID, and selects the port 232 of the cascade port 252 to send one broadcast message 59 carrying the broadcast ECID.
The port expander 21 receives the broadcast message 59 through the uplink port 211; identifying that the egress port is an expansion port 213 based on the broadcast ECID, determining that the ingress port is different from the egress port and does not belong to the expansion port 200, and passing the source filtering check; the hash calculation is performed on the broadcast packet 59, and it is determined that the hash value does not match the hash value allowed to pass through the expansion port 213, and is not sent through the expansion port 213.
Port expander 22 receives broadcast message 59 via upstream port 221; identifying that the ports are expansion ports 223 and 224 based on the broadcast ECID, determining that the expansion port 223 of one of the ingress port and the egress port is different and does not belong to the expansion port 200, and the source filtering check is passed; performing hash calculation on the broadcast message 59, and determining that the hash value is matched with the hash value allowed to pass through by the expansion port 223; determining that an egress port is different from expansion port 224, which is another egress port, and does not belong to aggregation port 200, the source filtering check is successful. Port expander 22 removes the ETAG, copies the two ethernet broadcast messages 28, sends one ethernet broadcast message 58 through expansion port 223, and sends one ethernet broadcast message 58 through expansion port 224. Thus, the ethernet broadcast message 58 from terminal 28 is sent to terminal 27 and terminal 29, respectively, through aggregation port 200 and expansion port 224 of expansion bridge 26.
In the examples shown in fig. 4A to 4D and fig. 5A to 5D, the ECID allocated to the expansion port is used to indicate an ingress port of the uplink unicast message and a source filtering check of the non-unicast message, and the ECID allocated to the aggregation port indicates an egress port of the downlink unicast message.
In fig. 5C-5D, the port expanders 21 and 22 calculate a value according to the triplet, quintet, heptatuple, or other parameters of the broadcast packet 59, and perform modulo operation on the calculated value according to the number of members of the aggregation port 200 to obtain a hash value. The port expanders 21 and 22 send ethernet broadcast messages with the ETAGs removed through the expansion ports with the hash values matched, and perform load sharing on the ethernet broadcast messages sent to the terminal 27 by the aggregation port 200.
In the implementation of the present invention, when the ETAGs of the multicast packets received by the port expanders 21 and 22 from the uplink ports respectively carry multicast ECID, after the port expanders 21 and 22 identify ports according to the multicast ECID, the source filtering check and forwarding processing of the expansion ports are performed, and the load sharing processing of the aggregation port 200 is the same as the processing mechanism when the expansion ports send broadcast packets in fig. 5A to 5D.
In the expansion bridge 26 shown in fig. 2A-2B, the control bridge 25 assigns an ECID to each expansion port and the expansion port forming an aggregation port according to the global namespace. When the control bridge 25 receives the uplink non-unicast message with the ETAG through the cascade port connected to each port expander, the control bridge sets the ingress ECID attribute of the downlink non-unicast message sent to each port expander. The control bridge 25 receives the non-broadcast message through the two-layer network port, and sets the ingress ECID of the downlink non-unicast message sent to each port expander to a specific value, such as 0, indicating that the ingress port is not an expansion port of the expansion bridge 26; therefore, when each port expander receives the downlink non-unicast message from the uplink port, according to the ingress ECID, it can be known that the ingress port of the downlink non-unicast message and the egress port corresponding to the ECID are different and do not belong to the same aggregation port.
Fig. 6 shows a message forwarding apparatus 600 provided by the present invention, which can be applied to the port expander 21 of the expansion bridge 26 in fig. 2A-2B. The packet forwarding apparatus 600 includes: a receiving unit 610, an identifying unit 620, a forwarding unit 630 and a source filtering unit 640.
A receiving unit 610, configured to receive a first unicast packet with an extended virtual local area network tag through an uplink port; the identifying unit 620 identifies that the output port information of the extended virtual local area network tag of the first unicast message carries an identifier of the aggregation port; the forwarding unit 630 strips the tag of the extended virtual local area network of the first unicast packet, and sends the first unicast packet through the extended port belonging to the aggregation port.
A receiving unit 610, receiving the second unicast packet through the expansion port;
a forwarding unit 630, which adds an extended virtual local area network tag to the second unicast message based on the identifier of the extended port; sending a second unicast message added with the extended virtual local area network label through the uplink port; and the entry port information of the extended virtual local area network tag of the second unicast message carries the identifier of the extended port.
A receiving unit 610, configured to receive a first non-unicast packet with an extended virtual local area network tag through an uplink port; an identifying unit 620, configured to identify that egress port information of an extended virtual local area network tag of the first non-unicast packet includes an identifier of an extended port; a forwarding unit 630, configured to calculate a hash value of the first non-unicast packet; and when the hash value is matched with the expansion port, removing the expansion virtual local area network label of the first non-unicast message, and sending the first non-unicast message through the expansion port.
The source filtering and checking unit 640 determines that the ingress port of the first non-unicast packet is different from the extension port and does not belong to the aggregation port based on ingress port information carried by the extended vlan tag of the first non-unicast packet.
A receiving unit 640, which receives the second non-unicast message through the expansion port; a forwarding unit 630, which adds an extended virtual local area network tag to the second non-unicast message based on the identifier of the extended port; wherein, the entry port information of the extended virtual local area network tag of the second unicast message carries the identifier of the extended port; and sending a second non-unicast message added with the expanded virtual local area network label through the uplink port.

Claims (10)

1. A message forwarding method is applied to a port expander, and the method comprises the following steps:
receiving a first unicast message with an extended virtual local area network label from a control network bridge through an uplink port;
identifying that the output port information of the extended virtual local area network tag of the first unicast message carries an identifier of an aggregation port;
and stripping the label of the expanded virtual local area network of the first unicast message, and sending the label to a terminal connected with the expanded port through the expanded port belonging to the aggregation port.
2. The method of claim 1, further comprising:
receiving a second unicast message through the expansion port;
adding an extended virtual local area network label to the second unicast message based on the identifier of the extended port; wherein, the ingress port information of the extended virtual local area network tag of the second unicast message carries the identifier of the extended port;
and sending a second unicast message added with the expanded virtual local area network label through the uplink port.
3. The method of claim 1, further comprising:
receiving a first non-unicast message with an extended virtual local area network label through the uplink port;
identifying that the output port information of the extended virtual local area network tag of the first non-unicast message contains the identifier of the extended port;
calculating a hash value of the first non-unicast message;
and when the hash value is matched with the expansion port, removing the expansion virtual local area network label of the first non-unicast message, and sending the first non-unicast message through the expansion port.
4. The method of claim 3, wherein prior to computing the hash value for the first non-unicast packet, the method further comprises:
and determining that the ingress port of the first non-unicast message is different from the expansion port and does not belong to the aggregation port based on ingress port information carried by an extended virtual local area network tag of the first non-unicast message.
5. The method of claim 3,
receiving a second non-unicast message through the expansion port;
adding an extended virtual local area network tag to the second non-unicast message based on the identification of the extended port; wherein, the ingress port information of the extended virtual local area network tag of the second non-unicast message carries the identifier of the extended port;
and sending a second non-unicast message added with the extended virtual local area network label through the uplink port.
6. A message forwarding apparatus, wherein the apparatus is applied to a port expander, and the apparatus comprises:
the receiving unit receives a first unicast message with an extended virtual local area network label from the control network bridge through an uplink port;
the identification unit is used for identifying that the outlet port information of the expanded virtual local area network label of the first unicast message carries the identification of the aggregation port;
and the forwarding unit is used for stripping the label of the expanded virtual local area network of the first unicast message and sending the value to the terminal connected with the expanded port through the expanded port belonging to the aggregation port.
7. The apparatus of claim 6,
the receiving unit receives a second unicast message through the expansion port;
the forwarding unit adds an extended virtual local area network label to the second unicast message based on the identifier of the extended port; sending a second unicast message added with an extended virtual local area network label through the uplink port; and the ingress port information of the extended virtual local area network tag of the second unicast message carries the identifier of the extended port.
8. The apparatus of claim 6,
the receiving unit receives a first non-unicast message with an extended virtual local area network label through the uplink port;
the identification unit is configured to identify that the egress port information of the extended virtual local area network tag of the first non-unicast packet includes an identifier of the extended port;
the forwarding unit calculates a hash value of the first non-unicast message; and when the hash value is matched with the expansion port, removing the expansion virtual local area network label of the first non-unicast message, and sending the first non-unicast message through the expansion port.
9. The apparatus of claim 8, further comprising:
and the source filtering and checking unit is used for determining that the ingress port of the first non-unicast message is different from the expansion port and does not belong to the aggregation port based on ingress port information carried by the expanded virtual local area network tag of the first non-unicast message.
10. The apparatus of claim 6,
the receiving unit receives a second non-unicast message through the expansion port;
the forwarding unit adds an extended virtual local area network label to the second non-unicast message based on the identifier of the extended port; wherein, the ingress port information of the extended virtual local area network tag of the second non-unicast message carries the identifier of the extended port; and sending a second non-unicast message added with the extended virtual local area network label through the uplink port.
CN201610513688.2A 2016-06-28 2016-06-28 Message forwarding method and device Active CN107547334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610513688.2A CN107547334B (en) 2016-06-28 2016-06-28 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610513688.2A CN107547334B (en) 2016-06-28 2016-06-28 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN107547334A CN107547334A (en) 2018-01-05
CN107547334B true CN107547334B (en) 2021-01-26

Family

ID=60966366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610513688.2A Active CN107547334B (en) 2016-06-28 2016-06-28 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN107547334B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471383B (en) * 2018-02-08 2021-02-12 华为技术有限公司 Message forwarding method, device and system
CN108632176B (en) * 2018-04-28 2021-03-09 新华三技术有限公司 Stacking system, PE (provider edge) equipment and message forwarding method
CN108696459B (en) * 2018-04-28 2021-04-06 新华三技术有限公司 Stacking system and message forwarding method
CN110505166B (en) * 2018-05-16 2021-09-21 杭州海康威视数字技术股份有限公司 Broadcast packet forwarding method and device, electronic equipment and readable storage medium
CN110661710B (en) * 2019-09-20 2022-02-25 锐捷网络股份有限公司 Message transmission method and device of virtualization system
CN111163009B (en) * 2020-02-20 2021-06-22 盛科网络(苏州)有限公司 Method and device for realizing three-layer multicast in port expansion system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457818A (en) * 2012-05-31 2013-12-18 美国博通公司 Multi-homing in an extended bridge
CN104410577A (en) * 2014-11-05 2015-03-11 杭州华三通信技术有限公司 Broadcast message transmission method and device
CN104780111A (en) * 2015-04-08 2015-07-15 杭州华三通信技术有限公司 Packet forwarding method and device in virtualized network as well as virtualized network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140044129A1 (en) * 2012-08-10 2014-02-13 Duane Edward MENTZE Multicast packet forwarding in a network
CN103780480B (en) * 2012-10-17 2017-08-11 新华三技术有限公司 Message forwarding method and equipment
CN105530179B (en) * 2014-09-29 2019-01-22 新华三技术有限公司 Data message processing method and the network equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457818A (en) * 2012-05-31 2013-12-18 美国博通公司 Multi-homing in an extended bridge
CN104410577A (en) * 2014-11-05 2015-03-11 杭州华三通信技术有限公司 Broadcast message transmission method and device
CN104780111A (en) * 2015-04-08 2015-07-15 杭州华三通信技术有限公司 Packet forwarding method and device in virtualized network as well as virtualized network

Also Published As

Publication number Publication date
CN107547334A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN107547334B (en) Message forwarding method and device
CN105991445B (en) Setting method and device of link aggregation group
CN104735001B (en) Link discovery method, apparatus and system in software defined network
CN106330704B (en) Message forwarding method and device
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
US10523464B2 (en) Multi-homed access
CN108259635B (en) ARP (Address resolution protocol) table item learning method and DR (digital radiography) equipment
CN109379297B (en) Method and device for realizing flow load balance
CN110830371A (en) Message redirection method and device, electronic equipment and readable storage medium
CN107547419B (en) Extended network bridge system and message forwarding method and device
US8553691B2 (en) Efficient multicasting in a distributed system architecture
CN103117935A (en) Multicast data forwarding method and multicast data forwarding device applied to multi-homing networking
CN106899506B (en) Method and device for forwarding protocol message
US9246797B2 (en) PORT based redundant link protection
CN108259297B (en) Message processing method and device
WO2017201750A1 (en) Method, device and system for processing multicast data
CN106059964B (en) Message forwarding method and device
CN105493454A (en) Active-active access to transparent interconnection of lots of links (TRILL) edges
JP6743176B2 (en) Link Aggregation Group Settings
JP5905161B2 (en) Gateway device, network system including gateway device, air conditioning outdoor unit, and air conditioning network system
CN107294846B (en) Message forwarding method and device
CN104410577A (en) Broadcast message transmission method and device
CN108650221B (en) Control message extraction device and method of SPTN (shortest Path bridging) equipment
CN108632149B (en) Multicast method and routing device for satellite frame relay network
WO2013157256A1 (en) Interworking device, method, and non-transitory computer-readable medium storing a program

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