WO2022237232A1 - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
WO2022237232A1
WO2022237232A1 PCT/CN2022/073414 CN2022073414W WO2022237232A1 WO 2022237232 A1 WO2022237232 A1 WO 2022237232A1 CN 2022073414 W CN2022073414 W CN 2022073414W WO 2022237232 A1 WO2022237232 A1 WO 2022237232A1
Authority
WO
WIPO (PCT)
Prior art keywords
entity
upf entity
round
delay
upf
Prior art date
Application number
PCT/CN2022/073414
Other languages
French (fr)
Chinese (zh)
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 WO2022237232A1 publication Critical patent/WO2022237232A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Definitions

  • the present application relates to the field of wireless communication, in particular to a data transmission method and related equipment.
  • user plane function user plane function, UPF entity
  • base stations can serve as intermediate nodes between terminals and application function (application function, AF) entities for transmission user plane data.
  • application function application function, AF
  • various services have certain requirements on data delay.
  • the existing delay measurement method is roughly as follows: a session management function (session management function, SMF) entity 15 sends a monitoring request to a user plane function (User Plane Function, UPF) entity 13, and the mobility management function (access and The mobility management function (AMF) entity 14 sends a monitoring request to the base station, and the monitoring parameters included in the monitoring request are determined by the SMF entity according to the monitoring strategy.
  • the user plane functional entity 13 sends a monitoring packet to the base station 12 according to the monitoring request.
  • the monitoring packet includes the time T1 when the monitoring packet is sent, and the base station 12 sends a monitoring response packet to the user plane functional entity 13.
  • the monitoring response packet includes T1, T2 and T3 , T2 is the time when the base station 12 receives the monitoring packet, T3 is the time when the base station 12 sends the monitoring response packet, after the user plane functional entity 13 receives the monitoring response packet, it can be calculated according to (T2-T1+T4-T3)/2 The time delay between the user plane functional entity 13 and the time T4 when the monitoring response packet is received.
  • the base station 12 measures the time delay between the terminal 11 and the base station 12 according to the monitoring request. In this way, the time delay between the terminal 11 and the user plane functional entity 13 can be calculated according to the time delay between the terminal 11 and the base station 12 and the time delay between the base station 12 and the user plane functional entity 13 .
  • the above-mentioned time delay is only the time delay of a part of end-to-end paths, and it is difficult to optimize the above-mentioned time delay to meet the end-to-end time delay requirement.
  • the present application provides a data transmission method and related equipment, which can measure the delay between the UPF entity and the AF and the delay between the UPF entities, and adjust the end-to-end data transmission path according to the measured delay, thereby reducing end-to-end latency.
  • the first aspect provides a data transmission method, in which the data transmission method, the first UPF entity acquires the first round-trip delay between the first UPF entity and the target AF entity; sends the first round-trip delay to the SMF entity; Receiving the first notification sent by the SMF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, after the first UPF entity receives the target uplink data from the first terminal, according to the first A notification sends the target uplink data to the second UPF entity, so that the second UPF entity sends the target uplink data to the target AF entity.
  • the second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity
  • the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity.
  • the time for the target uplink data to reach the target AF entity from the first UPF entity is half of the first round-trip delay.
  • the acquisition by the first UPF entity of the first round-trip delay between the first UPF entity and the target AF entity includes: the first UPF entity receives the uplink data sent by the first terminal; Uplink data: receiving an acknowledgment frame sent by the target AF entity, and determining a first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the confirmation frame is generated by the target AF entity in response to uplink data. This provides a specific method for measuring the first round-trip delay.
  • the acquisition by the first UPF entity of the first round-trip delay between the first UPF entity and the target AF entity includes: the first UPF entity sends uplink data to the target AF entity; acknowledgment frame, and determine the first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the confirmation frame is generated by the target AF entity in response to uplink data. This provides another specific method for measuring the first round-trip delay.
  • the above data transmission method further includes: after receiving the first message sent by the SMF entity, the first UPF entity sends an echo request to the second UPF entity according to the first message, and then receives the second UPF entity For the sent echo response, determine the first measured delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received, and then send the first measured delay to the SMF entity.
  • the first message includes the IP address of the second UPF entity.
  • the first measured delay is the round-trip delay between the first UPF entity and the second UPF entity.
  • the SMF entity may acquire the first measured delay measured by the first UPF entity, and then determine the round-trip delay between the first UPF entity and the second UPF entity according to the first measured delay.
  • the second aspect provides a data transmission method, in which the data transmission method, the second UPF entity obtains the second round-trip delay between the second UPF entity and the target AF entity, and sends the second round-trip delay to the SMF entity, Receive the second message sent by the SMF entity, obtain the second measurement delay between the second UPF entity and the first UPF entity according to the second message, and send the second measurement delay to the SMF entity, and receive the SMF entity in the first round trip.
  • the second notification sent when the delay is greater than the sum of the second round-trip delay and the third round-trip delay receives the target uplink data sent by the first UPF entity according to the second notice, and sends the target uplink data to the Target AF entity.
  • the second message includes the IP address of the first UPF entity.
  • the first round-trip delay is the round-trip delay between the first UPF entity and the target AF entity.
  • the third round-trip delay is determined by the SMF entity according to the second measurement delay.
  • the destination address of the target uplink data is the IP address of the target AF entity, and the source IP address of the target uplink data is the first IP address of the first terminal.
  • the SMF entity can select the second UPF entity as the protocol data unit session anchor point (protocol data unit) of the target uplink data unit session anchor, PSA), so that the target uplink data reaches the target AF entity through the first UPF entity and the second UPF entity.
  • the transmission time of the target uplink data can be shortened, and the transmission efficiency can be improved.
  • the acquisition by the second UPF entity of the second round-trip delay between the second UPF entity and the target AF entity includes: the second UPF entity receives the uplink data sent by the second terminal; sends the uplink data to The target AF entity: receiving the acknowledgment frame sent by the target AF entity, and determining a second round-trip delay between the second UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the confirmation frame is generated by the target AF entity in response to uplink data. This provides a specific method for measuring the second round-trip delay.
  • the acquisition by the second UPF entity of the second round-trip delay between the second UPF entity and the target AF entity includes: the second UPF entity sends uplink data to the target AF entity; receiving the target AF entity For the sent acknowledgment frame, determine the second round-trip delay between the second UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the confirmation frame is generated by the target AF entity in response to uplink data. This provides another specific method for measuring the second round-trip delay.
  • the obtaining by the second UPF entity of the second measured delay between the second UPF entity and the first UPF entity according to the second message includes: the second UPF entity reports to the first UPF according to the second message The entity sends an echo request; receives an echo response sent by the first UPF entity; and determines a second measurement delay between the second UPF entity and the first UPF entity according to the time when the echo request is sent and the time when the echo response is received. This provides another way to measure the delay between UPF entities.
  • the second UPF entity sending the target uplink data to the target AF entity includes: the second UPF entity performs network address port translation on the first IP address and the first port number in the target uplink data, that is According to network address port translation (network address port translation, NAPT) technology, the private network IP address and port number of the first terminal are converted into public network IP address and port number (ie, the second IP address and the second port number), and then The target uplink data after the network address port conversion is sent to the target AF entity; the above data transmission method also includes: after the second UPF entity receives the target downlink data sent by the target AF entity to the first terminal, the target IP in the target downlink data Address and purpose port number carry out network address port translation, so that the purpose IP address and purpose port number in the target downlink data are restored to the private network IP address and port number of the first terminal (i.e.
  • network address port translation network address port translation
  • the target uplink data after network address port translation includes the second IP address and the second port number.
  • the destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number.
  • the destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number.
  • the third aspect provides a data transmission method.
  • the SMF entity receives the first round-trip delay sent by the first UPF entity, receives the second round-trip delay sent by the second UPF entity, and sends the second round-trip delay to the second UPF entity.
  • the third round-trip delay between entities when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity sends the first notification to the first UPF entity, and the first UPF entity sends the first notification according to the first UPF entity
  • a notification sends the target uplink data from the first terminal to the second UPF entity, sends a second notification to the second UPF entity, and the second UPF entity forwards the target uplink data received from the first UPF entity to the target according to the second notification AF entity.
  • the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity.
  • the second round-trip delay is a round-trip delay between the second UPF entity and the target AF entity.
  • the destination IP address of the target uplink data is the IP address of the target AF entity.
  • the SMF entity can obtain the first round-trip delay, the second round-trip delay and the third round-trip delay, and judge whether the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and if so, Then adjust the network path of the target uplink data to reduce the data transmission time. If not, the network path of the target uplink data is not modified.
  • the data transmission method further includes: the SMF entity sends the first message to the first UPF entity, and after receiving the first measurement delay sent by the first UPF entity, according to the second measurement delay and the first A measured delay determines a third round-trip delay between the first UPF entity and the second UPF entity.
  • the first message includes the IP address of the second UPF entity.
  • the first measurement delay is obtained by the first UPF entity according to the first message. This provides another method for determining the third round-trip delay, which improves the flexibility of implementing the solution.
  • the fourth aspect provides a data transmission method.
  • the SMF entity receives a first message from the target AF entity, and the first message includes the identifier of the first terminal, the identifier of the second terminal, and the identifier of the target AF entity.
  • the first end-to-end delay and the second end-to-end delay after receiving the first measured delay sent by the first UPF entity, determine that the first round-trip delay is equal to the first end-to-end delay minus the first The difference obtained by measuring the delay; receiving the second measured delay sent by the second UPF entity, and determining that the second round-trip delay is equal to the second end-to-end delay minus the difference obtained by the second measured delay; in the SMF entity After sending the second message to the second UPF entity, the SMF entity receives the third measurement delay sent by the second UPF entity, and determines the third round-trip delay between the first UPF entity and the second UPF entity according to the third measurement delay ; When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity sends the first notification to the first UPF entity, and sends the second notification to the second UPF entity.
  • the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity
  • the second end-to-end delay is the round-trip delay between the second terminal and the target AF entity.
  • the first measured delay is a round-trip delay between the first terminal and the first UPF entity.
  • the third measurement delay is acquired by the second UPF entity according to the second message.
  • the first notification is used to instruct the first UPF entity to send the target uplink data from the first terminal to the second UPF entity
  • the destination IP address of the target uplink data is the IP address of the target AF entity
  • the second notification is used to indicate the second UPF
  • the entity receives the target uplink data sent by the first UPF entity and sends the target uplink data to the target AF entity.
  • the second measurement delay is a round-trip delay between the second terminal and the second UPF entity.
  • the SMF entity can separately obtain the round-trip delay between the terminal and the UPF entity, and the round-trip delay between the terminal and the target AF entity, and then determine the distance between the UPF entity and the target AF entity based on the above two round-trip delays.
  • round-trip delay This provides a new method of obtaining the round-trip delay between the UPF entity and the target AF entity.
  • the SMF entity When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity notifies the first UPF entity to forward the target uplink data to the second UPF entity, and the second UPF entity can forward the target uplink data For the target AF entity, the time for the target uplink data to reach the target AF entity through the first UPF entity and the second UPF entity is shorter.
  • the above data transmission method further includes: the SMF entity sends a third message to the first UPF entity; receives the fourth measurement delay sent by the first UPF entity, and then according to the third measurement delay and the first The fourth measurement delay determines a third round-trip delay between the first UPF entity and the second UPF entity.
  • the fourth measurement delay is obtained by the second UPF entity according to the third message. This provides a method of determining the third round trip delay.
  • the third round-trip delay is equal to the third measurement delay.
  • the fifth aspect provides a data transmission method, in which the data transmission method, the first UPF entity acquires the first measured delay between the first terminal and the first UPF entity; then sends the first measured delay to the SMF entity ; After the first UPF entity receives the first notification sent by the SMF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the first UPF entity receives the target uplink from the first terminal For data, the first UPF entity sends the target uplink data to the second UPF entity according to the first notification. The first measured delay is used to determine a first round-trip delay between the first UPF entity and the target AF entity.
  • the second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity
  • the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity.
  • the destination address of the target uplink data is the IP address of the target AF entity.
  • the first UPF entity can send the target uplink data to the second UPF according to the first notification sent by the SMF entity.
  • the UPF entity, and then the second UPF entity forwards it to the target AF entity, which can shorten the data transmission time.
  • the first UPF entity receives the third message sent by the SMF entity, and sends an echo request to the second UPF entity according to the third message; receives the echo response sent by the second UPF entity; Determine the fourth measured time delay between the first UPF entity and the second UPF entity at the time and the time when the echo response is received; and send the fourth measured time delay to the SMF entity.
  • the third message is the IP address of the second UPF entity.
  • the fourth measurement delay is used by the SMF entity to determine the third round-trip delay.
  • the first UPF entity may measure the round-trip delay between the first UPF entity and the second UPF entity.
  • the sixth aspect provides a data transmission method.
  • the second UPF entity acquires the second measured delay between the second terminal and the second UPF entity, and then sends the second measured delay to the SMF entity , the SMF entity determines the second round-trip delay between the second UPF entity and the target AF entity according to the second measurement delay; receives the second message sent by the SMF entity, and obtains the second UPF entity and the first UPF entity according to the second message
  • the third measurement delay between; the third measurement delay is sent to the SMF entity; the SMF entity determines the third round-trip delay between the second UPF entity and the first UPF entity according to the third measurement delay;
  • the second UPF entity receives the second notification sent by the SMF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the second UPF entity receives the second notification sent by the first UPF entity according to the second notification.
  • Target uplink data send the target uplink data to the target AF entity according to the second notification.
  • the second message includes the IP address of the first UPF entity.
  • the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity.
  • the SMF entity can select the second UPF entity as the transmission anchor point of the target uplink data, so that the target uplink data passes through The first UPF entity and the second UPF entity arrive at the target AF entity. In this way, the transmission time of the target uplink data can be shortened, and the transmission efficiency can be improved.
  • the obtaining by the second UPF entity of the second measured delay between the second UPF entity and the first UPF entity according to the second message includes: the second UPF entity reports to the first UPF entity according to the second message Sending an echo request; receiving an echo response sent by the first UPF entity; determining a second measurement delay between the second UPF entity and the first UPF entity according to the time when the echo request is sent and the time when the echo response is received.
  • the second measurement delay is the round-trip delay between the second UPF entity and the first UPF entity. This provides a method of measuring the round-trip delay between the second UPF entity and the first UPF entity.
  • the seventh aspect provides a UPF entity
  • the UPF entity includes an acquisition unit, a sending unit and a receiving unit;
  • the acquisition unit is used to acquire the first round-trip delay between the first UPF entity and the target application function AF entity;
  • the sending unit is used to The first round-trip delay is sent to the session management function SMF entity;
  • the receiving unit is used to receive the first notification sent by the SMF entity, and the first notification is that the first round-trip delay of the SMF is greater than the difference between the second round-trip delay and the third round-trip delay.
  • the second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity
  • the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity
  • the receiving unit is also used to receive target uplink data from the first terminal, the destination address of the target uplink data is the IP address of the target AF entity; the sending unit is also used to send the target uplink data to the second UPF entity according to the first notification.
  • the acquisition unit is specifically configured to receive uplink data sent by the first terminal; send uplink data to the target AF entity; receive a confirmation frame sent by the target AF entity, and the confirmation frame is generated by the target AF entity in response to the uplink data and determining the first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the receiving unit is further configured to receive the first message sent by the SMF entity, where the first message includes the IP address of the second UPF entity; Send an echo request; the receiving unit is also used to receive the echo response sent by the second UPF entity; the UPF entity also includes a determination unit, which is used to determine the first UPF entity and The first measured delay between the second UPF entities; the sending unit is further configured to send the first measured delay to the SMF entity.
  • the eighth aspect provides a UPF entity, the UPF entity includes a first acquisition unit, a sending unit, a second acquisition unit, a receiving unit and a processing unit; the first acquisition unit is used to acquire the connection between the second UPF entity and the target application function AF entity The second round-trip delay; the sending unit is used to send the second round-trip delay to the session management function SMF entity; the second acquisition unit is used to acquire the second UPF entity between the second UPF entity and the first UPF entity according to the second message The measurement delay; the sending unit is also used to send the second measurement delay to the SMF entity; the receiving unit is used to receive the second notification sent by the SMF entity, and the second notification is that the first round-trip delay of the SMF is greater than the second round-trip delay and the sum of the third round-trip delay, the first round-trip delay is the round-trip delay between the first UPF entity and the target AF entity, and the third round-trip delay is determined by the SMF entity based on the second measurement delay The receiving unit is also used to receive
  • the first acquisition unit is specifically configured to receive the uplink data sent by the second terminal; send the uplink data to the target AF entity; receive the confirmation frame sent by the target AF entity, and the confirmation frame is the target AF entity response
  • the uplink data is generated; according to the time when the uplink data is sent and the time when the acknowledgment frame is received, the second round-trip time delay between the second UPF entity and the target AF entity is determined.
  • the second obtaining unit is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; At a moment of , determine a second measurement delay between the second UPF entity and the first UPF entity.
  • the sending unit is specifically configured to perform network address port conversion on the first IP address and the first port number in the target uplink data to obtain the second IP address and the second port number;
  • the converted target uplink data is sent to the target AF entity, and the target uplink data after the network address port conversion includes the second IP address and the second port number;
  • the receiving unit is also used to receive the target downlink data sent by the target AF entity, the target downlink data
  • the destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number;
  • the sending unit is also used for performing network address port translation on the second IP address and the second port number in the target downlink data;
  • the target downlink data after address port translation is sent to the first UPF entity, and the target downlink data after network address port translation includes a first IP address and a first port number.
  • a ninth aspect provides an SMF entity, where the SMF entity includes a receiving unit, a sending unit, and a processing unit; the receiving unit is configured to receive a first round-trip delay sent by a first user plane function UPF entity, and the first round-trip delay is the first The round-trip time delay between the UPF entity and the target application function AF entity; the receiving unit is also used to receive the second round-trip time delay sent by the second UPF entity, and the second round-trip time delay is the time between the second UPF entity and the target AF entity Round-trip delay; the sending unit is used to send a second message to the second UPF entity; the receiving unit is also used to receive the second measurement delay sent by the second UPF entity, and the second measurement delay is the second UPF entity according to the second message Acquired; the processing unit is used to determine the third round-trip delay between the first UPF entity and the second UPF entity according to the second measurement delay; the sending unit is also used for when the first round-trip delay is greater than the second round-trip delay and When the
  • the sending unit is further configured to send a first message to the first UPF entity, where the first message includes the IP address of the second UPF entity; the receiving unit is also configured to receive the first message sent by the first UPF entity.
  • Measurement delay the first measurement delay is obtained by the first UPF entity according to the first message; the processing unit is specifically configured to determine the distance between the first UPF entity and the second UPF entity according to the second measurement delay and the first measurement delay The third round-trip delay of .
  • a tenth aspect provides an SMF entity, where the SMF entity includes a receiving unit, a processing unit, and a sending unit; the receiving unit is configured to receive a first message from a target application function AF entity, and the first message includes an identifier of the first terminal, a second The identification of the terminal, the identification of the target AF entity, the first end-to-end delay and the second end-to-end delay, the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second The end-to-end delay is the round-trip delay between the second terminal and the target AF entity; receiving the first measurement delay sent by the first UPF entity, the first measurement delay is the time delay between the first terminal and the first UPF entity Round-trip delay; the processing unit is used to determine that the first round-trip delay is equal to the difference obtained by subtracting the first end-to-end delay from the first measurement delay; the receiving unit is also used to receive the second measurement sent by the second UPF entity Delay, the second measurement delay
  • the target uplink data of a terminal is sent to the second UPF entity, and the destination IP address of the target uplink data is the IP address of the target AF entity; the sending unit is also used to send a second notification to the second UPF entity, and the second notification is used to indicate that the first The two UPF entities receive the target uplink data sent by the first UPF entity and send the target uplink data to the target AF entity.
  • the sending unit is further configured to send a third message to the first UPF entity; the receiving unit is further configured to receive a fourth measurement delay sent by the first UPF entity, where the fourth measurement delay is the first acquired by the two UPF entities according to the third message; the processing unit is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay and the fourth measured delay.
  • the eleventh aspect provides a UPF entity, the UPF entity includes an acquisition unit, a sending unit, and a receiving unit; the acquisition unit is used to acquire a first measurement delay between the first terminal and the first UPF entity; the sending unit is used to transfer The first measurement delay is sent to the session management function SMF entity, and the first measurement delay is used to determine the first round-trip delay; the receiving unit is used to receive the first notification sent by the SMF entity, and the first notification is that the SMF is at the first round-trip time The second round-trip delay is the round-trip delay between the second UPF entity and the target application function AF entity, and the third round-trip delay is The round-trip delay between the second UPF entity and the first UPF entity; the receiving unit is also used to receive the target uplink data from the first terminal, and the destination address of the target uplink data is the IP address of the target AF entity; the sending unit is also used for Send the target uplink data to the second UPF entity according to the first notification.
  • the receiving unit is further configured to receive a third message sent by the SMF entity, the IP address of the second UPF entity in the third message; the sending unit is also configured to send an echo to the second UPF entity according to the third message Request; the receiving unit is also used to receive the echo response sent by the second UPF entity; the UPF entity also includes a processing unit, which is used to determine the first UPF entity and the second UPF entity according to the time of sending the echo request and the time of receiving the echo response.
  • the fourth measurement delay between UPF entities; the sending unit is further configured to send the fourth measurement delay to the SMF entity.
  • a twelfth aspect provides a UPF entity.
  • the UPF entity includes a first acquisition unit, a sending unit, a receiving unit, a second acquisition unit, and a processing unit; the first acquisition unit is used to acquire the information between the second terminal and the second UPF entity.
  • the receiving unit is used to receive the second message sent by the SMF entity, and the second message includes the IP address of the first UPF entity; the second obtaining unit is used to obtain the third link between the second UPF entity and the first UPF entity according to the second message.
  • the sending unit is also used to send the third measurement delay to the SMF entity, and the third measurement delay is used to determine the third round-trip delay between the second UPF entity and the first UPF entity;
  • the receiving unit also uses To receive the second notification sent by the SMF entity, the second notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the first round-trip delay is the first UPF
  • the round-trip delay between the entity and the target application function AF entity the receiving unit is also used to receive the target uplink data sent by the first UPF entity according to the second notification; the sending unit is also used to send the target uplink data to the target according to the second notification AF entity.
  • the first obtaining unit is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; time, determine a second measurement delay between the second UPF entity and the first UPF entity.
  • a thirteenth aspect provides a UPF entity, which includes a processor and a memory, and the memory is used to store a program; the processor is used to implement the data transmission of the first aspect, the second aspect, the fifth aspect or the sixth aspect by executing the program method.
  • a fourteenth aspect provides an SMF entity, which includes a processor and a memory, the memory is used to store a program; the processor implements the data transmission method in the third aspect or the fourth aspect by executing the program.
  • a fifteenth aspect provides a communication system, and the communication system includes the UPF entity of the first aspect, the UPF entity of the second aspect, and the SMF entity of the third aspect.
  • a sixteenth aspect provides another communication system.
  • the communication system includes the SMF entity of the fourth aspect, the UPF entity of the fifth aspect, and the UPF entity of the sixth aspect.
  • a seventeenth aspect provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is run on a computer, it causes the computer to execute the methods of the above-mentioned aspects.
  • the eighteenth aspect provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the methods of the above aspects.
  • a nineteenth aspect provides a chip system, the chip system includes at least one processor, the processor is coupled to a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions, so as to implement the methods in the above aspects .
  • FIG. 1 is a schematic diagram of an existing network architecture
  • FIG. 2 is a schematic diagram of an application scenario in an embodiment of the present application
  • Fig. 3 is a schematic diagram of the data transmission method in the embodiment of the present application.
  • FIG. 4 is a schematic diagram of measuring the round-trip delay between the user plane functional entity and the target application functional entity in the embodiment of the present application;
  • FIG. 5 is another schematic diagram of measuring the round-trip delay between the user plane functional entity and the target application functional entity in the embodiment of the present application
  • FIG. 6 is a schematic diagram of measuring the round-trip delay between two user plane functional entities in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a data transmission method in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a user plane functional entity in an embodiment of the present application.
  • FIG. 9 is another schematic diagram of a user plane functional entity in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a session management functional entity in an embodiment of the present application.
  • FIG. 11 is another schematic diagram of the session management functional entity in the embodiment of the present application.
  • FIG. 12 is another schematic diagram of a user plane functional entity in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a user plane functional entity in an embodiment of the present application.
  • FIG. 14 is another schematic diagram of a user plane functional entity in an embodiment of the present application.
  • Fig. 15 is another schematic diagram of the session management functional entity in the embodiment of the present application.
  • the data transmission method of the present application can be applied to an end-to-end data transmission scenario.
  • the data transmission scenario between the terminal and the application function entity in the 5G network may also be a network after 5G.
  • the wireless communication network includes a first terminal 201, a second terminal 202, a first base station 211, a second base station 212, and a first user plane function (UPF entity). ) 221, a second user plane function entity 222, an application function (application function, AF) entity 23, a session management function entity 24, a measurement control function (policy control function, PCF) entity 25 and a network capability exposure function (network exposure function, NEF) Entity 26.
  • UPF entity user plane function
  • the first terminal 201 and the second terminal 202 may be, but not limited to, a mobile phone, a tablet computer, a vehicle computer, a smart wearable device, an Internet of Things device, and the like.
  • the terminal is also called user equipment (user equipment, UE), mobile device, wireless communication device, and the like.
  • the first user plane functional entity 221, the second user plane functional entity 222, the session management functional entity 24, the measurement control functional entity 25, and the network capability opening functional entity 26 are all network elements of the 5G core network.
  • the first user plane functional entity 221 and the second user plane functional entity 222 are responsible for routing and forwarding, policy enforcement, traffic reporting, and quality of service (quality of service, QoS) processing.
  • the session management function entity 24 is used to select a user plane function entity as a user plane anchor point for the terminal.
  • the measurement control functional entity 25 is used to provide policy rules to the control plane functional entity (such as the session management functional entity 24).
  • the network capability opening function entity 26 is used to open the 5G network function to the Internet server through an application programming interface (application programming interface, API) interface.
  • the application functional entity 23 is an OTT server for providing Internet services.
  • OTT is the abbreviation of over the top, which specifically refers to the technology that Internet companies use the broadband network of operators to develop their own business.
  • OTT services include but are not limited to financial transactions, e-commerce orders, online ticketing, etc.
  • the service data arrives at the application function entity 23 through the first base station 211 and the first user plane function entity 221 in sequence.
  • the application function entity 23 sends service data to the first terminal 201
  • the service data arrives at the first terminal 201 through the first user plane function entity 221 and the first base station 211 in sequence.
  • the data transmitted between the second terminal 202 and the application function entity 23 will go through the second base station 212 and the second user plane function entity 222 .
  • various functional entities can communicate through interfaces.
  • the session management function entity 24 communicates with the first user plane function entity 221 and the second user plane function entity 222 through the N4 interface.
  • the application function entity 23 communicates with the first user plane function entity 221 and the second user plane function entity 222 through the N6 interface.
  • the session management functional entity 24 communicates with the measurement control functional entity 25 through the N7 interface.
  • the network capability opening function entity 26 communicates with the measurement control function entity 25 through the N30 interface.
  • the network capability opening function entity 26 communicates with the application function entity 23 through the N33 interface.
  • OTT services transactional processing servers such as financial transactions, e-commerce orders, and online ticketing generally cannot be deployed in a decentralized manner.
  • the deployment sites of UPF entities in 5GC are relatively scattered and geographically distributed. Since different user plane functional entities have different routing hops and egress bandwidths to the same server, there are differences in the time delays for different terminals to access the same server. For example, the time delay for the first terminal 201 to access a certain server is greater than the time delay for the second terminal 202 to access the server.
  • an embodiment of a data transmission method provided by the present application includes:
  • Step 301 the first user plane functional entity acquires the first round-trip delay.
  • the first round trip time delay is a round trip time delay (round trip time, RTT) between the first UPF entity and the target AF entity.
  • the round-trip delay is also called the round-trip delay.
  • the target AF entity is a device that provides business services, specifically, but not limited to, a financial transaction server, an e-commerce order server, an online ticketing server, and the like.
  • Step 302 the first user plane functional entity sends the first round-trip delay to the session management functional entity.
  • Step 303 the second user plane functional entity acquires a second round-trip delay.
  • the second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity.
  • Step 304 the second user plane functional entity sends the second round-trip delay to the session management functional entity.
  • Step 305 the session management functional entity sends a second message to the second user plane functional entity.
  • the session management functional entity when the first round-trip delay is greater than the sum of the second round-trip delay and the preset threshold, the session management functional entity sends the second message to the second user plane functional entity.
  • the preset threshold is greater than 0, which can be set according to the delay between UPFs or the actual situation.
  • the first round-trip delay is greater than the sum of the second round-trip delay and the preset threshold, it indicates that the round-trip delay between the first UPF entity and the target AF entity may be optimized.
  • Step 306 the second user plane functional entity obtains the second measurement delay according to the second message.
  • the second measurement delay is the round-trip delay between the second user plane functional entity and the first user plane functional entity.
  • Step 307 the second user plane functional entity sends the second measured delay to the session management functional entity.
  • Step 308 the session management function entity determines a third round-trip delay according to the second measured delay.
  • the third round-trip delay is the round-trip delay between the first UPF entity and the second UPF entity.
  • the third round-trip delay is equal to the second measurement delay.
  • Step 309 the session management function entity judges whether the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, if yes, execute steps 310 and 311, if not, do not execute subsequent steps.
  • Step 310 the session management functional entity sends a first notification to the first user plane functional entity.
  • the first notification may include the session identifier of the first terminal, and may also include the user identifier of the first terminal.
  • the first notification includes one or more messages.
  • Step 311 the session management functional entity sends a second notification to the second user plane functional entity.
  • the second notification includes the session identifier of the first terminal, and may also include the user identifier of the first terminal.
  • User identification includes but not limited to international mobile subscriber identity (IMSI), mobile subscriber international integrated service digital network number (mobile subscriber international integrated service digital network number, MSISDN), international mobile equipment identity (international mobile equipment one or more of identity, IMEI).
  • IMSI international mobile subscriber identity
  • MSISDN mobile subscriber international integrated service digital network number
  • IMEI international mobile equipment identity
  • the second user plane functional entity can establish the context of the first terminal according to the second notification, so that the second UPF entity can serve as another PSA between the first terminal and the target AF entity.
  • Step 310 and step 311 have no fixed sequence. Step 311 can be performed before step 310, or the two steps can be performed in parallel.
  • Step 312 the first user plane functional entity receives the target uplink data sent by the first terminal.
  • the target uplink data may be a transmission control protocol (transmission control protocol, TCP) message.
  • TCP transmission control protocol
  • the first user plane functional entity sends the target uplink data to the second user plane functional entity according to the first notification.
  • the target uplink data refers to uplink data whose source Internet protocol (internet protocol, IP) address is the first IP address of the first terminal, and whose destination IP address is the IP address of the target AF entity.
  • IP Internet protocol
  • the first IP address is a source IP address belonging to a private network, which is also called a private network.
  • the first UPF entity may add a traffic classification function according to the first notification. After the first UPF entity receives the uplink data, it can obtain the target uplink data through the traffic classification function, and then send the target uplink data to the second UPF entity. The first UPF entity may forward other uplink data except the target uplink data, that is, the first UPF entity serves as the PSA of the other uplink data.
  • Step 314 the second user plane functional entity sends the target uplink data to the target application functional entity according to the second notification.
  • the second UPF entity may directly send the target uplink data to the target AF entity, or may convert the source IP address and source port number of the target uplink data to the network address and port number, and then convert the converted target uplink data Sent to the target AF entity.
  • the second UPF entity may also receive the target downlink data sent by the target application function entity according to the second notification, and then send the target downlink data to the first UPF entity, where the target downlink data is data sent by the target AF entity to the first terminal.
  • the SMF entity may obtain the first round-trip delay, the second round-trip delay, and the third round-trip delay.
  • the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, it indicates that the data reaches the target AF entity through the first UPF entity and the second UPF entity than the data reaches the target AF entity through the first UPF entity.
  • Fast so that the first UPF entity forwards the target uplink data to the second UPF entity, and the second UPF entity sends the target uplink data to the target AF entity, which can shorten the data transmission time to meet the end-to-end delay requirement.
  • the first UPF entity is PSA1
  • the second UPF entity is PSA2.
  • the path delay passing through one or more UPF entities can be determined.
  • the path with the shortest path delay can be selected for data transmission, or other paths can be selected for data transmission according to actual conditions.
  • the one-way transmission delay between device A and device B is equal to half of the round-trip delay between device A and device B.
  • Device A or device B may be, but not limited to, a terminal, a base station, a UPF entity, and an AF entity in this application.
  • step 301 includes:
  • Step 401 the first user plane functional entity receives uplink data sent by the first terminal.
  • the uplink data may be a TCP packet.
  • Step 402 the first user plane functional entity sends uplink data to the target application functional entity.
  • Step 403 the first user plane functional entity receives the confirmation frame sent by the target application functional entity.
  • the confirmation frame is generated by the target AF entity in response to uplink data.
  • Step 404 the first user plane functional entity determines the first round-trip delay according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the first user plane functional entity can obtain the time of sending uplink data when sending uplink data, and can obtain the time of receiving the confirmation frame when receiving the confirmation frame, so that the first user plane functional entity and the target application function can be determined
  • the round-trip delay between entities It should be understood that step 401 is optional. In another optional embodiment, directly executing steps 402 to 404 may also obtain the round-trip delay between the first user plane functional entity and the target application functional entity.
  • step 303 includes:
  • Step 501 the second user plane functional entity receives uplink data sent by the second terminal.
  • the uplink data may be a TCP packet.
  • Step 502 the second user plane functional entity sends uplink data to the target application functional entity.
  • Step 503 the second user plane functional entity receives the confirmation frame sent by the target application functional entity.
  • the confirmation frame is generated by the target AF entity in response to uplink data.
  • Step 504 the second user plane functional entity determines the second round-trip delay according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the second user plane functional entity can obtain the time of sending the uplink data when sending the uplink data, and can obtain the time of receiving the confirmation frame when receiving the confirmation frame, so that the second user plane functional entity and the target application function can be determined
  • the round-trip delay between entities It should be understood that step 501 is optional. In another optional embodiment, directly executing steps 502 to 504 may also obtain the round-trip delay between the second user plane functional entity and the target application functional entity.
  • step 306 includes:
  • Step 601 the second user plane functional entity sends an echo request to the first user plane functional entity according to the second message.
  • Step 602 the second user plane functional entity receives the echo response sent by the first UPF entity.
  • Step 603 the second user plane functional entity determines a second measurement delay between the second user plane functional entity and the first user plane functional entity according to the time when the echo request is sent and the time when the echo response is received.
  • the echo request and the echo response may be, but not limited to, signaling in a GPRS tunneling protocol (GPRS tunneling protocol, GTP) path maintenance message.
  • GTP can be, but is not limited to, GTP-U.
  • the second measurement delay is the round-trip delay between the second UPF entity and the first UPF entity.
  • the second measurement delay is equal to the third round-trip delay. This provides a way to measure the round-trip delay between UPF entities.
  • the present application may determine the round-trip delay between the second UPF entity and the first UPF entity in various ways.
  • the situation that the second measurement delay is used as the third round-trip delay is introduced above, and another method for obtaining the third round-trip delay is introduced below.
  • the above data transmission method further includes: the SMF entity sends a first message to the first UPF entity, and the first message includes the IP address of the second UPF entity; the first UPF entity obtains the second UPF entity according to the first message. After a measurement delay, the SMF entity receives the first measurement delay sent by the first UPF entity; determines the third round-trip time between the first UPF entity and the second UPF entity according to the second measurement delay and the first measurement delay delay.
  • the third round-trip delay may be an arithmetic mean of the first measured delay and the second measured delay.
  • the acquiring the first measurement delay by the first UPF entity according to the first message includes: the first UPF entity sends an echo request to the second UPF entity according to the first message, and receives an echo response sent by the second UPF entity; The moment of the request and the moment of receiving the echo response determine a first measured delay between the first UPF entity and the second UPF entity.
  • the SMF entity may also use the first measurement delay as the third round-trip delay.
  • the second UPF entity after the second UPF entity receives the target uplink data, it performs network address port conversion on the first IP address and the first port number in the target uplink data; the target uplink data after the network address port conversion Sent to the target AF entity, the target uplink data after network address port conversion includes the second IP address and the second port number; after the second UPF entity receives the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second The IP address, the destination port number of the target downlink data is the second port number; the destination IP address and the destination port number in the target downlink data are subjected to network address port conversion; the target downlink data after the network address port conversion is sent to the first UPF In the entity, the target downlink data after network address port translation includes a first IP address and a first port number.
  • the first IP address and the second IP address in the target uplink data are source IP addresses, and the first port number and the second port number are source port numbers.
  • the first IP address and the second IP address in the target downlink data are destination IP addresses, and the first port number and the second port number are destination port numbers.
  • the second UPF entity performs network address translation on the source IP address (ie, the first IP address) and the source port number (ie, the first port number) of the target uplink data, so that the private network address of the first terminal is converted into a public network address (including second IP address and second port number).
  • the target downlink data from the target AF entity can reach the first terminal through the second UPF entity and the first UPF entity.
  • the second UPF entity is PSA2, and the first UPF entity is PSA1.
  • Network address translation can prevent target downlink data from reaching the first terminal from the first UPF entity without passing through the second UPF entity, thereby preventing downlink routing conflicts and shortening downlink transmission time.
  • Another method for measuring the round-trip delay between the UPF entity and the application function entity is introduced below.
  • another embodiment of the data transmission method provided by the present application includes:
  • Step 701 the session management function entity receives the first message from the target application function entity.
  • the first message includes the identifier of the first terminal, the identifier of the second terminal, the identifier of the target application function entity, the first end-to-end delay, and the second end-to-end delay.
  • An identifier can be, but is not limited to, an IP quintuple.
  • IP quintuple includes source IP address, source port number, destination IP address, destination port number and transport layer protocol.
  • the first message may include more than three terminal identifiers and more than three end-to-end delays.
  • the target AF entity may measure the first end-to-end delay and the second end-to-end delay.
  • the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity
  • the second end-to-end delay is the round-trip delay between the second terminal and the target AF entity.
  • the target AF entity measures the round-trip delay between the first terminal and the target AF entity multiple times, and uses the average value of the multiple measurement results as the first end-to-end delay.
  • the target AF entity measures the round-trip delay between the second terminal and the target AF entity multiple times, and uses the average value of the multiple measurement results as the second end-to-end delay.
  • the first message may still pass through other network elements.
  • the target AF entity sends the first message to the NEF entity
  • the NEF entity sends the first message to the PCF entity
  • the PCF entity sends the first message to the SMF entity.
  • Step 702 the first user plane functional entity acquires the first measurement delay.
  • the first measured delay is a round-trip delay between the first terminal and the first UPF entity.
  • the method of obtaining the first measurement delay refer to the method for measuring the delay between the terminal and the UPF entity in the background art.
  • the time delay between the first terminal and the first UPF entity is measured multiple times, and the first measured time delay is determined as an average value of the multiple measurement results.
  • Step 703 the first user plane functional entity sends the first measured delay to the session management functional entity.
  • Step 704 the session management function entity determines that the first round-trip delay is equal to the difference obtained by subtracting the first measured delay from the first end-to-end delay.
  • Step 705 the second user plane functional entity acquires the second measurement delay.
  • the second measurement delay is a round-trip delay between the second terminal and the second UPF entity.
  • the time delay between the second terminal and the second UPF entity is measured multiple times, and the second measured time delay is determined as an average value of the multiple measurement results.
  • Step 706 the second user plane functional entity sends the second measured delay to the session management functional entity.
  • Step 707 the session management function entity determines that the second round-trip delay is equal to the difference obtained by subtracting the second measured delay from the second end-to-end delay.
  • Step 708 the session management functional entity sends a second message to the second user plane functional entity.
  • Step 709 the second user plane functional entity acquires the third measurement delay according to the second message.
  • the third measurement delay is the round-trip delay between the second UPF entity and the first UPF entity.
  • Step 710 the second user plane functional entity sends the third measured delay to the session management functional entity.
  • Step 711 the session management function entity determines a third round-trip delay according to the third measured delay.
  • the third measurement delay is equal to the third round-trip delay.
  • Step 712 the session management function entity judges whether the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, if yes, execute steps 713 and 714, if not, do not execute subsequent steps.
  • Step 713 the session management functional entity sends a first notification to the first user plane functional entity.
  • the first notification may include the session identifier of the first terminal, and may also include the user identifier of the first terminal.
  • Step 714 the session management functional entity sends a second notification to the second user plane functional entity.
  • the second notification includes the session identifier of the first terminal, and may also include the user identifier of the first terminal.
  • the user identifier includes but not limited to one or more of IMSI, MSISDN, and IMEI.
  • the second UPF entity can establish the context of the first terminal according to the second notification, so that the second UPF entity can serve as another PSA between the first terminal and the target AF entity.
  • Step 713 and step 714 have no fixed sequence. Step 713 can be performed before step 714, or the two steps can be performed in parallel.
  • Step 715 the first user plane functional entity receives the target uplink data sent by the first terminal.
  • the target uplink data may be a user datagram protocol (user datagram protocol, UDP) message.
  • UDP user datagram protocol
  • Step 716 the first user plane functional entity sends the target uplink data to the second user plane functional entity according to the first notification.
  • Step 717 the second user plane functional entity sends the target uplink data to the target application functional entity according to the second notification.
  • the SMF entity may determine the round-trip delay between the UPF entity and the target AF entity according to the round-trip delay between the terminal and the target AF entity and the round-trip delay between the terminal and the UPF entity. This provides another way to measure the round-trip delay between the UPF entity and the target AF entity.
  • the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, it indicates that the data reaches the target AF entity through the first UPF entity and the second UPF entity than the data reaches the target AF entity through the first UPF entity.
  • the first UPF entity forwards the target uplink data to the second UPF entity, and the second UPF entity sends the target uplink data to the target AF entity, which can shorten the data transmission time to meet the end-to-end delay requirement.
  • the first UPF entity is PSA1
  • the second UPF entity is PSA2.
  • the target AF entity can measure the end-to-end delay between more than three terminals and the target AF entity, and send the measured end-to-end delays to the SMF entity.
  • the SMF entity can also receive the time delay between the UE and the UPF entity sent by multiple UPF entities, so that the time delay between the multiple UPF entities and the target AF entity can be obtained.
  • the path time delay passing through one or more UPF entities can be determined.
  • the path with the shortest path delay can be selected for data transmission, or other paths can be selected for data transmission according to actual conditions.
  • the above data transmission method further includes: the first UPF entity receives the third message sent by the SMF entity, the IP address of the second UPF entity in the third message; and sends an echo to the second UPF entity according to the third message request; receive the echo response sent by the second UPF entity; determine the fourth measurement delay between the first UPF entity and the second UPF entity according to the moment of sending the echo request and the moment of receiving the echo response; delay the fourth measurement Send to the SMF entity; determine the third round-trip delay according to the fourth measurement delay and the third measurement delay.
  • the third round-trip delay is an arithmetic mean value of the fourth measurement delay and the third measurement delay.
  • the third round-trip delay is equal to the fourth measurement delay.
  • step 709 includes: the second UPF entity sends an echo request to the first UPF entity according to the second message; receives the echo response sent by the first UPF entity; At a moment of , determine a third measurement delay between the second UPF entity and the first UPF entity.
  • the third measurement delay is a round-trip delay between the second UPF entity and the first UPF entity.
  • the third measurement delay is equal to the third round-trip delay.
  • the second UPF entity after the second UPF entity receives the target uplink data, it performs network address port conversion on the first IP address and the first port number in the target uplink data; the target uplink data after the network address port conversion Sent to the target AF entity, the target uplink data after network address port conversion includes the second IP address and the second port number; after the second UPF entity receives the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second The IP address, the destination port number of the target downlink data is the second port number; the destination IP address and the destination port number in the target downlink data are subjected to network address port conversion; the target downlink data after the network address port conversion is sent to the first UPF In the entity, the target downlink data after network address port translation includes a first IP address and a first port number.
  • the first IP address and the second IP address in the target uplink data are source IP addresses, and the first port number and the second port number are source port numbers. Both the first IP address and the second IP address in the target downlink data are destination IP addresses, and both the first port number and the second port number are destination port numbers.
  • the second UPF entity performs network address translation on the source IP address and source port number of the target uplink data, so that the private network address of the first terminal is converted into a public network address. After the network address translation, the target downlink data from the target AF entity can reach the first terminal through the second UPF entity and the first UPF entity.
  • the second UPF entity is PSA2, and the first UPF entity is PSA1.
  • Network address translation can prevent target downlink data from reaching the first terminal from the first UPF entity without passing through the second UPF entity, thereby preventing downlink routing conflicts and shortening downlink transmission time.
  • the uplink in this application refers to the data sent from the terminal to the AF entity, and the uplink data refers to the data sent from the terminal to the AF.
  • the downlink refers to the data sent by the AF entity to the terminal, and the downlink data refers to the data sent by the AF entity to the terminal.
  • the descriptions of the first message, the second message and the third message in this application are to distinguish different messages, and do not represent a limitation on the message sending order or message names.
  • the description of the first notification and the second notification in this application is to distinguish different notification messages, and does not represent a limitation on the order of sending notification messages or message names.
  • the descriptions of the first measurement delay, the second measurement delay, the third measurement delay and the fourth measurement delay in this application are to distinguish different delays, and do not indicate the order of sending delays or the names of delays limit.
  • the data transmission method of the present application has been introduced above, and the device for realizing the above data transmission method of the present application will be introduced below.
  • the user plane functional entity 800 shown in FIG. 8 can implement the steps performed by the first user plane functional entity in the embodiments shown in FIGS. 3 to 6 .
  • an embodiment of the user plane functional entity 800 in this application includes:
  • An acquiring unit 801 configured to acquire a first round-trip delay between a first UPF entity and a target AF entity
  • a sending unit 802 configured to send the first round-trip delay to the SMF entity
  • the receiving unit 803 is configured to receive the first notification sent by the SMF entity, the first notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the second round-trip time Delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity;
  • the receiving unit 803 is further configured to receive target uplink data from the first terminal, where the destination address of the target uplink data is the IP address of the target AF entity;
  • the sending unit 802 is further configured to send the target uplink data to the second UPF entity according to the first notification.
  • the acquiring unit 801 is specifically configured to receive the uplink data sent by the first terminal; send the uplink data to the target AF entity; receive the confirmation frame sent by the target AF entity, and the confirmation frame is generated by the target AF entity in response to the uplink data and determining the first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  • the receiving unit 803 is further configured to receive a first message sent by the SMF entity, where the first message includes the IP address of the second UPF entity;
  • the sending unit 802 is further configured to send an echo request to the second UPF entity according to the first message
  • the receiving unit 803 is further configured to receive the echo response sent by the second UPF entity
  • the user plane functional entity 800 also includes:
  • a determining unit configured to determine a first measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
  • the sending unit 802 is further configured to send the first measured delay to the SMF entity.
  • the user plane functional entity 900 shown in FIG. 9 can implement the steps performed by the second user plane functional entity in the embodiments shown in FIGS. 3 to 6 .
  • another embodiment of the user plane functional entity 900 in this application includes:
  • the first obtaining unit 901 is configured to obtain a second round-trip delay between the second UPF entity and the target application function AF entity;
  • a sending unit 902 configured to send the second round-trip delay to the session management function SMF entity
  • the second acquiring unit 903 is configured to acquire a second measurement delay between the second UPF entity and the first UPF entity according to the second message;
  • the sending unit 902 is further configured to send the second measurement delay to the SMF entity
  • the receiving unit 904 is configured to receive the second notification sent by the SMF entity, the second notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the first round-trip time
  • the delay is the round-trip delay between the first UPF entity and the target AF entity, and the third round-trip delay is determined by the SMF entity according to the second measurement delay;
  • the receiving unit 904 is further configured to receive the target uplink data sent by the first UPF entity according to the second notification, the destination address of the target uplink data is the IP address of the target AF entity, and the source IP address of the target uplink data is the first IP address of the first terminal. IP address;
  • the sending unit 902 is further configured to send the target uplink data to the target AF entity according to the second notification.
  • the first acquisition unit 901 is specifically configured to receive the uplink data sent by the second terminal; send the uplink data to the target AF entity; receive the confirmation frame sent by the target AF entity, and the confirmation frame is generated by the target AF entity in response to the uplink data; The time of the data and the time of receiving the confirmation frame determine the second round-trip delay between the second UPF entity and the target AF entity.
  • the second acquisition unit 903 is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; determine the second UPF entity and A second measurement delay between the first UPF entities.
  • the sending unit 902 is specifically configured to perform network address port conversion on the first IP address and the first port number in the target uplink data to obtain the second IP address and the second port number;
  • the converted target uplink data is sent to the target AF entity, and the target uplink data after network address port conversion includes a second IP address and a second port number;
  • the receiving unit 904 is also configured to receive the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number;
  • the sending unit 902 is also configured to perform network address port conversion on the second IP address and the second port number in the target downlink data; send the target downlink data after the network address port conversion to the first UPF entity, after the network address port conversion
  • the target downlink data includes a first IP address and a first port number.
  • the session management function entity 1000 shown in FIG. 10 can implement the steps performed by the session management function entity in the embodiments shown in FIGS. 3 to 6 .
  • an embodiment of a session management function entity 1000 in this application includes: a receiving unit 1001, a processing unit 1002 and a sending unit 1003;
  • the receiving unit 1001 is configured to receive the first round-trip delay sent by the first user plane function UPF entity, where the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity;
  • the receiving unit 1001 is further configured to receive a second round-trip delay sent by the second UPF entity, where the second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity;
  • a sending unit 1003, configured to send a second message to a second UPF entity
  • the receiving unit 1001 is also used to receive the second measurement delay sent by the second UPF entity, and the second measurement delay is obtained by the second UPF entity according to the second message;
  • the processing unit 1002 is configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay;
  • the sending unit 1003 is further configured to send a first notification to the first UPF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the first notification is used to indicate that the first UPF entity will
  • the target uplink data from the first terminal is sent to the second UPF entity, and the destination IP address of the target uplink data is the IP address of the target AF entity;
  • the sending unit 1003 is further configured to send a second notification to the second UPF entity, where the second notification is used to instruct the second UPF entity to receive the target uplink data sent by the first UPF entity and to send the target uplink data to the target AF entity.
  • the sending unit 1003 is further configured to send a first message to the first UPF entity, where the first message includes the IP address of the second UPF entity;
  • the receiving unit 1001 is further configured to receive a first measurement delay sent by the first UPF entity, where the first measurement delay is obtained by the first UPF entity according to the first message;
  • the processing unit 1002 is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay and the first measured delay.
  • the session management function entity 1100 shown in FIG. 11 can implement the steps performed by the session management function entity in the embodiment shown in FIG. 7 .
  • an embodiment of the session management function entity 1100 includes:
  • the receiving unit 1101 is configured to receive a first message from a target application function AF entity, where the first message includes the identifier of the first terminal, the identifier of the second terminal, the identifier of the target AF entity, the first end-to-end delay, and the second End-to-end delay, the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second end-to-end delay is the round-trip delay between the second terminal and the target AF entity;
  • the receiving unit 1101 is further configured to receive a first measurement delay sent by the first UPF entity, where the first measurement delay is a round-trip delay between the first terminal and the first UPF entity;
  • a processing unit 1102 configured to determine that the first round-trip delay is equal to the difference obtained by subtracting the first end-to-end delay from the first measured delay;
  • the receiving unit 1101 is further configured to receive a second measurement delay sent by the second UPF entity, where the second measurement delay is a round-trip delay between the second terminal and the second UPF entity;
  • the processing unit 1102 is further configured to determine that the second round-trip delay is equal to the difference obtained by subtracting the second end-to-end delay from the second measurement delay;
  • a sending unit 1103, configured to send a second message to a second UPF entity
  • the processing unit 1102 is further configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay;
  • the sending unit 1103 is further configured to send a first notification to the first UPF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the first notification is used to indicate that the first UPF entity will
  • the target uplink data from the first terminal is sent to the second UPF entity, and the destination IP address of the target uplink data is the IP address of the target AF entity;
  • the sending unit 1103 is further configured to send a second notification to the second UPF entity, where the second notification is used to instruct the second UPF entity to receive the target uplink data sent by the first UPF entity and to send the target uplink data to the target AF entity.
  • the sending unit 1103 is further configured to send a third message to the first UPF entity
  • the receiving unit 1101 is further configured to receive a fourth measurement delay sent by the first UPF entity, where the fourth measurement delay is obtained by the second UPF entity according to the third message;
  • the processing unit 1102 is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay and the fourth measured delay.
  • the user plane functional entity 1200 shown in FIG. 12 can implement the function of the first user plane functional entity in the embodiment shown in FIG. 7 .
  • another embodiment of the user plane functional entity 1200 in this application includes:
  • An acquiring unit 1201, configured to acquire a first measurement delay between the first terminal and the first UPF entity
  • a sending unit 1202 configured to send the first measured delay to the session management function SMF entity, where the first measured delay is used to determine the first round-trip delay;
  • the receiving unit 1203 is configured to receive the first notification sent by the SMF entity.
  • the first notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay.
  • the second round-trip time Latency is the round-trip delay between the second UPF entity and the target application function AF entity
  • the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity;
  • the receiving unit 1203 is further configured to receive target uplink data from the first terminal, where the destination address of the target uplink data is the IP address of the target AF entity;
  • the sending unit 1202 is further configured to send the target uplink data to the second UPF entity according to the first notification.
  • the receiving unit 1203 is further configured to receive a third message sent by the SMF entity, the IP address of the second UPF entity in the third message;
  • the sending unit 1202 is further configured to send an echo request to the second UPF entity according to the third message;
  • the receiving unit 1203 is further configured to receive the echo response sent by the second UPF entity
  • the user plane functional entity 1200 also includes:
  • a processing unit configured to determine a fourth measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
  • the sending unit 1202 is further configured to send the fourth measurement delay to the SMF entity.
  • the user plane functional entity 1300 shown in FIG. 13 can implement the function of the second user plane functional entity in the embodiment shown in FIG. 7 .
  • an embodiment of the user plane functional entity 1300 in this application includes:
  • the first obtaining unit 1301 is configured to obtain a second measurement delay between the second terminal and the second UPF entity
  • a sending unit 1302 configured to send a second measured delay to the SMF entity, where the second measured delay is used to determine a second round-trip delay between the second UPF entity and the target AF entity;
  • the receiving unit 1303 is configured to receive a second message sent by the SMF entity, where the second message includes the IP address of the first UPF entity;
  • the second acquiring unit 1304 is configured to acquire a third measurement delay between the second UPF entity and the first UPF entity according to the second message;
  • the sending unit 1302 is further configured to send a third measurement delay to the SMF entity, where the third measurement delay is used to determine a third round-trip delay between the second UPF entity and the first UPF entity;
  • the receiving unit 1303 is also configured to receive the second notification sent by the SMF entity, the second notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the first round-trip Delay is the round-trip delay between the first UPF entity and the target application function AF entity;
  • the receiving unit 1303 is further configured to receive the target uplink data sent by the first UPF entity according to the second notification;
  • the sending unit 1302 is further configured to send the target uplink data to the target AF entity according to the second notification.
  • the second acquisition unit 1304 is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; determine the second UPF entity according to the time when the echo request is sent and the time when the echo response is received A third measurement delay with the first UPF entity.
  • the following describes the user plane functional entity and the session management functional entity of this application from the perspective of hardware devices. Referring to FIG. and network interface 1403 .
  • the memory 1402 is used to store information such as programs, instructions, or data.
  • the processor 1401 is configured to execute the steps performed by the first UPF entity or the second UPF entity in the embodiments shown in FIG. 3 to FIG. 7 .
  • processor 1401 mentioned in this embodiment may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processors, DSP), application specific integrated circuits ( application specific integrated circuit (ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the memory 1402 mentioned in the embodiment of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories.
  • the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (RAM), which acts as external cache memory.
  • RAM random access memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • double data rate SDRAM double data rate SDRAM
  • DDR SDRAM enhanced synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • serial link DRAM SLDRAM
  • direct memory bus random access memory direct rambus RAM, DR RAM
  • Network interface 1403 may be used to receive information or send information.
  • Information can be, but is not limited to, messages, data or instructions.
  • FIG. 15 another embodiment of a session management function entity 1500 in this application includes: a processor 1501 , a memory 1502 and a network interface 1503 connected through a bus 1504 .
  • the memory 1502 is used to store information such as programs, instructions, or data.
  • the processor 1501 is configured to execute the steps executed by the SMF entity in the embodiments shown in FIG. 3 to FIG. 7 .
  • the network interface 1503 can be used to receive information or send information.
  • Information can be, but is not limited to, messages, data or instructions.
  • processor 1501 in this embodiment of the present application may be a CPU, or other general-purpose processors, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the memory 1502 mentioned in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories.
  • the non-volatile memory may be ROM, PROM, EPROM, EEPROM or flash memory.
  • Volatile memory can be RAM, which acts as external cache memory.
  • the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, the memory (storage module) is integrated in the processor.
  • the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
  • the present application provides a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program When the computer program is run on a computer, it causes the computer to execute the data transmission method in the foregoing embodiment or optional embodiment.
  • the present application also provides a computer program product, which, when run on a computer, causes the computer to execute the data transmission method in the above-mentioned embodiments or optional embodiments.
  • the present application also provides a chip system, which includes a processor and a memory coupled to each other.
  • the memory is used to store computer programs or instructions, and the processing unit is used to execute the computer programs or instructions stored in the memory, so that the UPF entity performs the steps performed by the first UPF entity or the second UPF entity in the above embodiments.
  • the memory is an on-chip memory, such as a register, a cache, etc.
  • the memory can also be a memory located outside the chip in a site, such as a read-only memory (read-only memory, ROM) or a memory that can store static information and instructions. Other types of static storage devices, random access memory (random access memory, RAM), etc.
  • the processor mentioned in any of the above can be a general-purpose central processing unit, a microprocessor, an application specific integrated circuit (ASIC) or one or more integrated circuits used to implement the above method for reducing contention conflicts .
  • ASIC application specific integrated circuit
  • the present application also provides another chip system, which includes a processor and a memory coupled to each other.
  • the memory is used to store computer programs or instructions
  • the processing unit is used to execute the computer programs or instructions stored in the memory, so that the SMF entity performs the steps performed by the SMF entity in the above embodiments.
  • the device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units. That is, it can be located in one place, or it can also be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the connection relationship between the modules indicates that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.
  • the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the method of each embodiment of the present application.
  • a readable storage medium such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • a computer can be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center.
  • Computer readable storage medium can be Any available media that can be stored by a computer or a data storage device such as a server, data center, etc. that includes one or more available media. Available media can be magnetic media, (such as floppy disks, hard disks, tapes), optical media (such as DVDs), Or a semiconductor medium (such as a solid state disk (solid state disk, SSD)) and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A data transmission method, comprising: a first UPF entity acquiring a first round-trip delay between the first UPF entity and a target AF entity; sending the first round-trip delay to an SMF entity; receiving a first notification sent by the SMF entity in the case that the first round-trip delay is greater than the sum of a second round-trip delay and a third round-trip delay; and when the first UPF entity receives target uplink data from a first terminal, sending the target uplink data to a second UPF entity according to the first notification, and then the second UPF entity sending the target uplink data to the target AF entity. According to the method, a delay between a UPF entity and a target AF entity and a delay between UPF entities can be measured, a transmission path of target uplink data is adjusted according to the measured delay, and a data transmission time is shortened. Also disclosed in the present application are a UPF entity and an SMF entity that can implement the data transmission method.

Description

数据传输方法和相关设备Data transmission method and related equipment
本申请要求于2021年05月10日提交中国专利局、申请号为202110506875.9、申请名称为“数据传输方法和相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202110506875.9 and application title "Data Transmission Method and Related Equipment" filed with the China Patent Office on May 10, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及无线通信领域,尤其涉及一种数据传输方法和相关设备。The present application relates to the field of wireless communication, in particular to a data transmission method and related equipment.
背景技术Background technique
在第五代(5th generation,5G)网络架构中,用户面功能(user plane function,UPF实体)实体和基站可以作为终端与应用功能(application function,AF)实体之间的中间节点,用于传输用户面数据。为了保证业务端到端的服务质量,各种业务对数据时延有一定要求。In the fifth generation (5th generation, 5G) network architecture, user plane function (user plane function, UPF entity) entities and base stations can serve as intermediate nodes between terminals and application function (application function, AF) entities for transmission user plane data. In order to ensure the end-to-end service quality of services, various services have certain requirements on data delay.
基于图1所示的网络架构,可以测量终端到用户面功能实体之间的时延。参阅图1,现有测量时延方法大致如下:会话管理功能(session management function,SMF)实体15向用户面功能(User Plane Function,UPF)实体13发送监视请求,经过移动性管理功能(access and mobility management function,AMF)实体14向基站发送监视请求,该监视请求包括的监视参数是SMF实体根据监视策略确定的。用户面功能实体13根据监视请求向基站12发送监视分组包,监视分组包包括发送监视分组包的时刻T1,基站12向用户面功能实体13发送监视响应包,监视响应包包括T1,T2和T3,T2为基站12接收监视分组包的时刻,T3为基站12发送监视响应包的时刻,用户面功能实体13接收监视响应包之后,可以根据(T2-T1+T4-T3)/2计算基站12和用户面功能实体13之间的时延,接收监视响应包的时刻T4。基站12根据监视请求测量终端11到基站12之间的时延。这样根据终端11到基站12之间的时延和基站12和用户面功能实体13之间的时延可以计算出终端11到用户面功能实体13之间的时延。Based on the network architecture shown in Figure 1, the delay between the terminal and the functional entity of the user plane can be measured. Referring to Fig. 1, the existing delay measurement method is roughly as follows: a session management function (session management function, SMF) entity 15 sends a monitoring request to a user plane function (User Plane Function, UPF) entity 13, and the mobility management function (access and The mobility management function (AMF) entity 14 sends a monitoring request to the base station, and the monitoring parameters included in the monitoring request are determined by the SMF entity according to the monitoring strategy. The user plane functional entity 13 sends a monitoring packet to the base station 12 according to the monitoring request. The monitoring packet includes the time T1 when the monitoring packet is sent, and the base station 12 sends a monitoring response packet to the user plane functional entity 13. The monitoring response packet includes T1, T2 and T3 , T2 is the time when the base station 12 receives the monitoring packet, T3 is the time when the base station 12 sends the monitoring response packet, after the user plane functional entity 13 receives the monitoring response packet, it can be calculated according to (T2-T1+T4-T3)/2 The time delay between the user plane functional entity 13 and the time T4 when the monitoring response packet is received. The base station 12 measures the time delay between the terminal 11 and the base station 12 according to the monitoring request. In this way, the time delay between the terminal 11 and the user plane functional entity 13 can be calculated according to the time delay between the terminal 11 and the base station 12 and the time delay between the base station 12 and the user plane functional entity 13 .
但是,上述时延只是端到端中一部分路径的时延,对上述时延进行优化也难以满足端到端的时延要求。However, the above-mentioned time delay is only the time delay of a part of end-to-end paths, and it is difficult to optimize the above-mentioned time delay to meet the end-to-end time delay requirement.
发明内容Contents of the invention
有鉴于此,本申请提供一种数据传输方法和相关设备,能够测量UPF实体到AF之间的时延和UPF实体之间的时延,根据测量时延调整端到端的数据传输路径,从而降低端到端的时延。In view of this, the present application provides a data transmission method and related equipment, which can measure the delay between the UPF entity and the AF and the delay between the UPF entities, and adjust the end-to-end data transmission path according to the measured delay, thereby reducing end-to-end latency.
第一方面提供一种数据传输方法,在该数据传输方法中,第一UPF实体获取第一UPF实体与目标AF实体之间的第一往返时延;将第一往返时延发送给SMF实体;接收SMF实体在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的第一通知,当第一UPF实体接收来自第一终端的目标上行数据之后,根据第一通知将目标上行数据发送给第二UPF实体,使得第二UPF实体将目标上行数据发送给目标AF实体。第二往返时延是第二 UPF实体与目标AF实体之间的往返时延,第三往返时延是第二UPF实体与第一UPF实体之间的往返时延。The first aspect provides a data transmission method, in which the data transmission method, the first UPF entity acquires the first round-trip delay between the first UPF entity and the target AF entity; sends the first round-trip delay to the SMF entity; Receiving the first notification sent by the SMF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, after the first UPF entity receives the target uplink data from the first terminal, according to the first A notification sends the target uplink data to the second UPF entity, so that the second UPF entity sends the target uplink data to the target AF entity. The second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity.
目标上行数据从第一UPF实体到达目标AF实体的时间为第一往返时延的一半。按照上述方法实施后,目标上行数据经过第一UPF实体和第二UPF实体到达目标AF实体,这样目标上行数据的传输时间小于第一往返时延的一半,因此可以缩短数据传输时间。The time for the target uplink data to reach the target AF entity from the first UPF entity is half of the first round-trip delay. After the above method is implemented, the target uplink data reaches the target AF entity through the first UPF entity and the second UPF entity, so that the transmission time of the target uplink data is less than half of the first round-trip delay, so the data transmission time can be shortened.
在一种可能的实现方式中,第一UPF实体获取第一UPF实体与目标AF实体之间的第一往返时延包括:第一UPF实体接收第一终端发送的上行数据;向目标AF实体发送上行数据;接收目标AF实体发送的确认帧,根据发送上行数据的时刻和接收确认帧的时刻,确定第一UPF实体与目标AF实体之间的第一往返时延。确认帧是目标AF实体响应上行数据生成的。这样提供了一种测量第一往返时延的具体方法。In a possible implementation manner, the acquisition by the first UPF entity of the first round-trip delay between the first UPF entity and the target AF entity includes: the first UPF entity receives the uplink data sent by the first terminal; Uplink data: receiving an acknowledgment frame sent by the target AF entity, and determining a first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received. The confirmation frame is generated by the target AF entity in response to uplink data. This provides a specific method for measuring the first round-trip delay.
在另一种可能的实现方式中,第一UPF实体获取第一UPF实体与目标AF实体之间的第一往返时延包括:第一UPF实体向目标AF实体发送上行数据;接收目标AF实体发送的确认帧,根据发送上行数据的时刻和接收确认帧的时刻,确定第一UPF实体与目标AF实体之间的第一往返时延。确认帧是目标AF实体响应上行数据生成的。这样提供了另一种测量第一往返时延的具体方法。In another possible implementation manner, the acquisition by the first UPF entity of the first round-trip delay between the first UPF entity and the target AF entity includes: the first UPF entity sends uplink data to the target AF entity; acknowledgment frame, and determine the first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received. The confirmation frame is generated by the target AF entity in response to uplink data. This provides another specific method for measuring the first round-trip delay.
在另一种可能的实现方式中,上述数据传输方法还包括:第一UPF实体接收SMF实体发送的第一消息之后,根据第一消息向第二UPF实体发送回声请求,然后接收第二UPF实体发送的回声响应,根据发送回声请求的时刻和接收回声响应的时刻确定第一UPF实体与第二UPF实体之间的第一测量时延,接着将第一测量时延发送给SMF实体。第一消息包括第二UPF实体的IP地址。第一测量时延是第一UPF实体与第二UPF实体之间的往返时延。依此实施,SMF实体可以获取第一UPF实体测量的第一测量时延,然后根据第一测量时延确定第一UPF实体与第二UPF实体之间的往返时延。In another possible implementation, the above data transmission method further includes: after receiving the first message sent by the SMF entity, the first UPF entity sends an echo request to the second UPF entity according to the first message, and then receives the second UPF entity For the sent echo response, determine the first measured delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received, and then send the first measured delay to the SMF entity. The first message includes the IP address of the second UPF entity. The first measured delay is the round-trip delay between the first UPF entity and the second UPF entity. According to this implementation, the SMF entity may acquire the first measured delay measured by the first UPF entity, and then determine the round-trip delay between the first UPF entity and the second UPF entity according to the first measured delay.
第二方面提供一种数据传输方法,在该数据传输方法中,第二UPF实体获取第二UPF实体与目标AF实体之间的第二往返时延,将第二往返时延发送给SMF实体,接收SMF实体发送的第二消息,根据第二消息获取第二UPF实体与第一UPF实体之间的第二测量时延,将第二测量时延发送给SMF实体,接收SMF实体在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的第二通知,根据第二通知接收第一UPF实体发送的目标上行数据,根据第二通知将目标上行数据发送给目标AF实体。第二消息包括第一UPF实体的IP地址。第一往返时延是第一UPF实体与目标AF实体之间的往返时延。第三往返时延是SMF实体根据第二测量时延确定的。目标上行数据的目的地址为目标AF实体的IP地址,目标上行数据的源IP地址为第一终端的第一IP地址。The second aspect provides a data transmission method, in which the data transmission method, the second UPF entity obtains the second round-trip delay between the second UPF entity and the target AF entity, and sends the second round-trip delay to the SMF entity, Receive the second message sent by the SMF entity, obtain the second measurement delay between the second UPF entity and the first UPF entity according to the second message, and send the second measurement delay to the SMF entity, and receive the SMF entity in the first round trip The second notification sent when the delay is greater than the sum of the second round-trip delay and the third round-trip delay, receives the target uplink data sent by the first UPF entity according to the second notice, and sends the target uplink data to the Target AF entity. The second message includes the IP address of the first UPF entity. The first round-trip delay is the round-trip delay between the first UPF entity and the target AF entity. The third round-trip delay is determined by the SMF entity according to the second measurement delay. The destination address of the target uplink data is the IP address of the target AF entity, and the source IP address of the target uplink data is the first IP address of the first terminal.
依此实施,在第一往返时延大于第二往返时延与第三往返时延之和的情况下,SMF实体可以选择第二UPF实体作为目标上行数据的协议数据单元会话锚点(protocol data unit session anchor,PSA),使得目标上行数据经过第一UPF实体和第二UPF实体到达目标AF实体。这样可以缩短目标上行数据传输时间,提高传输效率。According to this implementation, when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity can select the second UPF entity as the protocol data unit session anchor point (protocol data unit) of the target uplink data unit session anchor, PSA), so that the target uplink data reaches the target AF entity through the first UPF entity and the second UPF entity. In this way, the transmission time of the target uplink data can be shortened, and the transmission efficiency can be improved.
在一种可能的实现方式中,第二UPF实体获取第二UPF实体与目标AF实体之间的第二往返时延包括:第二UPF实体接收第二终端发送的上行数据;将上行数据发送给目标AF实 体;接收目标AF实体发送的确认帧,根据发送上行数据的时刻和接收确认帧的时刻,确定第二UPF实体与目标AF实体之间的第二往返时延。确认帧是目标AF实体响应上行数据生成的。这样提供了一种测量第二往返时延的具体方法。In a possible implementation manner, the acquisition by the second UPF entity of the second round-trip delay between the second UPF entity and the target AF entity includes: the second UPF entity receives the uplink data sent by the second terminal; sends the uplink data to The target AF entity: receiving the acknowledgment frame sent by the target AF entity, and determining a second round-trip delay between the second UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received. The confirmation frame is generated by the target AF entity in response to uplink data. This provides a specific method for measuring the second round-trip delay.
在另一种可能的实现方式中,第二UPF实体获取第二UPF实体与目标AF实体之间的第二往返时延包括:第二UPF实体将上行数据发送给目标AF实体;接收目标AF实体发送的确认帧,根据发送上行数据的时刻和接收确认帧的时刻,确定第二UPF实体与目标AF实体之间的第二往返时延。确认帧是目标AF实体响应上行数据生成的。这样提供了另一种测量第二往返时延的具体方法。In another possible implementation manner, the acquisition by the second UPF entity of the second round-trip delay between the second UPF entity and the target AF entity includes: the second UPF entity sends uplink data to the target AF entity; receiving the target AF entity For the sent acknowledgment frame, determine the second round-trip delay between the second UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received. The confirmation frame is generated by the target AF entity in response to uplink data. This provides another specific method for measuring the second round-trip delay.
在另一种可能的实现方式中,第二UPF实体根据第二消息获取第二UPF实体与第一UPF实体之间的第二测量时延包括:第二UPF实体根据第二消息向第一UPF实体发送回声请求;接收第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第二UPF实体与第一UPF实体之间的第二测量时延。这样提供了另一种测量UPF实体之间时延的方法。In another possible implementation manner, the obtaining by the second UPF entity of the second measured delay between the second UPF entity and the first UPF entity according to the second message includes: the second UPF entity reports to the first UPF according to the second message The entity sends an echo request; receives an echo response sent by the first UPF entity; and determines a second measurement delay between the second UPF entity and the first UPF entity according to the time when the echo request is sent and the time when the echo response is received. This provides another way to measure the delay between UPF entities.
在另一种可能的实现方式中,第二UPF实体将目标上行数据发送给目标AF实体包括:第二UPF实体将目标上行数据中第一IP地址和第一端口号进行网络地址端口转换,即按照网络地址端口转换(network address port translation,NAPT)技术将第一终端的私网IP地址和端口号转换成公网IP地址和端口号(即第二IP地址和第二端口号),然后将网络地址端口转换后的目标上行数据发送给目标AF实体;上述数据传输方法还包括:在第二UPF实体接收目标AF实体向第一终端发送的目标下行数据之后,将目标下行数据中的目的IP地址和目的端口号进行网络地址端口转换,这样将目标下行数据中的目的IP地址和目的端口号还原成第一终端的私网IP地址和端口号(即目标上行数据的第一IP地址和第一端口号),然后将网络地址端口转换后的目标下行数据发送给第一UPF实体。其中,网络地址端口转换后的目标上行数据包括第二IP地址和第二端口号。目标下行数据的目的地址为第二IP地址,目标下行数据的目的端口号为第二端口号。目标下行数据的目的地址为第二IP地址,目标下行数据的目的端口号为第二端口号。通过网络地址转换,可以防止目标下行数据不经过第二UPF实体从第一UPF实体到达第一终端,从而避免下行路由冲突,而且可以缩短下行传输时间。In another possible implementation manner, the second UPF entity sending the target uplink data to the target AF entity includes: the second UPF entity performs network address port translation on the first IP address and the first port number in the target uplink data, that is According to network address port translation (network address port translation, NAPT) technology, the private network IP address and port number of the first terminal are converted into public network IP address and port number (ie, the second IP address and the second port number), and then The target uplink data after the network address port conversion is sent to the target AF entity; the above data transmission method also includes: after the second UPF entity receives the target downlink data sent by the target AF entity to the first terminal, the target IP in the target downlink data Address and purpose port number carry out network address port translation, so that the purpose IP address and purpose port number in the target downlink data are restored to the private network IP address and port number of the first terminal (i.e. the first IP address and the first IP address of the target uplink data and the first terminal number) A port number), and then send the target downlink data after network address port translation to the first UPF entity. Wherein, the target uplink data after network address port translation includes the second IP address and the second port number. The destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number. The destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number. Through network address translation, target downlink data can be prevented from reaching the first terminal from the first UPF entity without passing through the second UPF entity, thereby avoiding downlink routing conflicts and shortening downlink transmission time.
第三方面提供一种数据传输方法,在该数据传输方法中,SMF实体接收第一UPF实体发送的第一往返时延,接收第二UPF实体发送的第二往返时延,向第二UPF实体发送第二消息;接收第二UPF实体发送的第二测量时延,第二测量时延是第二UPF实体根据第二消息获取的;根据第二测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延;当第一往返时延大于第二往返时延与第三往返时延之和时,SMF实体向第一UPF实体发送第一通知,第一UPF实体根据第一通知将来自第一终端的目标上行数据发送给第二UPF实体,向第二UPF实体发送第二通知,第二UPF实体根据第二通知将从第一UPF实体接收的目标上行数据转发给目标AF实体。第一往返时延为第一UPF实体与目标应用功能AF实体之间的往返时延。第二往返时延为第二UPF实体与目标AF实体之间的往返时延。目标上行数据的目的IP地址为目标AF实体的IP地址。依此实施,SMF实体可以获取第一往返时延,第 二往返时延与第三往返时延,判断第一往返时延是否大于第二往返时延与第三往返时延之和,若是,则调整目标上行数据的网络路径,以减少数据传输时间。若否,则不修改目标上行数据的网络路径。The third aspect provides a data transmission method. In the data transmission method, the SMF entity receives the first round-trip delay sent by the first UPF entity, receives the second round-trip delay sent by the second UPF entity, and sends the second round-trip delay to the second UPF entity. Send the second message; receive the second measurement delay sent by the second UPF entity, the second measurement delay is obtained by the second UPF entity according to the second message; determine the first UPF entity and the second UPF according to the second measurement delay The third round-trip delay between entities; when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity sends the first notification to the first UPF entity, and the first UPF entity sends the first notification according to the first UPF entity A notification sends the target uplink data from the first terminal to the second UPF entity, sends a second notification to the second UPF entity, and the second UPF entity forwards the target uplink data received from the first UPF entity to the target according to the second notification AF entity. The first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity. The second round-trip delay is a round-trip delay between the second UPF entity and the target AF entity. The destination IP address of the target uplink data is the IP address of the target AF entity. According to this implementation, the SMF entity can obtain the first round-trip delay, the second round-trip delay and the third round-trip delay, and judge whether the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and if so, Then adjust the network path of the target uplink data to reduce the data transmission time. If not, the network path of the target uplink data is not modified.
在一种可能的实现方式中,数据传输方法还包括:SMF实体向第一UPF实体发送第一消息,在接收第一UPF实体发送的第一测量时延之后,根据第二测量时延和第一测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延。第一消息包括第二UPF实体的IP地址。第一测量时延是第一UPF实体根据第一消息获取的。这样提供了另一种确定第三往返时延的方法,提高了方案实施的灵活性。In a possible implementation manner, the data transmission method further includes: the SMF entity sends the first message to the first UPF entity, and after receiving the first measurement delay sent by the first UPF entity, according to the second measurement delay and the first A measured delay determines a third round-trip delay between the first UPF entity and the second UPF entity. The first message includes the IP address of the second UPF entity. The first measurement delay is obtained by the first UPF entity according to the first message. This provides another method for determining the third round-trip delay, which improves the flexibility of implementing the solution.
第四方面提供一种数据传输方法,在该数据传输方法中,SMF实体接收来自目标AF实体的第一消息,第一消息包括第一终端的标识、第二终端的标识、目标AF实体的标识、第一端到端时延和第二端到端时延,在接收第一UPF实体发送的第一测量时延之后,确定第一往返时延等于第一端到端时延减去第一测量时延得到的差值;接收第二UPF实体发送的第二测量时延,确定第二往返时延等于第二端到端时延减去第二测量时延得到的差值;在SMF实体向第二UPF实体发送第二消息之后,SMF实体接收第二UPF实体发送的第三测量时延,根据第三测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延;当第一往返时延大于第二往返时延与第三往返时延之和时,SMF实体向第一UPF实体发送第一通知,向第二UPF实体发送第二通知。其中,第一端到端时延是第一终端与目标AF实体之间的往返时延,第二端到端时延是第二终端与目标AF实体之间的往返时延。第一测量时延是第一终端与第一UPF实体之间的往返时延。第三测量时延是第二UPF实体根据第二消息获取的。第一通知用于指示第一UPF实体将来自第一终端的目标上行数据发送给第二UPF实体,目标上行数据的目的IP地址为目标AF实体的IP地址,第二通知用于指示第二UPF实体接收第一UPF实体发送的目标上行数据以及向目标AF实体发送目标上行数据。第二测量时延是第二终端与第二UPF实体之间的往返时延。The fourth aspect provides a data transmission method. In the data transmission method, the SMF entity receives a first message from the target AF entity, and the first message includes the identifier of the first terminal, the identifier of the second terminal, and the identifier of the target AF entity. , the first end-to-end delay and the second end-to-end delay, after receiving the first measured delay sent by the first UPF entity, determine that the first round-trip delay is equal to the first end-to-end delay minus the first The difference obtained by measuring the delay; receiving the second measured delay sent by the second UPF entity, and determining that the second round-trip delay is equal to the second end-to-end delay minus the difference obtained by the second measured delay; in the SMF entity After sending the second message to the second UPF entity, the SMF entity receives the third measurement delay sent by the second UPF entity, and determines the third round-trip delay between the first UPF entity and the second UPF entity according to the third measurement delay ; When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity sends the first notification to the first UPF entity, and sends the second notification to the second UPF entity. Wherein, the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second end-to-end delay is the round-trip delay between the second terminal and the target AF entity. The first measured delay is a round-trip delay between the first terminal and the first UPF entity. The third measurement delay is acquired by the second UPF entity according to the second message. The first notification is used to instruct the first UPF entity to send the target uplink data from the first terminal to the second UPF entity, the destination IP address of the target uplink data is the IP address of the target AF entity, and the second notification is used to indicate the second UPF The entity receives the target uplink data sent by the first UPF entity and sends the target uplink data to the target AF entity. The second measurement delay is a round-trip delay between the second terminal and the second UPF entity.
依此实施,SMF实体可以分别获取终端到UPF实体之间的往返时延,以及终端到目标AF实体之间的往返时延,然后根据上述两个往返时延确定UPF实体与目标AF实体之间的往返时延。这样提供了一种获取UPF实体与目标AF实体之间的往返时延的新方法。当第一往返时延大于第二往返时延与第三往返时延之和时,SMF实体通知第一UPF实体将目标上行数据转发给第二UPF实体,第二UPF实体可以将目标上行数据转发给目标AF实体,这样目标上行数据经过第一UPF实体和第二UPF实体到达目标AF实体的时间更短。According to this implementation, the SMF entity can separately obtain the round-trip delay between the terminal and the UPF entity, and the round-trip delay between the terminal and the target AF entity, and then determine the distance between the UPF entity and the target AF entity based on the above two round-trip delays. round-trip delay. This provides a new method of obtaining the round-trip delay between the UPF entity and the target AF entity. When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity notifies the first UPF entity to forward the target uplink data to the second UPF entity, and the second UPF entity can forward the target uplink data For the target AF entity, the time for the target uplink data to reach the target AF entity through the first UPF entity and the second UPF entity is shorter.
在一种可能的实现方式中,上述数据传输方法还包括:SMF实体向第一UPF实体发送第三消息;接收第一UPF实体发送的第四测量时延,然后根据第三测量时延和第四测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延。第四测量时延是第二UPF实体根据第三消息获取的。这样提供了一种确定第三往返时延的方法。In a possible implementation, the above data transmission method further includes: the SMF entity sends a third message to the first UPF entity; receives the fourth measurement delay sent by the first UPF entity, and then according to the third measurement delay and the first The fourth measurement delay determines a third round-trip delay between the first UPF entity and the second UPF entity. The fourth measurement delay is obtained by the second UPF entity according to the third message. This provides a method of determining the third round trip delay.
在另一种可能的实现方式中,第三往返时延等于第三测量时延。In another possible implementation manner, the third round-trip delay is equal to the third measurement delay.
第五方面提供一种数据传输方法,在该数据传输方法中,第一UPF实体获取第一终端与第一UPF实体之间的第一测量时延;接着将第一测量时延发送给SMF实体;第一UPF实体接收SMF实体在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的第 一通知之后,第一UPF实体接收来自第一终端的目标上行数据,第一UPF实体根据第一通知将目标上行数据发送给第二UPF实体。第一测量时延用于确定第一UPF实体与目标AF实体之间的第一往返时延。第二往返时延是第二UPF实体与目标AF实体之间的往返时延,第三往返时延是第二UPF实体与第一UPF实体之间的往返时延。目标上行数据的目的地址为目标AF实体的IP地址。The fifth aspect provides a data transmission method, in which the data transmission method, the first UPF entity acquires the first measured delay between the first terminal and the first UPF entity; then sends the first measured delay to the SMF entity ; After the first UPF entity receives the first notification sent by the SMF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the first UPF entity receives the target uplink from the first terminal For data, the first UPF entity sends the target uplink data to the second UPF entity according to the first notification. The first measured delay is used to determine a first round-trip delay between the first UPF entity and the target AF entity. The second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity. The destination address of the target uplink data is the IP address of the target AF entity.
依此实施,在第一往返时延大于第二往返时延与第三往返时延之和的情况下,第一UPF实体可以根据SMF实体发送的第一通知,将目标上行数据发送给第二UPF实体,然后第二UPF实体转发给目标AF实体,这样可以缩短数据传输时间。According to this implementation, when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the first UPF entity can send the target uplink data to the second UPF according to the first notification sent by the SMF entity. The UPF entity, and then the second UPF entity forwards it to the target AF entity, which can shorten the data transmission time.
在一种可能的实现方式中,第一UPF实体接收SMF实体发送的第三消息,根据第三消息向第二UPF实体发送回声请求;接收第二UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第一UPF实体与第二UPF实体之间的第四测量时延;将第四测量时延发送给SMF实体。第三消息第二UPF实体的IP地址。第四测量时延用于SMF实体确定第三往返时延。依此实施,第一UPF实体可以测量第一UPF实体与第二UPF实体之间的往返时延。In a possible implementation, the first UPF entity receives the third message sent by the SMF entity, and sends an echo request to the second UPF entity according to the third message; receives the echo response sent by the second UPF entity; Determine the fourth measured time delay between the first UPF entity and the second UPF entity at the time and the time when the echo response is received; and send the fourth measured time delay to the SMF entity. The third message is the IP address of the second UPF entity. The fourth measurement delay is used by the SMF entity to determine the third round-trip delay. According to this implementation, the first UPF entity may measure the round-trip delay between the first UPF entity and the second UPF entity.
第六方面提供一种数据传输方法,在该数据传输方法中,第二UPF实体获取第二终端与第二UPF实体之间的第二测量时延,接着将第二测量时延发送给SMF实体,SMF实体根据第二测量时延确定第二UPF实体与目标AF实体之间的第二往返时延;接收SMF实体发送的第二消息,根据第二消息获取第二UPF实体与第一UPF实体之间的第三测量时延;将第三测量时延发送给SMF实体;SMF实体根据第三测量时延确定第二UPF实体与第一UPF实体之间的第三往返时延;在第二UPF实体接收SMF实体在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的第二通知之后,第二UPF实体根据第二通知接收第一UPF实体发送的目标上行数据;根据第二通知将目标上行数据发送给目标AF实体。其中,第二消息包括第一UPF实体的IP地址。第一往返时延是第一UPF实体与目标应用功能AF实体之间的往返时延。依此实施,在第一往返时延大于第二往返时延与第三往返时延之和的情况下,SMF实体可以选择第二UPF实体作为目标上行数据的传输锚点,使得目标上行数据经过第一UPF实体和第二UPF实体到达目标AF实体。这样可以缩短目标上行数据传输时间,提高传输效率。The sixth aspect provides a data transmission method. In the data transmission method, the second UPF entity acquires the second measured delay between the second terminal and the second UPF entity, and then sends the second measured delay to the SMF entity , the SMF entity determines the second round-trip delay between the second UPF entity and the target AF entity according to the second measurement delay; receives the second message sent by the SMF entity, and obtains the second UPF entity and the first UPF entity according to the second message The third measurement delay between; the third measurement delay is sent to the SMF entity; the SMF entity determines the third round-trip delay between the second UPF entity and the first UPF entity according to the third measurement delay; After the UPF entity receives the second notification sent by the SMF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the second UPF entity receives the second notification sent by the first UPF entity according to the second notification. Target uplink data: send the target uplink data to the target AF entity according to the second notification. Wherein, the second message includes the IP address of the first UPF entity. The first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity. According to this implementation, when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity can select the second UPF entity as the transmission anchor point of the target uplink data, so that the target uplink data passes through The first UPF entity and the second UPF entity arrive at the target AF entity. In this way, the transmission time of the target uplink data can be shortened, and the transmission efficiency can be improved.
在一种可能的实现方式中,第二UPF实体根据第二消息获取第二UPF实体与第一UPF实体之间的第二测量时延包括:第二UPF实体根据第二消息向第一UPF实体发送回声请求;接收第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第二UPF实体与第一UPF实体之间的第二测量时延。第二测量时延是第二UPF实体与第一UPF实体之间的往返时延。这样提供了一种测量第二UPF实体与第一UPF实体之间的往返时延的方法。In a possible implementation manner, the obtaining by the second UPF entity of the second measured delay between the second UPF entity and the first UPF entity according to the second message includes: the second UPF entity reports to the first UPF entity according to the second message Sending an echo request; receiving an echo response sent by the first UPF entity; determining a second measurement delay between the second UPF entity and the first UPF entity according to the time when the echo request is sent and the time when the echo response is received. The second measurement delay is the round-trip delay between the second UPF entity and the first UPF entity. This provides a method of measuring the round-trip delay between the second UPF entity and the first UPF entity.
第七方面提供一种UPF实体,UPF实体包括获取单元,发送单元和接收单元;获取单元用于获取第一UPF实体与目标应用功能AF实体之间的第一往返时延;发送单元用于将第一往返时延发送给会话管理功能SMF实体;接收单元用于接收SMF实体发送的第一通知,第一通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的, 第二往返时延是第二UPF实体与目标AF实体之间的往返时延,第三往返时延是第二UPF实体与第一UPF实体之间的往返时延;接收单元还用于接收来自第一终端的目标上行数据,目标上行数据的目的地址为目标AF实体的IP地址;发送单元还用于根据第一通知将目标上行数据发送给第二UPF实体。The seventh aspect provides a UPF entity, the UPF entity includes an acquisition unit, a sending unit and a receiving unit; the acquisition unit is used to acquire the first round-trip delay between the first UPF entity and the target application function AF entity; the sending unit is used to The first round-trip delay is sent to the session management function SMF entity; the receiving unit is used to receive the first notification sent by the SMF entity, and the first notification is that the first round-trip delay of the SMF is greater than the difference between the second round-trip delay and the third round-trip delay. The second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity; The receiving unit is also used to receive target uplink data from the first terminal, the destination address of the target uplink data is the IP address of the target AF entity; the sending unit is also used to send the target uplink data to the second UPF entity according to the first notification.
在一种可能的实现方式中,获取单元具体用于接收第一终端发送的上行数据;向目标AF实体发送上行数据;接收目标AF实体发送的确认帧,确认帧是目标AF实体响应上行数据生成的;根据发送上行数据的时刻和接收确认帧的时刻,确定第一UPF实体与目标AF实体之间的第一往返时延。In a possible implementation manner, the acquisition unit is specifically configured to receive uplink data sent by the first terminal; send uplink data to the target AF entity; receive a confirmation frame sent by the target AF entity, and the confirmation frame is generated by the target AF entity in response to the uplink data and determining the first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
在另一种可能的实现方式中,接收单元还用于接收SMF实体发送的第一消息,第一消息包括第二UPF实体的IP地址;发送单元还用于根据第一消息向第二UPF实体发送回声请求;接收单元还用于接收第二UPF实体发送的回声响应;UPF实体还包括确定单元,该确定单元用于根据发送回声请求的时刻和接收回声响应的时刻,确定第一UPF实体与第二UPF实体之间的第一测量时延;发送单元还用于将第一测量时延发送给SMF实体。In another possible implementation, the receiving unit is further configured to receive the first message sent by the SMF entity, where the first message includes the IP address of the second UPF entity; Send an echo request; the receiving unit is also used to receive the echo response sent by the second UPF entity; the UPF entity also includes a determination unit, which is used to determine the first UPF entity and The first measured delay between the second UPF entities; the sending unit is further configured to send the first measured delay to the SMF entity.
第七方面中名词解释,各单元执行的步骤和有益效果可参阅第一方面中的相应描述。For the explanation of terms in the seventh aspect, the steps performed by each unit and the beneficial effects can refer to the corresponding description in the first aspect.
第八方面提供一种UPF实体,UPF实体包括第一获取单元,发送单元,第二获取单元,接收单元和处理单元;第一获取单元用于获取第二UPF实体与目标应用功能AF实体之间的第二往返时延;发送单元用于将第二往返时延发送给会话管理功能SMF实体;第二获取单元用于根据第二消息获取第二UPF实体与第一UPF实体之间的第二测量时延;发送单元还用于将第二测量时延发送给SMF实体;接收单元用于接收SMF实体发送的第二通知,第二通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,第一往返时延是第一UPF实体与目标AF实体之间的往返时延,第三往返时延是SMF实体根据第二测量时延确定的;接收单元还用于根据第二通知接收第一UPF实体发送的目标上行数据,目标上行数据的目的地址为目标AF实体的IP地址,目标上行数据的源IP地址为第一终端的第一IP地址;发送单元还用于根据第二通知将目标上行数据发送给目标AF实体。The eighth aspect provides a UPF entity, the UPF entity includes a first acquisition unit, a sending unit, a second acquisition unit, a receiving unit and a processing unit; the first acquisition unit is used to acquire the connection between the second UPF entity and the target application function AF entity The second round-trip delay; the sending unit is used to send the second round-trip delay to the session management function SMF entity; the second acquisition unit is used to acquire the second UPF entity between the second UPF entity and the first UPF entity according to the second message The measurement delay; the sending unit is also used to send the second measurement delay to the SMF entity; the receiving unit is used to receive the second notification sent by the SMF entity, and the second notification is that the first round-trip delay of the SMF is greater than the second round-trip delay and the sum of the third round-trip delay, the first round-trip delay is the round-trip delay between the first UPF entity and the target AF entity, and the third round-trip delay is determined by the SMF entity based on the second measurement delay The receiving unit is also used to receive the target uplink data sent by the first UPF entity according to the second notification, the destination address of the target uplink data is the IP address of the target AF entity, and the source IP address of the target uplink data is the first The IP address; the sending unit is further configured to send the target uplink data to the target AF entity according to the second notification.
在一种可能的实现方式中,第一获取单元具体用于接收第二终端发送的上行数据;将上行数据发送给目标AF实体;接收目标AF实体发送的确认帧,确认帧是目标AF实体响应上行数据生成的;根据发送上行数据的时刻和接收确认帧的时刻,确定第二UPF实体与目标AF实体之间的第二往返时延。In a possible implementation manner, the first acquisition unit is specifically configured to receive the uplink data sent by the second terminal; send the uplink data to the target AF entity; receive the confirmation frame sent by the target AF entity, and the confirmation frame is the target AF entity response The uplink data is generated; according to the time when the uplink data is sent and the time when the acknowledgment frame is received, the second round-trip time delay between the second UPF entity and the target AF entity is determined.
在另一种可能的实现方式中,第二获取单元具体用于根据第二消息向第一UPF实体发送回声请求;接收第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第二UPF实体与第一UPF实体之间的第二测量时延。In another possible implementation, the second obtaining unit is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; At a moment of , determine a second measurement delay between the second UPF entity and the first UPF entity.
在另一种可能的实现方式中,发送单元具体用于将目标上行数据中第一IP地址和第一端口号进行网络地址端口转换,得到第二IP地址和第二端口号;将网络地址端口转换后的目标上行数据发送给目标AF实体,网络地址端口转换后的目标上行数据包括第二IP地址和第二端口号;接收单元还用于接收目标AF实体发送的目标下行数据,目标下行数据的目的地址为第二IP地址,目标下行数据的目的端口号为第二端口号;发送单元还用于将目标下行数据中的第二IP地址和第二端口号进行网络地址端口转换;将网络地址端口转换后的 目标下行数据发送给第一UPF实体,网络地址端口转换后的目标下行数据包括第一IP地址和第一端口号。In another possible implementation manner, the sending unit is specifically configured to perform network address port conversion on the first IP address and the first port number in the target uplink data to obtain the second IP address and the second port number; The converted target uplink data is sent to the target AF entity, and the target uplink data after the network address port conversion includes the second IP address and the second port number; the receiving unit is also used to receive the target downlink data sent by the target AF entity, the target downlink data The destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number; the sending unit is also used for performing network address port translation on the second IP address and the second port number in the target downlink data; The target downlink data after address port translation is sent to the first UPF entity, and the target downlink data after network address port translation includes a first IP address and a first port number.
第八方面中名词解释,各单元执行的步骤和有益效果可参阅第二方面中的相应描述。For the explanation of terms in the eighth aspect, the steps performed by each unit and the beneficial effects can refer to the corresponding description in the second aspect.
第九方面提供一种SMF实体,该SMF实体包括接收单元,发送单元和处理单元;接收单元用于接收第一用户面功能UPF实体发送的第一往返时延,第一往返时延为第一UPF实体与目标应用功能AF实体之间的往返时延;接收单元还用于接收第二UPF实体发送的第二往返时延,第二往返时延为第二UPF实体与目标AF实体之间的往返时延;发送单元用于向第二UPF实体发送第二消息;接收单元还用于接收第二UPF实体发送的第二测量时延,第二测量时延是第二UPF实体根据第二消息获取的;处理单元用于根据第二测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延;发送单元还用于当第一往返时延大于第二往返时延与第三往返时延之和时,向第一UPF实体发送第一通知,第一通知用于指示第一UPF实体将来自第一终端的目标上行数据发送给第二UPF实体,目标上行数据的目的IP地址为目标AF实体的IP地址;发送单元还用于向第二UPF实体发送第二通知,第二通知用于指示第二UPF实体接收第一UPF实体发送的目标上行数据以及向目标AF实体发送目标上行数据。A ninth aspect provides an SMF entity, where the SMF entity includes a receiving unit, a sending unit, and a processing unit; the receiving unit is configured to receive a first round-trip delay sent by a first user plane function UPF entity, and the first round-trip delay is the first The round-trip time delay between the UPF entity and the target application function AF entity; the receiving unit is also used to receive the second round-trip time delay sent by the second UPF entity, and the second round-trip time delay is the time between the second UPF entity and the target AF entity Round-trip delay; the sending unit is used to send a second message to the second UPF entity; the receiving unit is also used to receive the second measurement delay sent by the second UPF entity, and the second measurement delay is the second UPF entity according to the second message Acquired; the processing unit is used to determine the third round-trip delay between the first UPF entity and the second UPF entity according to the second measurement delay; the sending unit is also used for when the first round-trip delay is greater than the second round-trip delay and When the sum of the third round-trip delay is reached, a first notification is sent to the first UPF entity, the first notification is used to instruct the first UPF entity to send the target uplink data from the first terminal to the second UPF entity, the purpose of the target uplink data The IP address is the IP address of the target AF entity; the sending unit is also used to send a second notification to the second UPF entity, and the second notification is used to indicate that the second UPF entity receives the target uplink data sent by the first UPF entity and sends the target AF entity Send target uplink data.
在一种可能的实现方式中,发送单元还用于向第一UPF实体发送第一消息,第一消息包括第二UPF实体的IP地址;接收单元还用于接收第一UPF实体发送的第一测量时延,第一测量时延是第一UPF实体根据第一消息获取的;处理单元具体用于根据第二测量时延和第一测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延。In a possible implementation manner, the sending unit is further configured to send a first message to the first UPF entity, where the first message includes the IP address of the second UPF entity; the receiving unit is also configured to receive the first message sent by the first UPF entity. Measurement delay, the first measurement delay is obtained by the first UPF entity according to the first message; the processing unit is specifically configured to determine the distance between the first UPF entity and the second UPF entity according to the second measurement delay and the first measurement delay The third round-trip delay of .
第九方面中名词解释,各单元执行的步骤和有益效果可参阅第三方面中的相应描述。For the explanation of terms in the ninth aspect, the steps performed by each unit and the beneficial effects can refer to the corresponding description in the third aspect.
第十方面提供一种SMF实体,该SMF实体包括接收单元,处理单元和发送单元;接收单元用于接收来自目标应用功能AF实体的第一消息,第一消息包括第一终端的标识、第二终端的标识、目标AF实体的标识、第一端到端时延和第二端到端时延,第一端到端时延是第一终端与目标AF实体之间的往返时延,第二端到端时延是第二终端与目标AF实体之间的往返时延;接收第一UPF实体发送的第一测量时延,第一测量时延是第一终端与第一UPF实体之间的往返时延;处理单元用于确定第一往返时延等于第一端到端时延减去第一测量时延得到的差值;接收单元,还用于接收第二UPF实体发送的第二测量时延,第二测量时延是第二终端与第二UPF实体之间的往返时延;处理单元,还用于确定第二往返时延等于第二端到端时延减去第二测量时延得到的差值;发送单元用于向第二UPF实体发送第二消息;处理单元还用于根据第三测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延;发送单元还用于当第一往返时延大于第二往返时延与第三往返时延之和时,向第一UPF实体发送第一通知,第一通知用于指示第一UPF实体将来自第一终端的目标上行数据发送给第二UPF实体,目标上行数据的目的IP地址为目标AF实体的IP地址;发送单元还用于向第二UPF实体发送第二通知,第二通知用于指示第二UPF实体接收第一UPF实体发送的目标上行数据以及向目标AF实体发送目标上行数据。A tenth aspect provides an SMF entity, where the SMF entity includes a receiving unit, a processing unit, and a sending unit; the receiving unit is configured to receive a first message from a target application function AF entity, and the first message includes an identifier of the first terminal, a second The identification of the terminal, the identification of the target AF entity, the first end-to-end delay and the second end-to-end delay, the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second The end-to-end delay is the round-trip delay between the second terminal and the target AF entity; receiving the first measurement delay sent by the first UPF entity, the first measurement delay is the time delay between the first terminal and the first UPF entity Round-trip delay; the processing unit is used to determine that the first round-trip delay is equal to the difference obtained by subtracting the first end-to-end delay from the first measurement delay; the receiving unit is also used to receive the second measurement sent by the second UPF entity Delay, the second measurement delay is the round-trip delay between the second terminal and the second UPF entity; the processing unit is also used to determine that the second round-trip delay is equal to the second end-to-end delay minus the second measurement time The difference obtained by the delay; the sending unit is used to send the second message to the second UPF entity; the processing unit is also used to determine the third round-trip delay between the first UPF entity and the second UPF entity according to the third measurement delay; The sending unit is also configured to send a first notification to the first UPF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the first notification is used to indicate that the first UPF entity will receive the second round-trip delay from the second round-trip delay. The target uplink data of a terminal is sent to the second UPF entity, and the destination IP address of the target uplink data is the IP address of the target AF entity; the sending unit is also used to send a second notification to the second UPF entity, and the second notification is used to indicate that the first The two UPF entities receive the target uplink data sent by the first UPF entity and send the target uplink data to the target AF entity.
在一种可能的实现方式中,发送单元,还用于向第一UPF实体发送第三消息;接收单元还用于接收第一UPF实体发送的第四测量时延,第四测量时延是第二UPF实体根据第三 消息获取的;处理单元具体用于根据第三测量时延和第四测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延。In a possible implementation manner, the sending unit is further configured to send a third message to the first UPF entity; the receiving unit is further configured to receive a fourth measurement delay sent by the first UPF entity, where the fourth measurement delay is the first acquired by the two UPF entities according to the third message; the processing unit is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay and the fourth measured delay.
第十方面中名词解释,各单元执行的步骤和有益效果可参阅第四方面中的相应描述。For the explanation of terms in the tenth aspect, the steps performed by each unit and the beneficial effects can refer to the corresponding description in the fourth aspect.
第十一方面提供一种UPF实体,该UPF实体包括获取单元,发送单元和接收单元;获取单元用于获取第一终端与第一UPF实体之间的第一测量时延;发送单元用于将第一测量时延发送给会话管理功能SMF实体,第一测量时延用于确定第一往返时延;接收单元用于接收SMF实体发送的第一通知,第一通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,第二往返时延是第二UPF实体与目标应用功能AF实体之间的往返时延,第三往返时延是第二UPF实体与第一UPF实体之间的往返时延;接收单元还用于接收来自第一终端的目标上行数据,目标上行数据的目的地址为目标AF实体的IP地址;发送单元还用于根据第一通知将目标上行数据发送给第二UPF实体。The eleventh aspect provides a UPF entity, the UPF entity includes an acquisition unit, a sending unit, and a receiving unit; the acquisition unit is used to acquire a first measurement delay between the first terminal and the first UPF entity; the sending unit is used to transfer The first measurement delay is sent to the session management function SMF entity, and the first measurement delay is used to determine the first round-trip delay; the receiving unit is used to receive the first notification sent by the SMF entity, and the first notification is that the SMF is at the first round-trip time The second round-trip delay is the round-trip delay between the second UPF entity and the target application function AF entity, and the third round-trip delay is The round-trip delay between the second UPF entity and the first UPF entity; the receiving unit is also used to receive the target uplink data from the first terminal, and the destination address of the target uplink data is the IP address of the target AF entity; the sending unit is also used for Send the target uplink data to the second UPF entity according to the first notification.
在一种可能的实现方式中,接收单元还用于接收SMF实体发送的第三消息,第三消息第二UPF实体的IP地址;发送单元还用于根据第三消息向第二UPF实体发送回声请求;接收单元还用于接收第二UPF实体发送的回声响应;UPF实体还包括处理单元,该处理单元用于根据发送回声请求的时刻和接收回声响应的时刻,确定第一UPF实体与第二UPF实体之间的第四测量时延;发送单元还用于将第四测量时延发送给SMF实体。In a possible implementation, the receiving unit is further configured to receive a third message sent by the SMF entity, the IP address of the second UPF entity in the third message; the sending unit is also configured to send an echo to the second UPF entity according to the third message Request; the receiving unit is also used to receive the echo response sent by the second UPF entity; the UPF entity also includes a processing unit, which is used to determine the first UPF entity and the second UPF entity according to the time of sending the echo request and the time of receiving the echo response. The fourth measurement delay between UPF entities; the sending unit is further configured to send the fourth measurement delay to the SMF entity.
第十一方面中名词解释,各单元执行的步骤和有益效果可参阅第五方面中的相应描述。For the explanation of terms in the eleventh aspect, the steps performed by each unit and the beneficial effects can refer to the corresponding description in the fifth aspect.
第十二方面提供一种UPF实体,该UPF实体包括第一获取单元,发送单元,接收单元,第二获取单元和处理单元;第一获取单元用于获取第二终端与第二UPF实体之间的第二测量时延;发送单元用于将第二测量时延发送给会话管理功能SMF实体,第二测量时延用于确定第二UPF实体与目标AF实体之间的第二往返时延;接收单元用于接收SMF实体发送的第二消息,第二消息包括第一UPF实体的IP地址;第二获取单元用于根据第二消息获取第二UPF实体与第一UPF实体之间的第三测量时延;发送单元还用于将第三测量时延发送给SMF实体,第三测量时延用于确定第二UPF实体与第一UPF实体之间的第三往返时延;接收单元还用于接收SMF实体发送的第二通知,第二通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,第一往返时延是第一UPF实体与目标应用功能AF实体之间的往返时延;接收单元还用于根据第二通知接收第一UPF实体发送的目标上行数据;发送单元还用于根据第二通知将目标上行数据发送给目标AF实体。A twelfth aspect provides a UPF entity. The UPF entity includes a first acquisition unit, a sending unit, a receiving unit, a second acquisition unit, and a processing unit; the first acquisition unit is used to acquire the information between the second terminal and the second UPF entity. The second measurement delay; the sending unit is used to send the second measurement delay to the session management function SMF entity, and the second measurement delay is used to determine the second round-trip delay between the second UPF entity and the target AF entity; The receiving unit is used to receive the second message sent by the SMF entity, and the second message includes the IP address of the first UPF entity; the second obtaining unit is used to obtain the third link between the second UPF entity and the first UPF entity according to the second message. Measurement delay; the sending unit is also used to send the third measurement delay to the SMF entity, and the third measurement delay is used to determine the third round-trip delay between the second UPF entity and the first UPF entity; the receiving unit also uses To receive the second notification sent by the SMF entity, the second notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the first round-trip delay is the first UPF The round-trip delay between the entity and the target application function AF entity; the receiving unit is also used to receive the target uplink data sent by the first UPF entity according to the second notification; the sending unit is also used to send the target uplink data to the target according to the second notification AF entity.
在一种可能的实现方式中,第一获取单元具体用于根据第二消息向第一UPF实体发送回声请求;接收第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第二UPF实体与第一UPF实体之间的第二测量时延。In a possible implementation manner, the first obtaining unit is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; time, determine a second measurement delay between the second UPF entity and the first UPF entity.
第十二方面中名词解释,各单元执行的步骤和有益效果可参阅第六方面中的相应描述。For the explanation of terms in the twelfth aspect, the steps performed by each unit and the beneficial effects can refer to the corresponding description in the sixth aspect.
第十三方面提供一种UPF实体,其包括处理器和存储器,存储器,用于存储程序;处理器通过执行程序用于实现第一方面,第二方面,第五方面或第六方面的数据传输方法。A thirteenth aspect provides a UPF entity, which includes a processor and a memory, and the memory is used to store a program; the processor is used to implement the data transmission of the first aspect, the second aspect, the fifth aspect or the sixth aspect by executing the program method.
第十四方面提供一种SMF实体,其包括处理器和存储器,存储器,用于存储程序;处理器通过执行程序用于实现第三方面或第四方面的数据传输方法。A fourteenth aspect provides an SMF entity, which includes a processor and a memory, the memory is used to store a program; the processor implements the data transmission method in the third aspect or the fourth aspect by executing the program.
第十五方面提供一种通信系统,通信系统包括第一方面的UPF实体,第二方面的UPF 实体和第三方面的SMF实体。A fifteenth aspect provides a communication system, and the communication system includes the UPF entity of the first aspect, the UPF entity of the second aspect, and the SMF entity of the third aspect.
第十六方面提供另一种通信系统,通信系统包括第四方面的SMF实体,第五方面的UPF实体和第六方面的UPF实体。A sixteenth aspect provides another communication system. The communication system includes the SMF entity of the fourth aspect, the UPF entity of the fifth aspect, and the UPF entity of the sixth aspect.
第十七方面提供一种计算机可读存储介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面的方法。A seventeenth aspect provides a computer-readable storage medium, in which instructions are stored, and when the computer-readable storage medium is run on a computer, it causes the computer to execute the methods of the above-mentioned aspects.
第十八方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面的方法。The eighteenth aspect provides a computer program product containing instructions, which, when run on a computer, causes the computer to perform the methods of the above aspects.
第十九方面提供了一种芯片系统,芯片系统包括至少一个处理器,处理器和存储器耦合,存储器用于存储计算机程序或指令,处理器用于执行计算机程序或指令,以实现上述各方面的方法。A nineteenth aspect provides a chip system, the chip system includes at least one processor, the processor is coupled to a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions, so as to implement the methods in the above aspects .
附图说明Description of drawings
图1为现有网络架构的一个示意图;FIG. 1 is a schematic diagram of an existing network architecture;
图2为本申请实施例中应用场景的一个示意图;FIG. 2 is a schematic diagram of an application scenario in an embodiment of the present application;
图3为本申请实施例中数据传输方法的一个示意图;Fig. 3 is a schematic diagram of the data transmission method in the embodiment of the present application;
图4为本申请实施例中测量用户面功能实体和目标应用功能实体之间的往返时延的一个示意图;FIG. 4 is a schematic diagram of measuring the round-trip delay between the user plane functional entity and the target application functional entity in the embodiment of the present application;
图5为本申请实施例中测量用户面功能实体和目标应用功能实体之间的往返时延的另一个示意图;FIG. 5 is another schematic diagram of measuring the round-trip delay between the user plane functional entity and the target application functional entity in the embodiment of the present application;
图6为本申请实施例中测量两个用户面功能实体之间的往返时延的一个示意图;FIG. 6 is a schematic diagram of measuring the round-trip delay between two user plane functional entities in an embodiment of the present application;
图7为本申请实施例中数据传输方法的一个示意图;FIG. 7 is a schematic diagram of a data transmission method in an embodiment of the present application;
图8为本申请实施例中用户面功能实体的一个示意图;FIG. 8 is a schematic diagram of a user plane functional entity in an embodiment of the present application;
图9为本申请实施例中用户面功能实体的另一个示意图;FIG. 9 is another schematic diagram of a user plane functional entity in an embodiment of the present application;
图10为本申请实施例中会话管理功能实体的一个示意图;FIG. 10 is a schematic diagram of a session management functional entity in an embodiment of the present application;
图11为本申请实施例中会话管理功能实体的另一个示意图;FIG. 11 is another schematic diagram of the session management functional entity in the embodiment of the present application;
图12为本申请实施例中用户面功能实体的另一个示意图;FIG. 12 is another schematic diagram of a user plane functional entity in an embodiment of the present application;
图13为本申请实施例中用户面功能实体的一个示意图;FIG. 13 is a schematic diagram of a user plane functional entity in an embodiment of the present application;
图14为本申请实施例中用户面功能实体的另一个示意图;FIG. 14 is another schematic diagram of a user plane functional entity in an embodiment of the present application;
图15为本申请实施例中会话管理功能实体的另一个示意图。Fig. 15 is another schematic diagram of the session management functional entity in the embodiment of the present application.
具体实施方式Detailed ways
本申请的数据传输方法可以应用于端到端的数据传输场景。例如,5G网络中终端与应用功能实体之间的数据传输场景。应理解,本申请的数据传输方法应用的无线通信网络还可以是5G之后的网络。The data transmission method of the present application can be applied to an end-to-end data transmission scenario. For example, the data transmission scenario between the terminal and the application function entity in the 5G network. It should be understood that the wireless communication network to which the data transmission method of the present application is applied may also be a network after 5G.
下面通过一个具体应用场景进行说明,参阅图2,无线通信网络包括第一终端201、第二终端202,第一基站211,第二基站212,第一用户面功能实体(user plane function,UPF实体)221,第二用户面功能实体222,应用功能(application function,AF)实体 23,会话管理功能实体24,测量控制功能(policy control function,PCF)实体25和网络能力开放功能(network exposure function,NEF)实体26。A specific application scenario is described below. Referring to FIG. 2, the wireless communication network includes a first terminal 201, a second terminal 202, a first base station 211, a second base station 212, and a first user plane function (UPF entity). ) 221, a second user plane function entity 222, an application function (application function, AF) entity 23, a session management function entity 24, a measurement control function (policy control function, PCF) entity 25 and a network capability exposure function (network exposure function, NEF) Entity 26.
第一终端201和第二终端202可以是但不限于手机、平板电脑、车载电脑、智能可穿戴设备、物联网设备等。终端也称为用户设备(user equipment,UE),移动设备,无线通信设备等。The first terminal 201 and the second terminal 202 may be, but not limited to, a mobile phone, a tablet computer, a vehicle computer, a smart wearable device, an Internet of Things device, and the like. The terminal is also called user equipment (user equipment, UE), mobile device, wireless communication device, and the like.
第一用户面功能实体221、第二用户面功能实体222、会话管理功能实体24、测量控制功能实体25、网络能力开放功能实体26都是5G核心网的网元。第一用户面功能实体221和第二用户面功能实体222负责路由转发,策略实施,流量报告,服务质量(quality of service,QoS)处理。会话管理功能实体24用于为终端选择一个用户面功能实体作为用户面锚点。测量控制功能实体25用于向控制面功能实体(如会话管理功能实体24)提供策略规则。网络能力开放功能实体26用于通过应用程序接口(application programming interface,API)接口向互联网服务器开放5G网络功能。应用功能实体23是用于提供互联网服务的OTT服务器。OTT是over the top的缩写,具体是指互联网企业利用运营商的宽带网络发展自己的业务的技术。OTT业务包括但不限于金融交易、电商订单、在线票务等。The first user plane functional entity 221, the second user plane functional entity 222, the session management functional entity 24, the measurement control functional entity 25, and the network capability opening functional entity 26 are all network elements of the 5G core network. The first user plane functional entity 221 and the second user plane functional entity 222 are responsible for routing and forwarding, policy enforcement, traffic reporting, and quality of service (quality of service, QoS) processing. The session management function entity 24 is used to select a user plane function entity as a user plane anchor point for the terminal. The measurement control functional entity 25 is used to provide policy rules to the control plane functional entity (such as the session management functional entity 24). The network capability opening function entity 26 is used to open the 5G network function to the Internet server through an application programming interface (application programming interface, API) interface. The application functional entity 23 is an OTT server for providing Internet services. OTT is the abbreviation of over the top, which specifically refers to the technology that Internet companies use the broadband network of operators to develop their own business. OTT services include but are not limited to financial transactions, e-commerce orders, online ticketing, etc.
当第一终端201向应用功能实体23发送业务数据时,业务数据依次经过第一基站211和第一用户面功能实体221到达应用功能实体23。当应用功能实体23向第一终端201发送业务数据时,业务数据依次经过第一用户面功能实体221和第一基站211到达第一终端201。第二终端202和应用功能实体23之间传输的数据会经过第二基站212和第二用户面功能实体222。When the first terminal 201 sends service data to the application function entity 23, the service data arrives at the application function entity 23 through the first base station 211 and the first user plane function entity 221 in sequence. When the application function entity 23 sends service data to the first terminal 201 , the service data arrives at the first terminal 201 through the first user plane function entity 221 and the first base station 211 in sequence. The data transmitted between the second terminal 202 and the application function entity 23 will go through the second base station 212 and the second user plane function entity 222 .
在5G核心网中各功能实体可以通过接口进行通信。例如,会话管理功能实体24通过N4接口与第一用户面功能实体221和第二用户面功能实体222进行通信。应用功能实体23通过N6接口与第一用户面功能实体221和第二用户面功能实体222进行通信。会话管理功能实体24通过N7接口与测量控制功能实体25通信。网络能力开放功能实体26通过N30接口与测量控制功能实体25通信。网络能力开放功能实体26通过N33接口与应用功能实体23通信。In the 5G core network, various functional entities can communicate through interfaces. For example, the session management function entity 24 communicates with the first user plane function entity 221 and the second user plane function entity 222 through the N4 interface. The application function entity 23 communicates with the first user plane function entity 221 and the second user plane function entity 222 through the N6 interface. The session management functional entity 24 communicates with the measurement control functional entity 25 through the N7 interface. The network capability opening function entity 26 communicates with the measurement control function entity 25 through the N30 interface. The network capability opening function entity 26 communicates with the application function entity 23 through the N33 interface.
在OTT业务中,金融交易、电商订单、在线票务等事务型处理的服务器一般不能分散和下沉部署。而5GC中UPF实体的部署站点较为分散、地理分布较广。由于不同用户面功能实体到同一台服务器的路由跳数、出口带宽不同,因此不同终端访问同一服务器的时延存在差异。例如,第一终端201访问某个服务器的时延大于第二终端202访问该服务器的时延。In OTT services, transactional processing servers such as financial transactions, e-commerce orders, and online ticketing generally cannot be deployed in a decentralized manner. However, the deployment sites of UPF entities in 5GC are relatively scattered and geographically distributed. Since different user plane functional entities have different routing hops and egress bandwidths to the same server, there are differences in the time delays for different terminals to access the same server. For example, the time delay for the first terminal 201 to access a certain server is greater than the time delay for the second terminal 202 to access the server.
由于现有的测量时延的方法只是测量终端到UPF实体之间的时延,而不是终端到AF实体之间的时延,因此业务时延难以得到保障。为了改善业务时延,本申请提供一种数据传输方法,能够测量UPF实体到AF之间的时延,根据测量时延调整端到端的数据传输路径,从而降低端到端的时延。下面对本申请的数据传输方法进行介绍,参阅图3,本申请提供一种数据传输方法的一个实施例包括:Since the existing delay measurement method only measures the delay between the terminal and the UPF entity, but not the delay between the terminal and the AF entity, it is difficult to guarantee the service delay. In order to improve the service delay, this application provides a data transmission method, which can measure the delay between the UPF entity and the AF, and adjust the end-to-end data transmission path according to the measured delay, thereby reducing the end-to-end delay. The data transmission method of the present application is introduced below. Referring to FIG. 3, an embodiment of a data transmission method provided by the present application includes:
步骤301、第一用户面功能实体获取第一往返时延。Step 301, the first user plane functional entity acquires the first round-trip delay.
第一往返时延是第一UPF实体与目标AF实体之间的往返时延(round trip time,RTT)。往返时延也称为环路时延。目标AF实体是一个提供业务服务的设备,具体可以是但不限于金融交易服务器、电商订单服务器、在线票务服务器等。The first round trip time delay is a round trip time delay (round trip time, RTT) between the first UPF entity and the target AF entity. The round-trip delay is also called the round-trip delay. The target AF entity is a device that provides business services, specifically, but not limited to, a financial transaction server, an e-commerce order server, an online ticketing server, and the like.
步骤302、第一用户面功能实体将第一往返时延发送给会话管理功能实体。Step 302, the first user plane functional entity sends the first round-trip delay to the session management functional entity.
步骤303、第二用户面功能实体获取第二往返时延。Step 303, the second user plane functional entity acquires a second round-trip delay.
第二往返时延是第二UPF实体与目标AF实体之间的往返时延。The second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity.
步骤304、第二用户面功能实体将第二往返时延发送给会话管理功能实体。Step 304, the second user plane functional entity sends the second round-trip delay to the session management functional entity.
步骤305、会话管理功能实体向第二用户面功能实体发送第二消息。Step 305, the session management functional entity sends a second message to the second user plane functional entity.
可选的,当第一往返时延大于第二往返时延与预设阈值之和时,会话管理功能实体向第二用户面功能实体发送第二消息。预设阈值大于0,具体可以根据UPF之间的时延或者实际情况进行设置。当第一往返时延大于第二往返时延与预设阈值之和时,表明第一UPF实体与目标AF实体之间的往返时延有优化的可能性。Optionally, when the first round-trip delay is greater than the sum of the second round-trip delay and the preset threshold, the session management functional entity sends the second message to the second user plane functional entity. The preset threshold is greater than 0, which can be set according to the delay between UPFs or the actual situation. When the first round-trip delay is greater than the sum of the second round-trip delay and the preset threshold, it indicates that the round-trip delay between the first UPF entity and the target AF entity may be optimized.
步骤306、第二用户面功能实体根据第二消息获取第二测量时延。Step 306, the second user plane functional entity obtains the second measurement delay according to the second message.
第二测量时延是第二用户面功能实体与第一用户面功能实体之间的往返时延。The second measurement delay is the round-trip delay between the second user plane functional entity and the first user plane functional entity.
步骤307、第二用户面功能实体将第二测量时延发送给会话管理功能实体。Step 307, the second user plane functional entity sends the second measured delay to the session management functional entity.
步骤308、会话管理功能实体根据第二测量时延确定第三往返时延。Step 308, the session management function entity determines a third round-trip delay according to the second measured delay.
第三往返时延是第一UPF实体与第二UPF实体之间的往返时延。可选的,第三往返时延等于第二测量时延。The third round-trip delay is the round-trip delay between the first UPF entity and the second UPF entity. Optionally, the third round-trip delay is equal to the second measurement delay.
步骤309、会话管理功能实体判断第一往返时延是否大于第二往返时延与第三往返时延之和,若是,则执行步骤310和步骤311,若否,则不执行后续步骤。Step 309, the session management function entity judges whether the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, if yes, execute steps 310 and 311, if not, do not execute subsequent steps.
步骤310、会话管理功能实体向第一用户面功能实体发送第一通知。第一通知可以包括第一终端的会话标识,还可以包括第一终端的用户标识。第一通知包括一个或多个消息。Step 310, the session management functional entity sends a first notification to the first user plane functional entity. The first notification may include the session identifier of the first terminal, and may also include the user identifier of the first terminal. The first notification includes one or more messages.
步骤311、会话管理功能实体向第二用户面功能实体发送第二通知。Step 311, the session management functional entity sends a second notification to the second user plane functional entity.
第二通知包括第一终端的会话标识,还可以包括第一终端的用户标识。用户标识包括但不限于国际移动用户识别码(international mobile subscriber identity,IMSI),移动用户国际综合业务数字网号(mobile subscriber international integrated service digital network number,MSISDN),国际移动设备识别码(international mobile equipment identity,IMEI)中的一个或多个。第二用户面功能实体根据第二通知可以建立第一终端的上下文,这样第二UPF实体可以作为第一终端与目标AF实体之间的另一个PSA。The second notification includes the session identifier of the first terminal, and may also include the user identifier of the first terminal. User identification includes but not limited to international mobile subscriber identity (IMSI), mobile subscriber international integrated service digital network number (mobile subscriber international integrated service digital network number, MSISDN), international mobile equipment identity (international mobile equipment one or more of identity, IMEI). The second user plane functional entity can establish the context of the first terminal according to the second notification, so that the second UPF entity can serve as another PSA between the first terminal and the target AF entity.
应理解,第二通知包括一个或多个消息。步骤310和步骤311并无固定先后顺序。步骤311可以在步骤310之前执行,或者两个步骤是并行的。It should be understood that the second notification includes one or more messages. Step 310 and step 311 have no fixed sequence. Step 311 can be performed before step 310, or the two steps can be performed in parallel.
步骤312、第一用户面功能实体接收第一终端发送的目标上行数据。目标上行数据可以是传输控制协议(transmission control protocol,TCP)报文。Step 312, the first user plane functional entity receives the target uplink data sent by the first terminal. The target uplink data may be a transmission control protocol (transmission control protocol, TCP) message.
步骤313、第一用户面功能实体根据第一通知将目标上行数据发送给第二用户面功能实体。目标上行数据是指源网际互连协议(internet protocol,IP)地址为第一终端的第一IP地址,目的IP地址为目标AF实体的IP地址的上行数据。第一IP地址是属于专用网络的源IP地址,专用网络也称为私网。Step 313, the first user plane functional entity sends the target uplink data to the second user plane functional entity according to the first notification. The target uplink data refers to uplink data whose source Internet protocol (internet protocol, IP) address is the first IP address of the first terminal, and whose destination IP address is the IP address of the target AF entity. The first IP address is a source IP address belonging to a private network, which is also called a private network.
第一UPF实体收到第一通知后,可以根据第一通知添加流量分类功能。当第一UPF实体收到上行数据之后,通过流量分类功能可以获取目标上行数据,然后将目标上行数据发送给第二UPF实体。第一UPF实体可以转发除去目标上行数据之外的其他上行数据,即第一UPF实体作为其他上行数据的PSA。After receiving the first notification, the first UPF entity may add a traffic classification function according to the first notification. After the first UPF entity receives the uplink data, it can obtain the target uplink data through the traffic classification function, and then send the target uplink data to the second UPF entity. The first UPF entity may forward other uplink data except the target uplink data, that is, the first UPF entity serves as the PSA of the other uplink data.
步骤314、第二用户面功能实体根据第二通知将目标上行数据发送给目标应用功能实体。Step 314, the second user plane functional entity sends the target uplink data to the target application functional entity according to the second notification.
需要说明的是的,第二UPF实体可以将目标上行数据直接发送给目标AF实体,也可以将目标上行数据的源IP地址和源端口号进行网络地址端口转换之后,将转换后的目标上行数据发送给目标AF实体。第二UPF实体还可以根据第二通知接收目标应用功能实体发送的目标下行数据,然后将目标下行数据发送给第一UPF实体,目标下行数据是目标AF实体向第一终端发送的数据。It should be noted that the second UPF entity may directly send the target uplink data to the target AF entity, or may convert the source IP address and source port number of the target uplink data to the network address and port number, and then convert the converted target uplink data Sent to the target AF entity. The second UPF entity may also receive the target downlink data sent by the target application function entity according to the second notification, and then send the target downlink data to the first UPF entity, where the target downlink data is data sent by the target AF entity to the first terminal.
本实施例中,SMF实体可以获取第一往返时延、第二往返时延和第三往返时延。当第一往返时延大于第二往返时延与第三往返时延之和时,表明数据经过第一UPF实体和第二UPF实体到达目标AF实体比数据经过第一UPF实体到达目标AF实体更快,这样第一UPF实体将目标上行数据转发给第二UPF实体,第二UPF实体将目标上行数据发送给目标AF实体,能够缩短数据传输时间,以符合端到端的时延要求。其中,第一UPF实体作为PSA1,第二UPF实体作为PSA2。In this embodiment, the SMF entity may obtain the first round-trip delay, the second round-trip delay, and the third round-trip delay. When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, it indicates that the data reaches the target AF entity through the first UPF entity and the second UPF entity than the data reaches the target AF entity through the first UPF entity. Fast, so that the first UPF entity forwards the target uplink data to the second UPF entity, and the second UPF entity sends the target uplink data to the target AF entity, which can shorten the data transmission time to meet the end-to-end delay requirement. Wherein, the first UPF entity is PSA1, and the second UPF entity is PSA2.
应理解,按照本申请的方法测量得到多个UPF实体与目标AF实体之间的时延和多个UPF实体之间的时延后,就可以确定经过一个或多个UPF实体的路径时延。通常可以选择路径时延最短的路径传输数据,也可以根据实际情况选择其他路径传输数据。It should be understood that, after the time delays between multiple UPF entities and the target AF entity and the time delays between multiple UPF entities are measured according to the method of the present application, the path delay passing through one or more UPF entities can be determined. Usually, the path with the shortest path delay can be selected for data transmission, or other paths can be selected for data transmission according to actual conditions.
需要说明的是,本申请中还可以确定各实体之间的单向传输时延,然后根据单项传输时延来判断是否需要调整数据传输路径。设备A与设备B之间的单向传输时延等于设备A与设备B之间往返时延的一半。设备A或设备B可以是但不限于本申请中的终端、基站、UPF实体、AF实体。It should be noted that in this application, it is also possible to determine the one-way transmission delay between entities, and then determine whether to adjust the data transmission path according to the single transmission delay. The one-way transmission delay between device A and device B is equal to half of the round-trip delay between device A and device B. Device A or device B may be, but not limited to, a terminal, a base station, a UPF entity, and an AF entity in this application.
下面对获取往返时延的方法进行详细介绍,参阅图4,在一个可选实施例中,步骤301包括:The method for obtaining the round-trip delay is described in detail below, referring to Figure 4, in an optional embodiment, step 301 includes:
步骤401、第一用户面功能实体接收第一终端发送的上行数据。上行数据可以是TCP报文。Step 401, the first user plane functional entity receives uplink data sent by the first terminal. The uplink data may be a TCP packet.
步骤402、第一用户面功能实体向目标应用功能实体发送上行数据。Step 402, the first user plane functional entity sends uplink data to the target application functional entity.
步骤403、第一用户面功能实体接收目标应用功能实体发送的确认帧。确认帧是目标AF实体响应上行数据生成的。Step 403, the first user plane functional entity receives the confirmation frame sent by the target application functional entity. The confirmation frame is generated by the target AF entity in response to uplink data.
步骤404、第一用户面功能实体根据发送上行数据的时刻和接收确认帧的时刻,确定第一往返时延。Step 404, the first user plane functional entity determines the first round-trip delay according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
本实施例中,第一用户面功能实体在发送上行数据时可以获取发送上行数据的时刻,在接收确认帧时可以获取接收确认帧的时刻,这样可以确定第一用户面功能实体与目标应用功能实体之间的往返时延。应理解,步骤401为可选的。在另一个可选实施例中,直接执行步骤402至步骤404也可以获取第一用户面功能实体与目标应用功能实体之间的往返 时延。In this embodiment, the first user plane functional entity can obtain the time of sending uplink data when sending uplink data, and can obtain the time of receiving the confirmation frame when receiving the confirmation frame, so that the first user plane functional entity and the target application function can be determined The round-trip delay between entities. It should be understood that step 401 is optional. In another optional embodiment, directly executing steps 402 to 404 may also obtain the round-trip delay between the first user plane functional entity and the target application functional entity.
下面对获取第二往返时延的方法进行介绍,参阅图5,在一个可选实施例中,步骤303包括:The method for obtaining the second round-trip delay is introduced below. Referring to FIG. 5, in an optional embodiment, step 303 includes:
步骤501、第二用户面功能实体接收第二终端发送的上行数据。上行数据可以是TCP报文。Step 501, the second user plane functional entity receives uplink data sent by the second terminal. The uplink data may be a TCP packet.
步骤502、第二用户面功能实体向目标应用功能实体发送上行数据。Step 502, the second user plane functional entity sends uplink data to the target application functional entity.
步骤503、第二用户面功能实体接收目标应用功能实体发送的确认帧。Step 503, the second user plane functional entity receives the confirmation frame sent by the target application functional entity.
确认帧是目标AF实体响应上行数据生成的。The confirmation frame is generated by the target AF entity in response to uplink data.
步骤504、第二用户面功能实体根据发送上行数据的时刻和接收确认帧的时刻,确定第二往返时延。Step 504, the second user plane functional entity determines the second round-trip delay according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
本实施例中,第二用户面功能实体在发送上行数据时可以获取发送上行数据的时刻,在接收确认帧时可以获取接收确认帧的时刻,这样可以确定第二用户面功能实体与目标应用功能实体之间的往返时延。应理解,步骤501为可选的。在另一个可选实施例中,直接执行步骤502至步骤504也可以获取第二用户面功能实体与目标应用功能实体之间的往返时延。In this embodiment, the second user plane functional entity can obtain the time of sending the uplink data when sending the uplink data, and can obtain the time of receiving the confirmation frame when receiving the confirmation frame, so that the second user plane functional entity and the target application function can be determined The round-trip delay between entities. It should be understood that step 501 is optional. In another optional embodiment, directly executing steps 502 to 504 may also obtain the round-trip delay between the second user plane functional entity and the target application functional entity.
下面对UPF实体之间的往返时延的测量过程进行介绍,参阅图6,在另一个可选实施例中,步骤306包括:The following is an introduction to the measurement process of the round-trip delay between UPF entities. Referring to FIG. 6, in another optional embodiment, step 306 includes:
步骤601、第二用户面功能实体根据第二消息向第一用户面功能实体发送回声请求。Step 601, the second user plane functional entity sends an echo request to the first user plane functional entity according to the second message.
步骤602、第二用户面功能实体接收第一UPF实体发送的回声响应。Step 602, the second user plane functional entity receives the echo response sent by the first UPF entity.
步骤603、第二用户面功能实体根据发送回声请求的时刻和接收回声响应的时刻,确定第二用户面功能实体与第一用户面功能实体之间的第二测量时延。Step 603, the second user plane functional entity determines a second measurement delay between the second user plane functional entity and the first user plane functional entity according to the time when the echo request is sent and the time when the echo response is received.
本实施例中,回声请求和回声响应可以是但不限于GPRS隧道协议(GPRS tunneling protocol,GTP)路径维护消息中的信令。GTP可以是但不限于GTP-U。In this embodiment, the echo request and the echo response may be, but not limited to, signaling in a GPRS tunneling protocol (GPRS tunneling protocol, GTP) path maintenance message. GTP can be, but is not limited to, GTP-U.
第二测量时延是第二UPF实体与第一UPF实体之间的往返时延。可选的,第二测量时延等于第三往返时延。这样提供了一种测量UPF实体之间往返时延的方法。The second measurement delay is the round-trip delay between the second UPF entity and the first UPF entity. Optionally, the second measurement delay is equal to the third round-trip delay. This provides a way to measure the round-trip delay between UPF entities.
本申请可以通过多种方式确定第二UPF实体与第一UPF实体之间的往返时延。以上对第二测量时延作为第三往返时延的情况进行了介绍,下面介绍另一种获取第三往返时延的方法。The present application may determine the round-trip delay between the second UPF entity and the first UPF entity in various ways. The situation that the second measurement delay is used as the third round-trip delay is introduced above, and another method for obtaining the third round-trip delay is introduced below.
在另一个可选实施例中,上述数据传输方法还包括:SMF实体向第一UPF实体发送第一消息,第一消息包括第二UPF实体的IP地址;第一UPF实体根据第一消息获取第一测量时延之后,SMF实体接收第一UPF实体发送的第一测量时延;根据第二测量时延和第一测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延。In another optional embodiment, the above data transmission method further includes: the SMF entity sends a first message to the first UPF entity, and the first message includes the IP address of the second UPF entity; the first UPF entity obtains the second UPF entity according to the first message. After a measurement delay, the SMF entity receives the first measurement delay sent by the first UPF entity; determines the third round-trip time between the first UPF entity and the second UPF entity according to the second measurement delay and the first measurement delay delay.
本实施例中,第三往返时延可以是第一测量时延与第二测量时延的算术平均值。In this embodiment, the third round-trip delay may be an arithmetic mean of the first measured delay and the second measured delay.
可选的,第一UPF实体根据第一消息获取第一测量时延包括:第一UPF实体根据第一消息向第二UPF实体发送回声请求,接收第二UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第一UPF实体与第二UPF实体之间的第一测量时延。Optionally, the acquiring the first measurement delay by the first UPF entity according to the first message includes: the first UPF entity sends an echo request to the second UPF entity according to the first message, and receives an echo response sent by the second UPF entity; The moment of the request and the moment of receiving the echo response determine a first measured delay between the first UPF entity and the second UPF entity.
在另一个可选实施例中,SMF实体还可以将第一测量时延作为第三往返时延。In another optional embodiment, the SMF entity may also use the first measurement delay as the third round-trip delay.
在另一个可选实施例中,第二UPF实体收到目标上行数据之后,将目标上行数据中第一IP地址和第一端口号进行网络地址端口转换;将网络地址端口转换后的目标上行数据发送给目标AF实体,网络地址端口转换后的目标上行数据包括第二IP地址和第二端口号;第二UPF实体接收目标AF实体发送的目标下行数据之后,目标下行数据的目的地址为第二IP地址,目标下行数据的目的端口号为第二端口号;将目标下行数据中的目的IP地址和目的端口号进行网络地址端口转换;将网络地址端口转换后的目标下行数据发送给第一UPF实体,网络地址端口转换后的目标下行数据包括第一IP地址和第一端口号。In another optional embodiment, after the second UPF entity receives the target uplink data, it performs network address port conversion on the first IP address and the first port number in the target uplink data; the target uplink data after the network address port conversion Sent to the target AF entity, the target uplink data after network address port conversion includes the second IP address and the second port number; after the second UPF entity receives the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second The IP address, the destination port number of the target downlink data is the second port number; the destination IP address and the destination port number in the target downlink data are subjected to network address port conversion; the target downlink data after the network address port conversion is sent to the first UPF In the entity, the target downlink data after network address port translation includes a first IP address and a first port number.
本实施例中,目标上行数据中的第一IP地址和第二IP地址为源IP地址,第一端口号和第二端口号为源端口号。目标下行数据中的第一IP地址和第二IP地址为目的IP地址,第一端口号和第二端口号为目的端口号。In this embodiment, the first IP address and the second IP address in the target uplink data are source IP addresses, and the first port number and the second port number are source port numbers. The first IP address and the second IP address in the target downlink data are destination IP addresses, and the first port number and the second port number are destination port numbers.
第二UPF实体将目标上行数据的源IP地址(即第一IP地址)和源端口号(即第一端口号)进行网络地址转换,使得第一终端的私网地址转换为公网地址(包括第二IP地址和第二端口号)。经过网络地址转换之后,来自目标AF实体的目标下行数据可以经过第二UPF实体和第一UPF实体到达第一终端。第二UPF实体作为PSA2,第一UPF实体作为PSA1。The second UPF entity performs network address translation on the source IP address (ie, the first IP address) and the source port number (ie, the first port number) of the target uplink data, so that the private network address of the first terminal is converted into a public network address (including second IP address and second port number). After the network address translation, the target downlink data from the target AF entity can reach the first terminal through the second UPF entity and the first UPF entity. The second UPF entity is PSA2, and the first UPF entity is PSA1.
网络地址转换可以防止目标下行数据不经过第二UPF实体从第一UPF实体到达第一终端,从而防止下行路由冲突,而且可以缩短下行传输时间。Network address translation can prevent target downlink data from reaching the first terminal from the first UPF entity without passing through the second UPF entity, thereby preventing downlink routing conflicts and shortening downlink transmission time.
下面对另一种测量UPF实体与应用功能实体之间的往返时延的方法进行介绍,参阅图7,本申请提供的数据传输方法的另一个实施例包括:Another method for measuring the round-trip delay between the UPF entity and the application function entity is introduced below. Referring to FIG. 7, another embodiment of the data transmission method provided by the present application includes:
步骤701、会话管理功能实体接收来自目标应用功能实体的第一消息。Step 701, the session management function entity receives the first message from the target application function entity.
本实施例中,第一消息包括第一终端的标识、第二终端的标识、目标应用功能实体的标识、第一端到端时延和第二端到端时延。标识可以是但不限于IP五元组。IP五元组包括源IP地址,源端口号,目的IP地址,目的端口号和传输层协议。第一消息可以包括三个以上的终端标识和三个以上的端到端时延。In this embodiment, the first message includes the identifier of the first terminal, the identifier of the second terminal, the identifier of the target application function entity, the first end-to-end delay, and the second end-to-end delay. An identifier can be, but is not limited to, an IP quintuple. IP quintuple includes source IP address, source port number, destination IP address, destination port number and transport layer protocol. The first message may include more than three terminal identifiers and more than three end-to-end delays.
目标AF实体可以测量第一端到端时延和第二端到端时延。第一端到端时延是第一终端与目标AF实体之间的往返时延,第二端到端时延是第二终端与目标AF实体之间的往返时延。可选的,目标AF实体多次测量第一终端与目标AF实体之间的往返时延,将多次测量结果的平均值作为第一端到端时延。和/或,目标AF实体多次测量第二终端与目标AF实体之间的往返时延,将多次测量结果的平均值作为第二端到端时延。The target AF entity may measure the first end-to-end delay and the second end-to-end delay. The first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second end-to-end delay is the round-trip delay between the second terminal and the target AF entity. Optionally, the target AF entity measures the round-trip delay between the first terminal and the target AF entity multiple times, and uses the average value of the multiple measurement results as the first end-to-end delay. And/or, the target AF entity measures the round-trip delay between the second terminal and the target AF entity multiple times, and uses the average value of the multiple measurement results as the second end-to-end delay.
第一消息从目标AF实体到达SMF实体可能还要经过其他网元。在一个示例中,目标AF实体将第一消息发送给NEF实体,NEF实体将第一消息发送给PCF实体,PCF实体将第一消息发送给SMF实体。From the target AF entity to the SMF entity, the first message may still pass through other network elements. In an example, the target AF entity sends the first message to the NEF entity, the NEF entity sends the first message to the PCF entity, and the PCF entity sends the first message to the SMF entity.
步骤702、第一用户面功能实体获取第一测量时延。Step 702, the first user plane functional entity acquires the first measurement delay.
第一测量时延是第一终端与第一UPF实体之间的往返时延。获取第一测量时延的方法可参阅背景技术中终端与UPF实体之间的时延的测量方法。可选的,多次测量第一终端与第一UPF实体之间的时延,确定第一测量时延为多次测量结果的平均值。The first measured delay is a round-trip delay between the first terminal and the first UPF entity. For the method of obtaining the first measurement delay, refer to the method for measuring the delay between the terminal and the UPF entity in the background art. Optionally, the time delay between the first terminal and the first UPF entity is measured multiple times, and the first measured time delay is determined as an average value of the multiple measurement results.
步骤703、第一用户面功能实体将第一测量时延发送给会话管理功能实体。Step 703, the first user plane functional entity sends the first measured delay to the session management functional entity.
步骤704、会话管理功能实体确定第一往返时延等于第一端到端时延减去第一测量时延 得到的差值。Step 704, the session management function entity determines that the first round-trip delay is equal to the difference obtained by subtracting the first measured delay from the first end-to-end delay.
步骤705、第二用户面功能实体获取第二测量时延。Step 705, the second user plane functional entity acquires the second measurement delay.
第二测量时延是第二终端与第二UPF实体之间的往返时延。可选的,多次测量第二终端与第二UPF实体之间的时延,确定第二测量时延为多次测量结果的平均值。The second measurement delay is a round-trip delay between the second terminal and the second UPF entity. Optionally, the time delay between the second terminal and the second UPF entity is measured multiple times, and the second measured time delay is determined as an average value of the multiple measurement results.
步骤706、第二用户面功能实体将第二测量时延发送给会话管理功能实体。Step 706, the second user plane functional entity sends the second measured delay to the session management functional entity.
步骤707、会话管理功能实体确定第二往返时延等于第二端到端时延减去第二测量时延得到的差值。Step 707, the session management function entity determines that the second round-trip delay is equal to the difference obtained by subtracting the second measured delay from the second end-to-end delay.
步骤708、会话管理功能实体向第二用户面功能实体发送第二消息。Step 708, the session management functional entity sends a second message to the second user plane functional entity.
步骤709、第二用户面功能实体根据第二消息获取第三测量时延。Step 709, the second user plane functional entity acquires the third measurement delay according to the second message.
第三测量时延是第二UPF实体与第一UPF实体之间的往返时延。The third measurement delay is the round-trip delay between the second UPF entity and the first UPF entity.
步骤710、第二用户面功能实体将第三测量时延发送给会话管理功能实体。Step 710, the second user plane functional entity sends the third measured delay to the session management functional entity.
步骤711、会话管理功能实体根据第三测量时延确定第三往返时延。Step 711, the session management function entity determines a third round-trip delay according to the third measured delay.
可选的,第三测量时延等于第三往返时延。Optionally, the third measurement delay is equal to the third round-trip delay.
步骤712、会话管理功能实体判断第一往返时延是否大于第二往返时延与第三往返时延之和,若是,则执行步骤713和步骤714,若否,则不执行后续步骤。Step 712, the session management function entity judges whether the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, if yes, execute steps 713 and 714, if not, do not execute subsequent steps.
步骤713、会话管理功能实体向第一用户面功能实体发送第一通知。第一通知可以包括第一终端的会话标识,还可以包括第一终端的用户标识。Step 713, the session management functional entity sends a first notification to the first user plane functional entity. The first notification may include the session identifier of the first terminal, and may also include the user identifier of the first terminal.
步骤714、会话管理功能实体向第二用户面功能实体发送第二通知。Step 714, the session management functional entity sends a second notification to the second user plane functional entity.
第二通知包括第一终端的会话标识,还可以包括第一终端的用户标识。用户标识包括但不限于IMSI,MSISDN,IMEI中的一个或多个。第二UPF实体根据第二通知可以建立第一终端的上下文,这样第二UPF实体可以作为第一终端与目标AF实体之间的另一个PSA。The second notification includes the session identifier of the first terminal, and may also include the user identifier of the first terminal. The user identifier includes but not limited to one or more of IMSI, MSISDN, and IMEI. The second UPF entity can establish the context of the first terminal according to the second notification, so that the second UPF entity can serve as another PSA between the first terminal and the target AF entity.
步骤713和步骤714并无固定的先后顺序。步骤713可以在步骤714之前执行,或者两个步骤是并行的。Step 713 and step 714 have no fixed sequence. Step 713 can be performed before step 714, or the two steps can be performed in parallel.
步骤715、第一用户面功能实体接收第一终端发送的目标上行数据。目标上行数据可以是用户数据报协议(user datagram protocol,UDP)报文。Step 715, the first user plane functional entity receives the target uplink data sent by the first terminal. The target uplink data may be a user datagram protocol (user datagram protocol, UDP) message.
步骤716、第一用户面功能实体根据第一通知将目标上行数据发送给第二用户面功能实体。Step 716, the first user plane functional entity sends the target uplink data to the second user plane functional entity according to the first notification.
步骤717、第二用户面功能实体根据第二通知将目标上行数据发送给目标应用功能实体。Step 717, the second user plane functional entity sends the target uplink data to the target application functional entity according to the second notification.
本实施例中,SMF实体可以根据终端与目标AF实体之间的往返时延以及终端与UPF实体之间的往返时延确定UPF实体与目标AF实体之间的往返时延。这样提供了另一种测量UPF实体与目标AF实体之间的往返时延的方法。当第一往返时延大于第二往返时延与第三往返时延之和时,表明数据经过第一UPF实体和第二UPF实体到达目标AF实体比数据经过第一UPF实体到达目标AF实体更快,这样第一UPF实体将目标上行数据转发给第二UPF实体,第二UPF实体将目标上行数据发送给目标AF实体,能够缩短数据传输时间,以符合端到端的时延要求。其中,第一UPF实体作为PSA1,第二UPF实体作为PSA2。In this embodiment, the SMF entity may determine the round-trip delay between the UPF entity and the target AF entity according to the round-trip delay between the terminal and the target AF entity and the round-trip delay between the terminal and the UPF entity. This provides another way to measure the round-trip delay between the UPF entity and the target AF entity. When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, it indicates that the data reaches the target AF entity through the first UPF entity and the second UPF entity than the data reaches the target AF entity through the first UPF entity. Fast, so that the first UPF entity forwards the target uplink data to the second UPF entity, and the second UPF entity sends the target uplink data to the target AF entity, which can shorten the data transmission time to meet the end-to-end delay requirement. Wherein, the first UPF entity is PSA1, and the second UPF entity is PSA2.
应理解,目标AF实体可以测量三个以上终端与目标AF实体之间的端到端时延,将测 量得到的多个端到端时延发送给SMF实体。SMF实体还可以接收多个UPF实体发送的UE与UPF实体之间的时延,这样就可以获得多个UPF实体与目标AF实体之间的时延。按照本申请的方法测量得到多个UPF实体之间的时延后,就可以确定经过一个或多个UPF实体的路径时延。通常可以选择路径时延最短的路径传输数据,也可以根据实际情况选择其他路径传输数据。It should be understood that the target AF entity can measure the end-to-end delay between more than three terminals and the target AF entity, and send the measured end-to-end delays to the SMF entity. The SMF entity can also receive the time delay between the UE and the UPF entity sent by multiple UPF entities, so that the time delay between the multiple UPF entities and the target AF entity can be obtained. After the time delay between multiple UPF entities is measured according to the method of the present application, the path time delay passing through one or more UPF entities can be determined. Usually, the path with the shortest path delay can be selected for data transmission, or other paths can be selected for data transmission according to actual conditions.
在一个可选实施例中,上述数据传输方法还包括:第一UPF实体接收SMF实体发送的第三消息,第三消息第二UPF实体的IP地址;根据第三消息向第二UPF实体发送回声请求;接收第二UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第一UPF实体与第二UPF实体之间的第四测量时延;将第四测量时延发送给SMF实体;根据第四测量时延和第三测量时延确定第三往返时延。In an optional embodiment, the above data transmission method further includes: the first UPF entity receives the third message sent by the SMF entity, the IP address of the second UPF entity in the third message; and sends an echo to the second UPF entity according to the third message request; receive the echo response sent by the second UPF entity; determine the fourth measurement delay between the first UPF entity and the second UPF entity according to the moment of sending the echo request and the moment of receiving the echo response; delay the fourth measurement Send to the SMF entity; determine the third round-trip delay according to the fourth measurement delay and the third measurement delay.
本实施例中,第三往返时延是第四测量时延和第三测量时延的算术平均值。In this embodiment, the third round-trip delay is an arithmetic mean value of the fourth measurement delay and the third measurement delay.
在另一个可选实施例中,第三往返时延等于第四测量时延。In another optional embodiment, the third round-trip delay is equal to the fourth measurement delay.
在另一个可选实施例中,步骤709包括:第二UPF实体根据第二消息向第一UPF实体发送回声请求;接收第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第二UPF实体与第一UPF实体之间的第三测量时延。In another optional embodiment, step 709 includes: the second UPF entity sends an echo request to the first UPF entity according to the second message; receives the echo response sent by the first UPF entity; At a moment of , determine a third measurement delay between the second UPF entity and the first UPF entity.
本实施例中,第三测量时延是第二UPF实体与第一UPF实体之间的往返时延。可选的,第三测量时延等于第三往返时延。In this embodiment, the third measurement delay is a round-trip delay between the second UPF entity and the first UPF entity. Optionally, the third measurement delay is equal to the third round-trip delay.
在另一个可选实施例中,第二UPF实体收到目标上行数据之后,将目标上行数据中第一IP地址和第一端口号进行网络地址端口转换;将网络地址端口转换后的目标上行数据发送给目标AF实体,网络地址端口转换后的目标上行数据包括第二IP地址和第二端口号;第二UPF实体接收目标AF实体发送的目标下行数据之后,目标下行数据的目的地址为第二IP地址,目标下行数据的目的端口号为第二端口号;将目标下行数据中的目的IP地址和目的端口号进行网络地址端口转换;将网络地址端口转换后的目标下行数据发送给第一UPF实体,网络地址端口转换后的目标下行数据包括第一IP地址和第一端口号。In another optional embodiment, after the second UPF entity receives the target uplink data, it performs network address port conversion on the first IP address and the first port number in the target uplink data; the target uplink data after the network address port conversion Sent to the target AF entity, the target uplink data after network address port conversion includes the second IP address and the second port number; after the second UPF entity receives the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second The IP address, the destination port number of the target downlink data is the second port number; the destination IP address and the destination port number in the target downlink data are subjected to network address port conversion; the target downlink data after the network address port conversion is sent to the first UPF In the entity, the target downlink data after network address port translation includes a first IP address and a first port number.
本实施例中,目标上行数据中的第一IP地址和第二IP地址为源IP地址,第一端口号和第二端口号为源端口号。目标下行数据中的第一IP地址和第二IP地址均为目的IP地址,第一端口号和第二端口号均为目的端口号。In this embodiment, the first IP address and the second IP address in the target uplink data are source IP addresses, and the first port number and the second port number are source port numbers. Both the first IP address and the second IP address in the target downlink data are destination IP addresses, and both the first port number and the second port number are destination port numbers.
第二UPF实体将目标上行数据的源IP地址和源端口号进行网络地址转换,使得第一终端的私网地址转换为公网地址。经过网络地址转换之后,来自目标AF实体的目标下行数据可以经过第二UPF实体和第一UPF实体到达第一终端。第二UPF实体作为PSA2,第一UPF实体作为PSA1。The second UPF entity performs network address translation on the source IP address and source port number of the target uplink data, so that the private network address of the first terminal is converted into a public network address. After the network address translation, the target downlink data from the target AF entity can reach the first terminal through the second UPF entity and the first UPF entity. The second UPF entity is PSA2, and the first UPF entity is PSA1.
网络地址转换可以防止目标下行数据不经过第二UPF实体从第一UPF实体到达第一终端,从而防止下行路由冲突,而且可以缩短下行传输时间。Network address translation can prevent target downlink data from reaching the first terminal from the first UPF entity without passing through the second UPF entity, thereby preventing downlink routing conflicts and shortening downlink transmission time.
应理解,本申请中的上行是指从终端向AF实体发送,上行数据是指从终端向AF发送的数据。下行是指AF实体向终端发送,下行数据是指AF实体向终端发送的数据。本申请中的第一消息,第二消息和第三消息的描述是对不同的消息进行区分,并不表示对消息发送顺序或消息名称的限定。本申请中的第一通知和第二通知的描述是对不同的通知消息进 行区分,并不表示对通知消息发送顺序或消息名称的限定。本申请中的第一测量时延,第二测量时延,第三测量时延和第四测量时延的描述是对不同的时延进行区分,并不表示对时延发送顺序或时延名称的限定。It should be understood that the uplink in this application refers to the data sent from the terminal to the AF entity, and the uplink data refers to the data sent from the terminal to the AF. The downlink refers to the data sent by the AF entity to the terminal, and the downlink data refers to the data sent by the AF entity to the terminal. The descriptions of the first message, the second message and the third message in this application are to distinguish different messages, and do not represent a limitation on the message sending order or message names. The description of the first notification and the second notification in this application is to distinguish different notification messages, and does not represent a limitation on the order of sending notification messages or message names. The descriptions of the first measurement delay, the second measurement delay, the third measurement delay and the fourth measurement delay in this application are to distinguish different delays, and do not indicate the order of sending delays or the names of delays limit.
以上对本申请的数据传输方法进行了介绍,下面对本申请用于实现上述数据传输方法的装置进行介绍。图8所示的用户面功能实体800可以实现图3至图6所示实施例中第一用户面功能实体执行的步骤。参阅图8,本申请中用户面功能实体800的一个实施例包括:The data transmission method of the present application has been introduced above, and the device for realizing the above data transmission method of the present application will be introduced below. The user plane functional entity 800 shown in FIG. 8 can implement the steps performed by the first user plane functional entity in the embodiments shown in FIGS. 3 to 6 . Referring to FIG. 8, an embodiment of the user plane functional entity 800 in this application includes:
获取单元801,用于获取第一UPF实体与目标AF实体之间的第一往返时延;An acquiring unit 801, configured to acquire a first round-trip delay between a first UPF entity and a target AF entity;
发送单元802,用于将第一往返时延发送给SMF实体;A sending unit 802, configured to send the first round-trip delay to the SMF entity;
接收单元803,用于接收SMF实体发送的第一通知,第一通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,第二往返时延是第二UPF实体与目标AF实体之间的往返时延,第三往返时延是第二UPF实体与第一UPF实体之间的往返时延;The receiving unit 803 is configured to receive the first notification sent by the SMF entity, the first notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the second round-trip time Delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity;
接收单元803,还用于接收来自第一终端的目标上行数据,目标上行数据的目的地址为目标AF实体的IP地址;The receiving unit 803 is further configured to receive target uplink data from the first terminal, where the destination address of the target uplink data is the IP address of the target AF entity;
发送单元802,还用于根据第一通知将目标上行数据发送给第二UPF实体。The sending unit 802 is further configured to send the target uplink data to the second UPF entity according to the first notification.
在一个可选实施例中,获取单元801具体用于接收第一终端发送的上行数据;向目标AF实体发送上行数据;接收目标AF实体发送的确认帧,确认帧是目标AF实体响应上行数据生成的;根据发送上行数据的时刻和接收确认帧的时刻,确定第一UPF实体与目标AF实体之间的第一往返时延。In an optional embodiment, the acquiring unit 801 is specifically configured to receive the uplink data sent by the first terminal; send the uplink data to the target AF entity; receive the confirmation frame sent by the target AF entity, and the confirmation frame is generated by the target AF entity in response to the uplink data and determining the first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
在另一个可选实施例中,In another alternative embodiment,
接收单元803,还用于接收SMF实体发送的第一消息,第一消息包括第二UPF实体的IP地址;The receiving unit 803 is further configured to receive a first message sent by the SMF entity, where the first message includes the IP address of the second UPF entity;
发送单元802,还用于根据第一消息向第二UPF实体发送回声请求;The sending unit 802 is further configured to send an echo request to the second UPF entity according to the first message;
接收单元803,还用于接收第二UPF实体发送的回声响应;The receiving unit 803 is further configured to receive the echo response sent by the second UPF entity;
用户面功能实体800还包括:The user plane functional entity 800 also includes:
确定单元,用于根据发送回声请求的时刻和接收回声响应的时刻,确定第一UPF实体与第二UPF实体之间的第一测量时延;A determining unit, configured to determine a first measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
发送单元802,还用于将第一测量时延发送给SMF实体。The sending unit 802 is further configured to send the first measured delay to the SMF entity.
图8所示实施例中的名称解释,各单元执行的步骤和有益效果可参阅上述实施例中的相应描述。For the explanation of names in the embodiment shown in FIG. 8 , the steps performed by each unit and the beneficial effects can refer to the corresponding descriptions in the above embodiments.
图9所示的用户面功能实体900可以实现图3至图6所示实施例中第二用户面功能实体执行的步骤。参阅图9,本申请中用户面功能实体900的另一个实施例包括:The user plane functional entity 900 shown in FIG. 9 can implement the steps performed by the second user plane functional entity in the embodiments shown in FIGS. 3 to 6 . Referring to FIG. 9, another embodiment of the user plane functional entity 900 in this application includes:
第一获取单元901,用于获取第二UPF实体与目标应用功能AF实体之间的第二往返时延;The first obtaining unit 901 is configured to obtain a second round-trip delay between the second UPF entity and the target application function AF entity;
发送单元902,用于将第二往返时延发送给会话管理功能SMF实体;A sending unit 902, configured to send the second round-trip delay to the session management function SMF entity;
第二获取单元903,用于根据第二消息获取第二UPF实体与第一UPF实体之间的第二测量时延;The second acquiring unit 903 is configured to acquire a second measurement delay between the second UPF entity and the first UPF entity according to the second message;
发送单元902,还用于将第二测量时延发送给SMF实体;The sending unit 902 is further configured to send the second measurement delay to the SMF entity;
接收单元904,用于接收SMF实体发送的第二通知,第二通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,第一往返时延是第一UPF实体与目标AF实体之间的往返时延,第三往返时延是SMF实体根据第二测量时延确定的;The receiving unit 904 is configured to receive the second notification sent by the SMF entity, the second notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the first round-trip time The delay is the round-trip delay between the first UPF entity and the target AF entity, and the third round-trip delay is determined by the SMF entity according to the second measurement delay;
接收单元904,还用于根据第二通知接收第一UPF实体发送的目标上行数据,目标上行数据的目的地址为目标AF实体的IP地址,目标上行数据的源IP地址为第一终端的第一IP地址;The receiving unit 904 is further configured to receive the target uplink data sent by the first UPF entity according to the second notification, the destination address of the target uplink data is the IP address of the target AF entity, and the source IP address of the target uplink data is the first IP address of the first terminal. IP address;
发送单元902,还用于根据第二通知将目标上行数据发送给目标AF实体。The sending unit 902 is further configured to send the target uplink data to the target AF entity according to the second notification.
在一个可选实施例中,In an alternative embodiment,
第一获取单元901具体用于接收第二终端发送的上行数据;将上行数据发送给目标AF实体;接收目标AF实体发送的确认帧,确认帧是目标AF实体响应上行数据生成的;根据发送上行数据的时刻和接收确认帧的时刻,确定第二UPF实体与目标AF实体之间的第二往返时延。The first acquisition unit 901 is specifically configured to receive the uplink data sent by the second terminal; send the uplink data to the target AF entity; receive the confirmation frame sent by the target AF entity, and the confirmation frame is generated by the target AF entity in response to the uplink data; The time of the data and the time of receiving the confirmation frame determine the second round-trip delay between the second UPF entity and the target AF entity.
在另一个可选实施例中,In another alternative embodiment,
第二获取单元903具体用于根据第二消息向第一UPF实体发送回声请求;接收第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第二UPF实体与第一UPF实体之间的第二测量时延。The second acquisition unit 903 is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; determine the second UPF entity and A second measurement delay between the first UPF entities.
在另一个可选实施例中,发送单元902具体用于将目标上行数据中第一IP地址和第一端口号进行网络地址端口转换,得到第二IP地址和第二端口号;将网络地址端口转换后的目标上行数据发送给目标AF实体,网络地址端口转换后的目标上行数据包括第二IP地址和第二端口号;In another optional embodiment, the sending unit 902 is specifically configured to perform network address port conversion on the first IP address and the first port number in the target uplink data to obtain the second IP address and the second port number; The converted target uplink data is sent to the target AF entity, and the target uplink data after network address port conversion includes a second IP address and a second port number;
接收单元904还用于接收目标AF实体发送的目标下行数据,目标下行数据的目的地址为第二IP地址,目标下行数据的目的端口号为第二端口号;The receiving unit 904 is also configured to receive the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number;
发送单元902,还用于将目标下行数据中的第二IP地址和第二端口号进行网络地址端口转换;将网络地址端口转换后的目标下行数据发送给第一UPF实体,网络地址端口转换后的目标下行数据包括第一IP地址和第一端口号。The sending unit 902 is also configured to perform network address port conversion on the second IP address and the second port number in the target downlink data; send the target downlink data after the network address port conversion to the first UPF entity, after the network address port conversion The target downlink data includes a first IP address and a first port number.
图9所示实施例中的名称解释,各单元执行的步骤和有益效果可参阅上述实施例中的相应描述。For the explanation of names in the embodiment shown in FIG. 9 , the steps performed by each unit and the beneficial effects can refer to the corresponding descriptions in the above embodiments.
图10所示的会话管理功能实体1000可以实现图3至图6所示实施例中会话管理功能实体执行的步骤。参阅图10,本申请中会话管理功能实体1000的一个实施例包括:接收单元1001,处理单元1002和发送单元1003;The session management function entity 1000 shown in FIG. 10 can implement the steps performed by the session management function entity in the embodiments shown in FIGS. 3 to 6 . Referring to FIG. 10, an embodiment of a session management function entity 1000 in this application includes: a receiving unit 1001, a processing unit 1002 and a sending unit 1003;
接收单元1001,用于接收第一用户面功能UPF实体发送的第一往返时延,第一往返时延为第一UPF实体与目标应用功能AF实体之间的往返时延;The receiving unit 1001 is configured to receive the first round-trip delay sent by the first user plane function UPF entity, where the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity;
接收单元1001,还用于接收第二UPF实体发送的第二往返时延,第二往返时延为第二UPF实体与目标AF实体之间的往返时延;The receiving unit 1001 is further configured to receive a second round-trip delay sent by the second UPF entity, where the second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity;
发送单元1003,用于向第二UPF实体发送第二消息;a sending unit 1003, configured to send a second message to a second UPF entity;
接收单元1001,还用于接收第二UPF实体发送的第二测量时延,第二测量时延是第二 UPF实体根据第二消息获取的;The receiving unit 1001 is also used to receive the second measurement delay sent by the second UPF entity, and the second measurement delay is obtained by the second UPF entity according to the second message;
处理单元1002,用于根据第二测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延;The processing unit 1002 is configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay;
发送单元1003,还用于当第一往返时延大于第二往返时延与第三往返时延之和时,向第一UPF实体发送第一通知,第一通知用于指示第一UPF实体将来自第一终端的目标上行数据发送给第二UPF实体,目标上行数据的目的IP地址为目标AF实体的IP地址;The sending unit 1003 is further configured to send a first notification to the first UPF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the first notification is used to indicate that the first UPF entity will The target uplink data from the first terminal is sent to the second UPF entity, and the destination IP address of the target uplink data is the IP address of the target AF entity;
发送单元1003,还用于向第二UPF实体发送第二通知,第二通知用于指示第二UPF实体接收第一UPF实体发送的目标上行数据以及向目标AF实体发送目标上行数据。The sending unit 1003 is further configured to send a second notification to the second UPF entity, where the second notification is used to instruct the second UPF entity to receive the target uplink data sent by the first UPF entity and to send the target uplink data to the target AF entity.
在一个可选实施例中,In an alternative embodiment,
发送单元1003,还用于向第一UPF实体发送第一消息,第一消息包括第二UPF实体的IP地址;The sending unit 1003 is further configured to send a first message to the first UPF entity, where the first message includes the IP address of the second UPF entity;
接收单元1001,还用于接收第一UPF实体发送的第一测量时延,第一测量时延是第一UPF实体根据第一消息获取的;The receiving unit 1001 is further configured to receive a first measurement delay sent by the first UPF entity, where the first measurement delay is obtained by the first UPF entity according to the first message;
处理单元1002,具体用于根据第二测量时延和第一测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延。The processing unit 1002 is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay and the first measured delay.
图10所示实施例中的名称解释,各单元执行的步骤和有益效果可参阅上述实施例中的相应描述。For the explanation of names in the embodiment shown in FIG. 10 , the steps performed by each unit and the beneficial effects can refer to the corresponding descriptions in the above embodiments.
图11所示的会话管理功能实体1100能够实现图7所示实施例中会话管理功能实体执行的步骤。参阅图11,会话管理功能实体1100的一个实施例包括:The session management function entity 1100 shown in FIG. 11 can implement the steps performed by the session management function entity in the embodiment shown in FIG. 7 . Referring to Figure 11, an embodiment of the session management function entity 1100 includes:
接收单元1101,用于接收来自目标应用功能AF实体的第一消息,第一消息包括第一终端的标识、第二终端的标识、目标AF实体的标识、第一端到端时延和第二端到端时延,第一端到端时延是第一终端与目标AF实体之间的往返时延,第二端到端时延是第二终端与目标AF实体之间的往返时延;The receiving unit 1101 is configured to receive a first message from a target application function AF entity, where the first message includes the identifier of the first terminal, the identifier of the second terminal, the identifier of the target AF entity, the first end-to-end delay, and the second End-to-end delay, the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second end-to-end delay is the round-trip delay between the second terminal and the target AF entity;
接收单元1101,还用于接收第一UPF实体发送的第一测量时延,第一测量时延是第一终端与第一UPF实体之间的往返时延;The receiving unit 1101 is further configured to receive a first measurement delay sent by the first UPF entity, where the first measurement delay is a round-trip delay between the first terminal and the first UPF entity;
处理单元1102,用于确定第一往返时延等于第一端到端时延减去第一测量时延得到的差值;A processing unit 1102, configured to determine that the first round-trip delay is equal to the difference obtained by subtracting the first end-to-end delay from the first measured delay;
接收单元1101,还用于接收第二UPF实体发送的第二测量时延,第二测量时延是第二终端与第二UPF实体之间的往返时延;The receiving unit 1101 is further configured to receive a second measurement delay sent by the second UPF entity, where the second measurement delay is a round-trip delay between the second terminal and the second UPF entity;
处理单元1102,还用于确定第二往返时延等于第二端到端时延减去第二测量时延得到的差值;The processing unit 1102 is further configured to determine that the second round-trip delay is equal to the difference obtained by subtracting the second end-to-end delay from the second measurement delay;
发送单元1103,用于向第二UPF实体发送第二消息;a sending unit 1103, configured to send a second message to a second UPF entity;
处理单元1102,还用于根据第三测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延;The processing unit 1102 is further configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay;
发送单元1103,还用于当第一往返时延大于第二往返时延与第三往返时延之和时,向第一UPF实体发送第一通知,第一通知用于指示第一UPF实体将来自第一终端的目标上行数据发送给第二UPF实体,目标上行数据的目的IP地址为目标AF实体的IP地址;The sending unit 1103 is further configured to send a first notification to the first UPF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, and the first notification is used to indicate that the first UPF entity will The target uplink data from the first terminal is sent to the second UPF entity, and the destination IP address of the target uplink data is the IP address of the target AF entity;
发送单元1103,还用于向第二UPF实体发送第二通知,第二通知用于指示第二UPF实体接收第一UPF实体发送的目标上行数据以及向目标AF实体发送目标上行数据。The sending unit 1103 is further configured to send a second notification to the second UPF entity, where the second notification is used to instruct the second UPF entity to receive the target uplink data sent by the first UPF entity and to send the target uplink data to the target AF entity.
在一个可选实施例中,In an alternative embodiment,
发送单元1103,还用于向第一UPF实体发送第三消息;The sending unit 1103 is further configured to send a third message to the first UPF entity;
接收单元1101,还用于接收第一UPF实体发送的第四测量时延,第四测量时延是第二UPF实体根据第三消息获取的;The receiving unit 1101 is further configured to receive a fourth measurement delay sent by the first UPF entity, where the fourth measurement delay is obtained by the second UPF entity according to the third message;
处理单元1102,具体用于根据第三测量时延和第四测量时延确定第一UPF实体与第二UPF实体之间的第三往返时延。The processing unit 1102 is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay and the fourth measured delay.
图11所示实施例中的名称解释,各单元执行的步骤和有益效果可参阅图7所示实施例中的相应描述。For the explanation of names in the embodiment shown in FIG. 11 , the steps performed by each unit and the beneficial effects, please refer to the corresponding description in the embodiment shown in FIG. 7 .
图12所示的用户面功能实体1200可以实现图7所示实施例中第一用户面功能实体的功能。参阅图12,本申请中用户面功能实体1200的另一个实施例包括:The user plane functional entity 1200 shown in FIG. 12 can implement the function of the first user plane functional entity in the embodiment shown in FIG. 7 . Referring to Figure 12, another embodiment of the user plane functional entity 1200 in this application includes:
获取单元1201,用于获取第一终端与第一UPF实体之间的第一测量时延;An acquiring unit 1201, configured to acquire a first measurement delay between the first terminal and the first UPF entity;
发送单元1202,用于将第一测量时延发送给会话管理功能SMF实体,第一测量时延用于确定第一往返时延;A sending unit 1202, configured to send the first measured delay to the session management function SMF entity, where the first measured delay is used to determine the first round-trip delay;
接收单元1203,用于接收SMF实体发送的第一通知,第一通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,第二往返时延是第二UPF实体与目标应用功能AF实体之间的往返时延,第三往返时延是第二UPF实体与第一UPF实体之间的往返时延;The receiving unit 1203 is configured to receive the first notification sent by the SMF entity. The first notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay. The second round-trip time Latency is the round-trip delay between the second UPF entity and the target application function AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity;
接收单元1203,还用于接收来自第一终端的目标上行数据,目标上行数据的目的地址为目标AF实体的IP地址;The receiving unit 1203 is further configured to receive target uplink data from the first terminal, where the destination address of the target uplink data is the IP address of the target AF entity;
发送单元1202,还用于根据第一通知将目标上行数据发送给第二UPF实体。The sending unit 1202 is further configured to send the target uplink data to the second UPF entity according to the first notification.
在一个可选实施例中,In an alternative embodiment,
接收单元1203,还用于接收SMF实体发送的第三消息,第三消息第二UPF实体的IP地址;The receiving unit 1203 is further configured to receive a third message sent by the SMF entity, the IP address of the second UPF entity in the third message;
发送单元1202,还用于根据第三消息向第二UPF实体发送回声请求;The sending unit 1202 is further configured to send an echo request to the second UPF entity according to the third message;
接收单元1203,还用于接收第二UPF实体发送的回声响应;The receiving unit 1203 is further configured to receive the echo response sent by the second UPF entity;
用户面功能实体1200还包括:The user plane functional entity 1200 also includes:
处理单元,用于根据发送回声请求的时刻和接收回声响应的时刻,确定第一UPF实体与第二UPF实体之间的第四测量时延;A processing unit, configured to determine a fourth measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
发送单元1202,还用于将第四测量时延发送给SMF实体。The sending unit 1202 is further configured to send the fourth measurement delay to the SMF entity.
图12所示实施例中的名称解释,各单元执行的步骤和有益效果可参阅图7实施例中的相应描述。For the explanation of names in the embodiment shown in FIG. 12 , the steps performed by each unit and the beneficial effects, please refer to the corresponding description in the embodiment in FIG. 7 .
图13所示的用户面功能实体1300可以实现图7所示实施例中第二用户面功能实体的功能。参阅图13,本申请中用户面功能实体1300的一个实施例包括:The user plane functional entity 1300 shown in FIG. 13 can implement the function of the second user plane functional entity in the embodiment shown in FIG. 7 . Referring to Figure 13, an embodiment of the user plane functional entity 1300 in this application includes:
第一获取单元1301,用于获取第二终端与第二UPF实体之间的第二测量时延;The first obtaining unit 1301 is configured to obtain a second measurement delay between the second terminal and the second UPF entity;
发送单元1302,用于将第二测量时延发送给SMF实体,第二测量时延用于确定第二UPF 实体与目标AF实体之间的第二往返时延;A sending unit 1302, configured to send a second measured delay to the SMF entity, where the second measured delay is used to determine a second round-trip delay between the second UPF entity and the target AF entity;
接收单元1303,用于接收SMF实体发送的第二消息,第二消息包括第一UPF实体的IP地址;The receiving unit 1303 is configured to receive a second message sent by the SMF entity, where the second message includes the IP address of the first UPF entity;
第二获取单元1304,用于根据第二消息获取第二UPF实体与第一UPF实体之间的第三测量时延;The second acquiring unit 1304 is configured to acquire a third measurement delay between the second UPF entity and the first UPF entity according to the second message;
发送单元1302,还用于将第三测量时延发送给SMF实体,第三测量时延用于确定第二UPF实体与第一UPF实体之间的第三往返时延;The sending unit 1302 is further configured to send a third measurement delay to the SMF entity, where the third measurement delay is used to determine a third round-trip delay between the second UPF entity and the first UPF entity;
接收单元1303,还用于接收SMF实体发送的第二通知,第二通知是SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,第一往返时延是第一UPF实体与目标应用功能AF实体之间的往返时延;The receiving unit 1303 is also configured to receive the second notification sent by the SMF entity, the second notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the first round-trip Delay is the round-trip delay between the first UPF entity and the target application function AF entity;
接收单元1303,还用于根据第二通知接收第一UPF实体发送的目标上行数据;The receiving unit 1303 is further configured to receive the target uplink data sent by the first UPF entity according to the second notification;
发送单元1302,还用于根据第二通知将目标上行数据发送给目标AF实体。The sending unit 1302 is further configured to send the target uplink data to the target AF entity according to the second notification.
在一个可选实施例中,In an alternative embodiment,
第二获取单元1304,具体用于根据第二消息向第一UPF实体发送回声请求;接收第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定第二UPF实体与第一UPF实体之间的第三测量时延。The second acquisition unit 1304 is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; determine the second UPF entity according to the time when the echo request is sent and the time when the echo response is received A third measurement delay with the first UPF entity.
图13所示实施例中的名称解释,各单元执行的步骤和有益效果可参阅图7实施例中的相应描述。For the explanation of names in the embodiment shown in FIG. 13 , the steps performed by each unit and the beneficial effects, please refer to the corresponding description in the embodiment in FIG. 7 .
下面从硬件装置角度对本申请的用户面功能实体和会话管理功能实体进行介绍,参阅图14,本申请中用户面功能实体1400的另一个实施例包括:通过总线1404连接的处理器1401,存储器1402和网络接口1403。The following describes the user plane functional entity and the session management functional entity of this application from the perspective of hardware devices. Referring to FIG. and network interface 1403 .
本实施例中,存储器1402用于存储程序,指令或数据等信息。通过调用存储器1402存储的程序或指令,处理器1401用于执行图3至图7所示实施例中由第一UPF实体或第二UPF实体执行的步骤。In this embodiment, the memory 1402 is used to store information such as programs, instructions, or data. By invoking the programs or instructions stored in the memory 1402, the processor 1401 is configured to execute the steps performed by the first UPF entity or the second UPF entity in the embodiments shown in FIG. 3 to FIG. 7 .
应理解,本实施例中提及的处理器1401可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the processor 1401 mentioned in this embodiment may be a central processing unit (central processing unit, CPU), and may also be other general processors, digital signal processors (digital signal processors, DSP), application specific integrated circuits ( application specific integrated circuit (ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
还应理解,本申请实施例中提及的存储器1402可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动 态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。It should also be understood that the memory 1402 mentioned in the embodiment of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available such as 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, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM ) and direct memory bus random access memory (direct rambus RAM, DR RAM).
网络接口1403可以用于接收信息或发送信息。信息可以是但不限于消息,数据或指令。 Network interface 1403 may be used to receive information or send information. Information can be, but is not limited to, messages, data or instructions.
参阅图15,本申请中会话管理功能实体1500的另一个实施例包括:通过总线1504连接的处理器1501,存储器1502和网络接口1503。Referring to FIG. 15 , another embodiment of a session management function entity 1500 in this application includes: a processor 1501 , a memory 1502 and a network interface 1503 connected through a bus 1504 .
本实施例中,存储器1502用于存储程序,指令或数据等信息。通过调用存储器1502存储的程序或指令,处理器1501用于执行图3至图7所示实施例中由SMF实体执行的步骤。In this embodiment, the memory 1502 is used to store information such as programs, instructions, or data. By calling the programs or instructions stored in the memory 1502, the processor 1501 is configured to execute the steps executed by the SMF entity in the embodiments shown in FIG. 3 to FIG. 7 .
网络接口1503可以用于接收信息或发送信息。信息可以是但不限于消息,数据或指令。The network interface 1503 can be used to receive information or send information. Information can be, but is not limited to, messages, data or instructions.
应理解,本申请实施例中的处理器1501可以是CPU,还可以是其他通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that the processor 1501 in this embodiment of the present application may be a CPU, or other general-purpose processors, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
还应理解,本申请实施例中提及的存储器1502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是ROM、PROM、EPROM、EEPROM或闪存。易失性存储器可以是RAM,其用作外部高速缓存。需要说明的是,当处理器为通用处理器、DSP、ASIC、FPGA或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件时,存储器(存储模块)集成在处理器中。应注意,本文描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should also be understood that the memory 1502 mentioned in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Wherein, the non-volatile memory may be ROM, PROM, EPROM, EEPROM or flash memory. Volatile memory can be RAM, which acts as external cache memory. It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, the memory (storage module) is integrated in the processor. It should be noted that the memories described herein are intended to include, but are not limited to, these and any other suitable types of memories.
需要说明的是,上述装置各模块/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其带来的技术效果与本申请方法实施例相同,具体内容可参见本申请前述所示的方法实施例中的叙述,此处不再赘述。It should be noted that the information interaction and execution process between the modules/units of the above-mentioned device are based on the same concept as the method embodiment of the present application, and the technical effect it brings is the same as that of the method embodiment of the present application. The specific content can be Refer to the descriptions in the foregoing method embodiments of the present application, and details are not repeated here.
本申请提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行上述实施例或可选实施例中的数据传输方法。The present application provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to execute the data transmission method in the foregoing embodiment or optional embodiment.
本申请还提供一种包括计算机程序产品,当其在计算机上运行时,使得计算机执行如上述所示实施例或可选实施例中的数据传输方法。The present application also provides a computer program product, which, when run on a computer, causes the computer to execute the data transmission method in the above-mentioned embodiments or optional embodiments.
本申请还提供一种芯片系统,该芯片系包括相互耦合的处理器和存储器。存储器用于存储的计算机程序或指令,该处理单元用于执行存储器存储的计算机程序或指令,以使UPF实体执行上述实施例中由第一UPF实体或第二UPF实体执行的步骤。可选地,存储器为芯片内的存储器,如寄存器、缓存等,存储器还可以是站点内的位于芯片外部的存储器,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。上述任一处提到的处理器,可以是一个通用中央处理器,微处理器,专用集成电路(application specific integrated circuit,ASIC)或一个或多个用于实现上述减少竞争冲突的方法的集成电路。The present application also provides a chip system, which includes a processor and a memory coupled to each other. The memory is used to store computer programs or instructions, and the processing unit is used to execute the computer programs or instructions stored in the memory, so that the UPF entity performs the steps performed by the first UPF entity or the second UPF entity in the above embodiments. Optionally, the memory is an on-chip memory, such as a register, a cache, etc., and the memory can also be a memory located outside the chip in a site, such as a read-only memory (read-only memory, ROM) or a memory that can store static information and instructions. Other types of static storage devices, random access memory (random access memory, RAM), etc. The processor mentioned in any of the above can be a general-purpose central processing unit, a microprocessor, an application specific integrated circuit (ASIC) or one or more integrated circuits used to implement the above method for reducing contention conflicts .
本申请还提供另一种芯片系统,该芯片系包括相互耦合的处理器和存储器。存储器用于存储的计算机程序或指令,该处理单元用于执行存储器存储的计算机程序或指令,以使SMF实体执行上述实施例中由SMF实体执行的步骤。The present application also provides another chip system, which includes a processor and a memory coupled to each other. The memory is used to store computer programs or instructions, and the processing unit is used to execute the computer programs or instructions stored in the memory, so that the SMF entity performs the steps performed by the SMF entity in the above embodiments.
另外需说明的是,以上所描述的装置实施例只是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。In addition, it should be noted that the device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units. That is, it can be located in one place, or it can also be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in the present application, the connection relationship between the modules indicates that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general-purpose hardware, and of course it can also be realized by special hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, Special components, etc. to achieve. In general, all functions completed by computer programs can be easily realized by corresponding hardware, and the specific hardware structure used to realize the same function can also be varied, such as analog circuits, digital circuits or special-purpose circuit etc. However, for this application, software program implementation is a better implementation mode in most cases. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the method of each embodiment of the present application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. A computer can be a general purpose computer, special purpose computer, computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (such as infrared, wireless, microwave, etc.) transmission to another website site, computer, server or data center. Computer readable storage medium can be Any available media that can be stored by a computer or a data storage device such as a server, data center, etc. that includes one or more available media. Available media can be magnetic media, (such as floppy disks, hard disks, tapes), optical media (such as DVDs), Or a semiconductor medium (such as a solid state disk (solid state disk, SSD)) and the like.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例的技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still record the foregoing embodiments Modifications are made to the technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (31)

  1. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that, comprising:
    第一用户面功能UPF实体获取所述第一UPF实体与目标应用功能AF实体之间的第一往返时延;The first user plane function UPF entity acquires a first round-trip delay between the first UPF entity and the target application function AF entity;
    所述第一UPF实体将所述第一往返时延发送给会话管理功能SMF实体;The first UPF entity sends the first round-trip delay to a session management function SMF entity;
    所述第一UPF实体接收所述SMF实体发送的第一通知,所述第一通知是所述SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,所述第二往返时延是第二UPF实体与所述目标AF实体之间的往返时延,所述第三往返时延是所述第二UPF实体与所述第一UPF实体之间的往返时延;The first UPF entity receives the first notification sent by the SMF entity, and the first notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay The second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity. round-trip delay;
    所述第一UPF实体接收来自第一终端的目标上行数据,所述目标上行数据的目的地址为所述目标AF实体的IP地址;The first UPF entity receives target uplink data from the first terminal, and the destination address of the target uplink data is the IP address of the target AF entity;
    所述第一UPF实体根据所述第一通知将所述目标上行数据发送给所述第二UPF实体。The first UPF entity sends the target uplink data to the second UPF entity according to the first notification.
  2. 根据权利要求1所述的方法,其特征在于,所述第一UPF实体获取所述第一UPF实体与目标AF实体之间的第一往返时延包括:The method according to claim 1, wherein the acquisition by the first UPF entity of the first round-trip delay between the first UPF entity and the target AF entity comprises:
    所述第一UPF实体接收所述第一终端发送的上行数据;The first UPF entity receives the uplink data sent by the first terminal;
    所述第一UPF实体向所述目标AF实体发送所述上行数据;The first UPF entity sends the uplink data to the target AF entity;
    所述第一UPF实体接收所述目标AF实体发送的确认帧,所述确认帧是所述目标AF实体响应所述上行数据生成的;The first UPF entity receives an acknowledgment frame sent by the target AF entity, where the acknowledgment frame is generated by the target AF entity in response to the uplink data;
    所述第一UPF实体根据发送所述上行数据的时刻和接收所述确认帧的时刻,确定所述第一UPF实体与所述目标AF实体之间的第一往返时延。The first UPF entity determines a first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the confirmation frame is received.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that the method further comprises:
    所述第一UPF实体接收所述SMF实体发送的第一消息,所述第一消息包括第二UPF实体的IP地址;The first UPF entity receives the first message sent by the SMF entity, and the first message includes the IP address of the second UPF entity;
    所述第一UPF实体根据所述第一消息向所述第二UPF实体发送回声请求;The first UPF entity sends an echo request to the second UPF entity according to the first message;
    所述第一UPF实体接收所述第二UPF实体发送的回声响应;The first UPF entity receives the echo response sent by the second UPF entity;
    所述第一UPF实体根据发送回声请求的时刻和接收回声响应的时刻,确定所述第一UPF实体与第二UPF实体之间的第一测量时延;The first UPF entity determines the first measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
    所述第一UPF实体将所述第一测量时延发送给所述SMF实体。The first UPF entity sends the first measured delay to the SMF entity.
  4. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that, comprising:
    第二用户面功能UPF实体获取所述第二UPF实体与目标应用功能AF实体之间的第二往返时延;The second user plane function UPF entity acquires a second round-trip delay between the second UPF entity and the target application function AF entity;
    所述第二UPF实体将所述第二往返时延发送给会话管理功能SMF实体;The second UPF entity sends the second round-trip delay to a session management function SMF entity;
    所述第二UPF实体接收所述SMF实体发送的第二消息,所述第二消息包括第一UPF实体的IP地址;The second UPF entity receives a second message sent by the SMF entity, where the second message includes the IP address of the first UPF entity;
    所述第二UPF实体根据所述第二消息获取所述第二UPF实体与所述第一UPF实体之间的第二测量时延;The second UPF entity acquires a second measurement delay between the second UPF entity and the first UPF entity according to the second message;
    所述第二UPF实体将所述第二测量时延发送给所述SMF实体;The second UPF entity sends the second measured delay to the SMF entity;
    所述第二UPF实体接收所述SMF实体发送的第二通知,所述第二通知是所述SMF在第一往返时延大于所述第二往返时延与第三往返时延之和的情况下发送的,所述第一往返时延是第一UPF实体与所述目标AF实体之间的往返时延,所述第三往返时延是所述SMF实体根据所述第二测量时延确定的;The second UPF entity receives the second notification sent by the SMF entity, and the second notification is that the first round-trip delay of the SMF is greater than the sum of the second round-trip delay and the third round-trip delay. The first round-trip delay is the round-trip delay between the first UPF entity and the target AF entity, and the third round-trip delay is determined by the SMF entity according to the second measurement delay of;
    所述第二UPF实体根据所述第二通知接收所述第一UPF实体发送的目标上行数据,所述目标上行数据的目的地址为所述目标AF实体的IP地址,所述目标上行数据的源IP地址为所述第一终端的第一IP地址;The second UPF entity receives the target uplink data sent by the first UPF entity according to the second notification, the destination address of the target uplink data is the IP address of the target AF entity, and the source of the target uplink data The IP address is the first IP address of the first terminal;
    所述第二UPF实体根据所述第二通知将目标上行数据发送给所述目标AF实体。The second UPF entity sends the target uplink data to the target AF entity according to the second notification.
  5. 根据权利要求4所述的方法,其特征在于,所述第二UPF实体获取所述第二UPF实体与目标AF实体之间的第二往返时延包括:The method according to claim 4, wherein the acquisition by the second UPF entity of the second round-trip delay between the second UPF entity and the target AF entity comprises:
    所述第二UPF实体接收第二终端发送的上行数据;The second UPF entity receives the uplink data sent by the second terminal;
    所述第二UPF实体将所述上行数据发送给所述目标AF实体;The second UPF entity sends the uplink data to the target AF entity;
    所述第二UPF实体接收所述目标AF实体发送的确认帧,所述确认帧是所述目标AF实体响应所述上行数据生成的;The second UPF entity receives an acknowledgment frame sent by the target AF entity, where the acknowledgment frame is generated by the target AF entity in response to the uplink data;
    所述第二UPF实体根据发送所述上行数据的时刻和接收所述确认帧的时刻,确定所述第二UPF实体与目标AF实体之间的第二往返时延。The second UPF entity determines a second round-trip delay between the second UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the confirmation frame is received.
  6. 根据权利要求4所述的方法,其特征在于,所述第二UPF实体根据所述第二消息获取所述第二UPF实体与所述第一UPF实体之间的第二测量时延包括:The method according to claim 4, wherein the second UPF entity acquiring the second measured delay between the second UPF entity and the first UPF entity according to the second message comprises:
    所述第二UPF实体根据所述第二消息向所述第一UPF实体发送回声请求;The second UPF entity sends an echo request to the first UPF entity according to the second message;
    所述第二UPF实体接收所述第一UPF实体发送的回声响应;The second UPF entity receives the echo response sent by the first UPF entity;
    所述第二UPF实体根据发送回声请求的时刻和接收回声响应的时刻,确定所述第二UPF实体与第一UPF实体之间的第二测量时延。The second UPF entity determines the second measurement delay between the second UPF entity and the first UPF entity according to the time when the echo request is sent and the time when the echo response is received.
  7. 根据权利要求4至6中任一项所述的方法,其特征在于,A method according to any one of claims 4 to 6, wherein
    所述第二UPF实体将目标上行数据发送给所述目标AF实体包括:所述第二UPF实体将所述目标上行数据中所述第一IP地址和第一端口号进行网络地址端口转换,得到第二IP地址和第二端口号;所述第二UPF实体将网络地址端口转换后的目标上行数据发送给所述目标AF实体,所述网络地址端口转换后的目标上行数据包括所述第二IP地址和所述第二端口号;The second UPF entity sending the target uplink data to the target AF entity includes: the second UPF entity performing network address port translation on the first IP address and the first port number in the target uplink data to obtain The second IP address and the second port number; the second UPF entity sends the target uplink data after the network address port conversion to the target AF entity, and the target uplink data after the network address port conversion includes the second an IP address and said second port number;
    所述方法还包括:The method also includes:
    所述第二UPF实体接收所述目标AF实体发送的目标下行数据,所述目标下行数据的目的地址为所述第二IP地址,所述目标下行数据的目的端口号为所述第二端口号;The second UPF entity receives the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second port number ;
    所述第二UPF实体将所述目标下行数据中的目的IP地址和目的端口号进行网络地址端口转换;The second UPF entity performs network address port translation on the destination IP address and destination port number in the target downlink data;
    所述第二UPF实体将网络地址端口转换后的目标下行数据发送给所述第一UPF实体,所述网络地址端口转换后的目标下行数据包括所述第一IP地址和所述第一端口号。The second UPF entity sends the target downlink data after network address port translation to the first UPF entity, where the target downlink data after network address port translation includes the first IP address and the first port number .
  8. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that, comprising:
    会话管理功能SMF实体接收第一用户面功能UPF实体发送的第一往返时延,所述第一 往返时延为第一UPF实体与目标应用功能AF实体之间的往返时延;The session management function SMF entity receives the first round-trip delay sent by the first user plane function UPF entity, and the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity;
    所述SMF实体接收所述第二UPF实体发送的第二往返时延,所述第二往返时延为所述第二UPF实体与所述目标AF实体之间的往返时延;The SMF entity receives a second round-trip delay sent by the second UPF entity, where the second round-trip delay is a round-trip delay between the second UPF entity and the target AF entity;
    所述SMF实体向所述第二UPF实体发送第二消息;The SMF entity sends a second message to the second UPF entity;
    所述SMF实体接收所述第二UPF实体发送的第二测量时延,所述第二测量时延是第二UPF实体根据所述第二消息获取的;The SMF entity receives the second measurement delay sent by the second UPF entity, and the second measurement delay is obtained by the second UPF entity according to the second message;
    所述SMF实体根据所述第二测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延;The SMF entity determines a third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay;
    当所述第一往返时延大于所述第二往返时延与所述第三往返时延之和时,所述SMF实体向所述第一UPF实体发送第一通知,所述第一通知用于指示所述第一UPF实体将来自第一终端的目标上行数据发送给所述第二UPF实体,所述目标上行数据的目的IP地址为所述目标AF实体的IP地址;When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity sends a first notification to the first UPF entity, and the first notification uses Instructing the first UPF entity to send target uplink data from the first terminal to the second UPF entity, where the destination IP address of the target uplink data is the IP address of the target AF entity;
    所述SMF实体向所述第二UPF实体发送第二通知,所述第二通知用于指示所述第二UPF实体接收所述第一UPF实体发送的所述目标上行数据以及向所述目标AF实体发送所述目标上行数据。The SMF entity sends a second notification to the second UPF entity, where the second notification is used to instruct the second UPF entity to receive the target uplink data sent by the first UPF entity and send the target AF The entity sends the target uplink data.
  9. 根据权利要求8所述的方法,其特征在于,The method according to claim 8, characterized in that,
    所述方法还包括:所述SMF实体向所述第一UPF实体发送第一消息,所述第一消息包括第二UPF实体的IP地址;所述SMF实体接收第一UPF实体发送的第一测量时延,所述第一测量时延是所述第一UPF实体根据所述第一消息获取的;The method further includes: the SMF entity sending a first message to the first UPF entity, the first message including the IP address of the second UPF entity; the SMF entity receiving the first measurement sent by the first UPF entity delay, the first measured delay is obtained by the first UPF entity according to the first message;
    所述SMF实体根据所述第二测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延包括:所述SMF实体根据所述第二测量时延和所述第一测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延。The SMF entity determining the third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay includes: the SMF entity according to the second measured delay and the The first measured delay determines a third round-trip delay between the first UPF entity and the second UPF entity.
  10. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that, comprising:
    会话管理功能SMF实体接收来自目标应用功能AF实体的第一消息,所述第一消息包括第一终端的标识、第二终端的标识、所述目标AF实体的标识、第一端到端时延和第二端到端时延,所述第一端到端时延是所述第一终端与所述目标AF实体之间的往返时延,所述第二端到端时延是所述第二终端与所述目标AF实体之间的往返时延;The session management function SMF entity receives a first message from the target application function AF entity, where the first message includes the identifier of the first terminal, the identifier of the second terminal, the identifier of the target AF entity, and the first end-to-end delay and a second end-to-end delay, the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second end-to-end delay is the first end-to-end delay The round-trip delay between the two terminals and the target AF entity;
    所述SMF实体接收所述第一UPF实体发送的第一测量时延,所述第一测量时延是所述第一终端与所述第一UPF实体之间的往返时延;The SMF entity receives the first measurement delay sent by the first UPF entity, and the first measurement delay is a round-trip delay between the first terminal and the first UPF entity;
    所述SMF实体确定所述第一往返时延等于所述第一端到端时延减去所述第一测量时延得到的差值;The SMF entity determines that the first round-trip delay is equal to the difference obtained by subtracting the first end-to-end delay from the first measurement delay;
    所述SMF实体接收所述第二UPF实体发送的第二测量时延,所述第二测量时延是第二终端与所述第二UPF实体之间的往返时延;The SMF entity receives the second measurement delay sent by the second UPF entity, and the second measurement delay is a round-trip delay between the second terminal and the second UPF entity;
    所述SMF实体确定所述第二往返时延等于所述第二端到端时延减去所述第二测量时延得到的差值;The SMF entity determines that the second round-trip delay is equal to a difference obtained by subtracting the second end-to-end delay from the second measurement delay;
    所述SMF实体向所述第二UPF实体发送第二消息;The SMF entity sends a second message to the second UPF entity;
    所述SMF实体接收所述第二UPF实体发送的第三测量时延,所述第三测量时延是所述 第二UPF实体根据所述第二消息获取的;The SMF entity receives the third measurement delay sent by the second UPF entity, and the third measurement delay is obtained by the second UPF entity according to the second message;
    所述SMF实体根据所述第三测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延;The SMF entity determines a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay;
    当所述第一往返时延大于所述第二往返时延与所述第三往返时延之和时,所述SMF实体向所述第一UPF实体发送第一通知,所述第一通知用于指示所述第一UPF实体将来自第一终端的目标上行数据发送给所述第二UPF实体,所述目标上行数据的目的IP地址为所述目标AF实体的IP地址;When the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the SMF entity sends a first notification to the first UPF entity, and the first notification uses Instructing the first UPF entity to send target uplink data from the first terminal to the second UPF entity, where the destination IP address of the target uplink data is the IP address of the target AF entity;
    所述SMF实体向所述第二UPF实体发送第二通知,所述第二通知用于指示所述第二UPF实体接收所述第一UPF实体发送的所述目标上行数据以及向所述目标AF实体发送所述目标上行数据。The SMF entity sends a second notification to the second UPF entity, where the second notification is used to instruct the second UPF entity to receive the target uplink data sent by the first UPF entity and send the target AF The entity sends the target uplink data.
  11. 根据权利要求10所述的方法,其特征在于,The method according to claim 10, characterized in that,
    所述方法还包括:所述SMF实体向所述第一UPF实体发送第三消息;所述SMF实体接收所述第一UPF实体发送的第四测量时延,所述第四测量时延是所述第二UPF实体根据所述第三消息获取的;The method further includes: the SMF entity sends a third message to the first UPF entity; the SMF entity receives the fourth measurement delay sent by the first UPF entity, and the fourth measurement delay is the Acquired by the second UPF entity according to the third message;
    所述SMF实体根据所述第三测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延包括:所述SMF实体根据所述第三测量时延和所述第四测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延。The SMF entity determining the third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay includes: the SMF entity according to the third measured delay and the The fourth measured delay determines a third round-trip delay between the first UPF entity and the second UPF entity.
  12. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that, comprising:
    第一用户面功能UPF实体获取第一终端与所述第一UPF实体之间的第一测量时延;The first user plane function UPF entity obtains a first measurement delay between the first terminal and the first UPF entity;
    所述第一UPF实体将所述第一测量时延发送给会话管理功能SMF实体,所述第一测量时延用于确定所述第一UPF实体与目标应用功能AF实体之间的第一往返时延;The first UPF entity sends the first measured delay to the session management function SMF entity, and the first measured delay is used to determine a first round trip between the first UPF entity and the target application function AF entity delay;
    所述第一UPF实体接收所述SMF实体发送的第一通知,所述第一通知是所述SMF在所述第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,所述第二往返时延是第二UPF实体与所述目标AF实体之间的往返时延,所述第三往返时延是所述第二UPF实体与所述第一UPF实体之间的往返时延;The first UPF entity receives the first notification sent by the SMF entity, and the first notification is the case where the first round-trip delay of the SMF is greater than the sum of the second round-trip delay and the third round-trip delay. The second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity The round-trip delay between
    所述第一UPF实体接收来自第一终端的目标上行数据,所述目标上行数据的目的地址为所述目标AF实体的IP地址;The first UPF entity receives target uplink data from the first terminal, and the destination address of the target uplink data is the IP address of the target AF entity;
    所述第一UPF实体根据所述第一通知将所述目标上行数据发送给第二UPF实体。The first UPF entity sends the target uplink data to the second UPF entity according to the first notification.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method according to claim 12, characterized in that the method further comprises:
    所述第一UPF实体接收所述SMF实体发送的第三消息,所述第三消息第二UPF实体的IP地址;The first UPF entity receives a third message sent by the SMF entity, the IP address of the second UPF entity in the third message;
    所述第一UPF实体根据所述第三消息向所述第二UPF实体发送回声请求;The first UPF entity sends an echo request to the second UPF entity according to the third message;
    所述第一UPF实体接收所述第二UPF实体发送的回声响应;The first UPF entity receives the echo response sent by the second UPF entity;
    所述第一UPF实体根据发送回声请求的时刻和接收回声响应的时刻,确定所述第一UPF实体与所述第二UPF实体之间的第四测量时延;The first UPF entity determines a fourth measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
    所述第一UPF实体将所述第四测量时延发送给所述SMF实体。The first UPF entity sends the fourth measured delay to the SMF entity.
  14. 一种数据传输方法,其特征在于,包括:A data transmission method, characterized in that, comprising:
    第二用户面功能UPF实体获取第二终端与所述第二UPF实体之间的第二测量时延;The second user plane function UPF entity acquires a second measurement delay between the second terminal and the second UPF entity;
    所述第二UPF实体将所述第二测量时延发送给会话管理功能SMF实体,所述第二测量时延用于确定所述第二UPF实体与目标AF实体之间的第二往返时延;The second UPF entity sends the second measured delay to the session management function SMF entity, and the second measured delay is used to determine a second round-trip delay between the second UPF entity and the target AF entity ;
    所述第二UPF实体接收所述SMF实体发送的第二消息,所述第二消息包括第一UPF实体的IP地址;The second UPF entity receives a second message sent by the SMF entity, where the second message includes the IP address of the first UPF entity;
    所述第二UPF实体根据所述第二消息获取所述第二UPF实体与所述第一UPF实体之间的第三测量时延;The second UPF entity acquires a third measurement delay between the second UPF entity and the first UPF entity according to the second message;
    所述第二UPF实体将所述第三测量时延发送给所述SMF实体,所述第三测量时延用于确定所述第二UPF实体与所述第一UPF实体之间的第三往返时延;The second UPF entity sends the third measured delay to the SMF entity, and the third measured delay is used to determine a third round trip between the second UPF entity and the first UPF entity delay;
    所述第二UPF实体接收所述SMF实体发送的第二通知,所述第二通知是所述SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,所述第一往返时延是第一UPF实体与目标应用功能AF实体之间的往返时延;The second UPF entity receives the second notification sent by the SMF entity, and the second notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay Yes, the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity;
    所述第二UPF实体根据第二通知接收所述第一UPF实体发送的目标上行数据;The second UPF entity receives the target uplink data sent by the first UPF entity according to the second notification;
    所述第二UPF实体根据第二通知将目标上行数据发送给所述目标AF实体。The second UPF entity sends the target uplink data to the target AF entity according to the second notification.
  15. 根据权利要求14所述的方法,其特征在于,所述第二UPF实体根据所述第二消息获取所述第二UPF实体与所述第一UPF实体之间的第三测量时延包括:The method according to claim 14, wherein the obtaining, by the second UPF entity, the third measurement delay between the second UPF entity and the first UPF entity according to the second message comprises:
    所述第二UPF实体根据所述第二消息向所述第一UPF实体发送回声请求;The second UPF entity sends an echo request to the first UPF entity according to the second message;
    所述第二UPF实体接收所述第一UPF实体发送的回声响应;The second UPF entity receives the echo response sent by the first UPF entity;
    所述第二UPF实体根据发送回声请求的时刻和接收回声响应的时刻,确定所述第二UPF实体与所述第一UPF实体之间的第三测量时延。The second UPF entity determines a third measurement delay between the second UPF entity and the first UPF entity according to the time when the echo request is sent and the time when the echo response is received.
  16. 一种用户面功能UPF实体,其特征在于,所述UPF实体作为第一UPF实体,所述UPF实体包括:A user plane function UPF entity, characterized in that the UPF entity is used as the first UPF entity, and the UPF entity includes:
    获取单元,用于获取所述第一UPF实体与目标应用功能AF实体之间的第一往返时延;an acquiring unit, configured to acquire a first round-trip delay between the first UPF entity and the target application function AF entity;
    发送单元,用于将所述第一往返时延发送给会话管理功能SMF实体;a sending unit, configured to send the first round-trip delay to a session management function SMF entity;
    接收单元,用于接收所述SMF实体发送的第一通知,所述第一通知是所述SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,所述第二往返时延是第二UPF实体与所述目标AF实体之间的往返时延,所述第三往返时延是所述第二UPF实体与所述第一UPF实体之间的往返时延;A receiving unit, configured to receive a first notification sent by the SMF entity, where the first notification is sent by the SMF when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay , the second round-trip delay is the round-trip delay between the second UPF entity and the target AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity round-trip delay;
    所述接收单元,还用于接收来自第一终端的目标上行数据,所述目标上行数据的目的地址为所述目标AF实体的IP地址;The receiving unit is further configured to receive target uplink data from the first terminal, where the destination address of the target uplink data is the IP address of the target AF entity;
    所述发送单元,还用于根据所述第一通知将所述目标上行数据发送给所述第二UPF实体。The sending unit is further configured to send the target uplink data to the second UPF entity according to the first notification.
  17. 根据权利要求16所述的UPF实体,其特征在于,The UPF entity according to claim 16, characterized in that,
    所述获取单元,具体用于接收所述第一终端发送的上行数据;向所述目标AF实体发送所述上行数据;接收所述目标AF实体发送的确认帧,所述确认帧是所述目标AF实体响应所述上行数据生成的;根据发送所述上行数据的时刻和接收所述确认帧的时刻,确定所述第一UPF实体与所述目标AF实体之间的第一往返时延。The acquiring unit is specifically configured to receive the uplink data sent by the first terminal; send the uplink data to the target AF entity; receive an acknowledgment frame sent by the target AF entity, where the acknowledgment frame is the target Generated by the AF entity in response to the uplink data; determine a first round-trip delay between the first UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the acknowledgment frame is received.
  18. 根据权利要求16或17所述的UPF实体,其特征在于,The UPF entity according to claim 16 or 17, characterized in that,
    所述接收单元,还用于接收所述SMF实体发送的第一消息,所述第一消息包括第二UPF实体的IP地址;The receiving unit is further configured to receive a first message sent by the SMF entity, where the first message includes the IP address of the second UPF entity;
    所述发送单元,还用于根据所述第一消息向所述第二UPF实体发送回声请求;The sending unit is further configured to send an echo request to the second UPF entity according to the first message;
    所述接收单元,还用于接收所述第二UPF实体发送的回声响应;The receiving unit is further configured to receive the echo response sent by the second UPF entity;
    所述UPF实体还包括:Said UPF entities also include:
    确定单元,用于根据发送回声请求的时刻和接收回声响应的时刻,确定所述第一UPF实体与所述第二UPF实体之间的第一测量时延;A determining unit, configured to determine a first measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
    所述发送单元,还用于将所述第一测量时延发送给所述SMF实体。The sending unit is further configured to send the first measured delay to the SMF entity.
  19. 一种用户面功能UPF实体,其特征在于,所述UPF实体作为第二UPF实体,所述UPF实体包括:A user plane function UPF entity, characterized in that the UPF entity is used as a second UPF entity, and the UPF entity includes:
    第一获取单元,用于获取所述第二UPF实体与目标应用功能AF实体之间的第二往返时延;A first obtaining unit, configured to obtain a second round-trip delay between the second UPF entity and the target application function AF entity;
    发送单元,用于将所述第二往返时延发送给会话管理功能SMF实体;a sending unit, configured to send the second round-trip delay to a session management function SMF entity;
    第二获取单元,用于根据所述第二消息获取所述第二UPF实体与所述第一UPF实体之间的第二测量时延;a second acquiring unit, configured to acquire a second measured delay between the second UPF entity and the first UPF entity according to the second message;
    所述发送单元,还用于将所述第二测量时延发送给所述SMF实体;The sending unit is further configured to send the second measurement delay to the SMF entity;
    接收单元,用于接收所述SMF实体发送的第二通知,所述第二通知是所述SMF在第一往返时延大于所述第二往返时延与第三往返时延之和的情况下发送的,所述第一往返时延是第一UPF实体与所述目标AF实体之间的往返时延,所述第三往返时延是所述SMF实体根据所述第二测量时延确定的;A receiving unit, configured to receive a second notification sent by the SMF entity, where the second notification is that the first round-trip delay of the SMF is greater than the sum of the second round-trip delay and the third round-trip delay. sent, the first round-trip delay is the round-trip delay between the first UPF entity and the target AF entity, and the third round-trip delay is determined by the SMF entity according to the second measurement delay ;
    所述接收单元,还用于根据所述第二通知接收所述第一UPF实体发送的目标上行数据,所述目标上行数据的目的地址为所述目标AF实体的IP地址,所述目标上行数据的源IP地址为所述第一终端的第一IP地址;The receiving unit is further configured to receive the target uplink data sent by the first UPF entity according to the second notification, the destination address of the target uplink data is the IP address of the target AF entity, and the target uplink data The source IP address is the first IP address of the first terminal;
    所述发送单元,还用于根据所述第二通知将所述目标上行数据发送给所述目标AF实体。The sending unit is further configured to send the target uplink data to the target AF entity according to the second notification.
  20. 根据权利要求19所述的UPF实体,其特征在于,The UPF entity according to claim 19, characterized in that,
    所述第一获取单元,具体用于接收第二终端发送的上行数据;将所述上行数据发送给所述目标AF实体;接收所述目标AF实体发送的确认帧,所述确认帧是所述目标AF实体响应所述上行数据生成的;根据发送所述上行数据的时刻和接收所述确认帧的时刻,确定所述第二UPF实体与目标AF实体之间的第二往返时延。The first acquisition unit is specifically configured to receive the uplink data sent by the second terminal; send the uplink data to the target AF entity; receive an acknowledgment frame sent by the target AF entity, where the acknowledgment frame is the Generated by the target AF entity in response to the uplink data; determine a second round-trip delay between the second UPF entity and the target AF entity according to the time when the uplink data is sent and the time when the confirmation frame is received.
  21. 根据权利要求19所述的UPF实体,其特征在于,The UPF entity according to claim 19, characterized in that,
    所述第二获取单元,具体用于根据所述第二消息向所述第一UPF实体发送回声请求;接收所述第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定所述第二UPF实体与所述第一UPF实体之间的第二测量时延。The second obtaining unit is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; time, determining a second measurement delay between the second UPF entity and the first UPF entity.
  22. 根据权利要求19至21中任一项所述的UPF实体,其特征在于,A UPF entity according to any one of claims 19 to 21, characterized in that,
    所述发送单元,具体用于将所述目标上行数据中所述第一IP地址和第一端口号进行网 络地址端口转换,得到第二IP地址和第二端口号;将网络地址端口转换后的目标上行数据发送给所述目标AF实体,所述网络地址端口转换后的目标上行数据包括所述第二IP地址和所述第二端口号;The sending unit is specifically configured to perform network address port conversion on the first IP address and the first port number in the target uplink data to obtain a second IP address and a second port number; The target uplink data is sent to the target AF entity, and the target uplink data after the port conversion of the network address includes the second IP address and the second port number;
    所述接收单元,还用于接收所述目标AF实体发送的目标下行数据,所述目标下行数据的目的地址为所述第二IP地址,所述目标下行数据的目的端口号为所述第二端口号;The receiving unit is further configured to receive the target downlink data sent by the target AF entity, the destination address of the target downlink data is the second IP address, and the destination port number of the target downlink data is the second IP address. The port number;
    所述发送单元,还用于将所述目标下行数据中的第二IP地址和第二端口号进行网络地址端口转换;将网络地址端口转换后的目标下行数据发送给所述第一UPF实体,所述网络地址端口转换后的目标下行数据包括所述第一IP地址和所述第一端口号。The sending unit is further configured to perform network address port conversion on the second IP address and the second port number in the target downlink data; and send the target downlink data after network address port conversion to the first UPF entity, The target downlink data after the network address port translation includes the first IP address and the first port number.
  23. 一种会话管理功能SMF实体,其特征在于,包括:A session management function SMF entity is characterized in that, comprising:
    接收单元,用于接收第一用户面功能UPF实体发送的第一往返时延,所述第一往返时延为第一UPF实体与目标应用功能AF实体之间的往返时延;The receiving unit is configured to receive the first round-trip delay sent by the first user plane function UPF entity, where the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity;
    所述接收单元,还用于接收所述第二UPF实体发送的第二往返时延,所述第二往返时延为所述第二UPF实体与所述目标AF实体之间的往返时延;The receiving unit is further configured to receive a second round-trip delay sent by the second UPF entity, where the second round-trip delay is a round-trip delay between the second UPF entity and the target AF entity;
    发送单元,用于向所述第二UPF实体发送第二消息;a sending unit, configured to send a second message to the second UPF entity;
    所述接收单元,还用于接收所述第二UPF实体发送的第二测量时延,所述第二测量时延是第二UPF实体根据所述第二消息获取的;The receiving unit is further configured to receive a second measurement delay sent by the second UPF entity, where the second measurement delay is obtained by the second UPF entity according to the second message;
    处理单元,用于根据所述第二测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延;a processing unit, configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay;
    所述发送单元,还用于当所述第一往返时延大于所述第二往返时延与所述第三往返时延之和时,向所述第一UPF实体发送第一通知,所述第一通知用于指示所述第一UPF实体将来自第一终端的目标上行数据发送给所述第二UPF实体,所述目标上行数据的目的IP地址为所述目标AF实体的IP地址;The sending unit is further configured to send a first notification to the first UPF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the The first notification is used to instruct the first UPF entity to send target uplink data from the first terminal to the second UPF entity, where the destination IP address of the target uplink data is the IP address of the target AF entity;
    所述发送单元,还用于向所述第二UPF实体发送第二通知,所述第二通知用于指示所述第二UPF实体接收所述第一UPF实体发送的所述目标上行数据以及向所述目标AF实体发送所述目标上行数据。The sending unit is further configured to send a second notification to the second UPF entity, where the second notification is used to instruct the second UPF entity to receive the target uplink data sent by the first UPF entity and send The target AF entity sends the target uplink data.
  24. 根据权利要求23所述的SMF实体,其特征在于,The SMF entity according to claim 23, wherein,
    所述发送单元,还用于向所述第一UPF实体发送第一消息,所述第一消息包括第二UPF实体的IP地址;The sending unit is further configured to send a first message to the first UPF entity, where the first message includes the IP address of the second UPF entity;
    所述接收单元,还用于接收第一UPF实体发送的第一测量时延,所述第一测量时延是所述第一UPF实体根据所述第一消息获取的;The receiving unit is further configured to receive a first measurement delay sent by a first UPF entity, where the first measurement delay is obtained by the first UPF entity according to the first message;
    所述处理单元,具体用于根据所述第二测量时延和所述第一测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延。The processing unit is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the second measured delay and the first measured delay.
  25. 一种会话管理功能SMF实体,其特征在于,包括:A session management function SMF entity is characterized in that, comprising:
    接收单元,用于接收来自目标应用功能AF实体的第一消息,所述第一消息包括第一终端的标识、第二终端的标识、所述目标AF实体的标识、第一端到端时延和第二端到端时延,所述第一端到端时延是第一终端与所述目标AF实体之间的往返时延,所述第二端到端时延是第二终端与所述目标AF实体之间的往返时延;A receiving unit, configured to receive a first message from a target application function AF entity, where the first message includes the identifier of the first terminal, the identifier of the second terminal, the identifier of the target AF entity, and the first end-to-end delay and a second end-to-end delay, the first end-to-end delay is the round-trip delay between the first terminal and the target AF entity, and the second end-to-end delay is the round-trip delay between the second terminal and the target AF entity The round-trip delay between the target AF entities;
    所述接收单元,还用于接收所述第一UPF实体发送的第一测量时延,所述第一测量时延是所述第一终端与所述第一UPF实体之间的往返时延;The receiving unit is further configured to receive a first measurement delay sent by the first UPF entity, where the first measurement delay is a round-trip delay between the first terminal and the first UPF entity;
    处理单元,用于确定所述第一往返时延等于所述第一端到端时延减去所述第一测量时延得到的差值;a processing unit, configured to determine that the first round-trip delay is equal to a difference obtained by subtracting the first end-to-end delay from the first measurement delay;
    所述接收单元,还用于接收所述第二UPF实体发送的第二测量时延,所述第二测量时延是第二终端与所述第二UPF实体之间的往返时延;The receiving unit is further configured to receive a second measurement delay sent by the second UPF entity, where the second measurement delay is a round-trip delay between the second terminal and the second UPF entity;
    所述处理单元,还用于确定所述第二往返时延等于所述第二端到端时延减去所述第二测量时延得到的差值;The processing unit is further configured to determine that the second round-trip delay is equal to a difference obtained by subtracting the second measured delay from the second end-to-end delay;
    发送单元,用于向所述第二UPF实体发送第二消息;a sending unit, configured to send a second message to the second UPF entity;
    所述处理单元,还用于根据所述第三测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延;The processing unit is further configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay;
    所述发送单元,还用于当所述第一往返时延大于所述第二往返时延与所述第三往返时延之和时,向所述第一UPF实体发送第一通知,所述第一通知用于指示所述第一UPF实体将来自第一终端的目标上行数据发送给所述第二UPF实体,所述目标上行数据的目的IP地址为所述目标AF实体的IP地址;The sending unit is further configured to send a first notification to the first UPF entity when the first round-trip delay is greater than the sum of the second round-trip delay and the third round-trip delay, the The first notification is used to instruct the first UPF entity to send target uplink data from the first terminal to the second UPF entity, where the destination IP address of the target uplink data is the IP address of the target AF entity;
    所述发送单元,还用于向所述第二UPF实体发送第二通知,所述第二通知用于接收所述第一UPF实体发送的所述目标上行数据以及向所述目标AF实体发送所述目标上行数据。The sending unit is further configured to send a second notification to the second UPF entity, where the second notification is used to receive the target uplink data sent by the first UPF entity and send the target uplink data to the target AF entity Uplink data of the above target.
  26. 根据权利要求25所述的SMF实体,其特征在于,The SMF entity according to claim 25, wherein,
    所述发送单元,还用于向所述第一UPF实体发送第三消息;The sending unit is further configured to send a third message to the first UPF entity;
    所述接收单元,还用于接收所述第一UPF实体发送的第四测量时延,所述第四测量时延是所述第二UPF实体根据所述第三消息获取的;The receiving unit is further configured to receive a fourth measurement delay sent by the first UPF entity, where the fourth measurement delay is obtained by the second UPF entity according to the third message;
    所述处理单元,具体用于根据所述第三测量时延和所述第四测量时延确定所述第一UPF实体与所述第二UPF实体之间的第三往返时延。The processing unit is specifically configured to determine a third round-trip delay between the first UPF entity and the second UPF entity according to the third measured delay and the fourth measured delay.
  27. 一种用户面功能UPF实体,其特征在于,所述UPF实体作为第一UPF实体,所述UPF实体包括:A user plane function UPF entity, characterized in that the UPF entity is used as the first UPF entity, and the UPF entity includes:
    获取单元,用于获取第一终端与所述第一UPF实体之间的第一测量时延;an acquiring unit, configured to acquire a first measurement delay between the first terminal and the first UPF entity;
    发送单元,用于将所述第一测量时延发送给会话管理功能SMF实体,所述第一测量时延用于确定第一往返时延;A sending unit, configured to send the first measured delay to a session management function SMF entity, where the first measured delay is used to determine a first round-trip delay;
    接收单元,用于接收所述SMF实体发送的第一通知,所述第一通知是所述SMF在所述第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,所述第二往返时延是第二UPF实体与目标应用功能AF实体之间的往返时延,所述第三往返时延是所述第二UPF实体与所述第一UPF实体之间的往返时延;A receiving unit, configured to receive a first notification sent by the SMF entity, where the first notification is that the first round-trip delay of the SMF is greater than the sum of the second round-trip delay and the third round-trip delay of the SMF sent, the second round-trip delay is the round-trip delay between the second UPF entity and the target application function AF entity, and the third round-trip delay is the round-trip delay between the second UPF entity and the first UPF entity The round-trip delay between
    所述接收单元,还用于接收来自第一终端的目标上行数据,所述目标上行数据的目的地址为所述目标AF实体的IP地址;The receiving unit is further configured to receive target uplink data from the first terminal, where the destination address of the target uplink data is the IP address of the target AF entity;
    所述发送单元,还用于根据所述第一通知将所述目标上行数据发送给第二UPF实体。The sending unit is further configured to send the target uplink data to a second UPF entity according to the first notification.
  28. 根据权利要求27所述的UPF实体,其特征在于,The UPF entity according to claim 27, characterized in that,
    所述接收单元,还用于接收所述SMF实体发送的第三消息,所述第三消息第二UPF实 体的IP地址;The receiving unit is also configured to receive a third message sent by the SMF entity, the IP address of the second UPF entity in the third message;
    所述发送单元,还用于根据所述第三消息向所述第二UPF实体发送回声请求;The sending unit is further configured to send an echo request to the second UPF entity according to the third message;
    所述接收单元,还用于接收所述第二UPF实体发送的回声响应;The receiving unit is further configured to receive the echo response sent by the second UPF entity;
    所述UPF实体还包括:Said UPF entities also include:
    处理单元,用于根据发送回声请求的时刻和接收回声响应的时刻,确定所述第一UPF实体与所述第二UPF实体之间的第四测量时延;A processing unit, configured to determine a fourth measurement delay between the first UPF entity and the second UPF entity according to the time when the echo request is sent and the time when the echo response is received;
    所述发送单元,还用于将所述第四测量时延发送给所述SMF实体。The sending unit is further configured to send the fourth measurement delay to the SMF entity.
  29. 一种用户面功能UPF实体,其特征在于,所述UPF实体作为第二UPF实体,所述UPF实体包括:A user plane function UPF entity, characterized in that the UPF entity is used as a second UPF entity, and the UPF entity includes:
    第一获取单元,用于获取第二终端与所述第二UPF实体之间的第二测量时延;a first obtaining unit, configured to obtain a second measurement delay between the second terminal and the second UPF entity;
    发送单元,用于将所述第二测量时延发送给会话管理功能SMF实体,所述第二测量时延用于确定所述第二UPF实体与目标AF实体之间的第二往返时延;a sending unit, configured to send the second measured delay to a session management function SMF entity, where the second measured delay is used to determine a second round-trip delay between the second UPF entity and a target AF entity;
    接收单元,用于接收所述SMF实体发送的第二消息,所述第二消息包括第一UPF实体的IP地址;a receiving unit, configured to receive a second message sent by the SMF entity, where the second message includes the IP address of the first UPF entity;
    第二获取单元,用于根据所述第二消息获取所述第二UPF实体与所述第一UPF实体之间的第三测量时延;a second acquiring unit, configured to acquire a third measurement delay between the second UPF entity and the first UPF entity according to the second message;
    所述发送单元,还用于将所述第三测量时延发送给所述SMF实体,所述第三测量时延用于确定所述第二UPF实体与所述第一UPF实体之间的第三往返时延;The sending unit is further configured to send the third measurement delay to the SMF entity, where the third measurement delay is used to determine the second UPF entity between the second UPF entity and the first UPF entity. Three round-trip delays;
    所述接收单元,还用于接收所述SMF实体发送的第二通知,所述第二通知是所述SMF在第一往返时延大于第二往返时延与第三往返时延之和的情况下发送的,所述第一往返时延是第一UPF实体与目标应用功能AF实体之间的往返时延;The receiving unit is further configured to receive a second notification sent by the SMF entity, the second notification is that the first round-trip delay of the SMF is greater than the sum of the second round-trip delay and the third round-trip delay of the SMF sent next, the first round-trip delay is the round-trip delay between the first UPF entity and the target application function AF entity;
    所述接收单元,还用于根据所述第二通知接收所述第一UPF实体发送的目标上行数据;The receiving unit is further configured to receive the target uplink data sent by the first UPF entity according to the second notification;
    所述发送单元,还用于根据所述第二通知将所述目标上行数据发送给所述目标AF实体。The sending unit is further configured to send the target uplink data to the target AF entity according to the second notification.
  30. 根据权利要求29所述的UPF实体,其特征在于,The UPF entity according to claim 29, characterized in that,
    所述第一获取单元,具体用于根据所述第二消息向所述第一UPF实体发送回声请求;接收所述第一UPF实体发送的回声响应;根据发送回声请求的时刻和接收回声响应的时刻,确定所述第二UPF实体与所述第一UPF实体之间的第三测量时延。The first obtaining unit is specifically configured to send an echo request to the first UPF entity according to the second message; receive the echo response sent by the first UPF entity; time, determine a third measurement delay between the second UPF entity and the first UPF entity.
  31. 一种计算机存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行权利要求1至15中任一项所述的数据传输方法。A computer storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when it is run on a computer, it causes the computer to execute the data transmission method according to any one of claims 1 to 15.
PCT/CN2022/073414 2021-05-10 2022-01-24 Data transmission method and related device WO2022237232A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110506875.9 2021-05-10
CN202110506875.9A CN115334532A (en) 2021-05-10 2021-05-10 Data transmission method and related equipment

Publications (1)

Publication Number Publication Date
WO2022237232A1 true WO2022237232A1 (en) 2022-11-17

Family

ID=83912596

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/073414 WO2022237232A1 (en) 2021-05-10 2022-01-24 Data transmission method and related device

Country Status (2)

Country Link
CN (1) CN115334532A (en)
WO (1) WO2022237232A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200107253A1 (en) * 2018-09-27 2020-04-02 T-Mobile Usa, Inc. User Plane System Selection Based on Latency
CN111107580A (en) * 2018-10-25 2020-05-05 电信科学技术研究院有限公司 Information transmission method and network equipment
US20200314686A1 (en) * 2019-04-01 2020-10-01 Nokia Technologies Oy Benchmarking of delay estimates in a 5g network for quality of service flow setup and monitoring
CN111885650A (en) * 2020-07-01 2020-11-03 中国联合网络通信集团有限公司 Communication method and network management equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200107253A1 (en) * 2018-09-27 2020-04-02 T-Mobile Usa, Inc. User Plane System Selection Based on Latency
CN111107580A (en) * 2018-10-25 2020-05-05 电信科学技术研究院有限公司 Information transmission method and network equipment
US20200314686A1 (en) * 2019-04-01 2020-10-01 Nokia Technologies Oy Benchmarking of delay estimates in a 5g network for quality of service flow setup and monitoring
CN111885650A (en) * 2020-07-01 2020-11-03 中国联合网络通信集团有限公司 Communication method and network management equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUAWEI, HISILICON: "N4 session level reporting for supporting Availability after DDN failure", 3GPP DRAFT; S2-2000729, vol. SA WG2, 7 January 2020 (2020-01-07), Incheon, South Korea, pages 1 - 6, XP051842784 *

Also Published As

Publication number Publication date
CN115334532A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
WO2020187052A1 (en) Network slice selection method and apparatus
US9173244B2 (en) Methods for establishing and using public path, M2M communication method, and systems thereof
US9973989B2 (en) Co-location of application service platform with access node and local gateway
JP5927301B2 (en) Test traffic interceptor
WO2020199896A1 (en) Service flow routing control method, apparatus and system
US11357077B2 (en) Data forwarding method, apparatus, and system
US11871273B2 (en) Systems and methods for user plane handling
US20220217611A1 (en) Service Configuration Method, Communication Apparatus, and Communication System
WO2021000827A1 (en) Data transmission link establishment method and apparatus, and computer-readable storage medium
EP2700195B1 (en) Technique for controlling and handling probe tunnel set up
US20220174477A1 (en) Method and apparatus for realizing network capability opening, electronic device and storage medium
US20220272607A1 (en) Network Access Method and Communication Apparatus
WO2019149063A1 (en) Data transmission method, communication apparatus, and user-plane functional entity
US11930358B2 (en) Seamless handoff between wireless access gateways
WO2018157551A1 (en) Data transmission method and apparatus
WO2019196000A1 (en) Methods and system for carrying out small data fast path communication
WO2017067007A1 (en) Method, device and system for controlling quality of service
Subramanya et al. A practical architecture for mobile edge computing
US20200137560A1 (en) Identifier Mapping In Edge Computing Within Radio Networks
WO2022237232A1 (en) Data transmission method and related device
KR20190073115A (en) Virtual lan gateway system, operation method of control plane gateway and operation method of mme
WO2018045515A1 (en) Data offloading method and related device
JP7175328B2 (en) Transmission delay measurement
WO2022151206A1 (en) Communication method and network device
WO2021179598A1 (en) Communication method, apparatus and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22806209

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22806209

Country of ref document: EP

Kind code of ref document: A1