# US 2019/0379608 A1 · Method and Apparatus for Processing Service Flow in Packet Network

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

- Number: US 2019/0379608 A1
- Document ID: US20190379608A1
- Status: Published application
- Kind: A1
- Application number: 16/545,218
- Filed: 2019-08-20
- Published: 2019-12-12
- Earliest claimed: 2017-02-20
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yuanlong Jiang
- Web page: https://patentgrep.com/patent/US20190379608A1

## CPC

- H04L 47/34: ensuring sequence integrity, e.g. using sequence numbers
- H04L 45/28: using route fault recovery
- H04L 45/50: using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for processing a service flow in a packet network, where the method is applied to a network device group including a first network device and a second network device connected to the first network device. The method includes: the first network device obtains a first upstream service flow, and receives a second upstream service flow from the second network device; the first network device obtains a third upstream service flow based on a first reference sequence number, a sequence number included in each upstream data packet in the first upstream service flow, and a sequence number included in each upstream data packet in the second upstream service flow, where a sequence number included in any upstream data packet in the third upstream service flow is greater than the first reference sequence number; and sends the third upstream service flow to a next hop node.

## Claims

### Claim 1

A method for processing a service flow and implemented by a first network device in a packet network, the method comprising:
obtaining a first upstream service flow comprising a first upstream data packet, wherein the first upstream data packet comprises a first sequence number identifying a sequence in the first upstream service flow, and wherein the first upstream service flow is from a third network device in the packet network or is replicating an upstream service flow from the third network device;
receiving, from a second network device in the packet network, a second upstream service flow comprising a second upstream data packet, wherein the second upstream data packet comprises a second sequence number identifying a sequence in the second upstream service flow, and wherein the second upstream service flow is from a fourth network device in the packet network or is replicating an upstream service flow from the fourth network device;
obtaining a third upstream service flow based on a first reference sequence number, the first sequence number, and the second sequence number, wherein the third upstream service flow comprises a third upstream data packet, and wherein the third upstream data packet comprises a third sequence number greater than the first reference sequence number; and
sending the third upstream service flow to a fifth network device.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the method further comprises:
receiving an upstream service flow from the third network device;
replicating the upstream service flow from the third network device; and
sending a fourth upstream service flow to the second network device, wherein the fourth upstream service flow is the upstream service flow from the third network device or a service flow obtained by replicating the upstream service flow from the third network device.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprises:
obtaining a first downstream service flow, wherein the first downstream service flow comprises a first downstream data packet, the first downstream data packet comprise a fourth sequence number identifying a sequence in the first downstream service flow, and wherein the first downstream service flow is a downstream service flow received by the first network device from the fifth network device or a service flow obtained by the first network device by replicating a downstream service flow from the fifth network device;
receiving, a second downstream service flow sent by the second network device, wherein the second downstream service flow comprises a second downstream data packet, the second downstream data packet comprises a fifth sequence number identifying a sequence in the second downstream service flow, and wherein the second downstream service flow is a downstream service flow received by the second network device from a sixth network device or a service flow obtained by the second network device by replicating a downstream service flow from a sixth network device;
obtaining a third downstream service flow based on a second reference sequence number, the fourth sequence number and the fifth sequence number, wherein the third downstream service flow comprises a third downstream data packet, and wherein a sixth sequence number comprised in the third downstream data packet is greater than the second reference sequence number; and
sending the third downstream service flow to the third network device.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the method further comprises:
receiving a downstream service flow from the fifth network device;
replicating the downstream service flow from the fifth network device; and
sending a fourth downstream service flow to the second network device, wherein the fourth downstream service flow is the downstream service flow from the fifth network device or a service flow obtained by replicating the downstream service flow from the fifth network device.

### Claim 5 (depends on 1)

The method according to claim 1, wherein obtaining, by the first network device, a third upstream service flow based on the first reference sequence number, the first sequence number and the second sequence number comprises:
selecting, by the first network device as the third upstream service flow based on the first sequence number and the second sequence number, one or more upstream data packets from the first upstream data packet and the second upstream data packet, wherein the one or more upstream data packets comprise sequence numbers whose values are greater than the first reference sequence number, wherein an ith upstream data packet is any upstream data packet in the third upstream service flow, wherein a sequence number comprised in the ith upstream data packet is greater than the first reference sequence number, wherein a sequence number comprised in a (i+1)th upstream data packet is greater than the sequence number comprised in the ith upstream data packet, and wherein the (i+1)th upstream data packet follows the ith upstream data packet in the third upstream service flow.

### Claim 6 (depends on 1)

The method according to claim 1, wherein obtaining, by the first network device, a third upstream service flow based on the first reference sequence number, the first sequence number and the second sequence number comprises:
sorting, based on an arrival moment of the first upstream data packet and an arrival moment of the second upstream data packet, the first upstream data packet and the second upstream data packet to obtain a sorted upstream service flow; and
selecting, as the third upstream service flow from the sorted upstream service flow, one or more upstream data packets comprising sequence numbers whose values are greater than the first reference sequence number, wherein a sequence number comprised in an ith upstream data packet in the third upstream service flow is greater than the first reference sequence number, wherein an arrival moment of an (i+1)th upstream data packet in the third upstream service flow is later than an arrival moment of the ith upstream data packet, wherein a sequence number comprised in the (i+1)th upstream data packet is greater than the sequence number comprised in the ith upstream data packet, and wherein the ith upstream data packet is any upstream data packet in the third upstream service flow.

### Claim 7 (depends on 3)

The method according to claim 3, wherein obtaining, by the first network device, the third downstream service flow based on the second reference sequence number, the fourth sequence number and the fifth sequence number comprises:
selecting, as the third downstream service flow based on the fourth sequence number and the fifth sequence number, one or more downstream data packets from the first downstream data packet and the second downstream data packet, wherein the one or more downstream data packets comprise sequence numbers whose values are greater than the second reference sequence number, wherein a jth downstream data packet is any downstream data packet in the third downstream service flow, a sequence number comprised in the jth downstream data packet is greater than the second reference sequence number, a sequence number comprised in a (j+1)th downstream data packet is greater than the sequence number comprised in the jth downstream data packet, and the (j+1)th downstream data packet follows the jth downstream data packet in the third downstream service flow.

### Claim 8 (depends on 3)

The method according to claim 3, wherein obtaining, by the first network device, the third downstream service flow based on the second reference sequence number, the fourth sequence number and the fifth sequence number comprises:
sorting, based on an arrival moment of the first downstream data packet and an arrival moment of the second downstream data packet, the first downstream data packet and the second downstream data packet to obtain a sorted downstream service flow; and
selecting, as the third downstream service flow from the sorted downstream service flow, one or more downstream data packets comprising sequence numbers whose values are greater than the second reference sequence number, wherein a sequence number comprised in a jth downstream data packet in the third downstream service flow is greater than the second reference sequence number, wherein an arrival moment of a (j+1)th downstream data packet in the third downstream service flow is later than an arrival moment of the jth downstream data packet, wherein a sequence number comprised in a (j+1)th downstream data packet is greater than the sequence number comprised in the jth downstream data packet, and wherein the jth downstream data packet is any downstream data packet in the third downstream service flow.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the method further comprises:
updating, by the first network device, a value of the first reference sequence number using a maximum value of a sequence number comprised in a upstream data packet in the third upstream service flow.

### Claim 10 (depends on 3)

The method according to claim 3, further comprises:
updating, by the first network device, a value of the second reference sequence number using a maximum value of a sequence number comprised in a downstream data packet in the third downstream service flow.

### Claim 11 (depends on 3)

The method according to claim 3, wherein the first network device is a first provider edge (PE) device, the second network device is a second PE device, the third network device is a customer edge (CE) device, and the fourth network device is a CE device,
wherein the first network device is a first pseudo wire switching point (SPE), the second network device is a second SPE, the third network device is a first PE device, the fourth network device is a second PE device, and the first PE device and the second PE device communicate with a same CE device,
wherein the first network device is a first SPE, the second network device is a second SPE, the third network device is a first PE device, the fourth network device is a second PE device, and the first PE device and the second PE device belong to a network device group, or
wherein the first network device is a first SPE, the second network device is a second SPE, the third network device is a first PE device, the fourth network device is a second PE device, the first PE device and the second PE device belong to a network device group, and the first PE device and the second PE device communicate with a same CE device.

### Claim 12 (depends on 11)

The method according to claim 11, wherein the fifth network device and the sixth network device are same PE devices, or the fifth network device and the sixth network device are different PE devices, or the fifth network device and the sixth network device are different SPEs.

### Claim 13

An apparatus for processing a service flow in a packet network, wherein the apparatus is disposed in a first network device in a network device group, wherein the apparatus comprises:
a processor; and
a non-transitory computer-readable storage medium coupled to the processor and storing programming instructions for execution by the processor, such that when executed, instruct the processor to:
obtain a first upstream service flow comprising a first upstream data packet, wherein the first upstream data packet comprises a first sequence number to identify a sequence in the first upstream service flow, and wherein the first upstream service flow is from a third network device in the packet network or is obtained by replicating an upstream service flow from the third network device;
receive a second upstream service flow from a second network device in the packet network, wherein the second upstream service flow comprises a second upstream data packet, wherein the second upstream data packet comprises a second sequence number identifying a sequence in the second upstream service flow and that is of the upstream data packet comprising the sequence number, and wherein the second upstream service flow is from a fourth network device in the packet network or is obtained by replicating an upstream service flow from the fourth network device;
obtain a third upstream service flow based on a first reference sequence number, the first sequence number and the second sequence number, wherein the third upstream service flow comprises a third upstream data packet, and wherein the third upstream service flow comprises a third sequence number greater than the first reference sequence number; and
send the third upstream service flow to a fifth network device.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the programming instructions further instruct the processor to:
receive an upstream service flow from the third network device;
replicate the upstream service flow from the third network device; and
send a fourth upstream service flow to the second network device, wherein the fourth upstream service flow is the upstream service flow from the third network device or a service flow obtained by replicating the upstream service flow from the third network device.

### Claim 15 (depends on 13)

The apparatus according to claim 13, wherein the programming instructions further instruct the processor to:
obtain a first downstream service flow, wherein the first downstream service flow comprises a first downstream data packet, wherein the first downstream data packet comprises a fourth sequence number identifying a sequence in the first downstream service flow, and wherein the first downstream service flow is a downstream service flow received by the first network device from the fifth network device or a service flow obtained by the first network device by replicating a downstream service flow from the fifth network device;
receive, a second downstream service flow sent by the second network device, wherein the second downstream service flow comprises a second downstream data packet, wherein the second downstream data packet comprises a fifth sequence number identifying a sequence in the second downstream service flow, and wherein the second downstream service flow is a downstream service flow received by the second network device from a sixth network device or a service flow obtained by the second network device by replicating a downstream service flow from a sixth network device;
obtain a third downstream service flow based on a second reference sequence number, the fourth sequence number and the fifth sequence number, wherein the third downstream service flow comprises a third downstream data packet, and wherein a sixth sequence number comprised in the third downstream data packet is greater than the second reference sequence number; and
send the third downstream service flow to the third network device.

### Claim 16 (depends on 14)

The apparatus according to claim 14, wherein the programming instructions further instruct the processor to:
receive a downstream service flow from the fifth network device;
replicate the downstream service flow from the fifth network device; and
send a fourth downstream service flow to the second network device, wherein the fourth downstream service flow is the downstream service flow from the fifth network device or a service flow obtained by replicating the downstream service flow from the fifth network device.

### Claim 17 (depends on 13)

The apparatus according to claim 13, wherein the programming instructions instruct the processor to:
select, as the third upstream service flow based on the first sequence number and the second sequence number, one or more upstream data packets from the first upstream data packet and the second upstream data packet, wherein the one or more upstream data packets comprise sequence numbers whose values are greater than the first reference sequence number, wherein an ith upstream data packet is any upstream data packet in the third upstream service flow, wherein a sequence number comprised in the ith upstream data packet is greater than the first reference sequence number, wherein a sequence number comprised in a (i+1)th upstream data packet is greater than the sequence number comprised in the ith upstream data packet, and wherein the (i+1)th upstream data packet follows the ith upstream data packet in the third upstream service flow.

### Claim 18 (depends on 13)

The apparatus according to claim 13, wherein the programming instructions further instruct the processor to:
sort, based on an arrival moment of the first upstream data packet and an arrival moment of the second upstream data packet, the first upstream data packet and the second upstream data packet to obtain a sorted upstream service flow; and
select, as the third upstream service flow from the sorted upstream service flow, one or more upstream data packets comprising sequence numbers whose values are greater than the first reference sequence number, wherein a sequence number comprised in an ith upstream data packet in the third upstream service flow is greater than the first reference sequence number, wherein an arrival moment of an (i+1)th upstream data packet in the third upstream service flow is later than an arrival moment of the ith upstream data packet, wherein a sequence number comprised in the (i+1)th upstream data packet is greater than the sequence number comprised in the ith upstream data packet, and wherein the ith upstream data packet is any upstream data packet in the third upstream service flow.

### Claim 19 (depends on 15)

The apparatus according to claim 15, wherein the programming instructions instruct the processor to:
select, as the third downstream service flow based on the fourth sequence number and the fifth sequence number, one or more downstream data packets from the first downstream data packet and the second downstream data packet, wherein the one or more downstream data packets comprise sequence numbers whose values are greater than the second reference sequence number, wherein a jth downstream data packet is any downstream data packet in the third downstream service flow, wherein a sequence number comprised in the jth downstream data packet is greater than the second reference sequence number, wherein a sequence number comprised in a (j+1)th downstream data packet is greater than the sequence number comprised in the jth downstream data packet, and wherein the (j+1)th downstream data packet follows the jth downstream data packet in the third downstream service flow.

### Claim 20 (depends on 15)

The apparatus according to claim 15, wherein the programming instructions instruct the processor to:
sort, based on an arrival moment of the first downstream data packet and an arrival moment of the second downstream data packet, the first downstream data packet and the second downstream data packet to obtain a sorted downstream service flow; and
select, as the third downstream service flow from the sorted downstream service flow, one or more downstream data packets comprising sequence numbers whose values are greater than the second reference sequence number, wherein a sequence number comprised in a jth downstream data packet in the third downstream service flow is greater than the second reference sequence number, wherein an arrival moment of a (j+1)th downstream data packet in the third downstream service flow is later than an arrival moment of the jth downstream data packet, wherein a sequence number comprised in a (j+1)th downstream data packet is greater than the sequence number comprised in the jth downstream data packet, and wherein the jth downstream data packet is any downstream data packet in the third downstream service flow.

### Claim 21 (depends on 13)

The apparatus according to claim 13, wherein the programming instructions further instruct the processor to:
update a value of the first reference sequence number using a maximum value of a sequence number comprised in a upstream data packet in the third upstream service flow.

### Claim 22 (depends on 15)

The apparatus according to claim 15, wherein the programming instructions further instruct the processor to:
update a value of the second reference sequence number using a maximum value of a sequence number comprised in the downstream data packet in the third downstream service flow.
