[go: up one dir, main page]

WO2016169015A1 - Procédé et appareil pour commuter une communication de réseau et une communication directe - Google Patents

Procédé et appareil pour commuter une communication de réseau et une communication directe Download PDF

Info

Publication number
WO2016169015A1
WO2016169015A1 PCT/CN2015/077263 CN2015077263W WO2016169015A1 WO 2016169015 A1 WO2016169015 A1 WO 2016169015A1 CN 2015077263 W CN2015077263 W CN 2015077263W WO 2016169015 A1 WO2016169015 A1 WO 2016169015A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
port number
public network
network
communication path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/077263
Other languages
English (en)
Chinese (zh)
Inventor
衣强
欧阳国威
金辉
何岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201580038930.9A priority Critical patent/CN106537854B/zh
Priority to PCT/CN2015/077263 priority patent/WO2016169015A1/fr
Publication of WO2016169015A1 publication Critical patent/WO2016169015A1/fr
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a method and an apparatus for switching between network communication and direct communication.
  • LTE Long Term Evolution
  • UEs user equipments
  • eNB evolved base station
  • P-GW Packet Data Network Gateway
  • D2D Device to Device
  • the embodiment of the invention provides a method and a device for switching between network communication and direct communication, which can ensure that the user's service is not interrupted when the user's session is switched between network communication and direct communication.
  • a first aspect of the present invention provides a method for switching between network communication and direct communication, including:
  • the first UE sends the handover indication information to the second UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path;
  • the first UE acquires a first public network IP address and a first public network port number, where the first public network IP address is used by the first UE to communicate with the second UE in the network communication path.
  • Public network IP address, the first public network port number is the network communication path of the first UE a public network port number used for communicating with the second UE;
  • the first UE establishes the direct communication path by using the first public network IP address and the first public network port number;
  • the first UE communicates with the second UE on the direct communication path.
  • the sending, by the first UE, the handover indication information to the second UE includes:
  • the first request message is used to request to acquire the first public network IP address and the first public network port number, the first request The message includes the handover indication information;
  • the first public network IP address and the first public network port number including:
  • the first UE receives the first response message returned by the second UE, where the first response message includes: the first public network IP address and the first public network port number.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate the first The two UEs switch the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the first UE uses the first public network IP address and the first Before the public network port number establishes the direct communication path, the method further includes:
  • the second request message is used to request the first UE to acquire a second public network IP address and a second public network port, where the The second public network IP address is the public network IP address used by the second UE to communicate with the first UE in the network communication path, and the second public network port number is the second UE in the a public network port number used by the network communication path to communicate with the first UE;
  • the first UE sends a second response message to the second UE, where the second response message includes: the second public network IP address and port number and the second public network port number.
  • the acquiring, by the first UE, the first public network IP address and the first public network port number includes:
  • the first UE sends a first direct communication request message to the second UE, where the first direct communication request message further includes: a second public network IP address and a second public network port number,
  • the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path, and the second public network port number is the second UE a public network port number used by the network communication path to communicate with the first UE;
  • the first UE receives the first direct communication response message returned by the second UE, where the first direct communication response message includes: the first public network IP address and the first public network port number.
  • the handover indication information is carried in the first direct communication request message.
  • the sending, by the first UE, the handover indication information to the second UE includes:
  • the first UE sends a second direct communication request message to the second UE, where the second direct communication request message includes the handover indication information;
  • the first public network IP address and the first public network port number including:
  • the first UE sends a third request message to the application server, where the third request message is used to request to acquire the first public network IP address and the first public network port number;
  • the first UE receives the third response message returned by the application server, where the third response message includes: the first public network IP address and the first public network port number.
  • the first direct communication request message or the second direct communication The request message further includes application identification information, where the application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the first UE that communicates with the second UE on the direct communication path includes:
  • the first UE uses the first public network IP address as a source IP address of a data packet sent to the second UE, and uses the first public network port number as a source port number of the data packet, and The second public network IP address is used as the destination IP address of the data packet, and the second public network port number is used as the destination port number of the data packet, and the data packet is sent to the second through the direct communication path.
  • a UE where the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path, and the second public network port number is a public network port number used by the second UE to communicate with the first UE in the network communication path.
  • a second aspect of the present invention provides a method for switching between network communication and direct communication, including:
  • the second UE receives the handover indication information sent by the first UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path;
  • the second UE acquires a second public network IP address and a second public network port number, where the second public network IP address is used by the second UE to communicate with the first UE in the network communication path.
  • a public network IP address where the second public network port number is a public network port number used by the second UE to communicate with the first UE in the network communication path;
  • the second UE establishes the direct communication path by using the second public network IP address and the second public network port number;
  • the second UE communicates with the first UE on the direct communication path.
  • the acquiring, by the second UE, the second public network IP address and the second public network port number includes:
  • the second UE sends a second request message to the first UE, where the second request message is used to request the first UE to acquire the second public network IP address and the second public network port number. ;
  • the second UE receives the second response message that is returned by the first UE, where the second response message includes: the second public network IP address and the second public network port number.
  • the method before the second UE acquires the second public network IP address and the second public network port number, the method also includes:
  • the first request message sent by the first UE, where the first request message includes the handover indication information, where the first request message is used to request to acquire a first public network IP address and a first a public network port number, where the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path, and the first public network port number a public network port number used by the first UE to communicate with the second UE in the network communication path;
  • the second UE sends the first public network IP address and the first public network port number in the first response message to the first UE.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate the The second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the acquiring, by the second UE, the second public network IP address and the second public network port number includes:
  • the second UE receives the first direct communication request message sent by the first UE, where the first direct communication request message includes the second public network IP address and the second public network port number.
  • the handover indication information is carried in the first direct communication request message.
  • the second UE receives the first direct communication request message sent by the first UE Thereafter, the method further includes:
  • the first direct communication response message to the first UE, where the first direct communication response message includes: a first public network IP address and a first public network port number, the first public network
  • the IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first public network port number is the first UE in the network communication path.
  • the receiving, by the second UE, the handover indication information that is sent by the first UE includes:
  • the second UE receives the second direct communication request message sent by the first UE, where the second direct communication request message includes the handover indication information;
  • the second public network IP address and the second public network port number including:
  • the second UE sends a fourth request message to the application server, where the fourth request message is used to request to acquire the second public network IP address and the second public network port number;
  • the second UE receives the fourth response message returned by the application server, where the fourth response message includes: the second public network IP address and the second public network port number.
  • the first direct communication request message or the second direct The communication request message further includes application identification information, where the application identification information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path. .
  • the second UE that communicates with the first UE on the direct communication path includes:
  • the second UE uses the second public network IP address as the source IP address of the data packet sent to the first UE, and the second public network port number as the source port number of the data packet,
  • the first public network IP address is used as the destination IP address of the data packet
  • the first public network port number is used as the destination port number of the data packet
  • the data packet is sent to the first through the direct communication path.
  • a third aspect of the present invention provides a method for switching between network communication and direct communication, including:
  • the first UE sends the handover indication information to the second UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path;
  • the first UE acquires a first public network IP address and a first public network port number, where the first public network IP address is used by the first UE to communicate with the second UE in the network communication path.
  • a public network IP address where the first public network port number is a public network port number used by the first UE to communicate with the second UE in the network communication path;
  • the first UE acquires a second private network IP address and a second private network port number, where the second private network IP address is used by the second UE to communicate with the first UE in the network communication path.
  • a private network IP address where the second private network port number is a private network port number used by the second UE to communicate with the first UE in the network communication path;
  • the first UE establishes the direct communication path by using the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number;
  • the first UE communicates with the second UE on the direct communication path.
  • the first UE uses the first public network IP address, the first public network port number, and the second private network IP Establishing the direct communication path by the address and the second private network port number, including:
  • the first UE establishes a first correspondence between the first public network IP address, the first public network port number, the first private network IP address, and the first private network port number, and the second public network IP address. And a second corresponding relationship between the second public network port number and the second private network IP address and the second private network port number, where the first private network IP address is the first UE in the a private network IP address used in communication with the second UE in the network communication path, where the first private network port number is used by the first UE to communicate with the second UE in the network communication path a private network port number, where the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path, and the second public network port number is a public network port number used by the second UE to communicate with the first UE in the network communication path.
  • the first UE that communicates with the second UE on the direct communication path includes:
  • the first UE replaces the source IP address of the data packet sent to the second UE with the first public network IP address according to the first correspondence, and replaces the source port number of the data packet with the The first public network port number, the destination IP address of the data packet is replaced with the second private network IP address according to the second correspondence, and the destination port number of the data packet is replaced by the second a private network port number, where the source port number of the data packet is the first private network port number, the source port number of the data packet is the first private network port number, and the destination IP address of the data packet The address is the second public network IP address, the destination port number of the data packet is the second public network port number, and the first UE sends the data packet to the first Two UE;
  • the first UE receives the data packet sent by the second UE by using the direct communication path.
  • the first The UE sends the handover indication information to the second UE, including:
  • the first UE sends a third direct communication request message to the second UE, where the third direct communication request message includes: the handover indication information;
  • the first public network IP address and the first public network port number including:
  • the third direct communication response message that is returned by the second UE, where the third direct communication response message includes: the first public network IP address and the first public network port number;
  • the first UE acquires the second private network IP address and the second private network port number, including:
  • the third direct communication response message further includes: the second private network IP address and the second private network port number, where the first UE acquires the second from the third direct communication response message The private network IP address and the second private network port number.
  • the sending, by the first UE, the handover indication information to the second UE includes:
  • the first UE sends a fourth direct communication request message to the second UE, where the fourth direct communication request message includes: the handover indication information;
  • the first public network IP address and the first public network port number including:
  • the first UE sends a third request message to the application server, where the third request message is used to request to acquire the first public network IP address and the first public network port number;
  • the first UE receives the third response message returned by the application server, where the third response message includes: the first public network IP address and the first public network port number;
  • the first UE acquires the second private network IP address and the second private network port number, including:
  • the first UE receives the fourth direct communication response message returned by the second UE, where the fourth direct communication response message includes: the second private network IP address and the second private network port number.
  • the third direct communication request message further includes: a first private network IP address and a first private network a port number, a second public network IP address, and a second public network port number, where the first private network IP address is a private network used by the first UE to communicate with the second UE in the network communication path.
  • An IP address where the first private network port number is a private network port number used by the first UE to communicate with the second UE in the network communication path, and the second public network IP address is the First a public network IP address used by the two UEs to communicate with the first UE in the network communication path, and the second public network port number is the first UE in the network communication path of the second UE The public network port number used for communication.
  • the fourth direct communication request message further includes: a first private network IP address and a first private network a port number, where the first private network IP address is a private network IP address used by the first UE to communicate with the second UE in the network communication path, where the first private network port number is A private network port number used by the first UE to communicate with the second UE in the network communication path.
  • the third direct communication request message or the fourth direct communication request message is further The application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • a fourth aspect of the present invention provides a method for switching between network communication and direct communication, including:
  • the second UE receives the handover indication information sent by the first UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path;
  • the second UE acquires a second public network IP address and a second public network port number, where the second public network IP address is used by the second UE to communicate with the first UE in the network communication path.
  • a public network IP address where the second public network port number is a public network port number used by the second UE to communicate with the first UE in the network communication path;
  • the second UE acquires a first private network IP address and a first private network port number, where the first private network IP address is used by the first UE to communicate with the second UE in the network communication path.
  • a private network IP address where the first private network port number is a private network port number used by the first UE to communicate with the second UE in the network communication path;
  • the second UE establishes the direct communication path by using the second public network IP address, the second public network port number, the first private network IP address, and the first private network port;
  • the second UE communicates with the first UE on the direct communication path.
  • the second UE uses the second public network IP address, the second public network port number, and the first private network IP Establishing the direct communication path with the address and the first private network port, including:
  • the second UE establishes a first correspondence between the second public network IP address, the second public network port number, the second private network IP address, and the second private network port number, and the first public network IP address. a second corresponding relationship between the first public network port number and the first private network IP address and the first private network port number, where the second private network IP address is the second UE in the a private network IP address used in communication with the first UE in a network communication path, where the second private network port number is used by the second UE to communicate with the first UE in the network communication path a private network port number, where the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path, where the first public network port number is a public network port number used by the first UE to communicate with the second UE in the network communication path.
  • the second UE that communicates with the first UE on the direct communication path includes:
  • the second UE replaces the source IP address of the data packet sent to the first UE with the second public network IP address according to the first correspondence, and replaces the source port number of the data packet with the a second public network port number, the destination IP address of the data packet is replaced with the first private network IP address according to the second correspondence, and the destination port number of the data packet is replaced by the first a private network port number, where the source port number of the data packet is the second private network port number, the source port number of the data packet is the second private network port number, and the destination IP address of the data packet The address is the first public network IP address, the destination port number of the data packet is the first public network port number, and the second UE sends the replaced data packet to the First UE;
  • the second UE receives the data packet sent by the first UE by using the direct communication path.
  • the receiving, by the second UE, the handover indication information that is sent by the first UE includes:
  • the second UE receives the third direct communication request message sent by the first UE, where the third direct communication request message includes: the handover indication information;
  • the second public network IP address and the second public network port number including:
  • the second direct communication request message further includes the second public network IP address and the second public network port number, and the second UE acquires the second public from the third direct communication request message a network IP address and the second public network port number;
  • the second UE obtains, by the second UE, the first private network IP address and the first private network port number, including:
  • the third direct communication request message further includes the first private network IP address and the first private network port number, and the second UE acquires the first private information from the third direct communication request message.
  • the network IP address and the first private network port number are included in the third direct communication request message.
  • the receiving, by the second UE, the handover indication information that is sent by the first UE includes:
  • the second UE receives the fourth direct communication request message sent by the first UE, where the fourth direct communication request message includes: the handover indication information;
  • the second public network IP address and the second public network port number including:
  • the second UE sends a fourth request message to the application server, where the fourth request message is used to request to acquire the second public network IP address and the second public network port number;
  • the second UE receives the fourth response message returned by the application server, where the fourth response message includes the second public network IP address and the second public network port number;
  • the second UE obtains, by the second UE, the first private network IP address and the first private network port number, including:
  • the fourth direct communication request message further includes the first private network IP address and the first private network port number, and the second UE acquires the first private information from the fourth direct communication request message.
  • the network IP address and the first private network port number are included in the fourth direct communication request message.
  • the method further includes:
  • a third direct communication response message to the first UE includes a first public network IP address, a first public network port number, a second private network IP address, and a second private network port number
  • the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first public network port a number of the public network port used by the first UE to communicate with the second UE in the network communication path
  • the second private network IP address is the second UE in the network communication path a private network IP address used for communication with the first UE
  • the second private network port number is a private network port used by the second UE to communicate with the first UE in the network communication path number.
  • the second UE receives the fourth direct communication request message sent by the first UE Thereafter, the method further includes:
  • the second UE returns a fourth direct communication response message to the first UE, where the fourth direct communication response message includes a second private network IP address and a second private network port number, and the second private network IP address
  • the address is a private network IP address used by the second UE to communicate with the first UE in the network communication path
  • the second private network port number is the second UE in the network communication path.
  • the third direct communication request message or the fourth direct communication request message is further The application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • a fifth aspect of the present invention provides a first UE, including:
  • a sending module configured to send, to the second UE, the handover indication information, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from a network communication path to a direct communication path;
  • An acquiring module configured to obtain a first public network IP address and a first public network port number, where the first public network IP address is used by the first UE to communicate with the second UE in the network communication path.
  • a public network IP address where the first public network port number is a public network port number used by the first UE to communicate with the second UE in the network communication path;
  • a path establishing module configured to establish the direct communication path by using the first public network IP address and the first public network port number
  • a communication module configured to communicate with the second UE on the direct communication path.
  • the sending module is specifically configured to:
  • the obtaining module is specifically configured to:
  • the second UE And receiving, by the second UE, the first response message, where the first response message includes: the first public network IP address and the first public network port number.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate the first The two UEs switch the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the first UE further includes:
  • a receiving module configured to receive a second request message sent by the second UE, where the second request message is used to request, by the first UE, to acquire a second public network IP address and a second public network port, where The second public network IP address is the public network IP address used by the second UE to communicate with the first UE in the network communication path, and the second public network port number is the second UE in the a public network port number used by the network communication path to communicate with the first UE;
  • the sending module is further configured to send a second response message to the second UE, where the second response message includes: the second public network IP address and port number and the second public network port number.
  • the acquiring module is specifically configured to:
  • the first direct communication request message further includes: a second public network IP address and a second public network port number, where the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path, where the second public network port number is the second UE in the network communication path and the a public network port number used by the first UE communication;
  • the second UE And receiving, by the second UE, the first direct communication response message, where the first direct communication response message includes: the first public network IP address and the first public network port number.
  • the handover indication information is carried in the first direct communication request message.
  • the sending module is specifically configured to:
  • the obtaining module is specifically configured to:
  • the first direct communication request message or the second direct communication The request message further includes application identification information, where the application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the communications module is specifically configured to:
  • the address is used as the destination IP address of the data packet
  • the second public network port number is used as the destination port number of the data packet
  • the data packet is sent to the second UE by using the direct communication path
  • the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path
  • the second public network port number is the second UE a public network port number used by the network communication path to communicate with the first UE.
  • a sixth aspect of the present invention provides a second UE, including:
  • a receiving module configured to receive, by the first UE, handover indication information, where the handover indication information is used to indicate that the second UE switches a communication path with the first UE from a network communication path to a direct communication path;
  • An obtaining module configured to obtain a second public network IP address and a second public network port number, where the second public network IP address is used by the second UE to communicate with the first UE in the network communication path a public network IP address, where the second public network port number is a public network port number used by the second UE to communicate with the first UE in the network communication path;
  • a path establishing module configured to use the second public network IP address and the second public network port Number establishing the direct communication path
  • a communication module configured to communicate with the first UE on the direct communication path.
  • the acquiring module is specifically configured to:
  • the receiving module is further configured to:
  • the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first public network port number is the first a public network port number used by the UE to communicate with the second UE in the network communication path
  • the second UE further includes: a sending module, configured to send the first public network IP address and the first public network port number to the first UE in a first response message.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate the The second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the acquiring module is specifically configured to:
  • the first UE Receiving, by the first UE, a first direct communication request message, where the first direct communication request message includes the second public network IP address and the second public network port number.
  • the handover indication information is carried in the first direct communication request message.
  • the sixth aspect of the sixth aspect in a possible implementation manner, further includes:
  • a sending module configured to return a first direct communication response message to the first UE, where the first direct communication response message includes: a first public network IP address and a first public network port number, the first public network
  • the IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first public network port number is the first UE in the network communication path.
  • the receiving module is specifically configured to:
  • the obtaining module is specifically configured to:
  • the first direct communication request message or the second direct The communication request message further includes application identification information, where the application identification information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path. .
  • the second UE is in communication with the first UE on the direct communication path, and the communications module is specifically configured to:
  • the second public network IP address is used as a source IP address of the data packet sent to the first UE, and the second public network port number is used as a source port number of the data packet, and the first public network IP is used.
  • the address is used as the destination IP address of the data packet, and the first public network port number is used as the destination port number of the data packet, and the data packet is sent to the first UE by using the direct communication path, where
  • the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path, where the first public network port number is the first UE A public network port number used by the network communication path to communicate with the second UE.
  • a seventh aspect of the present invention provides a first UE, including:
  • a sending module configured to send, to the second UE, the handover indication information, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from a network communication path to a direct communication path;
  • An acquiring module configured to obtain a first public network IP address and a first public network port number, where the first public network IP address is used by the first UE to communicate with the second UE in the network communication path.
  • a public network IP address where the first public network port number is a public network port number used by the first UE to communicate with the second UE in the network communication path;
  • the acquiring module is further configured to obtain a second private network IP address and a second private network port number, where the second private network IP address is the second UE in the network communication path and the first UE a private network IP address used by the communication, where the second private network port number is a private network port number used by the second UE to communicate with the first UE in the network communication path;
  • a path establishing module configured to establish the direct communication path by using the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number;
  • a communication module configured to communicate with the second UE on the direct communication path.
  • the path establishing module is specifically configured to:
  • first private network IP address is the first UE in the network communication path a private network IP address used by the second UE to communicate
  • first private network port number is a private network port number used by the first UE to communicate with the second UE in the network communication path
  • the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path
  • the second public network port number is the second UE A public network port number used to communicate with the first UE in the network communication path.
  • the communications module is specifically configured to:
  • the second private network IP address, the destination port number of the data packet is replaced with the second private network port number, where the source port number of the data packet is the first private network port number,
  • the source port number of the data packet is the first private network port number
  • the destination IP address of the data packet is the second public network IP address
  • the destination port number of the data packet is the second public network port No.
  • the sending module is specifically configured to:
  • the first UE sends a third direct communication request message to the second UE, where the third direct communication request message includes: the handover indication information;
  • the obtaining module is specifically configured to:
  • the second UE And receiving, by the second UE, a third direct communication response message, where the third direct communication response message includes: the first public network IP address and the first public network port number;
  • the third direct communication response message further includes: the second private network IP address and the second private network port number, obtaining the second private network IP address from the third direct communication response message, and The second private network port number.
  • the sending module is specifically configured to:
  • the acquiring module acquires the first public network IP address and the first public network port number, including:
  • the acquiring module acquires the second private network IP address and the second private network port number, including:
  • the third direct communication request message further includes: a first private network IP address and a first private network a port number, a second public network IP address, and a second public network port number, where the first private network IP address is a private network used by the first UE to communicate with the second UE in the network communication path.
  • An IP address where the first private network port number is a private network port number used by the first UE to communicate with the second UE in the network communication path, and the second public network IP address is the a public network IP address used by the second UE to communicate with the first UE in the network communication path, and the second public network port number is the first UE in the network communication path.
  • the fourth direct communication request message further includes: a first private network IP address and a first private network a port number, where the first private network IP address is a private network IP address used by the first UE to communicate with the second UE in the network communication path, where the first private network port number is A private network port number used by the first UE to communicate with the second UE in the network communication path.
  • the third direct communication request message or the fourth direct communication request message is further The application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • An eighth aspect of the present invention provides a second UE, including:
  • a receiving module configured to receive, by the first UE, handover indication information, where the handover indication information is used to indicate that the second UE switches a communication path with the first UE from a network communication path to a direct communication path;
  • An obtaining module configured to obtain a second public network IP address and a second public network port number, where the second public network IP address is used by the second UE to communicate with the first UE in the network communication path a public network IP address, where the second public network port number is a public network port number used by the second UE to communicate with the first UE in the network communication path;
  • the acquiring module is further configured to obtain a first private network IP address and a first private network port number, where the first private network IP address is the first UE in the network communication path and the second UE a private network IP address used by the communication, where the first private network port number is a private network port number used by the first UE to communicate with the second UE in the network communication path;
  • a path establishing module configured to establish the direct communication path by using the second public network IP address, the second public network port number, the first private network IP address, and the first private network port;
  • a communication module configured to communicate with the first UE on the direct communication path.
  • the path establishing module is specifically configured to:
  • the private network IP address used by the first UE to communicate, and the second private network port number is a private network port number used by the second UE to communicate with the first UE in the network communication path
  • the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first public network port number is the first UE A public network port number used to communicate with the second UE in the network communication path.
  • the communications module is specifically configured to:
  • the source port number of the data packet is the second private network port number
  • the source port number of the data packet is the second private network port number
  • the destination IP address of the data packet is the first a public network IP address
  • the destination port number of the data packet is the first public network port number
  • the second UE sends the replaced data packet to the first UE by using the direct communication path;
  • the receiving module is specifically configured to:
  • the third direct communication The request message includes: the switching indication information
  • the obtaining module is specifically configured to:
  • the third direct communication request message further includes the second public network IP address and the second public network port number, and the second public network IP address and the location are obtained from the third direct communication request message. Said second public network port number;
  • the third direct communication request message further includes the first private network IP address and the first private network port number, and the first private network IP address and the location are obtained from the third direct communication request message.
  • the first private network port number is the first private network port number.
  • the receiving module is specifically configured to:
  • the obtaining module acquires the second public network IP address and the second public network port number, including:
  • the acquiring module acquires the first private network IP address and the first private network port number, including:
  • the fourth direct communication request message further includes the first private network IP address and the first private network port number, and the obtaining module acquires the first private network from the fourth direct communication request message.
  • the IP address and the first private network port number are included in the fourth direct communication request message.
  • the second UE further includes:
  • a sending module configured to return a third direct communication response message to the first UE, where the third direct communication response message includes a first public network IP address, a first public network port number, and a second private network IP address, and a second private network port number, where the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path, and the first public network port Number that the first UE communicates with the second UE in the network communication path a public network port number used, the second private network IP address being a private network IP address used by the second UE to communicate with the first UE in the network communication path, and the second private network port The number is a private network port number used by the second UE to communicate with the first UE in the network communication path.
  • the second UE further includes:
  • a sending module configured to return a fourth direct communication response message to the first UE, where the fourth direct communication response message includes a second private network IP address and a second private network port number, and the second private network IP address
  • the address is a private network IP address used by the second UE to communicate with the first UE in the network communication path
  • the second private network port number is the second UE in the network communication path.
  • the third direct communication request message or the fourth direct communication request message is further The application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • a ninth aspect of the present invention provides a first UE, where the first UE includes: a processor, a memory, a communication interface, and a system bus, where the memory and the communication interface are connected to the processor through the system bus Communication
  • the memory is configured to store a computer execution instruction
  • the processor configured to execute the computer to execute instructions, to perform the method of any one of the first to eighth aspects of the first aspect of the invention.
  • a tenth aspect of the present invention provides a second UE, where the second UE includes: a processor, a memory, a communication interface, and a system bus, where the memory and the communication interface are connected to the processor through the system bus Communication
  • the memory is configured to store a computer execution instruction
  • the processor configured to execute the computer-executed instructions, to perform the method of any one of the first to ninth aspects of the second aspect of the present invention.
  • An eleventh aspect of the present invention provides a first UE, where the first UE includes: a processor, a memory, a communication interface, and a system bus, and the memory and the communication interface pass the system a bus is connected to and communicates with the processor;
  • the memory is configured to store a computer execution instruction
  • the processor configured to execute the computer-executed instructions, to perform the method of any one of the first to seventh aspects of the third aspect and the third aspect of the present invention.
  • a twelfth aspect of the present invention provides a second UE, where the second UE includes: a processor, a memory, a communication interface, and a system bus, where the memory and the communication interface are connected to the processor through the system bus And communicate;
  • the memory is configured to store a computer execution instruction
  • the processor configured to execute the computer-executed instructions, to perform the method of any one of the first to seventh aspects of the fourth aspect of the present invention and the second aspect.
  • the first UE sends the handover indication information to the second UE to indicate that the second UE communicates with the communication path of the first UE from the network.
  • the path is switched to the direct communication path, and the first public network IP address and the first public network port number are obtained, and the first public network IP address and the first public network port number are used to establish a direct communication path.
  • the data packet sent by the first UE received by the second UE does not change, and the IP address and the port number of the first UE do not change in the second UE, thereby ensuring the user's Business is not interrupted.
  • FIG. 1 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 2 of the present invention
  • Embodiment 3 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 3 of the present invention
  • Embodiment 4 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 4 of the present invention
  • FIG. 5 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 5 of the present invention
  • FIG. 6 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 6 of the present invention
  • FIG. 7 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 7 of the present invention.
  • Embodiment 8 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 8 of the present invention.
  • Embodiment 9 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 9 of the present invention.
  • FIG. 10 is a schematic structural diagram of a first UE according to Embodiment 10 of the present invention.
  • FIG. 11 is a schematic structural diagram of a second UE according to Embodiment 11 of the present invention.
  • FIG. 12 is a schematic structural diagram of a first UE according to Embodiment 12 of the present invention.
  • FIG. 13 is a schematic structural diagram of a second UE according to Embodiment 13 of the present invention.
  • FIG. 14 is a schematic structural diagram of a first UE according to Embodiment 14 of the present invention.
  • FIG. 15 is a schematic structural diagram of a second UE according to Embodiment 15 of the present invention.
  • FIG. 16 is a schematic structural diagram of a first UE according to Embodiment 16 of the present invention.
  • FIG. 17 is a schematic structural diagram of a second UE according to Embodiment 17 of the present invention.
  • the UE transmits data through the network communication path, taking the communication between the first UE and the second UE as an example.
  • the source IP address of the data packet sent by the first UE is its own private IP address
  • the source port number is its own private port number.
  • the destination IP address is the public network IP address of UE2 and the destination port number is the public network port number of UE2.
  • the IP address of the private network cannot be routed over the Internet. Therefore, the network address translation (NAT) of the UE is required to be translated into the public IP address of the UE1.
  • the private network port number of UE1 is converted to the public network port number.
  • the router that performs NAT is also called a NAT server.
  • the NAT server can be a single router or integrated on the P-GW.
  • the data packet converted by the NAT server is sent to the Internet for transmission.
  • the receiving terminal's NAT server converts the destination IP address of the data packet into the private network IP address of UE2, and the data packet is The destination port number is converted to the private network port number of the UE2, and then the converted data packet is sent to the UE2.
  • the source IP address of the data packet received by the UE2 is the public network IP address of the UE1, and the source port number is the public address of the UE1.
  • the network port number, the destination IP address is the private network IP address of UE2, and the destination port number is the private network port number of UE2.
  • the direct communication path is a path directly connected between UE1 and UE2.
  • UE1 and UE2 communicate using a direct communication path, the data packet does not need to pass through any network entity, thereby reducing the number of packets.
  • the delay of packet transmission improves the transmission efficiency.
  • UE1 and UE2 when UE1 and UE2 want to switch the transmission path from the network communication path to the direct communication path, UE1 and UE2 need to interrupt the network direct communication path first, and then establish a direct communication path, and UE1 and UE2 are in direct communication.
  • the IP address used on the path is different from the IP address used on the network communication path. As the IP address is changed, the service is not continuous.
  • FIG. 1 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 1 of the present invention. As shown in FIG. 1 , the method in this embodiment may include the following steps:
  • Step 101 The first UE sends handover indication information to the second UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path.
  • the network communication path is a network communication path between the first UE and the second UE, and the first UE is to be switched from the network communication path to the direct communication path, and the premise of the embodiment is the first UE and the second UE.
  • a network communication path has been established, where the network communication path can be LTE
  • the network communication path, the first UE and the second UE establish a network communication path as the prior art is not described too much here.
  • a direct communication path may be established between the first UE and the second UE, and when the first UE and the second UE communicate through the direct communication path, the data packet does not need to pass through the LTE.
  • the delivery of the core network can save network resources and can reduce the communication delay between the first UE and the second UE.
  • Step 102 The first UE acquires a first public network (Internet Protocol, IP address) address and a first public network port number.
  • IP address Internet Protocol
  • the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first public network port number is the first UE in the network communication.
  • a public network port number used by the second UE to communicate with the second UE in the path where the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path
  • the second public network port number is The public network port number used by the second UE to communicate with the first UE in the network communication path.
  • the first UE and the second UE each know their own private network IP address and private network port number, as well as the public network IP address and public network port number of the other party.
  • the second public network IP address is a public network IP address used by the second UE to communicate with the first UE in the network communication path
  • the second public network port number is the second UE in the network communication.
  • a public network port number used by the first UE to communicate with the first UE in the path where the first private network IP address is a private network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first private network port number is a private network port number used by the first UE to communicate with the second UE in the network communication path
  • the second private network IP address is a private network IP address used by the second UE to communicate with the first UE in the network communication path
  • the second private network port number is a private network port number used by the second UE to communicate with the first UE in the network communication path.
  • the first UE establishes a direct communication path, and needs to obtain the first public network IP address and the first public network port number.
  • the first UE may obtain the first public network IP address and the first manner by using the following three manners.
  • Public network port number :
  • the first UE sends a first request message to the second UE, where the first request message is used to request to acquire the first public network IP address and the first public network port number, and the second UE sends the first request message to the first UE according to the first request message. Returns the first response message.
  • the first UE receives the first response message returned by the second UE, where the first response message includes: a first public network IP address and a first public network port number.
  • the first request message may further carry the handover indication information.
  • the first handover indication information may also be carried in other messages, which is not limited in this embodiment.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate that the second UE switches the communication path of the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the application identifier information may be an application identifier (APP ID).
  • APP ID application identifier
  • the first UE may establish a direct communication path for each application. In order to distinguish the direct communication path of each application, each application needs to be carried in the first request message.
  • Application identification information to indicate to the second UE which application the direct communication path belongs to. When there is only one application between the first UE and the second UE, optionally, the application identifier information of the application may not be carried in the first request message.
  • the first UE sends a first direct communication request message to the second UE, where the first direct communication request message further includes: a second public network IP address and a second public network port number.
  • the second UE returns a first direct communication response message to the first UE according to the first direct communication request message, and the first UE receives the first direct communication response message returned by the second UE, where the first direct communication response message includes: Public network IP address and first public network port number.
  • the first UE may send the handover indication information in the first direct communication request message to the first UE.
  • the second UE of course, the handover indication information can also be carried in other messages.
  • the first UE sends a third request message to the application server, where the third request message is used to request to acquire the first public network IP address and the first public network port number.
  • the application server is a server that serves communication between the first UE and the second UE.
  • the application server stores the first public network IP address, the first public network port number, the second public network IP address, and the second public network port number.
  • the application server After receiving the third request message sent by the first UE, the application server returns a third response message to the first UE according to the third request message, where the first UE receives the third response message returned by the application server, where the third response message includes: The first public network IP address and the first public network port number.
  • the first UE When the first UE acquires the first public network IP address and the first public network port number through the application server, optionally, the first UE sends the handover indication information to the second UE by using the second direct communication request message, where the second direct communication is performed.
  • the request message includes handover indication information, of course, the first UE also
  • the switching indication information can be carried by other messages.
  • the first direct communication request message or the second direct communication request message may further include application identification information.
  • step 101 and step 102 are executed in the same order, or may be performed simultaneously.
  • Step 103 The first UE establishes a direct communication path by using the first public network IP address and the first public network port number.
  • the first UE establishes an underlying connection by using the first public network IP address and the first public network port number.
  • the first UE may also generate a traffic flow template (TFT) corresponding to the direct communication path, where the matching information of the TFT corresponding to the direct communication path is: the source IP address is the first public network IP address, and the source port number is It is the first public network port number, the destination IP address is the second public network IP address, and the destination port number is the second public network port number.
  • TFT traffic flow template
  • the first UE Before the first UE establishes a direct communication path by using the first public network IP address and the first public network port number, the first UE further receives a second request message sent by the second UE, where the second request message is used to request acquisition from the first UE. a second public network IP address and a second public network port; the first UE sends a second response message to the second UE, where the second response message includes: a second public network IP address and a port number, and a second public network port number.
  • Step 104 The first UE communicates with the second UE on a direct communication path.
  • the first UE uses the first public network IP address as the source IP address of the data packet sent to the second UE, the first public network port number as the source port number of the data packet, and the second public network IP address.
  • the second public network port number is used as the destination port number of the data packet, and the data packet is sent to the second UE through the direct communication path. If the first UE generates the TFT, the first UE matches the data packet sent to the second UE to the corresponding direct communication path according to the TFT.
  • the TFT corresponding to the direct communication path is different from the TFT corresponding to the network communication path, and the source IP address of the TFT corresponding to the network communication path is the first private network IP address, and the source port number is the first private network.
  • Port number, the source IP address of the TFT corresponding to the direct communication path is the first public network IP address, the source port number is the first public network port number, and the destination IP address of the TFT used by the first UE to transmit data on the two communication paths The destination port number does not change. Both are the second public network IP address and the second public network port number.
  • the source IP address of the data packet sent by the first UE through the direct communication path is the public network IP address of the first UE, and the source port number is the public network port number of the first UE.
  • the IP address is the public network IP address of the second UE, and the destination IP address is the public network port number of the second UE. It can be seen that the source address and the source port number of the data packet sent by the first UE through the two communication paths are the same. Therefore, the IP address and the port number of the first UE do not change in the second UE. Thereby ensuring that the user's business is not interrupted.
  • the first UE sends the handover indication information to the second UE, to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path, and obtains the first public network IP address. And the first public network port number, using the first public network IP address and the first public network port number to establish a direct communication path.
  • the data packet sent by the first UE received by the second UE does not change, and the IP address and the port number of the first UE do not change in the second UE, thereby ensuring the user's Business is not interrupted.
  • FIG. 2 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 2 of the present invention. As shown in FIG. 2, the method provided in this embodiment may include the following steps:
  • Step 201 The second UE receives the handover indication information sent by the first UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path.
  • Step 202 The second UE acquires a second public network IP address and a second public network port number.
  • the second UE may obtain the second public network IP address and the second public network port number by:
  • the second UE sends a second request message to the first UE, where the second request message is used to request the first UE to obtain the second public network IP address and the second public network port number.
  • the first UE After receiving the second request message, the first UE returns a second response message to the second UE according to the second request message, and the second UE receives the second response message returned by the first UE, where the second response message includes: The network IP address and the second public network port number.
  • the second UE Before the second UE acquires the second public network IP address and the second public network port number, the second UE further receives the first request message sent by the first UE, where the handover indication information is carried in the first request message.
  • the first request message is used to request to obtain the first public network IP address and the first public network port number, and the second UE determines, according to the handover indication information, the first public network IP used by the first UE and the second UE in the network communication path. Address and the first public network port number; the second UE will be the first public network IP address and the first public The network port number is carried in the first response message and sent to the first UE.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the application identification information and the handover indication information may also be included in the second request message.
  • the second UE receives the first direct communication request message sent by the first UE, where the first direct communication request message includes a second public network IP address and a second public network port number.
  • the handover indication information may also be carried in the first direct communication request message.
  • the handover indication information may also be carried in other messages.
  • the second UE After the second UE receives the first direct communication request message sent by the first UE, the second UE returns a first direct communication response message to the first UE according to the first direct communication request message, where the first direct communication response message includes: Public network IP address and first public network port number.
  • the second UE sends a fourth request message to the application server, where the fourth request message is used to request to obtain the second public network IP address and the second public network port number, and the application server returns to the second UE according to the fourth request message.
  • the fourth response message is sent by the second UE to the second UE.
  • the fourth response message includes: a second public network IP address and a second public network port number.
  • the handover indication information is carried in the second direct communication request message, and the second UE receives the first
  • the second direct communication request message includes the handover indication information.
  • the handover indication information may also be carried in other messages.
  • the first direct communication request message or the second direct communication request message further includes application identification information.
  • the second UE After the second UE receives the first direct communication request message sent by the first UE, the second UE also returns a first direct communication response message to the first UE, where the first direct communication response message includes: a first public network IP address and a first A public network port number.
  • the second UE After the second UE receives the second direct communication request message sent by the first UE, the second UE returns a second direct communication response message to the first UE, where the second direct communication response message includes: application identifier information.
  • step 201 and step 202 are not executed in sequence, and may be performed simultaneously.
  • Step 203 The second UE establishes a direct use of the second public network IP address and the second public network port number. Communication path.
  • the second UE establishes an underlying connection by using the second public network IP address and the second public network port number.
  • the second UE may also generate a TFT of the direct communication path, where the source IP address of the TFT of the direct communication path is the second public network IP address, the source port number is the second public network port number, and the destination IP address is the first public network. IP address, the destination port number is the first public network port number.
  • Step 204 The second UE communicates with the first UE on a direct communication path.
  • the second UE uses the second public network IP address as the source IP address of the data packet sent to the first UE, and the second public network port number as the source port number of the data packet, and the first public network IP address.
  • the first public network port number is used as the destination port number of the data packet, and the data packet is sent to the first UE through the direct communication path. If the second UE generates the TFT corresponding to the direct communication path, the second UE matches the data packet sent to the first UE to the direct communication path according to the TFT corresponding to the direct communication path.
  • the source IP address of the second UE sending the data packet is the second private network IP address
  • the source port number is the second private network port number
  • the source IP address of the data packet is NAT.
  • the server is converted into the second public network IP address
  • the source port number is converted into the second public network port number by the NAT server
  • the NAT server sends the data packet according to the converted second public network IP address and the second public network port number.
  • the source address and the source port number of the data packet sent by the second UE through the two communication paths are the same, and therefore, the IP address of the second UE is seen by the first UE.
  • the port number does not change, thus ensuring that the user's business is not interrupted.
  • the second UE receives the handover indication information sent by the first UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path, and obtains The second public network IP address and the second public network port number establish a direct communication path by using the second public network IP address and the second public network port number.
  • the data packet sent by the second UE received by the first UE does not change, and the IP address and the port number of the second UE do not change in the first UE, thereby ensuring the user's Business is not interrupted.
  • Embodiment 1 and Embodiment 2 will be described in detail below through several specific embodiments.
  • FIG. 3 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 3 of the present invention. As shown in FIG. 3, the method provided in this embodiment may include the following steps:
  • Step 301 The first UE and the second UE establish a network communication path.
  • the network communication path is a path for establishing a PDN connection and a bearer to transmit data
  • the first UE is used as an example, and the first UE establishes a PDN connection with the first core network by using the first eNB
  • An eNB is an access device of the first UE
  • the first core network is an access core network of the first UE
  • the first core network includes multiple nodes: a mobility management entity (Mobility Management Entity, MME for short), and a service gateway. (Serving Gateway, SGW for short) and PGW.
  • MME Mobility Management Entity
  • SGW Serving Gateway
  • the first UE sends a PDN connectivity request or an attach request to the MME by using the first eNB, and after receiving the PDN connection request or the attach request, the MME sends a create session request to the SGW, and the SGW will The create session request is sent to the PGW, and the PGW allocates the first private network IP address and the first private network port number to the first UE. Then, the PGW creates a session response message, and the session response message includes not only the first private network IP address and the first private network port number allocated by the PGW for the first UE, but also the first private network IP address and The first public network IP address and the second public network port number corresponding to the first private network port number.
  • the second public network IP address and the second public network port number may also be sent to the first UE through the PDN connection establishment process or other messages of the attatch process, where the first UE saves the first private network IP address, the first private network port number, The second public network IP address and the second public network port number, the second UE establishes a PND connection with the second core network, and the process of establishing a PDN connection by the second UE is similar to that of the first UE.
  • Step 302 The first UE and the second UE communicate through a network communication path.
  • Step 303 The first UE initiates a discovery process, and determines whether it is closer to the second UE.
  • the first UE finds that it is closer to the second UE, the first UE determines to switch from the network communication path to the direct communication path, and how the first UE finds the second UE is a prior art, which is not described too much here.
  • Step 304 The first UE and the second UE exchange their respective Layer 2 IDs (layer2ID) in the discovery process.
  • layer2ID Layer 2 IDs
  • the first UE may also acquire the layer 2 identifier of the second UE, but the second UE does not acquire the layer 2 identifier of the first UE. If the first UE and the second UE are transmitting The first UE and the second UE can also exchange the Layer 2 identifiers through the application layer message, and the Layer 2 identifiers are used for the second layer to identify the Layer 2 identifiers of the second UE. Establish a Layer 2 connection on the direct communication path.
  • Step 305 The first UE and the second UE authenticate each other to establish a secure Layer 2 connection on the direct communication path.
  • Step 306 The first UE sends a first request message to the second UE, where the first request message includes the handover indication information and the APP ID.
  • the first request message is used to request to obtain the first public network IP address and the first public network port number.
  • the first request message carries the identifier of the first UE, and the identifier of the first UE may be an application layer. ), or (Mobile Subscriber International ISDN/PSTN number, MSISDN for short).
  • whether the identifier of the first UE is carried in the first request message includes:
  • the first request message may or may not carry the identifier of the first UE.
  • the first request message needs to carry the identifier of the first UE.
  • the first UE and the second UE do not need to carry the identifier of the first UE in the first request message if the second layer identifier of the first UE is exchanged by the application layer message.
  • Step 307 The second UE matches the handover indication information and the APP ID to the communication session with the first UE, and acquires the first public network IP and the first public network port number used by the first UE in the communication session.
  • Step 308 The second UE sends a first request response message to the first UE, where the first request response message includes a first public network IP and a first public network port number.
  • Step 309 The second UE sends a second request message to the first UE, where the second request message includes an APP ID.
  • the second request message is used to request the first UE to acquire the second public network IP address and the second public network port number.
  • the second request message includes an APP ID.
  • the second request message further includes the handover indication information, the handover indication information included in the second request message, the APP ID, and the handover indication information included in the first request message, and the APP.
  • the ID is the same, optional, and the second request message is also The identifier of the second UE is included.
  • Step 310 The first UE matches the handover indication information and the APP ID to the communication session with the second UE, and acquires the second public network IP and the second public network port number used by the second UE in the communication session.
  • Step 311 The first UE sends a second request response message to the second UE, where the second request response message includes a second public network IP and a second public network port number.
  • Step 312 The first UE and the second UE establish a direct communication path.
  • the first UE establishes a direct communication path by using the first public network IP and the first public network port number
  • the second UE establishes a direct communication path by using the second public network IP and the second public network port number.
  • a TFT may also be generated.
  • Step 313 The first UE and the second UE communicate on a direct communication path.
  • FIG. 4 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 4 of the present invention. As shown in FIG. 4, the method provided in this embodiment may include the following steps:
  • Step 401 The first UE and the second UE establish a network communication path.
  • Step 402 The first UE and the second UE communicate through a network communication path.
  • Step 403 The first UE initiates a discovery process, and determines whether it is closer to the second UE.
  • Step 404 The first UE and the second UE exchange their respective Layer 2 identifiers in the discovery process.
  • Step 405 The first UE and the second UE authenticate each other to establish a secure Layer 2 connection on the direct communication path.
  • Step 406 The first UE sends a first direct communication request message to the second UE, where the first direct communication request message includes the handover indication information, the APP ID, the second public network IP address, and the second public network port number.
  • the first direct communication request message may further include an identifier of the first UE.
  • Step 407 The second UE returns a first direct communication request response message to the first UE, where the first direct communication request response message includes an APP ID, a first public network IP address, and a first public network port number.
  • the second UE After receiving the first direct communication request message sent by the first UE, the second UE saves the second public network IP address and the second public network port number, and matches the communication session with the first UE according to the handover indication information and the APP ID. Obtaining a first public network IP address and a first public network port number used by the first UE in the communication session, and generating a first direct communication request response message.
  • the first direct communication response message may further include The identity of the second UE.
  • step 407 and step 408 are not sequential in execution, and may be performed in parallel.
  • Step 408 The first UE and the second UE establish a direct communication path.
  • the first UE establishes a direct communication path by using the first public network IP and the first public network port number
  • the second UE establishes a direct communication path by using the second public network IP and the second public network port number.
  • a TFT may also be generated.
  • the second UE establishes a direct communication path according to the second public network IP address and the second public network port number.
  • Step 409 The first UE returns a direct communication path establishment complete message to the second UE.
  • the first UE After the first UE successfully establishes the direct communication path, the first UE returns a direct communication path setup complete message to the second UE, and notifies the second UE that the direct communication path is successfully established.
  • Step 410 The first UE and the second UE communicate by using a direct communication path.
  • FIG. 5 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 5 of the present invention. As shown in FIG. 5, the method provided in this embodiment may include the following steps:
  • Step 501 The first UE and the second UE establish a network communication path.
  • Step 502 The first UE and the second UE communicate by using a network communication path.
  • Step 503 The first UE initiates a discovery process, and determines whether it is closer to the second UE.
  • Step 504 The first UE and the second UE exchange their respective Layer 2 identifiers in the discovery process.
  • Step 505 The first UE and the second UE authenticate each other to establish a secure Layer 2 connection on the direct communication path.
  • Step 506 The first UE sends a third request message to the application server.
  • the third request message is used to request to obtain the first public network IP address and the first public network port number.
  • the third request message includes the identifier information of the second UE, so that the application server returns the first public network IP address and the first public network port number of the session with the second UE.
  • Step 507 The application server returns a third response message to the first UE, where the third response message includes the first public network IP address and the first public network port number.
  • Step 508 The first UE sends a second direct communication request message to the second UE, where the second direct communication request message includes the handover indication information and the APP ID.
  • Step 509 The second UE sends a fourth request message to the application server.
  • the fourth request message is used to request to obtain the second public network IP address and the second public network port number.
  • the fourth request message includes the identifier information of the first UE, so that the application server returns a second public network IP address and a second public network port number of the session with the first UE.
  • Step 510 The application server returns a fourth response message to the second UE, where the fourth response message includes a second public network IP address and a second public network port number.
  • Step 511 The second UE returns a second direct communication response message to the first UE.
  • the second direct communication response message may include identification information of the second UE.
  • Step 512 The first UE and the second UE establish a direct communication path.
  • the first UE establishes a direct communication path by using the first public network IP and the first public network port number
  • the second UE establishes a direct communication path by using the second public network IP and the second public network port number.
  • a TFT may also be generated.
  • Step 513 The first UE and the second UE communicate by using a direct communication path.
  • first direct communication request message and the second direct communication request message mentioned in the first embodiment to the fifth embodiment may be implemented by using the same message type, or may be different.
  • the message type is implemented.
  • the first direct communication response message and the second direct communication response message are also implemented by the same message type.
  • the first request message and the second request message may be implemented by using the same message type, or may be implemented by using different message types.
  • the third request message and the fourth request message may be implemented by using the same message type, or may be different.
  • the message type is implemented.
  • the first response message and the second response message also adopt the same message type
  • the third request message and the fourth request message adopt the same
  • the third response message and the fourth response message also use the same message type when the message type is used.
  • the first UE may further carry a public safety indication in the process of establishing a direct communication path, where the public security indication is used to indicate the P- serving for the first UE.
  • the GW saves the private network IP address of the first UE, so that the first UE needs to allocate the private network IP address of the first UE to the first UE when the communication path needs to be switched from the direct communication path to the network communication path. The address, so as to ensure that the user's business is not interrupted.
  • the public safety indication can be implemented by a PDN connection request message or a Protocol Configuration Options (PCO) field or a request type field of the attach request message.
  • PCO Protocol Configuration Options
  • the eNB sends the public security indication to the MME.
  • the MME's subscription data is configured with the private IP address of the public safty UE
  • the MME sends the private network IP address to the PGW
  • the PGW saves and allocates the private network IP address to the UE, so that after the first UE switches to the direct communication path and returns to the network communication path, the PGW can allocate the first UE.
  • the public security indication may be saved in the MME and not sent to the PGW.
  • the public security indication is included in the delete session request, so that the PGW saves the private The IP address of the network, so that after the first UE switches to the direct communication path and returns to the network communication path, the PGW can allocate the same private network IP address to the first UE.
  • the first UE does not need to switch the communication path from the direct communication path to the network communication path, there is no need to carry a public safety indication in the process of establishing the network communication path.
  • the second UE may also carry a public security indication in the process of establishing a direct communication path. The following will be explained by a specific embodiment:
  • FIG. 6 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 6 of the present invention. As shown in FIG. 6, the method provided in this embodiment may include the following steps:
  • Step 601 The first UE and the second UE communicate by using a direct communication path.
  • the premise of this embodiment is that the first UE and the second UE have switched the communication path switching from the network communication path to the direct communication path, and communicated using the direct communication path.
  • Step 602 In the communication process, the first UE determines that the communication quality of the direct communication path is lower than a preset threshold.
  • the communication quality of the direct communication path is detected.
  • the first UE may switch the communication path from the direct communication path to the network communication path.
  • Step 603 The first UE establishes a PDN connection with the first core network, and carries public security indication information during the establishment process.
  • the first UE determines to switch from the direct communication path to the network communication path, if the first network communication path is not released, the first UE directly switches the communication path from the direct communication path to the first network communication path, in this embodiment.
  • the first network communication path is a network communication path used before the first UE switches to the direct communication path. If the first network communication path has been released, the second network communication path needs to be established, and the private network IP address used for communication in the second network communication path allocated for the first UE and the first UE are in the first network.
  • the private network IP address used for communication on the communication path is the same, so that the service of the user after the handover is not interrupted.
  • the first UE may include public security indication information in the PCO of the attach request or the PDN connection request, and the PGW may be the first UE according to the saved private network IP address used by the first UE to communicate on the first network communication path.
  • the private network IP address used for communication on the first network communication path is allocated to the first UE as the private network IP address used by the first UE on the second network communication path.
  • Step 604 The first core network sends the allocated private network IP address to the first UE.
  • Step 605 The first UE establishes a second network communication path according to the private network IP address allocated by the first core network.
  • the first UE establishes a bearer of the communication session with the second UE according to the private network IP address allocated by the first core network, and the first UE may further generate the second network according to the private network IP address allocated by the first core network.
  • TFT corresponding to the communication path and the TFT corresponding to the second network communication path
  • the source IP address is the private network IP address assigned by the first core network
  • the source port number is the private network port number used by the second UE to communicate with the second UE
  • the destination IP address is the second public network IP address.
  • Address, destination port number is the second public network port number.
  • Step 606 The first UE sends a direct communication cancellation request message to the second UE.
  • the direct communication cancellation request message includes handover indication information, and the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the direct communication path to the second network communication path.
  • Step 607 The second UE and the second core network establish a PDN connection, and carry the public security indication information in the establishing process.
  • Step 608 The second core network sends the allocated private network IP address to the second UE.
  • the PGW in the second core network includes a private network IP address used by the second UE to communicate on the first network communication path, and the second core network uses the private network IP used by the second UE to communicate on the first network communication path.
  • the address is the private network IP address used by the second UE to communicate on the second network communication path.
  • Step 609 The second UE establishes a second network communication path according to the private network IP address allocated by the second core network.
  • the second UE establishes a bearer of the communication session with the first UE according to the private network IP address allocated by the second core network, and the second UE may further generate a second according to the private network IP address allocated by the second core network.
  • the TFT corresponding to the network communication path and the matching information of the TFT corresponding to the second network communication path the source address is a private network IP address allocated by the second core network, and the source port number is used by the second UE for use with the first UE.
  • the destination IP address is the first public network IP address, and the destination port number is the first public network port number.
  • Step 610 The second UE sends a direct communication cancellation response message to the first UE.
  • the first UE and the second UE may further connect the communication path. Switching from the direct communication path to the network communication path, and ensuring that the user's service is not interrupted during the handover.
  • FIG. 7 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 7 of the present invention. As shown in FIG. 7, the method provided in this embodiment may include the following steps:
  • Step 701 The first UE sends handover indication information to the second UE, where the indication information is used for handover. And indicating that the communication path between the second UE and the first UE is switched from the network communication path to the direct communication path.
  • the first UE sends the handover indication information to the second UE, where the first UE sends a third direct communication request message or a fourth direct communication request message to the second UE, where the third direct communication request message or the first
  • the four direct communication request message includes the handover indication information.
  • the first UE may also send the handover indication information by using other messages.
  • the third direct communication request message further includes a first private network IP address, a first private network port number, a second public network IP address, and a second public network port number; and the fourth direct communication request message is further The method may include: a first private network IP address and a first private network port number.
  • the third direct communication request message or the fourth direct communication request message further includes application identification information.
  • Step 702 The first UE acquires a first public network IP address and a first public network port number.
  • Step 703 The first UE acquires a second private network IP address and a second private network port number.
  • the first UE acquires the first public network IP address and the first public network port number, specifically: the first UE receives the third direct communication response message returned by the second UE, and the third direct communication response message is The second UE is returned according to the third direct communication request message, where the third direct communication response message includes: a first public network IP address and a first public network port number.
  • the third direct communication response message may further include: a second private network IP address and a second private network port number, where the first UE obtains the second private network IP address and the second private network port number from the third direct communication response message. .
  • the first UE acquires the first public network IP address and the first public network port number, where the first UE sends a third request message to the application server, and the third request message is used to request to obtain the first a public network IP address and a first public network port number.
  • the third request message includes the identifier information of the second UE, so that the application server returns the first public IP address of the session with the second UE.
  • the first public network port number The application server returns a third response message to the first UE according to the third request message, where the first UE receives the third response message returned by the application server, where the third response message includes: the first public network IP address and the first public network port number.
  • the first UE acquires the second private network IP address and the second private network port number, specifically: the first UE receives the fourth direct communication response message returned by the second UE according to the fourth direct communication request message, and the fourth direct The communication response message includes: a second private network IP address and a second private network port number.
  • the steps 701-703 are not in the order of execution. And can be executed at the same time; and the third request message and the third direct communication request message in the step 703 are not in the order of execution, and can be executed simultaneously.
  • Step 704 The first UE establishes a direct communication path by using the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number.
  • the first UE after acquiring the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number, the first UE does not need to establish a direct communication path through signaling interaction.
  • the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number are established according to the first public network IP address, the first public network IP address, and the first public network port number.
  • the first correspondence between the first private network IP address and the first private network port number, and the second public network IP address, the second public network port number, the second private network IP address, and the second private network port number The second correspondence.
  • the first UE may also generate a TFT corresponding to the direct communication path.
  • the TFT corresponding to the direct communication path is the same as the TFT corresponding to the network communication path, and the source IP of the TFT corresponding to the direct communication path.
  • the address is the first private network IP address
  • the source port number is the first private network port number
  • the destination IP address is the second public network IP address
  • the destination port number is the second public network port number, but the TFT of the direct communication path takes precedence.
  • the level is higher than the priority of the network communication path, thereby ensuring that the TFT of the direct communication path is preferentially used when the first UE sends a data packet to the second UE.
  • Step 705 The first UE communicates with the second UE on the direct communication path.
  • the application layer of the first UE uses the first private network IP address as the source IP address of the data packet when encapsulating the data packet sent to the second UE.
  • a private network port number is used as the source port number of the data packet
  • the second public network IP address is used as the destination IP address of the data packet
  • the second public network port number is used as the destination port number of the data packet.
  • the encapsulated data packet is the same as the data packet transmitted on the network communication path, and therefore, the application layer of the first UE sees that the network communication path and the data packet on the direct communication path are the same.
  • a proximity service layer may be added to the first UE, and the proximity service layer is used according to the first correspondence.
  • the source IP address, the source port number, the destination IP address, and the destination port number of the data packet are modified by the second correspondence.
  • the proximity service layer of the first UE replaces the source IP address of the data packet sent to the second UE with the first public network IP address according to the first correspondence, and replaces the source port number of the data packet with the first public Network port number, according to the second correspondence
  • the destination IP address of the data packet is replaced with the second private network IP address, and the destination port number of the data packet is replaced with the second private network port number, and the first UE sends the data packet to the second UE by using the direct communication path.
  • the data packet sent by the first UE through the direct communication path is the same as the data packet sent by the first UE through the network communication path, that is, the source IP address of the first UE before and after the communication path is switched by the second UE.
  • the source port number, the destination IP address, and the destination port number are unchanged, so that the service on the second UE is not interrupted.
  • the first UE may also receive the data packet sent by the second UE by using a direct communication path.
  • the difference between this embodiment and the first embodiment is that, in the first embodiment, the source IP address and the source port number of the data packet sent by the first UE through the direct communication path and the network communication path are the same, but the destination IP address. The address and destination port number are different. In this embodiment, the source IP address and the source port number of the data packet sent by the first UE through the direct communication path and the network communication path are the same, and the destination IP address and the destination port number are also the same.
  • the first UE sends the handover indication information to the second UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path, and obtains the first The public network IP address, the first public network port number, the second private network IP address, and the second private network port number are based on the first public network IP address, the first public network port number, the second private network IP address, and the second The private network port number establishes a direct communication path, and the direct communication path is used to communicate with the second UE.
  • the method ensures that the service of the user is not interrupted before and after the communication path is switched by the first UE.
  • FIG. 8 is a flowchart of a method for switching between network communication and direct communication according to Embodiment 8 of the present invention. As shown in FIG. 8, the method provided in this embodiment may include the following steps:
  • Step 801 The second UE receives the handover indication information sent by the first UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from the network communication path to the direct communication path.
  • the handover indication information is carried in the third direct communication request message or the fourth direct communication request message, and the second UE receives the third direct communication request message or the fourth direct communication request message sent by the first UE, from the third The handover indication information is obtained in the direct communication request message or the fourth direct communication request message.
  • the handover indication information may also be carried in other messages.
  • the third direct communication request message or the fourth direct communication request message may further include application identification information.
  • Step 802 The second UE acquires a second public network IP address and a second public network port number.
  • Step 803 The second UE acquires the first private network IP address and the first private network port number.
  • the third direct communication request message further includes a second public network IP address, a second public network port number, a first private network IP address, and a first private network port number, where the second UE is directly from the third The second public network IP address, the second public network port number, the first private network IP address, and the first private network port number are obtained in the communication request message.
  • the second UE sends a fourth request message to the application server, where the fourth request message is used to request to obtain the second public network IP address and the second public network port number, optionally, in the fourth request message.
  • the identifier information of the first UE is included, so that the application server returns a second public network IP address and a second public network port number of the session with the first UE.
  • the application server After receiving the fourth request message, the application server returns a fourth response message to the second UE according to the fourth request message, where the fourth response message includes the second public network IP address and the second public network port number.
  • the second UE obtains the first private network IP address and the first private network port number from the fourth direct communication request message, where the fourth direct communication request message includes the first private network IP address and the first private network port number.
  • the second UE After the second UE receives the third direct communication request message sent by the first UE, the second UE also returns a third direct communication response message to the first UE, where the third direct communication response message includes the first public network IP address, A public network port number, a second private network IP address, and a second private network port number.
  • the second UE After the second UE receives the fourth direct communication request message sent by the first UE, the second UE also returns a fourth direct communication response message to the first UE, where the fourth direct communication response message includes the second private network IP address and the first Second private network port number.
  • steps 801-803 are not executed in sequence, and may be performed simultaneously; and the fourth request message and the fourth direct communication request message in the step 803 are not in the order of execution. And can be executed simultaneously
  • Step 804 The second UE establishes a direct communication path by using the second public network IP address, the second public network port number, the first private network IP address, and the first private network port.
  • the second UE establishes an underlying connection according to the second public network IP address, the second public network port number, the first private network IP address, and the first private network port, and establishes a second public network IP address and a second public network.
  • the first correspondence between the port number and the second private network IP address and the second private network port number, and the first public network IP address, the first public network port number, the first private network IP address, and the first private network port number The second correspondence.
  • the second UE may also generate a direct communication path corresponding to
  • the TFT corresponding to the direct communication path is the same as the TFT corresponding to the network communication path
  • the source IP address of the TFT corresponding to the direct communication path is the second private network IP address
  • the source port number is the second private network port number.
  • the destination IP address is the first public network IP address
  • the destination port number is the first public network port number, but the priority of the TFT of the direct communication path is higher than the priority of the network communication path, thereby ensuring that the second UE is to the first UE.
  • the TFT of the direct communication path is preferred when sending a packet.
  • Step 805 The second UE communicates with the first UE on a direct communication path.
  • the second UE replaces the source IP address of the data packet sent to the first UE with the second public network IP address according to the first correspondence, and replaces the source port number of the data packet with the second public network port number.
  • the second UE sends the replaced data packet to the first UE by using a direct communication path.
  • the second UE may also receive the data packet sent by the first UE by using a direct communication path.
  • the application layer of the second UE uses the second private network IP address as the source IP address of the data packet when encapsulating the data packet sent to the first UE.
  • the second private network port number is used as the source port number of the data packet
  • the first public network IP address is used as the destination IP address of the data packet
  • the first public network port number is used as the destination port number of the data packet.
  • the encapsulated packet is the same as the packet sent on the network communication path.
  • the data packets transmitted in the network communication path need to undergo address translation by the NAT server on the first UE side and the second UE side.
  • the first UE needs to replace the source and destination IP addresses of the data packet with the source and destination port numbers, so that the source IP address and source port of the second UE before and after the first UE seems to be switched.
  • the number and the destination IP address and the destination port number are unchanged, so that the service on the first UE is not interrupted.
  • FIG. 9 is a signaling flowchart of a method for switching between network communication and direct communication according to Embodiment 9 of the present invention. As shown in FIG. 9, the method provided in this embodiment may include Including the following steps:
  • Step 901 The first UE and the second UE respectively establish a network communication path.
  • Step 902 The first UE and the second UE communicate through a network communication path.
  • Step 903 The first UE initiates a discovery process, and determines whether it is closer to the second UE.
  • Step 904 The first UE and the second UE exchange their respective Layer 2 identifiers in the discovery process.
  • Step 905 The first UE and the second UE authenticate each other to establish a secure Layer 2 connection on the direct communication path.
  • Step 906 The first UE sends a third request message to the application server.
  • Step 907 The application server returns a third response message, where the third response message includes a first public network IP address and a first public network port number.
  • Step 908 The first UE sends a fourth direct communication request message to the second UE, where the fourth direct communication request message includes the handover indication information, the APP ID, the first private network IP address, and the first private network port number.
  • the identifier of the first UE may also be included in the fourth direct communication request message.
  • Step 909 The second UE sends a fourth request message to the application server according to the handover indication information and the APP ID.
  • Step 910 The application server returns a fourth response message to the second UE, where the second public network IP address and the second public network port number are in the fourth response message.
  • Step 911 The second UE establishes and saves a first correspondence between the second public network IP address, the second public network port number, the second private network IP address, and the second private network port number, and the first public network IP address, The second correspondence between the first public network port number and the first private network IP address and the first private network port number.
  • Step 912 The second UE returns a fourth direct communication response message to the first UE, where the fourth direct communication response message includes a second private network IP address and a second private network port number.
  • Step 913 The second UE establishes and saves a first public network IP address, a first public network port number, a first private network IP address, a first private network port number, and a second public network IP address.
  • Step 914 The first UE and the second UE communicate on a direct communication path.
  • the third direct communication request message and the fourth direct communication request message mentioned in the seventh embodiment to the ninth embodiment may be implemented by using the same message type, or may be implemented by using different message types.
  • the third direct communication response message and the fourth direct communication response message are also implemented by the same message type of the same message type.
  • the third request message and the fourth request message may be implemented by using the same message type, or may be implemented by using different message types.
  • the third response message and The fourth response message also uses the same message type.
  • the first UE is a schematic structural diagram of a first UE according to Embodiment 10 of the present invention.
  • the first UE provided in this embodiment includes: a sending module 11, an obtaining module 12, a path establishing module 13, and a communication module 14.
  • the sending module 11 is configured to send, to the second UE, handover indication information, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from a network communication path to a direct communication path;
  • the obtaining module 12 is configured to obtain a first public network IP address and a first public network port number
  • the path establishing module 13 is configured to establish the direct communication path by using the first public network IP address and the first public network port number;
  • the communication module 14 is configured to communicate with the second UE on the direct communication path.
  • the sending module 11 is specifically configured to: send a first request message to the second UE, where the first request message is used to request to obtain the first public network IP address and the first a public network port number, where the first request message includes the handover indication information.
  • the acquiring module 12 is specifically configured to: receive the first response message returned by the second UE, where the first response message includes: the first public network IP address and the first public network port number.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate that the second UE sends the communication path under the application corresponding to the application identifier from the The network communication path is switched to the direct communication path.
  • the first UE further includes: a receiving module, configured to receive a second request message sent by the second UE, where the second request message is used to request the first UE to acquire a second public network The IP address and the second public network port; correspondingly, the sending 11 module is further configured to send a second response message to the second UE, where the second response message includes: the second public network IP address And a port number and the second public network port number.
  • a receiving module configured to receive a second request message sent by the second UE, where the second request message is used to request the first UE to acquire a second public network The IP address and the second public network port
  • the sending 11 module is further configured to send a second response message to the second UE, where the second response message includes: the second public network IP address And a port number and the second public network port number.
  • the acquiring module 12 is specifically configured to: send a first direct communication request message to the second UE, where the first direct communication request message further includes: a second public network IP address and a Receiving, by the second public network port number, the first direct communication response message returned by the second UE, where the first direct communication response message includes: the first public network IP address and the first public network port number.
  • the handover indication information may be carried in the first direct communication request message.
  • the sending module 11 is specifically configured to: send a second direct communication request message to the second UE, where the second direct communication request message includes the switching indication information;
  • the obtaining module 12 is specifically configured to: send a third request message to the application server, where the third request message is used to request to obtain the first public network IP address and the first public network port number; and then receive the The third response message returned by the application server, where the third response message includes: the first public network IP address and the first public network port number.
  • the first direct communication request message or the second direct communication request message further includes application identification information.
  • the communication module 14 is specifically configured to:
  • the first public network IP address as the source IP address of the data packet sent to the second UE
  • the address is used as the destination IP address of the data packet
  • the second public network port number is used as the destination port number of the data packet
  • the data packet is sent to the second UE by using the direct communication path.
  • the first UE provided in this embodiment may be used to perform the methods in the first embodiment and the third embodiment to the sixth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of a second UE according to Embodiment 11 of the present invention.
  • the second UE provided in this embodiment includes: a receiving module 21, an obtaining module 22, a path establishing module 23, and a communication module 24. .
  • the receiving module 21 is configured to receive the handover indication information sent by the first UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from a network communication path to a direct communication path. ;
  • the obtaining module 22 is configured to obtain a second public network IP address and a second public network port number.
  • the path establishing module 23 is configured to establish the direct communication path by using the second public network IP address and the second public network port number;
  • the communication module 24 is configured to communicate with the first UE on the direct communication path.
  • the acquiring module 22 is specifically configured to: send a second request message to the first UE, where the second request message is used to request the first UE to acquire the second public network.
  • the receiving module 21 is further configured to: receive the first request message sent by the first UE, where the first request message includes the handover indication information, where the first request message is used to request acquisition a first public network IP address and a first public network port number, where the first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path, The first public network port number is a public network port number used by the first UE to communicate with the second UE in the network communication path; determining, according to the handover indication information, the first UE and The first public network IP address and the first public network port number used by the second UE in the network communication path.
  • the second UE further includes: a sending module, configured to send the first public network IP address and the first public network port number to the first UE in a first response message.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate that the second UE sends the communication path under the application corresponding to the application identifier from the network communication path. Switch to the direct communication path.
  • the acquiring module 22 is specifically configured to: receive a first direct communication request message sent by the first UE, where the first direct communication request message includes the second public network IP address and The second public network port number.
  • the handover indication information may be carried in the first direct communication request message.
  • the second UE further includes: a sending module, configured to return a first direct communication response message to the first UE, where the first direct communication response is cancelled
  • the information includes: the first public network IP address and the first public network port number.
  • the receiving module 21 is specifically configured to: receive a second direct communication request message sent by the first UE, where the second direct communication request message includes the switching indication information.
  • the obtaining module 22 is specifically configured to: send a fourth request message to the application server, where the fourth request message is used to request to acquire the second public network IP address and the second public network port number; The fourth response message returned by the application server, where the fourth response message includes: the second public network IP address and the second public network port number.
  • the first direct communication request message or the second direct communication request message further includes application identification information, where the application identification information is used to indicate that the second UE uses the application corresponding to the application identifier.
  • the communication path is switched from the network communication path to the direct communication path.
  • the communication module is specifically configured to: use the second public network IP address as a source IP address of a data packet sent to the first UE, and use the second public network port number as the The source port number of the data packet, the first public network IP address is used as the destination IP address of the data packet, and the first public network port number is used as the destination port number of the data packet, and the data packet is directly A communication path is sent to the first UE.
  • the second UE provided in this embodiment may be used to perform the methods in the second embodiment to the sixth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 12 is a schematic structural diagram of a first UE according to Embodiment 12 of the present invention.
  • the first UE provided in this embodiment includes: a sending module 31, an obtaining module 32, a path establishing module 33, and a communication module 34. .
  • the sending module 31 is configured to send, to the second UE, handover indication information, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from a network communication path to a direct communication path;
  • the obtaining module 32 is configured to obtain the first public network IP address and the first public network port number;
  • the obtaining module 32 is further configured to obtain a second private network IP address and a second private network port number.
  • the path establishing module 33 is configured to establish the direct communication path by using the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number;
  • the communication module 34 is configured to communicate with the second UE on the direct communication path.
  • the path establishing module 33 is specifically configured to: establish the first public network IP address, the first public network port number, the first private network IP address, and the first private network port number. Corresponding relationship, and a second correspondence between the second public network IP address, the second public network port number, the second private network IP address, and the second private network port number.
  • the communication module 34 is specifically configured to: replace, according to the first correspondence, a source IP address of a data packet sent to the second UE with the first public network IP address, and a source port of the data packet.
  • the number is replaced by the first public network port number
  • the destination IP address of the data packet is replaced with the second private network IP address according to the second correspondence
  • the destination port number of the data packet is replaced with The second private network port number, wherein the source port number of the data packet is the first private network port number, and the source port number of the data packet is the first private network port number, the data
  • the destination IP address of the packet is the second public network IP address, the destination port number of the data packet is the second public network port number, and the first UE sends the data packet through the direct communication path. Giving the second UE; or receiving, by the direct communication path, a data packet sent by the second UE.
  • the sending module 31 is specifically configured to: send a third direct communication request message to the second UE, where the third direct communication request message includes: the switching indication information; the acquiring module The specific one is: receiving the third direct communication response message that is returned by the second UE, where the third direct communication response message includes: the first public network IP address and the first public network port number; The third direct communication response message further includes: the second private network IP address and the second private network port number, and the obtaining module 32 acquires the second private from the third direct communication response message The network IP address and the second private network port number.
  • the sending module 31 is specifically configured to: send a fourth direct communication request message to the second UE, where the fourth direct communication request message includes: the handover indication information.
  • the obtaining, by the obtaining module 32, the second private network IP address and the second private network port number, includes: receiving a fourth direct communication response message returned by the second UE, where the fourth direct communication response message is
  • the method includes: the second private network IP address and the first Second private network port number.
  • the third direct communication request message further includes: a first private network IP address and a first private network port number, a second public network IP address, and a second public network port number.
  • the fourth direct communication request message further includes: a first private network IP address and a first private network port number.
  • the third direct communication request message or the fourth direct communication request message further includes application identification information, where the application identification information is used to indicate that the second UE uses the application corresponding to the application identifier.
  • the communication path is switched from the network communication path to the direct communication path.
  • the first UE provided in this embodiment may be used to perform the solution provided in the seventh embodiment and the eighth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 13 is a schematic structural diagram of a second UE according to Embodiment 13 of the present invention.
  • the second UE provided in this embodiment includes: a receiving module 41, an obtaining module 42, a path establishing module 43, and a communication module 44. .
  • the receiving module 41 is configured to receive the handover indication information sent by the first UE, where the handover indication information is used to indicate that the second UE switches the communication path with the first UE from a network communication path to a direct communication path. ;
  • the obtaining module 42 is configured to obtain a second public network IP address and a second public network port number.
  • the obtaining module 42 is further configured to obtain the first private network IP address and the first private network port number;
  • the path establishing module 43 is configured to establish the direct communication path by using the second public network IP address, the second public network port number, the first private network IP address, and the first private network port;
  • the communication module 44 is configured to communicate with the first UE on the direct communication path.
  • the path establishing module 43 is specifically configured to: establish the first public network IP address, the second public network port number, the second private network IP address, and the second private network port number. Corresponding relationship, and a second correspondence between the first public network IP address, the first public network port number, the first private network IP address, and the first private network port number.
  • the communication module 44 is specifically configured to: replace, according to the first correspondence, a source IP address of a data packet sent to the first UE with the second public network IP address, where the data is The source port number of the packet is replaced by the second public network port number, and the destination IP address of the data packet is replaced with the first private network IP address according to the second correspondence, and the data packet is The destination port number is replaced by the first private network port number, where the source port number of the data packet is the second private network port number, and the source port number of the data packet is the second private network a port number, the destination IP address of the data packet is the first public network IP address, the destination port number of the data packet is the first public network port number, and the second UE replaces the data packet Transmitting to the first UE by using the direct communication path; or receiving, by the direct communication path, a data packet sent by the first UE.
  • the receiving module 41 is specifically configured to: receive a third direct communication request message sent by the first UE, where the third direct communication request message includes: the handover indication information.
  • the third direct communication request message further includes the second public network IP address and the second public network port number, and the obtaining module 42 is specifically configured to: obtain the location from the third direct communication request message The second public network IP address and the second public network port number are described.
  • the third direct communication request message further includes the first private network IP address and the first private network port number, and the obtaining module 42 is specifically configured to: obtain the location from the third direct communication request message.
  • the first private network IP address and the first private network port number are described.
  • the receiving module 41 is specifically configured to: receive a fourth direct communication request message sent by the first UE, where the fourth direct communication request message includes: the handover indication information.
  • the obtaining module 42 includes: sending a fourth request message to the application server, where the fourth request message is used to request to acquire the second public And receiving the fourth response message returned by the application server, where the fourth response message includes the second public network IP address and the second public network port number .
  • the acquiring module acquires the first private network IP address and the first private network port number, and the method includes: the fourth direct communication request message further includes the first private network IP address and the first private The network port number, the obtaining module 42 acquires the first private network IP address and the first private network port number from the fourth direct communication request message.
  • the second UE further includes: a sending module, configured to return a third direct communication response message to the first UE, where the third direct communication response message includes a first public network IP address, and a first a public network port number, a second private network IP address, and a second private network port number, or returning a fourth direct communication response message to the first UE, where the fourth direct communication response message includes a second private network IP address. Address and second private network port number.
  • the application identifier information is further used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path to the direct communication path.
  • the second UE provided in this embodiment may be used to implement the solutions in the eighth embodiment and the ninth embodiment.
  • the specific implementation manners and the technical effects are similar.
  • FIG. 14 is a schematic structural diagram of a first UE according to Embodiment 14 of the present invention.
  • the first UE 500 provided in this embodiment includes: a processor 51, a memory 52, a communication interface 53, and a system bus 54, The memory 51 and the communication interface 53 are connected and communicated with the processor 51 through the system bus; the memory 51 is configured to store computer execution instructions; the communication interface 53 is configured to communicate with other devices.
  • first public network IP address is a public network IP address used by the first UE to communicate with the second UE in the network communication path
  • the first public network port number is a public network port number used by the first UE to communicate with the second UE in the network communication path
  • the processor 51 sends the handover indication information to the second UE, where the processor 51 sends a first request message to the second UE, where the first request message is used to request to obtain the The first public network IP address and the first public network port number, and the first request message includes the handover indication information.
  • the processor 51 obtains the first public network IP address and the first public network port number, specifically: receiving the first response message returned by the second UE, where the first response message includes: the first public The network IP address and the first public network port number.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate that the second UE switches the communication path under the application corresponding to the application identifier from the network communication path. To the direct communication path.
  • the processor 51 Before the processor 51 establishes the direct communication path by using the first public network IP address and the first public network port number, the processor 51 is further configured to: receive the second a request message, the second request message is used to request the first UE to acquire a second public network IP address and a second public network port, and send a second response message to the second UE, where the second response is The message includes: the second public network IP address and port number and the second public network port number.
  • the processor 51 obtains the first public network IP address and the first public network port number, where the processor 51 sends a first direct communication request message to the second UE, where the first The direct communication request message further includes: a second public network IP address and a second public network port number; receiving the first direct communication response message returned by the second UE, where the first direct communication response message includes: The first public network IP address and the first public network port number.
  • the handover indication information is carried in the first direct communication request message.
  • the processor 51 sends the handover indication information to the second UE, where the second direct communication request message is sent to the second UE, where the second direct communication request message includes the handover indication information.
  • the processor 51 obtains the first public network IP address and the first public network port number, specifically: sending a third request message to the application server, where the third request message is used to request to obtain the first public network IP address. And receiving, by the first public network port number, a third response message that is returned by the application server, where the third response message includes: the first public network IP address and the first public network port number.
  • the first direct communication request message or the second direct communication request message further includes application identification information, where the application identification information is used to indicate that the second UE uses the application corresponding to the application identifier.
  • the communication path is switched from the network communication path to the direct communication path.
  • the processor 51 communicates with the second UE on the direct communication path, where the processor 51 uses the first public network IP address as a source of data packets sent to the second UE.
  • the IP address, the first public network port number is used as the source port number of the data packet
  • the second public network IP address is used as the destination IP address of the data packet
  • the second public network port number is used as the data.
  • a destination port number of the packet where the data packet is sent to the second UE by using the direct communication path.
  • the first UE provided in this embodiment may be used to implement the solutions in the first embodiment and the third embodiment to the sixth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 15 is a schematic structural diagram of a second UE according to Embodiment 15 of the present invention.
  • the second UE 600 provided in this embodiment includes: a processor 61, a memory 62, a communication interface 63, and a system bus 64.
  • the memory 62 and the communication interface 63 are connected and communicated with the processor 61 via the system bus 64; the memory 62 is for storing computer execution instructions; the communication interface 63 is for communicating with other devices for communication
  • the processor 61 is configured to execute the computer to execute an instruction, and execute the method as follows:
  • the processor 61 obtains the second public network IP address and the second public network port number, specifically: sending a second request message to the first UE, where the second request message is used to Receiving, by the first UE, the second public network IP address and the second public network port number; receiving a second response message that is returned by the first UE, where the second response message includes: the second public The network IP address and the second public network port number.
  • the processor 61 is further configured to: receive the first request message sent by the first UE, where the first request message includes And the first indication message is used to request to obtain the first public network IP address and the first public network port number; and determining, according to the handover indication information, that the first UE and the second UE are The first public network IP address and the first public network port number used in the network communication path; carrying the first public network IP address and the first public network port number in a first response message Transmitting to the first UE.
  • the first request message further includes application identifier information, where the application identifier information is used to indicate that the second UE sends the communication path under the application corresponding to the application identifier from the network communication path. Switch to the direct communication path.
  • the processor 61 obtains the second public network IP address and the second public network port number, specifically: receiving the first direct communication request message sent by the first UE, where the first direct communication
  • the request message includes the second public network IP address and the second public network port number.
  • the handover indication information is carried in the first direct communication request message.
  • the processor 61 After receiving the first direct communication request message sent by the first UE, the processor 61 is further configured to: return a first direct communication response message to the first UE, where the first direct communication response message includes: The first public network IP address and the first public network port number.
  • the processor 61 receives the handover indication information sent by the first UE, specifically: receiving a second direct communication request message sent by the first UE, where the second direct communication request message includes the handover Instructing the information that the second public network IP address and the second public network port number are obtained by the processor 61, specifically: sending a fourth request message to the application server, where the fourth request message is used to request to acquire the second public Receiving a fourth response message returned by the application server, where the fourth response message includes: the second public network IP address and the second public network port number.
  • the first direct communication request message or the second direct communication request message further includes application identification information.
  • the processor 61 communicates with the first UE on the direct communication path, specifically: using the second public network IP address as a source IP address of a data packet sent to the first UE.
  • the second public network port number is used as the source port number of the data packet
  • the first public network IP address is used as the destination IP address of the data packet
  • the first public network port number is used as the data packet.
  • the destination port number, the data packet is sent to the first UE by using the direct communication path.
  • the second UE provided in this embodiment may be used to perform the solution provided in the second embodiment to the sixth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 16 is a schematic structural diagram of a first UE according to Embodiment 16 of the present invention.
  • the first UE 700 provided in this embodiment includes: a processor 71, a memory 72, a communication interface 73, and a system bus 74.
  • the memory 72 and the communication interface 73 are connected and communicated with the processor 71 via the system bus 74; the memory 72 is configured to store computer execution instructions; the communication interface 73 is configured to communicate with other devices,
  • the processor 71 is configured to run the computer to execute an instruction, and execute the method as follows:
  • the processor 71 establishes the direct communication path by using the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number, specifically The processor 71 establishes a first correspondence between the first public network IP address, the first public network port number, the first private network IP address, and the first private network port number, and the second public network IP address. The second correspondence between the address, the second public network port number, the second private network IP address, and the second private network port number.
  • the processor 71 communicates with the second UE on the direct communication path, specifically: the source IP address of the data packet that the processor 71 sends to the second UE according to the first correspondence. And replacing with the first public network IP address, replacing the source port number of the data packet with the first public network port number, and replacing the destination IP address of the data packet with the second corresponding relationship.
  • the second private network IP address, the destination port number of the data packet is replaced with the second private network port number, where the source port number of the data packet is the first private network port number, The source port number of the data packet is the first private network port number, the destination IP address of the data packet is the second public network IP address, and the destination port number of the data packet is the second public network port.
  • the first UE sends the data packet to the second UE by using the direct communication path; or the first UE receives the data packet sent by the second UE by using the direct communication path.
  • the processor 71 sends the handover indication information to the second UE, where the third direct communication request message is sent to the second UE, where the third direct communication request message includes: the handover indication information.
  • the processor 71 obtains the first public network IP address and the first public network port number, specifically: receiving the third direct communication response message returned by the second UE, where the third direct communication response message includes: The first public network IP address and the first public network port number are described.
  • the third direct communication response message further includes: the second private network IP address and the second private network port number, and the processor 71 acquires the second private network IP address and the second private network port number. Specifically, the second private network IP address is obtained from the third direct communication response message. And the second private network port number.
  • the processor 71 sends the handover indication information to the second UE, where the fourth direct communication request message is sent to the second UE, where the fourth direct communication request message includes: the handover indication information.
  • the processor 71 obtains the first public network IP address and the first public network port number, specifically: sending a third request message to the application server, where the third request message is used to request to acquire the first public network. An IP address and the first public network port number; receiving a third response message returned by the application server, where the third response message includes: the first public network IP address and the first public network port number .
  • the processor 71 obtains the second private network IP address and the second private network port number, specifically: receiving the fourth direct communication response message returned by the second UE, where the fourth direct communication response message includes: The second private network IP address and the second private network port number are described.
  • the third direct communication request message further includes: a first private network IP address and a first private network port number, a second public network IP address, and a second public network port number.
  • the fourth direct communication request message further includes: a first private network IP address and a first private network port number.
  • the third direct communication request message or the fourth direct communication request message further includes application identification information, where the application identification information is used to indicate that the second UE uses the application corresponding to the application identifier.
  • the communication path is switched from the network communication path to the direct communication path.
  • the first UE provided in this embodiment may be used to perform the solution provided in the seventh embodiment and the eighth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 17 is a schematic structural diagram of a second UE according to Embodiment 17 of the present invention.
  • the second UE 800 provided in this embodiment includes: a processor 81, a memory 82, a communication interface 83, and a system bus 84.
  • the memory 82 and the communication interface 83 are connected and communicated with the processor 81 through the system bus 84; the memory 82 is configured to store computer execution instructions; the communication interface 83 is used for performing with other devices.
  • Communication, the processor 81 configured to run the computer to execute an instruction, and execute the method described below:
  • the processor 81 establishes the direct communication path by using the second public network IP address, the second public network port number, the first private network IP address, and the first private network port. Specifically, the processor 81 establishes a first correspondence between the second public network IP address, the second public network port number, the second private network IP address, and the second private network port number, and the first The second corresponding relationship between the public network IP address, the first public network port number, the first private network IP address, and the first private network port number.
  • the processor 81 is configured to communicate with the first UE on the direct communication path, where the source IP address of the data packet sent to the first UE is replaced according to the first correspondence. And replacing, by the second public network IP address, the source port number of the data packet with the second public network port number, and replacing the destination IP address of the data packet with the second correspondence relationship.
  • the first private network IP address, the destination port number of the data packet is replaced with the first private network port number; or the data packet sent by the first UE is received through the direct communication path.
  • the processor 81 receives the handover indication information that is sent by the first UE, specifically: receiving a third direct communication request message sent by the first UE, where the third direct communication request message includes: Switch the indication information.
  • the processor 81 obtains the second public network IP address and the second public network port number, where the third direct communication request message further includes the second public network IP address and the second public network port.
  • the processor 81 obtains the second public network IP address and the second public network port number from the third direct communication request message.
  • the third direct communication request message further includes the first private network IP address and the first private network port number, and the processor 81 obtains the first private network IP address and the first private network port number, specifically The processor 81 obtains the first private network IP address and the first private network port number from the third direct communication request message.
  • the processor 81 receives the handover indication information that is sent by the first UE, specifically: receiving a fourth direct communication request message sent by the first UE, where the fourth direct communication request message includes: Switch the indication information.
  • the processor 81 acquires a second public network IP address and The second public network port number is specifically configured to: send a fourth request message to the application server, where the fourth request message is used to request to obtain the second public network IP address and the second public network port number; The fourth response message returned by the application server, where the fourth response message includes the second public network IP address and the second public network port number.
  • the processor 81 obtains the first private network IP address and the first private network port number, where the fourth direct communication request message further includes the first private network IP address and the first private network port.
  • the processor 81 obtains the first private network IP address and the first private network port number from the fourth direct communication request message.
  • the processor 81 After receiving the third direct communication request message sent by the first UE, the processor 81 is further configured to: return a third direct communication response message, the third direct communication response message, to the first UE.
  • the first public network IP address, the first public network port number, the second private network IP address, and the second private network port number are included.
  • the processor 81 After receiving the fourth direct communication request message sent by the first UE, the processor 81 is further configured to: return, to the first UE, a fourth direct communication response message, where the fourth direct communication response The message includes a second private network IP address and a second private network port number.
  • the third direct communication request message or the fourth direct communication request message further includes application identification information, where the application identification information is used to indicate that the second UE uses the application corresponding to the application identifier.
  • the communication path is switched from the network communication path to the direct communication path.
  • the second UE provided in this embodiment may be used to implement the solution provided in the eighth embodiment and the ninth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

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

Conformément à des modes de réalisation, la présente invention concerne un procédé et un appareil pour commuter une communication de réseau et une communication directe. Un premier équipement utilisateur (UE) donne l'instruction, par envoi d'informations d'instruction de commutation à un second UE, au second UE de commuter un chemin de communication entre eux d'un chemin de communication de réseau à un chemin de communication directe, acquiert une première adresse IP de réseau public et un premier numéro de port de réseau public, et établit le chemin de communication directe à l'aide de la première adresse IP de réseau public et du premier numéro de port de réseau public. Dans le procédé, après qu'un chemin de communication est commuté, un paquet de données, envoyé par un premier UE et reçu par un second UE, ne change pas, et dans la vue du second UE, une adresse IP et un numéro de port du premier UE ne changent pas, permettant ainsi de garantir que les services d'un utilisateur ne sont pas interrompus.
PCT/CN2015/077263 2015-04-23 2015-04-23 Procédé et appareil pour commuter une communication de réseau et une communication directe Ceased WO2016169015A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580038930.9A CN106537854B (zh) 2015-04-23 2015-04-23 网络通信和直接通信之间的切换方法和装置
PCT/CN2015/077263 WO2016169015A1 (fr) 2015-04-23 2015-04-23 Procédé et appareil pour commuter une communication de réseau et une communication directe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/077263 WO2016169015A1 (fr) 2015-04-23 2015-04-23 Procédé et appareil pour commuter une communication de réseau et une communication directe

Publications (1)

Publication Number Publication Date
WO2016169015A1 true WO2016169015A1 (fr) 2016-10-27

Family

ID=57143665

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077263 Ceased WO2016169015A1 (fr) 2015-04-23 2015-04-23 Procédé et appareil pour commuter une communication de réseau et une communication directe

Country Status (2)

Country Link
CN (1) CN106537854B (fr)
WO (1) WO2016169015A1 (fr)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347752A (zh) * 2018-02-07 2018-07-31 北京佰才邦技术有限公司 数据传输方法及网络设备
WO2023020466A1 (fr) * 2021-08-20 2023-02-23 维沃移动通信有限公司 Procédé et appareil de traitement de données, terminal, dispositif de réseau d'accès et dispositif de réseau central
CN117545039A (zh) * 2022-08-02 2024-02-09 中国电信股份有限公司 路径转换方法、装置和系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11419025B2 (en) 2017-08-11 2022-08-16 Huawei Technologies Co., Ltd. Path switching method, apparatus and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8493937B2 (en) * 2008-06-27 2013-07-23 Google Inc. Efficient handover of media communications in heterogeneous IP networks using LAN profiles and network handover rules
CN103795818A (zh) * 2014-01-27 2014-05-14 杭州顺浪信息技术有限公司 一种nat穿透方法
WO2014130143A1 (fr) * 2013-02-22 2014-08-28 Intel IP Corporation Procédure de changement de trajet pour communication de dispositif à dispositif
CN104079487A (zh) * 2013-03-29 2014-10-01 索尼公司 通信设备、通信系统、通信设备的控制方法以及程序

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8493937B2 (en) * 2008-06-27 2013-07-23 Google Inc. Efficient handover of media communications in heterogeneous IP networks using LAN profiles and network handover rules
WO2014130143A1 (fr) * 2013-02-22 2014-08-28 Intel IP Corporation Procédure de changement de trajet pour communication de dispositif à dispositif
CN104079487A (zh) * 2013-03-29 2014-10-01 索尼公司 通信设备、通信系统、通信设备的控制方法以及程序
CN103795818A (zh) * 2014-01-27 2014-05-14 杭州顺浪信息技术有限公司 一种nat穿透方法

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347752A (zh) * 2018-02-07 2018-07-31 北京佰才邦技术有限公司 数据传输方法及网络设备
WO2023020466A1 (fr) * 2021-08-20 2023-02-23 维沃移动通信有限公司 Procédé et appareil de traitement de données, terminal, dispositif de réseau d'accès et dispositif de réseau central
CN115714984A (zh) * 2021-08-20 2023-02-24 维沃移动通信有限公司 数据处理方法、装置、终端、接入网设备及核心网设备
JP2024528506A (ja) * 2021-08-20 2024-07-30 維沃移動通信有限公司 データ処理方法、装置、端末、アクセスネットワーク機器及びコアネットワーク機器
JP7659666B2 (ja) 2021-08-20 2025-04-09 維沃移動通信有限公司 データ処理方法、装置、端末、アクセスネットワーク機器及びコアネットワーク機器
CN117545039A (zh) * 2022-08-02 2024-02-09 中国电信股份有限公司 路径转换方法、装置和系统
CN117545039B (zh) * 2022-08-02 2025-03-07 中国电信股份有限公司 路径转换方法、装置和系统

Also Published As

Publication number Publication date
CN106537854B (zh) 2019-09-13
CN106537854A (zh) 2017-03-22

Similar Documents

Publication Publication Date Title
EP3834384B1 (fr) Configuration basée sur un plan de commande pour mise en réseau sensible au temps
KR102332880B1 (ko) 디바이스-투-디바이스 통신 시스템에서 아이피 세션 연속성 시스템 및 방법
EP3016469B1 (fr) Procédé et dispositif pour commutation de mode
US20120282915A1 (en) Connecting device via multiple carriers
WO2014005536A1 (fr) Procédé, dispositif et système de communication pour des terminaux voisins
KR20190120345A (ko) 서비스 품질 제어 방법 및 그 장치, smf, upf, ue, pcf 및 an
KR102126223B1 (ko) 이동통신 코어 망에서의 시그널링 방법 및 그 시스템
CN108337674B (zh) 一种ip地址分配的方法、装置和网络系统
CN110072297A (zh) 一种网络架构、信息交互方法以及装置
CN110662308A (zh) 一种通信方法及装置
WO2016150140A1 (fr) Procédé et système de traitement pour un paquet de commande dans une passerelle basée sur un réseau défini par logiciel (sdn)
CN108271433B (zh) 一种数据报文处理方法及控制面网元、用户面网元
WO2014117386A1 (fr) Procédé et dispositif d'interaction de données
CN102282905B (zh) 一种建立无线承载的方法、装置及系统
CN107277882B (zh) 一种数据路由方法、装置和基站
WO2022183497A1 (fr) Procédé de communication et appareil de communication
WO2013053133A1 (fr) Procédé de gestion de la transmission de données de service, dispositif et système de communication correspondants
WO2015120685A1 (fr) Procédé de sélection d'une passerelle de dérivation et contrôleur associé
WO2014194849A1 (fr) Procédé et dispositif pour la commutation d'un trajet de communication directe
CN106537854B (zh) 网络通信和直接通信之间的切换方法和装置
WO2017054611A1 (fr) Procédé et système de rattachement initial d'équipement utilisateur
CN106797632B (zh) 实现业务连续性的方法、装置及系统
CN112567879A (zh) 将逻辑网络资源映射到传输资源
WO2017124231A1 (fr) Procédé d'attribution d'adresse de protocole internet (ip), passerelle de plan de commande et passerelle de plan utilisateur
WO2014127699A1 (fr) Procédé, équipement et système pour établir un chemin de communication directe

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: 15889504

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: 15889504

Country of ref document: EP

Kind code of ref document: A1