CN115277304A - Flow forwarding method and device - Google Patents

Flow forwarding method and device Download PDF

Info

Publication number
CN115277304A
CN115277304A CN202210650751.2A CN202210650751A CN115277304A CN 115277304 A CN115277304 A CN 115277304A CN 202210650751 A CN202210650751 A CN 202210650751A CN 115277304 A CN115277304 A CN 115277304A
Authority
CN
China
Prior art keywords
ethernet
identifier
traffic
forwarding
pes
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.)
Pending
Application number
CN202210650751.2A
Other languages
Chinese (zh)
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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN202210650751.2A priority Critical patent/CN115277304A/en
Publication of CN115277304A publication Critical patent/CN115277304A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/26Route discovery packet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present specification provides a traffic forwarding method and apparatus, and relates to the technical field of communications. A traffic forwarding method is applied to a first PE of an EVPN, and comprises the following steps: receiving PEs in different Ethernet segments to send Ethernet automatic discovery routes, wherein the extended group attributes of the Ethernet automatic discovery routes carry specified identifications which are used for indicating whether the PEs forward BUM flow; recording the designated identification of the PE in a forwarding table; and if the first PE receives the BUM flow of the connected customer-side edge equipment CE, determining a second PE from the forwarding table according to the specified identifier, and forwarding the BUM flow to the second PE. By the method, the bandwidth in the EVPN network can be saved.

Description

Flow forwarding method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a traffic forwarding method and apparatus.
Background
EVPN (Ethernet Virtual Private Network) is a VPN (Virtual Private Network) technology for two-layer Network interconnection. The PE (Provider Edge) forwards the data packet by looking up the MAC (Media Access Control) address table, and provides a two-layer service from the CE (Customer Edge) to the CE for the user.
In a multi-homing scenario, one CE may be connected to multiple PEs over different ethernet links. When a source CE sends BUM (Broadcast, unknown-unicast, multicast) traffic to a multi-homed destination CE, a PE connected to the source CE copies the BUM traffic and forwards the BUM traffic to a plurality of PEs connected to the destination CE, respectively, a DF (Designated Forwarder) in the PEs forwards the BUM traffic to the destination CE, but a non-DF discards the BUM traffic. However, these discarded BUM traffic still occupies the bandwidth in the EVPN network, thereby causing a waste of bandwidth.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a traffic forwarding method and apparatus.
In combination with the first aspect of the embodiments of the present specification, the present application provides a traffic forwarding method, which is applied to a first PE of an EVPN, and includes:
receiving Ethernet automatic discovery routes sent by PEs in different Ethernet segments, wherein the extended group attribute of the Ethernet automatic discovery routes carries an appointed identification which is used for indicating whether the PEs forward BUM flow;
recording the designated identification of the PE in a forwarding table;
and if the first PE receives the BUM flow of the connected customer-side edge device CE, determining a second PE from the forwarding table according to the designated identifier, and forwarding the BUM flow to the second PE.
Optionally, after recording the designated identifier of the PE in the forwarding table, the method further includes:
and if the first PE receives the known unicast traffic of the connected CE, forwarding the known unicast traffic according to the forwarding table.
Optionally, the specified identifier is located in a reserved field in the ESI tag extended community attribute of the ethernet automatic discovery route;
when the designated identifier is set to a first value, indicating that the PE corresponding to the designated identifier is a PE with DF or CE single-attribute access;
and when the designated identifier is set to a second value, indicating that the PE corresponding to the designated identifier is a non-DF of the CE multi-homing access.
With reference to the second aspect of the embodiments in this specification, the present application provides a traffic forwarding method applied to a second PE of an EVPN, including:
and sending the Ethernet automatic discovery route carrying the specified identifier in the extended group attribute to PEs in different Ethernet segments, so that the first PE recording the specified identifier forwards the BUM flow sent by the CE connected with the first PE according to the specified identifier.
Optionally, sending an ethernet auto discovery route to PEs in different ethernet segments includes:
if the PE is a single-attribute access PE of DF or CE, sending an Ethernet automatic discovery route carrying a specified identifier set as a first value in the extended group attribute to PEs in different Ethernet segments;
and if the self is a non-DF of the CE multi-homing access, sending the Ethernet automatic discovery route carrying the specified identifier set as the second value in the extended community attribute to the PEs in different Ethernet segments.
In combination with the third aspect of the embodiments of the present specification, the present application provides a traffic forwarding apparatus, which is applied to a first PE of an EVPN, and includes:
the device comprises a receiving unit, a forwarding unit and a forwarding unit, wherein the receiving unit is used for receiving the Ethernet automatic discovery route sent by the PE in different Ethernet segments, the extended group attribute of the Ethernet automatic discovery route carries an appointed identifier, and the appointed identifier is used for indicating whether the PE forwards the BUM flow;
a recording unit, configured to record the specified identifier of the PE in a forwarding table;
and the sending unit is used for determining the second PE from the forwarding table according to the specified identifier and forwarding the BUM flow to the second PE if the BUM flow of the customer-side edge device CE connected with the first PE is received.
Optionally, the sending unit is further configured to forward the known unicast traffic according to the forwarding table if the known unicast traffic of the customer-side edge device CE connected to the first PE is received.
Optionally, the specified identifier is located in a reserved field in the ESI tag extended community attribute of the ethernet automatic discovery route;
when the designated identifier is set to a first value, indicating that the PE corresponding to the designated identifier is a PE to which a designated forwarder DF or CE belongs to access;
and when the designated identifier is set to a second value, indicating that the PE corresponding to the designated identifier is a non-DF of the CE multi-homing access.
In combination with the fourth aspect of the embodiments of the present specification, the present application provides a traffic forwarding apparatus, which is applied to a second PE of an EVPN, and includes:
a sending unit, configured to send an ethernet auto discovery route carrying an assigned identifier in an extended group attribute to PEs in different ethernet segments, so that a first PE recording the assigned identifier forwards a BUM traffic sent by a CE connected to the first PE according to the assigned identifier.
Optionally, the sending unit is specifically configured to send, to the PEs in different ethernet segments, an ethernet automatic discovery route in which the extended group attribute carries the specified identifier set to the first value if the PE is a DF or CE single-attribute accessed PE; and if the self is a non-DF of the CE multi-homing access, sending the Ethernet automatic discovery route carrying the specified identifier set as the second value in the extended group attribute to the PEs in different Ethernet segments.
In connection with a fifth aspect of embodiments herein, there is provided a network device comprising a transceiver, a processor, and a machine-readable storage medium storing machine-executable instructions capable of being executed by the processor, the processor being caused by the machine-executable instructions to: implementing the method steps of any of the above.
In connection with a sixth aspect of embodiments herein, there is provided a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing the method steps of any of the above.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the present specification, an ethernet automatic discovery route is interacted between PEs in multiple ethernet segments, forwarding information and a specific identifier are carried in the ethernet automatic discovery route, and whether a PE in another ethernet segment can forward BUM traffic to a CE connected to the PE can be notified by the specific identifier, so that PEs in another ethernet segment can directly forward BUM traffic to the PE capable of forwarding BUM traffic, and bandwidth waste in an EVPN network is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of the specification.
Fig. 1 is a flowchart of a traffic forwarding method according to an embodiment of the present application, and is applied to a first PE;
fig. 2 is a flowchart of a traffic forwarding method according to an embodiment of the present application, and is applied to a second PE;
fig. 3 is a networking diagram to which a traffic forwarding method according to an embodiment of the present invention is applied;
fig. 4 is a schematic structural diagram of a traffic forwarding apparatus according to an embodiment of the present application, which is applied to a first PE;
fig. 5 is a schematic structural diagram of a traffic forwarding apparatus according to an embodiment of the present application, which is applied to a second PE;
fig. 6 is a schematic configuration diagram of a network device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present description.
The application provides a traffic forwarding method, which is applied to a first PE of an EVPN, as shown in fig. 1, and includes:
s100, receiving the Ethernet automatic discovery route sent by the PE in different Ethernet segments.
In an EVPN network, BGP neighbors may be established between PEs based on the BGP (Border Gateway Protocol) Protocol.
Thereafter, ethernet Segment routing (Ethernet Segment routing) may be exchanged between the PEs, and the Ethernet Segment routing carries the ESI and source IP (Internet Protocol) address of the PE itself. Through ESI and source IP address, PE can determine PE in same Ethernet segment and build multi-homing PE list. The multi-homed PE list contains a number, and the PE can enumerate the DF by this number.
After choosing PE as DF, PE can send out Ethernet Auto-discovery route (Ethernet Auto-discovery Per ES). An Extended Community attribute (ESI Label Extended Community) of the ethernet auto discovery route carries a specific identifier, and the specific identifier is used for indicating whether the PE forwards the BUM traffic.
Or, when a PE determines that the PE itself is a CE single-homed access PE, the PE may also send an ethernet auto discovery route carrying the specified identifier to the outside.
Optionally, a Reserved field (e.g., reserved field) in the community attribute of the ESI tag extension identifying the auto discovery route of the ethernet is specified. For example, the first bit of the Reserved field occupied by the identity is specified.
In addition, the PEs can perform MAC address learning and other processes, and forwarding information can be exchanged between the PEs, where the forwarding information includes an IP address, an MAC address, and a forwarding label (for example, a two-layer forwarding label and a three-layer forwarding label) of the PE, and a forwarding table based on the forwarding information is formed in the PE, thereby achieving cross-backbone accessibility between the PEs.
S101, recording the designated identification of the PE in a forwarding table.
The PE may record the designated identity in a forwarding table after receiving the ethernet auto-discovery route.
When the designated identifier is set to a first value (for example, the first bit is set to 1), it indicates that the PE corresponding to the designated identifier is a PE to which a DF or a CE belongs;
when the designated identifier is set to the second value (for example, the first bit is set to 0), it indicates that the PE corresponding to the designated identifier is a non-DF for CE multihoming access.
S102, if receiving the BUM flow of the CE connected with the first PE, determining a second PE from a forwarding table according to the designated identifier, and forwarding the BUM flow to the second PE.
In order to save the occupancy of the BUM traffic on the backbone network bandwidth in the EVPN network, when the first PE receives the traffic sent by the CE, it is determined whether the traffic is BUM traffic. If the flow is the BUM flow, a forwarding table is searched to determine whether a PE (namely DF) for forwarding the BUM flow is recorded.
If the PE as DF is already recorded or associated in the forwarding table, the BUM traffic may be sent to the PE as DF based on forwarding information such as the MAC address stored in the forwarding table, so that the first PE forwards the BUM traffic to the CE connected to the second PE at the opposite end. For PEs that are not DF, the first PE will not send the BUM traffic to it.
It should be noted that, if multiple PEs recorded in the first PE are marked with the specified identities, the first PE may send BUM traffic to the multiple specified PEs, respectively.
Optionally, after step S101, recording the specified identifier of the PE in the forwarding table, the method further includes:
and S103, if the known unicast traffic of the CE connected with the first PE is received, forwarding the known unicast traffic according to the forwarding table.
If the first PE receives the traffic sent by the connected CE and determines that the traffic is a known unicast traffic according to the packet information in the traffic, the first PE may forward the traffic to the PE of the opposite end based on the generated forwarding table.
Correspondingly, the present application provides a traffic forwarding method, which is applied to the second PE of the EVPN, and as shown in fig. 2, the method includes:
s200, sending the Ethernet automatic discovery route carrying the specified identifier in the extended group attribute to the PEs in different Ethernet segments, so that the first PE recording the specified identifier forwards the BUM flow sent by the CE connected with the first PE according to the specified identifier.
The extended community attribute of the ethernet automatic discovery route carries a specific identifier, and the specific identifier is used for indicating whether the PE forwards the BUM traffic.
Optionally, step S200, sending an ethernet auto discovery route to PEs in different ethernet segments, includes:
S200A, if the PE is a DF or CE single attribution accessed PE, the Ethernet automatic discovery route with the appointed identification set as the first value in the extended community attribute is sent to the PEs in different Ethernet segments.
And S200B, if the self is a non-DF of the CE multi-homing access, sending the Ethernet automatic discovery route carrying the specified identifier set as the second value in the extended group attribute to the PEs in different Ethernet segments.
In the embodiment of the present specification, an ethernet automatic discovery route is interacted between PEs in multiple ethernet segments, forwarding information and a specific identifier are carried in the ethernet automatic discovery route, and whether a PE in another ethernet segment can forward BUM traffic to a CE connected to the PE can be notified by the specific identifier, so that PEs in another ethernet segment can directly forward BUM traffic to the PE capable of forwarding BUM traffic, and bandwidth waste in an EVPN network is avoided.
A traffic forwarding method is described below with reference to a specific embodiment as an example. As shown in fig. 3, the EVPN network includes three PEs PE1, PE2, and PE3, and two CEs CE1 and CE 2. Wherein, CE1 and CE2 belong to EVPN1, PE2 and PE3 are deployed in a backbone network, CE1 belongs to PE1 and PE2 more, and CE2 belongs to PE3 only.
S1, the CE interacts ARP message, and the PE records MAC address/IP address notification route.
ARP messages are interacted among CE1, CE2 and CE3, PE1 and PE2 record MAC address/IP address advertisement route of CE1, and PE3 record MAC address/IP address advertisement route of CE 2.
S2, MAC address/IP address advertisement routes are interacted among multiple PEs, and the PE records and generates a forwarding table.
And generating a forwarding table in an example corresponding to the EVPN1, wherein forwarding information such as the MAC address, the IP address and the next route hop of the reachable PE can be recorded in the forwarding table.
And S3, after the neighbor relation is established among the multiple PEs, the multiple PEs interact with each other to form an Ethernet network routing, a multi-home PE list is created, and the multi-cast routing is interactively integrated.
Through the interactive Ethernet segment routing, the PE1 and the PE2 can determine that the two belong to the same Ethernet segment according to ESI carried in the interactive Ethernet segment routing, and generate a multi-homed PE list, wherein serial numbers of a plurality of PEs belonging to the same Ethernet segment are recorded in the multi-homed PE list.
Since PE1 and PE2 belong to ESI1, a multi-homed PE list can be generated in PE1 and PE2
In (1), the sequence number of PE1 is set to 0, and the sequence number of PE2 is set to 1.PE3 is ascribed to ESI2, but because
ESI2 contains no other PE, and therefore, no multi-homed PE list is generated in PE3.
After the neighbor relation is established among multiple PEs, integrated Multicast routing (Inclusive Multicast Route) is also interacted among the PEs, so that the PEs belonging to the same EVPN in the networking are determined. For example, multiple PEs may determine that PE1, PE2, and PE3 belong to EVPN1.
In addition, in the integrated multicast routing, information such as IP addresses and tunnel labels of PEs may be exchanged.
And S4, selecting DF from PEs belonging to the same Ethernet segment.
Electing in PE1 and PE2, and determining that PE1 is elected as DF based on the sequence numbers recorded in the multi-homed PE list of PE1 and PE 2.
S5, an Ethernet automatic discovery route is interacted between the PEs, and a reserved field in the extended community attribute of the Ethernet automatic discovery route carries an indication mark.
When the automatic Ethernet discovery route is interacted among PE1, PE2 and PE3, PE1 is selected as DF, CE2 is solely attributed to PE3, therefore, when PE1 and PE3 send the automatic Ethernet discovery route, the first bit of the indication mark in the extended community attribute is set to 1, and when PE2 sends the automatic Ethernet discovery route, the first bit of the indication mark in the extended community attribute is set to 0.
PE1 and PE2 may record, in a forwarding table, the indication identifier carried in the ethernet automatic discovery route sent by PE3 to determine that PE3 may forward the BUM traffic to CE2, and PE3 may record, in a forwarding table, the indication identifier carried in the ethernet automatic discovery route sent by PE1 and PE2 to determine that PE1 may forward the BUM traffic to CE1.
S6, the PE receives the flow sent by the CE and determines that the flow is BUM flow.
For example, CE1 sends broadcast traffic to CE2, CE2 sends multicast traffic to CE1, and after PE1 and PE3 receive the traffic, it determines that the traffic is BUM traffic.
S7, the PE searches a forwarding table and determines the PE corresponding to the BUM flow.
After receiving the broadcast traffic sent by the CE1, the PE1 determines that the BUM traffic needs to be forwarded to the PE3 according to a forwarding table stored in the PE1, encapsulates the broadcast traffic, and then forwards the broadcast traffic to the CE2 through the PE3.
After receiving the multicast traffic sent by the CE2, the PE3 determines, according to a forwarding table stored in itself, that the BUM traffic needs to be forwarded to the PE1 serving as the DF, encapsulates the multicast traffic, and then forwards the multicast traffic to the CE1 through the PE 1.
The BUM flow from CE2 to CE1 is not duplicated any more and is forwarded through PE2 which is not DF, and multiple copies of the BUM flow in a backbone network are not needed for the BUM flow, so that the bandwidth in the EVPN network can be saved, and the flow forwarding efficiency in the EVPN network can be improved.
Correspondingly, the present application provides a traffic forwarding apparatus, applied to a first PE of an EVPN, as shown in fig. 4, including:
the device comprises a receiving unit, a forwarding unit and a forwarding unit, wherein the receiving unit is used for receiving the Ethernet automatic discovery route sent by the PE in different Ethernet segments, the Ethernet automatic discovery route carries forwarding information of the PE, an extended group attribute of the Ethernet automatic discovery route carries an appointed identifier, and the appointed identifier is used for indicating whether the PE forwards BUM flow;
the recording unit is used for recording the specified identification of the PE in the forwarding table;
and the sending unit is used for determining the second PE from the forwarding table according to the specified identifier and forwarding the BUM flow to the second PE if the BUM flow of the customer-side edge device CE connected with the first PE is received.
Optionally, the sending unit is further configured to forward the known unicast traffic according to the forwarding table if the known unicast traffic of the customer-side edge device CE connected to the first PE is received.
Optionally, the specified identifier is located in a reserved field in the ESI tag extended community attribute of the ethernet automatic discovery route;
when the designated identifier is set to a first value, indicating that the PE corresponding to the designated identifier is a PE to which a designated forwarder DF or CE belongs to access;
and when the designated identifier is set to a second value, indicating that the PE corresponding to the designated identifier is a non-DF of the CE multi-homing access.
Correspondingly, the present application provides a traffic forwarding apparatus, applied to a second PE of an EVPN, as shown in fig. 5, including:
and the sending unit is used for sending the Ethernet automatic discovery route carrying the specified identifier in the extended group attribute to the PEs in different Ethernet segments so that the first PE recording the specified identifier forwards the BUM flow sent by the CE connected with the first PE according to the specified identifier.
Optionally, the sending unit is specifically configured to send, to the PEs in different ethernet segments, the automatic discovery route for ethernet with the specified identifier set as the first value in the extended group attribute if the PE is a single-attribute PE that is DF or CE; and if the self is a non-DF of the CE multi-homing access, sending the Ethernet automatic discovery route carrying the specified identifier set as the second value in the extended community attribute to the PEs in different Ethernet segments.
It should be noted that one PE may have the functions of the first PE and the second PE, respectively, and different functions may be adapted according to different networking environments in which the PE is located.
Correspondingly, the present application provides a network device, as shown in fig. 6, comprising a transceiver, a processor, and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing the method steps of any of the above.
Accordingly, the present application provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing the method steps of any of the above.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the present specification, an ethernet automatic discovery route is interacted between PEs in multiple ethernet segments, forwarding information and a specific identifier are carried in the ethernet automatic discovery route, and the PEs in other ethernet segments can be notified through the specific identifier whether themselves can forward BUM traffic to a CE connected to themselves, so that PEs in other ethernet segments can directly forward BUM traffic to the PEs capable of forwarding BUM traffic, and bandwidth waste in an EVPN network is avoided.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (12)

1. A traffic forwarding method is characterized in that a first network side edge device PE applied to an Ethernet virtual private network EVPN comprises the following steps:
receiving Ethernet automatic discovery routes sent by PEs in different Ethernet segments, wherein the extended group attribute of the Ethernet automatic discovery route carries an appointed identification which is used for indicating whether the PEs forward broadcast, unknown unicast and multicast BUM flow;
recording the designated identification of the PE in a forwarding table;
and if the first PE receives the BUM flow of the connected customer-side edge device CE, determining a second PE from the forwarding table according to the designated identifier, and forwarding the BUM flow to the second PE.
2. The method of claim 1, wherein after recording the PE's assigned identity in a forwarding table, further comprising:
and if the first PE receives the known unicast traffic of the connected customer-side edge device CE, forwarding the known unicast traffic according to the forwarding table.
3. The method according to claim 1 or 2, wherein the specified identity is located in a reserved field in an Ethernet Segment Identity (ESI) tag extended community attribute of the Ethernet auto-discovery route;
when the designated identifier is set to a first value, the PE corresponding to the designated identifier is a PE which is accessed by a designated forwarder DF or CE single attribute;
and when the designated identifier is set to a second value, indicating that the PE corresponding to the designated identifier is a non-DF of the CE multi-homing access.
4. A traffic forwarding method is applied to a second PE of an EVPN, and comprises the following steps:
and sending the Ethernet automatic discovery route carrying the specified identifier in the extended group attribute to PEs in different Ethernet segments, so that the first PE recording the specified identifier forwards the BUM flow sent by the CE connected with the first PE according to the specified identifier.
5. The method of claim 4, wherein sending Ethernet auto-discovery routes to PEs in different Ethernet segments comprises:
if the self is the PE with DF or CE single attribution access, the automatic discovery route of the Ethernet with the appointed identification set as the first value in the extended group attribute is sent to the PE in different Ethernet segments;
and if the self is a non-DF of the CE multi-homing access, sending the Ethernet automatic discovery route carrying the specified identifier set as the second value in the extended group attribute to the PEs in different Ethernet segments.
6. A traffic forwarding apparatus, wherein a first PE applied to an EVPN comprises:
a receiving unit, configured to receive a PE in different ethernet segments and send an ethernet automatic discovery route, where an extended group attribute of the ethernet automatic discovery route carries an assigned identifier, and the assigned identifier is used to indicate whether the PE forwards a BUM traffic;
a recording unit, configured to record the specified identifier of the PE in a forwarding table;
and a sending unit, configured to determine, according to the specified identifier, a second PE from the forwarding table if the BUM traffic of the customer-side edge device CE connected to the first PE is received, and forward the BUM traffic to the second PE.
7. The apparatus of claim 6, wherein the sending unit is further configured to, if known unicast traffic of the customer-side edge device CE connected to the first PE is received, forward the known unicast traffic according to the forwarding table.
8. The apparatus according to claim 6 or 7, wherein the specified identification is located in a reserved field in an ESI tag extended community attribute of the Ethernet auto-discovery route;
when the designated identifier is set to a first value, indicating that the PE corresponding to the designated identifier is a PE to which a designated forwarder DF or CE is singly affiliated and accessed;
and when the designated identifier is set to a second value, indicating that the PE corresponding to the designated identifier is a non-DF of the CE multi-homing access.
9. A traffic forwarding apparatus, wherein a second PE applied to EVPN comprises:
a sending unit, configured to send an ethernet auto discovery route carrying an assigned identifier in an extended group attribute to PEs in different ethernet segments, so that a first PE recording the assigned identifier forwards a BUM traffic sent by a CE connected to the first PE according to the assigned identifier.
10. The apparatus according to claim 9, wherein the sending unit is specifically configured to send, to the PEs in different ethernet segments, an ethernet auto discovery route in which the extended community attribute carries the specified identifier set to the first value if the PE is a DF or CE single-homed PE; and if the self is a non-DF of the CE multi-homing access, sending the Ethernet automatic discovery route carrying the specified identifier set as the second value in the extended community attribute to the PEs in different Ethernet segments.
11. A network device comprising a transceiver, a processor, and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 3 or 4 to 5.
12. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1 to 3 or 4 to 5.
CN202210650751.2A 2022-06-10 2022-06-10 Flow forwarding method and device Pending CN115277304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210650751.2A CN115277304A (en) 2022-06-10 2022-06-10 Flow forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210650751.2A CN115277304A (en) 2022-06-10 2022-06-10 Flow forwarding method and device

Publications (1)

Publication Number Publication Date
CN115277304A true CN115277304A (en) 2022-11-01

Family

ID=83759872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210650751.2A Pending CN115277304A (en) 2022-06-10 2022-06-10 Flow forwarding method and device

Country Status (1)

Country Link
CN (1) CN115277304A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024146240A1 (en) * 2023-01-03 2024-07-11 中兴通讯股份有限公司 Method and apparatus for determining designated forwarder, and network device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024146240A1 (en) * 2023-01-03 2024-07-11 中兴通讯股份有限公司 Method and apparatus for determining designated forwarder, and network device

Similar Documents

Publication Publication Date Title
CN110830352B (en) Method and device for realizing VPN cross-domain and boundary node
EP3646539B1 (en) Ethernet virtual private network using segment routing
US8259725B2 (en) Method, system and device for removing media access control addresses
JP5600189B2 (en) VPN implementation over a link state protocol controlled Ethernet network
KR101460872B1 (en) Method and apparatus for mpls label allocation for a bgp mac-vpn
RU2321959C2 (en) Source identifier for finding the mac-address
CN103685022B (en) Message forwarding method and service provider network edge equipment
US8743879B2 (en) Label switched routing to connect low power network domains
CN110798403B (en) Communication method, communication device and communication system
US9467376B2 (en) Method and device for sending internet protocol packets
WO2008098493A1 (en) A method for aggregating routes, a method for forwarding messages and an autonomous system border router
US20120099440A1 (en) Method, device, and system for withdrawing routes
JP2004534431A (en) Network tunneling
CN110417655B (en) Method and device for forwarding data message
WO2022121466A1 (en) Data processing method and device for ethernet virtual private network, and storage medium
WO2013139270A1 (en) Method, device, and system for implementing layer3 virtual private network
CN102739501A (en) Message forwarding method in two or three layer virtual private network (VPN) and system thereof
CN102469010B (en) A kind of method and network equipment distributing MPLS label
CN113726653B (en) Message processing method and device
CN115277304A (en) Flow forwarding method and device
CN114205297B (en) Traffic forwarding processing method and equipment
CN112838985B (en) Heterogeneous network communication method, system and controller
CN113114553B (en) Method and device for realizing butt joint of different networks under EVPN
KR100502474B1 (en) MPLS based VPNs with Mobility Support
WO2023284675A1 (en) Forwarding table lookup method and apparatus, and storage medium and electronic apparatus

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