# US 2022/0294728 A1 · Packet Transmission Path Switching Method, Device, and System

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

- Number: US 2022/0294728 A1
- Document ID: US20220294728A1
- Status: Published application
- Kind: A1
- Application number: 17/749,604
- Filed: 2022-05-20
- Published: 2022-09-15
- Earliest claimed: 2019-11-22
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Guoliang Liu
- Web page: https://patentgrep.com/patent/US20220294728A1

## CPC

- H04L 45/22: {Alternate routing}
- H04L 43/12: Network monitoring probes
- H04L 45/02: Topology update or discovery
- H04L 45/26: {Route discovery packet}
- H04L 45/28: using route fault recovery
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This application discloses a packet transmission path switching method. The method includes: After a first PE receives an Ethernet segment ES auto-discovery AD route sent by a second PE, the first PE establishes a bidirectional forwarding detection BFD session with the second PE based on the ES-AD route; based on the fact that the first PE determines that a status of the BFD session is a disconnected state, the first PE determines that a first link between the second PE and a first CE is faulty; and the first PE quickly switches a packet transmitted over a second link between the first PE and the second PE to a third link between the first PE and a third PE. This application implements fast and accurate switching of a packet transmission path.

## Claims

### Claim 1

A first provider edge (PE), comprising:
a memory configured to store instructions; and
a processor coupled to the memory, when the instructions executed by the processor, cause the first PE to:
receive, an Ethernet segment auto-discovery (ES-AD) route sent by a second PE, wherein the ES-AD route is used to indicate that a first link is successfully established between the second PE and a first customer edge device CE;
establish a bidirectional forwarding detection BFD session with the second PE based on the ES-AD route, wherein the BFD session is used to detect a connection status of the first link; and
determine, based on the fact that the BFD session is in a disconnected state, that the first link is faulty; and
switch a packet transmitted over a second link between the first PE and the second PE to a third link between the first PE and a third PE, wherein the third PE and the second PE separately establish a connection with the first CE.

### Claim 2 (depends on 1)

The first PE according to claim 1, wherein the instructions executed by the processor further cause the first PE to:
send a probe packet to the second PE;
in response to determining that no response packet returned by the second PE for the probe packet, determine that the first link is faulty.

### Claim 3 (depends on 2)

The first PE according to claim 2, wherein the instructions executed by the processor further cause the first PE to:
before sending the probe packet to the second PE, set a probe period of the probe packet, wherein one probe period comprises a time interval for continuously transmitting two probe packets; and
determine that no response packet returned by the second PE for the probe packet within N probe periods, wherein N is a positive integer greater than zero.

### Claim 4 (depends on 1)

The first PE according to claim 1, wherein the instructions executed by the processor further cause the first PE to:
switch, based on a target association relationship, the packet transmitted over the second link to the third link, wherein the target association relationship indicates that a status of the BFD session is associated with the third link.

### Claim 5 (depends on 4)

The first PE according to claim 4, wherein the target association relationship comprises a first association relationship and a second association relationship, and the switching, by the first PE based on the target association relationship, the instructions executed by the processor further cause the first PE to:
determine, based on the first association relationship and the fact that the BFD session is in the disconnected state, that the second link is faulty, wherein the first association relationship indicates that the status of the BFD session is associated with the second link; and
switch, based on the second association relationship, the packet transmitted over the second link to the third link, wherein the second association relationship indicates that the second link is associated with the third link.

### Claim 6

A second provider edge (PE), comprising:
a memory configured to store instructions; and
a processor coupled to the memory, when the instructions executed by the processor, cause the second PE to:
send an Ethernet segment ES auto-discovery AD (ES-AD) route to a first PE, wherein the ES-AD route is used to indicate that the second PE successfully establishes a first link with a customer edge (CE), and the ES-AD route instructs the first PE to establish a bidirectional forwarding detection BFD session with the second PE;
establish a BFD session with the first PE based on the ES-AD route, wherein the BFD session is used to detect a connection status of the first link;
set a status of the BFD session to a disconnected state in response to determining that the first link is faulty.

### Claim 7 (depends on 6)

The second PE according to claim 6, wherein the instructions executed by the processor further cause the second PE to:
determine, based on the fact that a signal status of a tracking interface is a faulty state, that the first link is faulty, wherein the tracking interface is an interface used by the second PE to establish the first link with the first CE; and
set the status of the BFD session to the disconnected state based on the faulty state of the tracking interface and a third association relationship, wherein the third association relationship indicates that the signal status of the tracking interface is associated with the status of the BFD session.

### Claim 8 (depends on 6)

The second PE according to claim 6, wherein the instructions executed by the processor further cause the second PE to:
receive a probe packet sent by the first PE; and
stop returning a response packet to the first PE for the probe packet.

### Claim 9 (depends on 6)

The second PE according to claim 6, wherein the instructions executed by the processor further cause the second PE to:
receive a probe packet sent by the first PE, wherein a probe period of the probe packet comprises a time interval for continuously transmitting two probe packets; and
stop returning a response packet to the first PE in N probe periods for the probe packet, wherein N is a positive integer greater than zero.

### Claim 10 (depends on 6)

The second PE according to claim 6, wherein the second PE belongs to an Ethernet virtual private network (EVPN).

### Claim 11 (depends on 6)

The second PE according to claim 6, wherein the first CE is multi-homed to the second PE and a third PE.

### Claim 12

A packet transmission path switching system, comprising a first provider edge (PE), a second PE, and a customer edge (CE), wherein
the second PE is configured to:
send an Ethernet segment auto-discovery (ES-AD) to the first PE, wherein the ES-AD route indicates that a first link through which the CE is connected to the second PE is successfully established between the second PE and a first customer edge device (CE);
establish a bidirectional forwarding detection (BFD) session with the first PE, the BFD session is associated with a connection status of the first link;
set a status of the BFD session to a disconnected state in response to determining that the first link is faulty;
the first PE is configured to:
receive the ES-AD route sent by a second PE;
establish the BFD session with the second PE based on the ES-AD route; and
determine, based on the fact that the BFD session is in a disconnected state, that the first link is faulty; and
switch a packet transmitted over a second link between the first PE and the second PE to a third link between the first PE and a third PE, wherein the third PE and the second PE separately establish a connection with the CE

### Claim 13 (depends on 12)

The system according to claim 12, wherein the first PE is further configured to:
send a probe packet to the second PE;
in response to determining that no response packet returned by the second PE for the probe packet, determine that the first link is faulty.

### Claim 14 (depends on 13)

The system according to claim 13, wherein the first PE is further configured to:
before sending the probe packet to the second PE, set a probe period of the probe packet, wherein one probe period comprises a time interval for continuously transmitting two probe packets; and
determine that no response packet returned by the second PE for the probe packet within N probe periods, wherein N is a positive integer greater than zero.

### Claim 15 (depends on 12)

The system according to claim 12, wherein the first PE is further configured to:
switch, based on a target association relationship, the packet transmitted over the second link to the third link, wherein the target association relationship indicates that a status of the BFD session is associated with the third link.

### Claim 16 (depends on 12)

The system according to claim 12, wherein the target association relationship comprises a first association relationship and a second association relationship, and the first PE is further configured to:
determine, based on the first association relationship and the fact that the BFD session is in the disconnected state, that the second link is faulty, wherein the first association relationship indicates that the status of the BFD session is associated with the second link; and
switch, based on the second association relationship, the packet transmitted over the second link to the third link, wherein the second association relationship indicates that the second link is associated with the third link.

### Claim 17 (depends on 12)

The system according to claim 12, wherein the second PE is further configured to:
determine, based on the fact that a signal status of a tracking interface is a faulty state, that the first link is faulty, wherein the tracking interface is an interface used by the second PE to establish the first link with the first CE; and
set the status of the BFD session to the disconnected state based on the faulty state of the tracking interface and a third association relationship, wherein the third association relationship indicates that the signal status of the tracking interface is associated with the status of the BFD session.

### Claim 18 (depends on 12)

The system according to claim 12, wherein the second PE is further configured to:
receive a probe packet sent by the first PE; and
stop returning a response packet to the first PE for the probe packet.

### Claim 19 (depends on 12)

The system according to claim 12, wherein the second PE belongs to an Ethernet virtual private network (EVPN).

### Claim 20 (depends on 12)

The system according to claim 12, wherein the first CE is multi-homed to the second PE and a third PE.
