CN117834425A - Network telemetry node configuration method, device, switch and storage medium - Google Patents

Network telemetry node configuration method, device, switch and storage medium Download PDF

Info

Publication number
CN117834425A
CN117834425A CN202311541680.3A CN202311541680A CN117834425A CN 117834425 A CN117834425 A CN 117834425A CN 202311541680 A CN202311541680 A CN 202311541680A CN 117834425 A CN117834425 A CN 117834425A
Authority
CN
China
Prior art keywords
node
telemetry
adjacent node
protocol
adjacent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311541680.3A
Other languages
Chinese (zh)
Inventor
卢彦呈
纪柏雄
陈翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311541680.3A priority Critical patent/CN117834425A/en
Publication of CN117834425A publication Critical patent/CN117834425A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a network telemetry node configuration method, a device, a switch and a storage medium, wherein a first detection message is sent to all adjacent nodes of a telemetry node through a port by responding to a telemetry node port state opening event; monitoring response information of the adjacent node to the first detection message, and configuring roles of telemetry nodes according to the response information of the adjacent node to the first detection message; the second detection message sent by the adjacent node of the telemetry node is received, the telemetry information content carried in the second detection message of each adjacent node is analyzed, the telemetry information content of the telemetry node is configured according to the analysis result, the telemetry function configuration can be generated by the node in a self-adaptive mode through exchanging the detection messages among the nodes, the burden of a controller can be greatly reduced, particularly when the network topology structure is changed, the telemetry function configuration on the switch node can be changed in a self-adaptive mode without intervention of the controller, configuration delay is reduced, and network stability is improved.

Description

Network telemetry node configuration method, device, switch and storage medium
Technical Field
The present invention relates to the field of switch technologies, and in particular, to a method and an apparatus for configuring a network telemetry node, a switch, and a storage medium.
Background
In the application of telemetry networks, the authorization code mode involves complex operations, in which the switches are classified into two types, endpoint switch (endpoint) and trunk switch (Transit), which are responsible for processing the original messages coming into the scope of the telemetry network, on which the INT (Inband network telemetry, in-band network telemetry) header needs to be tapped and then passed to the trunk switch. For those messages leaving the telemetry network, the endpoint switch needs to strip the telemetry data and report them to the controller. In conventional network telemetry, a node configuration is performed for each switch by a controller, for example, a telemetry node is configured as an endpoint node or a relay node, and telemetry information required to be carried in a telemetry message is configured. The controller needs to have an in-depth knowledge of the network's operational and performance requirements in order to make reasonable configuration decisions when configuring the telemetry nodes. Meanwhile, because the network topology and the requirements may change, the telemetry node configuration needs to be continuously monitored and adjusted, which results in heavy burden on the controller, and the controller needs to monitor the network structure change first, then adjust the telemetry configuration according to the network structure change, and the adjustment has hysteresis, which is unfavorable for the network stability.
Disclosure of Invention
The invention provides a network telemetry node configuration method, a device, a switch and a storage medium, which are used for solving the defects that the existing network telemetry node configuration method can cause heavy burden of a controller, and configuration adjustment has hysteresis and is unfavorable for network stability.
The invention provides a network telemetry node configuration method, which comprises the following steps:
responding to a telemetry node port state opening event, and sending a first detection message to an adjacent node of the telemetry node through the telemetry node port;
monitoring response information of the adjacent node to the first detection message, and configuring the role of the telemetry node according to the response information of the adjacent node to the first detection message;
and receiving second detection messages sent by adjacent nodes of the telemetry node, analyzing telemetry information content carried in the second detection messages of each adjacent node, and configuring the telemetry information content of the telemetry node according to analysis results.
According to the method for configuring the network telemetry node provided by the invention, the role of the telemetry node is configured according to the response information of the adjacent node to the first detection message, and the method comprises the following steps:
If all ports of the telemetry node receive the response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as a relay node;
and if part of ports of the telemetry node receive the response information of the first detection message fed back by the adjacent node, or the telemetry node does not receive the response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as an endpoint node.
According to the network telemetry node configuration method provided by the invention, after the role of the telemetry node is configured as the endpoint node, the method further comprises the following steps:
and configuring ports, which respond to detection messages sent by other nodes, in the end point nodes as termination ports, and adding the termination ports into a termination port list.
According to the network telemetry node configuration method provided by the invention, the first detection message or the second detection message comprises the following steps:
an ethernet type value, source code, object code, and payload;
the Ethernet type value is different from the Ethernet type value of the protocol used for communication between the nodes;
the source code is used for identifying a node for sending the detection message;
The target code is used for identifying a node for receiving the detection message;
the payload includes a type, a length, and a parameter value, the type including whether a data plane telemetry function, a standard interface protocol, and a proprietary interface protocol are supported;
the standard interface protocol comprises a standard protocol type code, a standard protocol type description and a standard protocol field, wherein the standard protocol type code is used for identifying a protocol interface; the standard protocol type description is used for describing a specific protocol name corresponding to each standard protocol type code; the standard protocol field comprises at least one of a switch identification code, an in-out switch port, an in-out port time stamp, an out-out port time stamp, queue information, a forwarding delay, an out-direction port utilization rate and a queue cache utilization rate;
the private interface protocol comprises a private protocol type code, a private protocol type description and a private protocol field, wherein the private protocol type code is used for a private identification protocol interface; the private protocol type description is used for describing a specific protocol name corresponding to each private protocol type code; the private protocol field comprises a step of supporting to acquire the packet loss statistics of the current queue and/or supporting to acquire the packet sending rate of the current output port;
The private protocol field is defined according to the requirements of node equipment manufacturers, parameter names in a character string description protocol are used, and comma intervals are used among a plurality of parameters;
and uploading the telemetry information content in the payload to a central processing unit through an access control list so that the central processing unit analyzes and acquires the telemetry information content carried by each node.
According to the method for configuring the network telemetry node provided by the invention, the telemetry information content of the telemetry node is configured according to the analysis result, and the method comprises the following steps:
analyzing the telemetry information content sent by each adjacent node, and acquiring a protocol field in a standard interface protocol and a protocol field in a private interface protocol in each adjacent node;
the method comprises the steps of taking a protocol field in a standard interface protocol shared by each adjacent node as standard interface protocol content in telemetry information content of the telemetry node, and taking a protocol field in a private interface protocol shared by each adjacent node as private interface protocol content in telemetry information content of the telemetry node.
According to the method for configuring the network telemetry node provided by the invention, if the adjacent nodes of the telemetry node are a first adjacent node, a second adjacent node and a third adjacent node, the telemetry information content of the telemetry node is configured according to the analysis result, and the method comprises the following steps:
Analyzing the telemetry information content sent by the first adjacent node, acquiring a standard interface protocol field in the first adjacent node as a switch identification code, an ingress port time stamp, an egress port time stamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as support for acquiring current queue packet loss statistics and support for acquiring current egress port packet sending rate;
analyzing the telemetry information content sent by the second adjacent node, acquiring a standard interface protocol field in the second adjacent node as a switch identification code, an access port time stamp, queue information and forwarding delay, and acquiring a private interface protocol field in the first adjacent node as support for acquiring current queue packet loss statistics;
analyzing the telemetry information content sent by the third adjacent node, acquiring a standard interface protocol field in the third adjacent node as a switch identification code, an outbound time stamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as a support for acquiring the current outbound packet sending rate;
intersection is taken from the standard interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain the standard interface protocol field of the telemetry node, wherein the standard interface protocol field of the telemetry node comprises an exchanger identification code and a forwarding delay;
And acquiring intersections of private interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain an intersection result as null, and configuring the private interface protocol fields of the telemetry node as null.
The network telemetry node configuration method provided by the invention further comprises the following steps: and adding the network telemetry node configuration result to a telemetry configuration database, wherein the telemetry configuration database comprises switch role data, a termination port list and fields required to be carried by telemetry information.
The invention also provides a network telemetry node configuration device, which comprises:
the sending module is used for responding to a telemetry node port state opening event and sending a first detection message to all adjacent nodes of the telemetry node through the telemetry node port;
the first configuration module is used for monitoring response information of the adjacent node to the first detection message and configuring the role of the telemetry node according to the response information of the adjacent node to the first detection message;
the second configuration module is used for receiving the second detection message sent by the adjacent node of the telemetry node, analyzing the telemetry information content carried in the second detection message of each adjacent node, and configuring the telemetry information content of the telemetry node according to the analysis result.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the network telemetry node configuration method according to any one of the above when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which when executed by a processor implements the network telemetry node configuration method of any of the above.
According to the network telemetry node configuration method, device, switch and storage medium, a first detection message is sent to all adjacent nodes of a telemetry node through a port by responding to a telemetry node port state opening event; monitoring response information of the adjacent node to the first detection message, and configuring roles of telemetry nodes according to the response information of the adjacent node to the first detection message; the second detection message sent by the adjacent node of the telemetry node is received, the telemetry information content carried in the second detection message of each adjacent node is analyzed, the telemetry information content of the telemetry node is configured according to the analysis result, the telemetry function configuration can be generated by the node in a self-adaptive mode through exchanging the detection messages among the nodes, the burden of a controller can be greatly reduced, particularly when the network topology structure is changed, the telemetry function configuration on the switch node can be changed in a self-adaptive mode without intervention of the controller, configuration delay is reduced, and network stability is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for configuring a network telemetry node according to the present invention;
FIG. 2 is a schematic diagram of a telemetry network provided by the present invention;
FIG. 3 is a schematic diagram of a telemetry network level switch role provided by the present invention;
FIG. 4 is a second flow chart of a method for configuring a network telemetry node according to the present invention;
fig. 5 is a schematic functional structural diagram of a network telemetry node configuration device provided by the invention;
fig. 6 is a schematic functional structure of a switch according to the present invention;
fig. 7 is a schematic diagram of a switch network architecture provided by the present invention;
fig. 8 is a timing diagram of interaction of a switch network architecture provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a network telemetry node configuration method provided by an embodiment of the present invention, where, as shown in fig. 1, the network telemetry node configuration method provided by the embodiment of the present invention includes:
step 101, responding to the state opening of a telemetry node port, and sending a first detection message to an adjacent node of a telemetry node through the telemetry node port;
in the embodiment of the invention, the network where the telemetry node is located is an INT (Inband network telemetry) network, which is a novel network monitoring technology, and the overall monitoring and analysis of the data flow are realized by adding special metadata into the network data packet. Such metadata may provide rich network performance information such as network congestion, delay, packet loss, etc., and may also be used to identify network attacks and abnormal behavior.
Step 102, monitoring response information of the adjacent node to the first detection message, and configuring roles of the telemetry nodes according to the response information of the adjacent node to the first detection message;
in an embodiment of the invention, telemetry nodes such as switches, the roles of which include endpoint switches and trunk switches. This role configuration can affect the specific manner in which the switch operates and its location in the network topology. The roles of switches may be tailored to the specific needs and configuration of the network, with different types of switches functioning differently in the network.
Step 103, receiving second detection messages sent by adjacent nodes of the telemetry node, analyzing telemetry information content carried in the second detection messages of each adjacent node, and configuring telemetry information content of the telemetry node according to analysis results.
In the embodiment of the invention, the telemetry information needed to be carried in the telemetry message also varies according to the performance of the switch chip in the environment, for example, after a switch which does not support the port timestamp is added in the network, the timestamp function on the telemetry path cannot be used, and the statistics time is inaccurate because the information of the hop is lacked.
In conventional network telemetry, a node configuration is performed for each switch by a controller, for example, a telemetry node is configured as an endpoint node or a relay node, and telemetry information required to be carried in a telemetry message is configured. As shown in fig. 2, the controller is centrally located in the network center and can control the collection, storage and transmission of data packets and generate INT reports to provide network performance information. The controller may interact with the data plane, send configuration information and control instructions through the API of the data plane, and collect INT reports and network traffic information. The controller can also manage the data collection and storage of the INT, providing data for analysis and monitoring. The controller needs to have an in-depth knowledge of the network's operational and performance requirements in order to make reasonable configuration decisions when configuring the telemetry nodes. Meanwhile, because the network topology and the requirements may change, the telemetry node configuration needs to be continuously monitored and adjusted, which results in heavy burden on the controller, and the controller needs to monitor the network structure change first, then adjust the telemetry configuration according to the network structure change, and the adjustment has hysteresis, which is unfavorable for the network stability.
According to the network telemetry node configuration method provided by the embodiment of the invention, a first detection message is sent to all adjacent nodes of a telemetry node by responding to the opening of a telemetry node port state; monitoring response information of the adjacent node to the first detection message, and configuring roles of telemetry nodes according to the response information of the adjacent node to the first detection message; the second detection message sent by the adjacent node of the telemetry node is received, the telemetry information content carried in the second detection message of each adjacent node is analyzed, the telemetry information content of the telemetry node is configured according to the analysis result, the telemetry function configuration can be generated by the node in a self-adaptive mode through exchanging the detection messages among the nodes, the burden of a controller can be greatly reduced, particularly when the network topology structure is changed, the telemetry function configuration on the switch node can be changed in a self-adaptive mode without intervention of the controller, configuration delay is reduced, and network stability is improved.
In the embodiment of the invention, the telemetry function configuration refers to configuring a standard interface DTEL (Data Plane Telemetry, data plane telemetry function) interface implemented by the telemetry function, and in order to ensure that upper-layer software can perform seamless communication with hardware, an open computing item (Open Compute Project, OCP) organization promotes a standard interface named DTEL. The introduction of the interface provides a universal calling mode for all switch chips, and can support standardized telemetry functions as long as the chips support the interface.
Based on any of the above embodiments, configuring the role of the telemetry node according to the response information of the neighboring node to the first detection message includes:
if all ports of the telemetry node receive response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as a relay node;
and if part of ports of the telemetry node receive the response information of the first detection message fed back by the adjacent node, or if the telemetry node does not receive the response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as an endpoint node. .
Since all ports on a trunk switch are connected to other telemetry enabled switches, some ports on an endpoint switch are connected to machines (e.g., servers) that do not support telemetry. Thus, the connections can be automatically identified using a proprietary protocol parsing method. When the switch port is enabled, a private protocol probe message is sent. If the neighboring switch has a response, then it can be determined that the other is a switch and also support the DTEL function. If there is no response, then it indicates that the counterpart may be a server or a switch that does not support telemetry. According to the response condition of the detection message, if all ports on one switch have responses, the local switch can be configured as a relay switch, otherwise, the local switch can be correspondingly configured as an endpoint switch.
In the embodiment of the invention, after configuring the telemetry node role as the endpoint node, the method further comprises the following steps:
ports of the endpoint nodes that respond to probe messages sent by other nodes are configured as termination ports (sink), which are typically telemetry-range oriented ports, and are added to a termination port list (sink_port_list).
As shown in fig. 3, the upper port of the first node on the left side of the leaf layer is the end port (sink), and the lower port is the start port (source) because it is server-oriented. When the network state between the ends needs to be measured, the system enters a report mode, the mode can be configured on a switch through which a packet passes, the switch ports comprise a start port (source) and a stop port (sink), when the data packet reaches the start port, the switch plays an INT message header and metadata for the data packet according to a stream which wants to be remotely measured, the relay switch inserts metadata after the packet according to the INT header, and so on until the last hop of the whole remote measuring system to the end point switch, and the end point switch can completely remove the remote measuring information and report the remote measuring information to the controller.
The endpoint switch is responsible for processing the original messages that come into range of the telemetry network, requiring the INT header to be tapped on these messages and then passed to the relay switch, this step being referred to as the "source action". For those messages leaving the telemetry network, the endpoint switch needs to strip the telemetry data and report them to the controller, a process called "sink action". On an endpoint switch, it is necessary to determine which port should perform a source action and which port should perform a sink action, so a termination port list is designed, and other ports of the endpoint switch that are not added to the termination port list can be identified as the start ports, so the data flow direction on each endpoint switch can be determined.
Based on any of the foregoing embodiments, the first probe packet or the second probe packet according to the embodiment of the present invention includes:
an ethernet type value, source code, object code, and payload; the Ethertype value is different from the Ethertype value of the protocol used for communication between nodes, e.g., ethertype=9156; the Source code is used for identifying a node sending the detection message, for example, source mac=switch port mac; the object code is used to identify a node that receives the detection message, e.g., destination mac=ff: FF; the Payload includes a Type, a length, and a parameter value, and the Type includes whether a data plane telemetry function, a standard interface protocol, and a proprietary interface protocol are supported.
The standard interface protocol and proprietary interface protocol are shown in table 1: the standard interface protocol comprises a standard protocol type code, a standard protocol type description and a standard protocol field, wherein the standard protocol type code is used for identifying a protocol interface; the standard protocol type description is used for describing a specific protocol name corresponding to each standard protocol type code; the standard protocol field comprises at least one of a switch identification code, an in-out switch port, an in-out port time stamp, an out-out port time stamp, queue information, a forwarding delay, an out-direction port utilization rate and a queue cache utilization rate; the private interface protocol comprises a private protocol type code, a private protocol type description and a private protocol field, wherein the private protocol type code is used for a private identification protocol interface; the private protocol type description is used for describing a specific protocol name corresponding to each private protocol type code; the private protocol field includes a support to obtain current queue packet loss statistics and/or a support to obtain current egress port packet sending rate.
Table 1 standard interface protocol and proprietary interface protocol content
The private protocol field is defined according to the requirements of node equipment manufacturers, a character string is used for describing parameter names in a protocol, and comma intervals are used among a plurality of parameters;
the telemetering information content in the payload is uploaded to the central processing unit through the access control list, so that the central processing unit analyzes and acquires the telemetering information content carried by each node.
In the embodiment of the invention, the exchanger automatically identifies the special message through an Access Control List (ACL) and transmits the special message to the CPU for further analysis, thereby realizing the processing and identification of the detection message. Because the content of the transmitted detection message contains the DTEL supporting status, the machine receiving the message can configure the telemetry information content according to the DTEL supporting status of the peripheral machine.
Based on any of the above embodiments, configuring telemetry information content of the telemetry node according to the parsing result includes:
analyzing the telemetry information content sent by each adjacent node, and acquiring a protocol field in a standard interface protocol and a protocol field in a private interface protocol in each adjacent node;
the method comprises the steps of taking a protocol field in a standard interface protocol shared by each adjacent node as standard interface protocol content in telemetry information content of the telemetry node, and taking a protocol field in a private interface protocol shared by each adjacent node as private interface protocol content in telemetry information content of the telemetry node.
For example, if the neighboring nodes of the telemetry node are a first neighboring node, a second neighboring node, and a third neighboring node, configuring telemetry information content of the telemetry node according to the analysis result includes:
analyzing telemetry information content sent by a first adjacent node, acquiring a standard interface protocol field in the first adjacent node as a switch identification code, an ingress port timestamp, an egress port timestamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as a support for acquiring current queue packet loss statistics and a support for acquiring current egress port packet sending rate;
analyzing the telemetry information content sent by a second adjacent node, acquiring a standard interface protocol field in the second adjacent node as a switch identification code, an ingress port timestamp, queue information and forwarding delay, and acquiring a private interface protocol field in the first adjacent node as support for acquiring current queue packet loss statistics;
analyzing the telemetry information content sent by a third adjacent node, acquiring a standard interface protocol field in the third adjacent node as a switch identification code, an outbound port time stamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as a support for acquiring the current outbound port packet sending rate;
Intersection is taken from the standard interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain the standard interface protocol field of the telemetry node, wherein the standard interface protocol field of the telemetry node comprises an exchanger identification code and a forwarding delay;
and acquiring intersections of private interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain an intersection result as null, and configuring the private interface protocol fields of the telemetry node as null.
As shown in fig. 4, the method for configuring a network telemetry node provided by the embodiment of the invention specifically includes: and receiving a port starting event, sending a detection message to a neighbor node by the port, waiting for the response of the detection message of the neighbor node, adding the port into a termination port list if the neighbor node receives the message, extracting a telemetry information carrying field from the detection message, judging whether the neighbor node receives the detection message, if not, configuring a role of a switch as an endpoint switch, configuring the termination port list, and if so, configuring the role of the switch as a relay switch, taking intersections of telemetry information carrying fields of all neighbor nodes, and configuring the carrying fields required by the telemetry node.
Based on any of the above embodiments, the network telemetry node configuration method further includes: and adding the network telemetry node configuration result to a telemetry configuration database, wherein the telemetry configuration database comprises switch role data, a termination port list and fields required to be carried by telemetry information.
The network telemetry node configuration method provided by the embodiment of the invention adaptively generates the configuration needed in the DTEL interface in a mode of carrying DTEL capacity information in the detection messages exchanged between the switches, wherein the configuration comprises a switch role and sink_port_list, and the information content carried by the telemetry messages can greatly reduce the burden of a controller, especially after the topology is changed, the DTEL configuration on the switch can be adaptively changed without intervention of the controller, the telemetry configuration of the switch can be realized without deep intervention of the controller on the INT telemetry scheme of the switch, and the user requirements are met.
The network telemetry node configuration device provided by the invention is described below, and the network telemetry node configuration device described below and the network telemetry node configuration method described above can be referred to correspondingly.
Fig. 5 is a functional structural schematic diagram of a network telemetry node configuration device provided by an embodiment of the present invention, where, as shown in fig. 5, the network telemetry node configuration device provided by the embodiment of the present invention includes:
A sending module 501, configured to send a first detection message to all neighboring nodes of the telemetry node through the telemetry node port in response to a telemetry node port status opening event;
a first configuration module 502, configured to monitor response information of the neighboring node to the first detection message, and configure a role of the telemetry node according to the response information of the neighboring node to the first detection message;
a second configuration module 503, configured to receive the second probe packets sent by the neighboring nodes of the telemetry node, analyze the telemetry information content carried in the second probe packet of each neighboring node, and configure the telemetry information content of the telemetry node according to the analysis result.
In an embodiment of the present invention, the first configuration module 502 is configured to:
if all ports of the telemetry node receive the response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as a relay node;
and if part of ports of the telemetry node receive the response information of the first detection message fed back by the adjacent node, or the telemetry node does not receive the response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as an endpoint node.
In an embodiment of the present invention, the first probe packet or the second probe packet includes:
an ethernet type value, source code, object code, and payload;
the Ethernet type value is different from the Ethernet type value of the protocol used for communication between the nodes;
the source code is used for identifying a node for sending the detection message;
the target code is used for identifying a node for receiving the detection message;
the payload includes a type, a length, and a parameter value, the type including whether a data plane telemetry function, a standard interface protocol, and a proprietary interface protocol are supported;
the standard interface protocol comprises a standard protocol type code, a standard protocol type description and a standard protocol field, wherein the standard protocol type code is used for identifying a protocol interface; the standard protocol type description is used for describing a specific protocol name corresponding to each standard protocol type code; the standard protocol field comprises at least one of a switch identification code, an in-out switch port, an in-out port time stamp, an out-out port time stamp, queue information, a forwarding delay, an out-direction port utilization rate and a queue cache utilization rate;
the private interface protocol comprises a private protocol type code, a private protocol type description and a private protocol field, wherein the private protocol type code is used for a private identification protocol interface; the private protocol type description is used for describing a specific protocol name corresponding to each private protocol type code; the private protocol field comprises a step of supporting to acquire the packet loss statistics of the current queue and/or supporting to acquire the packet sending rate of the current output port;
The private protocol field is defined according to the requirements of node equipment manufacturers, parameter names in a character string description protocol are used, and comma intervals are used among a plurality of parameters;
and uploading the telemetry information content in the payload to a central processing unit through an access control list so that the central processing unit analyzes and acquires the telemetry information content carried by each node.
In an embodiment of the present invention, the second configuration module 503 is configured to:
analyzing the telemetry information content sent by each adjacent node, and acquiring a protocol field in a standard interface protocol and a protocol field in a private interface protocol in each adjacent node;
the method comprises the steps of taking a protocol field in a standard interface protocol shared by each adjacent node as standard interface protocol content in telemetry information content of the telemetry node, and taking a protocol field in a private interface protocol shared by each adjacent node as private interface protocol content in telemetry information content of the telemetry node.
If the neighboring nodes of the telemetry node are a first neighboring node, a second neighboring node, and a third neighboring node, the second configuration module 503 is further configured to:
analyzing the telemetry information content sent by the first adjacent node, acquiring a standard interface protocol field in the first adjacent node as a switch identification code, an ingress port time stamp, an egress port time stamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as support for acquiring current queue packet loss statistics and support for acquiring current egress port packet sending rate;
Analyzing the telemetry information content sent by the second adjacent node, acquiring a standard interface protocol field in the second adjacent node as a switch identification code, an access port time stamp, queue information and forwarding delay, and acquiring a private interface protocol field in the first adjacent node as support for acquiring current queue packet loss statistics;
analyzing the telemetry information content sent by the third adjacent node, acquiring a standard interface protocol field in the third adjacent node as a switch identification code, an outbound time stamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as a support for acquiring the current outbound packet sending rate;
intersection is taken from standard interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain standard interface protocol fields in telemetry information content of the telemetry node, wherein the standard interface protocol fields in telemetry information content of the telemetry node comprise switch identification codes and forwarding delays;
and taking intersection sets of standard interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain an intersection result as null, wherein the private interface protocol field of the telemetry information content of the telemetry node is configured as null.
The network telemetry node configuration method provided by the invention further comprises the following steps: and adding the network telemetry node configuration result to a telemetry configuration database, wherein the telemetry configuration database comprises switch role data, a termination port list and fields required to be carried by telemetry information.
According to the network telemetry node configuration device provided by the embodiment of the invention, a first detection message is sent to all adjacent nodes of a telemetry node by responding to the opening of a telemetry node port state; monitoring response information of the adjacent node to the first detection message, and configuring roles of telemetry nodes according to the response information of the adjacent node to the first detection message; the second detection message sent by the adjacent node of the telemetry node is received, the telemetry information content carried in the second detection message of each adjacent node is analyzed, the telemetry information content of the telemetry node is configured according to the analysis result, the telemetry function configuration can be generated by the node in a self-adaptive mode through exchanging the detection messages among the nodes, the burden of a controller can be greatly reduced, particularly when the network topology structure is changed, the telemetry function configuration on the switch node can be changed in a self-adaptive mode without intervention of the controller, configuration delay is reduced, and network stability is improved.
Fig. 6 illustrates a physical structure schematic diagram of a switch, and as shown in fig. 6, the electronic device may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. Processor 610 may invoke logic instructions in memory 630 to perform a network telemetry node configuration method comprising: responding to the opening of the port state of the telemetry node, and sending a first detection message to all adjacent nodes of the telemetry node; monitoring response information of the adjacent node to the first detection message, and configuring roles of telemetry nodes according to the response information of the adjacent node to the first detection message; and receiving second detection messages sent by adjacent nodes of the telemetry node, analyzing telemetry information content carried in the second detection messages of each adjacent node, and configuring the telemetry information content of the telemetry node according to analysis results.
In an embodiment of the present invention, as shown in fig. 7, a network architecture where the switch is located includes: a telemetry configuration adaptation module, a telemetry configuration database, a port driver and a switch chip;
The telemetry configuration self-adaptation module comprises a detection message packet sending program, a packet receiving analysis program and an ACL configuration initialization program, wherein the detection message packet sending program is responsible for monitoring port up events, and once the port up is found, detection messages are sent to adjacent machines; the packet receiving analysis program is responsible for receiving the detection message, determining the telemetry configuration of the local machine after analyzing the detection message and updating the telemetry configuration database; the ACL configuration initialization program is used for inserting ACL to make the exchanger chip send the detection message to CPU when the self-adaptive module is enabled, and the ACL needs to be removed when the self-adaptive module is disabled. The telemetry configuration database contains telemetry-related configuration data, and is mainly configured with a switch role (an endpoint switch or a relay switch) and a port list sink_port_list which is used as a port to execute sink action when the endpoint switch is used, wherein fields to be carried by telemetry information, such as an in-out time stamp, a forwarding delay, an outbound port utilization rate, a queue cache utilization rate and the like.
As shown in fig. 8, the interactive timing diagram of each module is shown in fig. 8, the ACL configuration initialization program performs ACL configuration issue, the ethertype=9156 message is reported to the CPU of the switch chip, the switch chip port is started, the port driver triggers the probe message packet sending program, the probe message packet sending program sends the probe message to the port driver, the port driver sends the probe message to the neighboring machine, the packet receiving analysis program receives the ethertype=9156 message, and the telemetry configuration information is written into the telemetry configuration database according to the analysis result.
In another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which when executed by a processor is implemented to perform a network telemetry node configuration method provided by the above methods, the method comprising: responding to the opening of the port state of the telemetry node, and sending a first detection message to all adjacent nodes of the telemetry node; monitoring response information of the adjacent node to the first detection message, and configuring roles of telemetry nodes according to the response information of the adjacent node to the first detection message; and receiving second detection messages sent by adjacent nodes of the telemetry node, analyzing telemetry information content carried in the second detection messages of each adjacent node, and configuring the telemetry information content of the telemetry node according to analysis results.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of configuring a network telemetry node, comprising:
responding to a telemetry node port state opening event, and sending a first detection message to an adjacent node of the telemetry node through the telemetry node port;
monitoring response information of the adjacent node to the first detection message, and configuring the role of the telemetry node according to the response information of the adjacent node to the first detection message;
and receiving second detection messages sent by adjacent nodes of the telemetry node, analyzing telemetry information content carried in the second detection messages of each adjacent node, and configuring the telemetry information content of the telemetry node according to analysis results.
2. The method according to claim 1, wherein the configuring the role of the telemetry node according to the response information of the neighboring node to the first detection message includes:
if all ports of the telemetry node receive the response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as a relay node;
and if part of ports of the telemetry node receive the response information of the first detection message fed back by the adjacent node, or the telemetry node does not receive the response information of the first detection message fed back by the adjacent node, configuring the role of the telemetry node as an endpoint node.
3. The network telemetry node configuration method of claim 1 or 2, wherein after configuring the telemetry node role as an endpoint node, further comprising:
and configuring ports, which respond to detection messages sent by other nodes, in the end point nodes as termination ports, and adding the termination ports into a termination port list.
4. The network telemetry node configuration method of claim 1, wherein the first probe message or the second probe message comprises:
an ethernet type value, source code, object code, and payload;
the Ethernet type value is different from the Ethernet type value of the protocol used for communication between the nodes;
the source code is used for identifying a node for sending the detection message;
the target code is used for identifying a node for receiving the detection message;
the payload includes a type, a length, and a parameter value, the type including whether a data plane telemetry function, a standard interface protocol, and a proprietary interface protocol are supported;
the standard interface protocol comprises a standard protocol type code, a standard protocol type description and a standard protocol field, wherein the standard protocol type code is used for identifying a protocol interface; the standard protocol type description is used for describing a specific protocol name corresponding to each standard protocol type code; the standard protocol field comprises at least one of a switch identification code, an in-out switch port, an in-out port time stamp, an out-out port time stamp, queue information, a forwarding delay, an out-direction port utilization rate and a queue cache utilization rate;
The private interface protocol comprises a private protocol type code, a private protocol type description and a private protocol field, wherein the private protocol type code is used for identifying a private protocol interface; the private protocol type description is used for describing a specific protocol name corresponding to each private protocol type code; the private protocol field comprises a step of supporting to acquire the packet loss statistics of the current queue and a step of supporting to acquire the packet sending rate of the current output port;
the private protocol field is customized according to the requirements of node equipment manufacturers, the field names are described by using character strings, and comma intervals are used among a plurality of fields;
and uploading the telemetry information content in the payload to a central processing unit through an access control list so that the central processing unit analyzes and acquires the telemetry information content carried by each node.
5. The method of claim 4, wherein configuring telemetry information content of the telemetry node according to the parsing result comprises:
analyzing the telemetry information content sent by each adjacent node, and acquiring a protocol field in a standard interface protocol and a protocol field in a private interface protocol in each adjacent node;
The method comprises the steps of taking a protocol field in a standard interface protocol shared by each adjacent node as a standard interface protocol field in telemetry information content of the telemetry node, and taking a protocol field in a private interface protocol shared by each adjacent node as a private interface protocol field in telemetry information content of the telemetry node.
6. The method according to claim 5, wherein if the neighboring nodes of the telemetry node are a first neighboring node, a second neighboring node, and a third neighboring node, the configuring telemetry information content of the telemetry node according to the parsing result includes:
analyzing the telemetry information content sent by the first adjacent node, acquiring a standard interface protocol field in the first adjacent node as a switch identification code, an ingress port time stamp, an egress port time stamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as support for acquiring current queue packet loss statistics and support for acquiring current egress port packet sending rate;
analyzing the telemetry information content sent by the second adjacent node, acquiring a standard interface protocol field in the second adjacent node as a switch identification code, an access port time stamp, queue information and forwarding delay, and acquiring a private interface protocol field in the first adjacent node as support for acquiring current queue packet loss statistics;
Analyzing the telemetry information content sent by the third adjacent node, acquiring a standard interface protocol field in the third adjacent node as a switch identification code, an outbound time stamp and a forwarding delay, and acquiring a private interface protocol field in the first adjacent node as a support for acquiring the current outbound packet sending rate;
intersection is taken from the standard interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain the standard interface protocol field of the telemetry node, wherein the standard interface protocol field of the telemetry node comprises an exchanger identification code and a forwarding delay;
and acquiring intersections of private interface protocol fields of the first adjacent node, the second adjacent node and the third adjacent node to obtain an intersection result as null, and configuring the private interface protocol fields of the telemetry node as null.
7. A network telemetry node configuration method according to claim 3, further comprising: and adding the network telemetry node configuration result to a telemetry configuration database, wherein the telemetry configuration database comprises switch role data, a termination port list and fields required to be carried by telemetry information.
8. A network telemetry node configuration apparatus, comprising:
The sending module is used for responding to a telemetry node port state opening event and sending a first detection message to an adjacent node of the telemetry node through the telemetry node port;
the first configuration module is used for monitoring response information of the adjacent node to the first detection message and configuring the role of the telemetry node according to the response information of the adjacent node to the first detection message;
the second configuration module is used for receiving the second detection message sent by the adjacent node of the telemetry node, analyzing the telemetry information content carried in the second detection message of each adjacent node, and configuring the telemetry information content of the telemetry node according to the analysis result.
9. A switch comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the network telemetry node configuration method of any one of claims 1 to 7 when the program is executed.
10. A non-transitory readable storage medium having stored thereon a computer program, which when executed by a processor implements the network telemetry node configuration method of any of claims 1 to 7.
CN202311541680.3A 2023-11-17 2023-11-17 Network telemetry node configuration method, device, switch and storage medium Pending CN117834425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311541680.3A CN117834425A (en) 2023-11-17 2023-11-17 Network telemetry node configuration method, device, switch and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311541680.3A CN117834425A (en) 2023-11-17 2023-11-17 Network telemetry node configuration method, device, switch and storage medium

Publications (1)

Publication Number Publication Date
CN117834425A true CN117834425A (en) 2024-04-05

Family

ID=90519794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311541680.3A Pending CN117834425A (en) 2023-11-17 2023-11-17 Network telemetry node configuration method, device, switch and storage medium

Country Status (1)

Country Link
CN (1) CN117834425A (en)

Similar Documents

Publication Publication Date Title
CN112866075B (en) In-band network telemetering method, system and related device for Overlay network
EP3817298A1 (en) Data message detection method, device and system
CN110808874B (en) Cross-machine-room service monitoring method and device, storage medium and server
JP5660198B2 (en) Network system and switching method
CN111769998B (en) Method and device for detecting network delay state
WO2013115177A1 (en) Network system and topology management method
US9178794B2 (en) Communication quality monitoring system, communication quality monitoring method and recording medium
CN110178342A (en) The scalable application level of SDN network monitors
CN101933290A (en) Method for configuring acls on network device based on flow information
US20150256649A1 (en) Identification apparatus and identification method
Hyun et al. Real‐time and fine‐grained network monitoring using in‐band network telemetry
US20220116304A1 (en) Methods, systems and computer readable media for active queue management
CN104067599A (en) Network state monitoring system
CN103262046A (en) Server management apparatus, server management method, and program
CN107645389B (en) Network communication method and device
JP4861293B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN109040186A (en) A kind of mqtt data processing method and device based on nbiot network
CN103997439A (en) Flow monitoring method, device and system
CN115484047A (en) Method, device, equipment and storage medium for identifying flooding attack in cloud platform
JP4532253B2 (en) Frame transfer apparatus and frame loop suppression method
US6850530B1 (en) Methods and apparatus for providing and obtaining resource usage information
KR20220029142A (en) Sdn controller server and method for analysing sdn based network traffic usage thereof
KR20150009909A (en) Methods for managing transaction in software defined networking network
CN117834425A (en) Network telemetry node configuration method, device, switch and storage medium
CN110620693A (en) Railway station route remote restart control system and method based on Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination