# US 2020/0403849 A1 · Service fault locating method and apparatus

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

- Number: US 2020/0403849 A1
- Document ID: US20200403849A1
- Status: Published application
- Kind: A1
- Application number: 17/009,334
- Filed: 2020-09-01
- Published: 2020-12-24
- Earliest claimed: 2015-06-29
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Congjuan LI; Feng LI
- Web page: https://patentgrep.com/patent/US20200403849A1

## CPC

- H04L 41/0677: Localisation of faults
- H04L 41/00: Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L 41/12: Discovery or management of network topologies
- H04L 69/324: in the data link layer [OSI layer 2], e.g. HDLC
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A service fault locating method and apparatus for precisely locating a network fault problem in a multi-layer OAM architecture network. The method includes: receiving a service fault locating request message; determining, an IPs, and an IN, that a service fault is between a first layer-3 device and a second layer-3 device; obtaining a first network topology between the first layer-3 device and the second layer-3 device; determining a first forwarding path of the service packet between the first layer-3 device and the second layer-3 device according to the first network topology; configuring a forwarding entry of a forwarding device in the first forwarding path, and triggering the first layer-3 device to generate an extended layer-2 OAM packet; and obtaining a first path parameter of the first forwarding path, and determining a specific location of the service fault according to the first path parameter.

## Claims

### Claim 1

A service fault locating method, comprising:
determining that a service fault exists between a first layer-3 device and a second layer-3 device, wherein the second layer-3 device is a next hop layer-3 device of the first layer-3 device, wherein the service fault is a link fault, a port fault, or a device fault;
determining a first forwarding path of a service packet between the first layer-3 device and the second layer-3 device;
configuring a forwarding entry for a forwarding device in the first forwarding path, and triggering the first layer-3 device to generate an extended layer-2 operation, administration, and maintenance (OAM) packet, wherein the forwarding entry is used for forwarding the extended layer-2 OAM packet along the first forwarding path;
obtaining a first path parameter that is of the first forwarding path and sent by the forwarding device; and
determining a specific location of the service fault according to the first path parameter.

### Claim 2 (depends on 1)

The method according to claim 1, wherein before the determining the first forwarding path of the service packet between the first layer-3 device and the second layer-3 device, further comprising:
obtaining a first network topology between the first layer-3 device and the second layer-3 device; and
wherein the determining the first forwarding path of the service packet between the first layer-3 device and the second layer-3 device comprises:
determining the first forwarding path of the service packet between the first layer-3 device and the second layer-3 device according to the first network topology and a characteristic parameter of the service packet.

### Claim 3 (depends on 2)

The method according to claim 2, wherein before the determining that the service fault exists between the first layer-3 device and the second layer-3 device, further comprising:
receiving a service fault locating request message, wherein the service fault locating request message comprises the characteristic parameter of the service packet.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the service fault locating request message further comprises an Internet Protocol (IP) address (IPs) of a source layer-3 device of the service packet and an IP address (IPD) of a destination layer-3 device of the service packet; and
wherein the determining that the service fault exists between the first layer-3 device and the second layer-3 device comprises:
determining according to the characteristic parameter of the service packet, the IPs, and the IPD, that the service fault exists between the first layer-3 device and the second layer-3 device.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the determining the first forwarding path of the service packet between the first layer-3 device and the second layer-3 device according to the first network topology and the characteristic parameter of the service packet comprises:
obtaining a cascaded layer-2 device of the first layer-3 device according to the characteristic parameter of the service packet and the first network topology;
for each layer-2 device between the first layer-3 device and the second layer-3 device, obtaining a cascaded device of the layer-2 device according to the characteristic parameter of the service packet and the first network topology; and
determining the first forwarding path of the service packet between the first layer-3 device and the second layer-3 device according to the cascaded layer-2 device of the first layer-3 device and the cascaded device of each layer-2 device.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the obtaining the cascaded layer-2 device of the first layer-3 device according to the characteristic parameter of the service packet and the first network topology comprises:
obtaining an egress port of the first layer-3 device according to an ingress port of the first layer-3 device and the characteristic parameter of the service packet; and
obtaining the cascaded layer-2 device of the first layer-3 device according to the egress port of the first layer-3 device and the first network topology.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the obtaining the cascaded device of the layer-2 device according to the characteristic parameter of the service packet and the first network topology comprises:
obtaining an egress port of the layer-2 device according to an ingress port of the layer-2 device, the characteristic parameter of the service packet, and a layer-2 characteristic parameter between the first layer-3 device and the second layer-3 device, wherein the ingress port of the layer-2 device is a port that is in the first network topology and that connects to an egress port of a previous cascaded device of the layer-2 device; and
obtaining the cascaded device of the layer-2 device according to the egress port of the layer-2 device and the first network topology.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the obtaining the egress port of the first layer-3 device according to the ingress port of the first layer-3 device and the characteristic parameter of the service packet comprises:
obtaining a forwarding policy of the first layer-3 device that is opened to the outside by the first layer-3 device; and
obtaining, by means of calculation, the egress port of the first layer-3 device according to the ingress port of the first layer-3 device, the characteristic parameter of the service packet, and the forwarding policy of the first layer-3 device.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the obtaining the egress port of the layer-2 device according to the ingress port of the layer-2 device, the characteristic parameter of the service packet, and the layer-2 characteristic parameter between the first layer-3 device and the second layer-3 device comprises:
obtaining a forwarding policy of the layer-2 device that is opened to the outside by the layer-2 device; and
obtaining, by means of calculation, the egress port of the layer-2 device according to the ingress port of the layer-2 device, the characteristic parameter of the service packet, the layer-2 characteristic parameter between the first layer-3 device and the second layer-3 device, and the forwarding policy of the layer-2 device.

### Claim 10 (depends on 6)

The method according to claim 6, wherein the obtaining the egress port of the first layer-3 device according to the ingress port of the first layer-3 device and the characteristic parameter of the service packet comprises:
invoking an application programming interface (API) of the first layer-3 device, wherein the first layer-3 device opens a forwarding policy of the first layer-3 device to the outside in a form of the API; and
querying the forwarding policy of the first layer-3 device by using the ingress port of the first layer-3 device and the characteristic parameter of the service packet as keywords, to obtain the egress port of the first layer-3 device that is sent by the first layer-3 device.

### Claim 11 (depends on 7)

The method according to claim 7, wherein the obtaining the egress port of the layer-2 device according to the ingress port of the layer-2 device, the characteristic parameter of the service packet, and the layer-2 characteristic parameter between the first layer-3 device and the second layer-3 device comprises:
invoking an API of the layer-2 device, wherein the layer-2 device opens a forwarding policy of the layer-2 device to the outside in a form of the API of the layer-2 device; and
querying the forwarding policy of the layer-2 device by using the ingress port of the layer-2 device, the characteristic parameter of the service packet, and the layer-2 characteristic parameter between the first layer-3 device and the second layer-3 device as keywords, to obtain the egress port of the layer-2 device that is sent by the layer-2 device.

### Claim 12 (depends on 6)

The method according to claim 6, wherein the obtaining the egress port of the first layer-3 device according to the ingress port of the first layer-3 device and the characteristic parameter of the service packet comprises:
determining a quantity of cascaded layer-2 devices of the first layer-3 device according to the first network topology; and
if the quantity of cascaded layer-2 devices of the first layer-3 device is not 1, obtaining the egress port of the first layer-3 device according to the ingress port of the first layer-3 device and the characteristic parameter of the service packet.

### Claim 13 (depends on 7)

The method according to claim 7, wherein the obtaining the egress port of the layer-2 device according to the ingress port of the layer-2 device, the characteristic parameter of the service packet, and the layer-2 characteristic parameter between the first layer-3 device and the second layer-3 device comprises:
determining a quantity of cascaded devices of the layer-2 device according to the first network topology; and
if the quantity of cascaded devices of the layer-2 device is not 1, obtaining the egress port of the layer-2 device according to the ingress port of the layer-2 device, the characteristic parameter of the service packet, and the layer-2 characteristic parameter between the first layer-3 device and the second layer-3 device.

### Claim 14 (depends on 12)

The method according to claim 12, wherein after the determining the quantity of cascaded layer-2 devices of the first layer-3 device according to the first network topology, further comprising:
if the quantity of cascaded layer-2 devices of the first layer-3 device is 1, determining that the cascaded layer-2 device of the first layer-3 device is the cascaded layer-2 device of the first layer-3 device in the first network topology.

### Claim 15 (depends on 13)

The method according to claim 13, wherein after the determining the quantity of cascaded devices of the layer-2 device according to the first network topology, further comprising:
if the quantity of cascaded devices of the layer-2 device is 1, determining that the cascaded device of the layer-2 device is the cascaded device of the layer-2 device in the first network topology.

### Claim 16 (depends on 1)

The method according to claim 1, wherein the extended layer-2 OAM packet further comprises at least one type-length-value (TLV) field, and the TLV field is used to identify extended layer-2 OAM packets of different services.

### Claim 17 (depends on 4)

The method according to claim 4, wherein the determining, according to the characteristic parameter of the service packet, the IPs, and the IPD, that the service fault is between a first layer-3 device and a second layer-3 device comprises:
obtaining a second network topology between the source layer-3 device and the destination layer-3 device according to the IPs and the IPD;
determining a second forwarding path of the service packet between the source layer-3 device and the destination layer-3 device according to the second network topology and the characteristic parameter of the service packet; and
after a layer-3 OAM packet is forwarded according to the second forwarding path, and a second path parameter of the second forwarding path is obtained, determining, according to the second path parameter, that the service fault is between the first layer-3 device and the second layer-3 device.

### Claim 18 (depends on 1)

The method according to claim 1, wherein the first path parameter is used to measure path quality.

### Claim 19

A service fault locating apparatus comprising:
a processor; and
a non-transitory computer readable medium which contains computer-executable instructions;
wherein the processor is configured to execute the computer-executable instructions to perform operations comprising:
determining that a service fault exists between a first layer-3 device and a second layer-3 device, wherein the second layer-3 device is a next hop layer-3 device of the first layer-3 device, wherein the service fault is a link fault, a port fault, or a device fault;
determining a first forwarding path of a service packet between the first layer-3 device and the second layer-3 device;
configuring a forwarding entry for a forwarding device in the first forwarding path, and triggering the first layer-3 device to generate an extended layer-2 operation, administration, and maintenance (OAM) packet, wherein the forwarding entry is used for forwarding the extended layer-2 OAM packet along the first forwarding path;
obtaining a first path parameter that is of the first forwarding path and sent by the forwarding device; and
determining a specific location of the service fault according to the first path parameter.

### Claim 20

A non-transitory computer readable medium which contains computer-executable instructions, wherein the computer-executable instructions, when executed by a computer, enables the computer to perform operations comprising:
determining, that a service fault exists between a first layer-3 device and a second layer-3 device, wherein the second layer-3 device is a next hop layer-3 device of the first layer-3 device, wherein the service fault is a link fault, a port fault, or a device fault;
determining a first forwarding path of a service packet between the first layer-3 device and the second layer-3 device;
configuring a forwarding entry for a forwarding device in the first forwarding path, and triggering the first layer-3 device to generate an extended layer-2 operation, administration, and maintenance (OAM) packet, wherein the forwarding entry is used for forwarding the extended layer-2 OAM packet along the first forwarding path;
obtaining a first path parameter that is of the first forwarding path and sent by the forwarding device; and
determining a specific location of the service fault according to the first path parameter.
