CN112491661B - Time delay detection method, device, equipment and medium for data center switch - Google Patents
Time delay detection method, device, equipment and medium for data center switch Download PDFInfo
- Publication number
- CN112491661B CN112491661B CN202011446272.6A CN202011446272A CN112491661B CN 112491661 B CN112491661 B CN 112491661B CN 202011446272 A CN202011446272 A CN 202011446272A CN 112491661 B CN112491661 B CN 112491661B
- Authority
- CN
- China
- Prior art keywords
- message
- switch
- hop
- dscp
- detection
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 87
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000005540 biological transmission Effects 0.000 claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 7
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 238000012163 sequencing technique Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 abstract description 3
- 239000000523 sample Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006855 networking Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a time delay detection method, a time delay detection device, time delay detection equipment and a time delay detection medium of a data center switch. The method comprises the following steps: configuring a plurality of switches of a data center into an open series mode, and configuring detection message identifications dscp of the plurality of switches into a first preset value; the method comprises the steps that a plurality of switches sequentially receive and analyze IP messages to determine dscp values corresponding to the IP messages, and the dscp values are compared with a first preset value; responding to that the dscp value corresponding to the IP message is equal to a first preset value, adding the receiving and sending time of the message to the received IP message by each hop of switch and forwarding the message to the next hop of switch; and acquiring the IP message forwarded by the last hop switch, and determining the transmission delay according to the receiving and sending time in the IP message forwarded by the last hop switch. The scheme of the invention avoids using a complex telemetry protocol to identify the detection message, and has the advantages of simple and convenient deployment, lower development cost and stable and reliable detection result.
Description
Technical Field
The present invention relates to the field of switch technologies, and in particular, to a method, an apparatus, a device, and a medium for detecting a time delay of a data center switch.
Background
With the increasing scale of the equipment of the data center network, more and more services are carried, and users put forward higher requirements on the intelligent operation and maintenance of the network, including that the monitoring data has higher precision so as to detect and quickly adjust the micro-burst flow in time, and meanwhile, the monitoring process has little influence on the self function and performance of the equipment so as to improve the utilization rate of the equipment and the network.
At present, the existing data center network delay detection mainly adopts a telemetry protocol, however, the traditional telemetry protocol is complex to deploy and implement, the requirement on a switch is high, and how to better utilize the traditional switching technology to implement a data center delay detection mechanism becomes a technical problem.
Disclosure of Invention
In view of the foregoing, there is a need to provide a method, an apparatus, a device, and a medium for detecting a delay of a data center switch, which are simple to deploy, and are stable and reliable.
According to a first method of the present invention, there is provided a method for detecting a time delay of a data center switch, the method including:
configuring a plurality of switches of a data center into an open series mode, and configuring detection message identifications dscp of the plurality of switches into a first preset value;
the method comprises the following steps that a plurality of switches sequentially receive and analyze IP messages to determine dscp values corresponding to the IP messages, and the dscp values are compared with a first preset value;
responding to that the dscp value corresponding to the IP message is equal to a first preset value, adding the receiving and sending time of the message to the received IP message by each hop of switch and forwarding the message to the next hop of switch;
and acquiring the IP message forwarded by the last hop switch, and determining the transmission delay according to the receiving and sending time in the IP message forwarded by the last hop switch.
In one embodiment, the method further comprises:
and responding to the situation that the dscp value corresponding to the IP message is not equal to the first preset value, and sequentially forwarding the IP message received from the previous hop of switch by each hop of switch.
In one embodiment, the step of adding the transceiving time of the packet to the received IP packet and forwarding the received IP packet to the next-hop switch by the switch per hop includes:
acquiring message receiving time and an input port identification by using an exchange chip inlet processing flow of the switch;
acquiring message sending time and an output port identifier by using an exchange chip outlet processing flow of the switch;
using the message receiving time and the inlet port identification as well as the message sending time and the outlet port identification as detection data, and encapsulating the detection data into an IP message;
and forwarding the IP message carrying the detection data to a next hop switch as a new message.
In one embodiment, the step of obtaining the IP packet forwarded by the last hop switch and determining the transmission delay according to the transceiving time in the IP packet forwarded by the last hop switch includes:
detecting whether the current switch is a last hop switch or not;
in response to the detection of the last hop switch, uploading an IP message sent by the last hop switch to a collector;
the collector receives and analyzes the IP message sent by the last hop switch to obtain detection data;
determining the message receiving time of a first hop switch and the message sending time of a last hop switch according to the detection data;
and taking the difference value of the message receiving time of the first hop switch and the message sending time of the last hop switch as the transmission delay.
In one embodiment, the method further comprises:
determining an inlet port identification and an outlet port identification of each hop switch according to the detection data;
and acquiring a serial sequence of the switches, and sequencing the inlet port identification and the outlet port identification of each hop switch according to the serial sequence to obtain a transmission path corresponding to the transmission delay.
In one embodiment, the method further comprises:
the method comprises the steps of obtaining the type of an IP message to be sent in advance;
responding to the fact that the IP message to be sent is a detection message, configuring the dscp of the message to be sent to a first preset value by the message sending equipment, and sending the IP message to be sent to a first hop switch;
and responding to that the IP message to be sent is a service message, configuring the dscp of the message to be sent to different second preset values by the message sending equipment, and sending the IP message to be sent to the first hop switch.
In one embodiment, the transceiving time of the message of each hop of switch is added to the end of the IP message forwarded by the current switch.
According to a second aspect of the present invention, there is provided a latency detection apparatus for a data center switch, the apparatus including:
the system comprises a switch configuration module, a data center and a data center, wherein the switch configuration module is used for configuring a plurality of switches of the data center into an open serial mode and configuring detection message identifications dscp of the switches into a first preset value;
the IP message receiving and analyzing module is used for sequentially receiving and analyzing the IP messages by the plurality of switches to determine dscp values corresponding to the IP messages and comparing the dscp values with a first preset value;
a receiving and sending time adding module, configured to add, by each hop of switch, the receiving and sending time of the packet to the received IP packet and forward the received IP packet to a next hop of switch when the dscp value corresponding to the IP packet is equal to a first preset value;
and the transmission delay determining module is used for acquiring the IP message forwarded by the last hop switch and determining the transmission delay according to the receiving and sending time in the IP message forwarded by the last hop switch.
According to a third aspect of the present invention, there is also provided a computer apparatus comprising:
at least one processor; and
the memory stores a computer program capable of running on the processor, and the processor executes the time delay detection method of the data center switch when executing the program.
According to a fourth aspect of the present invention, there is also provided a computer-readable storage medium storing a computer program, which when executed by a processor performs the aforementioned latency detection method for a data center switch.
According to the time delay detection method of the data center switch, the detection message identifications dscp of the switches are configured to be the first preset value, the messages received by the switches are analyzed, if the dscp value corresponding to the P message is equal to the first preset value, the receiving and sending time of the message is added to the received IP message by each hop of the switch and is forwarded to the next hop of the switch, the transmission time delay is further determined according to the receiving and sending time in the IP message forwarded by the last hop of the switch, the detection message is prevented from being identified by using a complex telemetry protocol, the deployment is simple and convenient, the development cost is low, and the detection result is stable and reliable.
In addition, the invention also provides a time delay detection device of the data center switch, a computer device and a computer readable storage medium, which can also realize the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for detecting a delay of a data center switch according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating IP packet forwarding in a Sink mode of a data center switch according to another embodiment of the present invention;
fig. 3 is a schematic diagram of a network networking configuration process of a data center switch according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a delay detection flow chart of a data center switch according to another embodiment of the present invention;
fig. 5 is a schematic diagram of a latency detecting apparatus of a data center switch according to another embodiment of the present invention;
fig. 6 is an internal structural view of a computer device in another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are only used for convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and no description is given in the following embodiments.
In an embodiment, referring to fig. 1, the present invention provides a method for detecting a delay of a data center switch, where the method includes:
s100, configuring a plurality of switches of a data center into an open series mode, and configuring detection message identifications dscp of the switches into a first preset value;
specifically, referring to fig. 2, the switching center is composed of a switch SW1, a switch SW2 and a switch SW3, and assuming that the Server1 is a device that sends an IP message, the Server2 is a destination receiving device, and a transmission sequence of the IP message is from left to right, that is, the switch SW1 is a first-hop switch, and the switch SW3 is a last-hop switch; dscp (Differentiated Services Code Point), i.e. Differentiated Services Code Point.
S200, a plurality of switches sequentially receive and analyze the IP messages to determine dscp values corresponding to the IP messages, and the dscp values are compared with a first preset value; for example, the Int Hrd of the IP packet usually includes a dcxp field, and the dcxp field records a dscp value.
S300, in response to that the dscp value corresponding to the IP message is equal to a first preset value, each hop of switch adds the message receiving and sending time to the received IP message and forwards the message to the next hop of switch; preferably, the sending and receiving time of the message of each hop of switch is added to the end of the IP message forwarded by the current switch.
S400, the IP message forwarded by the last hop switch is obtained, and the transmission delay is determined according to the receiving and sending time in the IP message forwarded by the last hop switch.
According to the time delay detection method of the data center switch, the detection message identifications dscp of the switches are configured to be the first preset value, the messages received by the switches are analyzed, if the dscp value corresponding to the P message is equal to the first preset value, the receiving and sending time of the message is added to the received IP message by each hop of the switch and is forwarded to the next hop of the switch, the transmission time delay is further determined according to the receiving and sending time in the IP message forwarded by the last hop of the switch, the detection message is prevented from being identified by using a complex telemetry protocol, the deployment is simple and convenient, the development cost is low, and the detection result is stable and reliable.
In another embodiment, in order to guarantee the normal service function of the switch, the method further comprises:
s500, in response to that the dscp value corresponding to the IP message is not equal to the first preset value, each hop of switch forwards the IP message received from the previous hop of switch in sequence. Therefore, the IP message with the dscp value not equal to the first preset value is regarded as a common service message, and the common service message is forwarded to the destination receiving equipment among the plurality of switches.
In another embodiment, the foregoing step S300 specifically includes the following sub-steps:
s310, acquiring message receiving time and an input port identification by using an exchange chip inlet processing flow of the switch;
s320, acquiring message sending time and an exit port identifier by using an exchange chip exit processing flow of the exchanger;
s330, using the message receiving time and the port identification as well as the message sending time and the port identification as detection data, and packaging the detection data into an IP message; wherein the probe data is denoted as MD.
For example, referring to table 1, table 1 is a probe data encapsulation format, rx _ Time is a message receiving Time, rx _ port is an ingress port identifier, tx _ Time is a message sending Time, and Tx _ por is an egress port identifier.
TABLE 1 Probe data packaging Format
And 340, forwarding the IP packet carrying the detection data to a next hop switch as a new packet.
In another embodiment, the step S400 specifically includes:
s410, detecting whether the current switch is a last hop switch or not;
s420, in response to the detection of the last hop switch, uploading an IP message sent by the last hop switch to a collector;
s430, the collector receives and analyzes the IP message sent by the last hop switch to obtain detection data;
s440, determining the message receiving time of a first hop switch and the message sending time of a last hop switch according to the detection data;
and S450, taking the difference value between the message receiving time of the first hop switch and the message sending time of the last hop switch as the transmission delay.
Preferably, on the basis of the foregoing embodiment, the method further comprises:
s610, determining an inlet port identifier and an outlet port identifier of each hop switch according to the detection data;
and S620, acquiring a serial sequence of the switches, and sequencing the inlet port identification and the outlet port identification of each hop switch according to the serial sequence to obtain a transmission path corresponding to the transmission delay.
In yet another embodiment, the method further comprises:
s710, acquiring the type of an IP message to be sent in advance;
s720, in response to that the IP message to be sent is a detection message, the message sending equipment configures the dscp of the message to be sent to a first preset value, and sends the IP message to be sent to a first hop switch;
and S730, in response to that the IP message to be sent is a service message, the message sending equipment configures the dscp of the message to be sent to different second preset values, and sends the IP message to be sent to a first hop switch.
In another embodiment, please refer to fig. 2 again, in order to facilitate understanding of the technical solution of the present invention, three switches are taken as an example for description below, assuming that the application scenario in the data is that Server1 is a mobile phone, server2 is a website Server, and assuming that Server1 sends an IP packet to Server2 through switch SW1 to switch SW3, specifically, the method for detecting the time delay of the data center switch includes the following steps:
step 1, firstly, network networking configuration is carried out; specifically, referring to fig. 3, the network networking configuration includes: starting Sink time delay detection from a switch SW1 to a switch SW3, and respectively configuring a switch ID (switch identification) from the switch SW1 to the switch SW3 for being used as a unique identification of the switch in a detection networking; configuring a uniform dscp (differential service code point) as a unique identifier of a detection message for a switch SW1 to a switch SW3, identifying the message received by the switch corresponding to the dscp (differential service code point) as the detection message, and processing the rest messages as common service messages; and finally, configuring the forwarding order of the switch, namely the switch SW1 is a first-hop switch, the switch SW2 is a second-hop switch, and the switch SW3 is a last-hop switch, wherein only the detection message of the switch SW3 can be uploaded to the collector, and the detection message of the enterprise switch does not need to be uploaded to the collector.
Step 2, the Server1 sends an IP message, the switch SW1 analyzes the IP message to determine whether the message belongs to a detection message or a service message, and corresponding operation is carried out according to the specific message type; specifically, referring to fig. 4, it is determined whether the dscp in the received IP packet matches the dscp of the configured probe packet: if the received ip message is not matched with the dscp (differential service code point) of the configured detection message, the ip message is regarded as a service message, and two-layer and three-layer forwarding is carried out according to the normal service message; if the received ip message is matched with the dscp of the configured detection message, the detection message is considered to be the detection message, the detection message needs to capture the timestamp of the receiving and sending direction step by step, and a detection field is packaged at the tail part of the original ip message;
step 3, if the IP message is identified as a detection message, a corresponding receiving timestamp and a corresponding entry direction port identification are marked when the exchange chip ingress is processed;
step 4, if the IP message is identified as a detection message, a corresponding sending timestamp and a corresponding output port identification are marked when the exchange chip is processed in the egress direction; the corresponding switches SW2 and SW3 also need to perform the above-mentioned steps 2-4
Step 5, judging whether the switch is the last hop switch or not; if the switch is not the last hop switch, the detection message is the same as the service message, and the detection message is normally forwarded by the second layer and the third layer; for example, neither the switch SW1 nor the switch SW2 is the last hop switch, and only the message forwarding in the normal process is needed; if the switch is the last hop switch, the detection message needs to be uploaded to a collector;
and 6, the collector receives the detection messages from the switch SW3, calculates the time delay of the whole path, and subtracts the sending time Tx _ time in the detection data (namely SW3 MD) of the last switch from the receiving Rx _ time in the detection data (namely SW1 MD) of the first-hop switch to obtain the transmission time delay of the whole path.
According to the time delay detection method of the data center switch, the switch takes a specific dscp) value in a specified IP message as a detection message identifier, when the switch receives a message corresponding to the dscp value, the message is identified as a network detection message, when the switch receives messages of other dscp values, the messages are identified as service messages, so that the detection message and the service messages are distinguished, the receiving and sending time is further encapsulated step by step at the tail of the original message belonging to the detection message, and the last hop switch sends the message to the collector, so that the time delay detection of the whole transmission path is realized.
In another embodiment, referring to fig. 5, the present invention provides a latency probe apparatus 80 for a data center switch, where the apparatus includes:
the switch configuration module 81 is configured to configure a plurality of switches of the data center to an open serial mode, and configure the detection packet identifiers dscp of the plurality of switches to a first preset value;
an IP packet receiving and parsing module 82, configured to receive and parse IP packets in sequence by multiple switches to determine a dscp value corresponding to the IP packet, and compare the dscp value with a first preset value;
a transceiving time adding module 83, configured to add, by each hop of switch, the transceiving time of the packet to the received IP packet and forward the packet to a next hop of switch when the dscp value corresponding to the IP packet is equal to the first preset value;
and a transmission delay determining module 84, configured to obtain the IP packet forwarded by the last hop switch, and determine a transmission delay according to the transceiving time in the IP packet forwarded by the last hop switch.
It should be noted that, for specific limitations of the latency detecting apparatus of the data center switch, reference may be made to the above limitations of the latency detecting method of the data center switch, and details are not described herein again. All or part of each module in the time delay detection device of the data center switch can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to another aspect of the present invention, a computer device is provided, and the computer device may be a server, and its internal structure is shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements the latency detection method for a data center switch described above.
According to yet another aspect of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the latency detection method of a data center switch described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (9)
1. A method for latency detection in a data center switch, the method comprising:
configuring a plurality of switches of a data center into an open series mode, and configuring detection message identifications dscp of the plurality of switches into a first preset value;
the method comprises the following steps that a plurality of switches sequentially receive and analyze IP messages to determine dscp values corresponding to the IP messages, and the dscp values are compared with a first preset value;
responding to that the dscp value corresponding to the IP message is equal to a first preset value, adding the receiving and sending time of the message to the received IP message by each hop of switch and forwarding the message to the next hop of switch;
acquiring an IP message forwarded by a last hop switch, and determining transmission delay according to the receiving and sending time in the IP message forwarded by the last hop switch;
the method further comprises the following steps:
the method comprises the steps of obtaining the type of an IP message to be sent in advance;
responding to the fact that the IP message to be sent is a detection message, configuring dscp of the IP message to be sent to a first preset value by the message sending equipment, and sending the IP message to be sent to a first hop switch;
and responding to that the IP message to be sent is a service message, configuring the dscp of the IP message to be sent to different second preset values by the message sending equipment, and sending the IP message to be sent to the first hop switch.
2. The method of claim 1, further comprising:
and responding to the situation that the dscp value corresponding to the IP message is not equal to the first preset value, and sequentially forwarding the IP message received from the switch of the previous hop by each hop of switch.
3. The method according to claim 1, wherein the step of adding the transceiving time of the packet to the received IP packet and forwarding to the next-hop switch by each-hop switch comprises:
acquiring message receiving time and an input port identification by using an exchange chip inlet processing flow of the switch;
acquiring message sending time and an output port identifier by using an exchange chip outlet processing flow of the switch;
using the message receiving time and the port inlet identification as well as the message sending time and the port outlet identification as detection data, and packaging the detection data into an IP message;
and forwarding the IP message carrying the detection data to a next hop switch as a new message.
4. The method according to claim 3, wherein the step of obtaining the IP packet forwarded by the last hop switch and determining the transmission delay according to the transceiving time in the IP packet forwarded by the last hop switch comprises:
detecting whether the current switch is a last hop switch or not;
in response to the detection of the last hop switch, uploading an IP message sent by the last hop switch to a collector;
the collector receives and analyzes the IP message sent by the last hop switch to obtain detection data;
determining the message receiving time of a first hop switch and the message sending time of a last hop switch according to the detection data;
and taking the difference value between the message receiving time of the first hop switch and the message sending time of the last hop switch as the transmission delay.
5. The method of claim 4, further comprising:
determining an inlet port identifier and an outlet port identifier of each hop switch according to the detection data;
and acquiring a serial sequence of the switches, and sequencing the inlet port identification and the outlet port identification of each hop switch according to the serial sequence to obtain a transmission path corresponding to the transmission delay.
6. The method of claim 1, wherein the sending/receiving time of the packet of each hop switch is added to the end of the IP packet forwarded by the current switch.
7. A latency detection apparatus for a data center switch, the apparatus comprising:
the system comprises a switch configuration module, a data center and a data center, wherein the switch configuration module is used for configuring a plurality of switches of the data center into an open serial mode and configuring detection message identifications dscp of the switches into a first preset value;
the IP message receiving and analyzing module is used for sequentially receiving and analyzing the IP messages by the plurality of switches to determine dscp values corresponding to the IP messages and comparing the dscp values with a first preset value;
a receiving and sending time adding module, configured to add, by each hop of switch, the receiving and sending time of the packet to the received IP packet and forward the received IP packet to a next hop of switch when the dscp value corresponding to the IP packet is equal to a first preset value;
the transmission delay determining module is used for acquiring the IP message forwarded by the last hop switch and determining the transmission delay according to the receiving and sending time in the IP message forwarded by the last hop switch;
the apparatus further comprises a model for performing the steps of:
the method comprises the steps of obtaining the type of an IP message to be sent in advance;
responding to the fact that the IP message to be sent is a detection message, configuring dscp of the IP message to be sent to a first preset value by the message sending equipment, and sending the IP message to be sent to a first hop switch;
and responding to that the IP message to be sent is a service message, configuring the dscp of the IP message to be sent to different second preset values by the message sending equipment, and sending the IP message to be sent to the first hop switch.
8. A computer device, comprising:
at least one processor; and
a memory storing a computer program operable in the processor, the processor when executing the program performing the method of any of claims 1-6.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011446272.6A CN112491661B (en) | 2020-12-11 | 2020-12-11 | Time delay detection method, device, equipment and medium for data center switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011446272.6A CN112491661B (en) | 2020-12-11 | 2020-12-11 | Time delay detection method, device, equipment and medium for data center switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112491661A CN112491661A (en) | 2021-03-12 |
CN112491661B true CN112491661B (en) | 2022-12-13 |
Family
ID=74941662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011446272.6A Active CN112491661B (en) | 2020-12-11 | 2020-12-11 | Time delay detection method, device, equipment and medium for data center switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112491661B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113037657B (en) * | 2021-03-23 | 2022-09-06 | 北京汇钧科技有限公司 | Traffic scheduling method and device, electronic equipment and computer readable medium |
CN113242158B (en) * | 2021-05-10 | 2022-11-29 | 上海华讯网络系统有限公司 | Real-time monitoring method and system based on switch hardware timestamp |
CN115396345A (en) * | 2021-05-25 | 2022-11-25 | 华为云计算技术有限公司 | Flow measuring method, device and related equipment |
CN114422213B (en) * | 2021-12-31 | 2023-07-25 | 南京邮电大学 | INT-based abnormal flow detection method and device |
CN115277698B (en) * | 2022-07-20 | 2024-01-16 | 福州大学 | Reliability-based telemetry collection scheme deployment method |
CN115914038B (en) * | 2022-11-11 | 2024-04-09 | 中国联合网络通信集团有限公司 | Degradation forwarding device detection method, device, equipment and storage medium |
CN116938777B (en) * | 2023-09-14 | 2023-11-21 | 中移(苏州)软件技术有限公司 | Network telemetry method and device, electronic equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111769998A (en) * | 2019-08-13 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Method and device for detecting network delay state |
-
2020
- 2020-12-11 CN CN202011446272.6A patent/CN112491661B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111769998A (en) * | 2019-08-13 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Method and device for detecting network delay state |
Also Published As
Publication number | Publication date |
---|---|
CN112491661A (en) | 2021-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112491661B (en) | Time delay detection method, device, equipment and medium for data center switch | |
US20220086073A1 (en) | Data packet detection method, device, and system | |
US11272396B2 (en) | Frame aggregation method, network setting frame sending method, and device | |
CN110995583B (en) | Path detection method, path detection device and computer storage medium | |
US11888744B2 (en) | Spin-leaf network congestion control method, node, system, and storage medium | |
CN110691375B (en) | Selection method, selection device and computer storage medium | |
CN110708763B (en) | Scheduling method, device and computer storage medium | |
CN112787951A (en) | Congestion control method, device, equipment and computer readable storage medium | |
US20240048479A1 (en) | Packet Forwarding Method and Apparatus, Network Device, and Storage Medium | |
US20240106751A1 (en) | Method and apparatus for processing detnet data packet | |
US20230091414A1 (en) | Packet Processing Method, Device, and System | |
CN111343688A (en) | Relay communication method and device for wireless network, computer equipment and storage medium | |
CN110662250B (en) | Information processing method, related device and storage medium | |
CN101341692B (en) | Admission control using backup link based on access network in Ethernet | |
CN110290130B (en) | VOLTE data transmission method and device, access network equipment and storage medium | |
CN115396345A (en) | Flow measuring method, device and related equipment | |
CN113179172B (en) | Method, device and system for training fault detection model | |
CN111211977B (en) | Ship communication method and system supporting external multi-heterogeneous channel connection | |
EP4398534A1 (en) | Network monitoring method and apparatus, and computer storage medium | |
US11582156B2 (en) | Traffic detection method, apparatus, and system | |
CN115002808A (en) | Information forwarding method, device, equipment and storage medium | |
CN111490941B (en) | Multi-protocol label switching MPLS label processing method and network equipment | |
CN116668375B (en) | Message distribution method, device, network equipment and storage medium | |
WO2023206165A1 (en) | Multicast data message sending method and apparatus, and device and storage medium | |
WO2023011006A1 (en) | Communication method and apparatus, and device |
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 |