CN116321276B - Time delay determining method, communication network, device and storage medium - Google Patents

Time delay determining method, communication network, device and storage medium Download PDF

Info

Publication number
CN116321276B
CN116321276B CN202310581603.4A CN202310581603A CN116321276B CN 116321276 B CN116321276 B CN 116321276B CN 202310581603 A CN202310581603 A CN 202310581603A CN 116321276 B CN116321276 B CN 116321276B
Authority
CN
China
Prior art keywords
message
transmitted
network
delay
time stamp
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
CN202310581603.4A
Other languages
Chinese (zh)
Other versions
CN116321276A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202310581603.4A priority Critical patent/CN116321276B/en
Publication of CN116321276A publication Critical patent/CN116321276A/en
Application granted granted Critical
Publication of CN116321276B publication Critical patent/CN116321276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • 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

Landscapes

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

Abstract

The embodiment of the invention provides a time delay determining method, a communication network, equipment and a storage medium, wherein the method comprises the following steps: the message to be transmitted corresponding to the target service provided by the communication network can be transmitted between a message sending end and a message receiving end in the communication network. In the transmission process, the time delay determining component can analyze the sending time stamp of the message from the message to be transmitted, and can also analyze the receiving time stamp of the confirmation message from the confirmation message corresponding to the message to be transmitted. The time delay determining component can determine the time delay of the transmission of the message to be transmitted between the two ends of the message receiving and transmitting according to the two time stamps. In the method, the delay determining component independently arranged in the message sending end and/or the message receiving end can be used for directly detecting the transmission delay of the message to be transmitted under the condition of not modifying the protocol stack used by the communication network. Meanwhile, the communication network does not need to generate additional detection messages in the detection process, so that the transmission pressure of the network can be reduced.

Description

Time delay determining method, communication network, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for determining a time delay, a communications network, a device, and a storage medium.
Background
With the development of the fifth generation mobile communication technology (5 th Generation Mobile Communication Technology, abbreviated as 5G), the 5G communication network has been applied to various scenarios. And the 5G communication network can be specifically deployed as a private network in a certain area, such as an industrial park or a certain geographic area, and terminal equipment accessing the network can run various services, such as instant messaging service, live broadcast service, information search service and the like by means of various application programs installed on the terminal equipment.
In the process of running a certain service, a message corresponding to the service generated by a Data Network (DN) can be sequentially transmitted to a core Network, a base station and finally reach the terminal device used by a user by the DN. In practice, the transmission delay of the message between different devices can reflect the network state, which in turn directly affects the quality of service.
Therefore, how to accurately determine the transmission delay of the message to ensure the service quality becomes a urgent problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present invention provide a delay determining method, a communication network, a device, and a storage medium, which are used to accurately determine a transmission delay of a message.
In a first aspect, an embodiment of the present invention provides a method for determining a time delay, including:
obtaining a message to be transmitted corresponding to a target service provided by a communication network, wherein the message to be transmitted is sent to a message receiving end in the communication network by the message sending end;
determining a sending time stamp of the message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted by means of a time delay determining component, wherein the confirmation message is generated after the message receiving end receives the message to be transmitted;
and processing the sending time stamp and the receiving time stamp by means of the time delay determining component so as to obtain the transmission time delay of the message to be transmitted.
In a second aspect, an embodiment of the present invention provides a network device deployed in a private network that appears as a cloud network, the network device comprising: a delay determining component and a communication component;
the communication component is used for acquiring a message to be transmitted corresponding to a target service provided by the private network;
the time delay determining component is used for sending the message to be transmitted to other network devices in the private network;
determining a sending time stamp of the message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted, wherein the confirmation message is generated after the other network equipment receives the message to be transmitted;
And processing the sending time stamp and the receiving time stamp to obtain the transmission time delay of the to-be-transmitted message between the network equipment and the other network equipment.
In a third aspect, an embodiment of the present invention provides a terminal device accessing a private network represented by a cloud network, the terminal device including: a delay determining component and a communication component;
the communication component is configured to send a message to be transmitted to other network devices in the private network, where the message to be transmitted corresponds to a target service provided by the private network;
the delay determining component is configured to determine a sending timestamp of the to-be-transmitted message and a receiving timestamp of a confirmation message corresponding to the to-be-transmitted message, where the confirmation message is generated after the other network devices receive the to-be-transmitted message;
and processing the sending time stamp and the receiving time stamp to obtain the transmission time delay of the to-be-transmitted message between the network equipment and the other network equipment.
In a fourth aspect, an embodiment of the present invention provides a communication network, including: the device comprises a message sending end and a message receiving end, wherein a time delay determining component is arranged in the message sending end;
The message sending end is used for obtaining a message to be transmitted corresponding to a target service provided by the communication network; determining a sending time stamp of the message to be transmitted and a receiving time stamp of the confirmation message corresponding to the message to be transmitted by means of the time delay determining component; processing the sending time stamp and the receiving time stamp by means of the time delay determining component to obtain the transmission time delay of the message to be transmitted;
the message receiving end is used for receiving the message to be transmitted; generating the confirmation message in response to the receiving of the message to be transmitted; and sending the confirmation message to the message sending end.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory is configured to store one or more computer instructions, and the one or more computer instructions implement the method for determining a delay in the first aspect when executed by the processor. The network device may also include a communication interface for communicating with other devices or communication systems.
In a sixth aspect, embodiments of the present invention provide a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to at least implement a method of latency determination as in the first aspect described above.
According to the time delay determining method provided by the embodiment of the invention, the message to be transmitted corresponding to the target service provided by the communication network can be transmitted between the message sending end and the message receiving end in the communication network. In the transmission process, a time delay determining component installed in a message sending end and/or a message receiving end can analyze a sending time stamp of a message from the message to be transmitted; meanwhile, the time delay determining component can also analyze the receiving time stamp of the confirmation message from the confirmation message which is generated by the message receiving end and corresponds to the message to be transmitted. Finally, the time delay determining component can determine the time delay of the transmission of the message to be transmitted between the two ends of the message receiving and transmitting according to the two time stamps.
In the method, the transmission delay affecting the service quality of the target service can be directly detected by means of the delay determining component independently arranged in the message sending end and/or the message receiving end under the condition of not modifying the protocol stack used by the communication network. The transmission delay is determined under the condition of not invading the communication protocol, namely the delay detection and the decoupling of protocol stack modification are realized. In addition, in the above process, the transmission delay affecting the service quality of the target service is detected by directly using the message to be transmitted corresponding to the target service, and the communication network does not need to generate an additional detection message, so that the transmission pressure of the network can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a communication network according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another communication network according to an embodiment of the present invention;
fig. 3a is a schematic diagram of a pending message transmission process according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of a timestamp option provided by an embodiment of the present invention;
fig. 4a is a schematic diagram of a communication network according to an embodiment of the present invention for detecting a delay in a live scene;
fig. 4b is a schematic diagram of detecting a time delay in an autopilot scenario in a communication network according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another network device according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for determining a time delay according to an embodiment of the present invention;
fig. 9 is a flowchart of another method for determining a time delay according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a delay detection device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to an identification", depending on the context. Similarly, the phrase "if determined" or "if identified (stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when identified (stated condition or event)" or "in response to an identification (stated condition or event), depending on the context.
It should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present invention are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
Some embodiments of the invention will now be described in detail with reference to the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and features in the embodiments may be combined with each other. In addition, the sequence of steps in the method embodiments described below is only an example and is not strictly limited.
Fig. 1 is a communication network according to an embodiment of the present invention. As shown in fig. 1, the communication Network may include a Data Network (DN), a core Network, and a radio access Network (Radio Access Network, RAN). Meanwhile, the terminal equipment used by the user can also access the communication network to run various services, and specific content of the services can be seen from the following related description.
Alternatively, the communication network may in particular be a private network deployed in a specific area, such as in an industrial park. The private network may in particular be embodied as a cloud network or as a localization network.
Optionally, the Core Network may be a 5G Core Network (5G Core Network, 5 GC) based on the fifth generation mobile communication technology (5 th Generation Mobile Communication Technology, 5G for short), a 4G Core Network of the fourth generation mobile communication technology (4 th Generation Mobile Communication Technology, 4G for short), or a Core Network of a mixture of 4G and 5G. Wherein, the 5G core network and the 4G core network can have a common core network structure, and are not described in detail herein.
Alternatively, the RAN may comprise an access device. The access device may in particular be embodied as a base station. When the core network is specifically 5GC, the base station may be a 5G base station (the next Generation Node B, abbreviated as gNB).
Alternatively, the DN may include a data server providing a service, which may be a separate server or a cluster of servers. A data server may provide at least one service.
Alternatively, the service provided by the data server to the terminal device may be an instant messaging service, a live broadcast service, an information search service, or the like mentioned in the background art. The voice call service may be a call service provided by various instant messaging applications installed in the terminal device, or a call service provided by a mobile operator. The live video corresponding to the live service can be specifically a live video of a sports event or a game, or can be a live video for realizing remote education and remote medical treatment, and the like. In addition, the services provided by the data server may also include an autopilot service, an Extended Reality (XR) service, and so on. The XR services may specifically further include Virtual Reality (VR) services, augmented Reality (Augmented Reality, AR) services, mixed Reality (MR) services, and so on.
Optionally, the above services provided by the data server may be further classified into a guaranteed rate (Guarantee Bit Rate, GBR) type and a non-guaranteed rate (Non Guarantee Bit Rate, NGBR) type. The information search service may be NGBR type, and the other service may be GBR type.
For the terminal device and the data server, optionally, the terminal device corresponding to the voice call service, the live broadcast service, and the information search service may be a mobile terminal device installed with a corresponding application program, such as a mobile phone, a plane computer, a notebook computer, and so on. The data server for providing the service can store streaming media data such as teaching live video, event live video, medical live video and the like. The terminal device corresponding to the XR service may be a mobile terminal device with application programs such as VR, AR, MR, etc., or may be a wireless, wearable VR device, AR device, MR device, etc. The XR video may be stored in a data server providing this service. The terminal device corresponding to the autopilot service may be a vehicle-mounted terminal device. The data server providing the service can store various vehicle state data collected and reported by the vehicle-mounted terminal equipment, and can also generate control instructions according to the respective vehicle state data so as to control the vehicle to realize automatic driving by utilizing the control instructions.
In the communication network shown in fig. 1, in the process of running the target service, the terminal device and the data server providing the target service can both generate the message to be transmitted. When the message to be transmitted is a downlink message generated by the data server, the downlink message can be transmitted from the data server to the network equipment in the 5GC and then transmitted to the RAN, and the access equipment in the RAN can forward the message to be transmitted to the terminal equipment by utilizing the allocated air interface resources after receiving the message to be transmitted, so that the user can normally use the target service. Alternatively, the target service running on the terminal device may be at least one of the various services mentioned in the embodiment shown in fig. 1. Similarly, when the message to be transmitted is an uplink message generated by the terminal device, the uplink message may also be transmitted to the data server sequentially through the access device and the 5 GC.
The transmission of the message to be transmitted between the terminal equipment and the access equipment can be called air interface side transmission, the transmission between the access equipment and the core network can be called network side transmission, and the transmission between the core network and the data server can be called service side transmission. It should be noted that, the network device for transmitting the uplink and downlink messages in the 5GC may specifically be a device that provides a 5GC user plane function, that is, a user plane element (UPF) network element in the 5GC, and then the transmission of the message on the network side may actually be the transmission of the message between the access device and the UPF network element.
In practice, the transmission delay of the message at either side can reflect the network state, and the state directly affects the service quality of the target service. Therefore, accurately detecting the transmission delay of the message transmitted on different sides, namely sensing the network state of the message transmission, is a precondition for ensuring the service quality.
The schemes provided by the following embodiments of the present invention can be used in order to ensure the quality of service. The following scheme can be used for detecting the transmission delay of the message between the terminal equipment and the access equipment, namely the transmission delay of the air interface side, detecting the transmission delay of the message between the terminal equipment and the core network, and detecting the transmission delay of the message between the terminal equipment and the data server. And finally obtaining the transmission delay of the message at the network side and the service side according to the detected transmission delay. For example, the difference between the transmission delay of the message between the terminal equipment and the core network and the transmission delay of the air interface side is the transmission delay of the network side; the transmission delay of the message between the terminal equipment and the data server is subtracted by the transmission delay of the air interface side, and the transmission delay of the network side is subtracted by the transmission delay of the service side.
Based on the above description, fig. 2 is a schematic structural diagram of another communication network according to an embodiment of the present invention. As shown in fig. 2, the communication network may include a message sending end and a message receiving end, and in an alternative case, a delay determining component may be installed in the message sending end and/or the message receiving end.
Alternatively, the communication network may in particular be a private network, to which the terminal device accesses. The private network may specifically comprise a core network and an access device, and may specifically be a cloud network. Alternatively, the delay determining component may specifically be an extended berkeley packet filter (Extended Berkeley Packet Filter, abbreviated as eBPF) program.
The process of determining the transmission delay of the communication network provided in this embodiment may be described as follows:
the message sending end can firstly obtain the message to be transmitted corresponding to the target service provided by the communication network. Alternatively, the target service may be at least one of the services mentioned in the embodiment shown in fig. 1. The message sending end can normally transmit the acquired message to be transmitted to the message receiving end, namely the message to be transmitted is transmitted in a transparent way. The message receiving end can generate an acknowledgement message (ACK) corresponding to the message to be transmitted after receiving the message to be transmitted, and further feeds back the acknowledgement message to the message receiving end.
The message sending end can analyze the message to be transmitted by utilizing a self-installed time delay determining component based on the acquired message to be transmitted and the acquired confirmation message in an optional time delay determining mode so as to obtain a sending time stamp of the message to be transmitted. After receiving the confirmation message, the message sending end can also continue to analyze the confirmation message by using the time delay determining component, so as to obtain a receiving time stamp of the confirmation message. Finally, the time delay determining component can process the sending time stamp of the message to be transmitted and the receiving time stamp of the confirmation message to obtain the transmission time delay generated when the message to be transmitted is transmitted between the message sending end and the message receiving end. For the processing of the time stamp by the time delay determining component, a common mode is that the time delay determining component makes a difference between the receiving time stamp and the sending time stamp, and the difference is the transmission time delay of the message to be transmitted. The relationship among the pending message, the sending timestamp, the acknowledgement message, and the receiving timestamp can be understood in conjunction with fig. 3 a.
Alternatively, the message to be transmitted and the acknowledgement message may be messages based on a transmission control protocol (Transmission Control Protocol, abbreviated as TCP). The message header of each of the message to be transmitted and the confirmation message may include a field, i.e., a timestamp option (timestamp option). The delay determination component can obtain the transmit timestamp and the receive timestamp by parsing the timestamp option in the header.
Alternatively, the format of a timestamp option in a TCP packet may be as shown in fig. 3 b. As shown in fig. 3b, the timestamp option includes a category (kine), a length (length), a transmit timestamp (TS Value), and a receive timestamp (TS Echo Reply). The total length of the timestamp option shown in fig. 3b is 10 bytes, the two timestamps are 4 bytes each, and the category and length are 1 byte each. It should be noted that the present invention is not limited to the format of the timestamp option, and fig. 3b is only an illustration.
Based on the timestamp options in the format, the sending timestamp contained in the timestamp option of the message to be transmitted is not null and the receiving timestamp is null; the time stamp option of the acknowledgement message contains neither a transmit time stamp nor a receive time stamp that is null. At this time, in another optional delay determining manner, after receiving the acknowledgement message, the message sending end may directly parse the acknowledgement message to obtain a sending timestamp and a receiving timestamp, so as to further determine the transmission delay.
In another optional delay determining mode, after the message receiving end receives the message to be transmitted, the message receiving end can also analyze the sending time stamp of the message to be transmitted from the message receiving end by means of the self-installed delay determining component. And the message sending end can also feed back the receiving time stamp to the message receiving end after analyzing the receiving time stamp from the confirmation message by the time delay determining component. The message receiving end can process the sending time stamp and the receiving time stamp by means of the time delay determining component so as to obtain the transmission time delay of the message to be transmitted. The processing manner of the message receiving end on the timestamp can be referred to the above description.
In this embodiment, a message to be transmitted corresponding to a target service provided by a communication network may be transmitted between a message sending end and a message receiving end in the communication network. In the transmission process, a time delay determining component installed in a message sending end and/or a message receiving end can analyze a sending time stamp of a message from the message to be transmitted; meanwhile, the time delay determining component can also analyze the receiving time stamp of the confirmation message from the confirmation message which is generated by the message receiving end and corresponds to the message to be transmitted. Finally, the time delay determining component can determine the time delay of the transmission of the message to be transmitted between the two ends of the message receiving and transmitting according to the two time stamps.
In the method, the transmission delay affecting the service quality of the target service can be directly detected by means of the delay determining component independently arranged in the message sending end and/or the message receiving end under the condition of not modifying the protocol stack used by the communication network. Namely, the detection of the transmission delay is realized under the condition of not invading the communication protocol, namely, the decoupling of the delay detection and the protocol stack modification is realized. In addition, in the above process, the transmission delay affecting the service quality of the target service is determined by directly using the message to be transmitted corresponding to the target service, and the communication network does not need to generate an additional detection message, so that the transmission pressure of the network can be reduced.
Optionally, the message sending end in the embodiment shown in fig. 2 may be any one of the terminal device, the access device and the UPF network element in the communication network shown in fig. 1, so that the technical effects that can be achieved by the embodiment shown in fig. 2 may be further understood as follows:
according to the embodiment shown in fig. 1, the message to be transmitted corresponding to the target service may be represented as a downlink message generated by the data server providing the target service, and the data server may generate an additional detection message while generating the downlink message, and may use the detection message to detect for time delay detection. Alternatively, the detection message may specifically be a periodically generated measurement message or a ping command.
If the above manner is adopted, on one hand, the types of the messages corresponding to the to-be-transmitted messages of the detection message and the target service are different, and the generation period is also different, for example, the detection message can be generated periodically, the generation time of the to-be-transmitted message is not fixed, and the transmission delay detected by the data server by using the detection message often cannot accurately reflect the transmission delay of the to-be-transmitted message corresponding to the target service, so that the network state cannot be accurately obtained. On the other hand, the additionally generated detection message is used for detecting the time delay, and the message transmission pressure of the whole communication network is increased. In practice, the detection message is usually additionally generated by the data server, so that the generation of the detection message not only can make the processing logic of the data server more complex, but also can occupy the transmission resources of the communication network, thereby finally affecting the stability of the target service.
The method in the embodiment shown in fig. 2 is to directly use the message to be transmitted corresponding to the target service to detect the transmission delay, so that the problems can be improved at the same time, that is, the processing logic of the data server can be simplified while the accuracy of delay detection is ensured. And the embodiment shown in fig. 2 can transfer the time delay detection function of the data server to any one of the terminal equipment, the access equipment and the UPF network element, and the data server is restarted to generate and transmit the message to be transmitted corresponding to the target service, so that the decoupling of the target service provision and the time delay detection is realized, and the processing logic of the data server is simplified. And is also provided with
As described in the embodiment shown in fig. 1, the message to be transmitted may be an uplink message corresponding to the target service generated by the terminal device, or may be a downlink message generated by a data server that provides the target service. The uplink and downlink messages can be transmitted on the air interface side, the core network side and the service side. In the embodiment shown in fig. 2, the device for determining the transmission delay may be a message sending end and/or a message receiving end. The following embodiments are described by taking the transmission delay determined by the message sending end as an example:
The message sending end may be any one of a terminal device, an access device and a UPF network element in the communication network shown in fig. 1, and in particular, in one case, the message sending end may be the terminal device, the message receiving end may be the access device in the RAN, and the message to be transmitted may be an uplink message generated by the terminal device. At this time, according to the embodiment shown in fig. 2, the terminal device may detect the transmission delay of the message to be transmitted corresponding to the target service on the air interface side by using the delay determining component installed in the terminal device.
In another case, the message sending end may be a terminal device, and the message receiving end may be a UPF network element in 5GC, and the message to be transmitted may be an uplink message generated by the terminal device. At this time, the terminal device may detect the transmission delay of the message to be transmitted between the terminal device and the UPF network element by using the delay determining component installed in the terminal device. Based on the air interface transmission time obtained in the former case, the transmission time delay of the message to be transmitted on the network side can be finally obtained.
In another case, the message sending end may be a terminal device, and the message receiving end may be a data server for providing the target service in the communication network, and the message to be transmitted may be an uplink message generated by the terminal device. At this time, the terminal device may detect the transmission delay of the message to be transmitted between the terminal device and the data server by using the delay determining component installed in itself. Based on the transmission delay of the air interface side, the transmission delay of the message to be transmitted on the service side can be finally obtained.
In the above cases, the terminal device may detect the transmission delays of the uplink messages on different sides by using the delay determining component. Optionally, the delay determining component in the terminal device detects the transmission delay of the uplink message, and the access device, the UPF network element and the data server may not be provided with the delay determining component.
In another case, the message sending end may be a UPF network element in 5GC, the message receiving end may be a terminal device, and the message to be transmitted may be a downlink message generated by a data server providing the target service and received by the UPF network element. The UPF network element may utilize an N6 interface between the UPF network element and the data server to screen a message to be transmitted corresponding to the target service from messages corresponding to different services sent by the data server. And then, detecting the transmission delay of the message to be transmitted between the terminal equipment and the UPF network element by using a delay determining component installed by the self, and finally obtaining the transmission delay of the message to be transmitted at the network side.
In another case, the message sending end may be an access device in the RAN, the message receiving end may be a terminal device, and the message to be transmitted may be a downlink message generated by the data server and transmitted to the access device by the UPF network element. The access device may utilize an N3 interface with the UPF network element to screen the message to be transmitted corresponding to the target service from different messages transmitted by the UPF network element. And then, detecting the transmission delay of the air interface side of the message to be transmitted by using a delay determining component installed by the self.
In the two cases, the access device and the UPF network element can detect the transmission delay of the downlink message at different sides by means of the delay determining component installed by the access device and the UPF network element. Optionally, when the UPF network element or the access device detects the transmission delay of the downlink message by using the delay determining component, the terminal device may not install the delay determining component.
In practice, the number of downlink messages generated by the data server is greater than that of uplink messages, so that in more cases, the delay determining component is installed in the access device or the UPF network element, and the access device or the UPF network element determines the network state by detecting the transmission delay of the downlink messages.
In the above cases, the determination of the transmission delay may also be implemented by the message receiving end corresponding to the message receiving end.
In practice, the message transmitting end may acquire a plurality of messages to be transmitted and a plurality of acknowledgement messages at different times. In order to improve accuracy of determining the transmission delay by the message sending end, the delay determining component may determine a matching relationship between the plurality of messages to be transmitted and the plurality of acknowledgement messages, and then determine the transmission delay by using a sending timestamp of the messages to be transmitted and a receiving timestamp of the acknowledgement messages with the matching relationship.
In an optional matching manner, the delay determining component may obtain a sending timestamp from a header of the message to be transmitted, and may also obtain other header information in the message to be transmitted from the header, for example, a sequence number (sequence number) and/or a connection identifier of a communication connection used for transmitting the message to be transmitted. Alternatively, the communication connection may be a TCP connection. Similarly, the delay determining component may obtain the sequence number of the acknowledgement message and/or the connection identifier of the communication connection used for transmitting the acknowledgement message from the header of the acknowledgement message, while obtaining the reception timestamp from the header of the acknowledgement message. The detection device can determine whether the message to be transmitted and the confirmation message are matched according to their respective serial numbers. Alternatively, if the serial numbers of the two messages are the same or the connection identifiers corresponding to the two messages are the same, the two messages can be considered to be matched. Alternatively, two messages may be considered to match if their sequence numbers are the same and the connection identifications are the same.
In this embodiment, a matching relationship between the message to be transmitted and the confirmation message may be determined according to the connection identifier and/or the serial number. The delay determining component can calculate the transmission delay by using the sending time stamp and the receiving time stamp of the message to be transmitted and the confirmation message with the matching relationship so as to improve the accuracy of delay detection. In addition, the details of the embodiment that are not described in detail and the technical effects that can be achieved can be referred to the related descriptions in the above embodiments, which are not described herein.
In addition, for the transmission delay obtained by the message sending end and/or the message receiving end, an optional use mode can determine whether to adjust the configuration parameters of the message sending end and/or the message receiving end according to whether the transmission delay meets the preset requirement. Specifically, if the transmission delay does not meet the preset requirement, which indicates that the network state between the current message sending end and the message receiving end is not good, and the network state does not meet the preset service quality of the target service, the message sending end can automatically adjust the configuration parameters of the message sending end. When the message sending end and the message receiving end are different devices in the communication network, the transmission delay can respectively reflect network states of an air interface side, a network side and a service side.
Optionally, when the message sending end or the message receiving end is the access device, the adjusted configuration parameters may include air interface parameters; when the message sending end is an access device or a UPF network element, the adjusted configuration parameters may include a quality of service (Quality of Service, qoS for short) parameter, and the like.
For example, when the target service is a live broadcast service, that is, the message to be transmitted is represented as a video stream generated by the data server, if the transmission delay of the message to be transmitted does not meet the preset requirement, the access device or the UPF network element serving as the message sending end can obtain more resources by adjusting the configuration parameters of the access device or the UPF network element so as to ensure the normal transmission of the video stream, that is, the smooth transmission of the video is realized while the video resolution is not reduced, that is, the quality of the live broadcast service is ensured. The access device or the UPF network element may also be used as a message receiving end.
Alternatively, the message sending end or the message receiving end may also send the transmission delay to a data server providing the target service in the communication network, where the data server may adjust its configuration parameters according to the transmission delay. The configuration parameters may include, in particular, network configuration parameters and service configuration parameters of the data server. The adjusted network configuration parameters may include a timeout (timeout) parameter, among others. When the target service is a live service, that is, the downlink message is embodied as a video stream, the adjusted service configuration parameter may further include a code rate of the video stream.
For example, when the message to be transmitted is represented as a video stream generated by the data server and the transmission delay does not meet the preset requirement, the data server can automatically adjust its configuration parameters to reduce the code rate of the video stream, so as to ensure smooth transmission of the video by reducing the resolution of the video. Therefore, after the data server adjusts the configuration parameters, the service quality is reduced to some extent, but the normal use of the service by the user is not affected as a whole.
In another optional usage manner, the message sending end and/or the message receiving end may display a transmission delay of the message to be transmitted, so that an operation and maintenance person of the communication network determines whether to adjust configuration parameters of the message sending end or the data server.
In practice, the above-mentioned transmission delay may be used alternatively.
In this embodiment, after the transmission delay is obtained, in a case, the message sending end, the message receiving end or the data server may automatically adjust its configuration parameters according to the transmission delay. When the message sending end and/or the message receiving end adjust the configuration parameters of the message sending end and/or the message receiving end according to the transmission delay, the service quality can be ensured. When the message sending end and the message receiving end do not adjust the configuration parameters, and the data server adjusts the configuration parameters according to the transmission delay, the user is ensured to normally use the target service under the condition of sacrificing a part of service quality. In another case, the message sending end can also display the transmission delay, so that the operation and maintenance personnel can further process the transmission delay, and the adjustment of the configuration parameters is more reasonable.
In the above embodiments, when the to-be-processed message body represents the downlink message generated by the data server, the process of detecting the transmission delay by the delay determining component may specifically include a screening stage of the message, an acquiring stage of the timestamp, and a determining stage of the delay.
At this time, in an alternative implementation manner, the delay determining component may be in a kernel mode of the operating system of the message sending end all the time, after screening the message to be transmitted, the delay determining component may parse the sending timestamp and the receiving timestamp from the respective message header of the message to be transmitted and the acknowledgement message, and then determine the transmission delay of the message to be transmitted according to the parsed timestamps. The transmission delay can also be stored in the kernel space of the message sending end. Alternatively, the transmission delay may be stored in a database provided in the kernel space.
At this time, the message sending end and/or the message receiving end can read the transmission delay from the kernel space to perceive the current network state, and then the receiving and sending ends of the message or the data server can choose to adjust the configuration parameters thereof according to the read transmission delay.
In this embodiment, the time stamp obtaining stage and the determining stage in the delay detection process may be processed in the kernel state by the delay determining component.
In another alternative implementation, the latency determination component may run in different states of the operating system, i.e., kernel mode and user mode. The time delay determining component running in the kernel mode can screen the message to be transmitted, then analyze the sending time stamp and the receiving time stamp from the respective message heads of the message to be transmitted and the confirmation message, and the sending time stamp and the receiving time stamp can be stored in the kernel space of the message sending end. Then, the detection device can switch to user mode operation of the operating system, and determines transmission delay of the message to be transmitted according to the sending timestamp and the receiving timestamp read from the kernel space.
In this embodiment, the packet screening stage and the timestamp obtaining stage in the delay detection process are performed in the kernel mode by the delay determining component, and the calculation stage of the transmission delay is performed in the user mode by the delay determining component. And the computation phase is performed in the user mode to reduce the complexity of the delay determination component.
The delay determining component can also transmit the message to be transmitted corresponding to the target service to the message receiving end in a transparent way while performing delay detection according to any mode. And the time delay determining component can respectively utilize different functional components to realize screening of the message, acquisition of the time stamp, calculation of the time delay and transparent transmission of the message.
For ease of understanding, the process of latency detection for a communication network provided by the above embodiments may be described in the following. In the following embodiments, the transmission delay may be determined by the packet sending end.
In particular, the communication network may be a private network, which may represent a cloud network, which may provide the terminal device with at least one target service in the embodiment shown in fig. 1. Assuming that the target service is a live broadcast service, the message to be transmitted can be a live broadcast video stream sent by the data server, and the message to be transmitted is a downlink message.
In the case, a delay determining component is installed in a UPF network element of the core network, and the UPF network element can receive a downlink message which is initiated by data and contains a live video stream by using an N6 interface.
The parsing component in the delay determining component can parse the downlink message to obtain a sending timestamp of the downlink message. Meanwhile, the transparent transmission component in the time delay determination component can transparent transmit the downlink message to the terminal equipment so that the terminal equipment feeds back a confirmation message of the downlink message to the UPF network element. At this point, the parsing component may continue parsing the acknowledgement message to obtain a receive timestamp. And the processing component in the time delay determining component is used for determining the transmission time delay of the downlink message between the UPF network element and the terminal equipment according to the two analyzed time stamps.
In another case, the base station in the RAN may also be equipped with a delay determining component, and the UPF network element may send a downlink packet to the base station using a 3N interface. The base station may also detect the transmission delay of the downlink message between the base station and the terminal device, i.e. the transmission delay on the air interface side, similar to the UPF network element.
The above procedure can be understood in connection with fig. 4 a.
Assuming that the target service is an automatic driving service, the message to be transmitted can be the vehicle-mounted terminal equipment for collecting the running state data of the vehicle, and the message to be transmitted is an uplink message. And the vehicle-mounted terminal equipment can be provided with a time delay determining component, and at the moment, the time delay determining component in the vehicle-mounted terminal equipment can also perform transmission time delay detection similar to the process, so as to obtain the transmission time delay of the uplink message between the vehicle-mounted terminal equipment and the base station, namely the transmission time delay of the air interface side. Optionally, the base station and the UPF network element may also be provided with delay determining components to detect transmission delays on different sides.
The above procedure can be understood in connection with fig. 4 b.
In each of the above cases, each of the delay determination components may alternatively be run on the UPF network element to provide the same or different states of the operating system.
Optionally, the device provided with the delay determining component can directly and automatically adjust its configuration parameters according to the transmission delay, so as to ensure that the user normally uses the target service. Optionally, the transmission delay detected by the delay determining component may also be displayed on the operation interface, so that the operation and maintenance personnel can select whether to adjust the configuration parameters of the device.
The above embodiments have described the process of detecting the transmission delay of the message transmitting end from the perspective of the whole communication network, and on this basis, the detailed description can also be made from the perspective of the message transmitting end.
Fig. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention. The network device may be deployed in a private network represented as a cloud network, where the network device is an access device or a UPF network element in the foregoing embodiments. As shown in fig. 5, the network device may specifically include a latency determining component and a communication component, where the latency determining component is installed in an operating system of the network device. The communication component is used for transmitting messages according to a network seven-layer protocol (Open System Interconnection, OSI for short). The network device also includes a central processing unit (Central Processing Unit, CPU) that provides a hardware environment for the operating system.
For clarity of the following description, the network device shown in fig. 5 may be referred to as a target network device. The communication component in the target network device may obtain the message to be transmitted corresponding to the target service. The message to be transmitted may be an uplink message generated by the terminal device or a downlink message generated by the data server. The target network device can transmit the message to be transmitted to other network devices in the private network by means of the delay determining component. The other network devices are the message receiving ends in the above embodiments.
After receiving the message to be transmitted, the other network devices can feed back a confirmation message corresponding to the message to be transmitted to the target network device, and the confirmation message can also be acquired by means of the communication component. The delay determining component in the target network device can obtain the sending time stamp of the message to be transmitted and the receiving time stamp of the confirmation message by analyzing the message header, and determine the transmission delay of the message to be transmitted between the target network device and other network devices according to the two time stamps.
In this embodiment, a communication component of a target network device in a private network is configured to obtain a message to be transmitted and receive a confirmation message corresponding to the message to be transmitted. The delay determining component of the target network device is used for analyzing the sending time stamp and the receiving time stamp from the message, and determining the delay of the transmission of the message to be transmitted between the two ends of the message receiving and transmitting according to the two time stamps.
It can be seen that by means of the independently arranged delay determining component, the transmission delay affecting the quality of service of the target service can be directly detected without modifying the protocol stack used by the communication network. Namely, the detection of the transmission delay is realized under the condition of not invading the communication protocol, namely, the decoupling of the delay detection and the protocol stack modification is realized. In addition, in the detection process, the transmission delay affecting the service quality of the target service is detected by directly utilizing the message to be transmitted corresponding to the target service, and the communication network does not need to generate an additional detection message, so that the transmission pressure of the network can be reduced.
In addition, the details of the embodiment that are not described in detail and the technical effects that can be achieved can be referred to the related descriptions in the above embodiments, which are not described herein.
Fig. 6 is a schematic structural diagram of another network device according to an embodiment of the present invention. Based on the embodiment shown in fig. 5, as shown in fig. 6, the delay determining component in the network device may specifically include a parsing component, a processing component, and a transparent transmission component.
In an alternative implementation, each component of the latency determination component runs in a kernel mode of an operating system of the network device. The parsing component may screen the message to be transmitted corresponding to the target service from the acquired message, and determine a sending timestamp from the header of the message to be transmitted. The transparent transmission component is used for sending the message to be transmitted to other network devices so that the other network devices can generate the confirmation message corresponding to the message to be transmitted. After the target network device receives the acknowledgement message, the parsing component may continue parsing the reception timestamp from the header of the acknowledgement message. The processing component can process the sending time stamp and the receiving time stamp to obtain the transmission delay of the message to be transmitted. The propagation delay may also be stored in the kernel space of the target network device.
In the above manner, the latency determining component is always running in kernel mode.
Alternatively, the components of the latency determination component operate in different states of the operating system of the network device. Namely, the analysis component and the transparent transmission component operate in a kernel mode, and the processing component operates in a user mode.
Specifically, the parsing component running in the kernel mode may screen a message to be transmitted corresponding to the target service from the acquired message, and determine a sending timestamp from a header of the message to be transmitted. The transparent transmission component running in the kernel mode is used for sending the message to be transmitted to other network devices so that the other network devices can generate the confirmation message corresponding to the message to be transmitted. After the target network device receives the acknowledgement message, the parsing component may continue parsing the reception timestamp from the header of the acknowledgement message. The timestamp parsed by the parsing component may be stored in kernel space of the target network device. The processing component running in the user mode may read the time stamp from the kernel space by means of an interface provided by the time delay determining component, and determine the transmission time delay of the message to be transmitted according to the read time stamp.
In the above manner, the time delay determining component has a switching process between the memory state and the user state in the operation process.
In this embodiment, each component in the delay determining component may operate in the same state or different states of the operating system, so as to implement detection of the transmission delay. In addition, the details of the embodiment that are not described in detail and the technical effects that can be achieved can be referred to the related descriptions in the above embodiments, which are not described herein.
Optionally, in order to further improve accuracy of the delay detection, the sequence number and the connection identifier in the header may be used, and details may be referred to the related description in the foregoing embodiments, which are not described herein again.
Optionally, the use process of the transmission delay may be referred to the related description in the above embodiment, which is not repeated here.
Optionally, the delay determining component further comprises a management component running in a user mode, and the management component is used for performing operations such as adding, deleting, checking and the like on the delay determining component in response to the operation of an operation and maintenance personnel of the private network.
Optionally, the network device may further include an operation component for operating the target network device.
Fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device accesses to the private network represented as a cloud network, and the network device is the terminal device serving as the message sending end in each embodiment. As shown in fig. 7, the terminal device may specifically include a delay determining component and a communication component, where the delay determining component is installed in an operating system of the network device. The communication component is configured to transmit messages in accordance with OSI. The network device also includes a CPU that provides a hardware environment for the operating system.
The specific working process of the communication component and the time delay determining component in the terminal device is similar to that of the communication component and the time delay determining component in the network device, and the specific content and the technical effects that can be achieved can be referred to the relevant content in the embodiment shown in fig. 4, which is not repeated here
Optionally, the delay determining component in the terminal device may also include a parsing component, a processing component, and a transparent component, where these components may operate in the same state or different states of the operating system. Details and technical effects that can be achieved can be found in the embodiment shown in fig. 6, and are not described here again.
Based on the system and equipment angles, the process of detecting the time delay of the message transmitting end can be described from the flow angle. Fig. 8 is a flowchart of a delay determining method according to an embodiment of the present invention. The time delay determining method provided by the embodiment of the invention can be executed by a message sending end and/or a message receiving end in a communication network. As shown in fig. 8, the method may include the steps of:
s101, obtaining a message to be transmitted corresponding to a target service provided by a communication network, wherein the message to be transmitted is sent to a message receiving end in the communication network by a message sending end.
S102, determining a sending time stamp of a message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted by means of a time delay determining component, wherein the confirmation message is generated after the message to be transmitted is received by a message receiving end.
S103, processing the sending time stamp and the receiving time stamp by means of the time delay determining component to obtain the transmission time delay of the message to be transmitted.
The message sending end obtains a message to be transmitted corresponding to the target service and a confirmation message corresponding to the message to be transmitted, and a time delay determining component installed in the message sending end can respectively analyze a sending time stamp and a receiving time stamp from the message and calculate the transmission time delay of the message to be transmitted by using the sending time stamp.
The determining process of the confirmation message and the parsing process of the message may refer to the related description in the embodiment shown in fig. 2, which is not described herein.
In this embodiment, a message to be transmitted corresponding to a target service provided by a communication network may be transmitted between a message sending end and a message receiving end in the communication network. In the transmission process, a time delay determining component installed in a message sending end and/or a message receiving end can analyze a sending time stamp of a message from the message to be transmitted; meanwhile, the time delay determining component can also analyze the receiving time stamp of the confirmation message from the confirmation message which is generated by the message receiving end and corresponds to the message to be transmitted. Finally, the time delay determining component can determine the time delay of the transmission of the message to be transmitted between the two ends of the message receiving and transmitting according to the two time stamps.
In the method, the transmission delay affecting the service quality of the target service can be directly detected by means of the delay determining component independently arranged in the message sending end and/or the message receiving end under the condition of not modifying the protocol stack used by the communication network. Namely, the detection of the transmission delay is realized under the condition of not invading the communication protocol, namely, the decoupling of the delay detection and the protocol stack modification is realized. In addition, in the detection process, the transmission delay affecting the service quality of the target service is detected by directly utilizing the message to be transmitted corresponding to the target service, and the communication network does not need to generate an additional detection message, so that the transmission pressure of the network can be reduced. In addition, the communication network does not need to generate an additional detection message in the detection process, so that the transmission pressure of the network can be reduced.
In practice, the message transmitting end may acquire a plurality of messages to be transmitted and a plurality of acknowledgement messages at different times. In order to further improve accuracy of delay detection, fig. 9 is a flowchart of another delay determination method according to an embodiment of the present invention. As shown in fig. 9, the following steps may be included:
s201, obtaining a message to be transmitted corresponding to a target service provided by a communication network, wherein the message to be transmitted is sent to a message receiving end in the communication network by a message sending end.
S202, determining a sending time stamp of a message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted by means of a time delay determining component, wherein the confirmation message is generated after the message to be transmitted is received by a message receiving end.
The specific implementation process of step S201 to step S202 may refer to the specific description of the related steps in the embodiment shown in fig. 8, which is not repeated here.
Alternatively, the message sending end may be other devices in the communication network besides the data server.
S203, determining respective message header information of the message to be transmitted and the confirmation message by means of a time delay determining component, wherein the message header information comprises a serial number and/or a connection identifier of a communication connection used by the message to be transmitted.
S204, determining whether the message to be transmitted and the confirmation message are matched according to the respective message header information of the message to be transmitted and the confirmation message.
S205, if the message to be transmitted is matched with the confirmation message, the time delay determining component is used for processing the sending time stamp and the receiving time stamp.
The delay determining component may determine a matching relationship between the plurality of messages to be transmitted and the plurality of acknowledgement messages, and then determine the transmission delay by using a transmission timestamp of the message to be transmitted and a reception timestamp of the acknowledgement message having the matching relationship. Optionally, the delay determining component may determine the matching relationship between the to-be-transmitted message and the acknowledgement message according to other header information in the header, for example, a sequence number (sequence number) and/or a connection identifier of a communication connection used for transmitting the to-be-transmitted message. Specific procedures can be found in the relevant description of the above embodiments,
In this embodiment, the delay determining component may determine a matching relationship between the to-be-transmitted message and the acknowledgement message according to the connection identifier and/or the sequence number. The time delay determining component can calculate the transmission time delay by reusing the sending time stamp and the receiving time stamp of the message to be transmitted and the confirmation message with the matching relation so as to improve the accuracy of time delay detection. In addition, the details of the embodiment that are not described in detail and the technical effects that can be achieved can be referred to the related descriptions in the above embodiments, which are not described herein.
Alternatively, in the above method, the message sending end and the message receiving end may be specifically represented by different devices in the communication network, and specific reference may be made to the description in the above related embodiments.
Optionally, for the transmission delay detected by the delay determining component, in an optional use manner, the message sending end and/or the message receiving end with the delay determining component can automatically determine whether to adjust the configuration parameters thereof according to the transmission delay. Alternatively, the message sending end and/or the message receiving end provided with the time delay determining component can display the transmission time delay, and an operation and maintenance person of the communication network determines whether to adjust the configuration parameters of the message sending end. Yet another alternative may be to send the transmission delay to the data server to automatically determine by the data server whether to adjust its own configuration parameters.
In the above embodiments, when the to-be-processed message body represents the downlink message generated by the data server, the process of detecting the transmission delay by the delay determining component may specifically include a screening stage of the message, an acquiring stage of the timestamp, and a determining stage of the delay. Alternatively, different phases of the delay detection may be implemented by the delay determining component, and the delay determining component may operate in different states in the operating system of the message sender.
In one case, the latency determination component may execute in the kernel mode of the operating system for each stage in the latency detection process. Alternatively, for the message screening phase and the timestamp acquisition phase of the latency detection process, the latency determination component may execute in the kernel mode of the operating system. For the computation phase of the transmission delay, the delay determination component may be executed in the user state of the operating system.
The delay determining component can also transmit the message to be transmitted corresponding to the target service in a transparent way, namely to the message receiving end, while performing delay detection according to any mode. And the time delay determining component can respectively utilize different functional components to realize screening of the message, acquisition of the time stamp, calculation of the time delay and transparent transmission of the message.
In addition, the details of the embodiment that are not described in detail and the technical effects that can be achieved can be referred to the related descriptions in the above embodiments, which are not described herein.
A delay detection apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these delay detection means may be configured by the steps taught by the present scheme using commercially available hardware components.
Fig. 10 is a schematic structural diagram of a delay detection device according to an embodiment of the present invention, as shown in fig. 10, where the delay detection device includes:
the obtaining module 11 is configured to obtain a message to be transmitted corresponding to a target service provided by a communication network, where the message to be transmitted is sent by the message sending end to a message receiving end in the communication network.
The determining module 12 is configured to determine, by means of a delay determining component, a sending timestamp of the to-be-transmitted message and a receiving timestamp of an acknowledgement message corresponding to the to-be-transmitted message, where the acknowledgement message is generated after the message receiving end receives the to-be-transmitted message.
And the processing module 13 is configured to process the sending timestamp and the receiving timestamp by means of the delay determining component, so as to obtain a transmission delay of the to-be-transmitted packet.
Wherein the communication network comprises a private network that appears as a cloud network; the latency determining component includes an extended berkeley packet filter eBPF program.
The message sending end comprises access equipment in the communication network or network equipment contained in a core network in the communication network, and the network equipment provides a user plane function of the core network; the message receiving end comprises terminal equipment in the communication network; the message to be transmitted comprises a downlink message acquired by the message transmitting end;
or the message sending end comprises terminal equipment in the communication network; the message receiving end comprises any one of the following components: the access equipment in the communication network, the network equipment in the core network for providing the user plane function and the data server in the communication network for providing the target service; the message to be transmitted comprises an uplink message generated by the terminal equipment.
Optionally, the processing module 13 is configured to determine, by means of the delay determining component, header information of each of the to-be-transmitted message and the acknowledgement message, where the header information includes a sequence number and/or a connection identifier of a communication connection used by the to-be-transmitted message;
Determining whether the message to be transmitted is matched with the confirmation message according to the respective message header information of the message to be transmitted and the confirmation message;
and if the message to be transmitted is matched with the confirmation message, the time delay determining component is used for processing the sending time stamp and the receiving time stamp.
Optionally, the apparatus further comprises: an adjustment module 14 or a transmission module 15.
The adjusting module 14 is configured to adjust the configuration parameters of the message sending end according to the transmission delay.
The sending module 15 is configured to send the transmission delay to a data server corresponding to the target service in the communication network, so that the data server adjusts a configuration parameter of the data server according to the transmission delay.
Optionally, the determining module 12 is configured to determine, by means of the delay determining component running in a kernel mode, the sending timestamp and the receiving timestamp from respective header of the to-be-transmitted packet and the acknowledgement packet.
The processing module 13 is configured to process the transmission timestamp and the reception timestamp by means of the delay determining component running in a kernel mode; and storing the transmission delay obtained by processing into a kernel space of the message sending end.
The adjusting module 14 is configured to adjust a configuration parameter of the message sending end according to the transmission delay read from the kernel space.
Optionally, the determining module 12 is configured to determine, by means of the delay determining component running in a kernel mode, the sending timestamp and the receiving timestamp in respective header of the to-be-transmitted packet and the acknowledgement packet; and storing the sending time stamp and the receiving time stamp into a kernel space of the message sending end.
The processing module 13 is configured to process the transmit timestamp and the receive timestamp read from the kernel space by using the latency determining component that operates in a user mode.
The apparatus shown in fig. 10 may perform the method of the embodiment shown in fig. 8 or 9, and reference is made to the relevant description of the embodiment shown in fig. 8 or 9 for a part of this embodiment that is not described in detail. The implementation process and the technical effect of this technical solution are described in the embodiment shown in fig. 8 or fig. 9, and are not described herein.
In one possible design, the method for determining a time delay provided in the foregoing embodiments may be applied to an electronic device, as shown in fig. 11, where the electronic device may include: a processor 21 and a memory 22. Wherein the memory 22 is for storing a program for supporting the electronic device to perform the delay determination method provided in the embodiment shown in fig. 8 or fig. 9 described above, the processor 21 is configured for executing the program stored in the memory 22.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 21, are capable of performing the steps of:
acquiring a message to be transmitted corresponding to a target service provided by the communication network, wherein the message to be transmitted is sent to a message receiving end in the communication network by the message sending end;
determining a sending time stamp of the message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted by means of a time delay determining component, wherein the confirmation message is generated after the message receiving end receives the message to be transmitted;
and processing the sending time stamp and the receiving time stamp by means of the time delay determining component so as to obtain the transmission time delay of the message to be transmitted.
Optionally, the processor 21 is further configured to perform all or part of the steps in the embodiments shown in fig. 8 or fig. 9.
The electronic device may also include a communication interface 23 in its structure for communicating with other devices or communication systems.
In addition, an embodiment of the present invention provides a computer storage medium storing computer software instructions for the electronic device, which includes a program for executing the time delay determining method shown in fig. 8 or fig. 9.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. A method of delay determination, comprising:
acquiring a message to be transmitted corresponding to a target service provided by a communication network, wherein the message to be transmitted is generated in the process that terminal equipment operates the target service, and the message to be transmitted is sent to a message receiving end in the communication network by a message sending end in the communication network;
determining a sending time stamp of the message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted by means of a time delay determining component running in a kernel mode, wherein the confirmation message is generated after the message receiving end receives the message to be transmitted;
And processing the sending time stamp and the receiving time stamp by the time delay determining component running in the user mode to obtain the transmission time delay of the message to be transmitted.
2. The method according to claim 1, wherein the communication network comprises a private network that appears as a cloud network; the latency determining component includes an extended berkeley packet filter eBPF program.
3. The method of claim 1, wherein said processing said transmit timestamp and said receive timestamp with said delay determination component comprises:
determining respective message header information of the message to be transmitted and the confirmation message by means of the time delay determining component, wherein the message header information comprises a serial number and/or a connection identifier of communication connection used by the message to be transmitted;
determining whether the message to be transmitted is matched with the confirmation message according to the respective message header information of the message to be transmitted and the confirmation message;
and if the message to be transmitted is matched with the confirmation message, the time delay determining component is used for processing the sending time stamp and the receiving time stamp.
4. The method according to claim 1, wherein the method further comprises:
Adjusting configuration parameters of the message sending end according to the transmission delay;
or,
and sending the transmission delay to a data server corresponding to the target service in the communication network, so that the data server adjusts configuration parameters of the data server according to the transmission delay.
5. The method according to claim 4, wherein determining, by means of the delay determining component running in a kernel mode, a transmission timestamp of the to-be-transmitted message and a reception timestamp of an acknowledgement message corresponding to the to-be-transmitted message includes:
determining the sending time stamp and the receiving time stamp from respective message heads of the message to be transmitted and the confirmation message by means of the time delay determining component running in a kernel mode;
the adjusting the configuration parameters of the message sending end according to the transmission delay comprises the following steps:
and adjusting configuration parameters of the message sending end according to the transmission delay read from the kernel space, wherein the delay determining component running in a user state stores the transmission delay to the kernel space of the message sending end.
6. The method according to claim 4, wherein determining, by means of the delay determining component running in a kernel mode, a transmission timestamp of the to-be-transmitted message and a reception timestamp of an acknowledgement message corresponding to the to-be-transmitted message includes:
Determining the sending time stamp and the receiving time stamp in respective message heads of the message to be transmitted and the confirmation message by means of the time delay determining component running in a kernel mode;
storing the sending time stamp and the receiving time stamp into a kernel space of the message sending end;
said processing of said transmit timestamp and said receive timestamp by said delay determination component operating in a user mode comprises:
the transmit time stamp and the receive time stamp read from the kernel space are processed by the latency determining component operating in a user mode.
7. The method according to claim 1, wherein the message sending end includes an access device in the communication network or a network device included in a core network in the communication network, and the network device provides a user plane function of the core network; the message receiving end comprises terminal equipment in the communication network; the message to be transmitted comprises a downlink message acquired by the message transmitting end;
or the message sending end comprises terminal equipment in the communication network; the message receiving end comprises any one of the following components: the access equipment in the communication network, the network equipment in the core network for providing the user plane function and the data server in the communication network for providing the target service; the message to be transmitted comprises an uplink message generated by the terminal equipment.
8. A network device for deployment in a private network that appears as a cloud network, the network device comprising: a delay determining component and a communication component;
the communication component is used for acquiring a message to be transmitted corresponding to a target service provided by the private network, wherein the message to be transmitted is generated in the process of running the target service by the terminal equipment;
the time delay determining component is used for sending the message to be transmitted to other network devices in the private network;
determining a sending time stamp of the message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted when the message to be transmitted is in a kernel state, wherein the confirmation message is generated after the other network equipment receives the message to be transmitted;
and processing the sending time stamp and the receiving time stamp when the network equipment is in a user state to obtain the transmission time delay of the to-be-transmitted message between the network equipment and the other network equipment.
9. The apparatus of claim 8, wherein the latency determining component comprises: the system comprises an analysis component running in a kernel state, a transparent transmission component and a processing component running in a user state;
the parsing component is configured to determine the sending timestamp and the receiving timestamp in respective message headers of the message to be transmitted and the acknowledgement message; storing the transmit timestamp and the receive timestamp to a kernel space of the network device;
The processing component is configured to process the sending timestamp and the receiving timestamp read from the kernel space;
the transparent transmission component is configured to send the message to be transmitted to the other network device, so that the other network device generates the acknowledgement message.
10. A terminal device for accessing a private network that appears as a cloud network, the terminal device comprising: a delay determining component and a communication component;
the communication component is configured to send a message to be transmitted to other network devices in the private network, where the message to be transmitted is generated in a process that the terminal device operates a target service provided by the private network;
the delay determining component running in the kernel mode is used for determining a sending time stamp of the message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted, wherein the confirmation message is generated after the other network devices receive the message to be transmitted;
and the time delay determining component is operated in a user mode and is used for processing the sending time stamp and the receiving time stamp to obtain the transmission time delay of the to-be-transmitted message between the network equipment and the other network equipment.
11. A communication network, comprising: the device comprises a message sending end and a message receiving end, wherein a time delay determining component is arranged in the message sending end;
the message sending end is used for obtaining a message to be transmitted corresponding to a target service provided by the communication network, wherein the message to be transmitted is generated in the process of running the target service by the terminal equipment; determining a sending time stamp of the message to be transmitted and a receiving time stamp of a confirmation message corresponding to the message to be transmitted by means of the time delay determining component running in a kernel mode; processing the sending time stamp and the receiving time stamp by means of the time delay determining component running in the user mode so as to obtain the transmission time delay of the message to be transmitted;
the message receiving end is used for receiving the message to be transmitted; generating the confirmation message in response to the receiving of the message to be transmitted; and sending the confirmation message to the message sending end.
12. An electronic device, comprising: a memory, a processor; wherein the memory has executable code stored thereon, which when executed by the processor causes the processor to perform the delay determination method of any one of claims 1 to 7.
13. A non-transitory machine-readable storage medium having stored thereon executable code which, when executed by a processor of an electronic device, causes the processor to perform the time delay determination method of any of claims 1-7.
CN202310581603.4A 2023-05-19 2023-05-19 Time delay determining method, communication network, device and storage medium Active CN116321276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310581603.4A CN116321276B (en) 2023-05-19 2023-05-19 Time delay determining method, communication network, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310581603.4A CN116321276B (en) 2023-05-19 2023-05-19 Time delay determining method, communication network, device and storage medium

Publications (2)

Publication Number Publication Date
CN116321276A CN116321276A (en) 2023-06-23
CN116321276B true CN116321276B (en) 2023-10-31

Family

ID=86801779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310581603.4A Active CN116321276B (en) 2023-05-19 2023-05-19 Time delay determining method, communication network, device and storage medium

Country Status (1)

Country Link
CN (1) CN116321276B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117955880B (en) * 2024-03-26 2024-06-11 亚信科技(中国)有限公司 Time delay monitoring method and device, storage medium and electronic equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304557A (en) * 2008-04-25 2008-11-12 华为技术有限公司 Packet transmission control method and apparatus
CN101534249A (en) * 2009-04-15 2009-09-16 杭州华三通信技术有限公司 Method for transmitting data on bound link and network equipment thereof
CN101841480A (en) * 2010-04-26 2010-09-22 华为技术有限公司 Multilink message sending method, equipment and system
CN104104644A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection
CN105162555A (en) * 2015-09-24 2015-12-16 广州市百果园网络科技有限公司 Code rate adjustment method and terminal
CN106411647A (en) * 2016-10-13 2017-02-15 腾讯科技(深圳)有限公司 Communication quality detection method and detection server
CN111756588A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Communication link detection method and related device
CN112965845A (en) * 2021-02-05 2021-06-15 网宿科技股份有限公司 Delay analysis method, electronic device, and storage medium
CN113132173A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Time delay determination method and device and network transmission system
CN113727152A (en) * 2021-08-27 2021-11-30 广州简悦信息科技有限公司 Method, device and storage medium for adjusting code rate
CN114501145A (en) * 2021-12-24 2022-05-13 浙江大华技术股份有限公司 Code rate control method and device for video transmission, electronic device and storage medium
WO2023280097A1 (en) * 2021-07-08 2023-01-12 华为技术有限公司 Method for processing page faults and corresponding apparatus
CN115694699A (en) * 2021-07-30 2023-02-03 腾讯科技(深圳)有限公司 Time delay parameter acquisition method and device, electronic equipment and storage medium
CN115811484A (en) * 2022-11-10 2023-03-17 阿里巴巴(中国)有限公司 Network detection method, device and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304557A (en) * 2008-04-25 2008-11-12 华为技术有限公司 Packet transmission control method and apparatus
CN101534249A (en) * 2009-04-15 2009-09-16 杭州华三通信技术有限公司 Method for transmitting data on bound link and network equipment thereof
CN101841480A (en) * 2010-04-26 2010-09-22 华为技术有限公司 Multilink message sending method, equipment and system
CN104104644A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Bidirectional forwarding detection system and detection time configuration method of bidirectional forwarding detection
CN105162555A (en) * 2015-09-24 2015-12-16 广州市百果园网络科技有限公司 Code rate adjustment method and terminal
CN106411647A (en) * 2016-10-13 2017-02-15 腾讯科技(深圳)有限公司 Communication quality detection method and detection server
CN111756588A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Communication link detection method and related device
CN113132173A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Time delay determination method and device and network transmission system
CN112965845A (en) * 2021-02-05 2021-06-15 网宿科技股份有限公司 Delay analysis method, electronic device, and storage medium
WO2023280097A1 (en) * 2021-07-08 2023-01-12 华为技术有限公司 Method for processing page faults and corresponding apparatus
CN115694699A (en) * 2021-07-30 2023-02-03 腾讯科技(深圳)有限公司 Time delay parameter acquisition method and device, electronic equipment and storage medium
CN113727152A (en) * 2021-08-27 2021-11-30 广州简悦信息科技有限公司 Method, device and storage medium for adjusting code rate
CN114501145A (en) * 2021-12-24 2022-05-13 浙江大华技术股份有限公司 Code rate control method and device for video transmission, electronic device and storage medium
CN115811484A (en) * 2022-11-10 2023-03-17 阿里巴巴(中国)有限公司 Network detection method, device and storage medium

Also Published As

Publication number Publication date
CN116321276A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
USRE49126E1 (en) Real-time adaptive processing of network data packets for analysis
CN104717186B (en) A kind of method, apparatus and data transmission system for transmitting data in network system
CN113810438B (en) Service computing resource scheduling and requesting method, node equipment and terminal
RU2770181C2 (en) Method and device for service identification and network device
CN113709057A (en) Network congestion notification method, proxy node, network node and computer equipment
CN116321276B (en) Time delay determining method, communication network, device and storage medium
EP1475922A2 (en) Data processing device, data processing system, data processing method, data processing program and recording medium storing the program
CN109906631B (en) Adaptive transmission method and device
EP2879426A1 (en) Method for service content distribution under heterogeneous network and service management platform
CN110311865B (en) Video data transmission method and related equipment
US20180146075A1 (en) Network communication protocol translation system and method
CN115002016B (en) Message processing system, method, device and storage medium
EP4181547A1 (en) Information transmission method and apparatus, and storage medium
CN108777664B (en) Data packet processing method, equipment, system and storage medium thereof
CN113692753B (en) Network device and method for searching edge service implemented in network device
CN110691139B (en) Data transmission method, device, equipment and storage medium
CN114071544B (en) Network testing method and device and electronic equipment
EP2731017B1 (en) Content distribution system, cache server and content distribution method
CN117395195A (en) Communication method, device, equipment and storage medium
US20230020974A1 (en) Service Monitoring Method, Apparatus, and System
CN111988362A (en) Data transmission method, device, terminal and storage medium
CN113676351B (en) Session processing method and device, electronic equipment and storage medium
US20160149855A1 (en) Service processing method, system, and relevant device
CN115842734B (en) Network management method, controller and SDN network
EP3068079B1 (en) Monitoring communication in a network comprising a plurality of nodes

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