WO2024093365A1 - 时延的确定方法、装置、电子设备及存储介质 - Google Patents

时延的确定方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2024093365A1
WO2024093365A1 PCT/CN2023/108061 CN2023108061W WO2024093365A1 WO 2024093365 A1 WO2024093365 A1 WO 2024093365A1 CN 2023108061 W CN2023108061 W CN 2023108061W WO 2024093365 A1 WO2024093365 A1 WO 2024093365A1
Authority
WO
WIPO (PCT)
Prior art keywords
data packet
time information
node
sending
receiving
Prior art date
Application number
PCT/CN2023/108061
Other languages
English (en)
French (fr)
Inventor
李美娟
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2024093365A1 publication Critical patent/WO2024093365A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements

Definitions

  • the present application belongs to the field of communication technology, and specifically relates to a method, device, electronic device and storage medium for determining a time delay.
  • the fifth generation (5G) mobile communication technology has brought major changes to the entire communication industry and has had a significant impact.
  • ToC user-oriented
  • ToB end-to-end scenarios of vertical industries oriented to enterprises
  • SLA Service Level Agreement
  • the embodiments of the present application provide a method, device, electronic device and storage medium for determining a time delay, which can solve the problem of being unable to obtain the time delay of the entire communication process in segments.
  • an embodiment of the present application provides a method for determining a delay, the method comprising: determining at least three nodes in a target transmission process; dividing the target transmission process into at least two sub-processes according to the at least three nodes; in at least one of the sub-processes, determining the sending time information and receiving time information of the data packet; and determining the transmission delay of at least one of the sub-processes according to the sending time information and the receiving time information.
  • an embodiment of the present application provides a device for determining delay, the device comprising: a first determination module, used to determine at least three nodes in a target transmission process; a division module, used to divide the target transmission process into at least two sub-processes according to the at least three nodes; a second determination module, used to determine the sending time information and receiving time information of the data packet in at least one of the sub-processes; a third determination module, used to determine the transmission delay of at least one of the sub-processes based on the sending time information and the receiving time information.
  • an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
  • FIG1 is a schematic flow chart of a method for determining a delay provided in an embodiment of the present application
  • FIG2 is a schematic diagram of a network packet exploration ping process provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of the structure of a device for determining a time delay provided in an embodiment of the present application
  • FIG. 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • first, second, etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • FIG1 shows a method for determining a time delay provided by an embodiment of the present application, which can be performed by an electronic device, and the electronic device may include: a server and/or a terminal device, wherein the terminal device may be a device with cross-domain capabilities, etc.
  • the method can be performed by software or hardware installed in the electronic device, and the method includes the following steps.
  • Step 102 Determine at least three nodes during the target transmission process.
  • the target transmission process may be an end-to-end transmission process in a vertical industry, such as a Packet Internet Groper (ping) connection process, a Transmission Control Protocol (TCP) secondary handshake, a TCP three-way handshake, or a TCP round-trip process.
  • ping Packet Internet Groper
  • TCP Transmission Control Protocol
  • TCP three-way handshake a TCP round-trip process.
  • the time delay between the sending application device and the receiving application device is collected.
  • the time delay between the server device that sends the ping connection request and the attached device that receives the ping connection request is collected, without considering the network devices involved in the communication process.
  • Each node includes at least one network device node.
  • Step 104 Divide the target transmission process into at least two sub-processes according to the at least three nodes.
  • the target transmission process can be divided into at least two sub-processes according to the determined at least three nodes. Since the communication process realizes the transmission of information by transmitting data packets, the sub-process can be the process from one node sending a data packet to another node receiving a data packet, or the process from one node receiving a data packet to the node sending a data packet, or the process from one node receiving a data packet to another node sending a data packet, etc.
  • the target transmission process there are three nodes O, M, and N, among which node O represents the sending end application device, node N represents the receiving end application device, and node M represents the network device node.
  • the target transmission process can be the process of node O transmitting a data packet to node M, and node M then transmitting the data packet to node N.
  • the process between node O sending a data packet and node M receiving a data packet can be determined as sub-process m
  • the process between node M sending a data packet and node N receiving a data packet can be determined as sub-process n.
  • the transmission process from node O to node M and then to node N is divided into two sub-processes, m and n.
  • the target transmission process can be a process in which node A transmits a data packet to node B, and node B transmits the data packet to node C.
  • the process from node A sending a data packet to node B receiving a data packet can be determined as sub-process a
  • the process from node B receiving a data packet to node B sending a data packet can be determined as sub-process b
  • the process from node B sending a data packet to node C receiving a data packet can be determined as sub-process c.
  • the transmission process from node A to node B and then to node C is divided into three sub-processes a, b, and c.
  • the specific target transmission process division method can be set according to needs and is not specifically limited here.
  • Step 106 In at least one of the sub-processes, the sending time information and the receiving time information of the data packet are determined.
  • the sending time information and receiving time information of the data packet corresponding to the sub-process can be obtained.
  • the sending time information may include the timestamp of sending the data packet
  • the receiving time information may include the timestamp of receiving the data packet.
  • the sending time information of the data packet corresponding to sub-process m is the sending time information of the data packet corresponding to node O
  • the receiving time information of the corresponding data packet is the receiving time information of the data packet corresponding to node M
  • the sending time information of the data packet corresponding to sub-process n is the sending time information of the data packet corresponding to node M
  • the receiving time information of the corresponding data packet is the receiving time information of the data packet corresponding to node N.
  • the sending time information of the data packet corresponding to sub-process a is the sending time information of the data packet corresponding to node A
  • the receiving time information of the corresponding data packet is the receiving time information of the data packet corresponding to node B
  • the sending time information of the data packet corresponding to sub-process b is the sending time information of the data packet corresponding to node B
  • the receiving time information of the corresponding data packet is the receiving time information of the data packet corresponding to node B.
  • the sending time information of the data packet corresponding to sub-process c is the sending time information of the data packet corresponding to node B
  • the receiving time information of the corresponding data packet is the receiving time information of the data packet corresponding to node C.
  • Step 108 Determine a transmission delay of at least one of the sub-processes according to the sending time information and the receiving time information.
  • the sending time information of the data packet may include the timestamp of sending the data packet
  • the receiving time information may include the timestamp of receiving the data packet.
  • the transmission delay of sub-process m is the difference between the sending time information of the data packet corresponding to node O and the receiving time information of the data packet corresponding to node M
  • the transmission delay of sub-process n is the difference between the sending time information of the data packet corresponding to sub-node M and the receiving time information of the data packet corresponding to node N.
  • the transmission delay of sub-process a is the difference between the sending time information of the data packet corresponding to node A and the receiving time information of the data packet corresponding to node B.
  • the transmission delay of process b is the difference between the sending time information of the data packet corresponding to sub-node B and the receiving time information of the data packet corresponding to node B.
  • the transmission delay of sub-process c is the difference between the sending time information of the data packet corresponding to sub-node B and the receiving time information of the data packet corresponding to node C.
  • At least three nodes are determined in a target transmission process, and according to the at least three nodes, the target transmission process is divided into at least two sub-processes; in at least one of the sub-processes, the sending time information and the receiving time information of the data packet are determined; according to the sending time information and the receiving time information, at least one of the sub-processes is determined, and the transmission delay corresponding to the sub-process in the end-to-end target transmission process can be determined according to the sending time information and the receiving time information corresponding to the sub-process, thereby realizing the segmentation of the target transmission process delay, and in the event of a problem in the target transmission process, the sub-process to which the problem belongs can be accurately located according to the delay of the sub-process, thereby realizing the ability to locate and analyze the problem in the target transmission process, thereby improving the positioning accuracy and processing efficiency of the problem in the target transmission process.
  • At least three nodes are determined in a target transmission process; based on the at least three nodes, the target transmission process is divided into at least two sub-processes; in at least one of the sub-processes, the sending time information and the receiving time information of the data packet are determined; based on the sending time information and the receiving time information, the transmission delay of at least one of the sub-processes is determined, and the transmission corresponding to the sub-process in the end-to-end target transmission process can be determined based on the sending time information and the receiving time information corresponding to the sub-process, thereby realizing the segmented determination of the target transmission process delay.
  • the at least three nodes include a first node and a second node
  • the transmission delay of at least one of the sub-processes is determined based on the sending time information and the receiving time information, including: determining the first sending time information of the first node sending the data packet; determining the second receiving time information of the second node receiving the data packet; and determining the first delay of the first sub-process from the first node sending the data packet to the second node receiving the data packet based on the first sending time information and the second receiving time information.
  • the process from the first node sending a data packet to the second node receiving the data packet can be determined as the first subprocess. Therefore, in the target transmission process, the first sending time information of the sending data packet corresponding to the first sub-process can be obtained, that is, the first sending time information of the sending data packet of the first node, and the second receiving time information of the receiving data packet corresponding to the first sub-process can be obtained, that is, the second receiving time information of the receiving data packet of the second node. Then the transmission delay of the first sub-process is the difference between the first sending time information and the second receiving time information.
  • the example in step 106 wherein the first sub-process can be sub-process m, the first node can be node O, and the second node can be node M, then the sending time information of the data packet corresponding to node O is the first sending time information, and the receiving time information of the data packet corresponding to node M is the second receiving time information, then the delay of the first sub-process m is the difference between the first sending time information and the second receiving time information.
  • the transmission delay between the first node sending the data packet to the second node receiving the data packet can be determined, and then when a problem occurs in the target transmission process, the sub-process to which the problem belongs can be quickly and accurately determined based on the transmission delay of the first sub-process, thereby improving the problem location accuracy and processing efficiency.
  • the at least three transmission nodes include a third node, and the transmission delay of at least one of the sub-processes is determined based on the sending time information and the receiving time information, including: determining third receiving time information of the third node receiving the data packet; determining third sending time information of the third node sending the data packet; and determining a second delay for a second sub-process within the third node to send the data packet based on the third sending time information and the third receiving time information.
  • the process from the third node receiving the data packet to the third node sending the data packet can be determined as the second sub-process, and the second sub-process is the process of transmitting the data packet internally in the third node. Therefore, in the target transmission process, the third receiving time information of the third node receiving the data packet and the third sending time information of the third node sending the data packet can be obtained.
  • the transmission delay corresponding to the second sub-process is the difference between the third sending time information and the third receiving time information, such as the example in step 106, wherein the second sub-process may be sub-process b, the third node may be node B, the third sending time information is the sending data packet time information corresponding to node B, the third receiving time information is the receiving data packet time information corresponding to node B, then the transmission delay of the second sub-process b is the difference between the third receiving time information and the third sending time information.
  • the transmission delay of the sub-process inside the node can be determined. Based on the transmission delay of the sub-process inside the node, the sub-process to which the problem belongs can be quickly and accurately determined, thereby improving the problem location accuracy and processing efficiency.
  • the at least three transmission nodes include a fourth node and a fifth node
  • the transmission delay of at least one of the sub-processes is determined according to the sending time information and the receiving time information, including: determining the third delay corresponding to the third sub-process between the fourth node and the fifth node according to the fourth time information corresponding to the fourth node and the fifth time information corresponding to the fifth node; wherein the fourth time information includes at least one of the following: time information from sending the data packet to receiving the feedback data packet corresponding to the data packet; time information from sending the data packet to sending the feedback data packet; time information from receiving the data packet to receiving the feedback data packet; time information from receiving the data packet to sending the feedback data packet; the fifth time information includes at least one of the following: time information from receiving the data packet to receiving the feedback data packet; time information from sending the data packet to receiving the feedback data packet; time information from receiving the data packet to sending the feedback data packet; time information from sending the data packet to sending the feedback data packet.
  • the receiving application device may return a feedback data packet, which is generated by the receiving application device in response to the received data packet.
  • the feedback data packet sent by the receiving application device will be returned to the transmitting application device along the original path of the data packet sending link. Therefore, at least three nodes including the fourth node and the fifth node.
  • the transmission process between the fourth node and the fifth node can be determined as a third sub-process, and the third sub-process can include a process of transmitting data packets and a process of transmitting feedback data packets between the fourth node and the fifth node.
  • the transmission delay of the third sub-process can be determined according to the fourth time information corresponding to the fourth node and the fifth time information corresponding to the fifth node.
  • the fourth node may send a data packet, receive a data packet, send a feedback data packet, or receive a feedback data packet
  • the fifth node may also send a data packet, receive a data packet, send a feedback data packet, or receive a feedback data packet. Therefore, the fourth time information may include at least one of the time information from the fourth node sending a data packet to receiving a feedback data packet, the time information from sending a data packet to sending a feedback data packet, the time information from receiving a data packet to receiving a feedback data packet, and the time information from receiving a data packet to sending a feedback data packet.
  • the fifth time information may include at least one of the time information from the fifth node receiving a data packet to receiving a feedback data packet, the time information from sending a data packet to receiving a feedback data packet, the time information from receiving a data packet to sending a feedback data packet, and the time information from sending a data packet to sending a feedback data packet.
  • the scope of the third sub-process may be determined according to the time requirement, and the fourth time information and the fifth time information may be determined. Then, according to the difference between the fourth time information and the fifth time information, the delay of the third sub-process may be directly determined, wherein the third sub-process includes a data packet transmission sub-process and a feedback data packet transmission sub-process.
  • the third sub-process includes a sub-process in which the fifth node sends a data packet to the fourth node for receiving the data packet and a sub-process in which the fourth data packet sends a feedback data packet to the fifth node for receiving the feedback data packet.
  • the fourth time information may include the time information from the fourth node receiving the data packet to the fourth node sending the feedback data packet.
  • the fourth time information may include the difference between the timestamp of the fourth node sending the feedback data packet and the timestamp of the received data packet.
  • the fifth time information may include the time information from the fifth node sending the data packet to the fifth node receiving the feedback data packet.
  • the fifth time information may include the difference between the timestamp of the fifth node receiving the feedback data packet and the timestamp of the sent data packet.
  • the transmission delay of the third sub-process can be determined based on the difference between the fifth time information and the fourth time information.
  • the fourth time information includes at least one of the following: time information from sending a data packet to receiving a feedback data packet corresponding to the data packet; time information from sending a data packet to sending a feedback data packet; time information from receiving a data packet to receiving a feedback data packet; time information from receiving a data packet to sending a feedback data packet; the fifth time information includes at least one of the following: time information from receiving a data packet to receiving a feedback data packet; time information from sending a data packet to receiving a feedback data packet; time information from receiving a data packet to sending a feedback data packet; time information from sending a data packet to sending a feedback data packet, the scope of the third sub-process can be determined according to demand, the fourth time information and the fifth time information can be determined, and then according to the difference between the fourth time information and
  • the number of the nodes is less than or equal to the total number of nodes included in the target transmission process.
  • the number of nodes can be less than or equal to the total number of nodes included in the target transmission process. That is, the nodes that need to be divided into sub-processes can be determined according to time requirements, avoiding the problem of resource waste and complicated delay determination process caused by dividing all nodes.
  • the target transmission process includes a network packet exploration ping process
  • the data packet includes a ping request data packet
  • the target transmission process may include a network packet exploration ping process, and the data packet includes a ping request data packet.
  • the receiving-end application device may also send a feedback data packet to the sending-end application device.
  • the target transmission process in the embodiment of the present application may include not only the ping process, but also end-to-end communication processes such as TCP secondary handshake, TCP three-way handshake, and TCP round-trip process.
  • the transmission delay of the sub-process is determined, and the delay of the target transmission process is segmented.
  • the sub-process to which the problem belongs can be accurately located based on the transmission delay of the sub-process, thereby locating and analyzing the problems in the target transmission process, thereby improving the accuracy and efficiency of locating problems in the target transmission process.
  • FIG2 is a schematic diagram of a network packet exploration ping process provided in an embodiment of the present application.
  • FIG2 is taken as an example below to explain in detail a method for determining a delay provided in an embodiment of the present application.
  • the process of the server pinging the attached device involves the server 201, the user plane function network element (User Plane Function, UPF) node 202, the 5G base station (gNB) node 203, the terminal device 204, and the attached device 205.
  • the attached device 205 is a downstream device of the terminal device 204.
  • the server 201 can send the ping request data packet to the terminal device 204 through the UPF node 202 and the gNB node 203, and then forward it to the attached device 205 through the terminal device 204.
  • the attached device 205 can send the feedback data packet to the server 201 through the terminal device 204, the gNB node 203, and the UPF node 202.
  • the transmission process between nodes can be determined as a sub-process, and the transmission process within the node can also be determined as a sub-process.
  • the transmission process between the server 201 and the UPF node 202, the transmission process between the UPF node 202 and the gNB node 203, the transmission process between the gNB node 203 and the terminal device 204, and the transmission process between the terminal device 204 and the mounting device 205 can each be determined as a sub-transmission process.
  • the transmission process inside the UPF node 202 and the transmission process inside the gNB node 203 can also be determined as a sub-transmission process.
  • the process from sending a ping request data packet to receiving a feedback data packet can also be determined as a sub-process.
  • the sub-process can be set according to actual needs.
  • the sub-process is not specifically limited. After determining the sub-process, the transmission delay of each sub-process can be determined according to the time of sending the data packet corresponding to each sub-process and the corresponding data packet receiving time information.
  • the time information TA1 of the server 201 sending the ping request data packet and the time information TA2 of the server 201 receiving the feedback data packet can be obtained.
  • the time information TB1 of the UPF node 202 sending the ping request data packet through the N3 port and the time information TB2 of the UPF node 202 receiving the feedback data packet can also be obtained.
  • the time information TC1 of the gNB node 203 receiving the ping request data packet and the time information TC4 of the gNB node 203 sending the feedback data packet can also be obtained through the packet data convergence layer (Packet Data Convergence Protocol, PDCP) of the gNB node 203.
  • PDCP Packet Data Convergence Protocol
  • the ping request data packet or the feedback data packet can also be identified through the PDCP layer of the gNB node 203, and then the ping request data packet or the feedback data packet is attached with an identification tag to the media access control
  • the media access control layer (MAC) or the radio link control protocol layer (RLC) extracts the frame number or time slot number of the ping request data packet or the feedback data packet, that is, the air interface time, to obtain the time information TC2 when the gNB node 203 sends the ping request data packet or the time information TC3 when the gNB node 203 receives the feedback data packet, wherein the frame number or time slot number of the ping request data packet or the feedback data packet is obtained by a preset trigger, and the acquisition period is also pre-set in the trigger.
  • MAC media access control layer
  • RLC radio link control protocol layer
  • the time information TD1 when the terminal device 204 receives the ping request data packet and the time information TD2 when the feedback data packet is sent can also be obtained, and the time information TE1 when the attached device 205 receives the ping request data packet and the time information TE2 when the feedback data packet is sent can also be obtained.
  • the delay of the entire server 201 pinging the terminal device 204 process can be determined according to the difference between TA1 and TA2, the delay from the UPF node 202 sending the ping request data packet to the reception of the feedback data packet can be determined according to the difference between TB1 and TB2, the delay from the gNB node 203 receiving the ping request data packet to the sending of the feedback data packet can be determined according to the difference between TC1 and TC4, the delay from the gNB node 203 sending the ping request data packet to the gNB node 203 receiving the feedback data packet can be determined according to the difference between TC2 and TC3, the delay from the gNB node 203 sending the ping request data packet to the gNB node 203 receiving the feedback data packet can also be determined by the difference between TD1 and TD2, and the delay inside the hanging device 205 can also be determined by the difference between TE1 and TE2.
  • the delay between the server 201 and the UPF node 202 can also be determined based on the difference between the delay in the process of the server 201 pinging the terminal device 204 and the delay from the UPF node 202 sending the ping request packet to receiving the feedback packet; the delay between the UPF node 202 and the gNB node 203 can also be determined based on the difference between the delay from the UPF node 202 sending the ping request packet to receiving the feedback packet and the delay from the gNB node 203 receiving the ping request packet to sending the feedback packet; the delay between the gNB node 203 and the gNB node 203 can also be determined based on the difference between the delay from the gNB node 203 receiving the ping request packet to sending the feedback packet and the delay from the gNB node 203 sending the ping request packet to receiving the feedback packet.
  • the method of determining the delay segments is similar to the principle of the method of determining the delay segments in the process of the server 201 pinging the hanging device 205.
  • the time information of each node sending the ping request data packet/feedback data packet and receiving the ping request data packet/feedback data packet can be obtained.
  • the transmission delay of each predetermined sub-process in the process of the hanging device 205 pinging the server 201 is determined.
  • the segmentation of the target transmission process delay is achieved.
  • the sub-process to which the problem belongs can be accurately located according to the transmission delay of the sub-process, thereby locating and analyzing the problem in the target transmission process, thereby improving the positioning accuracy and processing efficiency of the problem in the target transmission process.
  • the method for determining the time delay provided in the embodiment of the present application may be executed by a device for determining the time delay, or a control module in the device for determining the time delay for executing the method for determining the time delay.
  • the device for determining the time delay provided in the embodiment of the present application is described by taking the method for determining the time delay executed by the device for determining the time delay as an example.
  • FIG3 is a schematic diagram of the structure of a device for determining a time delay according to an embodiment of the present invention.
  • the device for determining a time delay 300 comprises: a first determining module 310, a dividing module 320, and a second determining module 330 and a third determination module 340 .
  • the first determination module 310 is used to determine at least three nodes in the target transmission process; the division module 320 is used to divide the target transmission process into at least two sub-processes according to the at least three nodes; the second determination module 330 is used to determine the sending time information and the receiving time information of the data packet in at least one of the sub-processes; the third determination module 340 is used to determine the transmission delay of at least one of the sub-processes according to the sending time information and the receiving time information.
  • the at least three nodes include a first node and a second node
  • the third determination module 340 is used to determine the first sending time information of the first node sending the data packet and the second receiving time information of the second node receiving the data packet; based on the first sending time information and the second receiving time information, determine the first delay of the first sub-process from the first node sending the data packet to the second node receiving the data packet.
  • the at least three transmission nodes include a third node
  • the third determination module 340 is used to determine third receiving time information of the third node receiving the data packet; determine third sending time information of the third node sending the data packet; and determine the second delay of the second sub-process within the third node to send the data packet based on the third sending time information and the third receiving time information.
  • the at least three transmission nodes include a fourth node and a fifth node
  • the third determination module 340 is used to determine the third delay corresponding to the third sub-process between the fourth node and the fifth node according to the fourth time information corresponding to the fourth node and the fifth time information corresponding to the fifth node
  • the fourth time information includes at least one of the following: time information from sending the data packet to receiving the feedback data packet corresponding to the data packet; time information from sending the data packet to sending the feedback data packet; time information from receiving the data packet to receiving the feedback data packet; time information from receiving the data packet to sending the feedback data packet
  • the fifth time information includes at least one of the following: time information from receiving the data packet to receiving the feedback data packet; time information from sending the data packet to receiving the feedback data packet; time information from receiving the data packet to sending the feedback data packet time information between sending the data packet and sending the feedback data packet.
  • the number of the nodes is less than or equal to the total number of nodes included in the target transmission process.
  • the target transmission process includes a network packet exploration ping process
  • the data packet includes a ping request data packet
  • the device for determining the time delay in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal.
  • the device can be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
  • Network Attached Storage Network Attached Storage
  • the device for determining the time delay in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the delay determination device provided in the embodiment of the present application can implement each process implemented in the method embodiments of Figures 1 to 2, and will not be described again here to avoid repetition.
  • an embodiment of the present application further provides an electronic device 400, including a processor 401 and a memory 402, and the memory 402 stores a program or instruction that can be executed on the processor 401, and the program or instruction is implemented when executed by the processor 401: determining at least three nodes in the target transmission process; dividing the target transmission process into at least two sub-processes according to the at least three nodes; in at least one of the sub-processes, determining the sending time information and receiving time information of the data packet; and determining the transmission delay of at least one of the sub-processes according to the sending time information and the receiving time information.
  • the at least three nodes include a first node and a second node, which determine first sending time information of the first node sending the data packet; determine second receiving time information of the second node receiving the data packet; and determine a first delay of a first sub-process from the first node sending the data packet to the second node receiving the data packet based on the first sending time information and the second receiving time information.
  • the at least three transmission nodes include a third node, determining third receiving time information of the third node for receiving the data packet; determining third sending time information of the third node for sending the data packet; and determining a second delay for a second sub-process within the third node to send the data packet based on the third sending time information and the third receiving time information.
  • the at least three transmission nodes include a fourth node and a fifth node
  • the third delay corresponding to the third sub-process between the fourth node and the fifth node is determined according to the fourth time information corresponding to the fourth node and the fifth time information corresponding to the fifth node
  • the fourth time information includes at least one of the following: time information from sending the data packet to receiving the feedback data packet corresponding to the data packet; time information from sending the data packet to sending the feedback data packet; time information from receiving the data packet to receiving the feedback data packet; time information from receiving the data packet to sending the feedback data packet
  • the fifth time information includes at least one of the following: time information from receiving the data packet to receiving the feedback data packet; time information from sending the data packet to receiving the feedback data packet; time information from receiving the data packet to sending the feedback data packet; time information from sending the data packet to sending the feedback data packet.
  • the number of the nodes is less than or equal to the total number of nodes included in the target transmission process.
  • the target transmission process includes a network packet exploration ping process
  • the data packet includes a ping request data packet
  • the specific execution steps can refer to the various steps of the above-mentioned delay determination method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be described here.
  • the electronic devices in the embodiments of the present application include: servers, terminals or other devices except terminals.
  • the above electronic device structure does not constitute a limitation on the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
  • the input unit may include a graphics processing unit (GPU) and a microphone
  • the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc.
  • the user input unit includes a touch panel and at least one of other input devices.
  • the touch panel is also called a touch screen.
  • Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the memory can be used to store software programs and various data.
  • the memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories.
  • the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • ROM read-only memory
  • PROM programmable read-only memory
  • EPROM erasable programmable read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory a flash memory.
  • Volatile memory can be random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).
  • the processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application
  • the modem processor mainly processes wireless communication signals, such as a baseband processor, through the operation of a program, etc. It can be understood that the modem processor may not be integrated into the processor.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • each process of the above-mentioned delay determination method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes a computer readable storage medium, such as ROM, RAM, magnetic disk or optical disk.
  • the embodiments of the present application further provide a computer program/program product, which is stored in a storage medium.
  • the computer program/program product is executed by at least one processor to implement the various processes of the above-mentioned delay determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the technical solution of this application is essentially or the part that contributes to the prior art can be implemented in the form of a computer software product.
  • the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, or optical disk), and includes a number of instructions for enabling a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.

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

本申请公开了一种时延的确定方法、装置、电子设备及存储介质,属于通信技术领域。所述方法包括:在目标传输过程中确定至少三个节点;根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。

Description

时延的确定方法、装置、电子设备及存储介质
相关申请的交叉引用
本申请要求在2022年11月04日提交中国专利局、申请号为202211377788.9、发明名称为“时延的确定方法、装置、电子设备及存储介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种时延的确定方法、装置、电子设备及存储介质。
背景技术
第五代(5th Generation,5G)移动通信技术作为一项融合技术,为整个通信行业带来了重大变革,产生了重大影响,随着面向用户(To Consumer,ToC)行业发展的饱和,面向企业(To Business,ToB)的垂直行业端到端场景,例如自动驾驶、远程医疗、智慧工厂等作为新兴发展方向成为5G最终的归宿和其价值呈现的重要场景。而在这些ToB新兴行业应用中,时延作为其中关键指标之一,越来越受到关注,时延也成为各大运营商考核服务等级协议(Service Level Agreement,SLA)的指标之一,因此时延成为各种端到端应用场景下必备的衡量手段之一。
但是,相关技术中的端到端通信过程中,通常仅获取通信过程整体的时延,无法对整个通信过程的时延进行分段获取。
发明内容
本申请实施例提供一种时延的确定方法、装置、电子设备及存储介质,能够解决无法获取对整个通信过程的时延进行分段获取的问题。
第一方面,本申请实施例提供了一种时延的确定方法,该方法包括:在目标传输过程中确定至少三个节点;根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。
第二方面,本申请实施例提供了一种时延的确定装置,该装置包括:第一确定模块,用于在目标传输过程中确定至少三个节点;划分模块,用于根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;第二确定模块,用于在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;第三确定模块,用于根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
附图说明
图1是本申请实施例提供的一种时延的确定方法流程示意图;
图2是本申请实施例提供的一种网络包探索ping过程的示意图;
图3是本申请实施例提供的一种时延的确定装置的结构示意图;
图4是本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行 清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的时延的确定方法、装置、电子设备及存储介质进行详细地说明。
图1示出本申请实施例提供的一种时延的确定方法,该方法可以由电子设备执行,该电子设备可以包括:服务器和/或终端设备,其中终端设备可以是具有跨领域能力的设备等。换言之,该方法可以由安装在电子设备的软件或硬件来执行,该方法包括如下步骤。
步骤102:在目标传输过程中确定至少三个节点。
本申请实施例中,目标传输过程可以是垂直行业端到端的传输过程,例如网络包探索(Packet Internet Groper,ping)连接过程、传输控制协议(Transmission Control Protocol,TCP)二次握手、TCP三次握手、或TCP往返过程等。通常应用层的应用设备进行通信的过程中,会采集发送端应用设备与接收端应用设备之间的时延,例如在ping请求过程中,会采集发送ping连接请求的服务器设备和接收ping连接请求的挂接设备之间的时延,而不会考虑通信过程中所涉及的网络设备。在实际通信过程中,可能包含多个网络设备,例如核心网设备或接入网的网络设备等,相关技术中无法确定应用设备与网络设备之间、多个网络设备之间的时延。本发明实施例所述的至少三 个节点中至少包括一个网络设备节点。
步骤104:根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程。
具体的,在目标传输过程中,可以根据确定的至少三个节点,将目标传输过程划分为至少两个子过程,由于通信过程通过会通过传输数据包实现信息的传输,因此子过程可以是一个节点发送数据包到另一个节点接收数据包之间的过程,或者是一个节点接收数据包到该节点发送数据包之间的过程,或者是一个节点接收数据包到另一个节点发送数据包之间的过程等。
作为一个示例,在目标传输过程中,存在O、M、N三个节点,其中,节点O表示发送端应用设备,节点N表示接收端应用设备,节点M表示网络设备节点,目标传输过程可以为节点O传输数据包至节点M、节点M再将数据包传输至节点N的过程,可以将节点O发送数据包到节点M接收数据包之间的过程确定为子过程m、将节点M发送数据包到节点N接收数据包之间的过程确定为子过程n,则节点O到节点M再到节点N的传输过程总共划分为m、n两个个子过程。
作为另外一个示例,在目标传输过程中,存在三个节点A、B、C,其中,节点A表示发送端应用设备,节点C表示接收端应用设备,节点B表示网络设备节点,目标传输过程可以为节点A传输数据包至节点B、节点B再将数据包传输至节点C的过程,可以将节点A发送数据包到节点B接收数据包之间的过程确定为子过程a,将节点B接收数据包到节点B发送数据包之间的过程确定为子过程b,将节点B发送数据包到节点C接收数据包之间的过程确定为子过程c,则节点A到节点B再到节点C的传输过程总共划分为a、b、c三个子过程,具体的目标传输过程划分方式可以根据需求进行设置,在此不做具体限定。
步骤106:在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息。
具体的,在将目标传输过程划分为至少两个子过程后,针对至少一个子过程,可以获取该子过程对应的数据包的发送时间信息和接收时间信息,发送时间信息可以包括发送数据包的时间戳,接收时间信息可以包括接收数据包的时间戳,接续步骤104中的示例,子过程m对应的数据包的发送时间信息即为节点O对应的数据包的发送时间信息,对应的数据包的接收时间信息即为节点M对应的数据包的接收时间信息,同理,子过程n对应的数据包的发送时间信息即为节点M对应的数据包的发送时间信息,对应的数据包的接收时间信息即为节点N对应的数据包的接收时间信息。
对于步骤104中的另外一个示例,子过程a对应的数据包的发送时间信息即为节点A对应的数据包的发送时间信息,对应的数据包的接收时间信息即为节点B对应的数据包的接收时间信息,同理,子过程b对应的数据包的发送时间信息即为节点B对应的数据包的发送时间信息,对应的数据包的接收时间信息即为节点B对应的数据包的接收时间信息,子过程c对应的数据包的发送时间信息即为节点B对应的数据包的发送时间信息,对应的数据包的接收时间信息即为节点C对应的数据包的接收时间信息。
步骤108:根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。
具体的,数据包的发送时间信息可以包括发送数据包的时间戳,接收时间信息可以包括接收数据包的时间戳,这样,在获取子过程的对应的数据包的发送时间信息和接收时间信息之后,可以根据发送时间信息和接收时间信息的差值,确定子过程对应的传输时延,接续步骤106中的示例,子过程m的传输时延即为节点O对应的数据包的发送时间信息与节点M对应的数据包的接收时间信息的差值,子过程n的传输时延即为子节点M对应的数据包的发送时间信息与节点N对应的数据包的接收时间信息的差值。
对于步骤106中的另外一个示例,子过程a的传输时延即为节点A对应的数据包的发送时间信息与节点B对应的数据包的接收时间信息的差值,子 过程b的传输时延即为子节点B对应的数据包的发送时间信息与节点B对应的数据包的接收时间信息的差值,子过程c的传输时延即为子节点B对应的数据包的发送时间信息与节点C对应的数据包的接收时间信息的差值。
在本申请实施例中,通过在目标传输过程中确定至少三个节点根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程,根据子过程对应的发送时间信息和接收时间信息即可以确定端到端的目标传输过程中子过程对应的传输时延,实现了目标传输过程时延的分段,能够在目标传输过程出现问题的情况下,根据子过程的时延,可以准确地定位到问题所归属的子过程,进而实现能够对目标传输过程中出现的问题进行定位和分析,提高了目标传输过程中的问题的定位准确度和处理效率。
在本申请实施例中,通过在目标传输过程中确定至少三个节点;根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延,根据子过程对应的发送时间信息和接收时间信息即可以确定端到端的目标传输过程中子过程对应的传输,实现了目标传输过程时延的分段确定。
在一种实现方式中,所述至少三个节点包括第一节点和第二节点,根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延,包括:确定所述第一节点发送所述数据包的第一发送时间信息;确定所述第二节点接收所述数据包的第二接收时间信息;根据所述第一发送时间信息和所述第二接收时间信息,确定从所述第一节点发送所述数据包到所述第二节点接收所述数据包之间的第一子过程的第一时延。
具体的,目标传输过程的至少三个节点中包括第一节点和第二节点,则可以将第一节点发送数据包到第二节点接收数据包之间过程确定为第一子过 程,因此,在目标传输过程中,可以获取第一子过程对应的发送数据包的第一发送时间信息,即第一节点发送数据包的第一发送时间信息,获取第一子过程对应的接收数据包的第二接收时间信息,即第二节点接收数据包的第二接收时间信息,那么第一子过程的传输时延即为第一发送时间信息和第二接收时间信息的差值,例如步骤106中的示例,其中,第一子过程可以为子过程m,第一节点可以为节点O,第二节点可以为节点M,那么节点O对应的数据包的发送时间信息即为第一发送时间信息,节点M对应的数据包的接收时间信息即为第二接收时间信息,则第一子过程m的时延即为第一发送时间信息和第二接收时间信息的差值。
这样,通过确定第一节点发送数据包的第一发送时间信息;确定第二节点接收数据包的第二接收时间信息;根据第一发送时间信息和第二接收时间信息,确定从第一节点发送数据包到第二节点接收数据包之间的第一子过程的第一时延,能够确定第一节点发送数据包到第二节点接收数据包之间的传输时延,进而能够在目标传输过程中出现问题的情况下,根据第一子过程的传输时延,能够快速准确地确定问题归属的子过程,提高问题的定位准确度和处理效率。
在一种实现方式中,所述至少三个传输节点包括第三节点,根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延,包括:确定所述第三节点接收所述数据包的第三接收时间信息;确定所述第三节点发送所述数据包的第三发送时间信息;根据所述第三发送时间信息和所述第三接收时间信息,确定所述第三节点内部的第二子过程发送所述数据包的第二时延。
具体的,在目标传输过程中,包括第三节点,则可以将第三节点接收数据包到第三节点发送数据包之间的过程确定为第二子过程,该第二子过程即为第三节点内部传输数据包的过程,因此,在目标传输过程中可以获取第三节点接收数据包的第三接收时间信息和第三节点发送数据包的第三发送时间 信息,那么,第二子过程对应的传输时延即为第三发送时间信息与第三接收时间信息的差值,例如步骤106中的示例,其中,第二子过程可以是子过程b,第三节点可以是节点B,第三发送时间信息即为节点B对应的发送数据包时间信息,第三接收时间信息即为节点B对应的接收数据包时间信息,则第二子过程b的传输时延即为第三接收时间信息与第三发送时间信息的差值。
这样,通过确定第三节点接收数据包的第三接收时间信息;确定第三节点发送数据包的第三发送时间信息;根据第三发送时间信息和第三接收时间信息,确定第三节点内部的第二子过程发送数据包的第二时延,能够确定节点内部子过程的传输时延,根据节点内部子过程的传输时延,能够快速准确地确定问题归属的子过程,提高问题的定位准确度和处理效率。
在一种实现方式中,所述至少三个传输节点包括第四节点和第五节点,根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延,包括:根据所述第四节点对应的第四时间信息和所述第五节点对应的第五时间信息,确定所述第四节点和所述第五节点之间的第三子过程对应的第三时延;其中,所述第四时间信息包括以下至少一种:从发送所述数据包到接收到所述数据包对应的反馈数据包之间的时间信息;从发送所述数据包到发送所述反馈数据包之间的时间信息;从接收所述数据包到接收到所述反馈数据包之间的时间信息;从接收所述数据包到发送所述反馈数据包之间的时间信息;所述第五时间信息包括以下至少一种:从接收所述数据包到接收到所述反馈数据包之间的时间信息;从发送所述数据包到接收到所述反馈数据包之间的时间信息;从接收所述数据包到发送所述反馈数据包之间的时间信息;从发送所述数据包到发送所述反馈数据包之间的时间信息。
具体的,发送端应用设备将数据包发送至接收端应用设备之后,接收端应用设备可能会返回反馈数据包,该反馈数据包由接收端应用设备响应于接收到的数据包产生,接收端应用设备发送的反馈数据包会延数据包的发送链路原路返回至发送端应用设备,因此,在至少三个节点包括第四节点和第五 节点的情况下,可以将第四节点和第五节点之间的传输过程确定为第三子过程,该第三子过程可以包括第四节点和第五节点之间传输数据包的过程和传输反馈数据包的过程,根据第四节点对应的第四时间信息和第五节点对应的第五时间信息可以确定第三子过程的传输时延。
第四节点可以发送数据包、接收数据包、发送反馈数据包或者接收反馈数据包,第五节点也可以发送数据包、接收数据包、发送反馈数据包或者接收反馈数据包,因此,第四时间信息可以包括从第四节点发送数据包到接收到反馈数据包之间的时间信息、从发送数据包到发送反馈数据包之间的时间信息、从接收数据包到接收到反馈数据包之间的时间信息、从接收数据包到发送反馈数据包之间的时间信息中的至少一者,第五时间信息可以包括第五节点从接收数据包到接收到反馈数据包之间的时间信息、从发送数据包到接收到反馈数据包之间的时间信息、从接收数据包到发送反馈数据包之间的时间信息、从发送数据包到发送反馈数据包之间的时间信息中的至少一者,这样,可以根据时间需求确定第三子过程的范围,并确定第四时间信息和第五时间信息,进而根据第四时间信息和第五时间信息的差值,可以直接确定第三子过程的时延,其中,第三子过程包括数据包传输子过程和反馈数据包传输子过程。
作为一个示例,第三子过程包括第五节点发送数据包到第四节点接收数据包的子过程和第四数据包发送反馈数据包到第五节点接收反馈数据包的子过程,则第四时间信息可以包括第四节点从接收数据包到发送反馈数据包之间的时间信息,该第四时间信息可以包括第四节点发送反馈数据包的时间戳与接收数据包的时间戳的差值,第五时间信息可以包括第五节点从发送数据包到接收反馈数据包之间的时间信息,该第五时间信息可以包括第五节点接收到反馈数据包的时间戳与发送数据包的时间戳的差值,则可以根据第五时间信息和第四时间信息的差值,确定第三子过程的传输时延。
这样,通过根据第四节点对应的第四时间信息和第五节点对应的第五时 间信息,确定第四节点和第五节点之间的第三子过程对应的第三时延;其中,第四时间信息包括以下至少一种:从发送数据包到接收到数据包对应的反馈数据包之间的时间信息;从发送数据包到发送反馈数据包之间的时间信息;从接收数据包到接收到反馈数据包之间的时间信息;从接收数据包到发送反馈数据包之间的时间信息;第五时间信息包括以下至少一种:从接收数据包到接收到反馈数据包之间的时间信息;从发送数据包到接收到反馈数据包之间的时间信息;从接收数据包到发送反馈数据包之间的时间信息;从发送数据包到发送反馈数据包之间的时间信息,可以根据需求确定第三子过程的范围,确定第四时间信息和第五时间信息,进而根据第四时间信息和第五时间信息的差值,可以直接确定包括数据包传输过程和反馈数据包传输过程的第三子过程的时延,避免了传输流传过程过长导致时延计算冗杂,提升了时延的确定效率。
在一种实现方式中,所述节点的数量小于或等于所述目标传输过程中包括的总节点数量。
具体的,在目标传输过程中确定节点进行子过程划分时,节点的数量可以小于或者等于目标传输过程中包括的总节点的数量,即,可以按照时间需求确定需要进行划分子过程的节点,避免了对所有节点进行划分导致资源浪费、时延确定过程冗杂的问题。
在一种实现方式中,所述目标传输过程包括网络包探索ping过程,所述数据包包括ping请求数据包。
具体的,目标传输过程可以包括网络包探索ping过程,则数据包包括ping请求数据包,在接收端应用设备接收到ping请求数据包的情况下,接收端应用设备还可以发送反馈数据包至发送端应用设备,应理解,本申请实施例中的目标传输过程除了可以包括ping过程以外,还可以包括TCP二次握手、TCP三次握手、TCP往返过程等端到端通信过程。
这样,通过对网络包探索ping过程等端到端通信过程进行子过程的划分, 然后确定子过程的传输时延,实现了目标传输过程时延的分段,能够在目标传输过程出现问题的情况下,根据子过程的传输时延,可以准确地定位到问题所归属的子过程,进而实现能够对目标传输过程中出现的问题进行定位和分析,提高了目标传输过程中的问题的定位准确度和效率。
图2示出的是本申请实施例提供的一种网络包探索ping过程的示意图,下面将图2作为一个示例,对本申请实施例提供的一种时延的确定方法进行详细的说明。
如图2所示,在服务器ping挂接设备的过程涉及服务器201、用户平面功能网元(User Plane Function,UPF)节点202、5G基站(gNB)节点203、终端设备204、挂接设备205,挂接设备205是终端设备204的下挂设备,服务器201可以将ping请求数据包通过UPF节点202、gNB节点203发送至终端设备204,通过终端设备204再转发至挂接设备205,挂接设备205可以通过终端设备204、gNB节点203、UPF节点202将反馈数据包发送至服务器201。
如图2所示,可以将节点之间的传输过程确定为子过程,还可以将节点内部的传输过程确定为子过程,例如在服务器201将ping请求数据包传输至挂接设备205的过程或者挂接设备205将反馈数据包输送至服务器201的过程中,可以将服务器201与UPF节点202之间传输过程、UPF节点202与gNB节点203之间的传输过程、gNB节点203与终端设备204之间的传输过程、终端设备204与挂接设备205之间的传输过程各确定为子传输过程,还可以将UPF节点202内部的传输过程、gNB节点203内部的传输过程等内部传输过程确定为子传输过程,当然,对于同一个节点,从发送ping请求数据包到接收到反馈数据包之间的过程也可以确定为子过程,子过程可以根据实际需求进行设定,在此,不对子过程做具体限定,在确定子过程之后可以根据各个子过程对应的发送数据包的时间和对应的数据包的接收时间信息,确定各个子过程的传输时延。
作为一个示例,在服务器201ping挂接设备205的过程中,可以获取服务器201发送ping请求数据包的时间信息TA1、服务器201接收反馈数据包的时间信息TA2,还可以获取UPF节点202通过N3口发送ping请求数据包的时间信息TB1、UPF节点202接收反馈数据包的时间信息TB2,还可以通过gNB节点203的分组数据汇聚层(Packet Data Convergence Protocol,PDCP)获取gNB节点203接收ping请求数据包的时间信息TC1、发送反馈数据包的时间信息TC4,还可以通过gNB节点203的PDCP层识别ping请求数据包或者反馈数据包,之后将ping请求数据包或者反馈数据包附带识别标签给将媒体接入控制层(media access control,MAC)或者无线链路控制协议层(Radio link Control,RLC),然后由MAC或RLC提取出ping请求数据包或者反馈数据包的帧号或时隙(slot)号,即空口时刻,以获取gNB节点203发送ping请求数据包的时间信息TC2或者gNB节点203接收反馈数据包的时间信息TC3,其中,由预设触发器触发获取ping请求数据包或者反馈数据包的帧号或时隙(slot)号,获取周期也在触发器中预先设定,还可以获取终端设备204接收ping请求数据包的时间信息TD1、发送反馈数据包的时间信息TD2,还可以获取挂接设备205接收ping请求数据包的时间信息TE1、发送反馈数据包的时间信息TE2。
在预先根据传输过程中的节点确定的各个子过程中,可以根据TA1与TA2的差值,确定整个服务器201ping终端设备204过程的时延,根据TB1和TB2之间的差值,确定从UPF节点202发送ping请求数据包到接收到反馈数据包的时延,根据TC1与TC4之间的差值,确定从gNB节点203接收到ping请求数据包到发送反馈数据包的时延,根据TC2与TC3之间的差值,确定从gNB节点203发送ping请求数据包到gNB节点203接收到反馈数据包的时延,还可以通过TD1与TD2之间的差值,确定从终端设备204接收到ping请求数据包到发送反馈数据包之间的时延,还可以通过TE1和TE2之间的差值,确定挂接设备205内部的时延。
还可以根据服务器201ping终端设备204过程的时延与从UPF节点202发送ping请求数据包到接收到反馈数据包的时延的差值,确定服务器201与UPF节点202之间的时延;还可以根据从UPF节点202发送ping请求数据包到接收到反馈数据包的时延与从gNB节点203接收到ping请求数据包到发送反馈数据包的时延的差值,确定UPF节点202与gNB节点203之间的时延,还可以根据从gNB节点203接收到ping请求数据包到发送反馈数据包的时延与gNB节点203发送ping请求数据包到接收反馈数据包的时延的差值。
同样的,挂接设备205ping服务器201的过程,时延分段确定的方式与上述服务器201ping挂接设备205的过程中时延分段确定方式的原理相似,在挂接设备205ping服务器201的过程中,可以获取各节点发送ping请求数据包/反馈数据包以及接收ping请求数据包/反馈数据包的时间信息,根据时间信息,确定挂接设备205ping服务器201过程中各个预先确定的子过程的传输时延,上述示例仅仅是示意性的,而不是限制性的,本申请可以根据实际需求进行调整,并不局限于上述的具体实施方式。
这样,通过对网络包探索ping过程等端到端通信过程进行子过程的划分,然后确定子过程的传输时延,实现了目标传输过程时延的分段,能够在目标传输过程出现问题的情况下,根据子过程的传输时延,可以准确地定位到问题所归属的子过程,进而实现对目标传输过程中出现的问题进行定位和分析,提高了目标传输过程中的问题的定位准确度和处理效率。
需要说明的是,本申请实施例提供的时延的确定方法,执行主体可以为时延的确定装置,或者该时延的确定装置中的用于执行时延的确定方法的控制模块。本申请实施例中以时延的确定装置执行时延的确定方法为例,说明本申请实施例提供的时延的确定装置。
图3是根据本发明实施例的时延的确定装置的结构示意图。如图3所示,时延的确定装置300包括:第一确定模块310、划分模块320、第二确定模块 330和第三确定模块340。
第一确定模块310,用于在目标传输过程中确定至少三个节点;划分模块320,用于根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;第二确定模块330,用于在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;第三确定模块340,用于根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。
在一种实现方式中,所述至少三个节点包括第一节点和第二节点,所述第三确定模块340,用于确定所述第一节点发送所述数据包的第一发送时间信息确定所述第二节点接收所述数据包的第二接收时间信息;根据所述第一发送时间信息和所述第二接收时间信息,确定从所述第一节点发送所述数据包到所述第二节点接收所述数据包之间的第一子过程的第一时延。
在一种实现方式中,所述至少三个传输节点包括第三节点,所述第三确定模块340,用于确定所述第三节点接收所述数据包的第三接收时间信息;确定所述第三节点发送所述数据包的第三发送时间信息;根据所述第三发送时间信息和所述第三接收时间信息,确定所述第三节点内部的第二子过程发送所述数据包的第二时延。
在一种实现方式中,所述至少三个传输节点包括第四节点和第五节点,所述第三确定模块340,用于根据所述第四节点对应的第四时间信息和所述第五节点对应的第五时间信息,确定所述第四节点和所述第五节点之间的第三子过程对应的第三时延;其中,所述第四时间信息包括以下至少一种:从发送所述数据包到接收到所述数据包对应的反馈数据包之间的时间信息;从发送所述数据包到发送所述反馈数据包之间的时间信息;从接收所述数据包到接收到所述反馈数据包之间的时间信息;从接收所述数据包到发送所述反馈数据包之间的时间信息;所述第五时间信息包括以下至少一种:从接收所述数据包到接收到所述反馈数据包之间的时间信息;从发送所述数据包到接收到所述反馈数据包之间的时间信息;从接收所述数据包到发送所述反馈数 据包之间的时间信息;从发送所述数据包到发送所述反馈数据包之间的时间信息。
在一种实现方式中,所述节点的数量小于或等于所述目标传输过程中包括的总节点数量。
在一种实现方式中,所述目标传输过程包括网络包探索ping过程,所述数据包包括ping请求数据包。
本申请实施例中的时延的确定装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的时延的确定装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的时延的确定装置能够实现图1至图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图4所示,本申请实施例另提供一种电子设备400,包括处理器401和存储器402,存储器402上存储有可在所述处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现:在目标传输过程中确定至少三个节点;根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。
在一种实现方式中,所述至少三个节点包括第一节点和第二节点,确定所述第一节点发送所述数据包的第一发送时间信息;确定所述第二节点接收所述数据包的第二接收时间信息;根据所述第一发送时间信息和所述第二接收时间信息,确定从所述第一节点发送所述数据包到所述第二节点接收所述数据包之间的第一子过程的第一时延。
在一种实现方式中,所述至少三个传输节点包括第三节点,确定所述第三节点接收所述数据包的第三接收时间信息;确定所述第三节点发送所述数据包的第三发送时间信息;根据所述第三发送时间信息和所述第三接收时间信息,确定所述第三节点内部的第二子过程发送所述数据包的第二时延。
在一种实现方式中,所述至少三个传输节点包括第四节点和第五节点,根据所述第四节点对应的第四时间信息和所述第五节点对应的第五时间信息,确定所述第四节点和所述第五节点之间的第三子过程对应的第三时延;其中,所述第四时间信息包括以下至少一种:从发送所述数据包到接收到所述数据包对应的反馈数据包之间的时间信息;从发送所述数据包到发送所述反馈数据包之间的时间信息;从接收所述数据包到接收到所述反馈数据包之间的时间信息;从接收所述数据包到发送所述反馈数据包之间的时间信息;所述第五时间信息包括以下至少一种从接收所述数据包到接收到所述反馈数据包之间的时间信息;从发送所述数据包到接收到所述反馈数据包之间的时间信息;从接收所述数据包到发送所述反馈数据包之间的时间信息;从发送所述数据包到发送所述反馈数据包之间的时间信息。
在一种实现方式中,所述节点的数量小于或等于所述目标传输过程中包括的总节点数量。
在一种实现方式中,所述目标传输过程包括网络包探索ping过程,所述数据包包括ping请求数据包。
具体执行步骤可以参见上述时延的确定方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括:服务器、终端或除终端之外的其他设备。
以上电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,例如,输入单元,可以包括图形处理器(Graphics Processing Unit,GPU)和麦克风,显示单元可以采用液晶显示器、有机发光二极管等形式来配置显示面板。用户输入单元包括触控面板以及其他输入设备中的至少一种。触控面板也称为触摸屏。其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器可用于存储软件程序以及各种数据。存储器可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器可以包括易失性存储器或非易失性存储器,或者,存储器可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。
处理器可包括一个或多个处理单元;可选的,处理器集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应 用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述时延的确定方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如ROM、RAM、磁碟或者光盘等。
本申请实施例另提供了一种计算机程序/程序产品,所述计算机程序/程序产品被存储在存储介质中,所述计算机程序/程序产品被至少一个处理器执行以实现上述时延的确定方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的 形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (9)

  1. 一种时延的确定方法,包括:
    在目标传输过程中确定至少三个节点;
    根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;
    在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;
    根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。
  2. 根据权利要求1所述的确定方法,其中,所述至少三个节点包括第一节点和第二节点,根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延,包括:
    确定所述第一节点发送所述数据包的第一发送时间信息;
    确定所述第二节点接收所述数据包的第二接收时间信息;
    根据所述第一发送时间信息和所述第二接收时间信息,确定从所述第一节点发送所述数据包到所述第二节点接收所述数据包之间的第一子过程的第一时延。
  3. 根据权利要求1所述的确定方法,其中,所述至少三个传输节点包括第三节点,根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延,包括:
    确定所述第三节点接收所述数据包的第三接收时间信息;
    确定所述第三节点发送所述数据包的第三发送时间信息;
    根据所述第三发送时间信息和所述第三接收时间信息,确定所述第三节点内部的第二子过程发送所述数据包的第二时延。
  4. 根据权利要求1所述的确定方法,其中,所述至少三个传输节点包括第四节点和第五节点,根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延,包括:
    根据所述第四节点对应的第四时间信息和所述第五节点对应的第五时间 信息,确定所述第四节点和所述第五节点之间的第三子过程对应的第三时延;
    其中,所述第四时间信息包括以下至少一种:
    从发送所述数据包到接收到所述数据包对应的反馈数据包之间的时间信息;
    从发送所述数据包到发送所述反馈数据包之间的时间信息;
    从接收所述数据包到接收到所述反馈数据包之间的时间信息;
    从接收所述数据包到发送所述反馈数据包之间的时间信息;
    所述第五时间信息包括以下至少一种:
    从接收所述数据包到接收到所述反馈数据包之间的时间信息;
    从发送所述数据包到接收到所述反馈数据包之间的时间信息;
    从接收所述数据包到发送所述反馈数据包之间的时间信息;
    从发送所述数据包到发送所述反馈数据包之间的时间信息。
  5. 根据权利要求1所述的确定方法,其中,所述节点的数量小于或等于所述目标传输过程中包括的总节点数量。
  6. 根据权利要求1所述的确定方法,其中,所述目标传输过程包括网络包探索ping过程,所述数据包包括ping请求数据包。
  7. 一种时延的确定装置,包括:
    第一确定模块,用于在目标传输过程中确定至少三个节点;
    划分模块,用于根据所述至少三个节点,将所述目标传输过程划分为至少两个子过程;
    第二确定模块,用于在至少一个所述子过程中,确定数据包的发送时间信息和接收时间信息;
    第三确定模块,用于根据所述发送时间信息和所述接收时间信息,确定至少一个所述子过程的传输时延。
  8. 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时 实现如权利要求1-6任一项所述的时延的确定方法的步骤。
  9. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的时延的确定方法的步骤。
PCT/CN2023/108061 2022-11-04 2023-07-19 时延的确定方法、装置、电子设备及存储介质 WO2024093365A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211377788.9 2022-11-04
CN202211377788.9A CN117997800A (zh) 2022-11-04 2022-11-04 时延的确定方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2024093365A1 true WO2024093365A1 (zh) 2024-05-10

Family

ID=90887611

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108061 WO2024093365A1 (zh) 2022-11-04 2023-07-19 时延的确定方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN117997800A (zh)
WO (1) WO2024093365A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889470A (zh) * 2005-06-27 2007-01-03 华为技术有限公司 一种链路时延的检测方法
WO2018121237A1 (zh) * 2016-12-29 2018-07-05 中兴通讯股份有限公司 网络质量检测方法及装置
CN111405603A (zh) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 一种时延获取方法、测试装置以及计算机存储介质
CN113783744A (zh) * 2020-06-10 2021-12-10 中国移动通信集团海南有限公司 一种时延测量方法、装置、计算机设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889470A (zh) * 2005-06-27 2007-01-03 华为技术有限公司 一种链路时延的检测方法
WO2018121237A1 (zh) * 2016-12-29 2018-07-05 中兴通讯股份有限公司 网络质量检测方法及装置
CN111405603A (zh) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 一种时延获取方法、测试装置以及计算机存储介质
CN113783744A (zh) * 2020-06-10 2021-12-10 中国移动通信集团海南有限公司 一种时延测量方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN117997800A (zh) 2024-05-07

Similar Documents

Publication Publication Date Title
US11151010B2 (en) Resource configuration method, mobile terminal and storage medium
US10587544B2 (en) Message processing method, processing server, terminal, and storage medium
WO2021121370A1 (zh) 用于消息队列的消息丢失检测方法和装置
CN112738791B (zh) 基于5g核心网的用户信息关联回填方法、装置、设备和介质
US8738682B2 (en) Monitoring a path of a transaction across a composite application
US20170207990A1 (en) Reducing an amount of captured network traffic data to analyze
US11500666B2 (en) Container isolation method and apparatus for netlink resource
CN108401037A (zh) 用户终端和设备的绑定方法、装置和系统
CN108139964A (zh) 云服务配置方法、装置、存储介质及云服务系统
CN111338893A (zh) 进程日志处理方法、装置、计算机设备以及存储介质
CN112448969A (zh) 链路追踪方法、装置、系统、设备及可读存储介质
CN111813699B (zh) 基于智能电表的数据路由测试方法、装置和计算机设备
CN111259022A (zh) 一种信息同步方法、同步系统、计算机设备和介质
US9154985B2 (en) Mechanism for facilitating dynamic and segment-based monitoring of cellular network performance in an on-demand services environment
US9577900B1 (en) Application centric network experience monitoring
US10225358B2 (en) Page push method, device, server and system
WO2018130161A1 (zh) 基于云计算服务的高效传输方法和装置
CN115174472A (zh) 一种消息转发处理方法及相关装置
CN113791792A (zh) 应用调用信息的获取方法、设备以及存储介质
WO2024093365A1 (zh) 时延的确定方法、装置、电子设备及存储介质
CN111526028B (zh) 数据处理方法、装置及设备
WO2021097713A1 (zh) 分布式安全检测系统、方法、设备及存储介质
EP4280561A1 (en) Information flow identification method, network chip, and network device
CN116389323A (zh) 吞吐量测试方法、设备及存储介质
CN114158074B (zh) 一种5g网元地址确定方法、装置、电子设备及存储介质