# US 2023/0069626 A1 · Traffic monitoring method, related 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 2023/0069626 A1
- Document ID: US20230069626A1
- Status: Published application
- Kind: A1
- Application number: 17/976,022
- Filed: 2022-10-28
- Published: 2023-03-02
- Earliest claimed: 2020-04-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jie HOU; Lei LI; Jun GONG; Gang YAN
- Web page: https://patentgrep.com/patent/US20230069626A1

## CPC

- H04L 43/02: Capturing of monitoring data
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- H04L 41/142: using statistical or mathematical methods
- H04L 43/04: Processing captured monitoring data, e.g. for logfile generation
- H04L 45/745: Address table lookup; Address filtering
- H04L 41/12: Discovery or management of network topologies
- H04L 41/40: using virtualisation of network functions or resources, e.g. SDN or NFV entities
- H04L 43/0882: Utilisation of link capacity
- H04L 43/20: the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The application provides a method: for any network node in a network, the network node may collect a traffic count result of traffic from the network node to a destination network node that belongs to a same area as the network node. Because destination network nodes of the network node are used to indicate an egress node on a path for forwarding a packet by the network node in the area, a control node may learn of, based on count results corresponding to the destination network nodes, traffic transmitted from the network node to egress nodes. This facilitates the control node to determine a traffic distribution feature in the network. The application provides a method that network nodes collect local aggregated traffic statuses, and then the control node determines the traffic distribution feature in the network based on the local aggregated traffic statuses collected by the network nodes.

## Claims

### Claim 1

A traffic monitoring method, applied to a control node in a network including a plurality of network nodes, the method comprising:
obtaining traffic statistics data collected by each of the plurality of network nodes, wherein
traffic statistics data collected by a first network node in the plurality of network nodes comprises a traffic count result of traffic from the first network node to a destination network node that belongs to a same area as the first network node, wherein the destination network node comprises an egress node on a path for forwarding a packet by the first network node in the area, and wherein the traffic count result comprises a total count of packets forwarded by the first network node to the destination network node; and
determining a traffic distribution feature in the network based on the traffic statistics data collected by each network node.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the traffic distribution feature comprises a total count of traffic forwarded to a first link by using the first network node as a source node, the first link is from a second network node to a third network node, and the second network node and the third network node are in the plurality of network nodes; and wherein
the determining the traffic distribution feature in the network based on the traffic statistics data collected by each network node comprises:
determining, based on the traffic statistics data collected by the first network node, the total count of the traffic transmitted to the first link through the first network node, to obtain a first count result;
determining, based on traffic statistics data collected by an upstream node of the first network node, a total count of traffic transmitted to the first link through the upstream node of the first network node, to obtain a second count result, wherein the upstream node is in the plurality of network nodes and on a path comprising the first network node that forwards a packet to the first link; and
calculating a difference between the first count result and the second count result, and using the difference as the total count of the traffic forwarded to the first link by using the first network node as the source node.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the determining the total count of the traffic transmitted to the first link through the first network node comprises:
determining that paths from the first network node to the destination network node comprise a path of the first link, and using the destination network node corresponding to the determined path as a statistics node;
obtaining, from the traffic statistics data collected by the first network node, a traffic count result corresponding to the statistics node; and
determining, based on the traffic count result corresponding to the statistics node, the total count of the traffic transmitted to the first link through the first network node.

### Claim 4 (depends on 2)

The method according to claim 2, wherein before the determining the total count of traffic transmitted to the first link through the upstream node of the first network node, the method further comprises:
determining paths for forwarding a packet to the first link by the plurality of network nodes; and
obtaining, from the determined paths, a path that comprises the first network node, and using a network node corresponding to the obtained path as the upstream node of the first network node.

### Claim 5 (depends on 1)

The method according to claim 1, wherein when paths for forwarding the packet to the same destination address by the first network node comprise a plurality of egress nodes, a total count of packets forwarded by the first network node to the plurality of egress nodes is used as a traffic count result corresponding to one virtual destination network node.

### Claim 6 (depends on 1)

The method according to claim 1, wherein when there are a plurality of next-hop nodes on paths from the first network node to a same destination network node, a count result corresponding to the same destination network node comprises a plurality of count results respectively corresponding to the plurality of next-hop nodes, and each of the plurality of count results comprises a total count of packets that forward traffic to the same destination network node through a corresponding next-hop node.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the total count is a total quantity of the packets or a total quantity of bytes of the packets.

### Claim 8

A traffic monitoring method applied to a first network node in a network, the method comprising:
obtaining traffic statistics data comprising a traffic count result of traffic from the first network node to a destination network node that belongs to a same area as the first network node, wherein the destination network node comprises an egress node on a path for forwarding a packet by the first network node in the area, and wherein the traffic count result comprises a total count of packets forwarded by the first network node to the destination network node; and
sending the traffic statistics data to a control node in the network.

### Claim 9 (depends on 8)

The method according to claim 8, further comprising:
obtaining a first destination address of a to-be-forwarded first packet;
determining a first destination network node based on the first destination address, wherein the first destination network node comprises an egress node on a path for forwarding the first packet by the first network node in the area; and
updating a traffic count result corresponding to the first destination network node.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the determining the first destination network node based on the first destination address comprises:
obtaining, from a correspondence between a destination address and a destination network node, a destination network node corresponding to the first destination address, to obtain the first destination network node.

### Claim 11 (depends on 9)

The method according to claim 9, wherein
when there is one egress node on a path for forwarding the first packet to the first destination address by the first network node, the first destination network node is an egress node on the path for forwarding the first packet to the first destination address by the first network node.

### Claim 12 (depends on 9)

The method according to claim 9, wherein
when there are a plurality of egress nodes on a path for forwarding the first packet to the first destination address by the first network node, the first destination network node is a virtual destination network node corresponding to the plurality of egress nodes.

### Claim 13 (depends on 9)

The method according to claim 9, wherein the traffic count result corresponding to the first destination network node comprises traffic count results respectively corresponding to next-hop nodes, and a traffic count result corresponding to any next-hop node comprises a total count of packets forwarded to the first destination network node through the corresponding next-hop node; and wherein
the updating the traffic count result corresponding to the first destination network node comprises:
obtaining, from a routing and forwarding table, one or more next-hop nodes corresponding to the first destination address, wherein the routing and forwarding table comprises next-hop nodes respectively corresponding to a plurality of destination addresses;
selecting, from the one or more next-hop nodes, a next-hop node that forwards the first packet, to obtain a target next-hop node; and
updating a traffic count result corresponding to the target next-hop node in the traffic count result corresponding to the first destination network node.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the first destination network node corresponds to a counter array, and the counter array comprises counters respectively corresponding to the next-hop nodes on a path for forwarding a packet to the first destination network node by the first network node, and the counter comprises a traffic count result corresponding to a corresponding next-hop node; and wherein
the updating the traffic count result corresponding to the target next-hop node comprises:
searching for a counter corresponding to the target next-hop node; and
updating a traffic count result in the found counter.

### Claim 15 (depends on 14)

The method according to claim 14, wherein a start address of the counter array corresponding to the first destination network node is further configured for the first destination address in the routing and forwarding table; and wherein
the searching for the counter corresponding to the target next-hop node comprises:
determining, based on the target next-hop node and the start address of the counter array corresponding to the first destination network node configured for the first destination address in the routing and forwarding table, an address of the counter corresponding to the target next-hop node; and
searching, based on the address of the counter corresponding to the target next-hop node, for the counter corresponding to the target next-hop node.

### Claim 16

A control node in a network comprising a plurality of network nodes, the control node comprising:
a processor, and
a memory coupled to the processor to store instructions, which when executed by the processor, cause the processor to:
obtain traffic statistics data collected by each of the plurality of network nodes, wherein
traffic statistics data collected by a first network node in the plurality of network nodes comprises a traffic count result of traffic from the first network node to a destination network node that belongs to a same area as the first network node, wherein the destination network node comprises an egress node on a path for forwarding a packet by the first network node in the area, and wherein the traffic count result comprises a total count of packets forwarded by the first network node to the destination network node; and
determine a traffic distribution feature in the network based on the traffic statistics data collected by each network node.

### Claim 17 (depends on 16)

The control node according to claim 16, wherein the traffic distribution feature comprises a total count of traffic forwarded to a first link by using the first network node as a source node, the first link is from a second network node to a third network node, and the second network node and the third network node are in the plurality of network nodes; and wherein
the processor is configured to:
determine, based on the traffic statistics data collected by the first network node, the total count of the traffic transmitted to the first link through the first network node, to obtain a first count result;
determine, based on traffic statistics data collected by an upstream node of the first network node, a total count of traffic transmitted to the first link through the upstream node of the first network node, to obtain a second count result, wherein the upstream node is in the plurality of network nodes and on a path comprising the first network node that forwards a packet to the first link; and
calculate a difference between the first count result and the second count result, and use the difference as the total count of the traffic forwarded to the first link by using the first network node as the source node.

### Claim 18 (depends on 17)

The control node according to claim 17, wherein the processor is configured to:
determine that paths from the first network node to the destination network node comprise a path of the first link, and use the destination network node corresponding to the determined path as a statistics node;
obtain, from the traffic statistics data collected by the first network node, a traffic count result corresponding to the statistics node; and
determine, based on the traffic count result corresponding to the statistics node, the total count of the traffic transmitted to the first link through the first network node.

### Claim 19 (depends on 17)

The control node according to claim 17, wherein the processor is further configured to:
determine paths for forwarding a packet to the first link by the plurality of network nodes; and
obtain, from the determined paths, a path that comprises the first network node, and use a network node corresponding to the obtained path as the upstream node of the first network node.

### Claim 20 (depends on 18)

The control node according to claim 18, wherein when paths for forwarding the packet to the same destination address by the first network node comprise a plurality of egress nodes, a total count of packets forwarded by the first network node to the plurality of egress nodes is used as a traffic count result corresponding to one virtual destination network node.
