# US 2026/0230427 A1 · Packet transmission method and apparatus for evpn, device, and medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0230427 A1
- Document ID: US20260230427A1
- Status: Published application
- Kind: A1
- Application number: 19/151,286
- Filed: 2024-01-30
- Published: 2026-08-06
- Earliest claimed: 2023-02-28
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Taoran ZHOU; Haisheng WU; Haidong ZHU; Longbin HU
- Web page: https://patentgrep.com/patent/US20260230427A1

## CPC

- H04L 45/34: {Source routing}
- H04L 45/50: using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 45/00: Routing or path finding of packets in data switching networks (routing or path finding in wireless networks H04W40/00)
- H04L 45/04: {Interdomain routing, e.g. hierarchical routing}
- H04L 45/38: {Flow based routing}
- H04L 45/566: {Routing instructions carried by the data packet, e.g. active networks}
- H04L 47/10: Flow control; Congestion control
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present application provides a packet transmission method and apparatus for an EVPN, a device, and a medium. The method is applied to a routing device and comprises: obtaining at least one piece of flow specification network layer reachability information (Flowspec NLRI), each Flowspec NLRI comprising a matching field and a flow control action field specifically configured for an EVPN type flow (S102); after receiving a target packet, matching the target packet with the matching field of the EVPN type flow corresponding to the at least one Flowspec NLRI, and determining a target Flowspec NLRI (S104); and on the basis of the flow control action field corresponding to the target Flowspec NLRI, determining a target port corresponding to the target packet, and sending the target packet by means of the target port (S106).

## Claims

### Claim 1

A packet transmission method for an Ethernet virtual private network (EVPN), applied to a routing device, comprising:
obtaining at least one piece of flow specification network layer reachability information (Flowspec NLRI), wherein each piece of Flowspec NLRI contains a match field and a traffic control action field specifically configured for EVPN type traffic;
matching, after receiving a target packet, the target packet with the match field for the EVPN type traffic corresponding to the at least one piece of Flowspec NLRI, and determining target Flowspec NLRI; and
determining, on the basis of a traffic control action field corresponding to the target Flowspec NLRI, a target port corresponding to the target packet, and sending the target packet through the target port.

### Claim 2 (depends on 1)

The method according to claim 1, wherein
determining, on the basis of a traffic control action field corresponding to the target Flowspec NLRI, a target port corresponding to the target packet comprises:
determining, on the basis of the traffic control action field corresponding to the target Flowspec NLRI, a target traffic control action applied to the target packet; and
determining, on the basis of the target traffic control action, a corresponding target EVPN instance, and using a port configured to send a packet in the target EVPN instance as a target port corresponding to the target packet.

### Claim 3 (depends on 2)

The method according to claim 2, wherein
the target traffic control action comprises one of the following:
redirect to EVPN instance, used to associatively introduce a packet to a specified EVPN instance;
redirect to EVPN tunnel, used to associatively introduce a packet to a specified multi-protocol label switching (MPLS) tunnel or a segment routing traffic engineering (SR-TE) tunnel, wherein the MPLS tunnel or the SR-TE tunnel is mapped with an EVPN instance; and
EVPN label action, used to switch an EVPN instance for a packet.

### Claim 4 (depends on 1)

The method according to claim 1, wherein
matching the target packet with the match field for the EVPN type traffic provided by the at least one piece of Flowspec NLRI, and determining target Flowspec NLRI comprises:
determining, in a case where the target packet contains a target match item corresponding to at least one piece of EVPN type traffic, match priorities of all target match items on the basis of a pre-configured first match rule;
selecting one target match item sequentially in an order of match priorities from high to low in the first match rule, and matching the one target match item with match fields in all Flowspec NLRI; and
determining, in a case where the one selected target match item is matched with a match field in one piece of the Flowspec NLRI, the one piece of the Flowspec NLRI as target Flowspec NLRI.

### Claim 5 (depends on 4)

The method according to claim 4, wherein
the target packet comprises at least one of the following match items:
EVPN label, Outer Source MAC, Outer Destination MAC, Inner Source MAC, and Inner Destination MAC.

### Claim 6 (depends on 5)

The method according to claim 5, wherein
in the first match rule, a match priority of the EVPN label is higher than a match priority of the Outer Destination MAC, a match priority of the Outer Destination MAC is higher than a match priority of the Outer Source MAC, a match priority of the Outer Source MAC is higher than a match priority of the Inner Destination MAC, and a match priority of the Inner Destination MAC is higher than a match priority of the Inner Source MAC.

### Claim 7 (depends on 1)

The method according to claim 1, wherein
the at least one piece of Flowspec NLRI further contains a match field and a traffic control action field for an other type of traffic; and
matching, after receiving a target packet, the target packet with the match field for the EVPN type traffic corresponding to the at least one piece of Flowspec NLRI comprises:
determining, after receiving a target packet, match priorities of all target type traffic on the basis of a pre-configured second match rule, wherein each piece of target type traffic is a type of traffic that corresponds to a match rule and a traffic control action field in the at least one piece of Flowspec NLRI; and
selecting one piece of target type traffic sequentially in an order of match priorities from high to low in the second match rule to match the target packet with a match field for the selected target type traffic corresponding to the at least one piece of Flowspec NLRI until match fields of all other target type traffic with higher match priorities than the EVPN type traffic fail to be matched with the target packet, and then matching the target packet with the match field for the EVPN type traffic corresponding to the at least one piece of Flowspec NLRI.

### Claim 8 (depends on 7)

The method according to claim 7, wherein
the other type of traffic comprises at least one of L2 type traffic, L3 type traffic, MPLS type traffic, and SRv6 type traffic; and in the second match rule, a match priority of the L2 type traffic is higher than a match priority of the L3 type traffic, a match priority of the L3 type traffic is higher than a match priority of the MPLS type traffic, a match priority of the MPLS type traffic is higher than a match priority of the SRv6 type traffic, and a match priority of the SRv6 type traffic is higher than a match priority of a match priority of the EVPN type traffic.

### Claim 9 (depends on 7)

The method according to claim 7, wherein
the at least one piece of Flowspec NLRI comprises a type field, the type field is used to indicate that the Flowspec NLRI to which the same belongs contains a type of traffic with a match field and a traffic control action field; and
before determining match priorities of all target type traffic on the basis of a pre-configured second match rule, the method further comprises:
determining all target type traffic on the basis of the type field of the at least one piece of Flowspec NLRI.

### Claim 10 (depends on 1)

The method according to claim 1, wherein
an address family of the EVPN type traffic is pre-configured in a border gateway protocol of the routing device.

### Claim 11

An electronic device, comprising:
a processor; and a memory configured to store a computer-executable instruction, wherein the computer-executable instruction, when executed, causes the processor to perform a packet transmission method for an Ethernet virtual private network (EVPN), applied to a routing device, comprising:
obtaining at least one piece of flow specification network layer reachability information (Flowspec NLRI), wherein each piece of Flowspec NLRI contains a match field and a traffic control action field specifically configured for EVPN type traffic;
matching, after receiving a target packet, the target packet with the match field for the EVPN type traffic corresponding to the at least one piece of Flowspec NLRI, and determining target Flowspec NLRI; and
determining, on the basis of a traffic control action field corresponding to the target Flowspec NLRI, a target port corresponding to the target packet, and sending the target packet through the target port.

### Claim 12 (depends on 1)

A non-transitory computer-readable storage medium, configured to store a computer-executable instruction, wherein the computer-executable instruction, when executed by a processor, implements the method according to claim 1.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the Flowspec NLRI is sent to the routing device by a Flowspec server.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the target packet is a packet to be forwarded received by the routing device.

### Claim 15 (depends on 11)

The apparatus according to claim 11, wherein
determining, on the basis of a traffic control action field corresponding to the target Flowspec NLRI, a target port corresponding to the target packet comprises:
determining, on the basis of the traffic control action field corresponding to the target Flowspec NLRI, a target traffic control action applied to the target packet; and
determining, on the basis of the target traffic control action, a corresponding target EVPN instance, and using a port configured to send a packet in the target EVPN instance as a target port corresponding to the target packet.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein
the target traffic control action comprises one of the following:
redirect to EVPN instance, used to associatively introduce a packet to a specified EVPN instance;
redirect to EVPN tunnel, used to associatively introduce a packet to a specified multi-protocol label switching (MPLS) tunnel or a segment routing traffic engineering (SR-TE) tunnel, wherein the MPLS tunnel or the SR-TE tunnel is mapped with an EVPN instance; and
EVPN label action, used to switch an EVPN instance for a packet.

### Claim 17 (depends on 11)

The apparatus according to claim 11, wherein
matching the target packet with the match field for the EVPN type traffic provided by the at least one piece of Flowspec NLRI, and determining target Flowspec NLRI comprises:
determining, in a case where the target packet contains a target match item corresponding to at least one piece of EVPN type traffic, match priorities of all target match items on the basis of a pre-configured first match rule;
selecting one target match item sequentially in an order of match priorities from high to low in the first match rule, and matching the one target match item with match fields in all Flowspec NLRI; and
determining, in a case where the one selected target match item is matched with a match field in one piece of the Flowspec NLRI, the one piece of the Flowspec NLRI as target Flowspec NLRI.

### Claim 18 (depends on 17)

The apparatus according to claim 17, wherein
the target packet comprises at least one of the following match items:
EVPN label, Outer Source MAC, Outer Destination MAC, Inner Source MAC, and Inner Destination MAC.

### Claim 19 (depends on 18)

The apparatus according to claim 18, wherein
in the first match rule, a match priority of the EVPN label is higher than a match priority of the Outer Destination MAC, a match priority of the Outer Destination MAC is higher than a match priority of the Outer Source MAC, a match priority of the Outer Source MAC is higher than a match priority of the Inner Destination MAC, and a match priority of the Inner Destination MAC is higher than a match priority of the Inner Source MAC.

### Claim 20

A computer program product comprising a non-transitory computer-readable storage medium storing computer-executable program instruction which, when executed by a processor, causes the processor to perform a packet transmission method for an Ethernet virtual private network (EVPN), applied to a routing device, comprising:
obtaining at least one piece of flow specification network layer reachability information (Flowspec NLRI), wherein each piece of Flowspec NLRI contains a match field and a traffic control action field specifically configured for EVPN type traffic;
matching, after receiving a target packet, the target packet with the match field for the EVPN type traffic corresponding to the at least one piece of Flowspec NLRI, and determining target Flowspec NLRI; and
determining, on the basis of a traffic control action field corresponding to the target Flowspec NLRI, a target port corresponding to the target packet, and sending the target packet through the target port.
