CN110932931A - Detection method and device for network delay of data center - Google Patents

Detection method and device for network delay of data center Download PDF

Info

Publication number
CN110932931A
CN110932931A CN201911108326.5A CN201911108326A CN110932931A CN 110932931 A CN110932931 A CN 110932931A CN 201911108326 A CN201911108326 A CN 201911108326A CN 110932931 A CN110932931 A CN 110932931A
Authority
CN
China
Prior art keywords
server
data packet
virtual machine
timestamp information
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911108326.5A
Other languages
Chinese (zh)
Inventor
夏宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suning Cloud Computing Co Ltd
Original Assignee
Suning Cloud Computing 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 Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN201911108326.5A priority Critical patent/CN110932931A/en
Publication of CN110932931A publication Critical patent/CN110932931A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for detecting network delay of a data center, relates to the technical field of network detection, and can accurately acquire end-to-end one-way delay data of a network layer. The method comprises the following steps: synchronizing clock sources in a first virtual machine, a first server, a second server and a second virtual machine in a data center; sending a data packet through a first virtual machine, sequentially transmitting the data packet to a second virtual machine through a first server and a second server to receive the data packet, wherein the data packet is guaranteed to comprise timestamp information and zone bit information; acquiring delay data transmitted by the data packet in each section of path based on timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively; and comparing the delay data of each section of path with the time threshold of the corresponding path to obtain the network delay detection result of each section of path. The device is applied with the method provided by the scheme.

Description

Detection method and device for network delay of data center
Technical Field
The present invention relates to the field of network detection technologies, and in particular, to a method and an apparatus for detecting network delay in a data center.
Background
At present, cloud computing virtualization is widely used in data centers of enterprises, services of users are deployed in virtual machines, and a plurality of virtual machines are connected through a virtual network and a physical network, so that the complexity degree of the cloud computing virtualization is far higher than that of a traditional data center network. When a service borne by the network is delayed, whether the delay occurs on a virtual network or a physical network needs to be judged, an active detection method is mostly adopted for existing network delay detection, for example, a Ping method is used for acquiring a bidirectional delay of a path, but the Ping method is used for detecting the network delay, so that the following problems exist:
the Ping method cannot acquire end-to-end one-way delay, and the round-trip path of the data stream in the virtualized scene is often not fixed, and whether delay exists in a certain path cannot be judged. And the active detection mode has time-dependent limitation, and can only be used for judging whether delay exists at the detection time point, and cannot be used as a basis for judging whether network delay exists in a service data packet during service delay.
Disclosure of Invention
The invention aims to provide a method and a device for detecting network delay of a data center, which can accurately acquire end-to-end one-way delay data of a network layer.
In order to achieve the above object, an aspect of the present invention provides a method for detecting network latency of a data center, where the data center includes at least a first server and a first virtual machine provided in the first server, a second server and a second virtual machine provided in the second server, and the method includes:
synchronizing clock sources in a first virtual machine, a first server, a second server and a second virtual machine in a data center;
sending a data packet through a first virtual machine, sequentially transmitting the data packet to a second virtual machine through a first server and a second server to receive the data packet, wherein the data packet is guaranteed to comprise timestamp information and zone bit information;
acquiring delay data transmitted by the data packet in each section of path based on timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively;
and comparing the delay data of each section of path with the time threshold of the corresponding path to obtain the network delay detection result of each section of path.
Preferably, before the step of sending the data packet by the first virtual machine, and sequentially transmitting the data packet to the second virtual machine through the first server and the second server to receive the data packet, the method further includes:
and respectively setting detection points in the first virtual machine, the first server, the second server and the second virtual machine, wherein the detection points are used for capturing timestamp information and flag bit information when the data packet passes.
Preferably, the IP header of the data packet adopts a multiplexing IP protocol header, and the IP header includes an ident field, a CE flag bit field, and a DF flag bit field; wherein the content of the first and second substances,
the ident field is used for adding timestamp information of a data packet, the CE flag bit field is used for marking whether the timestamp information of the data packet is added or not, and the DF flag bit field is used for marking whether the timestamp information of the data packet can be added or not.
Further, a data packet is sent by a first virtual machine and is transmitted to a second virtual machine to receive the data packet sequentially through a first server and a second server, and the method for guaranteeing that the data packet comprises timestamp information and zone bit information comprises the following steps:
the first virtual machine sends a data packet, detects whether a DF flag bit field in the data packet is empty through a corresponding detection point, inserts timestamp information S1 in an ident field when the DF flag bit field is not empty, and modifies a CE flag bit field to be non-empty;
the first server receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures timestamp information S1 in an ident field when the CE flag bit field is not empty, and simultaneously records timestamp information S2 of the current moment;
replacing the timestamp information S1 of the ident field in the data packet with timestamp information S2 and then sending the data packet through the first server;
the second server receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures timestamp information S2 in an ident field when the CE flag bit field is not empty, and simultaneously records timestamp information S3 of the current moment;
replacing the timestamp information S2 of the ident field in the data packet with timestamp information S3 and then sending the data packet through a second server;
and the second virtual machine receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures the timestamp information S3 in the ident field when the CE flag bit field is not empty, and simultaneously records the timestamp information S4 of the current time.
Preferably, the method for acquiring the delay data transmitted by the data packet on each segment of the path based on the timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively comprises:
differencing the timestamp information S2 with the timestamp information S1 to calculate delay data T1 for the first virtual machine to the first server path;
calculating delay data T2 of the first server to the second server path by subtracting the time stamp information S3 and the time stamp information S2;
differencing the timestamp information S4 with the timestamp information S3 calculates delay data T3 for the second server to second virtual machine path.
Optionally, the method for synchronizing the clock sources of the first virtual machine, the first server, the second server, and the second virtual machine in the data center includes:
and a microsecond time synchronization mechanism is selected for synchronizing clock sources of the first virtual machine, the first server, the second server and the second virtual machine in the data center.
Optionally, the ident field occupies a first 15-bit field of the IP header, the CE flag field occupies a 16-bit field of the IP header, and the DF flag field occupies a 17-bit field of the IP header.
Compared with the prior art, the detection method for the network delay of the data center has the following beneficial effects:
the invention provides a method for detecting data center network delay, which divides an end-to-end data center network into a virtual network and a physical network, namely dividing the network between a first virtual machine and a first server and between a second server and a second virtual machine into the virtual network, dividing the network between the first server and the second server into the physical network, then adopting a time synchronization mechanism to synchronize clock sources in the first virtual machine, the first server, the second server and the second virtual machine in the data center, then utilizing the first virtual machine to send a data packet, sequentially transmitting the data packet to the second virtual machine through the first server and the second server to receive the data packet, and calculating the data packet from the first virtual machine to the first server by capturing time stamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively, the delay data transmitted from the first-stage virtual network path, the delay data transmitted from the first server to the second server, namely the delay data transmitted from the physical network path, and the delay data transmitted from the second server to the second virtual machine, namely the delay data transmitted from the second-stage virtual network path, respectively compare the delay data of the first-stage virtual network, the physical network and the second-stage virtual network with a preset time threshold value of a corresponding path, indicate the network delay of the corresponding path when the delay data exceeds the time threshold value, and indicate that the network delay of the corresponding path does not delay when the delay data does not exceed the time threshold value.
Compared with the bidirectional path network detection method adopted in the prior art, the method has the advantages that the detection result is more accurate, the detection range is more accurate, the delay detection result of each path network can be accurately obtained, and the network layer end-to-end unidirectional delay data can be obtained.
Another aspect of the present invention provides a device for detecting a data center network delay, to which the method for detecting a data center network delay mentioned in the above technical solution is applied, where the device includes:
the clock synchronization unit is used for synchronizing clock sources in a first virtual machine, a first server, a second server and a second virtual machine in the data center;
the data packet detection unit is used for sending a data packet through the first virtual machine, transmitting the data packet to the second virtual machine through the first server and the second server in sequence and receiving the data packet, wherein the data packet is guaranteed to comprise timestamp information and zone bit information;
the delay calculation unit is used for acquiring delay data transmitted by the data packet in each section of path based on the timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively;
and the delay output unit is used for comparing the delay data of each section of path with the time threshold of the corresponding path to obtain the network delay detection result of each section of path.
Preferably, the method further comprises the following steps:
and the detection point setting unit is used for respectively setting detection points in the first virtual machine, the first server, the second server and the second virtual machine, and the detection points are used for capturing timestamp information and flag bit information when the data packet passes.
Compared with the prior art, the beneficial effects of the detection device for the data center network delay provided by the invention are the same as the beneficial effects of the detection method for the data center network delay provided by the technical scheme, and are not repeated herein.
A third aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the above-described method for detecting a data center network delay.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the invention are the same as the beneficial effects of the detection method for the data center network delay provided by the technical scheme, and are not repeated herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic flow chart illustrating a method for detecting network delay in a data center according to an embodiment;
FIG. 2 is a schematic diagram illustrating the locations of the CE flag bit field and the DF flag bit field in the IP protocol header according to an embodiment;
FIG. 3 is a schematic diagram illustrating the location of timestamp information in an IP protocol header according to an embodiment;
FIG. 4 is a schematic diagram of a network path of a data center in an embodiment;
fig. 5 is an exemplary diagram illustrating adding and analyzing timestamp information in a packet sending process of the first virtual machine network card driver in the embodiment.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1 and fig. 4, the present embodiment provides a method for detecting network latency of a data center, where the data center at least includes a first server and a first virtual machine disposed in the first server, and a second server and a second virtual machine disposed in the second server, and the method includes: synchronizing clock sources in a first virtual machine, a first server, a second server and a second virtual machine in a data center; sending a data packet through a first virtual machine, sequentially transmitting the data packet to a second virtual machine through a first server and a second server to receive the data packet, wherein the data packet is guaranteed to comprise timestamp information and zone bit information; acquiring delay data transmitted by the data packet in each section of path based on timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively; and comparing the delay data of each section of path with the time threshold of the corresponding path to obtain the network delay detection result of each section of path.
In the method for detecting data center network delay provided by this embodiment, an end-to-end data center network is divided into a virtual network and a physical network, that is, a network between a first virtual machine and a first server and a network between a second server and a second virtual machine are divided into virtual networks, a network between the first server and the second server is divided into a physical network, then a time synchronization mechanism is used to synchronize clock sources in the first virtual machine, the first server, the second server and the second virtual machine in the data center, then a data packet is sent by the first virtual machine and is sequentially transmitted to the second virtual machine through the first server and the second server to receive the data packet, the time stamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine is captured, so that the data packet can be calculated from the first virtual machine to the first server, that is, the delay data transmitted by the first stage virtual network path (e.g., labeled 1 in fig. 4), the delay data transmitted from the first server to the second server, that is, the physical network path (e.g., labeled 2 in fig. 4), and the delay data transmitted by the second server to the second virtual machine, that is, the second stage virtual network path (e.g., labeled 3 in fig. 4) respectively compare the delay data of the first stage virtual network, the physical network, and the second stage virtual network with the preset time threshold of the corresponding path, indicate the network delay of the corresponding path when the delay data exceeds the time threshold, and indicate that the network of the corresponding path does not delay when the delay data does not exceed the time threshold.
It can be seen that, in the embodiment, the unidirectional segmented path network delay detection method is adopted, and compared with a bidirectional path network detection method adopted in the prior art, the detection result is more accurate, the detection range is more accurate, and the delay detection result of each segment of path network can be accurately obtained to obtain the network layer end-to-end unidirectional delay data. The link delay of each data packet can be accurately calculated by adopting the time stamp information carried by the data packet. It is to be understood that the end-to-end refers to a path network from the first virtual machine to the second virtual machine.
In the above embodiment, before the step of sending the data packet by the first virtual machine, and sequentially transmitting the data packet to the second virtual machine through the first server and the second server to receive the data packet, the method further includes:
and respectively setting detection points in the first virtual machine, the first server, the second server and the second virtual machine, wherein the detection points are used for capturing timestamp information and flag bit information when the data packet passes.
In specific implementation, a detection point arranged in the first virtual machine is used for monitoring a network card driver packet sending process of the first virtual machine, a detection point arranged in the first server is used for monitoring a network card driver packet sending process of the first server, a detection point arranged in the second server is used for monitoring a network card driver packet receiving process of the second server, and a detection point arranged in the second virtual machine is used for monitoring a network card driver packet receiving process of the second virtual machine.
Referring to fig. 2 and fig. 3, for example, the IP header of the data packet adopts a multiplexing IP protocol header, and the IP header includes an ident field, a CE flag bit field, and a DF flag bit field; the ident field is used for adding timestamp information of the data packet, the CE flag bit field is used for marking whether the timestamp information of the data packet is added or not, and the DF flag bit field is used for marking whether the timestamp information of the data packet can be added or not. The ident field is also called a segment identifier, the CE flag bit field is also called a protocol reserved flag bit, the DF flag bit field is also called a forbidden segment flag bit, the ident field occupies the first 15 bit field of the IP header, the CE flag bit field occupies the 16 th bit field of the IP header, and the DF flag bit field occupies the 17 th bit field of the IP header. By adding the timestamp information in the ident field of the data packet, the data packet can be compatible with a TCP/IP network protocol without influencing the compatibility of services and network forwarding equipment.
In the above embodiment, the method for sending the data packet by the first virtual machine and transmitting the data packet to the second virtual machine through the first server and the second server in sequence to receive the data packet includes:
the first virtual machine sends a data packet, detects whether a DF flag bit field in the data packet is empty through a corresponding detection point, inserts timestamp information S1 in an ident field when the DF flag bit field is not empty, and modifies a CE flag bit field to be non-empty; the first server receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures timestamp information S1 in an ident field when the CE flag bit field is not empty, and simultaneously records timestamp information S2 of the current moment; replacing the timestamp information S1 of the ident field in the data packet with timestamp information S2 and then sending the data packet through the first server; the second server receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures timestamp information S2 in an ident field when the CE flag bit field is not empty, and simultaneously records timestamp information S3 of the current moment; replacing the timestamp information S2 of the ident field in the data packet with timestamp information S3 and then sending the data packet through a second server; and the second virtual machine receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures the timestamp information S3 in an ident field when the CE flag bit field is not empty, and simultaneously records the timestamp information S4 of the current time.
The method for acquiring the delay data transmitted by the data packet in each section of path based on the time stamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively comprises the following steps:
differencing the timestamp information S2 with the timestamp information S1 to calculate delay data T1 for the first virtual machine to the first server path; calculating delay data T2 of the first server to the second server path by subtracting the time stamp information S3 and the time stamp information S2; differencing the timestamp information S4 with the timestamp information S3 calculates delay data T3 for the second server to second virtual machine path.
In a specific implementation, in the process of sending a packet by the network card driver of the first virtual machine, please refer to fig. 5, a detection point provided in the first virtual machine first detects whether a DF flag bit field of the IP header of the packet is empty, that is, determines whether "DF ═ 0" is true, if not, it indicates that timestamp information S1 can be inserted into the ident field, and at the same time, modifies the CE flag bit field to be non-empty, that is, "CE ═ 1", otherwise, "DF ═ 1" indicates that the ident field is occupied, and timestamp information cannot be inserted again, and "CE ═ 0" indicates that the timestamp information has been added, and there is no need to insert timestamp information.
Then, the first server receives a data packet sent by a first virtual machine network card driver, a corresponding detection point detects whether a CE flag bit field in the data packet is empty, if the CE flag bit field is non-empty, namely 'CE is 1', time stamp information S1 of an ident field in the data packet is captured, and time stamp information S2 of the current time is recorded, and at the moment, delay data transmitted by a first-stage virtual network path is calculated by using a formula T1 which is S2-S1; then the time stamp information S1 of the ident field in the data packet is replaced by the time stamp information S2 and the driving and packet sending process is executed by the first server network card.
Next, receiving a data packet sent by a network card driver of the first server by the second server, detecting whether a CE flag bit field in the data packet is empty or not corresponding to a detection point, if the CE flag bit field is non-empty, namely 'CE is 1', capturing timestamp information S2 of an ident field in the data packet, and simultaneously recording timestamp information S3 of the current time, wherein at the moment, delay data transmitted by a physical network path is calculated by using a formula T2 which is S3-S2; then the timestamp information S2 of the ident field in the data packet is replaced with the timestamp information S3 and the driver packet sending process is performed by the second server network card.
And then, receiving a data packet transmitted by a second server network card driver by a second virtual machine, detecting whether a CE flag bit field in the data packet is empty or not according to a corresponding detection point, if the CE flag bit field is not empty, namely 'CE is 1', capturing timestamp information S3 of an ident field in the data packet, and simultaneously recording timestamp information S4 of the current time, wherein at the moment, delayed data transmitted by a physical network path is calculated by using a formula T3 which is S4-S3.
Optionally, the method for synchronizing clock sources of the first virtual machine, the first server, the second server, and the second virtual machine in the data center in the foregoing embodiment includes:
and a microsecond time synchronization mechanism is selected for synchronizing clock sources of the first virtual machine, the first server, the second server and the second virtual machine in the data center. For example, clock synchronization is performed using chronoy under Linux.
Illustratively, the time threshold of the first-stage virtual network path is 1 ms, the time threshold of the physical network path is 10 ms, and the time threshold of the second-stage virtual network path is 1 s.
Example two
The embodiment provides a device for detecting network delay of a data center, where the data center at least includes a first server and a first virtual machine disposed in the first server, and a second server and a second virtual machine disposed in the second server, and the device is characterized by comprising:
the clock synchronization unit is used for synchronizing clock sources in a first virtual machine, a first server, a second server and a second virtual machine in the data center;
the data packet detection unit is used for sending a data packet through the first virtual machine, transmitting the data packet to the second virtual machine through the first server and the second server in sequence and receiving the data packet, wherein the data packet is guaranteed to comprise timestamp information and zone bit information;
the delay calculation unit is used for acquiring delay data transmitted by the data packet in each section of path based on the timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively;
and the delay output unit is used for comparing the delay data of each section of path with the time threshold of the corresponding path to obtain the network delay detection result of each section of path.
Preferably, the method further comprises the following steps:
and the detection point setting unit is used for respectively setting detection points in the first virtual machine, the first server, the second server and the second virtual machine, and the detection points are used for capturing timestamp information and flag bit information when the data packet passes.
Compared with the prior art, the beneficial effects of the detection apparatus for data center network delay provided by this embodiment are the same as those of the detection method for data center network delay provided by the above embodiment, and are not described herein again.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the above-mentioned method for detecting data center network delay.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this embodiment are the same as the beneficial effects of the detection method for data center network delay provided by the above technical solution, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the invention may be implemented by hardware that is instructed to be associated with a program, the program may be stored in a computer-readable storage medium, and when the program is executed, the program includes the steps of the method of the embodiment, and the storage medium may be: ROM/RAM, magnetic disks, optical disks, memory cards, and the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for detecting network latency of a data center, the data center including at least a first server and a first virtual machine provided in the first server, a second server and a second virtual machine provided in the second server, the method comprising:
synchronizing clock sources in a first virtual machine, a first server, a second server and a second virtual machine in a data center;
sending a data packet through a first virtual machine, sequentially transmitting the data packet to a second virtual machine through a first server and a second server to receive the data packet, wherein the data packet is guaranteed to comprise timestamp information and zone bit information;
acquiring delay data transmitted by the data packet in each section of path based on timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively;
and comparing the delay data of each section of path with the time threshold of the corresponding path to obtain the network delay detection result of each section of path.
2. The method of claim 1, wherein before the step of sending the data packet by the first virtual machine, and sequentially passing through the first server and the second server to the second virtual machine to receive the data packet, the method further comprises:
and respectively setting detection points in the first virtual machine, the first server, the second server and the second virtual machine, wherein the detection points are used for capturing timestamp information and flag bit information when the data packet passes.
3. The method according to claim 1 or 2, wherein an IP header of the data packet adopts a multiplexing IP protocol header, and the IP header comprises an ident field, a CE flag bit field and a DF flag bit field; wherein the content of the first and second substances,
the ident field is used for adding timestamp information of a data packet, the CE flag bit field is used for marking whether the timestamp information of the data packet is added or not, and the DF flag bit field is used for marking whether the timestamp information of the data packet can be added or not.
4. The method of claim 3, wherein the sending of the data packet by the first virtual machine, and the sending of the data packet to the second virtual machine via the first server and the second server in sequence, comprises:
the first virtual machine sends a data packet, detects whether a DF flag bit field in the data packet is empty through a corresponding detection point, inserts timestamp information S1 in an ident field when the DF flag bit field is not empty, and modifies a CE flag bit field to be non-empty;
the first server receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures timestamp information S1 in an ident field when the CE flag bit field is not empty, and simultaneously records timestamp information S2 of the current moment;
replacing the timestamp information S1 of the ident field in the data packet with timestamp information S2 and then sending the data packet through the first server;
the second server receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures timestamp information S2 in an ident field when the CE flag bit field is not empty, and simultaneously records timestamp information S3 of the current moment;
replacing the timestamp information S2 of the ident field in the data packet with timestamp information S3 and then sending the data packet through a second server;
and the second virtual machine receives the data packet, detects whether a CE flag bit field in the data packet is empty through a corresponding detection point, captures the timestamp information S3 in the ident field when the CE flag bit field is not empty, and simultaneously records the timestamp information S4 of the current time.
5. The method of claim 4, wherein the obtaining the delay data transmitted by the data packet in each segment of the path based on the time stamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine comprises:
differencing the timestamp information S2 with the timestamp information S1 to calculate delay data T1 for the first virtual machine to the first server path;
calculating delay data T2 of the first server to the second server path by subtracting the time stamp information S3 and the time stamp information S2;
differencing the timestamp information S4 with the timestamp information S3 calculates delay data T3 for the second server to second virtual machine path.
6. A method according to any one of claims 3 to 5, wherein the method of synchronizing the first virtual machine, the first server, the second server and the second virtual machine clock source in the data center comprises:
and a microsecond time synchronization mechanism is selected for synchronizing clock sources of the first virtual machine, the first server, the second server and the second virtual machine in the data center.
7. The method according to any one of claims 3-5, wherein the ident field occupies the first 15 bits of the IP header, the CE flag field occupies the 16 th bit of the IP header, and the DF flag field occupies the 17 th bit of the IP header.
8. A device for detecting network latency of a data center, the data center including at least a first server and a first virtual machine provided in the first server, a second server and a second virtual machine provided in the second server, the device comprising:
the clock synchronization unit is used for synchronizing clock sources in a first virtual machine, a first server, a second server and a second virtual machine in the data center;
the data packet detection unit is used for sending a data packet through the first virtual machine, transmitting the data packet to the second virtual machine through the first server and the second server in sequence and receiving the data packet, wherein the data packet is guaranteed to comprise timestamp information and zone bit information;
the delay calculation unit is used for acquiring delay data transmitted by the data packet in each section of path based on the timestamp information of the data packet in the first virtual machine, the first server, the second server and the second virtual machine respectively;
and the delay output unit is used for comparing the delay data of each section of path with the time threshold of the corresponding path to obtain the network delay detection result of each section of path.
9. The apparatus of claim 8, further comprising:
and the detection point setting unit is used for respectively setting detection points in the first virtual machine, the first server, the second server and the second virtual machine, and the detection points are used for capturing timestamp information and flag bit information when the data packet passes.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 7.
CN201911108326.5A 2019-11-13 2019-11-13 Detection method and device for network delay of data center Pending CN110932931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911108326.5A CN110932931A (en) 2019-11-13 2019-11-13 Detection method and device for network delay of data center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911108326.5A CN110932931A (en) 2019-11-13 2019-11-13 Detection method and device for network delay of data center

Publications (1)

Publication Number Publication Date
CN110932931A true CN110932931A (en) 2020-03-27

Family

ID=69852916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911108326.5A Pending CN110932931A (en) 2019-11-13 2019-11-13 Detection method and device for network delay of data center

Country Status (1)

Country Link
CN (1) CN110932931A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585834A (en) * 2020-04-14 2020-08-25 中国联合网络通信集团有限公司 Network information storage method and device
CN112904932A (en) * 2021-05-08 2021-06-04 鹏城实验室 Clock synchronization method, board card, computer storage medium and terminal equipment
CN113794655A (en) * 2020-07-17 2021-12-14 北京京东尚科信息技术有限公司 Flow monitoring method and device, computer storage medium and electronic equipment
CN114567579A (en) * 2022-03-01 2022-05-31 武汉心驰神往科技有限公司 Frame synchronization global quality monitoring method and device and readable access medium
CN116264732A (en) * 2021-12-14 2023-06-16 诺基亚技术有限公司 Time synchronization using markers

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689286A (en) * 2002-09-05 2005-10-26 诺基亚公司 Signal propagation delay routing
WO2011096859A1 (en) * 2010-02-04 2011-08-11 Telefonaktiebolaget L M Ericsson (Publ) Network performance monitor for virtual machines
CN104025549A (en) * 2012-12-18 2014-09-03 英特尔公司 Techniques associated with server transaction latency information
CN104184534A (en) * 2014-09-09 2014-12-03 桂林电子科技大学 Method for achieving accuracy of transparent clock path delay of IEEE1588 protocol
CN105052082A (en) * 2013-03-15 2015-11-11 瑞典爱立信有限公司 Hypervisor and physical machine and respective methods therein for performance measurement
CN107996023A (en) * 2016-11-23 2018-05-04 华为技术有限公司 Monitor method, equipment and the Virtual Networking System of virtual network
CN110399623A (en) * 2018-04-25 2019-11-01 全球能源互联网研究院有限公司 The non real-time HWIL simulation synchronous method of electric network information physics emerging system and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689286A (en) * 2002-09-05 2005-10-26 诺基亚公司 Signal propagation delay routing
WO2011096859A1 (en) * 2010-02-04 2011-08-11 Telefonaktiebolaget L M Ericsson (Publ) Network performance monitor for virtual machines
CN104025549A (en) * 2012-12-18 2014-09-03 英特尔公司 Techniques associated with server transaction latency information
CN105052082A (en) * 2013-03-15 2015-11-11 瑞典爱立信有限公司 Hypervisor and physical machine and respective methods therein for performance measurement
CN104184534A (en) * 2014-09-09 2014-12-03 桂林电子科技大学 Method for achieving accuracy of transparent clock path delay of IEEE1588 protocol
CN107996023A (en) * 2016-11-23 2018-05-04 华为技术有限公司 Monitor method, equipment and the Virtual Networking System of virtual network
CN110399623A (en) * 2018-04-25 2019-11-01 全球能源互联网研究院有限公司 The non real-time HWIL simulation synchronous method of electric network information physics emerging system and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111585834A (en) * 2020-04-14 2020-08-25 中国联合网络通信集团有限公司 Network information storage method and device
CN113794655A (en) * 2020-07-17 2021-12-14 北京京东尚科信息技术有限公司 Flow monitoring method and device, computer storage medium and electronic equipment
CN112904932A (en) * 2021-05-08 2021-06-04 鹏城实验室 Clock synchronization method, board card, computer storage medium and terminal equipment
CN116264732A (en) * 2021-12-14 2023-06-16 诺基亚技术有限公司 Time synchronization using markers
CN116264732B (en) * 2021-12-14 2024-03-22 诺基亚技术有限公司 Apparatus and method for time synchronization using markers
CN114567579A (en) * 2022-03-01 2022-05-31 武汉心驰神往科技有限公司 Frame synchronization global quality monitoring method and device and readable access medium

Similar Documents

Publication Publication Date Title
CN110932931A (en) Detection method and device for network delay of data center
CN107508719B (en) Method and device for measuring network time delay and network node
US10887211B2 (en) Indirect packet classification timestamping system and method
US20160191184A1 (en) Time synchronization for network testing equipment
EP2062399B1 (en) Method and apparatus for transmitting transport stream packets
CN107995503B (en) Audio and video playing method and device
CN112491652B (en) Network flow sample processing method and device for testing
CN111162971B (en) Time delay determination method and device
CN113472900B (en) Message processing method, device, storage medium and computer program product
WO2017112260A1 (en) Technologies for sideband performance tracing of network traffic
US20140293825A1 (en) Timestamping data packets
WO2019128869A1 (en) Flexible ethernet delay measurement method and related device
CN108737006A (en) A kind of method for synchronizing time, client and computer readable storage medium
CN111385163A (en) Flow analysis and detection method and device
JP2003101502A (en) Multiplexing transmission system and apparatus
CN108183762B (en) The method for synchronizing time of RapidIO network system and RapidIO network system
CN111416751A (en) Method and device for calculating port forwarding time delay
CN112751637B (en) Time delay calculation method, related equipment and system
CN101316161B (en) Synchronous indication method and system for distributed video
EP2106640B1 (en) Method for packet-switching transmission of media data and device for processing media data
CN109995453B (en) Information processing method, device, equipment and computer readable storage medium
EP3223478A1 (en) Packet processing method and device, and storage medium
JP2006295930A (en) Asynchronous frame transmission method for strictly ensuring beginning of super frame in residential ethernet(r)
CN116781975B (en) Media stream detection method, device, terminal equipment and storage medium
CN113364646B (en) Method, device and system for determining round-trip delay, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327