# US 12,010,000 B2 · Message sampling method, decapsulation method, node, system and storage medium

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

- Number: US 12,010,000 B2
- Document ID: US12010000B2
- Status: Granted
- Kind: B2
- Application number: 17/414,429
- Filed: 2019-12-17
- Published: 2022-03-24
- Granted: 2024-06-11
- Earliest claimed: 2018-12-17
- Assignees: Zte Corporation
- Applicants: Zte Corporation
- Inventors: Tongle Wang
- Web page: https://patentgrep.com/patent/US12010000B2

## CPC

- H04L 43/022: by sampling
- H04L 43/028: by filtering
- H04L 43/10: Active monitoring, e.g. heartbeat, ping or trace-route
- H04L 41/0266: using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
- H04L 41/0806: for initial configuration or provisioning, e.g. plug-and-play
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Disclosed by the embodiments of the present application are a message sampling method in an in-situ operation administration and maintenance (IOAM) mechanism, a data decapsulation method based on the message sampling method in the IOAM mechanism, an encapsulation node, a decapsulation node, a message sampling system and a storage medium. The message sampling method includes: receiving transmission data; and executing, according to a configured sampling mode, an IOAM function on a target message matching the sampling mode in the transmission data.

## Claims

### Claim 1

A message sampling method in an In-situ Operation Administration and Maintenance (IOAM) mechanism, comprising:
receiving transmission data; and
executing, according to a configured sampling mode, an IOAM function on a target message matching the sampling mode in the transmission data,
wherein the sampling mode indicates executing the IOAM function on a message of a designated sampling object and adding sampling rate information, and executing, according to the configured sampling mode, the IOAM function on the target message matching the sampling mode in the transmission data comprises: marking the sampled target message according to a configured sampling rate, and adding an IOAM header to the marked target message while setting a sampling rate flag bit and adding a metadata value of sampling rate.

### Claim 2 (depends on 1)

The method according to claim 1, wherein before executing, according to the configured sampling mode, the IOAM function on the target message matching the sampling mode in the transmission data, the method further comprises:
acquiring a configuration parameter, and determining the corresponding sampling mode according to the configuration parameter; wherein the configuration parameter comprises a sampling object.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the configuration parameter further comprises a sampling manner corresponding to the sampling object, the sampling object comprises at least one sampling object, and determining the corresponding sampling mode according to the configuration parameter comprises:
determining a sampling mode corresponding to each sampling object according to the configuration parameter.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the sampling object comprises at least one of: a physical port, a Virtual Local Area Network (VLAN) interface, a VLAN sub-interface, or a flow.

### Claim 5 (depends on 1)

The method according to claim 1, wherein executing the IOAM function on the message of the designated sampling object and adding the sampling rate information comprises at least one of:
executing the IOAM function on the message of the designated sampling object and adding the sampling rate information by an IOAM type method; and
executing the IOAM function on the message of the designated sampling object and adding the sampling rate information by an IOAM flag method.

### Claim 6 (depends on 1)

The method according to claim 1, wherein adding the IOAM header to the marked target message while setting the sampling rate flag bit and adding the metadata value of sampling rate comprises:
adding the IOAM header to the marked target message, and setting the sampling rate flag bit in a reserved or extended data bit set in a type field of the IOAM header; and
adding the metadata value of sampling rate to a node data list, in response to the sampling rate flag bit being a set value; and not adding the metadata value of sampling rate, in response to the sampling rate flag bit being not a set value.

### Claim 7 (depends on 1)

The method according to claim 1, wherein adding the IOAM header to the marked target message while setting the sampling rate flag bit and adding the metadata value of sampling rate comprises:
adding the IOAM header to the marked target message, and setting the sampling rate flag bit in a reserved data bit set in a flag field of the IOAM header; and
adding the metadata value of sampling rate into the flag field of the IOAM header, in response to the sampling rate flag bit being a set value; and not adding the metadata value of sampling rate, in response to the sampling rate flag bit being not a set value.

### Claim 8 (depends on 1)

A data decapsulation method based on the message sampling method in an In-situ Operation Administration and Maintenance (IOAM) mechanism according to claim 1, comprising:
acquiring an IOAM header and information of a metadata value of sampling rate in a target message; and
encapsulating the IOAM header, the metadata value of sampling rate and an original message corresponding to the target message according to a set protocol, and sending the encapsulated message to a server.

### Claim 9 (depends on 8)

A decapsulation node, comprising a second processor, and a second memory storing a computer program executable on the second processor; wherein
the second processor is configured to execute the computer program to perform the decapsulation method according to claim 8.

### Claim 10 (depends on 8)

A non-transitory computer-readable storage medium storing an executable instruction thereon, wherein the executable instruction, when executed by a processor, causes the data decapsulation method according to claim 8 to be implemented.

### Claim 11 (depends on 1)

A non-transitory computer-readable storage medium storing an executable instruction thereon, wherein the executable instruction, when executed by a processor, causes the message sampling method according to claim 1 to be implemented.

### Claim 12 (depends on 1)

An encapsulation node, comprising a first processor, and a first memory storing a computer program executable on the first processor; wherein
the first processor is configured to execute the computer program to perform the message sampling method according to claim 1.

### Claim 13 (depends on 12)

A message sampling system, comprising an encapsulation node of claim 12 and a decapsulation node, wherein:
the encapsulation node is configured to encapsulate and send a target message; and
the decapsulation node is configured to, after receiving the target message, restore the target message to an original message before an In-situ Operation Administration and Maintenance (IOAM) function is performed, and forward the original message to a destination node.

### Claim 14 (depends on 13)

The system according to claim 13, further comprising a server; wherein
the decapsulation node is further configured to: acquire an IOAM header and information of a metadata value of sampling rate in the target message; and encapsulate the IOAM header, the metadata value of sampling rate and the original message corresponding to the target message according to a set protocol, and send the encapsulated message to the server.

### Claim 15 (depends on 13)

The system according to claim 13, further comprising a transmission node provided between the encapsulation node and the decapsulation node, wherein the transmission node is configured to forward the message sent from the encapsulation node to the decapsulation node.

### Claim 16 (depends on 14)

The system according to claim 14, wherein
the server is configured to: acquire the metadata value of sampling rate from the message, in response to determining that the message is a message carrying IOAM information; and determine an evaluation parameter of a flow according to the acquired metadata value of sampling rate and a number of messages carrying the IOAM information, the evaluation parameter comprising at least one of a message statistical count and a message rate.
