CN115242682A - Message processing method and device, electronic equipment and computer readable storage medium - Google Patents

Message processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN115242682A
CN115242682A CN202110433524.XA CN202110433524A CN115242682A CN 115242682 A CN115242682 A CN 115242682A CN 202110433524 A CN202110433524 A CN 202110433524A CN 115242682 A CN115242682 A CN 115242682A
Authority
CN
China
Prior art keywords
information
message
timestamp information
application layer
routing node
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
CN202110433524.XA
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202110433524.XA priority Critical patent/CN115242682A/en
Priority to PCT/CN2022/083267 priority patent/WO2022222693A1/en
Publication of CN115242682A publication Critical patent/CN115242682A/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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps

Abstract

The application provides a message processing method and device, electronic equipment and a computer readable storage medium, wherein the message processing method comprises the following steps: receiving a message; under the condition that first timestamp information needs to be added to the message, adding the first timestamp information to the message; wherein the first timestamp information comprises: the first routing node transmits the message to the second routing node; and sending the message added with the first timestamp information.

Description

Message processing method and device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the field of communication, in particular to a message processing method and device, electronic equipment and a computer-readable storage medium.
Background
Data channels are provided by data products to provide internet access services for client terminals, generally, the requirement on time delay is low, but some industry users use time delay as a hard index and require time delay to be controlled within 80 milliseconds (ms), which puts higher requirements on the problem investigation of time delay of a whole data path (including Customer Premise Equipment (CPE), a core network element, a base station and the like). At present, no effective scheme is available for solving the problem of time delay of a data path.
Disclosure of Invention
The embodiment of the application provides a message processing method and device, electronic equipment and a computer readable storage medium.
In a first aspect, an embodiment of the present application provides a packet processing method, which is applied to a first routing node, and the method includes:
receiving a message;
under the condition that first timestamp information needs to be added to the message, adding the first timestamp information to the message; wherein the first timestamp information comprises: the first routing node transmits the message according to the transmission time information of the message;
and sending the message added with the first timestamp information.
In a second aspect, an embodiment of the present application provides an electronic device, including:
at least one processor;
a memory having at least one program stored thereon, the at least one program, when executed by the at least one processor, implementing any of the message processing methods described above.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the message processing methods described above.
In a fourth aspect, an embodiment of the present application provides a packet processing apparatus, including:
the message receiving module is used for receiving a message;
the timestamp information adding module is used for adding first timestamp information to the message under the condition that the first timestamp information needs to be added to the message; wherein the first timestamp information comprises: the first routing node transmits the message to the second routing node;
and the message sending module is used for sending the message added with the first timestamp information.
According to the message processing method provided by the embodiment of the application, the first timestamp information is added to the message in the first routing node on the data path, so that the time delay analysis is performed according to the first timestamp information in the following process, and the problem of the time delay of the data path is solved.
Drawings
FIG. 1 is a schematic diagram of a data path provided by an embodiment of the present application;
fig. 2 is a flowchart of a message processing method according to an embodiment of the present application;
fig. 3 is a block diagram of a message processing apparatus according to another embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present application, the following describes in detail a message processing method and apparatus, an electronic device, and a computer-readable storage medium provided in the present application with reference to the accompanying drawings.
Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but which may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiments and features of the embodiments of the present application may be combined with each other without conflict.
As used herein, the term "and/or" includes any and all combinations of at least one of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, … … specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of at least one other feature, integer, step, operation, element, component, and/or group thereof.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present application and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In this embodiment, the troubleshooting of the delay problem refers to analyzing the delay of one or more routing nodes and/or one section of transmission link in the data channel, so as to find the routing node and/or transmission link with the delay exceeding the standard, and further troubleshoot and improve the routing node and/or transmission link with the delay exceeding the standard.
For example, fig. 1 is a schematic diagram of a data path provided in an embodiment of the present application. As shown in fig. 1, when a client terminal a sends a message to a client terminal B, a data path between the client terminal a and the client terminal B includes: the router R1, the base station 1, the core network element C, the router R2, and in some scenarios, the base station 2.
When the client terminal B sends a message to the client terminal A, a data path between the client terminal A and the client terminal B comprises: the router R2, the base station 2, the core network element C, and the router R1 further include the base station 1 in some scenarios.
One or two or more routers R1 may be provided, one or two or more core network elements C may be provided, and one or two or more routers R2 may be provided.
The router R1, the base station 1, the core network element C, the router R2, and the base station 2 are all routing nodes on a data path, the base station 1, the core network element C, and the base station 2 are network side network element nodes on the data path, and the router R1 directly connected to the client terminal a and the router R2 directly connected to the client terminal B are Client Premise Equipment (CPE) on the data path.
The troubleshooting of the delay problem in the embodiment of the present application means that the delay of the routing node and/or the transmission link between two adjacent routing nodes is analyzed, so as to find the routing node and/or the transmission link with the exceeding delay, and further troubleshoot and improve the routing node and/or the transmission link with the exceeding delay.
Fig. 2 is a flowchart of a message processing method according to an embodiment of the present application.
In a first aspect, referring to fig. 2, an embodiment of the present application provides a packet processing method, which is applied to a first routing node, and the method includes:
step 200, receiving a message.
In this embodiment of the present application, the received message may be sent by the first client terminal, or may be sent by a network element node on the network side. The first client terminal is, for example, client terminal a in fig. 1, and the network element node on the network side is, for example, any one of router R1, base station 1, core network element C, base station 2, router R2, and the like in fig. 1.
The embodiment of the present application does not limit the specific type of the packet, that is, the packet may be any type of packet. For example, the data packet may be a data packet for transmitting data, or the control packet may be a control packet for sending a control command, and so on.
Step 201, adding first timestamp information to the message under the condition that the first timestamp information needs to be added to the message; wherein the first timestamp information comprises: and the first routing node transmits the transmission time information of the message.
In the embodiment of the present application, whether to add the first timestamp information to the packet depends on a specific application scenario, and in the embodiment of the present application, when a part or all of routing nodes on a data path between the first client terminal and the second client terminal receive the packet, the packet may be correspondingly processed by using the packet processing method of the embodiment of the present application, and the packet may be sequentially transmitted from a side close to the first client terminal to a side close to the second client terminal, so as to implement troubleshooting of a delay problem of the data path between the first client terminal and the second client terminal. Specifically, which routing nodes to execute the message processing method according to the embodiment of the present application may be determined according to actual situations, and configured with corresponding routing nodes to implement the method.
Therefore, the routing node can know whether first timestamp information needs to be added to the message or not according to the configuration information; the configuration information is used for indicating whether first time stamp information needs to be added to the message or not.
For example, for a Transmission Control Protocol (TCP) message, due to the existence of a packet loss retransmission mechanism, the latency problem is not required to be checked by adding first timestamp information, and for a User Datagram Protocol (UDP) message, the latency problem is required to be checked by adding first timestamp information.
The following two cases are described as specific implementation processes for adding the first timestamp information to the packet.
In case one, the received message is sent by the first client terminal.
For case one, in some exemplary embodiments, the adding the first timestamp information to the packet includes: intercepting the message at an application layer; acquiring application layer information of the message; adding the first timestamp information in the application layer information.
For case one, in some exemplary embodiments, the application layer information includes the data content of the transmission.
For case one, in some exemplary embodiments, the transmission time information includes at least one of: and receiving the time information of the message and sending the time information of the message. That is, the first timestamp information includes at least one of: and the first routing node receives the time information of the message and the time information of the message sent by the first routing node.
For case one, in some exemplary embodiments, said adding the first timestamp information in the application layer information comprises:
adding the first timestamp information at the forefront of the application layer information.
For case one, in some exemplary embodiments, said adding the first timestamp information in the application layer information comprises:
and adding the first time stamp information at the middle position of the application layer information.
For case one, in some exemplary embodiments, said adding the first timestamp information in the application layer information comprises:
and adding the first time stamp information at the end of the application layer information.
For case one, in some exemplary embodiments, adding the first timestamp information at the forefront of the application layer information includes:
first timestamp information is added before the first field of the application layer information.
For case one, in some example embodiments, adding the first timestamp information at the end of the application layer information comprises:
first timestamp information is added after the last field of the application layer information.
For case one, in some exemplary embodiments, said adding the first timestamp information at an intermediate position of the application layer information comprises:
adding the first timestamp information between any two fields of the application layer information;
or, adding the first timestamp information between any two fields of the first N fields of the application layer information; wherein N is an integer greater than or equal to 2.
That is to say, the first timestamp information may be added in any position of the application layer information, but in some cases, if the packet is relatively large, the packet needs to be segmented in the transmission process, and then, because the application layer information located behind the segmented packet cannot be identified, the first timestamp information should be added in the front position of the application layer information as much as possible for the case of segmenting the packet, so that the first timestamp information is still located in the first segment of the packet after the segmentation.
For example, N is the number of fields of the application layer information in the first segment of the packet.
For case one, in some exemplary embodiments, information, for example, in a format of "tm = value", which is added first time stamp information, may be added in the application layer information.
And in the second situation, the received message is sent by the network element node on the network side.
For the second case, in some exemplary embodiments, the adding the first timestamp information to the packet includes: second timestamp information is added into the message, and the first routing node is not a routing node directly connected with a second client terminal; wherein the second timestamp information comprises: and the second routing node transmits the transmission time information of the message.
For the second situation, in this embodiment of the application, the transmission time information of the second routing node for the packet may refer to the transmission time information of one routing node for the packet, or may refer to the transmission time information of two or more routing nodes for the packet.
For case two, in some exemplary embodiments, the determining whether the second timestamp information has been added to the message includes:
intercepting a message at an application layer; acquiring application layer information of a message; judging whether second timestamp information is added in the application layer information; under the condition that the second timestamp information is added in the application layer information, determining that the second timestamp information is added in the message; and under the condition that the second timestamp information is not added in the application layer information, determining that the second timestamp information is not added in the message.
For case two, in some exemplary embodiments, it may be determined whether second timestamp information has been added to the application layer information by determining whether information in the format of "tm = value" exists in the application layer information; determining that second time stamp information has been added to the application layer information in a case where information in a format of "tm = value" exists in the application layer information; in the case where information in the format of "tm = value" does not exist in the application layer information, it is determined that the second time stamp information is not added to the application layer information.
For case two, in some exemplary embodiments, the adding the first timestamp information to the packet includes:
and modifying the second timestamp information in the application layer information into the first timestamp information.
For case two, in some exemplary embodiments, said adding the first timestamp information to the packet includes:
adding the first timestamp information in the application layer information.
For example, if delay analysis is performed on each routing node, the second timestamp information in the application layer information may be modified to the first timestamp information, that is, when performing delay analysis on the following routing node, the second timestamp information carried in the packet received by the routing node is not needed, but only the first timestamp information added by the routing node is needed, so that the second timestamp information does not need to be retained in the packet, and meanwhile, bandwidth resources are also saved. In this case, the transmission time information of the second routing node for the packet includes only the transmission time information of one routing node for the packet. Of course, it is also possible to add the first time stamp information in case the second time stamp information is retained in the application layer information. In this case, the transmission time information of the second routing node for the packet may refer to the transmission time information of one routing node for the packet, or may refer to the transmission time information of two or more routing nodes for the packet.
If the delay analysis is only performed on part of the routing nodes, for the routing node which adds the first timestamp information between two adjacent routing nodes performing the delay analysis, the second timestamp information needs to be retained in the application layer information, that is, the first timestamp information needs to be added in a new field of the application layer information, so that the routing node performing the delay analysis can know the delay condition of each routing node which adds the first timestamp information.
For case two, in some exemplary embodiments, the transmission time information includes at least one of: and receiving the time information of the message and sending the time information of the message. That is, the second time stamp information includes at least one of: and the second routing node receives the time information of the message and the time information of the message sent by the second routing node.
For case two, in some exemplary embodiments, said adding the first timestamp information in the application layer information comprises:
adding the first timestamp information at the forefront of the application layer information.
For case two, in some exemplary embodiments, said adding the first timestamp information in the application layer information comprises:
and adding the first time stamp information at the middle position of the application layer information.
For case two, in some exemplary embodiments, said adding the first timestamp information in the application layer information comprises:
and adding the first time stamp information at the end of the application layer information.
For case two, in some exemplary embodiments, adding the first timestamp information at the forefront of the application layer information comprises:
first timestamp information is added before the first field of the application layer information.
For case two, in some example embodiments, adding the first timestamp information at the end of the application layer information comprises:
first timestamp information is added after the last field of the application layer information.
For case two, in some exemplary embodiments, said adding the first timestamp information at the intermediate position of the application layer information comprises:
adding the first timestamp information between any two fields of the application layer information;
or, adding the first timestamp information between any two fields of the first N fields of the application layer information; wherein N is an integer greater than or equal to 2.
That is to say, the first timestamp information may be added in any position of the application layer information, but in some cases, if the packet is large, the packet needs to be segmented in the transmission process, because the application layer information located behind the segmented packet cannot be identified, the first timestamp information should be added in the front position of the application layer information as much as possible for the case of segmenting the packet, so that the first timestamp information is still located in the first segment of the packet after the segmentation.
For example, N is the number of fields of the application layer information in the first segment of the packet.
For case two, in some exemplary embodiments, information, for example, in the format of "tm = value", which is the added first timestamp information, may be added in the application layer information.
Step 202, sending the message added with the first timestamp information.
In this embodiment of the present application, the packet to which the first timestamp information is added is sent to a next routing node, where the next routing node is a routing node closer to the second client terminal.
In some exemplary embodiments, in a case that the message has second timestamp information added thereto, and the first routing node is a routing node directly connected to the second client terminal, the method further includes:
deleting the second timestamp information;
and sending the message with the second timestamp information deleted to the second client terminal.
In some exemplary embodiments, in a case that the received packet is sent by a network element node on the network side, after receiving the packet, the method further includes:
calculating time delay according to the first time stamp information and the second time stamp information;
and sending alarm information under the condition that the time delay is greater than a preset threshold value.
In the embodiment of the present application, after obtaining a routing node whose delay is greater than a preset threshold, the reason why the delay exceeds the standard may be analyzed by checking the utilization rate of a Central Processing Unit (CPU) of the routing node, the size of an idle memory, and the like, so as to implement the analysis to a code layer for improvement.
The calculation of the time delay is explained separately for different cases below.
The first time stamp information comprises time information of a first routing node receiving message, the second time stamp information comprises time information of a second routing node receiving message, each routing node carries out time delay analysis, and the time delay is the total transmission time delay between the first routing node and the second routing node, so the time delay is the difference between the first time stamp information and the second time stamp information.
And (II) aiming at the condition that the first time stamp information comprises the time information of a message sent by the first routing node, the second time stamp information comprises the time information of a message sent by the second routing node, each routing node performs time delay analysis, and the time delay is the total transmission time delay between the first routing node and the second routing node, so the time delay is the difference between the first time stamp information and the second time stamp information.
(iii) include for the first timestamp information: the first routing node receives the time information of the message and the time information of the message sent by the first routing node, and the second timestamp information comprises: the second routing node receives the time information of the message and the time information of the message sent by the second routing node, and each routing node performs a time delay analysis, wherein the time delay comprises at least one of the following conditions:
a total transmission delay between the first routing node and the second routing node;
the first routing node delays the processing of the message;
the second routing node delays the message processing;
and the transmission link between the first routing node and the second routing node delays the transmission of the message.
Wherein, the total transmission time delay between the first routing node and the second routing node is:
the difference between the time information of the message received by the first routing node and the time information of the message received by the second routing node;
or the difference between the time information of the message sent by the first routing node and the time information of the message sent by the second routing node.
The processing time delay of the first routing node to the message is as follows: the difference between the time information of the message sent by the first routing node and the time information of the message received by the first routing node.
The processing time delay of the second routing node to the message is as follows: the difference between the time information of the message sent by the second routing node and the time information of the message received by the second routing node.
The transmission delay of the transmission link between the first routing node and the second routing node to the message is as follows: the difference between the time information of the message received by the first routing node and the time information of the message sent by the second routing node.
In the embodiment of the application, different time delays can correspond to different alarm information and different preset thresholds.
(IV) aiming at the condition that the first timestamp information comprises the time information of the first routing node for receiving the message, the second timestamp information comprises the time information of the second routing node for receiving the message, and only part of routing nodes are subjected to delay analysis, wherein the delay comprises:
the total transmission delay between the first routing node and the last second routing node added with the second timestamp information;
and the total transmission delay between two adjacent second routing nodes added with the second timestamp information.
And the total transmission delay between the first routing node and the second routing node added with the second timestamp information is the difference between the first timestamp information and the second timestamp information.
The total transmission delay between two adjacent second routing nodes added with the second timestamp information is the difference between the second timestamp information of two adjacent second routing nodes added with the second timestamp information.
(V) aiming at the condition that the first time stamp information comprises the time information of the message sent by the first routing node, the second time stamp information comprises the time information of the message sent by the second routing node, and only part of routing nodes carry out time delay analysis, wherein the time delay comprises:
the total transmission delay between the first routing node and the last second routing node added with the second timestamp information;
and the total transmission delay between two adjacent second routing nodes added with the second timestamp information.
And the total transmission delay between the first routing node and the second routing node added with the second timestamp information is the difference between the first timestamp information and the second timestamp information.
The total transmission delay between two adjacent second routing nodes added with the second timestamp information is the difference between the second timestamp information of two adjacent second routing nodes added with the second timestamp information.
(sixth) including for the first timestamp information: the first routing node receives the time information of the message and the time information of the message sent by the first routing node, and the second timestamp information comprises: the second routing node receives the time information of the message and the time information of the message sent by the second routing node, and only the time delay analysis is carried out on part of the routing nodes, wherein the time delay comprises at least one of the following conditions:
the total transmission delay between the first routing node and the last second routing node added with the second timestamp information;
the total transmission delay between two adjacent second routing nodes added with the second timestamp information;
the first routing node delays the processing of the message;
the second routing node delays the message processing;
the transmission delay of the transmission link between the first routing node and the last second routing node added with the second timestamp information to the message is as follows:
and the transmission link between two adjacent second routing nodes added with the second timestamp information delays the transmission of the message.
Wherein, the total transmission delay between the first routing node and the last second routing node added with the second timestamp information is:
the difference between the time information of the message received by the first routing node and the time information of the message received by the second routing node;
or the difference between the time information of the message sent by the first routing node and the time information of the message sent by the last second routing node added with the second timestamp information.
The total transmission delay between two adjacent second routing nodes added with the second timestamp information is as follows:
the difference between the time information of the message received by the second routing node close to the second client terminal and the time information of the message received by the second routing node close to the first client terminal in two adjacent second routing nodes added with the second timestamp information;
or, in two adjacent second routing nodes added with the second timestamp information, the difference between the time information of the message sent by the second routing node close to the second client terminal and the time information of the message sent by the second routing node close to the first client terminal.
The processing time delay of the first routing node to the message is as follows: the difference between the time information of the message sent by the first routing node and the time information of the message received by the first routing node.
The processing time delay of the second routing node to the message is as follows: the difference between the time information of the message sent by the second routing node and the time information of the message received by the second routing node.
The transmission delay of the transmission link between the first routing node and the last second routing node added with the second timestamp information to the message is as follows: and the difference between the time information of the message received by the first routing node and the time information of the message sent by the last second routing node added with the second timestamp information.
The transmission delay of the transmission link between two adjacent second routing nodes added with the second timestamp information to the packet is as follows: and in two adjacent second routing nodes added with the second timestamp information, the difference between the time information of the message sent by the second routing node close to the second client terminal and the time information of the message received by the second routing node close to the first client terminal.
In the embodiment of the application, different time delays can correspond to different alarm information and different preset thresholds.
According to the message processing method provided by the embodiment of the application, the first timestamp information is added to the message in the first routing node on the data path, so that the time delay analysis is performed according to the first timestamp information in the following process, and the problem of the time delay of the data path is solved.
In order to more clearly describe the process of transferring and analyzing the timestamp information, the following still takes the example in fig. 1 as an example to describe in detail the transferring and analyzing of the timestamp information between different routing nodes, and the example is only for convenience of illustration and is not used to limit the scope of the embodiments of the present application.
Example 1
In this example, both the client terminal a and the client terminal B are power devices, the frequency of sending messages by the power devices is very high (2000 messages per second at the lowest), and time modules in the devices detect the time delay of messages sent by the peer devices for statistics, and an alarm will be given when the time delay exceeds 80 milliseconds (ms), which never happens in a 4G network. Because the requirement on the delay index is extremely high, the traditional method is difficult to find out and position, and therefore, each routing node between the client terminal A and the client terminal B needs to support the addition of the timestamp information.
In this example, in the process of sending a packet to the client terminal B by the client terminal a, each routing node on the data path between the client terminal a and the client terminal B adds the time for receiving the packet by the routing node, and performs delay analysis.
In this example, as shown in fig. 1, a client terminal a is connected to a router R1 through a network cable, the router R1 performs 5G or Long Term Evolution (LTE) dialing, a client terminal B is also connected to a router R2 through a network cable, the router R2 performs 5G or LTE dialing, and a base station 1, a core network element C, and a base station 2 exist between the router R1 and the router R2.
As shown in fig. 1, after being powered on, a router R1 monitors a message sent by a client terminal a, and if the message sent by the client terminal a is received, intercepts the message at an application layer, obtains application layer information of the message, and adds information in a format of "tm = value" in front of a first field of the application layer information; wherein, value = t1, and t1 is the time when the router R1 receives the packet; the router R1 transmits a message to which information in the format of "tm = value" is added to the base station 1.
Monitoring a message sent by a router R1 after a base station 1 is powered on, if the message sent by the router R1 is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information in a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, sending the message to a core network element C; if the information with the format of "tm = value" exists in front of the first field of the application layer information, the value in the information with the format of "tm = value" in front of the first field of the application layer information is modified to t2 because the base station 1 is not a routing node directly connected with the client terminal B, and t2 is the time for the base station 1 to receive the message; the base station 1 sends the message to a core network element C; in addition, the base station 1 calculates the total transmission delay between the base station 1 and the router R1, i.e. the difference between t2 and t 1; if the difference between t2 and t1 is more than 10 milliseconds (ms), sending alarm information; if the difference between t2 and t1 is less than 10ms, it indicates that the time delay between the base station 1 and the router R1 is stable.
Monitoring a message sent by a base station 1 after a core network element C is powered on, if the message sent by the base station 1 is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information with a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, sending the message to the base station 2; if the information with the format of 'tm = value' exists in front of the first field of the application layer information, the value in the information with the format of 'tm = value' in front of the first field of the application layer information is modified to t3 because the core network element C is not a routing node directly connected with the client terminal B, and t3 is the time for the core network element C to receive the message; the core network element C sends the message to the base station 2; and, the core network element C calculates the total transmission delay between the core network element C and the base station 1, i.e. the difference between t3 and t 2; if the difference between t3 and t2 is greater than 10ms, alarm information is sent out; and if the difference between t3 and t2 is less than 10ms, the time delay between the core network element C and the base station 1 is stable.
Monitoring a message sent by a core network element C after a base station 2 is powered on, if the message sent by the core network element C is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information in a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, the message is sent to the router R2; if the information with the format of "tm = value" exists in front of the first field of the application layer information, the base station 2 is not a routing node directly connected with the client terminal B, the value in the information with the format of "tm = value" in front of the first field of the application layer information is modified to be t4, and t4 is the time for the base station 2 to receive the message; the base station 2 sends the message to the router R2; in addition, the base station 2 calculates the total transmission delay between the base station 2 and the core network element C, i.e. the difference between t4 and t 3; if the difference between t4 and t3 is greater than 10ms, alarm information is sent out; and if the difference between t4 and t3 is less than 10ms, the time delay between the base station 2 and the network element C of the core network is stable.
Monitoring a message sent by a base station 2 after a router R2 is powered on, if the message sent by the base station 2 is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information in a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, the message is sent to the client terminal B; if the information with the format of 'tm = value' exists in front of the first field of the application layer information, the information with the format of 'tm = value' in front of the first field of the application layer information is deleted because the router R2 is a routing node directly connected with the client terminal B; the router R2 sends the message to the client terminal B; the router R2 calculates the total transmission delay between the router R2 and the base station 2, i.e. the difference between t5 and t4, where t5 is the time for the router R2 to receive the message; if the difference between t5 and t4 is greater than 10ms, alarm information is sent out; if the difference between t5 and t4 is less than 10ms, it indicates that the delay between the router R2 and the base station 2 is stable.
Example 2
In this example, both the client terminal a and the client terminal B are power devices, the frequency of sending messages by the power devices is very high (2000 messages per second at the lowest), and time modules in the devices detect the time delay of messages sent by the peer devices for statistics, and an alarm will be given when the time delay exceeds 80 milliseconds (ms), which never happens in a 4G network. Because the requirement on the delay index is extremely high, the traditional method is difficult to find out and position, and therefore, each routing node between the client terminal A and the client terminal B needs to support the addition of the timestamp information.
In this example, in the process of sending a packet from the client terminal a to the client terminal B, each routing node on the data path between the client terminal a and the client terminal B adds the time for receiving the packet by the routing node, and only performs delay analysis on the router R2.
In this example, as shown in fig. 1, a client terminal a is connected to a router R1 through a network line, the router R1 performs 5G or Long Term Evolution (LTE) dialing, a client terminal B is also connected to a router R2 through a network line, the router R2 performs 5G or LTE dialing, and a base station 1, a core network element C, and a base station 2 exist between the router R1 and the router R2.
As shown in fig. 1, after being powered on, a router R1 monitors a message sent by a client terminal a, and if the message sent by the client terminal a is received, intercepts the message at an application layer, obtains application layer information of the message, and adds information in a format of "tm = value" in front of a first field of the application layer information; wherein, value = t1, and t1 is the time when the router R1 receives the packet; the router R1 transmits a message to which information in the format of "tm = value" is added to the base station 1.
Monitoring a message sent by a router R1 after a base station 1 is powered on, if the message sent by the router R1 is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information in a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, sending the message to a core network element C; if the information with the format of "tm = value" exists in front of the first field of the application layer information, because the base station 1 is not a routing node directly connected with the client terminal B, the information with the format of "tm = value" is added in front of the first field of the application layer information; wherein, value = t2, and t2 is the time when the base station 1 receives the message; that is, the first field of the application layer information is preceded by tm = t1 information and tm = t2 information; and the base station 1 sends the message to a core network element C.
Monitoring a message sent by a base station 1 after a core network element C is electrified, if the message sent by the base station 1 is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information with a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, the message is sent to the base station 2; if the information with the format of "tm = value" exists in front of the first field of the application layer information, because the core network element C is not a routing node directly connected with the client terminal B, the information with the format of "tm = value" is added in front of the first field of the application layer information; wherein, value = t3, and t3 is the time for receiving the message by the network element C of the core network; that is, the first field of the application layer information is preceded by tm = t1 information, tm = t2 information, and tm = t3 information; the core network element C sends the message to the base station 2.
Monitoring a message sent by a core network element C after a base station 2 is powered on, if the message sent by the core network element C is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information in a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, the message is sent to the router R2; if the information with the format of "tm = value" exists in front of the first field of the application layer information, the information with the format of "tm = value" is added in front of the first field of the application layer information because the base station 2 is not a routing node directly connected with the client terminal B; wherein, value = t4, and t4 is the time when the base station 2 receives the message; that is, the first field of the application layer information is preceded by tm = t1 information, tm = t2 information, tm = t3 information, and tm = t4 information; the base station 2 sends the message to the router R2.
Monitoring a message sent by a base station 2 after a router R2 is powered on, if the message sent by the base station 2 is received, intercepting the message at an application layer, acquiring application layer information of the message, and judging whether information in a format of 'tm = value' exists in front of a first field of the application layer information; if the information with the format of 'tm = value' does not exist in front of the first field of the application layer information, the message is sent to the client terminal B; if the information with the format of 'tm = value' exists in front of the first field of the application layer information, the information with the format of 'tm = value' in front of the first field of the application layer information is deleted because the router R2 is a routing node directly connected with the client terminal B; that is, the information of tm = t1, the information of tm = t2, the information of tm = t3, and the information of tm = t4 included in front of the first field of the application layer information are deleted; the router R2 sends the message to the client B.
In addition, the router R2 calculates the total transmission delay between the base station 1 and the router R1, i.e. the difference between t2 and t 1; if the difference between t2 and t1 is greater than 10ms, alarm information is sent out; if the difference between t2 and t1 is less than 10ms, it indicates that the time delay between the base station 1 and the router R1 is stable.
The router R2 calculates the total transmission time delay between the core network element C and the base station 1, namely the difference between t3 and t 2; if the difference between t3 and t2 is greater than 10ms, alarm information is sent out; and if the difference between t3 and t2 is less than 10ms, the time delay between the core network element C and the base station 1 is stable.
The router R2 calculates the total transmission time delay between the base station 2 and the core network element C, namely the difference between t4 and t 3; if the difference between t4 and t3 is greater than 10ms, alarm information is sent out; and if the difference between t4 and t3 is less than 10ms, the time delay between the base station 2 and the network element C of the core network is stable.
The router R2 calculates the total transmission time delay between the router R2 and the base station 2, namely the difference between t5 and t4, wherein t5 is the time for the router R2 to receive the message; if the difference between t5 and t4 is greater than 10ms, alarm information is sent out; if the difference between t5 and t4 is less than 10ms, it indicates that the delay between the router R2 and the base station 2 is stable.
In a second aspect, an embodiment of the present application provides an electronic device, including:
at least one processor;
a memory having at least one program stored thereon, the at least one program when executed by the at least one processor implementing any of the message processing methods described above.
Wherein, the processor is a device with data processing capability, which includes but is not limited to a Central Processing Unit (CPU) and the like; memory is a device with data storage capabilities including, but not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), FLASH memory (FLASH).
In some embodiments, the processor, memory, and in turn other components of the computing device are connected to each other by a bus.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the message processing methods described above.
Fig. 3 is a block diagram of a message processing apparatus according to another embodiment of the present application.
In a fourth aspect, referring to fig. 3, another embodiment of the present application provides a message processing apparatus, including:
a message receiving module 301, configured to receive a message;
a message processing module 302, configured to add first timestamp information to the message when the first timestamp information needs to be added to the message; wherein the first timestamp information comprises: the first routing node transmits the message according to the transmission time information of the message;
a message sending module 303, configured to send the message to which the first timestamp information is added.
In some exemplary embodiments, the message receiving module 301 is specifically configured to: receiving a message sent by a first client terminal;
the message processing module 302 is specifically configured to add the first timestamp information to the message in the following manner: intercepting the message at an application layer; acquiring application layer information of the message; and adding the first time stamp information in the application layer information.
In some exemplary embodiments, the message receiving module 301 is specifically configured to: receiving a message sent by a network element node on a network side;
the step of adding first timestamp information to the message includes: second timestamp information is added into the message, and the first routing node is not a routing node directly connected with a second client terminal; wherein the second timestamp information comprises: and the second routing node transmits the transmission time information of the message.
In some exemplary embodiments, the message processing module 302 is further configured to:
calculating time delay according to the first time stamp information and the second time stamp information;
and sending alarm information under the condition that the time delay is greater than a preset threshold value.
In some exemplary embodiments, the message processing module 302 is further configured to:
deleting second timestamp information under the condition that the message is added with the second timestamp information and the first routing node is a routing node directly connected with a second client terminal;
the message sending module 303 is further configured to: and sending the message with the second timestamp information deleted to the second client terminal.
In some exemplary embodiments, the message processing module 302 is specifically configured to implement the adding of the first timestamp information to the message by using the following manners:
and modifying the second timestamp information into the first timestamp information.
In some exemplary embodiments, the message processing module 302 is specifically configured to implement the adding of the first timestamp information to the message by using the following manners:
and acquiring application layer information of the message, and adding the first timestamp information into the application layer information.
In some exemplary embodiments, the message processing module 302 is specifically configured to add the first timestamp information to the application layer information in the following manner:
adding the first timestamp information at the forefront of the application layer information.
In some exemplary embodiments, the message processing module 302 is specifically configured to implement the adding of the first timestamp information to the application layer information by using the following manners:
and adding the first time stamp information at the middle position of the application layer information.
In some exemplary embodiments, the message processing module 302 is specifically configured to add the first timestamp information to the application layer information in the following manner:
and adding the first time stamp information at the end of the application layer information.
In some exemplary embodiments, the message processing module 302 is specifically configured to add the first timestamp information to the middle position of the application layer information in the following manner:
adding the first timestamp information between any two fields of the application layer information.
In some exemplary embodiments, the message processing module 302 is specifically configured to add the first timestamp information at the middle position of the application layer information by using the following manner:
adding the first timestamp information between any two fields of the first N fields of the application layer information; wherein N is an integer greater than or equal to 2.
In some example embodiments, the transmission time information comprises at least one of: and receiving the time information of the message and sending the time information of the message.
In some exemplary embodiments, the message receiving module 301 is specifically configured to: receiving a message sent by a first client terminal;
further comprising: a packaging or unpacking module 304, configured to package the message to which the first timestamp information is added;
the message sending module 303 is specifically configured to: and sending the packaged message.
In some exemplary embodiments, the message receiving module 301 is specifically configured to: receiving a message sent by a network element node at a network side;
further comprising: a packet or decapsulation module 304, configured to decapsulate the packet;
the message processing module 302 is specifically configured to:
under the condition that first timestamp information needs to be added to the decapsulated message, adding the first timestamp information to the decapsulated message;
the packing or unpacking module 304 is further configured to: packaging the message added with the first timestamp information;
the message sending module 303 is specifically configured to: and sending the packaged message.
The specific implementation process of the message processing apparatus is the same as that of the message processing method in the foregoing embodiment, and is not described here again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by the computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as is well known to those skilled in the art.
Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a generic and descriptive sense only and not for purposes of limitation. In some instances, features, characteristics and/or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics and/or elements described in connection with other embodiments, unless expressly stated otherwise, as would be apparent to one skilled in the art. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the application as set forth in the appended claims.

Claims (16)

1. A message processing method is applied to a first routing node, and comprises the following steps:
receiving a message;
under the condition that first timestamp information needs to be added to the message, adding the first timestamp information to the message; wherein the first timestamp information comprises: the first routing node transmits the message to the second routing node;
and sending the message added with the first timestamp information.
2. The message processing method of claim 1, wherein the receiving a message comprises: receiving a message sent by a first client terminal;
the adding of the first timestamp information to the message comprises: intercepting the message at an application layer; acquiring application layer information of the message; and adding the first time stamp information in the application layer information.
3. The message processing method of claim 1, wherein the receiving a message comprises: receiving a message sent by a network element node at a network side;
the step of adding first timestamp information to the message includes: second timestamp information is added into the message, and the first routing node is not a routing node directly connected with a second client terminal; wherein the second timestamp information comprises: and the second routing node transmits the transmission time information of the message.
4. The message processing method according to claim 3, further comprising, after receiving the message:
calculating time delay according to the first time stamp information and the second time stamp information;
and sending alarm information under the condition that the time delay is greater than a preset threshold value.
5. The message processing method according to claim 3, in a case where the message has second timestamp information added thereto, and the first routing node is a routing node directly connected to a second client terminal, the method further comprising:
deleting the second timestamp information;
and sending the message with the second timestamp information deleted to the second client terminal.
6. The message processing method according to claim 3, wherein the adding the first timestamp information to the message comprises:
and modifying the second timestamp information in the application layer information into the first timestamp information.
7. The message processing method according to claim 3, wherein the adding the first timestamp information to the message comprises:
adding the first timestamp information in the application layer information.
8. The message processing method according to claim 2 or 7, wherein the adding of the first timestamp information to the application layer information comprises:
adding the first timestamp information at the forefront of the application layer information.
9. The message processing method according to claim 2 or 7, wherein the adding of the first timestamp information to the application information comprises:
and adding the first time stamp information at the middle position of the application layer information.
10. The message processing method according to claim 9, wherein the adding the first timestamp information at the intermediate position of the application layer information comprises:
adding the first timestamp information between any two fields of the application layer information.
11. The message processing method according to claim 9, wherein the adding the first timestamp information at the intermediate position of the application layer information comprises:
adding the first timestamp information between any two fields of the first N fields of the application layer information; wherein N is an integer greater than or equal to 2.
12. The message processing method according to claim 2 or 7, wherein the adding of the first timestamp information to the application information comprises:
and adding the first time stamp information at the end of the application layer information.
13. The message processing method according to claim 1 or 3, wherein the transmission time information comprises at least one of: and receiving the time information of the message and sending the time information of the message.
14. An electronic device, comprising:
at least one processor;
memory having at least one program stored thereon which, when executed by the at least one processor, implements the message processing method according to any of claims 1-13.
15. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements a message processing method according to any of claims 1-13.
16. A message processing apparatus comprising:
the message receiving module is used for receiving a message;
the timestamp information adding module is used for adding first timestamp information to the message under the condition that the first timestamp information needs to be added to the message; wherein the first timestamp information comprises: the first routing node transmits the message to the second routing node;
and the message sending module is used for sending the message added with the first timestamp information.
CN202110433524.XA 2021-04-21 2021-04-21 Message processing method and device, electronic equipment and computer readable storage medium Pending CN115242682A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110433524.XA CN115242682A (en) 2021-04-21 2021-04-21 Message processing method and device, electronic equipment and computer readable storage medium
PCT/CN2022/083267 WO2022222693A1 (en) 2021-04-21 2022-03-28 Message processing method and apparatus, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110433524.XA CN115242682A (en) 2021-04-21 2021-04-21 Message processing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115242682A true CN115242682A (en) 2022-10-25

Family

ID=83665933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110433524.XA Pending CN115242682A (en) 2021-04-21 2021-04-21 Message processing method and device, electronic equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN115242682A (en)
WO (1) WO2022222693A1 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101160821A (en) * 2005-11-17 2008-04-09 华为技术有限公司 Method of measuring MPLS network performance parameter and packet transmission device and system
US20100125661A1 (en) * 2008-11-20 2010-05-20 Valtion Teknillinen Tutkimuskesku Arrangement for monitoring performance of network connection
CN101997774A (en) * 2010-11-03 2011-03-30 华为数字技术有限公司 Recoding method for forwarding time delay and router
CN108075935B (en) * 2016-11-15 2021-01-29 华为技术有限公司 Method and device for measuring time delay
CN107508719B (en) * 2017-02-15 2020-04-14 北京中航通用科技有限公司 Method and device for measuring network time delay and network node
CN113206789A (en) * 2019-09-12 2021-08-03 华为技术有限公司 Path detection method, path detection device and computer storage medium
CN111585834B (en) * 2020-04-14 2021-09-14 中国联合网络通信集团有限公司 Network information storage method and device
CN112565017A (en) * 2020-12-04 2021-03-26 盛科网络(苏州)有限公司 Time delay measuring method and device based on SRv6 SID

Also Published As

Publication number Publication date
WO2022222693A1 (en) 2022-10-27

Similar Documents

Publication Publication Date Title
CN109391560B (en) Network congestion notification method, proxy node and computer equipment
CN113411313B (en) Data transmission method, device and system
CN110022264B (en) Method for controlling network congestion, access device and computer readable storage medium
US9413651B2 (en) Selective deep packet inspection
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
US20110110220A1 (en) System, apparatus and method for removing unwanted information from captured data packets
US20220393908A1 (en) Message Encapsulation Method and Apparatus, and Message Decapsulation Method and Apparatus
CN112214441A (en) Communication switching method, equipment and system based on serial bus polling protocol
CN101562500B (en) Data transmission request method, data transmission method and data transmission device
CN107370654B (en) Pseudo wire data message encapsulation and decapsulation methods and related devices
CN109600248B (en) Method and device for determining quality of service and storage medium
US11799576B2 (en) Data sending method and apparatus, and FlexE switching system
CN112822646B (en) Message processing method and device, electronic equipment and computer readable storage medium
CN112003816B (en) Data transmission method, device, equipment and storage medium
CN111490907B (en) Method and device for determining VXLAN network performance parameters
CN109995603B (en) Method and device for measuring packet loss under Tag model and electronic equipment
CN111371736B (en) iOAM information processing method, iOAM information processing device and computer readable storage medium
CN117082054A (en) Data transmission method, device, system and medium
US11196792B2 (en) Method, device and system for transmitting data
CN111277426B (en) IOAM information processing method and device
CN110661745B (en) Overhead transmission method, device, equipment and computer readable storage medium
CN115242682A (en) Message processing method and device, electronic equipment and computer readable storage medium
CN107078837A (en) A kind of agreement frame transmission method, device, node device and system
CN113163025B (en) Data transmission method, device, equipment and storage medium
US20240048644A1 (en) Message transmission method and system, and network device and storage medium

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