Information processing method, network device, storage medium, and program product
An information processing method, a network device, a storage medium, and a program product are disclosed. The information processing method may include: receiving a Bit Index Explicit Replication (BIER) flow flowing through a current node; and collecting statistics on the BIER flow to obtain node statistics information of the BIER flow.
1 . An information processing method, comprising:
receiving a Bit Index Explicit Replication (BIER) flow flowing through a current node; and
collecting statistics on the BIER flow to obtain node statistics information of the BIER flow.
2 . The information processing method of claim 1 , wherein after receiving a BIER flow flowing through a current node, the method further comprises:
determining a target BIER flow to be counted from the received BIER flow according to packet information of the BIER flow and a preset statistical rule, to collect statistics on the target BIER flow.
3 . The information processing method of claim 2 , wherein the preset statistical rule is obtained by any one of the following manners that:
the preset statistical rule is obtained according to configuration information of the current node;
the preset statistical rule is obtained by extending a YANG model to the current node; and
the preset statistical rule is obtained by extending a Border Gateway Protocol-Link State (BGP-LS) to the current node.
4 . The information processing method of claim 3 , wherein the node statistics information comprises at least one of:
a number of received packets of the BIER flow, a number of received bytes of the BIER flow, an egress interface for sending the BIER flow, a number of sent packets of the BIER flow, a number of sent bytes of the BIER flow, a number of dropped packets of the BIER flow, a number of dropped bytes of the BIER flow, a timestamp at which the BIER flow arrives at the current node, and a timestamp at which the BIER flow leaves the current node.
5 . The information processing method of claim 3 , further comprising one of:
determining a current network state according to the node statistics information; and
generating encoding information corresponding to the node statistics information, and sending the node statistics information and the encoding information to a collector, such that the collector determines a current network state according to the node statistics information and the encoding information.
6 . The information processing method of claim 2 , wherein the preset statistical rule is based on any one of: encapsulation type information, Bit String Length (BSL) information, Sub-Domain (SD) information, Traffic Class (TC) information, Differentiated Services Code Point (DSCP) information, BIT-Forwarding Ingress Router (BFIR) device identity information, BIT-Forwarding Egress Router (BFER) device identity information, a preset traffic element, a source address, a destination address, a source port number, and a destination port number.
7 . The information processing method of claim 6 , wherein the node statistics information comprises at least one of:
a number of received packets of the BIER flow, a number of received bytes of the BIER flow, an egress interface for sending the BIER flow, a number of sent packets of the BIER flow, a number of sent bytes of the BIER flow, a number of dropped packets of the BIER flow, a number of dropped bytes of the BIER flow, a timestamp at which the BIER flow arrives at the current node, and a timestamp at which the BIER flow leaves the current node.
8 . The information processing method of claim 2 , wherein the node statistics information comprises at least one of:
a number of received packets of the BIER flow, a number of received bytes of the BIER flow, an egress interface for sending the BIER flow, a number of sent packets of the BIER flow, a number of sent bytes of the BIER flow, a number of dropped packets of the BIER flow, a number of dropped bytes of the BIER flow, a timestamp at which the BIER flow arrives at the current node, and a timestamp at which the BIER flow leaves the current node.
9 . The information processing method of claim 2 , further comprising one of:
determining a current network state according to the node statistics information; and
generating encoding information corresponding to the node statistics information, and sending the node statistics information and the encoding information to a collector, such that the collector determines a current network state according to the node statistics information and the encoding information.
10 . The information processing method of any one of claims claim 1 , wherein the node statistics information comprises at least one of:
a number of received packets of the BIER flow, a number of received bytes of the BIER flow, an egress interface for sending the BIER flow, a number of sent packets of the BIER flow, a number of sent bytes of the BIER flow, a number of dropped packets of the BIER flow, a number of dropped bytes of the BIER flow, a timestamp at which the BIER flow arrives at the current node, and a timestamp at which the BIER flow leaves the current node.
11 . The information processing method of any one of claims claim 1 , further comprising one of:
determining a current network state according to the node statistics information; and
generating encoding information corresponding to the node statistics information, and sending the node statistics information and the encoding information to a collector, such that the collector determines a current network state according to the node statistics information and the encoding information.
12 . A network device, comprising: a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the computer program, when executed by the processor, causes the processor to perform the information processing method of claims 1 .
13 . A non-transitory computer-readable storage medium, storing computer-executable instructions which, when executed by a processor, cause the processor to perform the information processing method of claims 1 .
14 . A computer program product, comprising a computer program or computer instructions stored in a non-transitory computer-readable storage medium, the computer program or computer instructions, when read from the non-transitory computer-readable storage medium and executed by a processor of a computer device, causes the computer device to perform the information processing method of claim 1 .
15 . An information processing method, comprising:
acquiring node statistics information of a Bit Index Explicit Replication (BIER) flow and encoding information corresponding to the node statistics information; and
determining a current network state according to the node statistics information and the encoding information.
16 . The information processing method of claim 15 , wherein the encoding information comprises a template and a data parameter in the template; and determining a current network state according to the node statistics information and the encoding information comprises:
parsing the node statistics information according to a structure of the template and the data parameter to obtain parsing information; and
determining the current network state according to the parsing information.
17 . The information processing method of claim 15 , wherein in response to the node statistics information comprising a timestamp at which the BIER flow arrives at a node and a timestamp at which the BIER flow leaves the node, determining a current network state according to the node statistics information and the encoding information comprises:
parsing the node statistics information according to the encoding information to obtain the timestamp at which the BIER flow arrives at the node and the timestamp at which the BIER flow leaves the node; and
determining a transmission time of the BIER flow in a BIER domain according to the timestamp at which the BIER flow arrives at the node and the timestamp at which the BIER flow leaves the node.
18 . The information processing method of claim 15 , wherein in response to the node statistics information comprising a number of dropped packets of the BIER flow, determining a current network state according to the node statistics information and the encoding information comprises:
parsing the node statistics information according to the encoding information to obtain the number of dropped packets of the BIER flow; and
determining a current network load status according to the number of dropped packets of the BIER flow.
19 . The information processing method of claim 15 , wherein in response to the node statistics information comprising an ingress interface for receiving the BIER flow and an egress interface for sending the BIER flow, determining a current network state according to the node statistics information and the encoding information comprises:
parsing the node statistics information according to the encoding information to obtain the ingress interface for receiving the BIER flow and the egress interface for sending the BIER flow; and
determining a current network configuration status according to the ingress interface for receiving the BIER flow and the egress interface for sending the BIER flow.
20 . The information processing method of claim 15 , wherein in response to the node statistics information comprising a number of packets of the BIER flow and packet information comprising a source address and a destination address, determining a current network state according to the node statistics information and the encoding information comprises:
parsing the node statistics information according to the encoding information to obtain the number of packets of the BIER flow, the source address, and the destination address; and
determining a current network attack status according to the number of packets of the BIER flow, the source address, and the destination address.