Service packet transmission method and apparatus
The present disclosure relates to service packet transmission methods. In one example method, a target user plane network element receives a first uplink service packet from a source user plane, where the first uplink service packet is an uplink service packet received by the source user plane after receiving a second uplink service packet, and the second uplink service packet is the last uplink service packet from the source user plane to a source application server. The target user plane network element receives first indication information, used to indicate that sending of the first uplink service packet by the source user plane network element ends, from the source user plane network element. The target user plane network element sends, to a target AS after the first uplink service packet is sent, an uplink service packet that is from an access network device to the target user plane network element.
1 . A service packet transmission method, comprising:
sending, by a target user plane network element, a first uplink service packet to a source user plane network element on a path to a source application server, wherein the first uplink service packet is received by the source user plane network element from the target user plane network element after the source user plane network element receives a second uplink service packet, and the second uplink service packet is a last uplink service packet sent by the source user plane network element on the path to the source application server;
receiving, by the target user plane network element, the first uplink service packet from the source user plane network element;
receiving, by the target user plane network element, first indication information from the source user plane network element, wherein the first indication information is used to indicate that sending of the first uplink service packet by the source user plane network element on the path ends; and
after the target user plane network element receives the first indication information, sending, by the target user plane network element to a target application server after the first uplink service packet is sent, an uplink service packet that is sent by an access network device to the target user plane network element.
2 . The method according to claim 1 , wherein before receiving, by the target user plane network element, the first uplink service packet from the source user plane network element, the method further comprises:
sending, by the target user plane network element, second indication information to the source user plane network element, wherein the second indication information is used to indicate that the sending of the first uplink service packet by the target user plane network element ends.
3 . The method according to claim 2 , wherein before receiving, by the target user plane network element, the first uplink service packet from the source user plane network element, the method further comprises:
receiving, by the target user plane network element, a first downlink service packet and third indication information from the source user plane network element, wherein the third indication information is used to indicate an end of downlink service packet sent from the source application server.
4 . The method according to claim 3 , wherein after receiving, by the target user plane network element, the third indication information from the source user plane network element, the method further comprises:
after the first downlink service packet is sent, sending, by the target user plane network element to the access network device, a downlink service packet that is from the target application server.
5 . The method according to claim 3 , wherein sending, by the target user plane network element, the second indication information to the source user plane network element comprises:
sending, by the target user plane network element, the second indication information to the source user plane network element based on the third indication information.
6 . The method according to claim 1 , further comprising:
after the source user plane network element receives the second uplink service packet, receiving, by the source user plane network element, the first uplink service packet sent by the target user plane network element;
sending, by the source user plane network element, the first uplink service packet to the target user plane network element; and
sending, by the source user plane network element, the first indication information to the target user plane network element.
7 . The method according to claim 6 , wherein before sending, by the source user plane network element, the first uplink service packet to the target user plane network element, the method further comprises:
receiving, by the source user plane network element, second indication information from the target user plane network element, wherein the second indication information is used to indicate that the sending of the first uplink service packet by the target user plane network element ends.
8 . The method according to claim 7 , wherein before sending, by the source user plane network element, the first uplink service packet to the target user plane network element, the method further comprises:
sending, by the source user plane network element, a first downlink service packet and third indication information to the target user plane network element, wherein the third indication information is used to indicate an end of downlink service packet sent from the source application server.
9 . The method according to claim 8 , wherein receiving, by the source user plane network element, the second indication information from the target user plane network element comprises:
receiving, by the source user plane network element, the second indication information sent by the target user plane network element based on the third indication information.
10 . The method according to claim 8 , wherein before sending, by the source user plane network element, the first downlink service packet and the third indication information to the target user plane network element, the method further comprises:
receiving, by the source user plane network element, fourth indication information sent by a first network element, wherein the fourth indication information is used to indicate that the first downlink service packet is the last downlink service packet from the source application server; and
sending, by the source user plane network element, fifth indication information to the first network element, wherein the fifth indication information is used to indicate that the second uplink service packet is the last uplink service packet sent by the source user plane network element to the source application server.
11 . The method according to claim 1 , further comprising:
receiving, by the source application server, first notification information sent by a session management function network element, wherein the first notification information is used to notify that a data network access point identifier changes or is used to notify that the target user plane network element changes, and the first notification information comprises a target data network access point identifier and an identifier of a terminal apparatus; and
after the source application server processes a first downlink service packet and the second uplink service packet, relocating, by the source application server, a context of the terminal apparatus to the target application server corresponding to the target data network access point identifier, wherein the first downlink service packet is the last downlink service packet sent by the source application server to the source user plane network element, and the second uplink service packet is the last uplink service packet sent by the source user plane network element to the source application server.
12 . The method according to claim 11 , wherein before relocating, by the source application server, the context of the terminal apparatus to the target application server corresponding to the target data network access point identifier, the method further comprises:
sending, by the source application server, fourth indication information to the source user plane network element, wherein the fourth indication information is used to indicate that the first downlink service packet is the last downlink service packet from the source application server; and
receiving, by the source application server, fifth indication information sent by the source user plane network element, wherein the fifth indication information is used to indicate that the second uplink service packet is the last uplink service packet sent by the source user plane network element to the source application server.
13 . An apparatus, wherein the apparatus is a target user plane network element, and the apparatus comprises:
at least one processor, and
a memory coupled to the at least one processor and storing programming instructions for execution by the at least one processor to:
send a first uplink service packet to a source user plane network element on a path to a source application server, wherein the first uplink service packet is received by the source user plane network element from the target user plane network element after the source user plane network element receives a second uplink service packet, and the second uplink service packet is a last uplink service packet sent by the source user plane network element on the path to the source application server;
receive the first uplink service packet from the source user plane network element;
receive first indication information from the source user plane network element, wherein the first indication information is used to indicate that sending of the first uplink service packet by the source user plane network element on the path ends; and
after receiving the first indication information, send, to a target application server after the first uplink service packet is sent, an uplink service packet that is sent by an access network device to the target user plane network element.
14 . The apparatus according to claim 13 , wherein the programming instructions are for execution by the at least one processor to:
before receiving the first uplink service packet from the source user plane network element, send second indication information to the source user plane network element, wherein the second indication information is used to indicate that the sending of the first uplink service packet by the target user plane network element ends.
15 . The apparatus according to claim 14 , wherein the programming instructions are for execution by the at least one processor to:
before receiving the first uplink service packet from the source user plane network element, receive a first downlink service packet and third indication information from the source user plane network element, wherein the third indication information is used to indicate an end of downlink service packet sent from the source application server.
16 . The apparatus according to claim 15 , wherein the programming instructions are for execution by the at least one processor to:
after receiving the third indication information from the source user plane network element and the first downlink service packet is sent, send, to the access network device, a downlink service packet that is from the target application server.
17 . An apparatus, wherein the apparatus is a source user plane network element, and the apparatus comprises:
at least one processor; and
a memory coupled to the at least one processor and storing programming instructions for execution by the at least one processor to:
after receiving a second uplink service packet to be sent on a path to a source application server, receive a first uplink service packet sent by a target user plane network element on the path to the source application server, wherein the second uplink service packet is a last uplink service packet sent by the source user plane network element on the path to the source application server;
send the first uplink service packet to the target user plane network element; and
send first indication information to the target user plane network element, wherein the first indication information is used to indicate that the sending of the first uplink service packet by the source user plane network element on the path ends.
18 . The apparatus according to claim 17 , wherein the programming instructions are for execution by the at least one processor to:
before sending the first uplink service packet to the target user plane network element, receive second indication information from the target user plane network element, wherein the second indication information is used to indicate that the sending of the first uplink service packet by the target user plane network element ends.
19 . The apparatus according to claim 18 , wherein the programming instructions are for execution by the at least one processor to:
before sending the first uplink service packet to the target user plane network element, send a first downlink service packet and third indication information to the target user plane network element, wherein the third indication information is used to indicate that sending of a downlink service packet that is from the source application server ends.
20 . The apparatus according to claim 19 , wherein the programming instructions are for execution by the at least one processor to:
before sending the first downlink service packet and the third indication information to the target user plane network element, receive fourth indication information sent by a first network element, wherein the fourth indication information is used to indicate that the first downlink service packet is the last downlink service packet from the source application server; and send fifth indication information to the first network element, wherein the fifth indication information is used to indicate that the second uplink service packet is the last uplink service packet sent by the source user plane network element to the source application server.