# US 2024/0179226 A1 · Packet Mirroring Method, Apparatus, and System

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

- Number: US 2024/0179226 A1
- Document ID: US20240179226A1
- Status: Published application
- Kind: A1
- Application number: 18/521,141
- Filed: 2023-11-28
- Published: 2024-05-30
- Earliest claimed: 2022-11-28
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Guojie Cui; Yongping Zhang
- Web page: https://patentgrep.com/patent/US20240179226A1

## CPC

- H04L 43/12: Network monitoring probes
- H04L 69/22: Parsing or analysis of headers
- H04L 43/028: by filtering
- H04L 45/741: Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A packet mirroring method includes receiving, by a first network device, an Internet Protocol version 6 (IPv6) packet. The IPV6 packet includes a service packet and a packet header, the packet header includes a first mirroring index, and the first mirroring index corresponds to feature information in the service packet. The first network device determines packet observing port information based on the first mirroring index and a first mapping relationship. The packet observing port information indicates a packet observing port, and the first network device includes the packet observing port. The first network device mirrors the IPV6 packet to the packet observing port.

## Claims

### Claim 1

A method comprising:
receiving an Internet Protocol version 6 (IPv6) packet comprising a service packet and a packet header, wherein the packet header comprises a mirroring index corresponding to feature information in the service packet;
determining packet observing port information based on the mirroring index and a mapping relationship, wherein the packet observing port information indicates a packet observing port; and
mirroring the IPV6 packet to the packet observing port.

### Claim 2 (depends on 1)

The method of claim 1, wherein the packet header comprises an IPV6 basic header and an IPV6 extension header, and wherein the IPV6 extension header comprises the mirroring index.

### Claim 3 (depends on 2)

The method of claim 2, wherein the IPV6 extension header further comprises a segment routing header (SRH).

### Claim 4 (depends on 2)

The method of claim 2, wherein the IPV6 extension header further comprises a bit index explicit replication (BIER) header.

### Claim 5 (depends on 4)

The method of claim 4, wherein the BIER header is a BIER IPv6 (BIERv6) header or a BIER in IPv6 (BIERin6) header.

### Claim 6 (depends on 1)

The method of claim 1, further comprising receiving the mapping relationship from a network management device.

### Claim 7 (depends on 1)

The method of claim 1, wherein the feature information comprises at least one of an n-tuple, a source media access control (MAC) address, or priority information, and wherein n is a positive integer.

### Claim 8 (depends on 1)

The method claim 1, wherein the method is implemented by a transit device or an egress device on a forwarding path of the IPV6 packet.

### Claim 9

A method, comprising:
receiving a service packet;
determining a mirroring index based on a mapping relationship and feature information in the service packet, wherein the mapping relationship indicates that the mirroring index corresponds to the feature information;
obtaining an Internet Protocol version 6 (IPv6) packet based on the service packet and the mirroring index, wherein the IPV6 packet comprises the service packet and a packet header, and wherein the packet header comprises the mirroring index; and
forwarding the IPV6 packet.

### Claim 10 (depends on 9)

The method of claim 9, wherein the packet header further comprises an IPV6 basic header and an IPV6 extension header, and wherein the IPV6 extension header comprises the first mirroring index.

### Claim 11 (depends on 10)

The method of claim 10, wherein the IPv6 extension header further comprises a segment routing header (SRH).

### Claim 12 (depends on 10)

The method of claim 10, wherein the IPV6 extension header further comprises a bit index explicit replication (BIER) header.

### Claim 13 (depends on 12)

The method of claim 12, wherein the BIER header is a BIER IPv6 (BIERv6) header or a BIER in IPv6 (BIERin6) header.

### Claim 14 (depends on 9)

The method of claim 9, further comprising receiving the mapping relationship from a network management device.

### Claim 15 (depends on 9)

The method of claim 9, wherein the feature information comprises at least one of an n-tuple, a source media access control (MAC) address, or priority information, and wherein n is a positive integer.

### Claim 16 (depends on 9)

The method of claim 9, wherein the method is implemented by an ingress device on a forwarding path of the IPV6 packet.

### Claim 17

An apparatus comprising:
a memory configured to store instructions;
a packet observing port; and
one or more processors coupled to the memory and configured to execute the instructions to cause the apparatus to:
receive an Internet Protocol version 6 (IPv6) packet comprising a service packet and a packet header, wherein the packet header comprises a first mirroring index corresponding to feature information in the service packet;
determine packet observing port information based on the first mirroring index and a first-mapping relationship, wherein the packet observing port information indicates the packet observing port; and
mirror the IPV6 packet to the packet observing port.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the packet header comprises an IPV6 basic header and an IPV6 extension header, and wherein the IPV6 extension header comprises the first mirroring index.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the IPV6 extension header comprises a segment routing header (SRH).

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the IPV6 extension header comprises a bit index explicit replication (BIER) header.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the BIER header is a BIER IPv6 (BIERv6) header or a BIER in IPv6 (BIERin6) header.

### Claim 22 (depends on 17)

The apparatus of claim 17, wherein the one or more processors are further configured to execute the instructions, to cause the apparatus to receive the mapping relationship from a network management device.

### Claim 23 (depends on 17)

The apparatus of claim 17, wherein the feature information comprises at least one of an n-tuple, a source media access control (MAC) address, or priority information, wherein n is a positive integer.

### Claim 24 (depends on 17)

The apparatus of claim 17, wherein the apparatus is a transit device or an egress device on a forwarding path of the IPV6 packet.

### Claim 25

An apparatus comprising:
a memory configured to store instructions; and
one or more processors coupled to the memory and configured to execute the instructions to cause the apparatus to:
receive a service packet;
determine a mirroring index based on a mapping relationship and feature information in the service packet, wherein the mapping relationship indicates that the mirroring index corresponds to the feature information in the service packet;
obtain an Internet Protocol version 6 (IPv6) packet based on the service packet and the mirroring index, wherein the IPV6 packet comprises the service packet and a packet header, and wherein the packet header comprises the mirroring index; and
forward the IPV6 packet.

### Claim 26 (depends on 25)

The apparatus of claim 25, wherein the packet header comprises an IPV6 basic header and an IPV6 extension header, and wherein the IPV6 extension header comprises the mirroring index.

### Claim 27 (depends on 26)

The apparatus of claim 26, wherein the IPV6 extension header comprises a segment routing header (SRH).

### Claim 28 (depends on 26)

The apparatus according to claim 26, wherein the IPV6 extension header comprises a bit index explicit replication (BIER) header.

### Claim 29 (depends on 28)

The apparatus of claim 28, wherein the BIER header is a BIER IPv6 (BIERv6) header or a BIER in IPv6 (BIERin6) header.

### Claim 30 (depends on 25)

The apparatus of claim 25, wherein one or more processors are further configured to execute the instructions
