CN107547449B - Mirror image message forwarding method, device and system - Google Patents

Mirror image message forwarding method, device and system Download PDF

Info

Publication number
CN107547449B
CN107547449B CN201710524832.7A CN201710524832A CN107547449B CN 107547449 B CN107547449 B CN 107547449B CN 201710524832 A CN201710524832 A CN 201710524832A CN 107547449 B CN107547449 B CN 107547449B
Authority
CN
China
Prior art keywords
message
etag
port
cid
mirror image
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
CN201710524832.7A
Other languages
Chinese (zh)
Other versions
CN107547449A (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 CN201710524832.7A priority Critical patent/CN107547449B/en
Publication of CN107547449A publication Critical patent/CN107547449A/en
Application granted granted Critical
Publication of CN107547449B publication Critical patent/CN107547449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a mirror image message forwarding method, a mirror image message forwarding device and a mirror image message forwarding system. In the application, a matched mirror image table item can be configured on a CB aiming at a certain port based on service requirements, when the CB receives a first message with an expansion label ETAG through a first cascade port, if the first mirror image table item is found according to a source port indicated by an E-CID of the ETAG of the first message, wherein a destination port of the first mirror image table item is an expansion port, the first message with the ETAG is copied, the copied first message with the ETAG carries the E-CID of the expansion port, the first message with the E-CID of the expansion port is sent through a cascade port connected with a PE where the expansion port is located, and finally, mirror image of the message is realized.

Description

Mirror image message forwarding method, device and system
Technical Field
The present application relates to network communication technologies, and in particular, to a method, an apparatus, and a system for forwarding mirror packets.
Background
Extended bridge technologies such as 802.1BR extend bridges and bridge management objects through 802LAN technology and interactive interfaces. The extension Bridge networking is divided into two types, namely a Control Bridge (CB) and a Port Extender (PE). The CB controls and manages the PE through a PE CSP protocol.
At present, in order to monitor traffic, monitored traffic is often mirrored to a monitoring port in a mirroring manner, so as to perform fault location, traffic analysis, traffic backup, and the like on the monitored traffic. However, in extended bridge networking, there is currently no mirroring implementation.
Disclosure of Invention
The application provides a mirror image message forwarding method, a mirror image message forwarding device and a mirror image message forwarding system, so as to realize mirror image of messages.
The technical scheme provided by the application comprises the following steps:
a mirror image message forwarding method is applied to a control bridge of an extended network bridge, and comprises the following steps:
receiving a first message with an extended label ETAG through a first cascade interface;
searching a first mirror image table item according to a source port indicated by E-CID of ETAG of the first message; wherein the destination port of the first mirror table entry is an expansion port,
copying a first message with ETAG;
carrying the E-CID of the expansion port by the copied first message with the ETAG;
and sending a first message carrying the E-CID of the expansion port through a cascade port of the PE connected with the expansion port.
A mirror image message forwarding device is applied to a control bridge of an extended network bridge, and comprises:
a receiving unit, configured to receive a first packet with an extended tag ETAG through a first cascade interface;
a mirror image unit, configured to find a first mirror image entry according to a source port indicated by an E-CID of an ETAG of the first packet; if the destination port of the first mirror image table entry is an expansion port, copying a first message with an ETAG (Ethernet target access gateway), and carrying the E-CID of the expansion port by the copied first message with the ETAG;
a sending unit, configured to send, through a cascade interface connected to a PE where the expansion port is located, a first packet carrying an E-CID of the expansion port.
A mirrored message forwarding system, the system comprising: a first cascade port of the CB is interconnected with an uplink port of the first PE; the second cascade port of the CB is interconnected with the uplink port of the second PE;
the first PE sends a first message with an extended label ETAG through an uplink port connected with the CB;
the CB receives a first message with an expansion label ETAG sent by a first PE through a first cascade port accessed to the first PE, finds a first mirror image table item according to a source port indicated by an E-CID of the ETAG of the first message, copies the first message with the ETAG if a target port of the first mirror image table item is an expansion port, carries the E-CID of the expansion port with the copied first message with the ETAG, and sends the first message with the E-CID of the expansion port through the cascade port connected with the PE where the expansion port is located; wherein the source port and the destination port are both located in the first PE or in the first PE and the second PE, respectively.
According to the technical scheme, the matched mirror image table entry can be configured on the CB aiming at a certain port based on service requirements, when the CB receives a first message with an expansion label ETAG through a first cascade port, if the first mirror image table entry is found according to a source port indicated by an E-CID of the ETAG of the first message, wherein a target port of the first mirror image table entry is an expansion port, the first message with the ETAG is copied, the copied first message with the ETAG carries the E-CID of the expansion port, the first message with the E-CID of the expansion port is sent through the cascade port connected with a PE where the expansion port is located, and finally mirror image of the message is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart of a method provided herein;
FIG. 2 is a schematic diagram of application networking of an embodiment provided in the present application;
FIG. 3 is a diagram of the ETAG tag structure provided herein;
FIG. 4 is a schematic diagram of the apparatus provided herein;
fig. 5 is a schematic hardware structure diagram of the apparatus shown in fig. 4 provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, fig. 1 is a flow chart of a method provided by the present invention. The process is applied to CB, and comprises:
step 101, receiving a first packet with an Extended Tag (ETAG) through a first cascade interface.
Here, the first cascade port and the first message are only named for convenience of description and are not intended to be limiting.
Step 102, finding out a first mirror image table item according to a source port indicated by an E-CID of an ETAG of a first message; wherein, the destination port of the first mirror table entry is an expansion port.
Here, as an embodiment, the source port of the packet may specifically be a port where the packet enters the extended bridge network.
As an embodiment, the source port here may be an expansion port on a PE that the CB accesses through the first cascade port, or an expansion port on a lower-layer PE of the PE that the CB accesses through the first cascade port. The present application is not particularly limited.
Step 103, copying the first packet with the ETAG, carrying the E-CID of the expansion port with the copied first packet with the ETAG, and sending the first packet carrying the E-CID of the expansion port through the cascade port of the PE connected with the expansion port.
Hereinafter, how to carry the copied first packet with the ETAG with the E-CID of the expansion port will be described through a specific embodiment, which is not described herein again.
It can be seen that the mirroring of the first packet is finally realized through step 103.
Thus, the flow shown in fig. 1 is completed.
As can be seen from the process shown in fig. 1, in the present application, a mirror entry may be configured on a CB based on a service requirement, when the CB receives a packet, the CB searches for a corresponding mirror entry based on the packet entering the source port of the extended bridge networking, copies the packet based on the found mirror entry, and mirrors the copied packet to the destination port, thereby finally implementing mirroring of the packet.
The flow shown in fig. 1 may be applied to the application networking diagram shown in fig. 2. The networking shown in fig. 2 is only exemplified by the network comprising CB2_1 and PE2_ A, PE2_ B. The CB2_1 is connected to the PE2_ a through a cascade Port1, and connected to the PE2_ B through a cascade Port. There are also two- tier ports 3, 4 on CB2_ 1. Here, the two- layer ports 3 and 4 are local physical ports of the CB2_1, and can directly access the host.
The following describes an embodiment of the flow shown in fig. 1 based on the application networking shown in fig. 2:
example 1:
the embodiment 1 is applied to a scene crossing PE mirror images, and specifically examples thereof are as follows: incoming packets from Port2_ a1 of PE2_ a are mirrored to Port2_ B1 on PE2_ B.
As an embodiment, the mirroring may be implemented based on an Access Control List (ACL) entry, specifically: an ACL entry is added to the native ACL to indicate that the incoming packet from Port2_ a1 of PE2_ a is mirrored to Port2_ B1 on PE2_ B, which may be referred to as a mirrored entry.
As another embodiment, the mirroring is implemented based on a virtual port, specifically: port2_ A1 of PE2_ A is mapped to a corresponding virtual Port, and a virtual Port entry is configured that matches based on the virtual Port. This entry is also used to indicate that incoming packets from Port2_ a1 of PE2_ a are mirrored to Port2_ B1 on PE2_ B, which may be referred to as a mirrored entry.
The following description is only given by way of example of ACL entries:
as shown in FIG. 2, the Port2_ A1 on PE2_ A receives the message. PE2_ A adds an ETAG label to the received message and sends the message to CB2_ 1. Fig. 3 shows the structure of the ETAG tag. In fig. 3, Ingress _ E-CID _ base and Ingress _ E-CID _ ext constitute Ingress E-CID (E-CID for short), which is specifically the E-CID corresponding to Port2_ a 1. For convenience of description, the message with the added ETAG label is denoted as message 2_ 1.
The CB2_1 receives the packet 2_1 through the tandem Port1 of the access PE2_ a. The CB2_1 determines that the source Port of the packet 2_1 is the Port2_ a1 on the PE2_ a according to the E-CID in the ETAG tag of the packet 2_1 (E-CID corresponding to the Port2_ a1 on the PE2_ a).
The CB2_1 finds an ACL entry matching Port2_ a1 in the local ACL table, where a destination Port of the ACL entry is Port2_ B1 on PE2_ B, and is used to indicate that a packet entering from Port2_ a1 of PE2_ a is mirrored to Port2_ B1 on PE2_ B.
The CB2_1 forwards the message 2_1 according to the normal flow, copies one message 2_1, and records the copied message as a message 2_ 2.
CB2_1 adds an outer ETAG to message 2_ 2. The format of the outer ETAG is similar to fig. 3. For convenience of description, the original ETAG on packet 2_2 is denoted as an inner-layer ETAG. That is, message 2_2 has a double-layer ETAG at this time.
The CB2_1 sets a double-layer ETAG label identification and a mirror image message identification in an outer-layer ETAG. Specifically, the Reserved (Reserved) field in the outer ETAG occupies 2 bits, and based on this, as an embodiment, the first specified bit of the Reserved field of the outer ETAG may indicate that the dual-layer ETAG tag identifier is 1, and the second specified bit indicates that the mirror packet identifier is 1, for example.
The CB2_1 sets an E-CID in the outer layer ETAG indicating a Port2_ B1 on PE2_ B as a destination Port. Specifically, the CB2_1 uses the E-CID composed of Ingress _ E-CID _ base and Ingress _ E-CID _ ext in the outer layer ETAG as the destination Port, namely the E-CID corresponding to the Port2_ B1 on the PE2_ B. In application, if a VLAN tag needs to be added to the packet 2_2 according to a requirement, the VLAN tag may be continuously added to the packet 2_2, and the VLAN tag carries a VLAN corresponding to a destination Port, i.e., the Port2_ B1 on the PE2_ B.
The CB2_1 sends the message 2_2 through the Port2 of the access PE2_ B.
When receiving the message 2_2, the PE2_ B strips the double-layer ETAG label of the message 2_2 according to the double-layer ETAG label identifier of the message 2_2, and sends the message 2_2 with the double-layer label stripped through the Port2_ B1 indicated by the E-CID in the outer-layer ETAG according to the mirror message identifier in the outer-layer ETAG of the message 2_ 2. Thus, the message entering from the Port2_ A1 is mirrored to the Port2_ B1 on the PE2_ B.
It should be noted that, in embodiment 1, after the CB2_1 obtains the message 2_2 by copying, instead of adding the outer ETAG to the message 2_2 as described above, it may modify an Ingress E-CID (E-CID for short) composed of an Ingress _ E-CID _ base and an Ingress _ E-CID _ ext of the existing ETAG on the message 2_2 as a destination Port, that is, an E-CID corresponding to the Port2_ B1 on the PE2_ B, and modify one bit, for example, the first specified bit, of a Reserved field of the existing ETAG on the message 2_2 as a mirror message identifier, for example, 1. The CB2_1 then sends the modified packet 2_2 through the access destination Port, i.e., the cascade Port2 of the PE2_ B where the Port2_ B1 is located. When receiving the message 2_2, the PE2_ B sends the message 2_2 with the ETAG label stripped through the Port2_ B1 indicated by the E-CID in the ETAG according to the mirror message identifier in the ETAG of the message 2_ 2. This enables the incoming packets from Port2_ A1 to be mirrored to Port2_ B1 on PE2_ B.
The description of embodiment 1 is completed so far.
Example 2:
the embodiment 2 is applied to the mirror image from PE to CB, and specific examples thereof are: incoming packets from Port2_ B1 of PE2_ B are mirrored to Port4 on CB2_ 1.
The mirror implementation in this embodiment 2 is similar to that in embodiment 1, and is not described again.
As shown in FIG. 2, a Port2_ B1 on PE2_ B receives a message. PE2_ B adds an ETAG label to the received message and sends the message to CB2_ 1. The increased ETAG tag is shown in figure 3 for the ETAG tag structure. An Ingress E-CID (E-CID for short) consisting of Ingress _ E-CID _ base and Ingress _ E-CID _ ext in the ETAG label is an E-CID corresponding to the Port2_ B1. For convenience of description, the message with the added ETAG label is denoted as message 3_ 1.
The CB2_1 receives the packet 3_1 through the cascade Port2 of the access PE2_ B. The CB2_1 determines that the source Port of the packet 3_1 is the Port2_ B1 on the PE2_ B according to the E-CID in the ETAG tag of the packet 3_1 (E-CID corresponding to the Port2_ B1 on the PE2_ B).
The CB2_1 finds an ACL entry matched with the Port2_ B1 in the local ACL table, wherein the destination Port of the ACL entry is the Port4 on the CB2_1, and is used for indicating that a message entering from the Port2_ B1 of the PE2_ B is mirrored to the Port4 on the CB2_ 1.
The CB2_1 forwards the message 3_1 according to the normal flow, copies one message 3_1, and records the copied message as a message 3_ 2.
The CB2_1 sets a mirror message identifier on the message 3_ 2. Specifically, one bit position of the Reserved field in the ETAG of the packet 3_2 of the CB2_1 indicates that the mirror packet identifier is 1, for example, so as to implement that the packet 3_2 carries the mirror packet identifier.
The CB2_1 sends a message 4_2 to a Port4 (destination Port) of the two-layer Port of the CB2_ 1. The mirror image of the message entering from the Port2_ B1 to the Port4 of the second layer of CB2_1 is realized.
The description of embodiment 2 is completed so far.
Example 3:
embodiment 3 is applied to mirror images from CB to PE, and specific examples thereof are: incoming packets from Port3 on CB2_1 are mirrored to Port2_ a1 on PE2_ a.
As an embodiment, the mirroring may be implemented based on an ACL entry, specifically: an ACL entry is added to the native ACL to indicate that incoming packets from Port3 on CB2_1 are mirrored to Port2_ a1 on PE2_ a, which may be referred to as a mirrored entry.
As another embodiment, the mirroring is implemented based on a two-layer port configuration, specifically: the matching entry of Port3 is configured. This entry is also used to indicate that incoming packets from Port3 on CB2_1 are mirrored to Port2_ a1 on PE2_ a, which may be referred to as a mirrored entry.
The following description is only given by way of example of ACL entries:
as shown in fig. 2, CB2_1 receives a message through local layer two Port 3. For convenience of description, a message received by the CB2_1 through the local layer two Port3 is denoted as message 4_ 1.
The CB2_1 finds an ACL entry matching the Port3 in the local ACL table, where the destination Port of the ACL entry is Port2_ a1 on PE2_ a, and is used to indicate that a packet incoming from Port3 on CB2_1 is mirrored to Port2_ a1 on PE2_ a.
The CB2_1 forwards the message 4_1 according to the normal flow, copies one message 4_1, and records the copied message as a message 4_ 2.
CB2_1 adds ETAG to message 4_ 2. The format of the newly added ETAG at this time is similar to fig. 3.
The CB2_1 sets a mirror message identifier in the ETAG. Specifically, the Reserved field in the ETAG occupies 2 bits, and based on this, as an embodiment, one of the bits of the Reserved field may indicate that the mirror packet identifier is, for example, 1.
CB2_1 sets an E-CID in the ETAG indicating the Port2_ A1 on PE2_ A as the destination Port. Specifically, the CB2_1 takes the E-CID composed of Ingress _ E-CID _ base and Ingress _ E-CID _ ext in the ETAG as the destination Port, i.e. the E-CID corresponding to the Port2_ A1 on PE2_ A. In application, if a VLAN tag needs to be added to the packet 4_2 according to a requirement, the VLAN tag may be continuously added to the packet 4_2, and the VLAN tag carries a VLAN corresponding to a destination Port, i.e., the Port2_ a1 on the PE2_ a.
The CB2_1 sends the message 4_2 through the Port1 of the access PE2_ A.
When receiving the message 4_2, the PE2_ a sends the message 4_2 with the ETAG stripped through the Port2_ a1 indicated by the E-CID in the ETAG according to the mirror message identifier of the message 4_ 2. So far, the mirroring of incoming packets from Port3 on CB2_1 to Port2_ a1 on PE2_ a is achieved.
The description of embodiment 3 is completed so far.
The methods provided herein are described above. The following describes the apparatus provided in the present application:
referring to fig. 4, fig. 4 is a diagram illustrating the structure of the apparatus according to the present invention. The device is applied to CB, including:
a receiving unit, configured to receive a first packet with an extended tag ETAG through a first cascade interface;
a mirror image unit, configured to find a first mirror image entry according to a source port indicated by an E-CID of an ETAG of the first packet; if the destination port of the first mirror image table entry is an expansion port, copying a first message with an ETAG (Ethernet target access gateway), and carrying the E-CID of the expansion port by the copied first message with the ETAG;
a sending unit, configured to send, through a cascade interface connected to a PE where the expansion port is located, a first packet carrying an E-CID of the expansion port.
As an embodiment, the mirroring unit carries the copied E-CID with the first packet of the ETAG and the expansion port by using the E-CID with the first packet of the ETAG, and includes:
modifying the E-CID of the copied first message with the ETAG as the E-CID of the expansion port, and setting a mirror image message identifier in the ETAG, so that the PE where the expansion port is located sends the first message after the ETAG is stripped through the expansion port indicated by the E-CID in the ETAG according to the mirror image message identifier in the ETAG; alternatively, the first and second electrodes may be,
adding an outer-layer ETAG (Ethernet tag access gateway) for the copied first message so as to enable the first message to have a double-layer ETAG; and setting a double-layer label identifier and a mirror image message identifier in the outer-layer ETAG, setting an E-CID for indicating an expansion port serving as a target port, so that the PE where the expansion port is located peels off two layers of ETAGs according to the double-layer label identifier, and sending a first message with the double-layer label peeled off according to the mirror image message identifier in the outer-layer ETAG and through the expansion port indicated by the E-CID in the outer-layer ETAG.
As an embodiment, the receiving unit further receives a second packet with an extended tag ETAG through a second cascade interface;
the mirror image unit further finds a second mirror image table item according to the source port indicated by the E-CID of the ETAG of the second message; wherein the destination port of the second mirror image table entry is a two-layer port;
the sending unit further sends the second message with the ETAG stripped through the two-layer port.
As an embodiment, the receiving unit further receives a third packet through another two-layer port;
the mirror image unit further searches a third mirror image table item according to other two-layer ports; the destination port of the third mirror image table entry is other expansion ports; copying the third message, adding ETAG for the copied third message, and setting ECIDs of other expansion ports in the ETAG of the copied third message;
the sending unit further sends a third message with an ETAG through a cascade interface connected with PEs where other expansion ports are located, so that PEs where other expansion ports are located strip ETAGs of the third message and send the third message through other expansion ports.
Thus, the description of the device structure provided in the present application is completed.
Correspondingly, the application also provides a hardware structure schematic diagram of the device shown in fig. 4. As shown in fig. 5, it may include: a machine-readable storage medium, a processor; the machine-readable storage medium, the processor may communicate via a system bus.
The machine-readable storage medium stores machine-readable instructions, specifically machine-executable instructions corresponding to operations executed by the receiving unit, the mirroring unit and the sending unit;
a processor for loading and executing machine executable instructions to implement the mirroring described above.
For one embodiment, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
To this end, the description of the hardware configuration shown in fig. 5 is completed.
A machine-readable storage medium is also provided. The machine-readable storage medium stores machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform receiving a first packet with an extension tag, ETAG, over a first cascade interface; searching a first mirror image table item according to a source port indicated by E-CID of ETAG of the first message; the destination port of the first mirror image table entry is an expansion port, and the first message with the ETAG is copied; carrying the E-CID of the expansion port by the copied first message with the ETAG; and sending a first message carrying the E-CID of the expansion port through a cascade port of the PE connected with the expansion port. To implement mirroring of the extended bridge network.
The application also provides a mirror image message forwarding system. The system comprises: a first cascade port of the CB is interconnected with an uplink port of the first PE; and the second cascade port of the CB is interconnected with the uplink port of the second PE.
The first PE sends a first message with an extended label ETAG through an uplink port connected with the CB;
the CB receives a first message with an expansion label ETAG sent by a first PE through a first cascade port accessed to the first PE, finds a first mirror image table item according to a source port indicated by an E-CID of the ETAG of the first message, copies the first message with the ETAG if a target port of the first mirror image table item is an expansion port, carries the E-CID of the expansion port with the copied first message with the ETAG, and sends the first message with the E-CID of the expansion port through the cascade port connected with the PE where the expansion port is located; wherein the source port and the destination port are both located in the first PE or in the first PE and the second PE, respectively.
As an embodiment, the CB carries the copied first packet with ETAG with the E-CID of the expansion port, including:
modifying the E-CID of the copied first message with the ETAG as the E-CID of the expansion port, and setting a mirror image message identifier in the ETAG, so that the PE where the expansion port is located sends the first message after the ETAG is stripped through the expansion port indicated by the E-CID in the ETAG according to the mirror image message identifier in the ETAG; alternatively, the first and second electrodes may be,
adding an outer-layer ETAG (Ethernet tag access gateway) for the copied first message so as to enable the first message to have a double-layer ETAG; setting a double-layer label identifier and a mirror image message identifier in an outer-layer ETAG, setting an E-CID for indicating an expansion port as a target port, sending the E-CID through a cascade interface connected with a PE where the expansion port is located, enabling the PE where the expansion port is located to strip off the two layers of ETAGs according to the double-layer label identifier, and sending a first message after the double-layer label is stripped according to the mirror image message identifier in the outer-layer ETAG and through the expansion port indicated by the E-CID in the outer-layer ETAG.
As an embodiment, the second PE sends a second packet with an extended tag ETAG through an uplink port connected to the CB;
the CB receives a second message with an extended label ETAG sent by the second PE through a second cascade port accessed to the second PE, and finds a second mirror image table item according to a source port indicated by an E-CID of the ETAG of the second message; and the destination port of the second mirror image table entry is a two-layer port, and the second message with the ETAG removed is sent through the two-layer port.
As an embodiment, the CB receives the third message through the other two-layer port, and finds the third mirror image table entry according to the other two-layer port; the destination port of the third mirror image table entry is other expansion ports, a third message is copied, an ETAG is added to the copied third message, ECIDs of other expansion ports are set in the ETAG of the copied third message, the third message with the ETAG is sent through a cascade port connected with the PE where the other expansion ports are located, so that the PE where the other expansion ports are located strips the ETAG of the third message, and other two-layer ports are located in PE1 or PE 2; the other expansion ports are located in the first PE or the second PE. The first PE or the second PE transmits through other expansion ports.
Thus, the system description of the present application is completed.
The present invention is not intended to be limited to the particular embodiments shown and described, but is to be accorded the widest scope consistent with the principles and novel features herein disclosed.

Claims (14)

1. A mirror image message forwarding method is characterized in that the method is applied to a control bridge CB of an extended network bridge, and comprises the following steps:
receiving a first message with an extended label ETAG through a first cascade interface;
searching a first mirror image table item according to a source port indicated by the E-CID of the ETAG of the first message; wherein the destination port of the first mirror entry is an expansion port,
copying a first message with the ETAG;
carrying the E-CID of the expansion port by the copied first message with the ETAG;
and sending a first message carrying the E-CID of the expansion port through a cascade port of the PE connected with the expansion port so as to enable the first message to be mirrored to the expansion port.
2. The method of claim 1, wherein the step of carrying the E-CID of the expansion port with the copied first packet with ETAG comprises:
and modifying the E-CID of the copied first message with the ETAG as the E-CID of the expansion port, and setting a mirror image message identifier in the ETAG, so that the PE where the expansion port is located sends the first message with the ETAG removed through the expansion port indicated by the E-CID in the ETAG according to the mirror image message identifier.
3. The method of claim 1, wherein the step of carrying the E-CID of the expansion port with the copied first packet with ETAG comprises:
adding an outer-layer ETAG (Ethernet Access gateway) for the copied first message so as to enable the first message to be provided with a double-layer ETAG;
setting a double-layer label identifier and a mirror image message identifier in the outer-layer ETAG, setting an E-CID for indicating the expansion port as a target port, so that the PE where the expansion port is located peels off the two layers of ETAGs according to the double-layer label identifier, and sending a first message with the double-layer label peeled off according to the mirror image message identifier in the outer-layer ETAG and through the expansion port indicated by the E-CID in the outer-layer ETAG.
4. The method of any of claims 1 to 3, wherein the source port of the first packet and the destination port of the first mirror entry are located in the same PE; or
The source port of the first packet and the destination port of the first mirror image table entry are located in different PEs.
5. The method of claim 1, further comprising;
receiving a second message with an extended tag ETAG through a second cascade interface;
searching a second mirror image table item according to a source port indicated by the E-CID of the ETAG of the second message; wherein the destination port of the second mirror table entry is a layer two port;
and sending a second message with the ETAG stripped through the two-layer port.
6. The method of claim 1, further comprising;
receiving a third message through other two-layer ports;
searching a third mirror image table item according to the other two-layer ports; wherein the destination port of the third mirror image table entry is other expansion ports;
copying the third message;
adding ETAG to the copied third message, and setting ECIDs of the other expansion ports in the ETAG of the copied third message;
and sending the third message with the ETAG through a cascade interface connected with the PE where the other expansion port is located, so that the PE where the other expansion port is located strips the ETAG of the third message, and sending the third message through the other expansion port.
7. A mirror image message forwarding device is characterized in that the device is applied to a control bridge CB of an extended network bridge, and comprises:
a receiving unit, configured to receive a first packet with an extended tag ETAG through a first cascade interface;
a mirror image unit, configured to find a first mirror image entry according to a source port indicated by the E-CID of the ETAG of the first packet; if the destination port of the first mirror image table entry is an expansion port, copying the first message with the ETAG, and carrying the E-CID of the expansion port with the copied first message with the ETAG;
a sending unit, configured to send, through a cascade interface connected to the PE where the expansion port is located, a first packet carrying the E-CID of the expansion port, so that the first packet is mirrored to the expansion port.
8. The apparatus of claim 7, wherein the mirroring unit carries the E-CID of the expansion port with the copied first packet with the ETAG, comprising:
modifying the E-CID of the copied first message with the ETAG as the E-CID of the expansion port, and setting a mirror message identifier in the ETAG, so that the PE where the expansion port is located sends the first message with the ETAG removed through the expansion port indicated by the E-CID in the ETAG according to the mirror message identifier in the ETAG; alternatively, the first and second electrodes may be,
adding an outer-layer ETAG (Ethernet Access gateway) for the copied first message so as to enable the first message to be provided with a double-layer ETAG; setting a double-layer label identifier and a mirror image message identifier in the outer-layer ETAG, setting an E-CID for indicating the expansion port as a target port, so that the PE where the expansion port is located peels off the two layers of ETAGs according to the double-layer label identifier, and sending a first message with the double-layer label peeled off according to the mirror image message identifier in the outer-layer ETAG and through the expansion port indicated by the E-CID in the outer-layer ETAG.
9. The apparatus of claim 7, wherein the receiving unit further receives a second packet with an extended tag ETAG through a second cascade interface;
the mirror image unit further finds a second mirror image table entry according to a source port indicated by the E-CID of the ETAG of the second packet; wherein the destination port of the second mirror table entry is a layer two port;
the sending unit further sends a second message with the ETAG stripped through the two-layer port.
10. The apparatus of claim 7, wherein the receiving unit further receives a third packet through another layer two port;
the mirror image unit further finds a third mirror image table item according to the other two-layer ports; wherein the destination port of the third mirror image table entry is other expansion ports; copying the third message, adding ETAG to the copied third message, and setting ECIDs of other expansion ports in the ETAG of the copied third message;
the sending unit further sends the third packet with the ETAG through a cascade interface connected to the PE where the other expansion port is located, so that the PE where the other expansion port is located strips off the ETAG of the third packet and sends the third packet through the other expansion port.
11. A mirror message forwarding system, comprising: a first cascade port of the CB is interconnected with an uplink port of the first PE; the second cascade port of the CB is interconnected with the uplink port of the second PE;
the first PE sends a first message with an extended label ETAG through an uplink port connected with the CB;
the CB receives a first message with an extended label ETAG sent by a first PE through a first cascade port accessed to the first PE, finds a first mirror image table item according to a source port indicated by an E-CID of the ETAG of the first message, copies the first message with the ETAG if a target port of the first mirror image table item is an extended port, carries the E-CID of the extended port with the copied first message with the ETAG, and sends the first message with the E-CID of the extended port through the cascade port connected with the PE where the extended port is located so as to enable the first message to be mirrored to the extended port; wherein the source port and the destination port are both located in the first PE or are located in the first PE and the second PE, respectively.
12. The system of claim 11, wherein the CB carries the E-CID of the expansion port with the copied first packet with the ETAG comprises:
modifying the E-CID of the copied first message with the ETAG as the E-CID of the expansion port, and setting a mirror message identifier in the ETAG, so that the PE where the expansion port is located sends the first message with the ETAG removed through the expansion port indicated by the E-CID in the ETAG according to the mirror message identifier in the ETAG; alternatively, the first and second electrodes may be,
adding an outer-layer ETAG (Ethernet Access gateway) for the copied first message so as to enable the first message to be provided with a double-layer ETAG; setting a double-layer label identifier and a mirror image message identifier in the outer ETAG, setting an E-CID for indicating the expansion port as a target port, sending the message through a cascade port connected with the PE where the expansion port is located, enabling the PE where the expansion port is located to strip off the two layers of ETAGs according to the double-layer label identifier, and sending a first message after the double-layer label is stripped through the expansion port indicated by the E-CID in the outer ETAG according to the mirror image message identifier in the outer ETAG.
13. The system according to claim 11, wherein the second PE sends the second packet with the expansion tag ETAG through an uplink port connected to the CB;
the CB receives a second message with an extended label ETAG sent by a second PE through a second cascade port accessed to the second PE, and finds a second mirror image table item according to a source port indicated by an E-CID of the ETAG of the second message; and the destination port of the second mirror image table entry is a two-layer port, and the second message with the ETAG stripped is sent through the two-layer port.
14. The system of claim 11,
the CB receives a third message through other two-layer ports and finds a third mirror image table item according to the other two-layer ports; the destination port of the third mirror image table entry is another expansion port, the third message is copied, an ETAG is added to the copied third message, the ECID of the other expansion port is set in the ETAG of the copied third message, and the third message with the ETAG is sent through a cascade port connected with the PE where the other expansion port is located; the other expansion port is located in the first PE or the second PE;
and the first PE or the second PE strips the ETAG of the third message and sends the third message through the other expansion ports.
CN201710524832.7A 2017-06-30 2017-06-30 Mirror image message forwarding method, device and system Active CN107547449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524832.7A CN107547449B (en) 2017-06-30 2017-06-30 Mirror image message forwarding method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524832.7A CN107547449B (en) 2017-06-30 2017-06-30 Mirror image message forwarding method, device and system

Publications (2)

Publication Number Publication Date
CN107547449A CN107547449A (en) 2018-01-05
CN107547449B true CN107547449B (en) 2020-06-09

Family

ID=60970344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524832.7A Active CN107547449B (en) 2017-06-30 2017-06-30 Mirror image message forwarding method, device and system

Country Status (1)

Country Link
CN (1) CN107547449B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965093B (en) * 2018-08-24 2021-03-23 新华三技术有限公司 VLAN (virtual local area network) distribution method and device
CN113556345B (en) * 2021-07-22 2024-04-19 锐捷网络股份有限公司 Message processing method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016072972A1 (en) * 2014-11-04 2016-05-12 Hewlett Packard Enterprise Development Lp Bridge port extender
CN105847107A (en) * 2016-03-31 2016-08-10 杭州华三通信技术有限公司 System, and method and device for setting link aggregation set
CN105991445A (en) * 2016-03-31 2016-10-05 杭州华三通信技术有限公司 Link aggregation group setting method and device
CN106899506A (en) * 2017-01-25 2017-06-27 新华三技术有限公司 A kind of method and apparatus of protocol massages forwarding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10721123B2 (en) * 2015-09-30 2020-07-21 Arris Enterprises Llc Provisional modes for multi-mode network devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016072972A1 (en) * 2014-11-04 2016-05-12 Hewlett Packard Enterprise Development Lp Bridge port extender
CN105847107A (en) * 2016-03-31 2016-08-10 杭州华三通信技术有限公司 System, and method and device for setting link aggregation set
CN105991445A (en) * 2016-03-31 2016-10-05 杭州华三通信技术有限公司 Link aggregation group setting method and device
CN106899506A (en) * 2017-01-25 2017-06-27 新华三技术有限公司 A kind of method and apparatus of protocol massages forwarding

Also Published As

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

Similar Documents

Publication Publication Date Title
CN107070691B (en) Cross-host communication method and system of Docker container
US9608841B2 (en) Method for real-time synchronization of ARP record in RSMLT cluster
CN112787931B (en) Message transmission method, proxy node and storage medium
EP3437259B1 (en) Interworking between physical network and virtual network
US10230619B2 (en) Message processing method and system in multi-homing access overlay network
CN108173691B (en) Cross-device aggregation method and device
EP3451597B1 (en) Packet forwarding
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
CN109729012B (en) Unicast message transmission method and device
CN112787921A (en) Message transmission method, proxy node and storage medium
CN108199968B (en) Route processing method and device
US10027576B2 (en) Method, system, and apparatus for proxying intra-subnet traffic across multiple interfaces within networks
CN107645433B (en) Message forwarding method and device
CN112134796B (en) Method, device and system for realizing flow switching
WO2019085975A1 (en) Network topology display method and network management device
CN107645402B (en) Route management method and device
CN108259298B (en) Message forwarding method and device
US20220124024A1 (en) Establishment of method and apparatus for implementing entry backup
CN107547449B (en) Mirror image message forwarding method, device and system
WO2018171722A1 (en) Mac address synchronization
CN111669422B (en) Message transmission method and device
CN107634907B (en) Data forwarding method and device for L2VPN (layer two virtual private network)
CN107659516B (en) Function control method and device for broadband remote access server BRAS
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
WO2015188706A1 (en) Data frame processing method, device and system

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