CN106537854A - Method and apparatus for switching network communication and direct communication - Google Patents

Method and apparatus for switching network communication and direct communication Download PDF

Info

Publication number
CN106537854A
CN106537854A CN201580038930.9A CN201580038930A CN106537854A CN 106537854 A CN106537854 A CN 106537854A CN 201580038930 A CN201580038930 A CN 201580038930A CN 106537854 A CN106537854 A CN 106537854A
Authority
CN
China
Prior art keywords
address
public network
port number
communication path
network
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.)
Granted
Application number
CN201580038930.9A
Other languages
Chinese (zh)
Other versions
CN106537854B (en
Inventor
衣强
欧阳国威
金辉
何岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Publication of CN106537854A publication Critical patent/CN106537854A/en
Application granted granted Critical
Publication of CN106537854B publication Critical patent/CN106537854B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

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

Embodiments of the present invention provide a method and apparatus for switching network communication and direct communication. A first UE instructs, by sending switching instruction information to a second UE, the second UE to switch a communication path therebetween from a network communication path to a direct communication path, acquires a first public network IP address and a first public network port number, and establishes the direct communication path using the first public network IP address and the first public network port number. In the method, after a communication path is switched, a data packet, sent by a first UE and received by a second UE, does not change, and in the view of the second UE, an IP address and port number of the first UE do not change, thereby guaranteeing that services of a user are not interrupted.

Description

Switching method and apparatus between network service and direct communication Technical field
The present embodiments relate to the switching method and apparatus between the communication technology, more particularly to a kind of network service and direct communication.
Background technology
In Long Term Evolution (Long Term Evolution, abbreviation, LTE) network, the data communication path between user equipment (User Equipment, abbreviation UE) will pass through access network entity:Evolved base station (evolved Node Basestation, abbreviation eNB), and core network entity:Gateway (Serving Gateway, abbreviation S-GW) or grouped data network gateway (Packet Data Network Gateway, abbreviation P-GW), therefore, even if two UE distances are very near, it is also required to carry out data transmission by network communication path during transmission data, network communication path includes above-mentioned access network entity and core network entity.Can so there is larger demand to the transmission bandwidth of LTE network, and efficiency of transmission is relatively low.
In order to solve the problem, industry proposes (the Device to Device of device-to-device, abbreviation D2D) communication mode, i.e., data can be transmitted by direct communication path between UE closer to the distance, without passing through access network entity and core network entity.But, in the prior art, when the session of user is switched to direct communication path from network communication path, the business of user can be interrupted.
The content of the invention
The embodiment of the present invention provides the switching method and apparatus between a kind of network service and direct communication, and when ensure that the session of user switches between network service and direct communication, the business of user is not interrupted.
First aspect present invention provides the switching method between a kind of network service and direct communication, including:
First UE sends indication message to the 2nd UE, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
First UE obtains the first public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path In with public network port number used in second UE communication;
First UE sets up the direct communication path using first public network IP address and first public network port number;
First UE on the direct communication path with second UE communication.
With reference in a first aspect, in the first possible implementation of first aspect, the first UE sends indication message to the 2nd UE, including:
First UE sends the first request message to the 2nd UE, and first request message is used for the first public network IP address described in acquisition request and first public network port number, and first request message includes the indication message;
First UE obtains the first public network IP address and the first public network port number, including:
First UE receives the first response message that the 2nd UE is returned, and first response message includes:First public network IP address and first public network port number.
With reference to the first possible implementation of first aspect, in second of possible implementation of first aspect, first request message also includes application identification information, and the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference to the first or second of possible implementation of first aspect, in the third possible implementation of first aspect, first UE is set up before the direct communication path using first public network IP address and first public network port number, and methods described also includes:
First UE receives the second request message that the 2nd UE is sent, second request message is used for the second public network IP address of the first UE acquisition requests and the second public network port, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
First UE sends the second response message to the 2nd UE, and second response message includes:Second public network IP address and port numbers and second public network port number.
With reference in a first aspect, in the 4th kind of possible implementation of first aspect, the first UE obtains the first public network IP address and the first public network port number, including:
First UE is sent in the first direct communication request message, the first direct communication request message to the 2nd UE also to be included:Second public network IP address and the second public network port number, it is described Second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
First UE receives the first direct communication response message that the 2nd UE is returned, and the first direct communication response message includes:First public network IP address and first public network port number.
With reference to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, the indication message is carried in the first direct communication request message.
With reference in a first aspect, in the 6th kind of possible implementation of first aspect, the first UE sends indication message to the 2nd UE, including:
First UE sends the second direct communication request message to the 2nd UE, and the second direct communication request message includes the indication message;
First UE obtains the first public network IP address and the first public network port number, including:
First UE sends the 3rd request message to application server, and the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
First UE receives the 3rd response message that the application server is returned, and the 3rd response message includes:First public network IP address and first public network port number.
With reference to any one in the 4th kind to the 6th kind possible implementation of first aspect, in the 7th kind of possible implementation of first aspect, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference in a first aspect, in the 8th kind of possible implementation of first aspect, the first UE on the direct communication path with second UE communication, including:
First UE using first public network IP address as the packet for being sent to the 2nd UE source IP address, using first public network port number as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the packet destination slogan, the packet is sent to the 2nd UE by the direct communication path, wherein, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number is 2nd UE in the network communication path with public network port number used in first UE communication.
Second aspect of the present invention provides the switching method between a kind of network service and direct communication, including:
2nd UE receives the indication message that the first UE is sent, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
2nd UE obtains the second public network IP address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
2nd UE sets up the direct communication path using second public network IP address and second public network port number;
2nd UE on the direct communication path with first UE communication.
With reference to second aspect, in the first possible implementation of second aspect, the 2nd UE obtains the second public network IP address and the second public network port number, including:
2nd UE sends the second request message to the first UE, and second request message is used for the second public network IP address and second public network port number described in the first UE acquisition requests;
2nd UE receives the second response message that the first UE is returned, and second response message includes:Second public network IP address and second public network port number.
With reference to the first possible implementation of second aspect, in second of possible implementation of second aspect, the 2nd UE is obtained before the second public network IP address and the second public network port number, and methods described also includes:
2nd UE receives the first request message that the first UE is sent, first request message includes the indication message, first request message is used for the public network IP address of acquisition request first and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
2nd UE determines first public network IP address and first public network port number that the first UE and the 2nd UE uses in the network communication path according to the indication message;
First public network IP address and first public network port number are carried and the first UE are sent in the first response message by the 2nd UE.
With reference to second of possible implementation of second aspect, in the third possible implementation of second aspect, also include application identification information in first request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference to second aspect, in the 4th kind of possible implementation of second aspect, the 2nd UE obtains the second public network IP address and the second public network port number, including:
2nd UE receives the first direct communication request message that the first UE is sent, and the first direct communication request message includes second public network IP address and second public network port number.
With reference to the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, the indication message is carried in the first direct communication request message.
With reference to the 4th kind of second aspect or the 5th kind of possible implementation, in the 6th kind of possible implementation of second aspect, the 2nd UE is received after the first direct communication request message that the first UE is sent, and methods described also includes:
2nd UE returns to the first direct communication response message to the first UE, and the first direct communication response message includes:First public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
With reference to second aspect, in the 7th kind of possible implementation of second aspect, the 2nd UE receives the indication message that the first UE is sent, including:
2nd UE receives the second direct communication request message that the first UE is sent, and the second direct communication request message includes the indication message;
2nd UE obtains the second public network IP address and the second public network port number, including:
2nd UE sends the 4th request message to application server, and the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
2nd UE receives the 4th response message that the application server is returned, and the 4th response message includes:Second public network IP address and second public network port number.
With reference to second aspect the 4th kind to the 7th kind possible implementation in any one, in the 8th kind of possible implementation of second aspect, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference to second aspect, in the 9th kind of possible implementation of second aspect, the 2nd UE on the direct communication path with first UE communication, including:
2nd UE using second public network IP address as the packet for being sent to the first UE source IP address, using second public network port number as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the packet destination slogan, the packet is sent to the first UE by the direct communication path, wherein, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
Third aspect present invention provides the switching method between a kind of network service and direct communication, including:
First UE sends indication message to the 2nd UE, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
First UE obtains the first public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
First UE obtains the second private network IP address and the second private network port numbers, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication;
First UE sets up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers;
First UE on the direct communication path with second UE communication.
With reference to the third aspect, in the first possible implementation of the third aspect, first UE sets up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers, including:
First UE sets up first public network IP address, first public network port number and the first private network IP address, first corresponding relation of the first private network port numbers, and second public network IP address, second public network port number and second private network IP address, second corresponding relation of the second private network port numbers, wherein, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication.
With reference to the first possible implementation of the third aspect, in second of possible implementation of the third aspect, the first UE on the direct communication path with second UE communication, including:
The source IP address for the packet that first UE will be sent to the 2nd UE according to first corresponding relation replaces with first public network IP address, the source port number of the packet is replaced with into first public network port number, the purpose IP address of the packet is replaced with by second private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the second private network port numbers, wherein, the source port number of the packet is the first private network port numbers, the source port number of the packet is the first private network port numbers, the purpose IP address of the packet is second public network IP address, the destination slogan of the packet is second public network port number, the packet is sent to the 2nd UE by the first UE by the direct communication path;
Or, the first UE receives the packet that the 2nd UE is sent by the direct communication path.
With reference to the third aspect, in the third possible implementation of the third aspect, described first UE sends indication message to the 2nd UE, including:
First UE sends the 3rd direct communication request message to the 2nd UE, and the 3rd direct communication request message includes:The indication message;
First UE obtains the first public network IP address and the first public network port number, including:
First UE receives the 3rd direct communication response message that the 2nd UE is returned, and the 3rd direct communication response message includes:First public network IP address and first public network port number;
First UE obtains the second private network IP address and the second private network port numbers, including:
Also include in the 3rd direct communication response message:Second private network IP address and the second private network port numbers, the first UE obtain second private network IP address and the second private network port numbers from the 3rd direct communication response message.
With reference to the third aspect, in the 4th kind of possible implementation of the third aspect, the first UE sends indication message to the 2nd UE, including:
First UE sends the 4th direct communication request message to the 2nd UE, and the 4th direct communication request message includes:The indication message;
First UE obtains the first public network IP address and first public network port number, including:
First UE sends the 3rd request message to application server, and the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
First UE receives the 3rd response message that the application server is returned, and the 3rd response message includes:First public network IP address and first public network port number;
First UE obtains the second private network IP address and the second private network port numbers, including:
First UE receives the 4th direct communication response message that the 2nd UE is returned, and the 4th direct communication response message includes:Second private network IP address and the second private network port numbers.
With reference to the third possible implementation of the third aspect, in the 5th kind of possible implementation of the third aspect, also include in the 3rd direct communication request message:First private network IP address and the first private network port numbers, the second public network IP address and the second public network port number, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication, second public network IP address is described the Two UE are the 2nd UE public network port numbers used in the first UE communication described in the network communication path with public network IP address, second public network port number used in first UE communication in the network communication path.
With reference to the 4th kind of possible implementation of the third aspect, in the 6th kind of possible implementation of the third aspect, also include in the 4th direct communication request message:First private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication.
With reference to the 5th kind of the third aspect or the 6th kind of possible implementation, in the 7th kind of possible implementation of the third aspect, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
Fourth aspect present invention provides the switching method between a kind of network service and direct communication, including:
2nd UE receives the indication message that the first UE is sent, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
2nd UE obtains the second public network IP address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
2nd UE obtains the first private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication;
2nd UE sets up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port;
2nd UE on the direct communication path with first UE communication.
With reference to fourth aspect, in the first possible implementation of fourth aspect, 2nd UE sets up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port, including:
2nd UE sets up second public network IP address, second public network port number and the second private network IP address, first corresponding relation of the second private network port numbers, and first public network IP address, first public network port number and first private network IP address, second corresponding relation of the first private network port numbers, wherein, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
With reference to the first possible implementation of fourth aspect, in second of possible implementation of fourth aspect, the 2nd UE on the direct communication path with first UE communication, including:
The source IP address for the packet that 2nd UE will be sent to the first UE according to first corresponding relation replaces with second public network IP address, the source port number of the packet is replaced with into second public network port number, the purpose IP address of the packet is replaced with by first private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the first private network port numbers, wherein, the source port number of the packet is the second private network port numbers, the source port number of the packet is the second private network port numbers, the purpose IP address of the packet is first public network IP address, the destination slogan of the packet is first public network port number, packet after replacement is sent to the first UE by the 2nd UE by the direct communication path;
Or, the 2nd UE receives the packet that the first UE is sent by the direct communication path.
With reference to the first possible implementation of fourth aspect, in the third possible implementation of fourth aspect, the 2nd UE receives the indication message that the first UE is sent, including:
2nd UE receives the 3rd direct communication request message that the first UE is sent, and the 3rd direct communication request message includes:The indication message;
2nd UE obtains the second public network IP address and the second public network port number, including:
Also include second public network IP address and second public network port number in the 3rd direct communication request message, the 2nd UE obtains second public network IP address and second public network port number from the 3rd direct communication request message;
2nd UE obtains the first private network IP address and the first private network port numbers, including:
Also include first private network IP address and the first private network port numbers in the 3rd direct communication request message, the 2nd UE obtains first private network IP address and the first private network port numbers from the 3rd direct communication request message.
With reference to the first possible implementation of fourth aspect, in the 4th kind of possible implementation of fourth aspect, the 2nd UE receives the indication message that the first UE is sent, including:
2nd UE receives the 4th direct communication request message that the first UE is sent, and the 4th direct communication request message includes:The indication message;
2nd UE obtains the second public network IP address and the second public network port number, including:
2nd UE sends the 4th request message to application server, and the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
2nd UE receives the 4th response message that the application server is returned, and the 4th response message includes second public network IP address and second public network port number;
2nd UE obtains the first private network IP address and the first private network port numbers, including:
Also include first private network IP address and the first private network port numbers in the 4th direct communication request message, the 2nd UE obtains first private network IP address and the first private network port numbers from the 4th direct communication request message.
With reference to the third possible implementation of fourth aspect, in the 5th kind of possible implementation of fourth aspect, the 2nd UE is received after the 3rd direct communication request message that the first UE is sent, and methods described also includes:
2nd UE returns to the 3rd direct communication response message to the first UE, the 3rd direct communication response message includes the first public network IP address, first public network port number, second private network IP address and the second private network port numbers, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication, second private network IP address is the 2nd UE in the network communication path In with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
With reference to the 4th kind of possible implementation of fourth aspect, in the 6th kind of possible implementation of fourth aspect, the 2nd UE is received after the 4th direct communication request message that the first UE is sent, and methods described also includes:
2nd UE returns to the 4th direct communication response message to the first UE, the 4th direct communication response message includes the second private network IP address and the second private network port numbers, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
With reference to the 5th kind of fourth aspect or the 6th kind of possible implementation, in the 7th kind of possible implementation of fourth aspect, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
Fifth aspect present invention provides the first UE of one kind, including:
Sending module, for sending indication message to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module, for obtaining the first public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
Module is set up in path, for setting up the direct communication path using first public network IP address and first public network port number;
Communication module, on the direct communication path with second UE communication.
With reference to the 5th aspect, the 5th aspect the first possible implementation in, the sending module specifically for:
The first request message is sent to the 2nd UE, first request message is used for the first public network IP address described in acquisition request and first public network port number, and first request message includes The indication message;
The acquisition module specifically for:
The first response message that the 2nd UE is returned is received, first response message includes:First public network IP address and first public network port number.
With reference to the first possible implementation of the 5th aspect, in second of possible implementation of the 5th aspect, first request message also includes application identification information, and the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference to the first or second of possible implementation of the 5th aspect, in the third possible implementation of the 5th aspect, the first UE also includes:
Receiving module, for receiving the second request message that the 2nd UE is sent, second request message is used for the second public network IP address of the first UE acquisition requests and the second public network port, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
The sending module, is additionally operable to send the second response message to the 2nd UE, second response message includes:Second public network IP address and port numbers and second public network port number.
With reference to the 5th aspect, the 5th aspect the 4th kind of possible implementation in, the acquisition module specifically for:
Being sent to the 2nd UE in the first direct communication request message, the first direct communication request message also includes:Second public network IP address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
The first direct communication response message that the 2nd UE is returned is received, the first direct communication response message includes:First public network IP address and first public network port number.
With reference to the 5th the 4th kind of possible implementation of aspect, in the 5th kind of possible implementation of the 5th aspect, the indication message is carried in the first direct communication request message.
With reference to the 5th aspect, the 5th aspect the 6th kind of possible implementation in, the sending module specifically for:
The second direct communication request message is sent to the 2nd UE, the second direct communication request message includes the indication message;
The acquisition module specifically for:
The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
The 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number.
With reference to any one in the 5th the 4th kind to the 6th kind possible implementation of aspect, in the 7th kind of possible implementation of the 5th aspect, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference to the 5th aspect, the 5th aspect the 8th kind of possible implementation in, the communication module specifically for:
Using first public network IP address as the packet for being sent to the 2nd UE source IP address, using first public network port number as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the packet destination slogan, the packet is sent to the 2nd UE by the direct communication path, wherein, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication.
Sixth aspect present invention provides one kind the 2nd UE, it is characterised in that including:
Receiving module, for receiving the indication message that the first UE is sent, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module, for obtaining the second public network IP address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
Module is set up in path, for using second public network IP address and the second public network port Number set up the direct communication path;
Communication module, on the direct communication path with first UE communication.
With reference to the 6th aspect, the 6th aspect the first possible implementation in, the acquisition module specifically for:
The second request message is sent to the first UE, second request message is used for the second public network IP address and second public network port number described in the first UE acquisition requests;
The second response message that the first UE is returned is received, second response message includes:Second public network IP address and second public network port number.
With reference to the first possible implementation of the 6th aspect, in second of possible implementation of the 6th aspect, the receiving module is additionally operable to:
Receive the first request message that the first UE is sent, first request message includes the indication message, first request message is used for the public network IP address of acquisition request first and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
According to the indication message, first public network IP address and first public network port number that the first UE and the 2nd UE uses in the network communication path are determined;
2nd UE also includes:Sending module, the first UE is sent to for first public network IP address and first public network port number to be carried in the first response message.
With reference to second of possible implementation of the 6th aspect, in the third possible implementation of the 6th aspect, also include application identification information in first request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference to the 6th aspect, the 6th aspect the 4th kind of possible implementation in, the acquisition module specifically for:
The first direct communication request message that the first UE is sent is received, the first direct communication request message includes second public network IP address and second public network port number.
With reference to the 4th kind of possible implementation of the 6th aspect, in the 5th kind of possible implementation of the 6th aspect, the indication message is carried in the first direct communication request message.
With reference to the 4th kind or the 5th kind of possible implementation of the 6th aspect, the 6th of the 6th aspect the Plant in possible implementation, the 2nd UE also includes:
Sending module, for returning to the first direct communication response message to the first UE, the first direct communication response message includes:First public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
With reference to the 6th aspect, the 6th aspect the 7th kind of possible implementation in, the receiving module specifically for:
The second direct communication request message that the first UE is sent is received, the second direct communication request message includes the indication message;
The acquisition module specifically for:
The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
The 4th response message that the application server is returned is received, the 4th response message includes:Second public network IP address and second public network port number.
With reference to the 6th aspect the 4th kind to the 7th kind possible implementation in any one, in the 8th kind of possible implementation of the 6th aspect, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
With reference to the 6th aspect, the 6th aspect the 9th kind of possible implementation in, the 2nd UE on the direct communication path with first UE communication, including communication module specifically for:
Using second public network IP address as the packet for being sent to the first UE source IP address, using second public network port number as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the packet destination slogan, the packet is sent to the first UE by the direct communication path, wherein, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
Seventh aspect present invention provides the first UE of one kind, including:
Sending module, for sending indication message to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module, for obtaining the first public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
The acquisition module, it is additionally operable to obtain the second private network IP address and the second private network port numbers, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication;
Module is set up in path, for setting up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers;
Communication module, on the direct communication path with second UE communication.
With reference to the 7th aspect, the 7th aspect the first possible implementation in, the path set up module specifically for:
Set up first public network IP address, first public network port number and the first private network IP address, first corresponding relation of the first private network port numbers, and second public network IP address, second public network port number and second private network IP address, second corresponding relation of the second private network port numbers, wherein, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication.
With reference to the 7th aspect the first possible implementation, the 7th aspect second of possible implementation in, the communication module specifically for:
The source IP address that the packet of the 2nd UE will be sent to according to first corresponding relation replaces with first public network IP address, the source port number of the packet is replaced with into first public network port number, the purpose IP address of the packet is replaced with by institute according to second corresponding relation State the second private network IP address, the destination slogan of the packet is replaced with into the second private network port numbers, wherein, the source port number of the packet is the first private network port numbers, the source port number of the packet is the first private network port numbers, the purpose IP address of the packet is second public network IP address, and the destination slogan of the packet is second public network port number, and the packet is sent to the 2nd UE by the first UE by the direct communication path;
Or, the packet that the 2nd UE is sent is received by the direct communication path.
With reference to the 7th aspect, the 7th aspect the third possible implementation in, the sending module specifically for:
First UE sends the 3rd direct communication request message to the 2nd UE, and the 3rd direct communication request message includes:The indication message;
The acquisition module specifically for:
The 3rd direct communication response message that the 2nd UE is returned is received, the 3rd direct communication response message includes:First public network IP address and first public network port number;
Also include in the 3rd direct communication response message:Second private network IP address and the second private network port numbers, second private network IP address and the second private network port numbers are obtained from the 3rd direct communication response message.
With reference to the 7th aspect, the 7th aspect the 4th kind of possible implementation in, the sending module specifically for:
The 4th direct communication request message is sent to the 2nd UE, the 4th direct communication request message includes:The indication message;
The acquisition module obtains first public network IP address and first public network port number, including:
The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
The 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number;
The acquisition module obtains second private network IP address and the second private network port numbers, including:
The 4th direct communication response message that the 2nd UE is returned is received, the 4th direct communication response message includes:Second private network IP address and the second private network port numbers.
With reference to the third possible implementation of the 7th aspect, in the 5th kind of possible implementation of the 7th aspect, also include in the 3rd direct communication request message:First private network IP address and the first private network port numbers, second public network IP address and the second public network port number, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number is the 2nd UE public network port numbers used in the first UE communication described in the network communication path.
With reference to the 4th kind of possible implementation of the 7th aspect, in the 6th kind of possible implementation of the 7th aspect, also include in the 4th direct communication request message:First private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication.
With reference to the 5th kind or the 6th kind of possible implementation of the 7th aspect, in the 7th kind of possible implementation of the 7th aspect, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
Eighth aspect present invention provides the 2nd UE of one kind, including:
Receiving module, for receiving the indication message that the first UE is sent, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module, for obtaining the second public network IP address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
The acquisition module, is additionally operable to obtain the first private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with the 2nd UE Communication used in private network IP address, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication;
Module is set up in path, for setting up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port;
Communication module, on the direct communication path with first UE communication.
With reference to eighth aspect, in the first possible implementation of eighth aspect, the path set up module specifically for:
Set up second public network IP address, second public network port number and the second private network IP address, first corresponding relation of the second private network port numbers, and first public network IP address, first public network port number and first private network IP address, second corresponding relation of the first private network port numbers, wherein, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
With reference to the first possible implementation of eighth aspect, in second of possible implementation of eighth aspect, the communication module specifically for:
The source IP address that the packet of the first UE will be sent to according to first corresponding relation replaces with second public network IP address, the source port number of the packet is replaced with into second public network port number, the purpose IP address of the packet is replaced with by first private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the first private network port numbers, wherein, the source port number of the packet is the second private network port numbers, the source port number of the packet is the second private network port numbers, the purpose IP address of the packet is first public network IP address, the destination slogan of the packet is first public network port number, packet after replacement is sent to the first UE by the 2nd UE by the direct communication path;
Or, the packet that the first UE is sent is received by the direct communication path.
With reference to the first possible implementation of eighth aspect, in the third possible implementation of eighth aspect, the receiving module specifically for:
Receive the 3rd direct communication request message that the first UE is sent, the 3rd direct communication Request message includes:The indication message;
The acquisition module specifically for:
Also include second public network IP address and second public network port number in the 3rd direct communication request message, second public network IP address and second public network port number are obtained from the 3rd direct communication request message;
Also include first private network IP address and the first private network port numbers in the 3rd direct communication request message, first private network IP address and the first private network port numbers are obtained from the 3rd direct communication request message.
With reference to the first possible implementation of eighth aspect, in the 4th kind of possible implementation of eighth aspect, the receiving module specifically for:
The 4th direct communication request message that the first UE is sent is received, the 4th direct communication request message includes:The indication message;
The acquisition module obtains second public network IP address and second public network port number, including:
The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
The 4th response message that the application server is returned is received, the 4th response message includes second public network IP address and second public network port number;
The acquisition module obtains first private network IP address and the first private network port numbers, including:
Also include first private network IP address and the first private network port numbers in the 4th direct communication request message, the acquisition module obtains first private network IP address and the first private network port numbers from the 4th direct communication request message.
With reference to the third possible implementation of eighth aspect, in the 5th kind of possible implementation of eighth aspect, the 2nd UE also includes:
Sending module, for returning to the 3rd direct communication response message to the first UE, the 3rd direct communication response message includes the first public network IP address, the first public network port number, the second private network IP address and the second private network port numbers, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number makes by the first UE in the network communication path with second UE communication Public network port number, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
With reference to the 4th kind of possible implementation of eighth aspect, in the 6th kind of possible implementation of eighth aspect, the 2nd UE also includes:
Sending module, for returning to the 4th direct communication response message to the first UE, the 4th direct communication response message includes the second private network IP address and the second private network port numbers, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
With reference to the 5th kind of eighth aspect or the 6th kind of possible implementation, in the 7th kind of possible implementation of eighth aspect, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
Ninth aspect present invention provides one kind the first UE, and the first UE includes:Processor, memory, communication interface and system bus, the memory and the communication interface are connected and communicated with the processor by the system bus;
The memory, for storing computer executed instructions;
The processor, for running the computer executed instructions, perform first aspect present invention and first aspect the first to the 8th kind it is any as described in method.
Tenth aspect present invention provides one kind the 2nd UE, and the 2nd UE includes:Processor, memory, communication interface and system bus, the memory and the communication interface are connected and communicated with the processor by the system bus;
The memory, for storing computer executed instructions;
The processor, for running the computer executed instructions, perform second aspect of the present invention and second aspect the first to the 9th kind it is any as described in method.
On the one hand the present invention the tenth provides one kind the first UE, and the first UE includes:Processor, memory, communication interface and system bus, the memory and the communication interface pass through the system Bus is connected and communicated with the processor;
The memory, for storing computer executed instructions;
The processor, for running the computer executed instructions, perform third aspect present invention and the third aspect the first to the 7th kind it is any as described in method.
The twelfth aspect of the present invention provides one kind the 2nd UE, and the 2nd UE includes:Processor, memory, communication interface and system bus, the memory and the communication interface are connected and communicated with the processor by the system bus;
The memory, for storing computer executed instructions;
The processor, for running the computer executed instructions, perform fourth aspect present invention and second aspect the first to the 7th kind it is any as described in method.
Switching method and apparatus between network service provided in an embodiment of the present invention and direct communication, first UE to the 2nd UE by sending indication message, to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path, and the first public network IP address and the first public network port number are obtained, set up direct communication path using the first public network IP address and the first public network port number.In methods described, after communication path switching, the packet that the first UE that the 2nd UE is received is sent does not change, and is not changed in the UE of the 2nd UE the first IP address and port numbers, so as to ensure that the business of user is not interrupted.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the switching method between the network service that the embodiment of the present invention one is provided and direct communication;
Fig. 2 is the flow chart of the switching method between the network service that the embodiment of the present invention two is provided and direct communication;
Fig. 3 is the signaling process figure of the switching method between the network service that the embodiment of the present invention three is provided and direct communication;
Fig. 4 is the signaling process figure of the switching method between the network service that the embodiment of the present invention four is provided and direct communication;
Fig. 5 is the signaling process figure of the switching method between the network service that the embodiment of the present invention five is provided and direct communication;
Fig. 6 is the signaling process figure of the switching method between the network service that the embodiment of the present invention six is provided and direct communication;
Fig. 7 is the flow chart of the switching method between the network service that the embodiment of the present invention seven is provided and direct communication;
Fig. 8 is the flow chart of the switching method between the network service that the embodiment of the present invention eight is provided and direct communication;
Fig. 9 is the signaling process figure of the switching method between the network service that the embodiment of the present invention nine is provided and direct communication;
Figure 10 is the structural representation for the first UE that the embodiment of the present invention ten is provided;
Figure 11 is the structural representation for the 2nd UE that the embodiment of the present invention 11 is provided;
Figure 12 is the structural representation for the first UE that the embodiment of the present invention 12 is provided;
Figure 13 is the structural representation for the 2nd UE that the embodiment of the present invention 13 is provided;
Figure 14 is the structural representation for the first UE that the embodiment of the present invention 14 is provided;
Figure 15 is the structural representation for the 2nd UE that the embodiment of the present invention 15 is provided;
Figure 16 is the structural representation for the first UE that the embodiment of the present invention 16 is provided;
Figure 17 is the structural representation for the 2nd UE that the embodiment of the present invention 17 is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
In the prior art, UE transmits data by network communication path, by taking the communication between the first UE and the 2nd UE as an example, if the first UE will send data to the 2nd UE, the source IP address for the packet that first UE is sent is that the private IP address of oneself, source port number are the privately owned port numbers of oneself The public network port number that public network IP address that purpose IP address is UE2, destination slogan are UE2.Because private network IP address can not be route at internet (Internet), therefore, need to carry out network address translation (Network Address Translation on the router of transmitting terminal, abbreviation NAT), UE1 private network IP address is converted into public network IP address, UE1 private network port numbers are converted into public network port number, the router for carrying out NAT is also referred to as NAT servers, NAT servers can be a single router, can also be integrated on P-GW.Packet after the conversion of NAT servers, which is addressed on Internet, to be transmitted, in receiving terminal, the NAT servers of receiving terminal are received after packet, the purpose IP address of packet is converted to UE2 private network IP address, the destination slogan of packet is converted to UE2 private network port numbers, then, packet after conversion is sent to UE2, the public network IP address that the source IP address for the packet that final UE2 is received is UE1, source port number is UE1 public network port number, purpose IP address is UE2 private network IP address, and destination slogan is UE2 private network port numbers.
, can be by eNB, P-GW, S-GW etc. when the packet that UE1 is sent is transmitted on internet, efficiency of transmission is low, and network delay is big.In order to solve the problem, direct communication path can be used to be communicated, direct communication path is the path being joined directly together between UE1 and UE2, when UE1 and UE2 are communicated using direct communication path, packet needs not move through any network entity, so as to reduce the time delay of packet transmission, efficiency of transmission is improved.
In the prior art, when transmission path is switched on direct communication path by UE1 and UE2 from network communication path, UE1 and UE2 need circuit network direct communication path in elder generation, then, resettle direct communication path, UE1 is different with the IP address used on network communication path with the IP address that UE2 is used on direct communication path, because IP address is converted, so as to cause business discontinuous.
Fig. 1 is the flow chart of the switching method between the network service that the embodiment of the present invention one is provided and direct communication, as shown in figure 1, the method for the present embodiment may comprise steps of:
Step 101, the first UE send indication message to the 2nd UE, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path.
In the present embodiment, network communication path is the network communication path between the first UE and the 2nd UE, first UE will be switched to direct communication path from network communication path, and the premise of the present embodiment is that the first UE and the 2nd UE have been set up network communication path, and network communication path can be LTE herein Network communication path, the first UE and the 2nd UE set up network communication path and do not do excessive description here for prior art.As the first UE and the 2nd UE closer to the distance, direct communication path can be set up between first UE and the 2nd UE, when the first UE and the 2nd UE are communicated by the direct communication path, packet needs not move through the transmission of LTE core network, Internet resources can be saved, and the communication delay between the first UE and the 2nd UE can be reduced.
Step 102, the first UE obtain the first public network Internet protocol (Internet Protocol, abbreviation IP) address and the first public network port number.
In the present embodiment and following examples, first public network IP address be the first UE in network communication path with public network IP address used in the second UE communication, first public network port number be the first UE in network communication path with public network port number used in the second UE communication, second public network IP address be the 2nd UE in network communication path with public network IP address used in the first UE communication, the second public network port number be the 2nd UE in network communication path with public network port number used in the first UE communication.First UE and the 2nd UE each know the private network IP address and private network port numbers of oneself, and other side public network IP address and public network port number.
In the present embodiment and following examples, second public network IP address be the 2nd UE in network communication path with public network IP address used in the first UE communication, second public network port number be the 2nd UE in network communication path with public network port number used in the first UE communication, first private network IP address be the first UE in network communication path with private network IP address used in the second UE communication, first private network port numbers be the first UE in network communication path with private network port numbers used in the second UE communication, second private network IP address be the 2nd UE in network communication path with private network IP address used in the first UE communication, second private network port numbers be the 2nd UE in network communication path with private network port numbers used in the first UE communication.
In the present embodiment, the first UE sets up direct communication path, it is necessary to first obtain the first public network IP address and the first public network port number, and the first UE specifically can obtain the first public network IP address and the first public network port number by following three kinds of modes:
(1) the first UE sends the first request message to the 2nd UE, and the first request message is used for the public network IP address of acquisition request first and the first public network port number, and the 2nd UE returns to the first response message according to the first request message to the first UE.First UE receives the first response message that the 2nd UE is returned, and first response message includes:First public network IP address and the first public network port number.
When the first UE passes through the first request message the first public network IP address of acquisition and the first public network port number When, optionally, indication message can also be carried in the first request message.Certainly, the first indication message can also be carried in other message, and the present embodiment is not limited this.
Optionally, first request message also includes application identification information, the application identification information is used to indicate that the 2nd UE will be switched to direct communication path with the first UE communication path under the corresponding application of the application identities from network communication path, the application identification information can be application identities (Application Identity, abbreviation APP ID).When having multiple applications between the first UE and the 2nd UE, first UE may set up one article of direct communication path for each application, in order to distinguish the direct communication path of each application, need to carry the application identification information each applied in first request message, to indicate that the 2nd UE sets up which application direct communication path belongs to.When only one of which is applied between the first UE and the 2nd UE, optionally, the application identification information of the application can not be carried in the first request message.
(2) the first UE are sent in the first direct communication request message, the first direct communication request message to the 2nd UE also to be included:Second public network IP address and the second public network port number.
2nd UE returns to the first direct communication response message according to the first direct communication request message to the first UE, and the first UE receives the first direct communication response message that the 2nd UE is returned, and the first direct communication response message includes:First public network IP address and the first public network port number.
When the first UE obtains the first public network IP address and the first public network port number by the first direct communication request message, optionally, indication message can be carried and be sent to the 2nd UE in the first direct communication request message by the first UE, certainly, indication message can also be carried in other message.
(3) the first UE send the 3rd request message to application server, and the 3rd request message is used for the public network IP address of acquisition request first and the first public network port number.Application server is to preserve the first public network IP address, the first public network port number, the second public network IP address and second public network port number etc. in the server of first class services UE and the second UE communication, application server.Application server is received after the 3rd request message of the first UE transmissions, returns to the 3rd response message to the first UE according to the 3rd request message, the first UE receives the 3rd response message that application server is returned, and the 3rd response message includes:First public network IP address and the first public network port number.
When the first UE obtains the first public network IP address and the first public network port number by application server, optionally, the first UE sends indication message by the second direct communication request message to the 2nd UE, and the second direct communication request message includes indication message, certainly, the first UE Indication message can be carried by other message.
Optionally, in second and the third mode, application identification information can also be included in the first direct communication request message or the second direct communication request message.
It should be noted that in the present embodiment, step 101 and step 102 do not have sequencing upon execution, can also perform simultaneously.
Step 103, the first UE set up direct communication path using the first public network IP address and the first public network port number.
Connected specifically, the first UE sets up bottom using the first public network IP address and the first public network port number.First UE can also generate the corresponding data flow template of the direct communication path (Traffic Flow Template, abbreviation TFT), and the corresponding TFT of direct communication path match information is:Source IP address is the first public network IP address, and source port number is the first public network port number, and purpose IP address is the second public network IP address, and destination slogan is the second public network port number.
First UE is set up before direct communication path using the first public network IP address and the first public network port number, and the first UE also receives the second request message of the 2nd UE transmissions, and the second request message is used for the first the second public network IP address of UE acquisition requests and the second public network port;First UE sends the second response message to the 2nd UE, and the second response message includes:Second public network IP address and port numbers and the second public network port number.
Step 104, the first UE on direct communication path with the second UE communication.
Specifically, first UE using the first public network IP address as the packet for being sent to the 2nd UE source IP address, using the first public network port number as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the destination slogan of the packet, the packet is sent to the 2nd UE by direct communication path.If the first UE generates TFT, the first UE will be sent to the data packet matched on corresponding direct communication path of the 2nd UE according to TFT.
In the present embodiment, first UE is different in the corresponding TFT of direct communication path TFTs corresponding from network communication path, the corresponding TFT of network communication path source IP address is the first private network IP address, source port number is the first private network port numbers, the corresponding TFT of direct communication path source IP address is the first public network IP address, source port number is the first public network port number, the purpose IP address and destination slogan for the TFT that first UE is used in two kinds of communication path transmitting datas do not change, and are all the second public network IP address and the second public network port number.
In the present embodiment, the public network port number that public network IP address, the source port number that the source IP address for the packet that the first UE that 2nd UE is received is sent by direct communication path is the first UE are the first UE, purpose IP address is the 2nd UE public network IP address, and purpose IP address is the 2nd UE public network port number.Understand, the source address and source port number for the packet that the first UE that the 2nd UE is received is sent by two kinds of communication paths are identical, therefore, are not changed in the UE of the 2nd UE the first IP address and port numbers, so as to ensure that the business of user is not interrupted.
In the present embodiment, first UE sends indication message to the 2nd UE, to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path, and the first public network IP address and the first public network port number are obtained, set up direct communication path using the first public network IP address and the first public network port number.In methods described, after communication path switching, the packet that the first UE that the 2nd UE is received is sent does not change, and is not changed in the UE of the 2nd UE the first IP address and port numbers, so as to ensure that the business of user is not interrupted.
Fig. 2 is the flow chart of the switching method between the network service that the embodiment of the present invention two is provided and direct communication, as shown in Fig. 2 the method that the present embodiment is provided may comprise steps of:
Step 201, the 2nd UE receive the indication message that the first UE is sent, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path.
Step 202, the 2nd UE obtain the second public network IP address and the second public network port number.
2nd UE can specifically obtain the second public network IP address and the second public network port number in the following way:
(1) the 2nd UE sends the second request message to the first UE, and the second request message is used for the first the second public network IP address of UE acquisition requests and the second public network port number.First UE is received after the second request message, returns to the second response message to the 2nd UE according to the second request message, the 2nd UE receives the second response message that the first UE is returned, and the second response message includes:Second public network IP address and the second public network port number.
2nd UE is obtained before the second public network IP address and the second public network port number, and the 2nd UE also receives the first request message of the first UE transmissions, and indication message is carried in the first request message.First request message is used for the public network IP address of acquisition request first and the first public network port number, and the 2nd UE determines the first public network IP address and the first public network port number that the first UE and the 2nd UE use in network communication path according to indication message;2nd UE is public by the first public network IP address and first Net port numbers carry and the first UE are sent in the first response message.
Optionally, application identification information is also included in the first request message, application identification information is used to indicate that the communication path under the corresponding application of application identities is switched to direct communication path by the 2nd UE from network communication path.The application identification information and indication message can also be included in second request message.
(2) the 2nd UE receive the first direct communication request message that the first UE is sent, and the first direct communication request message includes the second public network IP address and the second public network port number.Optionally, indication message can also be carried in the first direct communication request message, certainly, and indication message can also be carried in other message.
2nd UE is received after the first direct communication request message that the first UE is sent, and the 2nd UE returns to the first direct communication response message according to the first direct communication request message to the first UE, and the first direct communication response message includes:First public network IP address and the first public network port number.
(3) the 2nd UE send the 4th request message to application server, 4th request message is used for the public network IP address of acquisition request second and the second public network port number, application server returns to the 4th response message according to the 4th request message to the 2nd UE, 2nd UE receives the 4th response message that application server is returned, and the 4th response message includes:Second public network IP address and the second public network port number.
When the 2nd UE obtains the second public network IP address and the second public network port number by application server, optionally, indication message is carried in the second direct communication request message, 2nd UE receives the second direct communication request message that the first UE is sent, second direct communication request message includes indication message, certainly, indication message can also be carried in other message.
In above-mentioned second and the third mode, optionally, application identification information is also included in the first direct communication request message or the second direct communication request message.2nd UE is received after the first direct communication request message that the first UE is sent, and the 2nd UE also returns to the first direct communication response message to the first UE, and the first direct communication response message includes:First public network IP address and the first public network port number.Or, the 2nd UE is received after the second direct communication request message that the first UE is sent, and the 2nd UE returns to the second direct communication response message to the first UE, and the second direct communication response message includes:Application identification information.
It should be noted that in the present embodiment, step 201 and step 202 do not have sequencing upon execution, can also perform simultaneously.
Step 203, the 2nd UE set up direct using the second public network IP address and the second public network port number Communication path.
Connected specifically, the 2nd UE sets up bottom using the second public network IP address and the second public network port number.2nd UE can also generate the TFT of the direct communication path, the TFT of direct communication path source IP address is the second public network IP address, source port number is the second public network port number, and purpose IP address is the first public network IP address, and destination slogan is the first public network port number.
Step 204, the 2nd UE on direct communication path with the first UE communication.
Specifically, 2nd UE using the second public network IP address as the packet for being sent to the first UE source IP address, using the second public network port number as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the destination slogan of the packet, the packet is sent to the first UE by the direct communication path.If the 2nd UE generates direct communication path corresponding TFT, the 2nd UE will be sent to the data packet matched on direct communication path of the first UE according to the corresponding TFT of direct communication path.
2nd UE is in network communication path transmitting data, the source IP address that 2nd UE sends packet is the second private network IP address, source port number is the second private network port numbers, the source IP address of packet can be converted into the second public network IP address by NAT servers, source port number can be converted to the second public network port number by NAT servers, and NAT servers deliver a packet to the first UE according to the second public network IP address and the second public network port number after conversion.When packet is transmitted on direct communication path, it is not necessary to changed by NAT servers.In above two communication process, the source address and source port number for the packet that the 2nd UE that first UE is received is sent by two kinds of communication paths are identical, therefore, do not changed in the UE of the first UE the 2nd IP address and port numbers, so as to ensure that the business of user is not interrupted.
In the present embodiment, 2nd UE receives the indication message that the first UE is sent, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path, and the second public network IP address and the second public network port number are obtained, set up direct communication path using the second public network IP address and the second public network port number.In methods described, after communication path switching, the packet that the 2nd UE that the first UE is received is sent does not change, and is not changed in the UE of the first UE the 2nd IP address and port numbers, so as to ensure that the business of user is not interrupted.
Below will be by several specific embodiments, the method to embodiment one and embodiment two is described in detail.
Fig. 3 is the signaling process figure of the switching method between the network service that the embodiment of the present invention three is provided and direct communication, as shown in figure 3, the method that the present embodiment is provided may comprise steps of:
Step 301, the first UE and the 2nd UE set up network communication path.
In LTE system, network communication path is to transmit the path of data by setting up PDN connections and carrying (bear), by taking the first UE as an example, first UE sets up PDN with the first core net by the first eNB and is connected, wherein, first eNB is the first UE access device, and the first core net is the first UE core network access, and the first core net includes multiple nodes:Mobility management entity (Mobility Management Entity, abbreviation MME), gateway (Serving Gateway, abbreviation SGW) and PGW etc..Specifically, first UE sends PDN connection requests (PDN connectivity request) or attach request (attach request) by the first eNB to MME, MME is after PDN connection requests or attach request is received, sent to SGW and create session request, SGW will create session request and be sent to PGW, and PGW is that the first UE distributes the first private network IP address and the first private network port numbers.Then, PGW creates conversational response (create session response) message, not only the first private network IP address and corresponding first public network IP address of the first private network port numbers and the second public network port number can also be included in conversational response message comprising the first private network IP address and the first private network port numbers that PGW is the first UE distribution.Second public network IP address and the second public network port number can also set up process by PDN connections or other message of attatch processes are sent to the first UE, first UE preserves the first private network IP address, the first private network port numbers, the second public network IP address and the second public network port number, 2nd UE sets up PND with the second core net and is connected, and the process that the 2nd UE sets up PDN connections is similar with the first UE.
Step 302, the first UE and the 2nd UE are communicated by network communication path.
Step 303, the first UE initiate discovery procedure, determine whether oneself is closer to the distance with the 2nd UE.
If the first UE has found that oneself UE of distance the 2nd is nearer, the first UE determines to be switched to direct communication path from network communication path, and how the first UE has found that the 2nd UE is prior art, do not do excessive description here.
Step 304, the first UE and the 2nd UE intercourse respective two layers of mark (layer2ID) in discovery procedure.
Alternatively, in discovery procedure, the first UE can also obtain the 2nd UE two layers of mark, still, and the 2nd UE does not obtain the first UE two layers of mark.If the first UE and the 2nd UE is in hair Respective two layers of mark is not intercoursed during existing, or the first UE do not obtain two layers of the 2nd UE mark, then the first UE and the 2nd UE can also intercourse two layers of mark by application layer messages, and two layers identify for setting up two layers on direct communication path connection.
Step 305, the first UE and the 2nd UE mutual authentications, set up two layers of connection safe on direct communication path.
Step 306, the first UE send the first request message to the 2nd UE, and the first request message includes indication message and APP ID.
First request message is used for the public network IP address of acquisition request first and the first public network port number, optionally, the first UE mark is carried in first request message, first UE mark can be application layer (application layer) mark, or (Mobile Subscriber International ISDN/PSTN number, abbreviation MSISDN).According to the different implementation of discovery procedure, the first UE mark whether is carried in the first request message to be included:
(1) if the first UE and the 2nd UE have exchanged to carry in mutual two layers of mark, the first request message in discovery procedure can not also carry the first UE mark.
(2) if obtaining the 2nd UE two layers of mark as owner in discovery procedure first, and the 2nd UE does not obtain the first UE two layers of mark, then needs to carry the first UE mark in the first request message.
(3) if the first UE and the 2nd UE after having found each other, mutual two layers of mark is have exchanged by application layer messages, then need not carry the first UE mark in the first request message.
Step 307, the 2nd UE match the communication session with the first UE according to indication message and APP ID, obtain the first public network IP and the first public network port number that the first UE is used in the communication session.
Step 308, the 2nd UE send the first request response to the first UE, and the first request response includes the first public network IP and the first public network port number.
Step 309, the 2nd UE send the second request message to the first UE, and the second request message includes APP ID.
Second request message is used for the first the second public network IP address of UE acquisition requests and the second public network port number.Second request message includes APP ID, optionally, indication message is also included in the second request message, indication message that the second request message includes, APP ID are identical with indication message that the first request message includes, APP ID, optionally, in the second request message also Include the 2nd UE mark.
Step 310, the first UE match the communication session with the 2nd UE according to indication message and APP ID, obtain the second public network IP and the second public network port number that the 2nd UE is used in the communication session.
Step 311, the first UE send the second request response to the 2nd UE, and the second request response includes the second public network IP and the second public network port number.
Step 312, the first UE and the 2nd UE set up direct communication path.
First UE sets up direct communication path using the first public network IP and the first public network port number, and the 2nd UE sets up direct communication path using the second public network IP and the second public network port number.First UE and the 2nd UE are set up in direct communication path, can also generate TFT, and specific generating mode refer to the associated description of embodiment one and embodiment two, repeat no more here.
Step 313, the first UE and the 2nd UE are communicated on direct communication path.
The process that first UE and the 2nd UE are communicated on direct communication path refer to the associated description of embodiment one and embodiment two, repeat no more here.
Fig. 4 is the signaling process figure of the switching method between the network service that the embodiment of the present invention four is provided and direct communication, as shown in figure 4, the method that the present embodiment is provided may comprise steps of:
Step 401, the first UE and the 2nd UE set up network communication path.
Step 402, the first UE and the 2nd UE are communicated by network communication path.
Step 403, the first UE initiate discovery procedure, determine whether oneself is closer to the distance with the 2nd UE.
Step 404, the first UE and the 2nd UE intercourse respective two layers of mark in discovery procedure.
Step 405, the first UE and the 2nd UE mutual authentications, set up two layers of connection safe on direct communication path.
Step 401-405 specific implementation is identical with the step 301-305 of embodiment three, refer to the description of embodiment three, repeats no more here.
Step 406, the first UE send the first direct communication request message to the 2nd UE, and the first direct communication request message includes indication message, APP ID, the second public network IP address and the second public network port number.
Optionally, the first direct communication request message can also include the first UE mark.
Step 407, the 2nd UE return to the first direct communication request response to the first UE, and the first direct communication request response includes APP ID, the first public network IP address and the first public network port number.
2nd UE is received after the first direct communication request message of the first UE transmissions, preserve the second public network IP address and the second public network port number, and communication session with the first UE is matched according to indication message and APP ID, obtain the first public network IP address and the first public network port number that the first UE is used in the communication session, and generate the first direct communication request response, optionally, the 2nd UE mark can also be included in the first direct communication response message.
It should be noted that, step 407 and step 408 do not have sequencing upon execution, can also perform side by side.
Step 408, the first UE and the 2nd UE set up direct communication path.
First UE sets up direct communication path using the first public network IP and the first public network port number, and the 2nd UE sets up direct communication path using the second public network IP and the second public network port number.First UE and the 2nd UE are set up in direct communication path, can also generate TFT, and specific generating mode refer to the associated description of embodiment one and embodiment two, repeat no more here.
2nd UE sets up direct communication path according to the second public network IP address and the second public network port number.
Step 409, the first UE return to direct communication path to the 2nd UE and set up completion message.
First UE returns to direct communication path after direct communication path is successfully established, to the 2nd UE and sets up completion message, notifies the 2nd UE direct communication paths to be successfully established.
Step 410, the first UE and the 2nd UE are communicated using direct communication path.
The process that first UE and the 2nd UE are communicated on direct communication path refer to the associated description of embodiment one and embodiment two, repeat no more here.
Fig. 5 is the signaling process figure of the switching method between the network service that the embodiment of the present invention five is provided and direct communication, as shown in figure 5, the method that the present embodiment is provided may comprise steps of:
Step 501, the first UE and the 2nd UE set up network communication path.
Step 502, the first UE and the 2nd UE are communicated by network communication path.
Step 503, the first UE initiate discovery procedure, determine whether oneself is closer to the distance with the 2nd UE.
Step 504, the first UE and the 2nd UE intercourse respective two layers of mark in discovery procedure.
Step 505, the first UE and the 2nd UE mutual authentications, set up two layers of connection safe on direct communication path.
Step 501-505 specific implementation is identical with the step 301-305 of embodiment three, refer to the description of embodiment three, repeats no more here.
Step 506, the first UE send the 3rd request message to application server.
3rd request message is used for the public network IP address of acquisition request first and the first public network port number.Optionally, the 2nd UE identification information is included in the 3rd request message, to cause application server to return to the first public network IP address and the first public network port number of the session between the 2nd UE.
Step 507, application server return to the 3rd response message to the first UE, and the 3rd response message includes the first public network IP address and the first public network port number.
Step 508, the first UE send the second direct communication request message to the 2nd UE, and the second direct communication request message includes indication message and APP ID.
Step 509, the 2nd UE send the 4th request message to application server.
4th request message is used for the public network IP address of acquisition request second and the second public network port number.Optionally, the first UE identification information is included in the 4th request message, to cause application server to return to the second public network IP address and the second public network port number of the session between the first UE.
Step 510, application server return to the 4th response message to the 2nd UE, and the 4th response message includes the second public network IP address and the second public network port number.
Step 511, the 2nd UE return to the second direct communication response message to the first UE.
The 2nd UE identification information can be included in second direct communication response message.
Step 512, the first UE and the 2nd UE set up direct communication path.
First UE sets up direct communication path using the first public network IP and the first public network port number, and the 2nd UE sets up direct communication path using the second public network IP and the second public network port number.First UE and the 2nd UE are set up in direct communication path, can also generate TFT, and specific generating mode refer to the associated description of embodiment one and embodiment two, repeat no more here.
Step 513, the first UE and the 2nd UE are communicated using direct communication path.
The process that first UE and the 2nd UE are communicated on direct communication path refer to the associated description of embodiment one and embodiment two, repeat no more here.
It should be noted that, the first direct communication request message and the second direct communication request message that embodiment one is mentioned into embodiment five can be realized using identical type of message, it would however also be possible to employ different Type of message is realized, when the first direct communication request message and the second direct communication request message are realized using identical type of message, and the first direct communication response message and the second direct communication response message are also using the realization of identical type of message.In addition, first request message and the second request message can be realized using identical type of message, it can also be realized using different type of messages, 3rd request message and the 4th request message can be realized using identical type of message, it can also be realized using different type of messages, when the first request message and the second request message use identical type of message, first response message and the second response message also use identical type of message, when the 3rd request message and the 4th request message use identical type of message, 3rd response message and the 4th response message also use identical type of message.
Alternatively, on the basis of embodiment one to five, first UE can also carry public safety during direct communication path is set up and indicate (public safety indication), public safety indicate for be designated as the first UE service P-GW network communication path release after, preserve the first UE private network IP address, so as to the first UE need by communication path from direct communication path be switched to network communication path when, the first UE private network IP address is distributed for the first UE, so as to ensure that the business of user is not interrupted.Public safety indicates to realize by protocol configuration option (Protocol Configuration Options, the abbreviation PCO) field or request type fields of PDN connection request messages or Attach Request message.If public safety indicates to carry by request type, then eNB can indicate the public safety to be sent to MME, during PDN connections are set up, if being configured with the UE in MME subscription data as public safty UE private network IP address, then the private network IP address is sent to PGW by MME, PGW is preserved and is that UE distributes the private network IP address, to be switched to direct communication path in the first UE, return again to after network communication path, PGW can distribute identical private network IP address for the first UE.If public safety indicates to carry by request type, the public safety, which indicates only to preserve in MME, is not sent to PGW, when MME initiates the release of PDN connections, indicated in delete session request comprising the public safety, to cause PGW to preserve the private network IP address, so as to be switched to direct communication path in the first UE, return again to after network communication path, PGW can distribute identical private network IP address for the first UE.
If communication path from direct communication path need not be switched to network communication path by the first UE, public safety instruction need not be carried during network communication path is set up.Similarly, the 2nd UE can also can also carry public safety instruction during direct communication path is set up.It will be illustrated below by a specific embodiment:
Fig. 6 is the signaling process figure of the switching method between the network service that the embodiment of the present invention six is provided and direct communication, as shown in fig. 6, the method that the present embodiment is provided may comprise steps of:
Step 601, the first UE and the 2nd UE are communicated by direct communication path.
The premise of the present embodiment is that communication path switching is switched to direct communication path by the first UE and the 2nd UE from network communication path, and is communicated using direct communication path progress.
Step 602, in communication process, the first UE determine direct communication path communication quality be less than pre-determined threshold.
First UE can detect the communication quality of direct communication path during, and when the communication quality of direct communication path is less than pre-determined threshold, communication path from direct communication path can be switched to network communication path by the first UE.
Step 603, the first UE and the first core net set up PDN connections, and public safety configured information is carried during foundation.
When the first UE determines to switch to network communication path from direct communication path, if first network communication path does not discharge, then communication path is directly switched on first network communication path by the first UE from direct communication path, in the present embodiment, first network communication path is that the first UE is switched to the network communication path used before direct communication path.If first network communication path has discharged, then need to set up the second network communication path, and need to ensure for the first UE distribute communicated in the second network communication path used in the private network IP address used private network IP address that communicated with the first UE on first network communication path it is identical, so, it just can guarantee that user after switching business is not interrupted.
Specifically, first UE can include public safety configured information in attach request or PDN connection request PCO, PGW private network IP address according to used in the first UE of preservation communicates on first network communication path, the first UE is communicated on first network communication path used in private network IP address as the first UE on the second network communication path used in private network IP address distribute to the first UE.
Step 604, the first core net send the private network IP address of distribution to the first UE.
The private network IP address that step 605, the first UE are distributed according to the first core net sets up the second network communication path.
Specifically, the carrying for the communication session that the private network IP address that first UE is distributed according to the first core net is set up between the 2nd UE, the private network IP address that first UE can also be distributed according to the first core net generates the corresponding TFT of the second network communication path, the corresponding TFT of the second network communication path With in information:Source address is the private network IP address that the first core net is distributed, and source port number is to be used for the private network port numbers with the second UE communication used in the 2nd UE, and purpose IP address is the second public network IP address, and destination slogan is the second public network port number.
Step 606, the first UE send direct communication cancel request message to the 2nd UE.
Direct communication cancel request message includes indication message, and the indication message is used to indicate that the communication path between the first UE is switched to the second network communication path by the 2nd UE from direct communication path.
Step 607, the 2nd UE and the second core net set up PDN connections, and public safety configured information is carried during foundation.
Step 608, the second core net send the private network IP address of distribution to the 2nd UE.
PGW in second core net include the 2nd UE communicated on first network communication path used in private network IP address, second core net the 2nd UE is communicated on first network communication path used in private network IP address, communicate used private network IP address as the 2nd UE on the second network communication path.
The private network IP address that step 609, the 2nd UE are distributed according to the second core net sets up the second network communication path.
Specifically, the carrying for the communication session that the private network IP address that 2nd UE is distributed according to the second core net is set up between the first UE, in the private network IP address TFT corresponding with the second network communication path of generation that 2nd UE can also be distributed according to the second core net, the corresponding TFT of the second network communication path match information:Source address is the private network IP address that the second core net is distributed, and source port number is to be used for the private network port numbers with the first UE communication used in the 2nd UE, and purpose IP address is the first public network IP address, and destination slogan is the first public network port number.
Step 610, the 2nd UE send direct communication to the first UE and cancel response message.
The method of the present embodiment, after communication path is switched to direct communication path by the first UE and the 2nd UE from network communication path, if the communication quality of direct communication path is bad, communication path from direct communication path can also be switched to network communication path by the first UE and the 2nd UE, and can ensure that the business of user in handoff procedure is not interrupted.
Fig. 7 is the flow chart of the switching method between the network service that the embodiment of the present invention seven is provided and direct communication, as shown in fig. 7, the method that the present embodiment is provided may comprise steps of:
Step 701, the first UE send indication message to the 2nd UE, and indication message is used The communication path between the first UE is switched to direct communication path from network communication path in the 2nd UE of instruction.
Optionally, the first UE sends indication message to the 2nd UE, is specially:First UE sends the 3rd direct communication request message or the 4th direct communication request message to the 2nd UE, 3rd direct communication request message or the 4th direct communication request message include indication message, certainly, the first UE can also send indication message by other message.In the present embodiment, the first private network IP address, the first private network port numbers, the second public network IP address and the second public network port number are also included in the 3rd direct communication request message;It can also include in 4th direct communication request message:First private network IP address and the first private network port numbers.
Optionally, application identification information is also included in the 3rd direct communication request message or the 4th direct communication request message.
Step 702, the first UE obtain the first public network IP address and the first public network port number.
Step 703, the first UE obtain the second private network IP address and the second private network port numbers.
In a kind of implementation, the first UE obtains the first public network IP address and the first public network port number, is specially:First UE receives the 3rd direct communication response message that the 2nd UE is returned, and the 3rd direct communication response message is that the 2nd UE is returned according to the 3rd direct communication request message, and the 3rd direct communication response message includes:First public network IP address, the first public network port number.It can also include in 3rd direct communication response message:Second private network IP address and the second private network port numbers, the first UE obtain the second private network IP address and the second private network port numbers from the 3rd direct communication response message.
In another implementation, the first UE obtains the first public network IP address and the first public network port number, is specially:First UE sends the 3rd request message to application server, 3rd request message is used for the public network IP address of acquisition request first and the first public network port number, optionally, the 2nd UE identification information is included in the 3rd request message, to cause application server to return to the first public network IP address and the first public network port number of the session between the 2nd UE.Application server returns to the 3rd response message according to the 3rd request message to the first UE, and the first UE receives the 3rd response message that application server is returned, and the 3rd response message includes:First public network IP address and the first public network port number.Accordingly, the first UE obtains the second private network IP address and the second private network port numbers, is specially:First UE receives the 4th direct communication response message that the 2nd UE is returned according to the 4th direct communication request message, and the 4th direct communication response message includes:Second private network IP address and the second private network port numbers.
It should be noted that in the present embodiment, step 701-703 does not have sequencing upon execution, And it can perform simultaneously;And 703 the 3rd request message in step and the 3rd direct communication request message upon execution without sequencing simultaneously, and can perform.
Step 704, the first UE set up direct communication path 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 numbers.
In the present embodiment, first UE is getting the first public network IP address, first public network port number, after second private network IP address and the second private network port numbers, direct communication path need not be set up by Signalling exchange, only need to according to the first public network IP address, first public network port number, second private network IP address and the second private network port numbers set up bottom connection, and set up the first public network IP address, first public network port number and the first private network IP address, first corresponding relation of the first private network port numbers, and second public network IP address, second public network port number and the second private network IP address, second corresponding relation of the second private network port numbers.During direct communication path foundation, first UE can also generate the corresponding TFT of direct communication path, in the present embodiment, the corresponding TFT of direct communication path TFTs corresponding with network communication path is identical, the corresponding TFT of direct communication path source IP address is the first private network IP address, source port number is the first private network port numbers, purpose IP address is the second public network IP address, destination slogan is the second public network port number, but the TFT of direct communication path priority is higher than the priority of network communication path, so as to preferentially use the TFT of direct communication path when ensureing that the first UE sends packet to the 2nd UE.
Step 705, the first UE on direct communication path with the second UE communication.
In the present embodiment, in order to keep the continuity of customer service, first UE application layer is when encapsulation is sent to the 2nd UE packet, using using the first private network IP address as the packet source IP address, using the first private network port numbers as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the packet destination slogan.Packet after encapsulation is identical with the packet sent on network communication path, therefore, identical with the packet on direct communication path in the first UE application layer network communication path.
In order that packet is received on direct communication path is identical with the packet received on network communication path by the 2nd UE, one can be increased in the first UE close to operation layer, this is used for source IP address, source port number, purpose IP address and the destination slogan that the packet is changed according to the first corresponding relation and the second corresponding relation close to operation layer.Specifically, the source IP address of the first UE packet that the 2nd UE will be sent to according to the first corresponding relation close to operation layer replaces with the first public network IP address, the source port number of the packet is replaced with into the first public network port number, according to the second corresponding relation The purpose IP address of the packet is replaced with into the second private network IP address, the destination slogan of the packet is replaced with into the second private network port numbers, the packet is sent to the 2nd UE by the first UE by direct communication path.The packet that the first UE that 2nd UE is received is sent by direct communication path, it is identical with the packet that the first UE is sent by network communication path, the first UE source IP address, source port number and purpose IP address and destination slogan does not all change i.e. before and after the 2nd UE communication paths switch, so as to ensure that the business on the 2nd UE is not interrupted.First UE can also receive the packet that the 2nd UE is sent by direct communication path.
The difference of the present embodiment and embodiment one is, in embodiment one, and the first UE that the 2nd UE is received is identical with source port number with the source IP address for the packet that network communication path is sent by direct communication path, but purpose IP address is different with destination slogan.In the present embodiment, the first UE that the 2nd UE is received is identical with source port number with the source IP address for the packet that network communication path is sent by direct communication path, and purpose IP address and destination slogan are also identical.
In the present embodiment, first UE sends indication message to the 2nd UE, indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path, and obtain the first public network IP address, the first public network port number, the second private network IP address and the second private network port numbers, direct communication path is set up according to the first public network IP address, the first public network port number, the second private network IP address and the second private network port numbers, is communicated using the direct communication path with the 2nd UE.Methods described ensures the first UE before and after communication path switching, and the business of user is not interrupted.
Fig. 8 is the flow chart of the switching method between the network service that the embodiment of the present invention eight is provided and direct communication, as shown in figure 8, the method that the present embodiment is provided may comprise steps of:
Step 801, the 2nd UE receive the indication message that the first UE is sent, and indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path.
Optionally, indication message is carried in the 3rd direct communication request message or the 4th direct communication request message, 2nd UE receives the 3rd direct communication request message or the 4th direct communication request message that the first UE is sent, indication message is got from the 3rd direct communication request message or the 4th direct communication request message, certainly, indication message can also be carried in other message.Optionally, application identification information can also be included in the 3rd direct communication request message or the 4th direct communication request message.
Step 802, the 2nd UE obtain the second public network IP address and the second public network port number.
Step 803, the 2nd UE obtain the first private network IP address and the first private network port numbers
In a kind of implementation, also include the second public network IP address, the second public network port number, the first private network IP address and the first private network port numbers in 3rd direct communication request message, the 2nd UE obtains the second public network IP address, the second public network port number, the first private network IP address and the first private network port numbers from the 3rd direct communication request message.
In another implementation, 2nd UE sends the 4th request message to application server, 4th request message is used for the public network IP address of acquisition request second and the second public network port number, optionally, the first UE identification information is included in the 4th request message, to cause application server to return to the second public network IP address and the second public network port number of the session between the first UE.Application server is received after the 4th request message, returns to the 4th response message to the 2nd UE according to the 4th request message, the 4th response message includes the second public network IP address and the second public network port number.Accordingly, the 2nd UE obtains the first private network IP address and the first private network port numbers from the 4th direct communication request message, and the 4th direct communication request message includes the first private network IP address and the first private network port numbers.
2nd UE is received after the 3rd direct communication request message of the first UE transmissions, 2nd UE also returns to the 3rd direct communication response message to the first UE, and the 3rd direct communication response message includes the first public network IP address, the first public network port number, the second private network IP address and the second private network port numbers.
2nd UE is received after the 4th direct communication request message of the first UE transmissions, and the 2nd UE also returns to the 4th direct communication response message to the first UE, and the 4th direct communication response message includes the second private network IP address and the second private network port numbers.
It should be noted that in the present embodiment, step 801-803 does not have sequencing upon execution, can also perform simultaneously;And 803 the 4th request message in step and the 4th direct communication request message upon execution without sequencing simultaneously, and can perform
Step 804, the 2nd UE set up direct communication path 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, 2nd UE sets up bottom 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 set up the second public network IP address, the second public network port number and the second private network IP address, the first corresponding relation of the second private network port numbers, and the first public network IP address, the first public network port number and the first private network IP address, the second corresponding relation of the first private network port numbers.During foundation, it is corresponding that the 2nd UE can also generate direct communication path TFT, in the present embodiment, the corresponding TFT of direct communication path TFTs corresponding with network communication path is identical, the corresponding TFT of direct communication path source IP address is the second private network IP address, source port number is that the second private network port numbers, purpose IP address are the first public network IP address, destination slogan is the first public network port number, but the TFT of direct communication path priority is higher than the priority of network communication path, so as to ensure preferentially to use the TFT of direct communication path when the 2nd UE sends packet to the first UE.
Step 805, the 2nd UE on direct communication path with the first UE communication.
Specifically, the source IP address for the packet that 2nd UE will be sent to the first UE according to the first corresponding relation replaces with the second public network IP address, the source port number of the packet is replaced with into the second public network port number, the purpose IP address of the packet is replaced with by the first private network IP address according to the second corresponding relation, the destination slogan of the packet is replaced with into the first private network port numbers, wherein, the source port number of the packet is the second private network port numbers, the source port number of the packet is the second private network port numbers, the purpose IP address of the packet is the first public network IP address, the destination slogan of the packet is the first public network port number, packet after replacement is sent to the first UE by the 2nd UE by direct communication path.2nd UE can also receive the packet that the first UE is sent by direct communication path.The specific implementation of this step can refer to the associated description of step 705 in embodiment seven, repeat no more here.
In the present embodiment, in order to keep the continuity of customer service, 2nd UE application layer is when encapsulation is sent to the first UE packet, using using the second private network IP address as the packet source IP address, using the second private network port numbers as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the packet destination slogan.Packet after encapsulation is identical with the packet sent on network communication path.The packet transmitted in network communication path needs the address conversion of the NAT servers by the first UE sides and the 2nd UE sides.
In the transmitting procedure of direct communication path, first UE needs the source to packet, purpose IP address and source, destination slogan to be replaced, all do not change in the first UE source IP address, source port number and the purpose IP address and destination slogan for switching front and rear 2nd UE so, so as to ensure that the business on the first UE is not interrupted.
The embodiment of the present invention nine is using a specific embodiment, and the technical scheme to embodiment seven and embodiment eight is described in detail.Fig. 9 is the signaling process figure of the switching method between the network service that the embodiment of the present invention nine is provided and direct communication, as shown in figure 9, the method that the present embodiment is provided can be wrapped Include following steps:
Step 901, the first UE and the 2nd UE set up network communication path respectively.
Step 902, the first UE and the 2nd UE are communicated by network communication path.
Step 903, the first UE initiate discovery procedure, determine whether oneself is closer to the distance with the 2nd UE.
Step 904, the first UE and the 2nd UE intercourse respective two layers of mark in discovery procedure.
Step 905, the first UE and the 2nd UE mutual authentications, set up two layers of connection safe on direct communication path.
Step 901-905 specific implementation is identical with the step 301-305 of embodiment three, refer to the description of embodiment three, repeats no more here.
Step 906, the first UE send the 3rd request message to application server.
Step 907, application server return to the 3rd response message, and the 3rd response message includes the first public network IP address and the first public network port number.
Step 908, the first UE send the 4th direct communication request message to the 2nd UE, and the 4th direct communication request message includes indication message, APP ID, the first private network IP address and the first private network port numbers.
Optionally, can be with the first UE mark in the 4th direct communication request message.
Step 909, the 2nd UE send the 4th request message according to indication message and APP ID to application server.
Step 910, application server return to the second public network IP address and the second public network port number in the 4th response message, the 4th response message to the 2nd UE.
Step 911, the 2nd UE set up and preserve the second public network IP address, the second public network port number and the second private network IP address, the first corresponding relation of the second private network port numbers, and the first public network IP address, the first public network port number and the first private network IP address, the second corresponding relation of the first private network port numbers.
Step 912, the 2nd UE return to the 4th direct communication response message to the first UE, and the 4th direct communication response message includes the second private network IP address and the second private network port numbers.
Step 913, the 2nd UE set up and preserve the first public network IP address, the first public network port number and the first private network IP address, the first corresponding relation of the first private network port numbers, and the second public network IP Location, the second public network port number and the second private network IP address, the second corresponding relation of the second private network port numbers.
Step 914, the first UE and the 2nd UE communicate on direct communication path.
First UE and the 2nd UE communication process on direct communication path refer to the associated description of embodiment seven and embodiment eight, repeat no more here.
It should be noted that, the 3rd direct communication request message and the 4th direct communication request message that embodiment seven is mentioned into embodiment nine can be realized using identical type of message, it can also be realized using different type of messages, when the 3rd direct communication request message and the 4th direct communication request message use identical type of message, the 3rd direct communication response message and the 4th direct communication response message are also realized using identical type of message identical type of message.In addition, 3rd request message and the 4th request message can be realized using identical type of message, it can also be realized using different type of messages, when the 3rd request message and the 4th request message use identical type of message, the 3rd response message and the 4th response message also use identical type of message.
Figure 10 is the structural representation for the first UE that the embodiment of the present invention ten is provided, as shown in Figure 10, and the first UE that the present embodiment is provided includes:Module 13 and communication module 14 are set up in sending module 11, acquisition module 12, path.
Sending module 11, for sending indication message to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module 12, for obtaining the first public network IP address and the first public network port number;
Module 13 is set up in path, for setting up the direct communication path using first public network IP address and first public network port number;
Communication module 14, on the direct communication path with second UE communication.
In the first implementation, the sending module 11 specifically for:The first request message is sent to the 2nd UE, first request message is used for the first public network IP address described in acquisition request and first public network port number, and first request message includes the indication message.Accordingly, the acquisition module 12 specifically for:The first response message that the 2nd UE is returned is received, first response message includes:First public network IP address and first public network port number.
Optionally, first request message also includes application identification information, and the application identification information is used to indicate the 2nd UE by the communication path under the corresponding application of the application identities from institute State network communication path and be switched to the direct communication path.
Optionally, the first UE also includes:Receiving module, for receiving the second request message that the 2nd UE is sent, second request message is used for the second public network IP address of the first UE acquisition requests and the second public network port;Accordingly, 11 modules of the transmission, are additionally operable to send the second response message to the 2nd UE, second response message includes:Second public network IP address and port numbers and second public network port number.
In second of implementation, the acquisition module 12 specifically for:Being sent to the 2nd UE in the first direct communication request message, the first direct communication request message also includes:Second public network IP address and the second public network port number, then, receive the first direct communication response message that the 2nd UE is returned, the first direct communication response message includes:First public network IP address and first public network port number.Accordingly, the indication message can be carried in the first direct communication request message.
In the third implementation, the sending module 11 specifically for:The second direct communication request message is sent to the 2nd UE, the second direct communication request message includes the indication message;Accordingly, the acquisition module 12 specifically for:The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;Then, the 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number.
Optionally, application identification information is also included in the first direct communication request message or the second direct communication request message.
In the present embodiment, the communication module 14 specifically for:
Using first public network IP address as the packet for being sent to the 2nd UE source IP address, using first public network port number as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the destination slogan of the packet, the packet is sent to the 2nd UE by the direct communication path.
The first UE that the present embodiment is provided, available for embodiment one, the method for embodiment three to embodiment six is performed, specific implementation is similar with technique effect, repeats no more here.
Figure 11 is the structural representation for the 2nd UE that the embodiment of the present invention 11 is provided, as shown in figure 11, and the 2nd UE that the present embodiment is provided includes:Module 23 and communication module 24 are set up in receiving module 21, acquisition module 22, path.
Receiving module 21, for receiving the indication message that the first UE is sent, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module 22, for obtaining the second public network IP address and the second public network port number;
Module 23 is set up in path, for setting up the direct communication path using second public network IP address and second public network port number;
Communication module 24, on the direct communication path with first UE communication.
In the first implementation, the acquisition module 22 specifically for:The second request message is sent to the first UE, second request message is used for the second public network IP address and second public network port number described in the first UE acquisition requests;The second response message that the first UE is returned is received, second response message includes:Second public network IP address and second public network port number.
Optionally, the receiving module 21 is additionally operable to:Receive the first request message that the first UE is sent, first request message includes the indication message, first request message is used for the public network IP address of acquisition request first and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;According to the indication message, first public network IP address and first public network port number that the first UE and the 2nd UE uses in the network communication path are determined.Accordingly, the 2nd UE also includes:Sending module, the first UE is sent to for first public network IP address and first public network port number to be carried in the first response message.
Optionally, application identification information is also included in first request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
In second of implementation, the acquisition module 22 specifically for:The first direct communication request message that the first UE is sent is received, the first direct communication request message includes second public network IP address and second public network port number.Accordingly, the indication message can be carried in the first direct communication request message.2nd UE also includes:Sending module, for returning to the first direct communication response message to the first UE, the first direct communication response disappears Breath includes:First public network IP address and the first public network port number.
In the third implementation, the receiving module 21 specifically for:The second direct communication request message that the first UE is sent is received, the second direct communication request message includes the indication message.Accordingly, the acquisition module 22 specifically for:The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;The 4th response message that the application server is returned is received, the 4th response message includes:Second public network IP address and second public network port number.
Optionally, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
In the present embodiment, the communication module specifically for:Using second public network IP address as the packet for being sent to the first UE source IP address, using second public network port number as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the destination slogan of the packet, the packet is sent to the first UE by the direct communication path.
The 2nd UE that the present embodiment is provided, available for method of the embodiment two to embodiment six is performed, specific implementation is similar with technique effect, repeats no more here.
Figure 12 is the structural representation for the first UE that the embodiment of the present invention 12 is provided, as shown in figure 12, and the first UE that the present embodiment is provided includes:Module 33 and communication module 34 are set up in sending module 31, acquisition module 32, path.
Sending module 31, for sending indication message to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module 32, for obtaining the first public network IP address and the first public network port number;
The acquisition module 32, is additionally operable to obtain the second private network IP address and the second private network port numbers;
Module 33 is set up in path, for setting up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers;
Communication module 34, on the direct communication path with second UE communication.
In the present embodiment, the path set up module 33 specifically for:Set up first public network IP address, first public network port number and the first private network IP address, the first corresponding relation of the first private network port numbers, and the second public network IP address, the second public network port number and second private network IP address, the second corresponding relation of the second private network port numbers.
The communication module 34 specifically for:The source IP address that the packet of the 2nd UE will be sent to according to first corresponding relation replaces with first public network IP address, the source port number of the packet is replaced with into first public network port number, the purpose IP address of the packet is replaced with by second private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the second private network port numbers, wherein, the source port number of the packet is the first private network port numbers, the source port number of the packet is the first private network port numbers, the purpose IP address of the packet is second public network IP address, the destination slogan of the packet is second public network port number, the packet is sent to the 2nd UE by the first UE by the direct communication path;Or, the packet that the 2nd UE is sent is received by the direct communication path.
In a kind of implementation, the sending module 31 specifically for:The 3rd direct communication request message is sent to the 2nd UE, the 3rd direct communication request message includes:The indication message;The acquisition module 32 specifically for:The 3rd direct communication response message that the 2nd UE is returned is received, the 3rd direct communication response message includes:First public network IP address and first public network port number;Also include in the 3rd direct communication response message:Second private network IP address and the second private network port numbers, the acquisition module 32 obtain second private network IP address and the second private network port numbers from the 3rd direct communication response message.
In another implementation, the sending module 31 specifically for:The 4th direct communication request message is sent to the 2nd UE, the 4th direct communication request message includes:The indication message.The acquisition module 32 obtains first public network IP address and first public network port number, including:The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;The 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number.The acquisition module 32 obtains second private network IP address and the second private network port numbers, including:The 4th direct communication response message that the 2nd UE is returned is received, the 4th direct communication response message includes:Second private network IP address and described Two private network port numbers.
Optionally, also include in the 3rd direct communication request message:First private network IP address and the first private network port numbers, the second public network IP address and the second public network port number.
Optionally, also include in the 4th direct communication request message:First private network IP address and the first private network port numbers.
Optionally, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
The first UE that the present embodiment is provided, available for the scheme that embodiment seven and embodiment eight are provided is performed, specific implementation is similar with technique effect, repeats no more here.
Figure 13 is the structural representation for the 2nd UE that the embodiment of the present invention 13 is provided, as shown in figure 13, and the 2nd UE that the present embodiment is provided includes:Module 43 and communication module 44 are set up in receiving module 41, acquisition module 42, path.
Receiving module 41, for receiving the indication message that the first UE is sent, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Acquisition module 42, for obtaining the second public network IP address and the second public network port number;
The acquisition module 42, is additionally operable to obtain the first private network IP address and the first private network port numbers;
Module 43 is set up in path, for setting up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port;
Communication module 44, on the direct communication path with first UE communication.
In the present embodiment, the path set up module 43 specifically for:Set up second public network IP address, second public network port number and the second private network IP address, the first corresponding relation of the second private network port numbers, and the first public network IP address, the first public network port number and first private network IP address, the second corresponding relation of the first private network port numbers.
Optionally, the communication module 44 specifically for:The source IP address that the packet of the first UE will be sent to according to first corresponding relation replaces with second public network IP address, the source port number of the packet is replaced with into second public network port number, the purpose IP address of the packet is replaced with by first private network IP address according to second corresponding relation, by the packet Destination slogan replace with the first private network port numbers, wherein, the source port number of the packet is the second private network port numbers, the source port number of the packet is the second private network port numbers, the purpose IP address of the packet is first public network IP address, the destination slogan of the packet is first public network port number, and the packet after replacement is sent to the first UE by the 2nd UE by the direct communication path;Or, the packet that the first UE is sent is received by the direct communication path.
In a kind of implementation, the receiving module 41 specifically for:The 3rd direct communication request message that the first UE is sent is received, the 3rd direct communication request message includes:The indication message.In the 3rd direct communication request message also include second public network IP address and second public network port number, the acquisition module 42 specifically for:Second public network IP address and second public network port number are obtained from the 3rd direct communication request message.In the 3rd direct communication request message also include first private network IP address and the first private network port numbers, the acquisition module 42 specifically for:First private network IP address and the first private network port numbers are obtained from the 3rd direct communication request message.
In another implementation, the receiving module 41 specifically for:The 4th direct communication request message that the first UE is sent is received, the 4th direct communication request message includes:The indication message.The acquisition module 42 obtains second public network IP address and second public network port number, including:The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;The 4th response message that the application server is returned is received, the 4th response message includes second public network IP address and second public network port number.The acquisition module obtains first private network IP address and the first private network port numbers, including:Also include first private network IP address and the first private network port numbers in the 4th direct communication request message, the acquisition module 42 obtains first private network IP address and the first private network port numbers from the 4th direct communication request message.
Optionally, the 2nd UE also includes:Sending module, for returning to the 3rd direct communication response message to the first UE, the 3rd direct communication response message includes the first public network IP address, the first public network port number, the second private network IP address and the second private network port numbers, or, the 4th direct communication response message is returned to the first UE, the 4th direct communication response message includes the second private network IP address and the second private network port numbers.
Optionally, in the 3rd direct communication request message or the 4th direct communication request message Also include application identification information, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
The 2nd UE that the present embodiment is provided, available for the scheme for performing embodiment eight and embodiment nine, specific implementation is similar with technique effect, and step is repeated here.
Figure 14 is the structural representation for the first UE that the embodiment of the present invention 14 is provided, as shown in figure 14, and the first UE500 that the present embodiment is provided includes:Processor 51, memory 52, communication interface 53 and system bus 54, the memory 51 and the communication interface 53 are connected and communicated with the processor 51 by the system bus;The memory 51, for storing computer executed instructions;The communication interface 53 is used for and other equipment is communicated, the processor, for running the computer executed instructions, performs method as described below:
Indication message is sent to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Obtain the first public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
The direct communication path is set up using first public network IP address and first public network port number;
With second UE communication on the direct communication path.
Optionally, the processor 51 sends indication message to the 2nd UE, is specially:The processor 51 sends the first request message to the 2nd UE, and first request message is used for the first public network IP address described in acquisition request and first public network port number, and first request message includes the indication message.The processor 51 obtains the first public network IP address and the first public network port number, is specially:The first response message that the 2nd UE is returned is received, first response message includes:First public network IP address and first public network port number.
Optionally, first request message also includes application identification information, and the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
The processor 51 is set up before the direct communication path using first public network IP address and first public network port number, and the processor 51 is additionally operable to:The second request message that the 2nd UE is sent is received, second request message is used for the second public network IP address of the first UE acquisition requests and the second public network port, and sends the second response message to the 2nd UE, and second response message includes:Second public network IP address and port numbers and second public network port number.
Optionally, the processor 51 obtains the first public network IP address and the first public network port number, is specially:The processor 51 is sent in the first direct communication request message, the first direct communication request message to the 2nd UE also to be included:Second public network IP address and the second public network port number;The first direct communication response message that the 2nd UE is returned is received, the first direct communication response message includes:First public network IP address and first public network port number.Optionally, the indication message is carried in the first direct communication request message.
Optionally, the processor 51 sends indication message to the 2nd UE, is specially:The second direct communication request message is sent to the 2nd UE, the second direct communication request message includes the indication message.The processor 51 obtains the first public network IP address and the first public network port number, is specially:The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;The 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number.
Optionally, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
The processor 51 on the direct communication path with second UE communication, be specially:The processor 51 using first public network IP address as the packet for being sent to the 2nd UE source IP address, using first public network port number as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the destination slogan of the packet, the packet is sent to the 2nd UE by the direct communication path.
The first UE that the present embodiment is provided, available for embodiment one, the scheme of embodiment three to embodiment six is performed, specific implementation is similar with technique effect, repeats no more here.
Figure 15 is the structural representation for the 2nd UE that the embodiment of the present invention 15 is provided, as shown in figure 15, and the 2nd UE600 that the present embodiment is provided includes:Processor 61, memory 62, communication interface 63 and system bus 64, the memory 62 and the communication interface 63 are connected and communicated with the processor 61 by the system bus 64;The memory 62, for storing computer executed instructions;The communication interface 63 is used for and other equipment is communicated, the processor 61, for running the computer executed instructions, performs method as described below:
The indication message of the first UE transmissions is received, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Obtain the second public network IP address and the second public network port number;
The direct communication path is set up using second public network IP address and second public network port number;
With first UE communication on the direct communication path.
Optionally, the processor 61 obtains the second public network IP address and the second public network port number, is specially:The second request message is sent to the first UE, second request message is used for the second public network IP address and second public network port number described in the first UE acquisition requests;The second response message that the first UE is returned is received, second response message includes:Second public network IP address and second public network port number.
Optionally, before the processor 61 obtains the second public network IP address and the second public network port number, it is additionally operable to:The first request message that the first UE is sent is received, first request message includes the indication message, and first request message is used for the public network IP address of acquisition request first and the first public network port number;According to the indication message, first public network IP address and first public network port number that the first UE and the 2nd UE uses in the network communication path are determined;First public network IP address and first public network port number are carried the first UE is sent in the first response message.
Optionally, application identification information is also included in first request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
Optionally, the processor 61 obtains the second public network IP address and the second public network port number, is specially:Receive the first direct communication request message that the first UE is sent, described the is always on Believe that request message includes second public network IP address and second public network port number.Optionally, the indication message is carried in the first direct communication request message.
The processor 61 is received after the first direct communication request message that the first UE is sent, and is additionally operable to:The first direct communication response message is returned to the first UE, the first direct communication response message includes:First public network IP address and the first public network port number.
Optionally, the processor 61 receives the indication message that the first UE is sent, and is specially:The second direct communication request message that the first UE is sent is received, the second direct communication request message includes the indication message;The processor 61 obtains the second public network IP address and the second public network port number, is specially:The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;The 4th response message that the application server is returned is received, the 4th response message includes:Second public network IP address and second public network port number.
Optionally, application identification information is also included in the first direct communication request message or the second direct communication request message.
Optionally, the processor 61 on the direct communication path with first UE communication, be specially:Using second public network IP address as the packet for being sent to the first UE source IP address, using second public network port number as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the destination slogan of the packet, the packet is sent to the first UE by the direct communication path.
The 2nd UE that the present embodiment is provided, available for the scheme that embodiment two is provided to embodiment six is performed, specific implementation is similar with technique effect, repeats no more here.
Figure 16 is the structural representation for the first UE that the embodiment of the present invention 16 is provided, as shown in figure 16, and the first UE700 that the present embodiment is provided includes:Processor 71, memory 72, communication interface 73 and system bus 74, the memory 72 and the communication interface 73 are connected and communicated with the processor 71 by the system bus 74;The memory 72, for storing computer executed instructions;The communication interface 73 is used for and other equipment is communicated, the processor 71, for running the computer executed instructions, performs method as described below:
Indication message is sent to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Obtain the first public network IP address and the first public network port number;
Obtain the second private network IP address and the second private network port numbers;
The direct communication path is set up using first public network IP address, first public network port number, second private network IP address and the second private network port numbers;
With second UE communication on the direct communication path.
The processor 71 sets up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers, is specially:The processor 71 sets up first public network IP address, first public network port number and the first private network IP address, the first corresponding relation of the first private network port numbers, and the second public network IP address, the second public network port number and second private network IP address, the second corresponding relation of the second private network port numbers.
The processor 71 on the direct communication path with second UE communication, be specially:The source IP address that the processor 71 will be sent to the packet of the 2nd UE according to first corresponding relation replaces with first public network IP address, the source port number of the packet is replaced with into first public network port number, the purpose IP address of the packet is replaced with by second private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the second private network port numbers, wherein, the source port number of the packet is the first private network port numbers, the source port number of the packet is the first private network port numbers, the purpose IP address of the packet is second public network IP address, the destination slogan of the packet is second public network port number, the packet is sent to the 2nd UE by the first UE by the direct communication path;Or, the first UE receives the packet that the 2nd UE is sent by the direct communication path.
Optionally, the processor 71 sends indication message to the 2nd UE, is specially:The 3rd direct communication request message is sent to the 2nd UE, the 3rd direct communication request message includes:The indication message.The processor 71 obtains the first public network IP address and the first public network port number, is specially:The 3rd direct communication response message that the 2nd UE is returned is received, the 3rd direct communication response message includes:First public network IP address and first public network port number.Also include in the 3rd direct communication response message:Second private network IP address and the second private network port numbers, the processor 71 obtain the second private network IP address and the second private network port numbers, are specially:Second private network IP address is obtained from the 3rd direct communication response message With the second private network port numbers.
Optionally, the processor 71 sends indication message to the 2nd UE, is specially:The 4th direct communication request message is sent to the 2nd UE, the 4th direct communication request message includes:The indication message.The processor 71 obtains the first public network IP address and first public network port number, is specially:The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;The 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number.The processor 71 obtains the second private network IP address and the second private network port numbers, is specially:The 4th direct communication response message that the 2nd UE is returned is received, the 4th direct communication response message includes:Second private network IP address and the second private network port numbers.
Optionally, also include in the 3rd direct communication request message:First private network IP address and the first private network port numbers, the second public network IP address and the second public network port number.
Optionally, also include in the 4th direct communication request message:First private network IP address and the first private network port numbers.
Optionally, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
The first UE that the present embodiment is provided, available for the scheme that embodiment seven and embodiment eight are provided is performed, specific implementation is similar with technique effect, repeats no more here.
Figure 17 is the structural representation for the 2nd UE that the embodiment of the present invention 17 is provided, as shown in figure 17, and the 2nd UE800 that the present embodiment is provided includes:Including:Processor 81, memory 82, communication interface 83 and system bus 84, the memory 82 and the communication interface 83 are connected and communicated with the processor 81 by the system bus 84;The memory 82, for storing computer executed instructions;The communication interface 83 is used for and other equipment is communicated, the processor 81, for running the computer executed instructions, performs lower described method:
The indication message of the first UE transmissions is received, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
Obtain the second public network IP address and the second public network port number;
Obtain the first private network IP address and the first private network port numbers;
The direct communication path is set up using second public network IP address, second public network port number, first private network IP address and the first private network port;
With first UE communication on the direct communication path.
Optionally, the processor 81 sets up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port, is specially:The processor 81 sets up second public network IP address, second public network port number and the second private network IP address, the first corresponding relation of the second private network port numbers, and the first public network IP address, the first public network port number and first private network IP address, the second corresponding relation of the first private network port numbers.
Optionally, the processor 81 on the direct communication path with first UE communication, be specially:The source IP address that the packet of the first UE will be sent to according to first corresponding relation replaces with second public network IP address, the source port number of the packet is replaced with into second public network port number, the purpose IP address of the packet is replaced with by first private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the first private network port numbers;Or, the packet that the first UE is sent is received by the direct communication path.
Optionally, the processor 81 receives the indication message that the first UE is sent, and is specially:The 3rd direct communication request message that the first UE is sent is received, the 3rd direct communication request message includes:The indication message.The processor 81 obtains the second public network IP address and the second public network port number, is specially:Also include second public network IP address and second public network port number in the 3rd direct communication request message, the processor 81 obtains second public network IP address and second public network port number from the 3rd direct communication request message.Also include first private network IP address and the first private network port numbers in the 3rd direct communication request message, the processor 81 obtains the first private network IP address and the first private network port numbers, is specially:The processor 81 obtains first private network IP address and the first private network port numbers from the 3rd direct communication request message.
Optionally, the processor 81 receives the indication message that the first UE is sent, and is specially:The 4th direct communication request message that the first UE is sent is received, the 4th direct communication request message includes:The indication message.The processor 81 obtain the second public network IP address and Second public network port number, be specially:The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;The 4th response message that the application server is returned is received, the 4th response message includes second public network IP address and second public network port number.The processor 81 obtains the first private network IP address and the first private network port numbers, is specially:Also include first private network IP address and the first private network port numbers in the 4th direct communication request message, the processor 81 obtains first private network IP address and the first private network port numbers from the 4th direct communication request message.
The processor 81 is received after the 3rd direct communication request message that the first UE is sent, and is additionally operable to:The 3rd direct communication response message is returned to the first UE, the 3rd direct communication response message includes the first public network IP address, the first public network port number, the second private network IP address and the second private network port numbers.
The processor 81 is received after the 4th direct communication request message that the first UE is sent, and is additionally operable to:The 4th direct communication response message is returned to the first UE, the 4th direct communication response message includes the second private network IP address and the second private network port numbers.
Optionally, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
The 2nd UE that the present embodiment is provided, available for the scheme that embodiment eight and embodiment nine are provided is performed, specific implementation is similar with technique effect, repeats no more here.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can be completed by the related hardware of programmed instruction, and foregoing program can be stored in a computer read/write memory medium, and the program upon execution, performs the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although the present invention is described in detail with reference to foregoing embodiments, it will be understood by those within the art that:It can still modify to the technical scheme described in foregoing embodiments, or carry out equivalent substitution to which part or all technical characteristic;And these modifications or replacement, the essence of appropriate technical solution is departed from the scope of various embodiments of the present invention technical scheme.

Claims (74)

  1. A kind of switching method between network service and direct communication, it is characterised in that including:
    First user equipment (UE) sends indication message to the 2nd UE, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    First UE obtains the first public network internet protocol address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
    First UE sets up the direct communication path using first public network IP address and first public network port number;
    First UE on the direct communication path with second UE communication.
  2. According to the method described in claim 1, it is characterised in that the first UE to the 2nd UE send indication message, including:
    First UE sends the first request message to the 2nd UE, and first request message is used for the first public network IP address described in acquisition request and first public network port number, and first request message includes the indication message;
    First UE obtains the first public network IP address and the first public network port number, including:
    First UE receives the first response message that the 2nd UE is returned, and first response message includes:First public network IP address and first public network port number.
  3. Method according to claim 2, it is characterized in that, first request message also includes application identification information, and the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  4. According to the method in claim 2 or 3, it is characterised in that the first UE is set up before the direct communication path using first public network IP address and first public network port number, and methods described also includes:
    First UE receives the second request message that the 2nd UE is sent, second request message is used for the second public network IP address of the first UE acquisition requests and the second public network port, and second public network IP address is the 2nd UE logical with the first UE in the network communication path Letter used in public network IP address, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    First UE sends the second response message to the 2nd UE, and second response message includes:Second public network IP address and port numbers and second public network port number.
  5. According to the method described in claim 1, it is characterised in that the first UE obtains the first public network IP address and the first public network port number, including:
    First UE is sent in the first direct communication request message, the first direct communication request message to the 2nd UE also to be included:Second public network IP address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    First UE receives the first direct communication response message that the 2nd UE is returned, and the first direct communication response message includes:First public network IP address and first public network port number.
  6. Method according to claim 5, it is characterised in that the indication message is carried in the first direct communication request message.
  7. According to the method described in claim 1, it is characterised in that the first UE to the 2nd UE send indication message, including:
    First UE sends the second direct communication request message to the 2nd UE, and the second direct communication request message includes the indication message;
    First UE obtains the first public network IP address and the first public network port number, including:
    First UE sends the 3rd request message to application server, and the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
    First UE receives the 3rd response message that the application server is returned, and the 3rd response message includes:First public network IP address and first public network port number.
  8. Method according to any one of claim 5-7, it is characterized in that, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  9. According to the method described in claim 1, it is characterised in that the first UE is described straight Connect on communication path with second UE communication, including:
    First UE using first public network IP address as the packet for being sent to the 2nd UE source IP address, using first public network port number as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the packet destination slogan, the packet is sent to the 2nd UE by the direct communication path, wherein, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication.
  10. A kind of switching method between network service and direct communication, it is characterised in that including:
    Second user equipment UE receives the indication message that the first UE is sent, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    2nd UE obtains the second public network internet protocol address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    2nd UE sets up the direct communication path using second public network IP address and second public network port number;
    2nd UE on the direct communication path with first UE communication.
  11. Method according to claim 10, it is characterised in that the 2nd UE obtains the second public network IP address and the second public network port number, including:
    2nd UE sends the second request message to the first UE, and second request message is used for the second public network IP address and second public network port number described in the first UE acquisition requests;
    2nd UE receives the second response message that the first UE is returned, and second response message includes:Second public network IP address and second public network port number.
  12. Method according to claim 11, it is characterised in that the 2nd UE is obtained before the second public network IP address and the second public network port number, and methods described also includes:
    2nd UE receives the first request message that the first UE is sent, first request Message includes the indication message, first request message is used for the public network IP address of acquisition request first and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
    2nd UE determines first public network IP address and first public network port number that the first UE and the 2nd UE uses in the network communication path according to the indication message;
    First public network IP address and first public network port number are carried and the first UE are sent in the first response message by the 2nd UE.
  13. Method according to claim 12, it is characterized in that, also include application identification information in first request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  14. Method according to claim 10, it is characterised in that the 2nd UE obtains the second public network IP address and the second public network port number, including:
    2nd UE receives the first direct communication request message that the first UE is sent, and the first direct communication request message includes second public network IP address and second public network port number.
  15. Method according to claim 14, it is characterised in that the indication message is carried in the first direct communication request message.
  16. Method according to claims 14 or 15, it is characterised in that the 2nd UE is received after the first direct communication request message that the first UE is sent, and methods described also includes:
    2nd UE returns to the first direct communication response message to the first UE, and the first direct communication response message includes:First public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
  17. Method according to claim 10, it is characterised in that the 2nd UE receives the indication message that the first UE is sent, including:
    2nd UE receives the second direct communication request message that the first UE is sent, described Second direct communication request message includes the indication message;
    2nd UE obtains the second public network IP address and the second public network port number, including:
    2nd UE sends the 4th request message to application server, and the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
    2nd UE receives the 4th response message that the application server is returned, and the 4th response message includes:Second public network IP address and second public network port number.
  18. Method according to any one of claim 14-17, it is characterized in that, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  19. Method according to claim 10, it is characterised in that the 2nd UE on the direct communication path with first UE communication, including:
    2nd UE using second public network IP address as the packet for being sent to the first UE source IP address, using second public network port number as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the packet destination slogan, the packet is sent to the first UE by the direct communication path, wherein, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
  20. A kind of switching method between network service and direct communication, it is characterised in that including:
    First user equipment (UE) sends indication message to the 2nd UE, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    First UE obtains the first public network internet protocol address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
    First UE obtains the second private network IP address and the second private network port numbers, and second private network IP address is used by the 2nd UE in the network communication path with first UE communication Private network IP address, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication;
    First UE sets up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers;
    First UE on the direct communication path with second UE communication.
  21. Method according to claim 20, it is characterised in that the first UE sets up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers, including:
    First UE sets up first public network IP address, first public network port number and the first private network IP address, first corresponding relation of the first private network port numbers, and second public network IP address, second public network port number and second private network IP address, second corresponding relation of the second private network port numbers, wherein, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication.
  22. Method according to claim 21, it is characterised in that the first UE on the direct communication path with second UE communication, including:
    The source IP address for the packet that first UE will be sent to the 2nd UE according to first corresponding relation replaces with first public network IP address, the source port number of the packet is replaced with into first public network port number, the purpose IP address of the packet is replaced with by second private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the second private network port numbers, wherein, the source port number of the packet is the first private network port numbers, the source port number of the packet is the first private network port numbers, the purpose IP address of the packet is second public network IP address, the destination slogan of the packet is second public network port number, the packet is sent to the 2nd UE by the first UE by the direct communication path;
    Or, the first UE receives the packet that the 2nd UE is sent by the direct communication path.
  23. Method according to claim 20, it is characterised in that the first UE sends indication message to the 2nd UE, including:
    First UE sends the 3rd direct communication request message to the 2nd UE, and the 3rd direct communication request message includes:The indication message;
    First UE obtains the first public network IP address and the first public network port number, including:
    First UE receives the 3rd direct communication response message that the 2nd UE is returned, and the 3rd direct communication response message includes:First public network IP address and first public network port number;
    First UE obtains the second private network IP address and the second private network port numbers, including:
    Also include in the 3rd direct communication response message:Second private network IP address and the second private network port numbers, the first UE obtain second private network IP address and the second private network port numbers from the 3rd direct communication response message.
  24. Method according to claim 20, it is characterised in that the first UE sends indication message to the 2nd UE, including:
    First UE sends the 4th direct communication request message to the 2nd UE, and the 4th direct communication request message includes:The indication message;
    First UE obtains the first public network IP address and first public network port number, including:
    First UE sends the 3rd request message to application server, and the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
    First UE receives the 3rd response message that the application server is returned, and the 3rd response message includes:First public network IP address and first public network port number;
    First UE obtains the second private network IP address and the second private network port numbers, including:
    First UE receives the 4th direct communication response message that the 2nd UE is returned, and the 4th direct communication response message includes:Second private network IP address and the second private network port numbers.
  25. Method according to claim 23, it is characterised in that also include in the 3rd direct communication request message:First private network IP address and the first private network port numbers, the second public network IP address and the second public network port number, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network used in second UE communication Port numbers, second public network IP address is that the 2nd UE is the 2nd UE public network port numbers used in the first UE communication described in the network communication path with public network IP address, second public network port number used in first UE communication in the network communication path.
  26. Method according to right 24, it is characterised in that also include in the 4th direct communication request message:First private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication.
  27. Method according to claim 25 or 26, it is characterized in that, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  28. A kind of switching method between network service and direct communication, it is characterised in that including:
    Second user equipment UE receives the indication message that the first UE is sent, and the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    2nd UE obtains the second public network internet protocol address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    2nd UE obtains the first private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication;
    2nd UE sets up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port;
    2nd UE on the direct communication path with first UE communication.
  29. Method according to claim 28, it is characterised in that the 2nd UE sets up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port, including:
    2nd UE sets up second public network IP address, second public network port number and the second private network IP address, first corresponding relation of the second private network port numbers, and first public network IP address, first public network port number and first private network IP address, second corresponding relation of the first private network port numbers, wherein, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
  30. Method according to claim 29, it is characterised in that the 2nd UE on the direct communication path with first UE communication, including:
    The source IP address for the packet that 2nd UE will be sent to the first UE according to first corresponding relation replaces with second public network IP address, the source port number of the packet is replaced with into second public network port number, the purpose IP address of the packet is replaced with by first private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the first private network port numbers, wherein, the source port number of the packet is the second private network port numbers, the source port number of the packet is the second private network port numbers, the purpose IP address of the packet is first public network IP address, the destination slogan of the packet is first public network port number, packet after replacement is sent to the first UE by the 2nd UE by the direct communication path;
    Or, the 2nd UE receives the packet that the first UE is sent by the direct communication path.
  31. Method according to claim 29, it is characterised in that the 2nd UE receives the indication message that the first UE is sent, including:
    2nd UE receives the 3rd direct communication request message that the first UE is sent, and the 3rd direct communication request message includes:The indication message;
    2nd UE obtains the second public network IP address and the second public network port number, including:
    Also include second public network IP address and second public network port number in the 3rd direct communication request message, the 2nd UE obtains second public network IP address and second public network port number from the 3rd direct communication request message;
    2nd UE obtains the first private network IP address and the first private network port numbers, including:
    Also include first private network IP address and the first private network port numbers in the 3rd direct communication request message, the 2nd UE obtains first private network IP address and the first private network port numbers from the 3rd direct communication request message.
  32. Method according to claim 29, it is characterised in that the 2nd UE receives the indication message that the first UE is sent, including:
    2nd UE receives the 4th direct communication request message that the first UE is sent, and the 4th direct communication request message includes:The indication message;
    2nd UE obtains the second public network IP address and the second public network port number, including:
    2nd UE sends the 4th request message to application server, and the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
    2nd UE receives the 4th response message that the application server is returned, and the 4th response message includes second public network IP address and second public network port number;
    2nd UE obtains the first private network IP address and the first private network port numbers, including:
    Also include first private network IP address and the first private network port numbers in the 4th direct communication request message, the 2nd UE obtains first private network IP address and the first private network port numbers from the 4th direct communication request message.
  33. Method according to claim 31, it is characterised in that the 2nd UE is received after the 3rd direct communication request message that the first UE is sent, and methods described also includes:
    2nd UE returns to the 3rd direct communication response message to the first UE, the 3rd direct communication response message includes the first public network IP address, first public network port number, second private network IP address and the second private network port numbers, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
  34. Method according to claim 32, it is characterised in that the 2nd UE is received after the 4th direct communication request message that the first UE is sent, and methods described also includes:
    2nd UE returns to the 4th direct communication response message, the described 4th to the first UE Direct communication response message includes the second private network IP address and the second private network port numbers, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
  35. Method according to claim 31 or 32, it is characterized in that, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  36. A kind of first user equipment (UE), it is characterised in that including:
    Sending module, for sending indication message to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    Acquisition module, for obtaining the first public network internet protocol address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
    Module is set up in path, for setting up the direct communication path using first public network IP address and first public network port number;
    Communication module, on the direct communication path with second UE communication.
  37. First UE according to claim 36, it is characterised in that the sending module specifically for:
    The first request message is sent to the 2nd UE, first request message is used for the first public network IP address described in acquisition request and first public network port number, and first request message includes the indication message;
    The acquisition module specifically for:
    The first response message that the 2nd UE is returned is received, first response message includes:First public network IP address and first public network port number.
  38. The first UE according to claim 37, it is characterized in that, first request message also includes application identification information, and the application identification information is for indicating that it is described that the communication path under the corresponding application of the application identities is switched to by the 2nd UE from the network communication path Direct communication path.
  39. The first UE according to claim 37 or 38, it is characterised in that the first UE also includes:
    Receiving module, for receiving the second request message that the 2nd UE is sent, second request message is used for the second public network IP address of the first UE acquisition requests and the second public network port, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    The sending module, is additionally operable to send the second response message to the 2nd UE, second response message includes:Second public network IP address and port numbers and second public network port number.
  40. First UE according to claim 36, it is characterised in that the acquisition module specifically for:
    Being sent to the 2nd UE in the first direct communication request message, the first direct communication request message also includes:Second public network IP address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    The first direct communication response message that the 2nd UE is returned is received, the first direct communication response message includes:First public network IP address and first public network port number.
  41. First UE according to claim 40, it is characterised in that the indication message is carried in the first direct communication request message.
  42. First UE according to claim 36, it is characterised in that the sending module specifically for:
    The second direct communication request message is sent to the 2nd UE, the second direct communication request message includes the indication message;
    The acquisition module specifically for:
    The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
    The 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number.
  43. The first UE according to any one of claim 40-42, it is characterized in that, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  44. First UE according to claim 36, it is characterised in that the communication module specifically for:
    Using first public network IP address as the packet for being sent to the 2nd UE source IP address, using first public network port number as the packet source port number, using the second public network IP address as the packet purpose IP address, using the second public network port number as the packet destination slogan, the packet is sent to the 2nd UE by the direct communication path, wherein, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication.
  45. A kind of second user equipment UE, it is characterised in that including:
    Receiving module, for receiving the indication message that the first UE is sent, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    Acquisition module, for obtaining the second public network internet protocol address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    Module is set up in path, for setting up the direct communication path using second public network IP address and second public network port number;
    Communication module, on the direct communication path with first UE communication.
  46. 2nd UE according to claim 45, it is characterised in that the acquisition module specifically for:
    The second request message is sent to the first UE, second request message is used for the second public network IP address and second public network port number described in the first UE acquisition requests;
    The second response message that the first UE is returned is received, second response message includes:Second public network IP address and second public network port number.
  47. 2nd UE according to claim 46, it is characterised in that the receiving module is additionally operable to:
    Receive the first request message that the first UE is sent, first request message includes the indication message, first request message is used for the public network IP address of acquisition request first and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
    According to the indication message, first public network IP address and first public network port number that the first UE and the 2nd UE uses in the network communication path are determined;
    2nd UE also includes:Sending module, the first UE is sent to for first public network IP address and first public network port number to be carried in the first response message.
  48. 2nd UE according to claim 47, it is characterized in that, also include application identification information in first request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  49. 2nd UE according to claim 45, it is characterised in that the acquisition module specifically for:
    The first direct communication request message that the first UE is sent is received, the first direct communication request message includes second public network IP address and second public network port number.
  50. 2nd UE according to claim 49, it is characterised in that the indication message is carried in the first direct communication request message.
  51. The 2nd UE according to claim 49 or 50, it is characterised in that the 2nd UE also includes:
    Sending module, for returning to the first direct communication response message to the first UE, the first direct communication response message includes:First public network IP address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
  52. 2nd UE according to claim 45, it is characterised in that the receiving module specifically for:
    The second direct communication request message that the first UE is sent is received, the second direct communication request message includes the indication message;
    The acquisition module specifically for:
    The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
    The 4th response message that the application server is returned is received, the 4th response message includes:Second public network IP address and second public network port number.
  53. The 2nd UE according to any one of claim 49-52, it is characterized in that, also include application identification information in the first direct communication request message or the second direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  54. 2nd UE according to claim 45, it is characterised in that the 2nd UE on the direct communication path with first UE communication, including communication module specifically for:
    Using second public network IP address as the packet for being sent to the first UE source IP address, using second public network port number as the packet source port number, using the first public network IP address as the packet purpose IP address, using the first public network port number as the packet destination slogan, the packet is sent to the first UE by the direct communication path, wherein, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
  55. A kind of first user equipment (UE), it is characterised in that including:
    Sending module, for sending indication message to the 2nd UE, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    Acquisition module, for obtaining the first public network internet protocol address and the first public network port number, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication;
    The acquisition module, is additionally operable to obtain the second private network IP address and the second private network port numbers, second private network IP address be the 2nd UE in the network communication path with the first UE Communication used in private network IP address, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication;
    Module is set up in path, for setting up the direct communication path using first public network IP address, first public network port number, second private network IP address and the second private network port numbers;
    Communication module, on the direct communication path with second UE communication.
  56. First UE according to claim 55, it is characterised in that the path set up module specifically for:
    Set up first public network IP address, first public network port number and the first private network IP address, first corresponding relation of the first private network port numbers, and second public network IP address, second public network port number and second private network IP address, second corresponding relation of the second private network port numbers, wherein, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication.
  57. First UE according to claim 56, it is characterised in that the communication module specifically for:
    The source IP address that the packet of the 2nd UE will be sent to according to first corresponding relation replaces with first public network IP address, the source port number of the packet is replaced with into first public network port number, the purpose IP address of the packet is replaced with by second private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the second private network port numbers, wherein, the source port number of the packet is the first private network port numbers, the source port number of the packet is the first private network port numbers, the purpose IP address of the packet is second public network IP address, the destination slogan of the packet is second public network port number, the packet is sent to the 2nd UE by the first UE by the direct communication path;
    Or, the packet that the 2nd UE is sent is received by the direct communication path.
  58. First UE according to claim 55, it is characterised in that the sending module specifically for:
    First UE sends the 3rd direct communication request message, the described 3rd to the 2nd UE Direct communication request message includes:The indication message;
    The acquisition module specifically for:
    The 3rd direct communication response message that the 2nd UE is returned is received, the 3rd direct communication response message includes:First public network IP address and first public network port number;
    Also include in the 3rd direct communication response message:Second private network IP address and the second private network port numbers, second private network IP address and the second private network port numbers are obtained from the 3rd direct communication response message.
  59. First UE according to claim 55, it is characterised in that the sending module specifically for:
    The 4th direct communication request message is sent to the 2nd UE, the 4th direct communication request message includes:The indication message;
    The acquisition module obtains first public network IP address and first public network port number, including:
    The 3rd request message is sent to application server, the 3rd request message is used for the first public network IP address described in acquisition request and first public network port number;
    The 3rd response message that the application server is returned is received, the 3rd response message includes:First public network IP address and first public network port number;
    The acquisition module obtains second private network IP address and the second private network port numbers, including:
    The 4th direct communication response message that the 2nd UE is returned is received, the 4th direct communication response message includes:Second private network IP address and the second private network port numbers.
  60. First UE according to claim 59, it is characterised in that also include in the 3rd direct communication request message:First private network IP address and the first private network port numbers, second public network IP address and the second public network port number, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number is the 2nd UE public network port numbers used in the first UE communication described in the network communication path.
  61. The first UE according to right 59, it is characterised in that the 4th direct communication please Asking in message also includes:First private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication.
  62. The first UE according to claim 60 or 61, it is characterized in that, also include application identification information in the 3rd direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  63. A kind of second user equipment UE, it is characterised in that including:
    Receiving module, for receiving the indication message that the first UE is sent, the indication message is used to indicate that the communication path between the first UE is switched to direct communication path by the 2nd UE from network communication path;
    Acquisition module, for obtaining the second public network internet protocol address and the second public network port number, second public network IP address be the 2nd UE in the network communication path with public network IP address used in first UE communication, second public network port number be the 2nd UE in the network communication path with public network port number used in first UE communication;
    The acquisition module, it is additionally operable to obtain the first private network IP address and the first private network port numbers, first private network IP address be the first UE in the network communication path with private network IP address used in second UE communication, the first private network port numbers be the first UE in the network communication path with private network port numbers used in second UE communication;
    Module is set up in path, for setting up the direct communication path using second public network IP address, second public network port number, first private network IP address and the first private network port;
    Communication module, on the direct communication path with first UE communication.
  64. 2nd UE according to claim 63, it is characterised in that the path set up module specifically for:
    Set up second public network IP address, second public network port number and the second private network IP address, the first corresponding relation of the second private network port numbers, and first public network IP address, the first public network port number and first private network IP address, the second corresponding relation of the first private network port numbers, wherein, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers are the 2nd UE in institute State in network communication path with private network port numbers used in first UE communication, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication.
  65. 2nd UE according to claim 64, it is characterised in that the communication module specifically for:
    The source IP address that the packet of the first UE will be sent to according to first corresponding relation replaces with second public network IP address, the source port number of the packet is replaced with into second public network port number, the purpose IP address of the packet is replaced with by first private network IP address according to second corresponding relation, the destination slogan of the packet is replaced with into the first private network port numbers, wherein, the source port number of the packet is the second private network port numbers, the source port number of the packet is the second private network port numbers, the purpose IP address of the packet is first public network IP address, the destination slogan of the packet is first public network port number, packet after replacement is sent to the first UE by the 2nd UE by the direct communication path;
    Or, the packet that the first UE is sent is received by the direct communication path.
  66. 2nd UE according to claim 64, it is characterised in that the receiving module specifically for:
    The 3rd direct communication request message that the first UE is sent is received, the 3rd direct communication request message includes:The indication message;
    The acquisition module specifically for:
    Also include second public network IP address and second public network port number in the 3rd direct communication request message, second public network IP address and second public network port number are obtained from the 3rd direct communication request message;
    Also include first private network IP address and the first private network port numbers in the 3rd direct communication request message, first private network IP address and the first private network port numbers are obtained from the 3rd direct communication request message.
  67. 2nd UE according to claim 64, it is characterised in that the receiving module specifically for:
    The 4th direct communication request message that the first UE is sent is received, the 4th direct communication request message includes:The indication message;
    The acquisition module obtains second public network IP address and second public network port number, including:
    The 4th request message is sent to application server, the 4th request message is used for the second public network IP address described in acquisition request and second public network port number;
    The 4th response message that the application server is returned is received, the 4th response message includes second public network IP address and second public network port number;
    The acquisition module obtains first private network IP address and the first private network port numbers, including:
    Also include first private network IP address and the first private network port numbers in the 4th direct communication request message, the acquisition module obtains first private network IP address and the first private network port numbers from the 4th direct communication request message.
  68. 2nd UE according to claim 66, it is characterised in that the 2nd UE also includes:
    Sending module, for returning to the 3rd direct communication response message to the first UE, the 3rd direct communication response message includes the first public network IP address, first public network port number, second private network IP address and the second private network port numbers, first public network IP address be the first UE in the network communication path with public network IP address used in second UE communication, first public network port number be the first UE in the network communication path with public network port number used in second UE communication, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
  69. 2nd UE according to claim 67, it is characterised in that the 2nd UE also includes:
    Sending module, for returning to the 4th direct communication response message to the first UE, the 4th direct communication response message includes the second private network IP address and the second private network port numbers, second private network IP address be the 2nd UE in the network communication path with private network IP address used in first UE communication, the second private network port numbers be the 2nd UE in the network communication path with private network port numbers used in first UE communication.
  70. The 2nd UE according to claim 68 or 69, it is characterised in that the described 3rd Also include application identification information in direct communication request message or the 4th direct communication request message, the application identification information is used to indicate that the communication path under the corresponding application of the application identities is switched to the direct communication path by the 2nd UE from the network communication path.
  71. A kind of first user equipment (UE), it is characterised in that including:Processor, memory, communication interface and system bus, the memory and the communication interface are connected and communicated with the processor by the system bus;
    The memory, for storing computer executed instructions;
    The processor, for running the computer executed instructions, performs the method as described in claim 1-9 is any.
  72. A kind of second user equipment UE, it is characterised in that including:Processor, memory, communication interface and system bus, the memory and the communication interface are connected and communicated with the processor by the system bus;
    The memory, for storing computer executed instructions;
    The processor, for running the computer executed instructions, performs the method as described in claim 10-19 is any.
  73. A kind of first user equipment (UE), it is characterised in that including:Processor, memory, communication interface and system bus, the memory and the communication interface are connected and communicated with the processor by the system bus;
    The memory, for storing computer executed instructions;
    The processor, for running the computer executed instructions, performs the method as described in claim 20-27 is any.
  74. A kind of second user equipment UE, it is characterised in that including:Processor, memory, communication interface and system bus, the memory and the communication interface are connected and communicated with the processor by the system bus;
    The memory, for storing computer executed instructions;
    The processor, for running the computer executed instructions, performs the method as described in claim 28-35 is any.
CN201580038930.9A 2015-04-23 2015-04-23 Switching method and apparatus between network communication and direct communication Expired - Fee Related CN106537854B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/077263 WO2016169015A1 (en) 2015-04-23 2015-04-23 Method and apparatus for switching network communication and direct communication

Publications (2)

Publication Number Publication Date
CN106537854A true CN106537854A (en) 2017-03-22
CN106537854B CN106537854B (en) 2019-09-13

Family

ID=57143665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580038930.9A Expired - Fee Related CN106537854B (en) 2015-04-23 2015-04-23 Switching method and apparatus between network communication and direct communication

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111034334A (en) * 2017-08-11 2020-04-17 华为技术有限公司 Path conversion method, related device and system
WO2024027491A1 (en) * 2022-08-02 2024-02-08 中国电信股份有限公司 Path switching method, apparatus, and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347752A (en) * 2018-02-07 2018-07-31 北京佰才邦技术有限公司 Data transmission method and the network equipment
CN115714984A (en) * 2021-08-20 2023-02-24 维沃移动通信有限公司 Data processing method, device, terminal, access network equipment and core network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120281673A1 (en) * 2008-06-27 2012-11-08 Nix John A Efficient handover of media communications in heterogeneous ip networks using lan profiles and network handover rules
CN103795818A (en) * 2014-01-27 2014-05-14 杭州顺浪信息技术有限公司 NAT traversal method
WO2014130143A1 (en) * 2013-02-22 2014-08-28 Intel IP Corporation Path switching procedure for device-to-device communication
CN104079487A (en) * 2013-03-29 2014-10-01 索尼公司 Communication apparatus, communication system, control method of communication apparatus and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120281673A1 (en) * 2008-06-27 2012-11-08 Nix John A Efficient handover of media communications in heterogeneous ip networks using lan profiles and network handover rules
WO2014130143A1 (en) * 2013-02-22 2014-08-28 Intel IP Corporation Path switching procedure for device-to-device communication
CN104079487A (en) * 2013-03-29 2014-10-01 索尼公司 Communication apparatus, communication system, control method of communication apparatus and program
CN103795818A (en) * 2014-01-27 2014-05-14 杭州顺浪信息技术有限公司 NAT traversal method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111034334A (en) * 2017-08-11 2020-04-17 华为技术有限公司 Path conversion method, related device and system
US11419025B2 (en) 2017-08-11 2022-08-16 Huawei Technologies Co., Ltd. Path switching method, apparatus and system
WO2024027491A1 (en) * 2022-08-02 2024-02-08 中国电信股份有限公司 Path switching method, apparatus, and system

Also Published As

Publication number Publication date
CN106537854B (en) 2019-09-13
WO2016169015A1 (en) 2016-10-27

Similar Documents

Publication Publication Date Title
CN104796849B (en) A kind of method and apparatus handled data packet
IL209358A (en) Method and apparatus for pcc enhancement for flow based mobility
CN103891344B (en) A kind of method, equipment and the system of multi-user Cooperation communication
CN103796262B (en) The method and apparatus directly switched
KR20140134627A (en) System and method of ip session continuity in a device to device communication system
CN104869659B (en) A kind of path establishment method, equipment and system, equipment of the core network
WO2017118191A1 (en) Method and device for transmitting control plane information
CN103974429B (en) A kind of path establishment method and equipment of the adjacent communication of terminal room
CN106537854A (en) Method and apparatus for switching network communication and direct communication
WO2019078888A1 (en) Combination of radio access network and core network user plane
CN107431953A (en) The method and apparatus of Business Stream shunting
CN106455086B (en) A kind of method and apparatus carried out data transmission
CN106797632B (en) Realize the method, apparatus and system of business continuance
JP2019504567A (en) Data transmission method and apparatus, and related device
JP5878134B2 (en) Upper base station, lower base station, and wireless communication system
CN104284383B (en) A kind of method and apparatus for keeping business continuance
WO2016191951A1 (en) Method, device and system for switching communication path of proximity service
CN104144403B (en) A kind of communication means and equipment, system
CN112567879A (en) Mapping logical network resources to transport resources
WO2015192291A1 (en) Service packet distribution method and apparatus
WO2014187275A1 (en) Method, device and network system for communications
US10250490B2 (en) Method and network node for routing backhaul packets
CN104038919B (en) A kind of adjacent communication method for building up, apparatus and system
EP3264852A1 (en) Method for allocating ip address in d2d communication, and user equipment
CN109688038B (en) End-to-end Non-IP transmission method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190913

CF01 Termination of patent right due to non-payment of annual fee