CN111769998B - Method and device for detecting network delay state - Google Patents

Method and device for detecting network delay state Download PDF

Info

Publication number
CN111769998B
CN111769998B CN201910746060.0A CN201910746060A CN111769998B CN 111769998 B CN111769998 B CN 111769998B CN 201910746060 A CN201910746060 A CN 201910746060A CN 111769998 B CN111769998 B CN 111769998B
Authority
CN
China
Prior art keywords
node switch
detection
switch
state information
messages
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.)
Active
Application number
CN201910746060.0A
Other languages
Chinese (zh)
Other versions
CN111769998A (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910746060.0A priority Critical patent/CN111769998B/en
Publication of CN111769998A publication Critical patent/CN111769998A/en
Application granted granted Critical
Publication of CN111769998B publication Critical patent/CN111769998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0858One way delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps

Abstract

The invention discloses a method and a device for detecting a network delay state, and relates to the technical field of computers. One embodiment of the method comprises: inserting INT message headers into the plurality of messages, and adding metadata which encapsulates state information of the first node switch behind the INT message headers to obtain a plurality of detection messages comprising INT data; sending the detection messages to an intermediate node, and adding metadata encapsulated with state information of an intermediate node switch; continuously forwarding the detection messages to the terminal node, and adding metadata encapsulated with state information of a terminal node switch; and packaging the detection messages and then sending the detection messages to a monitoring server to realize network delay state detection. According to the embodiment, the INT detection message is actively sent by the first node switch through configuring a simple sampling rule, so that the technical effects of obtaining network delay state information and reducing the pressure of monitoring equipment are achieved.

Description

Method and device for detecting network delay state
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for detecting a network delay state.
Background
The traffic carried by the current data center network is more diversified, and the traffic load is heavier, so that how to solve or avoid network congestion is more critical for the network forwarding equipment. INT (In-band Network Telemetry) is a novel Telemetry protocol, and can realize monitoring of Network state by collecting and reporting Network state at data level.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
1. when INT is adopted, the possible flow borne on a data link needs to be predicted in advance, so that the same sampling rule needs to be configured on a switch and a service message, and for a network with a more complex topological structure, the operation is complex and the difficulty coefficient is large;
2. when the configured sampling rules are arbitrarily matched, INT data needs to be inserted into all traffic in the whole network, which greatly increases the pressure of the monitoring server.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for detecting a network delay state, which can actively send an INT detection packet through a head node switch, configure a simple sampling rule, and obtain network delay state information, thereby achieving a technical effect of reducing pressure of a monitoring device.
In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a method for detecting a network delay state, including:
inserting in-band network telemetering message headers into the plurality of messages, and adding metadata encapsulating state information of the first node switch after the in-band network telemetering message headers to obtain a plurality of detection messages containing in-band network telemetering data;
sending a plurality of detection messages to the intermediate node, and adding metadata encapsulated with state information of the intermediate node switch in the detection messages;
continuously forwarding the detection messages to the terminal nodes, and adding metadata encapsulated with state information of the terminal node switch in the detection messages;
packaging a plurality of detection messages and then sending the detection messages to a monitoring server to realize network delay state detection;
the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; and configuring sampling rules on each node switch of the data link, wherein the sampling rules are matched with the reserved port numbers corresponding to the transmission protocols.
Further, the intermediate node switch is of a multilayer structure, the detection message is forwarded layer by layer along the multilayer intermediate node switch, and each layer of intermediate node switch adds metadata encapsulating state information of the layer of intermediate node switch in the detection message.
Further, the same service quality strategy is configured on each node switch of the data link.
Further, the state information of the switches of the nodes of the data link comprises the queue utilization rate of the outgoing ports of the switches and one or more of the following: the switch number, the port queue, the timestamp, the port number, the port queue, the timestamp.
Further, an egress port of the end node switch is configured as an egress of the probe packet.
Further, the transmission protocol is a user data packet protocol or a transmission control protocol.
According to another aspect of the embodiments of the present invention, there is provided a device for detecting a network delay state, including:
the first node switch is used for inserting an in-band network telemetering message header into the plurality of messages, adding metadata encapsulated with state information of the first node switch after the in-band network telemetering message header to obtain a plurality of detection messages containing in-band network telemetering data, and then sending the plurality of detection messages to the intermediate node switch;
the intermediate node switch is used for adding the metadata encapsulated with the state information of the intermediate node switch in the detection messages and continuously forwarding the detection messages to the terminal node switch;
the terminal node switch is used for adding metadata encapsulated with the state information of the terminal node switch in the plurality of detection messages, and then transmitting the plurality of detection messages to the monitoring server after encapsulation;
the monitoring server is used for receiving the encapsulated detection messages so as to realize network delay state detection;
the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; and configuring a sampling rule on the switch corresponding to each node of the data link, wherein the sampling rule is matched with the reserved port number corresponding to the transmission protocol.
Furthermore, the intermediate node switches are of a multilayer structure, the detection messages are forwarded layer by layer along the multilayer intermediate node switches, and each layer of intermediate node switch adds metadata encapsulating the state information of the layer of intermediate node switch in the detection messages.
According to another aspect of the embodiments of the present invention, there is provided a server, including: one or more processors; and a storage device, configured to store one or more programs, where when the one or more programs are executed by the one or more processors, the one or more processors implement any of the above methods for detecting a network delay state.
According to a further aspect of the embodiments of the present invention, there is provided a computer readable medium, wherein the program is executed by a processor to implement any of the above methods for detecting a network latency status.
One embodiment of the above invention has the following advantages or benefits: the INT message headers are inserted into a plurality of messages, and the Metadata which encapsulates the state information of the first node switch is added behind the INT message headers, so that a plurality of detection messages containing INT data are obtained; sending a plurality of detection messages to an intermediate node, and adding Metadata encapsulated with state information of an intermediate node switch in the detection messages; continuously forwarding the detection message to the terminal node, and adding Metadata encapsulated with the state information of the terminal node switch in the detection message; packaging a plurality of detection messages and then sending the detection messages to a monitoring server to realize network delay state detection; the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; the technical means that the sampling rules are configured on each node switch of the data link and are matched with the reserved port numbers corresponding to the transmission protocols are adopted, so that the technical problems that the operation difficulty coefficient is large and the pressure of the monitoring equipment is high due to the adoption of INT in the prior art are solved, the INT detection message is actively sent through the first node switch, the simple sampling rules are configured, and the technical effects of obtaining the network delay state information and reducing the pressure of the monitoring equipment can be achieved. Meanwhile, for network operation and maintenance, by timely and efficiently monitoring the network state, the network strategy can be adjusted in real time, the smoothness and stability of the network are ensured, and more refined and intelligent operation and maintenance management is realized.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a method for detecting a network delay state according to a first embodiment of the present invention;
fig. 2a is a schematic diagram of a main flow of a method for detecting a network delay state according to a second embodiment of the present invention;
FIG. 2B is a schematic diagram of data encapsulated within a message during forwarding along switches A-C-B in FIG. 2 a;
fig. 3 is a schematic diagram of main modules of a network delay status detection apparatus provided according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a method for detecting a network delay state according to a first embodiment of the present invention; as shown in fig. 1, a method for detecting a network delay state according to an embodiment of the present invention includes:
step S101, inserting an In-band Network Telemetry (INT) message header into a plurality of messages, and adding Metadata (Metadata) encapsulating state information of a first node switch behind the In-band Network Telemetry message header to obtain a plurality of detection messages containing In-band Network Telemetry data;
the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; and configuring a sampling rule on each node switch of the data link, wherein the sampling rule is matched with the reserved port number corresponding to the transmission protocol. The first node switch actively sends the detection message instead of adopting the service message to carry out the matching sampling rule, thereby avoiding predicting the flow borne by each path in the data link in advance and greatly reducing the complexity of operation. Meanwhile, the INT message for detecting the network delay state is actively sent by the first node, so that the situations of high detection complexity and detection result delay caused by the configuration and the matching of a sampling rule of a service message (data flow in a data link only passes through the data link, the specific service type exists in the data link, and the detection network state is only an additional effect) in the prior art are avoided, and the pressure of a large number of detection query requests on the network link and the monitoring equipment is avoided.
According to the embodiment of the invention, for the INT first node switch, a user can configure basic parameters on the first node switch, including the sending time interval of the detection message, the data content of Metadata, the address of the terminal node and the INT output port. Specifically, the sending time interval of the detection message can be accurate to the second level, the time delay state of each switch in the data link can be timely and conveniently obtained through the setting, meanwhile, the detection message volume under the situation cannot cause overlarge load to the whole network link, and the normal operation of the monitoring equipment is guaranteed.
Specifically, according to a specific implementation manner of the embodiment of the present invention, considering that each port of a plurality of switches has 8 unicast queues, each switch egress port sends 8 probe packets on the INT head node, and each probe packet sets a different DSCP (Differentiated Services Code Point) value. It should be noted that, the number of the detection packets is not limited here, and in actual operation, the number of the queues of the switch port may be adaptively adjusted, for example, when the number of the queues of the switch port is 24, 24 detection packets may be sent, so as to implement comprehensive detection of the delay state information of each traffic path in the data link.
Further, according to the embodiment of the present invention, the same Quality of Service policy (QoS) is configured on each node switch of the data link, so that the probe packet can enter different queues at the egress port of each node switch respectively. By configuring the same QoS policy on each node switch, each probe packet sets different DSCP (Differentiated Services Code Point) values, so that multiple (e.g., 8) probe packets carrying different DSCP values sent by the head node can enter different queues at the egress port, and further, the delay state information of the switch on different paths can be acquired. Specifically, 8 probe messages can carry DSCP values 0, 8, 16, 24, 32, 40, 48, and 56, respectively, so that the probe messages are mapped to queues 0 to 7, respectively.
Furthermore, the same sampling rule is configured on the detection message and each node switch of the data link, so that when the detection message is forwarded to the current node switch, the switch can add and encapsulate metadata including the current switch state information in the detection message.
Step S102, a plurality of detection messages are sent to the intermediate node, and metadata packaged with the state information of the intermediate node switch is added in the detection messages.
According to a specific implementation manner of the embodiment of the present invention, the intermediate node switch may be a multilayer structure, the detection packet is forwarded layer by layer along the multilayer intermediate node switch, and each layer of intermediate node switch adds metadata encapsulating state information of the layer of intermediate node switch in the packet.
Step S103, the detection message is continuously forwarded to the terminal node, and the metadata encapsulating the state information of the terminal node switch is added in the detection message.
And step S104, packaging the detection message and then sending the detection message to a monitoring server to realize network delay state detection.
Further, according to the embodiment of the present invention, the state information of each node switch includes queue usage of egress ports of the node switch and one or more of the following: the switch number, the port queue, the timestamp, the port number, the port queue, the timestamp, and the port link utilization.
In particular, explanations regarding some of the nouns appearing in the context of the present invention include:
queue usage of egress ports: each output port of a general switch corresponds to 8 queues (16, 24, etc.), the output port queue utilization rate represents the flow passing through the output port queue in unit time;
switch numbering: i.e., the switch ID;
port number: port number passed when message is forwarded to a certain switch;
entering a time stamp: the time that the message passes through the input port number of a certain switch is identified at the moment;
an outlet port number; port number through which the message passes when forwarded out from a certain switch;
and (3) time stamping: the message passes through the time marked at the moment of the output port number of a certain switch;
and (4) output port queue: the queue number corresponding to the output port of the switch;
egress port link usage: refers to the percentage of throughput in a particular time interval to the access rate of the egress port link.
According to a specific implementation manner of the embodiment of the present invention, an egress port of the terminal node switch is configured with an egress of the probe packet. Because the destination address of the detection message is the terminal node switch, when the detection message is forwarded to the terminal node, the message completes the task and does not enter the egress port queue of the terminal node, so the Metadata encapsulated with the state information of the terminal node switch does not include the queue information (egress port queue utilization rate and the like) of the egress port of the terminal node switch, and the egress port of the terminal node is configured as the egress port of the detection message, the detection message can be redirected to a certain queue of the egress interface, specifically, which queue is mapped to is determined according to the QoS policy, because the detection message carries different DSCP values, the state information of different queues can be obtained, the detection message is only normally forwarded to the configured egress port, and Metadata is inserted, but is not really forwarded from the egress port, and the switch can enable the detection message to reenter the forwarding pipeline of the switch chip, and packaging the data and sending the data to a monitoring server. Namely, through the setting, the message can be normally forwarded to the outlet of the detection message, so that the queue information of the outlet port of the terminal node switch is obtained. The first node and the intermediate node switch do not need to be configured, because the switch systems of the first node and the intermediate node switch can find the corresponding detection message outlets according to the route.
Further, according to the embodiment of the present invention, the Transmission Protocol is a User Datagram Protocol (UDP) or a Transmission Control Protocol (TCP). It should be noted that, because the TCP protocol is bidirectional transmission, when the TCP protocol is adopted, when the probe packet is returned from the terminal node switch to the head node switch, the above operations may be performed in reverse, and the head node switch encapsulates the returned probe packet and sends the probe packet to the monitoring device, so as to obtain the delay state information of the link network again.
According to the embodiment of the invention, because the in-band network telemetering message header is inserted into a plurality of messages, and the metadata which encapsulates the state information of the first node switch is added after the in-band network telemetering message header, a plurality of detection messages containing in-band network telemetering data are obtained; sending a plurality of detection messages to the intermediate node, and adding metadata encapsulated with state information of the intermediate node switch in the detection messages; continuously forwarding the detection message to the terminal node, and adding metadata encapsulated with state information of a terminal node switch in the detection message; packaging a plurality of detection messages and then sending the detection messages to a monitoring server to realize network delay state detection; the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; the technical means that the sampling rules are configured on each node switch of the data link and are matched with the reserved port numbers corresponding to the transmission protocols are adopted, so that the technical problems that the operation difficulty coefficient is large and the pressure of the monitoring equipment is high due to the adoption of INT in the prior art are solved, the INT detection message is actively sent through the first node switch, the simple sampling rules are configured, and the technical effects of obtaining the network delay state information and reducing the pressure of the monitoring equipment can be achieved. Meanwhile, for network operation and maintenance, by timely and efficiently monitoring the network state, the network strategy can be adjusted in real time, the smoothness and stability of the network are ensured, and more refined and intelligent operation and maintenance management is realized.
Fig. 2a is a schematic diagram of a main flow of a method for detecting a network delay state according to a second embodiment of the present invention; the data link shown in fig. 2a is a typical three-layer CLOS architecture (a multi-stage circuit-switched network architecture proposed by a person called Charles CLOS).
As shown in fig. 2a, there are 4 equal cost paths between the first node switch a and the terminal node switch B, and if the network delay status on the 4 paths is to be obtained, the following steps are performed:
firstly, configuring the same sampling rule on A, B, C, D, E, F six switches, specifically adopting UDP protocol, using port number 4000, and constructing the specific format of the message as follows:
Marker Version
Reserved Length
wherein, Marker: two bytes, 0101 alternate, representing the starting boundary of the message; version: two bytes, currently 1; reserved: two bytes, a reserved value; length: two bytes, message length. It should be noted that. The UDP4000 port is only an embodiment of the present invention, and is not limited to a port number, and the reserved port number in the UDP protocol may be applied to the present invention.
Then, the first node switch inserts an INT message header into a plurality of messages (specifically, 32, 8 for each of the four output ports of a), and adds Metadata encapsulating state information of the first node switch behind the INT message header, thereby obtaining a plurality of detection messages containing INT data. The message is based on the UDP protocol, and the number of the used port is 4000.
The first node switch A respectively sends 8 detection messages containing INT data to ports connected with C, D, E, F, the DSCP value of each detection message is different, the same QoS strategy is configured on each switch, so that the detection messages configured with different DSCP values can respectively enter different queues of the ports connected with C, D, E, F, and the subsequent acquisition of the delay state information of all the queues is facilitated.
The switch C, D, E, F adds Metadata encapsulated with the state information of the switch in the received detection message, and then the switch C, D, E, F continues to forward the detection message to the terminal node switch B.
The terminal node switch B adds Metadata encapsulating the state information of the switch B after a plurality of detection messages, and then respectively encapsulates the detection messages containing the state information of the switch A, C/D/E/F, B and sends the encapsulated detection messages to the monitoring server, so that the delay state information of each device in the whole forwarding path process is obtained, and the delay state information specifically comprises the queue utilization rate, the congestion degree and the like in the device corresponding to the forwarding path. The operation and maintenance platform can adjust network configuration according to the obtained network link delay state information, optimize strategies, avoid the situation of flow congestion in advance, improve the link utilization rate and achieve the effect of optimizing the whole network link.
FIG. 2B is a schematic diagram of data encapsulated within a message during forwarding along switches A-C-B in FIG. 2 a; as shown in figure 2b of the drawings,
at the head-node switch a, detecting the data encapsulated in the message includes: INT message header (INT-HDR) and Metadata (A-INT-MD) encapsulated with state information of the switch A; after the detection message is sent from the switch A to the switch C, Metadata (C-INT-MD) encapsulated with the state information of the switch C is continuously added in the detection message; the detection message is continuously forwarded to the switch B, and the Metadata (B-INT-MD) encapsulated with the state information of the switch C is added at the terminal node switch B. Therefore, the delay state information of the switch A, C, B is obtained during the forwarding process of the detection message from the a-C-B path.
Fig. 3 is a schematic diagram of main modules of a network delay status detection device provided in an embodiment of the present invention; as shown in fig. 3, an embodiment of the present invention provides a device 300 for detecting a network delay state, including:
the first node switch 301 is configured to insert an INT message header into the multiple messages, add Metadata encapsulating state information of the first node switch behind the INT message header to obtain multiple detection messages including INT data, and then send the multiple detection messages to the intermediate node switch;
the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; and configuring a sampling rule on each node switch of the data link, wherein the sampling rule is matched with the reserved port number corresponding to the transmission protocol. The first node switch 301 actively sends the message instead of adopting the service message to match the sampling rule, so that the flow borne by each path in the link needs to be predicted in advance, and the complexity of operation is greatly reduced. Meanwhile, the first node switch 301 actively sends the message, so that the delay caused in the query request process in the query mode and the pressure of a large number of query requests on a network link and monitoring equipment are avoided.
According to the embodiment of the present invention, for the INT head node switch 301, the user can configure basic parameters including the transmission time interval of the probe packet, the data content of Metadata, the terminal node address, and the INT egress port on the head node switch 301. Specifically, the sending time interval of the detection message can be accurate to the second level, the test state of each switch in the link can be timely and conveniently obtained through the setting, meanwhile, the detection message volume under the situation cannot cause overlarge load on the whole network link, and the normal operation of the monitoring equipment is guaranteed.
Specifically, according to a specific implementation manner of the embodiment of the present invention, considering that each port of a plurality of switches has 8 unicast queues, each switch egress port sends 8 probe packets on the INT head node, and each probe packet sets a different DSCP (Differentiated Services Code Point) value. It should be noted that, the number of the detection packets is not limited here, and in actual operation, the number of the queues of the switch port may be adaptively adjusted, for example, when the number of the queues of the switch port is 24, 24 detection packets may be sent, so as to implement comprehensive detection of the delay state information of each traffic path in the data link.
Further, according to the embodiment of the present invention, the same quality of service policy (QoS) is configured on each node switch of the data link, so that the probe packet can enter different queues at the egress port of each node switch respectively. By configuring the same QoS policy on each node switch and setting different DSCP (Differentiated Services Code Point) values for each probe packet, 8 probe packets configured with different DSCP values sent by the head node can enter different queues at the egress port, and further, delay state information of switches in different paths can be acquired.
Furthermore, the same sampling rule is configured on the detection message and each node switch of the data link, so that when the detection message is forwarded to the current node switch, the switch can add and encapsulate metadata including the current switch state information in the detection message.
The intermediate node switch 302 is used for adding Metadata encapsulated with the state information of the intermediate node switch 302 in the detection message and continuously forwarding the detection message to the terminal node switch;
according to a specific implementation manner of the embodiment of the present invention, the intermediate node switch 302 may be a multilayer structure, the detection packet is forwarded layer by layer along the multilayer intermediate node switches, and each layer of intermediate node switch adds metadata encapsulating state information of the layer of intermediate node switch in the detection packet.
The terminal node switch 303 is configured to add Metadata encapsulating state information of the terminal node switch in the detection message, and then encapsulate the detection message and send the encapsulated detection message to the monitoring server;
the monitoring server 304 is configured to receive the encapsulated detection packet to implement network delay state detection;
further, according to the embodiment of the present invention, the state information of each node switch includes queue usage of egress ports of the node switch and one or more of the following: the switch number, an input port queue, an input timestamp, an output port number, an output port queue, an output timestamp and an output port link utilization rate.
According to a specific implementation manner of the embodiment of the present invention, the egress port of the end node switch 303 is configured with the egress of the probe packet. Because the destination address of the detection message is the terminal node switch, when the detection message is forwarded to the terminal node, the message completes the task and does not enter the egress port queue of the terminal node, so the Metadata encapsulated with the state information of the terminal node switch does not include the queue information (egress port queue utilization rate and the like) of the egress port of the terminal node switch, and the egress port of the terminal node is configured as the egress port of the detection message, the detection message can be redirected to a certain queue of the egress interface, specifically, which queue is mapped to is determined according to the QoS policy, because the detection message carries different DSCP values, the state information of different queues can be obtained, the detection message is only normally forwarded to the configured egress port, and Metadata is inserted, but is not really forwarded from the egress port, and the switch can enable the detection message to reenter the forwarding pipeline of the switch chip, and packaging and sending to a monitoring server. Namely, through the setting, the message can be normally forwarded to the detection message outlet, so that the queue information of the output port of the terminal node switch is obtained. The first node and the intermediate node switch do not need to be configured, because the switch systems of the first node and the intermediate node switch can find the corresponding detection message outlets according to the route.
Further, according to the embodiment of the present invention, the Transmission Protocol is a User Datagram Protocol (UDP) or a Transmission Control Protocol (TCP). It should be noted that, because the TCP protocol is bidirectional transmission, when the TCP protocol is adopted, when the probe packet is returned from the terminal node switch 303 to the first node switch 301, the above operations may be performed in reverse, and the first node switch 301 encapsulates the returned probe packet and sends the probe packet to the monitoring device 304, so as to obtain the delay state information of the link network again.
According to the embodiment of the invention, because the in-band network telemetering message header is inserted into a plurality of messages, and the metadata which encapsulates the state information of the first node switch is added after the in-band network telemetering message header, a plurality of detection messages containing in-band network telemetering data are obtained; sending a plurality of detection messages to the intermediate node, and adding metadata encapsulated with state information of the intermediate node switch in the detection messages; continuously forwarding the detection message to the terminal node, and adding metadata encapsulated with state information of a terminal node switch in the detection message; packaging the detection message and then sending the detection message to a monitoring server to realize network delay state detection; the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; the technical means that the sampling rules are configured on each node switch of the data link and are matched with the reserved port numbers corresponding to the transmission protocols are adopted, so that the technical problems that the operation difficulty coefficient is large and the pressure of the monitoring equipment is high due to the adoption of INT in the prior art are solved, an INT detection message is actively sent through the first node switch, the simple sampling rules are configured, the network delay state information can be obtained, and meanwhile, the technical effect of reducing the pressure of the monitoring equipment is achieved.
Fig. 4 shows an exemplary system architecture 400 to which the network latency state detection method or the network latency state detection apparatus according to the embodiment of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 (this architecture is merely an example, and the components included in a particular architecture may be adapted according to application specific circumstances). The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 via a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 401, 402, 403. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for detecting the network delay status provided by the embodiment of the present invention is generally executed by the server 405, and accordingly, the network delay status detecting device is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a transmitting unit, an obtaining unit, a determining unit, and a first processing unit. The names of these units do not constitute a limitation to the unit itself in some cases, and for example, the sending unit may also be described as "a unit that sends a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: inserting in-band network telemetering message headers into the plurality of messages, and adding metadata encapsulating state information of the first node switch after the in-band network telemetering message headers to obtain a plurality of detection messages containing in-band network telemetering data; sending a plurality of detection messages to the intermediate node, and adding metadata encapsulated with state information of the intermediate node switch in the detection messages; continuously forwarding the detection messages to the terminal nodes, and adding metadata encapsulated with state information of the terminal node switch in the detection messages; packaging a plurality of detection messages and then sending the detection messages to a monitoring server to realize network delay state detection; the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; and configuring sampling rules on each node switch of the data link, wherein the sampling rules are matched with the reserved port numbers corresponding to the transmission protocols.
According to the technical scheme of the embodiment of the invention, because the in-band network telemetering message header is inserted into a plurality of messages, and the metadata which is encapsulated with the state information of the first node switch is added after the in-band network telemetering message header is in-band, a plurality of detection messages comprising in-band network telemetering data are obtained; sending a plurality of detection messages to the intermediate node, and adding metadata encapsulated with state information of the intermediate node switch in the detection messages; continuously forwarding the detection message to the terminal node, and adding metadata encapsulated with state information of a terminal node switch in the detection message; packaging the detection message and then sending the detection message to a monitoring server to realize network delay state detection; the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; the technical means that the sampling rules are configured on each node switch of the data link and are matched with the reserved port numbers corresponding to the transmission protocols are adopted, so that the technical problems that the operation difficulty coefficient is large and the pressure of the monitoring equipment is high due to the adoption of INT in the prior art are solved, an INT detection message is actively sent through the first node switch, the simple sampling rules are configured, the technical effects that the network delay state information can be obtained, and the pressure of the monitoring equipment is reduced are achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for detecting a network delay state is characterized by comprising the following steps:
inserting an in-band network telemetering message header into a plurality of messages, and adding metadata encapsulated with state information of a first node switch behind the in-band network telemetering message header to obtain a plurality of detection messages containing in-band network telemetering data; wherein, the metadata of the state information comprises an input timestamp and an output timestamp;
sending the detection messages to an intermediate node, and adding metadata encapsulated with state information of an intermediate node switch in the detection messages;
continuously forwarding the detection messages to the terminal nodes, and adding metadata encapsulated with state information of the terminal node switch in the detection messages;
packaging a plurality of detection messages and then sending the detection messages to a monitoring server to realize network delay state detection;
wherein, the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; and configuring sampling rules on each node switch of the data link, wherein the sampling rules are matched with the reserved port numbers corresponding to the transmission protocols.
2. The method according to claim 1, wherein the intermediate node switch has a multi-layer structure, the probe packet is forwarded layer by layer along the multi-layer intermediate node switch, and each layer of intermediate node switch adds metadata encapsulating the state information of the layer of intermediate node switch in the probe packet.
3. The method of claim 1 or 2, wherein the same qos policy is configured at each node switch of the data link.
4. The method according to claim 1, wherein the status information of the switches at the nodes of the data link includes queue usage at egress ports of the switches and one or more of the following: the switch number, the port queue, the timestamp, the port number, the port queue, the timestamp.
5. The method according to claim 1, wherein an egress port of the end node switch is configured as an egress port of the probe packet.
6. The method of claim 1, wherein the transmission protocol is a user data packet protocol or a transmission control protocol.
7. A device for detecting a network delay status, comprising:
the system comprises a first node switch, a middle node switch and a plurality of network remote measuring switches, wherein the first node switch is used for inserting an in-band network remote measuring message header into a plurality of messages, adding metadata encapsulated with state information of the first node switch behind the in-band network remote measuring message header to obtain a plurality of detection messages containing in-band network remote measuring data, and then sending the detection messages to the middle node switch; wherein, the metadata of the state information comprises an input timestamp and an output timestamp;
the intermediate node switch is used for adding metadata encapsulated with the state information of the intermediate node switch in a plurality of detection messages and continuously forwarding the detection messages to the terminal node switch;
the terminal node switch is used for adding metadata encapsulated with the state information of the terminal node switch in a plurality of detection messages, and then transmitting the plurality of detection messages to the monitoring server after encapsulation;
the monitoring server is used for receiving the encapsulated detection messages so as to realize network delay state detection;
wherein, the port numbers used by the messages are reserved port numbers corresponding to the transmission protocol; and configuring sampling rules on the switch corresponding to each node of the data link, wherein the sampling rules are matched with the reserved port numbers corresponding to the transmission protocols.
8. The apparatus according to claim 7, wherein the intermediate node switches are in a multi-layer structure, the detection packet is forwarded layer by layer along the multi-layer intermediate node switches, and each layer of intermediate node switches adds metadata encapsulating state information of the layer of intermediate node switches in the detection packet.
9. A server, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN201910746060.0A 2019-08-13 2019-08-13 Method and device for detecting network delay state Active CN111769998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910746060.0A CN111769998B (en) 2019-08-13 2019-08-13 Method and device for detecting network delay state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910746060.0A CN111769998B (en) 2019-08-13 2019-08-13 Method and device for detecting network delay state

Publications (2)

Publication Number Publication Date
CN111769998A CN111769998A (en) 2020-10-13
CN111769998B true CN111769998B (en) 2022-07-05

Family

ID=72718462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910746060.0A Active CN111769998B (en) 2019-08-13 2019-08-13 Method and device for detecting network delay state

Country Status (1)

Country Link
CN (1) CN111769998B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260968B (en) * 2020-10-16 2022-06-21 苏州盛科通信股份有限公司 Method and device for processing telemetering data message
CN112491661B (en) * 2020-12-11 2022-12-13 苏州浪潮智能科技有限公司 Time delay detection method, device, equipment and medium for data center switch
CN112702330B (en) * 2020-12-21 2022-07-01 网络通信与安全紫金山实验室 Lightweight in-band network telemetry method and device for Overlay network and storage medium
CN112866075B (en) * 2020-12-21 2023-03-24 网络通信与安全紫金山实验室 In-band network telemetering method, system and related device for Overlay network
CN113328956B (en) * 2021-06-07 2022-07-01 新华三技术有限公司 Message processing method and device
CN114006806B (en) * 2021-10-26 2023-08-15 苏州浪潮智能科技有限公司 Message processing method, device, switch equipment and storage medium
CN114172830B (en) * 2021-10-28 2023-12-12 阿里巴巴(中国)有限公司 Network delay detection method, device and system
CN114978754B (en) * 2022-06-21 2023-09-19 奥特酷智能科技(南京)有限公司 TSN anomaly detection method and system
CN115277504B (en) * 2022-07-11 2024-04-05 京东科技信息技术有限公司 Network traffic monitoring method, device and system
CN116545936B (en) * 2023-07-05 2023-11-03 苏州浪潮智能科技有限公司 Congestion control method, system, device, communication equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5206933A (en) * 1990-03-15 1993-04-27 International Business Machines Corporation Data link controller with channels selectively allocatable to hyper channels and hyper channel data funneled through reference logical channels
US7742415B1 (en) * 2007-09-26 2010-06-22 The United States Of America As Represented By Secretary Of The Navy Non-intrusive knowledge suite for evaluation of latencies in IP networks
CN102457489B (en) * 2010-10-26 2015-11-25 中国民航大学 Low-rate DoS (LDoS) attack, detection and defense module
CN108075936A (en) * 2016-11-16 2018-05-25 中国移动通信有限公司研究院 VxLAN detection methods and device
CN108021081A (en) * 2017-12-06 2018-05-11 国网江苏省电力公司南通供电公司 The playback test method controlled based on WLAN and sample time domain
CN109309605B (en) * 2018-11-26 2020-08-25 北京邮电大学 In-band network telemetry system and method
CN109787833B (en) * 2019-01-23 2020-05-08 清华大学 Network abnormal event sensing method and system
CN109818804B (en) * 2019-02-26 2020-04-24 北京邮电大学 Network monitoring method and device

Also Published As

Publication number Publication date
CN111769998A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
CN111769998B (en) Method and device for detecting network delay state
CN110022264B (en) Method for controlling network congestion, access device and computer readable storage medium
US9900090B1 (en) Inter-packet interval prediction learning algorithm
CN104378308A (en) Method and device for detecting message sending rate
CN111835588B (en) In-band network remote measurement bearer flow selection method and system
US20150016252A1 (en) Source-driven switch probing with feedback request
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
Hyun et al. Real‐time and fine‐grained network monitoring using in‐band network telemetry
CN112788060A (en) Data packet transmission method and device, storage medium and electronic equipment
CN114285781B (en) SRV6 service flow statistics method, device, electronic equipment and medium
US20180091631A1 (en) Systems and methods for writing prioritized http/2 data to a socket buffer
CN103416022A (en) In-service throughput testing in distributed router/switch architectures
CN110505112A (en) A kind of network performance monitoring method, device and storage medium
CN103281257A (en) Method and device for processing protocol message
CN109547356A (en) A kind of data transmission method of electrical energy measurement, system, equipment and computer storage medium
US9344384B2 (en) Inter-packet interval prediction operating algorithm
CN110545230A (en) method and device for forwarding VXLAN message
US8644326B2 (en) Queue processing method
US11528187B1 (en) Dynamically configurable networking device interfaces for directional capacity modifications
CN113765812A (en) Method and device for marking message
CN111490907B (en) Method and device for determining VXLAN network performance parameters
CN102845042B (en) The aggregation of bandwidth system and method for the multiple movable physical interface of a kind of application layer
CN115277504B (en) Network traffic monitoring method, device and system
CN113395612A (en) Data forwarding method in optical fiber communication and related device
CN116455817A (en) Software-defined cloud network fusion architecture and route implementation method

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
GR01 Patent grant
GR01 Patent grant