CN110505112B - Network performance monitoring method, device and storage medium - Google Patents

Network performance monitoring method, device and storage medium Download PDF

Info

Publication number
CN110505112B
CN110505112B CN201910616452.5A CN201910616452A CN110505112B CN 110505112 B CN110505112 B CN 110505112B CN 201910616452 A CN201910616452 A CN 201910616452A CN 110505112 B CN110505112 B CN 110505112B
Authority
CN
China
Prior art keywords
data
int
transmission
data stack
message
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
CN201910616452.5A
Other languages
Chinese (zh)
Other versions
CN110505112A (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.)
Xingrongyuan Data Technology Suzhou Co ltd
Original Assignee
Xingrongyuan Data Technology Suzhou 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 Xingrongyuan Data Technology Suzhou Co ltd filed Critical Xingrongyuan Data Technology Suzhou Co ltd
Priority to CN201910616452.5A priority Critical patent/CN110505112B/en
Publication of CN110505112A publication Critical patent/CN110505112A/en
Application granted granted Critical
Publication of CN110505112B publication Critical patent/CN110505112B/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

Abstract

The invention discloses a network performance monitoring method, a network performance monitoring device and a storage medium, which are used for reducing the length of a service message for transmitting INT metadata, reducing the transmission time of the service message and saving the link bandwidth overhead. The network performance monitoring method comprises the following steps: receiving a service message, wherein the service message comprises an in-band network telemetry INT data packet header, a first data stack and a second data stack, the first data stack comprises the sum of data transmission performance parameters of each transmission device on a service message transmission path, and the second data stack comprises the data transmission performance parameters of bottleneck devices on the service message transmission path; adding the data transmission performance parameter of the current transmission equipment to the sum of the data transmission performance parameters of the first data stack; and comparing the data transmission performance parameter of the current transmission equipment with the data transmission performance parameter in the second data stack, and determining whether to modify the data transmission performance parameter in the second data stack according to the comparison result.

Description

Network performance monitoring method, device and storage medium
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a network performance monitoring method, device, and storage medium.
Background
In-band Network Telemetry (INT) is a process that monitors the Network status by collecting and reporting the status of the Network at the data plane, and this process does not require the participation of the control plane.
The operation and maintenance visualization process based on INT is as follows:
1. the service message enters a source INT transmission device (INTSource) on a transmission path, the service flow message is sampled in a sampling mode arranged on the transmission device, the INTSource encapsulates an INTheader in the message, defines an INTInstruction (instruction), adds INTMetadata (metadata) behind the INTheader, and fills information required to be collected by the transmission device into the INTMetadata.
2. And forwarding the message to a next Hop transmission device (INTTransit Hop) on the transmission path, wherein the INTTransit Hop continuously adds the INTMetadata information of the local device according to the INTMetadata content of the previous device.
3. And the message is forwarded to a target INT transmission device (INTsink) on a transmission path through all INTTransit Hops, the INTsink removes the INTHeader, and sends the path information to a monitoring server at the back end for analysis and presentation through a gPRC (remote procedure call) message.
As shown in fig. 1, it is a schematic diagram of traffic packet transmission between INTSource and INTSink, where MD represents a metadata information stack, and F1, F2, and Fn represent INT metadata stacks on a first Hop (Hop1), a second Hop (Hop2), and an nth Hop (Hop) forward (i.e., direction from INTSource to INTSink) transmission link on a traffic packet transmission path, respectively. The system comprises a PKT HDR, an INTMD SRC, an INTMD Fn and an INTTransit Hop, wherein the PKT HDR refers to a service message packet header, the PKT BODY refers to a service message packet BODY, the INTMD HDR refers to an INT data packet header, the INTMD SRC refers to a collected INTSource metadata stack, and the INTMD Fn refers to an INT metadata stack added by an nth INTTransit Hop on a transmission path.
As can be seen from fig. 1, as the number of transmission devices on the transmission path increases, each transmission device adds an INT metadata stack for representing the device state of the transmission device on the basis of the INT metadata stack of the previous transmission device, which results in a significant increase in the length of the entire service packet, which not only increases the transmission time of the service packet, but also consumes more link bandwidth, and also brings a new challenge to the network switching system, because the length of the data packet header plus the length of the INT metadata may exceed the length of the maximum data packet header that can be processed by the switch.
Disclosure of Invention
The embodiment of the invention provides a network performance monitoring method, which is used for reducing the length of a service message for transmitting INT metadata, reducing the transmission time of the service message and saving the link bandwidth overhead.
In a first aspect, a network performance monitoring method is provided, including:
receiving a service message, wherein the service message comprises an in-band network telemetry INT data packet header, a first data stack and a second data stack, the first data stack comprises the sum of data transmission performance parameters of each transmission device on a service message transmission path, and the second data stack comprises the data transmission performance parameters of bottleneck devices on the service message transmission path;
adding the data transmission performance parameters of the current transmission equipment to the sum of the data transmission performance parameters in the first data stack; and
and comparing the data transmission performance parameter of the current transmission equipment with the data transmission performance parameter in the second data stack, determining whether to modify the data transmission performance parameter in the second data stack according to the comparison result, and recording the ID of the bottleneck equipment.
In a possible implementation manner, the service message further carries a backhaul transmission device identifier; and
the method further comprises the following steps:
if the current transmission equipment is determined to be the return equipment according to the return transmission equipment identification, generating a return INT message, wherein the return INT message carries the exchanged original data packet header, the INT data packet header, the first data stack and the second data stack;
and transmitting the return INT message according to the reverse transmission path of the service message.
In a possible implementation manner, the method for monitoring network performance provided in the embodiment of the present invention further includes:
removing the INT data packet header, the first data stack and the second data stack from the service message;
and transmitting the service message after the INT data packet header, the first data stack and the second data stack are removed to the next-hop transmission equipment according to the transmission path of the service message.
In a possible implementation manner, the backhaul INT message further carries a backhaul operation identifier; and
transmitting the returned INT packet according to the reverse transmission path of the service packet, specifically including:
if the one-way return operation is determined according to the return operation identifier, transmitting the return INT message according to a reverse transmission path of the service message;
if the return operation identifier is determined to be a two-pass return operation, increasing the number of data transmission performance parameters of a reverse transmission link of the service message on the sum of the data transmission performance parameters in the first data stack; and comparing the data transmission performance parameters of the reverse data transmission link of the current transmission equipment with the data transmission performance parameters in the second data stack, and transmitting the return INT message according to the reverse transmission path of the service message after determining whether to modify the data transmission performance parameters in the second data stack according to the comparison result.
In a possible implementation, if the current transmission device is a destination INT transmission device, the method further includes:
removing the INT data packet header, the first data stack and the second data stack from the service message;
the sum of the data transmission performance parameters of each transmission device accumulated in the first data stack and the data transmission performance parameters of the transmission bottleneck device in the second data stack are sent to the INT server.
In a second aspect, a network performance monitoring apparatus is provided, including:
a receiving unit, configured to receive a service packet, where the service packet includes an in-band network telemetry INT data packet header, a first data stack, and a second data stack, where the first data stack includes a sum of data transmission performance parameters of each transmission device on a service packet transmission path, and the second data stack includes a data transmission performance parameter of a bottleneck device on the service packet transmission path;
an adding unit, configured to add the number of data transmission performance parameters of the current transmission device to the sum of the data transmission performance parameters in the first data stack;
and the comparison unit is used for comparing the data transmission performance parameter of the current transmission equipment with the data transmission performance parameter in the second data stack, determining whether to modify the data transmission performance parameter in the second data stack according to the comparison result and recording the ID of the bottleneck equipment.
In a possible implementation manner, the service message further carries a backhaul transmission device identifier; and
the device, still include:
a generating unit, configured to generate a backhaul INT message if it is determined that the current transmission device is a backhaul device according to the backhaul transmission device identifier, where the backhaul INT message carries an exchanged original data packet header, an INT data packet header, the first data stack, and the second data stack;
and the first transmission unit is used for transmitting the return INT message according to the reverse transmission path of the service message.
In a possible implementation manner, the network performance monitoring apparatus provided in the embodiment of the present invention further includes a removing unit, where:
the removing unit is configured to remove the INT data packet header, the first data stack, and the second data stack from the service packet;
and the first transmission unit is further configured to transmit the service packet after the INT data packet header and the first data stack are removed to a next-hop transmission device according to the transmission path of the service packet.
In a possible implementation manner, the backhaul INT message further carries a backhaul operation identifier; and
the first transmission unit is specifically configured to transmit the backhaul INT packet according to a reverse transmission path of the service packet if the backhaul operation is determined to be a one-way backhaul operation according to the backhaul operation identifier; if the return operation identifier is determined to be a two-pass return operation, increasing the number of data transmission performance parameters of a reverse transmission link of the service message on the sum of the data transmission performance parameters in the first data stack; and comparing the data transmission performance parameters of the reverse data transmission link of the current transmission equipment with the data transmission performance parameters in the second data stack, and transmitting the return INT message according to the reverse transmission path of the service message after determining whether to modify the data transmission performance parameters in the second data stack according to the comparison result.
In a possible implementation manner, the network performance monitoring apparatus provided in an embodiment of the present invention further includes:
a second transmission unit, configured to remove the INT data packet header, the first data stack, and the second data stack from the service packet if the current transmission device is a destination INT transmission device; and sending to the INT server the sum of the data transmission performance parameters of each transmission device accumulated in said first data stack and the data transmission performance parameters of the transmission bottleneck device in the second data stack.
In a third aspect, a computing device is provided, comprising at least one processor and at least one memory, wherein the memory stores a computer program, which when executed by the processor causes the processor to perform the steps of the network performance monitoring method described above.
In a fourth aspect, there is provided a computer-readable medium storing a computer program executable by a computing device, the program, when executed on the computing device, causing the computing device to perform the steps of the network performance monitoring method described above.
In the network performance monitoring method, apparatus, and storage medium provided in the embodiments of the present invention, a service packet transmitted by each transmission device includes two data stacks, where a first data stack includes a total number of data transmission performance parameters of each transmission device, and a second data stack includes data transmission performance parameters of a bottleneck device, and each transmission device only needs to increase the number of data transmission performance parameters of itself in the first data stack and compare the data transmission performance parameters and possibly replace the data transmission performance parameters in the second data stack.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
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 diagram of service message transmission between INTSource and INTSink in the prior art;
FIG. 2 is a diagram illustrating an INTMetadata message format in the prior art;
fig. 3a is a schematic diagram of a message structure of a service message transmitted by an INT device in the embodiment of the present invention;
fig. 3b is a schematic diagram of a message structure of a service message transmitted by an INT device in the prior art;
fig. 4 is a schematic flow chart of an implementation of a network performance measurement method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an INT device transmitting a service packet according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a backhaul operation according to an embodiment of the present invention;
fig. 7 is a schematic diagram of service packet transmission in a single pass backhaul operation according to an embodiment of the present invention;
fig. 8 is a schematic diagram of service packet transmission in a two-pass backhaul operation according to an embodiment of the present invention;
fig. 9 is a schematic diagram of an INT message structure provided in the embodiment of the present invention;
fig. 10 is a schematic structural diagram of a network performance monitoring apparatus according to an embodiment of the present invention;
FIG. 11 is a block diagram of a computing device according to an embodiment of the invention.
Detailed Description
First, some terms related to the embodiments of the present invention are explained to facilitate understanding by those skilled in the art.
INTheader: any data packet header containing INT information;
INTSource: a device for embedding an INT data header in a message, also called a source INT device;
INTInstruction: instructions for collecting data information;
INTMetadata: monitoring object information, i.e. data information collected on each device, also called INT metadata, which may indicate the network status of the current transmission device;
INTTransit Hop: the medium-hop transmission equipment added with the INT metadata information of the equipment node, namely the transmission equipment supporting the INT function on the service stream transmission path;
INTsink: the device that removes the INTheader and data stack and collects the INTMetadata information that is uploaded is also called the destination INT device.
It should be noted that the terms "first", "second", and the like in the description and the claims of the embodiments of the present invention and in the drawings described above are used for distinguishing similar objects and not necessarily for describing a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
Reference herein to "a plurality or a number" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings of the specification, it being understood that the preferred embodiments described herein are merely for illustrating and explaining the present invention, and are not intended to limit the present invention, and that the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
The INT is to collect Metadata data on each transmission device on the service packet transmission path, and accurately monitor the network state by analyzing the Metadata data.
As shown in fig. 2, it is a schematic diagram of the format of the INTMetadata message, where the INTMetadata message includes a message header of 8 bytes and a plurality of Metadata data, and each Metadata data is data information collected by each hop of device. The INTMetadata header contains the following key fields:
ver (2 bit): a version number;
flags (9 bit): the method comprises the steps of copying allowance, setting exceeding the maximum hop count and the like, and reserving 5-bit Reserved resources;
an Instruction Count (5bit) which is the number of data item instructions collected in Metadata;
max Hop Count (8 bit): maximum hop count, which is the maximum number of Metadata data that can be encapsulated in a message;
total Hop Count (8 bit): the current total hop count is the number of Metadata data encapsulated in the current message;
instruction Bitmap (8 bit): the specific content of the Metadata data instruction is collected.
8 bits of the Instruction Bitmap field correspond to 8 data options respectively, and the setting of each bit represents that the data of the item needs to be collected into Metadata, wherein:
bit 0: indicating a transmission device ID;
bit1: indicating an input port number;
bit2: represents a forwarding time;
bit3: indicating queue occupancy;
bit4: representing an incoming timestamp;
bit5: port numbers are indicated;
bit6: indicating a queue congestion status;
bit7: indicating egress port link utilization.
The inventor finds that, in the process of transmitting a service message, each transmission device with an INT function on a transmission path needs to check an INT data header, and then inserts the data transmission performance parameters of the current transmission device into the top of an INT metadata stack until the service message reaches a target INT transmission device.
In view of the above, embodiments of the present invention provide a method, an apparatus, and a storage medium for monitoring network performance, according to an embodiment of the present invention, no matter how many hops between a source INT device and a destination INT device, a length of a metadata stack cannot exceed a fixed length, and in real time, the length of the metadata stack may be set according to needs, for example, may be set to 64 bytes. In the embodiment of the present invention, two metadata stacks may be included, where one metadata stack includes a sum of data transmission performance parameters, such as a sum of a hop delay, a queue length, a congestion state, a link utilization rate, and the like, of each transmission device on a service packet forwarding path from the source INT device to the destination INT device. The other metadata stack contains data transmission performance parameters of the worst performance one hop (i.e., bottleneck device) between the source INT device and the destination INT device. As shown in fig. 3a, which is a schematic diagram of a message structure of a service message transmitted by an INT device in the embodiment of the present invention, and as shown in fig. 3b, which is a schematic diagram of a message structure of a service message transmitted by an INT device in the prior art, it can be known from fig. 3a and fig. 3b that an INT message provided in the embodiment of the present invention only includes two data stacks, whereas an INT message provided in the prior art includes n +1 data stacks according to the number n of hop transmission devices in the INT, and each data stack has a length of 32 bytes.
Based on this, an embodiment of the present invention provides a network performance measurement method, as shown in fig. 4, which is a schematic implementation flow diagram of the network performance measurement method provided in the embodiment of the present invention, and includes the following steps:
and S41, receiving the service message.
The service message comprises an INT (in-band network telemetry) data packet header, a first data stack and a second data stack, wherein the first data stack comprises the sum of data transmission performance parameters of each transmission device on a service message transmission path, and the second data stack comprises the data transmission performance parameters of bottleneck devices on the service message transmission path.
The bottleneck device is determined according to the data transmission performance parameter, namely, the transmission device with the worst data transmission performance. In specific implementation, if the data transmission performance parameter includes one, the data transmission performance parameter can be directly determined according to the data transmission performance parameter; if the data transmission performance parameters include a plurality of data transmission performance parameters, in one embodiment, the priority of each data transmission performance parameter may be preset, and the data transmission performance parameter with the highest priority may be compared according to the set priority.
S42, adding the number of the data transmission performance parameters of the current transmission device to the sum of the data transmission performance parameters in the first data stack.
And the transmission equipment currently receiving the service message adds the data transmission performance parameters of the transmission equipment in the first data stack.
And S43, comparing the data transmission performance parameter of the current transmission equipment with the data transmission performance parameter in the second data stack, determining whether to modify the data transmission performance parameter in the second data stack according to the comparison result, and recording the ID of the bottleneck equipment.
In specific implementation, after any transmission node on the transmission path of the service message receives the service message, if the first transmission node on the transmission path has an INT function and is a transmission device, i.e., an INTSource, an INTheader needs to be packaged in the message, an intmeasurement needs to be defined, and a data transmission performance parameter of the current transmission device (i.e., the INTSource) is added in the first data stack and the second data stack.
If the data transmission performance parameter is better than the data transmission performance parameter contained in the second data stack, the data transmission performance parameter contained in the current second data stack is kept unchanged, otherwise, the data transmission performance parameter contained in the second data stack is replaced by the data transmission performance parameter of the current transmission device, and the ID of the bottleneck device is recorded.
When data transmission performance parameters are compared, if one data transmission performance parameter is included, the data transmission performance parameter can be directly determined according to the data transmission performance parameter; if the data transmission performance parameters include a plurality of data transmission performance parameters, in one embodiment, the priority of each data transmission performance parameter may be preset, and the data transmission performance parameter with the highest priority may be compared according to the set priority.
If the last transmission equipment with INT function on the transmission path is the target INT equipment, removing the INT data packet header, the first data stack and the second data stack from the received service message; the sum of the data transmission performance parameters of each transmission device accumulated in the first data stack and the data transmission performance parameters of the transmission bottleneck device in the second data stack are sent to the INT server. And forwarding the service message with the INT data header, the first data stack and the second data stack removed to a final destination of the service message.
Fig. 5 is a schematic diagram of an INT device transmitting a service packet according to an embodiment of the present invention.
In a possible implementation manner, the INT device provided in the embodiment of the present invention may further support backhaul operation (loopback), that is, when a service packet arrives at a designated transmission device supporting an INT function, the device removes a first data stack and a second data stack in the service packet and sends the first data stack and the second data stack to the source INT device in a direction opposite to an original transmission direction of the service packet, and the source INT device may obtain fine-grained traffic congestion information according to the received first data stack and second data stack so as to send feedback of instant traffic control, so as to perform effective congestion control on delay and packet loss sensitive services such as rock (rdma switched ethernet).
In a possible implementation, the source INT device may carry a backhaul transmission device identifier in the service packet, where the backhaul transmission device identifier may be represented by a hop count of the backhaul transmission device in the transmission path, for example, if the INT meta device specifies that the backhaul transmission device identifier is 5, that is, when the service packet reaches the 5 th hop on the transmission path, a backhaul operation is performed; based on this, after receiving the service packet to be forwarded, the backhaul transmission device may execute backhaul operation according to the flow shown in fig. 6:
s61, if the current transmission equipment is determined to be the return equipment according to the return transmission equipment identification, generating a return INT message.
In specific implementation, after any transmission device on the service message transmission path receives a service message to be forwarded, if the current transmission device is determined to be a backhaul device according to the backhaul transmission device identifier carried in the service message transmission path, a backhaul INT message is generated. The INT message carries the following information: the system comprises an exchanged original data packet header (namely, a destination in the original data packet header is changed to a source in the original data packet header, and a source in the original data packet header is changed to a destination in the original data packet header), an INT data packet header, a first data stack and a second data stack, but does not contain a packet body of a service message.
And S62, transmitting the INT message according to the reverse transmission path of the service message.
In specific implementation, the backhaul transmission device sends the backhaul INT message to the source INT device according to the reverse transmission path of the service message.
And then, the back transmission equipment removes the INT data packet header, the first data stack and the second data stack from the received service data packet, and forwards the service message to a final destination, namely, the service message after the INT data packet header, the first data stack and the second data stack are removed is transmitted to the next hop transmission equipment according to the transmission path of the service message.
In specific implementation, the source INT device may detect the performance of the service packet transmission link through backhaul operation, thereby providing finer congestion control for the data forwarding service.
Fig. 7 is a schematic diagram of service packet transmission in a single pass backhaul operation according to an embodiment of the present invention. Wherein, F1, F2 … … Fn represent INT metadata information collected from each transmission device with INT function on the forward transmission link of the service message; the hops 1, 2 … … represent medium-Hop transmission devices on the transmission path.
The above provides a one-way backhaul operation procedure, that is, in the process of reverse transmission, each transmission device only needs to directly forward the backhaul INT message sent by the backhaul transmission device, so that the INT information received by the source INT device is a data transmission performance parameter of the one-way transmission link in the direction from the source INT device to the backhaul transmission device.
In this embodiment, after each transmission device receives the backhaul INT packet, it needs to add a data transmission performance parameter of its own reverse transmission link, that is, a data transmission performance parameter of the reverse transmission link in a direction from the backhaul transmission device to the source INT device, so that the source INT device can obtain complete performance measurement information of the round-trip path.
Fig. 8 is a schematic diagram illustrating service packet transmission in a two-pass backhaul operation according to an embodiment of the present invention. Wherein, F1, F2 … … Fn represent INT metadata information collected from each transmission device with INT function on the forward transmission link of the service message; b1, B2 and … … Bn represent INT metadata information collected from each transmission device with INT function on the service message reverse transmission link; the hops 1, 2 … … represent medium-Hop transmission devices on the transmission path.
Correspondingly, the source INT device may specify a return operation mode in the service message, and in specific implementation, the source INT device may add a return operation identifier in the service message, so that, after the return transmission device receives the service message to be forwarded, if the return transmission device determines that the service message is a one-way return operation according to the return operation identifier, the return INT message is transmitted according to a reverse transmission path of the service message; if the two-pass return operation is determined according to the return operation identifier, increasing the number of data transmission performance parameters of a reverse transmission link of the service message on the sum of the data transmission performance parameters in the first data stack; and comparing the data transmission performance parameters of the reverse data transmission link of the current transmission equipment with the data transmission performance parameters in the second data stack, determining whether to modify the data transmission performance parameters in the second data stack according to the comparison result, and transmitting the back INT message according to the reverse transmission path of the service message.
In specific implementation, in order to support the improved INT function (XINT) provided by the present invention under the current INT framework, the present invention uses the reserved field in the INT message to carry the above information, as shown in fig. 9, which is a schematic diagram of an INT message structure provided by the present invention.
The added field supplement is defined as follows:
XLT:
"000" -Reserved field
"100" -eXpress Forward Transmission Direction, i.e., the direction from the Source INT device to the destination INT device;
"110" -eXpress Loopback 1-Way, in the service message of forward transmission, indicating the backhaul mode of the backhaul transmission device as a single-Way backhaul mode;
"111" -eXpress Loopback 2-Way, in the service message of forward transmission, indicating the backhaul mode of the backhaul transmission device as a two-Way backhaul mode;
"010" -Loopback Return 1-Way, indicating the backhaul mode as a one-Way backhaul mode in the backhaul INT message;
"011" -Loopback Return 2-Way, indicating the backhaul mode as two-Way backhaul mode in the backhaul INT message.
In one embodiment, the INTSource sets an XLT field in a transmitted service message to 110 indicating a one-way backhaul mode, according to the XLT field, the INT device on the transmission path collects data transmission performance parameters of itself and adds the data transmission performance parameters to the first data stack, when the service message reaches the backhaul device, the backhaul device modifies the XLT field in the backhaul INT message to 010, indicates the INT device on the reverse transmission path that the backhaul INT message is the one-way backhaul mode, and transmits the backhaul INT message to the INTSource.
In another embodiment, the INTSource sets an XLT field in a transmitted service message as 111 to indicate a two-pass return mode, according to the XLT field, an INT device on a transmission path collects data transmission performance parameters of itself and adds the data transmission performance parameters to a first data stack, when the service message reaches a return device, the return device modifies the XLT field in the return INT message as 011, indicates the INT device on a reverse transmission path that the return INT message is the two-pass return mode, and the transmission device on the reverse path adds the data transmission performance parameters of a reverse transmission link of itself in the received return INT message until the data packet reaches the INTSource.
Loop Hop Cnt, which is the transmission Hop count of the generated INT message;
total instrumentation Bitmap accumulated INT metadata information, wherein:
bit0(MSB, highest weighted bit) INTSource ID, Source INT transmitting device ID;
bit1 INTSource Ingress port ID, source port number;
bit2 Total Hop latency, Total Hop delay;
bit3 Total Queue occupancy;
bit4 INTSource Ingress timestamp, Source INT Transmission device timestamp;
bit5, INTSInk Egress port ID, destination INT transmission device port number;
bit6 Total Queue Congestion status, Total Queue Congestion status;
bit7, Total Egress port tx utilization, Total port link utilization;
the remaining bits are reserved bits.
Maximum (Worst) INTMetadata, transmission performance parameters of bottleneck equipment, wherein:
o bit0(MSB) Max INTSwitch ID, bottleneck device ID;
o bit1 Max INTIngress port ID, bottleneck device port number;
bit2 Max Hop latency, bottleneck device Hop delay;
bit3 Max Queue occupancy, bottleneck device Queue occupancy
Bit4 Max Ingress timestamp, bottleneck device Source in timestamp
Bit5 Max INTEgress port ID, bottleneck device exit port number
Bit6 Max Queue consistency status, bottleneck device Queue Congestion status
Bit7 Max Egress tx utilizations, bottleneck device Egress port link utilization
○The remaining bits are reserved.
The remaining bits are reserved bits.
In the network performance monitoring method provided by the embodiment of the present invention, the service packet transmitted by each transmission device includes two data stacks, where a first data stack includes a sum of data transmission performance parameters of each transmission device on a transmission path, and a second data stack includes data transmission performance parameters of bottleneck devices on the transmission path, and each transmission device only needs to increase the number of its own data transmission performance parameters in the first data stack, so that, in the transmission process of the service packet, the length of the service packet is not increased with the increase of the number of the transmission devices, thereby reducing the transmission time of the service packet and saving the transmission bandwidth of the service packet.
Based on the same inventive concept, the embodiment of the invention also provides a network performance monitoring device, and because the device and the network performance monitoring method for solving the problems of the device are similar, the implementation of the device can refer to the implementation of the method, and repeated parts are not described again.
As shown in fig. 10, which is a schematic structural diagram of a network performance monitoring apparatus provided in an embodiment of the present invention, the network performance monitoring apparatus includes:
a receiving unit 101, configured to receive a service packet, where the service packet includes an in-band network telemetry INT data packet header, a first data stack, and a second data stack, where the first data stack includes a sum of data transmission performance parameters of each transmission device on a service packet transmission path, and the second data stack includes a data transmission performance parameter of a bottleneck device on the service packet transmission path;
an adding unit 102, configured to add the number of data transmission performance parameters of the current transmission device to the sum of the data transmission performance parameters in the first data stack;
a comparing unit 103, configured to compare the data transmission performance parameter of the current transmission device with the data transmission performance parameter in the second data stack, determine whether to modify the data transmission performance parameter in the second data stack according to the comparison result, and record the ID of the bottleneck device.
In a possible implementation manner, the service message further carries a backhaul transmission device identifier; and
the device, still include:
a generating unit 104, configured to generate a backhaul INT packet if it is determined that the current transmission device is a backhaul device according to the backhaul transmission device identifier, where the backhaul INT packet carries an exchanged original data packet header, an INT data packet header, the first data stack, and the second data stack;
a first transmission unit 105, configured to transmit the backhaul INT packet according to a reverse transmission path of the service packet.
In a possible implementation manner, the network performance monitoring apparatus provided in the embodiment of the present invention further includes a removing unit 106, where:
the removing unit is configured to remove the INT data packet header, the first data stack, and the second data stack from the service packet;
and the first transmission unit is further configured to transmit the service packet after the INT data packet header, the first data stack and the second data stack are removed to a next-hop transmission device according to the transmission path of the service packet.
In a possible implementation manner, the backhaul INT message further carries a backhaul operation identifier; and
the first transmission unit 105 is specifically configured to transmit the backhaul INT packet according to the reverse transmission path of the service packet if the backhaul operation is determined as a one-way backhaul operation according to the backhaul operation identifier; if the return operation identifier is determined to be a two-pass return operation, adding the sum of the data transmission performance parameters in the first data stack to the number of the data transmission performance parameters of the reverse transmission link of the service message; and comparing the data transmission performance parameters of the reverse data transmission link of the current transmission equipment with the data transmission performance parameters in the second data stack, and transmitting the return INT message according to the reverse transmission path of the service message after determining whether to modify the data transmission performance parameters in the second data stack according to the comparison result.
In a possible implementation manner, the network performance monitoring apparatus provided in an embodiment of the present invention further includes:
a second transmission unit 107, configured to remove the INT data packet header, the first data stack, and the second data stack from the service packet if the current transmission device is an INT transmission device; and sending to the INT server the sum of the data transmission performance parameters of each transmission device accumulated in said first data stack and the data transmission performance parameters of the transmission bottleneck device in the second data stack.
For convenience of description, the above parts are separately described as modules (or units) according to functional division. Of course, the functionality of the various modules (or units) may be implemented in the same or in multiple pieces of software or hardware in practicing the invention.
Having described the network performance monitoring method and apparatus according to an exemplary embodiment of the present invention, a computing apparatus according to another exemplary embodiment of the present invention is described next.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, a computing device according to the present invention may include at least one processor, and at least one memory. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of the network performance monitoring method according to various exemplary embodiments of the present invention described above in this specification. For example, the processor may execute step S41, receiving a service packet, and step S42, adding data transmission performance parameters of the current transmission device in the first data stack, as shown in fig. 4; and step S43, comparing the data transmission performance parameter of the current transmission equipment with the data transmission performance parameter in the second data stack, and determining whether to modify the data transmission performance parameter in the second data stack according to the comparison result.
The computing device 110 according to this embodiment of the invention is described below with reference to FIG. 11. The computing device 110 shown in FIG. 11 is only an example and should not be used to limit the scope or functionality of embodiments of the present invention.
As shown in fig. 11, the computing apparatus 110 is in the form of a general purpose computing device. Components of computing device 110 may include, but are not limited to: the at least one processor 111, the at least one memory 112, and a bus 113 that connects the various system components (including the memory 112 and the processor 111).
Bus 113 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The memory 112 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)1121 and/or cache memory 1122, and may further include Read Only Memory (ROM) 1123.
Memory 112 may also include a program/utility 1125 having a set (at least one) of program modules 1124, such program modules 1124 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The computing apparatus 110 may also communicate with one or more external devices 114 (e.g., keyboard, pointing device, etc.), may also communicate with one or more devices that enable a user to interact with the computing apparatus 110, and/or may communicate with any devices (e.g., router, modem, etc.) that enable the computing apparatus 110 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 115. Also, the computing device 110 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 116. As shown, the network adapter 116 communicates with other modules for the computing device 110 over the bus 113. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computing device 110, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, the various aspects of the network performance monitoring method provided by the present invention may also be implemented in the form of a program product, which includes program code for causing a computer device to perform the steps of the network performance monitoring method according to various exemplary embodiments of the present invention described above in this specification when the program product runs on the computer device, for example, the computer device may perform the steps of S41, receiving a service packet, and S42, adding a data transmission performance parameter of a current transmission device in a first data stack; and step S43, comparing the data transmission performance parameter of the current transmission equipment with the data transmission performance parameter in the second data stack, and determining whether to modify the data transmission performance parameter in the second data stack according to the comparison result.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
The program product for network performance monitoring of embodiments of the present invention may employ a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a computing device. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method for monitoring network performance, comprising:
receiving a service message, wherein the service message comprises an in-band network telemetry INT data packet header, a first data stack and a second data stack, the first data stack comprises the sum of the jump delay of each transmission device in front of the current transmission device on a service message transmission path, and the second data stack comprises the jump delay of a bottleneck device on the service message transmission path;
the current transmitting device increases the value of the hop delay of the current transmitting device over the sum of the hop delays in the first data stack; and
comparing the jump delay of the current transmission equipment with the jump delay in the second data stack, determining whether to modify the jump delay in the second data stack according to the comparison result and recording the ID of the bottleneck equipment;
the service message also carries a returned transmission equipment identifier; if the current transmission equipment is determined to be the return equipment according to the return transmission equipment identification, generating a return INT message, wherein the return INT message carries the exchanged original data packet header, the INT data packet header, the first data stack and the second data stack; the return INT message also carries a return operation identifier;
transmitting the returned INT packet according to the reverse transmission path of the service packet, specifically including:
if the one-way return operation is determined according to the return operation identifier, transmitting the return INT message according to a reverse transmission path of the service message;
if the return operation identifier is determined to be a two-way return operation, increasing the value of the jump delay of the reverse transmission link of the service message on the sum of the jump delays in the first data stack; and comparing the jump delay of the reverse data transmission link of the current transmission equipment with the jump delay in the second data stack, and transmitting the return INT message according to the reverse transmission path of the service message after determining whether to modify the jump delay in the second data stack according to the comparison result.
2. The method of claim 1, further comprising:
removing the INT data packet header, the first data stack and the second data stack from the service message;
and transmitting the service message after the INT data packet header and the first data stack are removed to the next hop transmission equipment according to the transmission path of the service message.
3. The method of claim 1, wherein if the current transmission device is a destination INT transmission device, the method further comprises:
removing the INT data packet header, the first data stack and the second data stack from the service message;
the sum of the jump delays of each transmission device accumulated in the first data stack and the jump delay of the transmission bottleneck device in the second data stack are sent to the INT server.
4. A network performance monitoring device, comprising:
a receiving unit, configured to receive a service packet, where the service packet includes an in-band network telemetry (INT) packet header, a first data stack, and a second data stack, where the first data stack includes a sum of jump delays of each transmission device in front of a current transmission device on a service packet transmission path, and the second data stack includes a jump delay of a bottleneck device on the service packet transmission path; the service message also carries a returned transmission equipment identifier;
an adding unit configured to add, by the current transmission apparatus, a value of the hop delay of the current transmission apparatus to a sum of the hop delays in the first data stack;
a comparing unit, configured to compare the hop delay of the current transmission device with the hop delay in the second data stack, determine whether to modify the hop delay in the second data stack according to a comparison result, and record an ID of the bottleneck device;
a generating unit, configured to generate a backhaul INT message if it is determined that the current transmission device is a backhaul device according to the backhaul transmission device identifier, where the backhaul INT message carries an exchanged original data packet header, an INT data packet header, the first data stack, and the second data stack; the return INT message also carries a return operation identifier;
a first transmission unit, configured to transmit the backhaul INT packet according to a reverse transmission path of the service packet if the backhaul operation is determined to be a single-way backhaul operation according to the backhaul operation identifier; if the return operation identifier is determined to be a two-way return operation, increasing the value of the jump delay of the reverse transmission link of the service message on the sum of the jump delays in the first data stack; and comparing the jump delay of the reverse data transmission link of the current transmission equipment with the jump delay in the second data stack, determining whether to modify the data transmission performance parameters in the second data stack according to the comparison result, and transmitting the return INT message according to the reverse transmission path of the service message.
5. The apparatus of claim 4, further comprising a removal unit, wherein:
the removing unit is configured to remove the INT data packet header, the first data stack, and the second data stack from the service packet;
and the first transmission unit is further configured to transmit the service packet after the INT data packet header and the first data stack are removed to a next-hop transmission device according to the transmission path of the service packet.
6. The apparatus of claim 4, further comprising:
a second transmission unit, configured to remove the INT data packet header, the first data stack, and the second data stack from the service packet if the current transmission device is a destination INT transmission device; and sends to the INT server the sum of the jump delays of each transmission device accumulated in said first data stack and the jump delay of the transmission bottleneck device in the second data stack.
7. A computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 3.
8. A computer-readable medium, in which a computer program is stored which is executable by a computing device, the program, when run on the computing device, causing the computing device to perform the steps of the method of any one of claims 1 to 3.
CN201910616452.5A 2019-07-09 2019-07-09 Network performance monitoring method, device and storage medium Active CN110505112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910616452.5A CN110505112B (en) 2019-07-09 2019-07-09 Network performance monitoring method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910616452.5A CN110505112B (en) 2019-07-09 2019-07-09 Network performance monitoring method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110505112A CN110505112A (en) 2019-11-26
CN110505112B true CN110505112B (en) 2021-06-22

Family

ID=68585568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910616452.5A Active CN110505112B (en) 2019-07-09 2019-07-09 Network performance monitoring method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110505112B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200609B (en) * 2020-01-02 2022-08-12 苏州盛科通信股份有限公司 INT Metadata data processing method and device
CN113300869B (en) * 2020-07-29 2022-06-14 阿里巴巴集团控股有限公司 Communication method with in-band network remote sensing function, network device and storage medium
CN114143827A (en) * 2020-09-03 2022-03-04 华为技术有限公司 RoCE network congestion control method and related device
CN112260903B (en) * 2020-10-29 2022-03-25 杭州迪普科技股份有限公司 Link monitoring method and device
CN113422793A (en) * 2021-02-05 2021-09-21 阿里巴巴集团控股有限公司 Data transmission method and device, electronic equipment and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360046A (en) * 2008-08-08 2009-02-04 中兴通讯股份有限公司 Bandwidth resource saving method
CN109194581A (en) * 2018-08-24 2019-01-11 新华三技术有限公司 Message processing method and device
CN109818804A (en) * 2019-02-26 2019-05-28 北京邮电大学 A kind of network monitoring method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547490B (en) * 2010-12-27 2015-08-12 中兴通讯股份有限公司 A kind of method and system of connection establishment
CN105578555A (en) * 2014-10-16 2016-05-11 北京信威通信技术股份有限公司 Routing method of wireless ad hoc network, node apparatus and system
US10277518B1 (en) * 2017-01-16 2019-04-30 Innovium, Inc. Intelligent packet queues with delay-based actions
CN106888138B (en) * 2017-03-17 2019-07-16 烽火通信科技股份有限公司 A kind of service channel detection system and test method
CN107590013B (en) * 2017-09-05 2020-12-04 南京大学 Efficient method for detecting leakage of Android application Service component

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360046A (en) * 2008-08-08 2009-02-04 中兴通讯股份有限公司 Bandwidth resource saving method
CN109194581A (en) * 2018-08-24 2019-01-11 新华三技术有限公司 Message processing method and device
CN109818804A (en) * 2019-02-26 2019-05-28 北京邮电大学 A kind of network monitoring method and device

Also Published As

Publication number Publication date
CN110505112A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN110505112B (en) Network performance monitoring method, device and storage medium
USRE48645E1 (en) Exporting real time network traffic latency and buffer occupancy
CN102487358B (en) For the method and apparatus of the current control relevant to switch architecture
US8170025B2 (en) Switch port analyzers
CN111769998B (en) Method and device for detecting network delay state
US20120030319A1 (en) Management system and method for configuring a network for transferring data
US20220038374A1 (en) Microburst detection and management
US11843541B2 (en) Congestion notification reporting for a responsive network
CN115174432B (en) RDMA network state monitoring method, device, equipment and readable storage medium
US10992557B1 (en) Traffic analyzer for network device
CN116114233A (en) Automatic flow management
CN112511383A (en) Network traffic monitoring method and device
CN113438155B (en) Intelligent and reliable UDP (user Datagram protocol) transmission method, device and equipment for virtual multilink
US9225650B2 (en) Network system, gateway, and packet delivery method
CN115118663A (en) Method for acquiring network congestion information by combining in-band network telemetry
CN113542148A (en) Message aggregation method and device, network card and readable storage medium
WO2022270767A1 (en) Device for generating and managing information bundle for intelligent network management system, and method of same
WO2022270805A1 (en) Automatic packet analysis-based automatic network failure resolution device and method therefor
WO2022270766A1 (en) Device and method for automatic packet analysis-based intelligent network management
CN115277504A (en) Network traffic monitoring method, device and system
CN113660293B (en) IOAM data release optimization method and system facing SRv6 cloud network
CN114189890A (en) Method, device, equipment and storage medium for updating network service quality model
KR102356104B1 (en) Apparatus and method for management of performance indicators in intelligent network management system
US20230254232A1 (en) In-band telemetry rate limiting in cloud environments
US11451998B1 (en) Systems and methods for communication system resource contention monitoring

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