WO2016183781A1 - D2d通信中的ip地址分配方法及用户设备 - Google Patents
D2d通信中的ip地址分配方法及用户设备 Download PDFInfo
- Publication number
- WO2016183781A1 WO2016183781A1 PCT/CN2015/079209 CN2015079209W WO2016183781A1 WO 2016183781 A1 WO2016183781 A1 WO 2016183781A1 CN 2015079209 W CN2015079209 W CN 2015079209W WO 2016183781 A1 WO2016183781 A1 WO 2016183781A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- message
- type
- peer
- indicate
- Prior art date
Links
- 238000004891 communication Methods 0.000 title claims abstract description 398
- 238000000034 method Methods 0.000 title claims abstract description 165
- 239000003999 initiator Substances 0.000 description 30
- 230000008569 process Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 3
- 230000011664 signaling Effects 0.000 description 3
- 238000001228 spectrum Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/26—Network addressing or numbering for mobility support
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/18—Management of setup rejection or failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
Definitions
- the embodiments of the present invention relate to communication technologies, and in particular, to an IP address allocation method and user equipment in D2D communication.
- LTE Long Term Evolution
- UE User Equipment
- D2D communication allows user equipment (User Equipment, UE for short) to communicate directly, and can share spectrum resources with cell users under the control of the cell network. Improve the utilization of spectrum resources.
- D2D communication has been applied to LTE network systems.
- the D2D communication includes one to many communication, that is, group communication, and one to one communication.
- the D2D communication between the sender UE and the receiver UE needs to know the address of the receiver UE, and specifically includes the layer 2 address of the receiver UE, that is, the device address of the receiver UE, and the receiver UE.
- the network address is the Internet Protocol (IP) address.
- IP Internet Protocol
- the layer 2 address is used for signaling interaction between the two UEs for D2D communication
- the IP address is used for data exchange between the two parties of the D2D communication
- the layer 2 address of the receiver UE may be discovered by the sender UE through D2D or pre-configured.
- the transmitting UE performs signaling interaction with the receiving UE, so that one UE of the D2D communication acquires the IP address of the other UE.
- both the sender UE and the receiver UE can serve as the assigner of the IP address, and can also serve as the receiver of the IP address at the same time.
- the sender UE and the receiver UE are both the IP address assigners, the problem of repeated IP address allocation may occur.
- the sender UE and the receiver UE may simultaneously serve as a Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol). : DHCP) server, assigning an IPv4 type IP address; or, the sender UE and the receiver UE can simultaneously assign an IPv6 type IP address as an IP router.
- DHCP Dynamic Host Configuration Protocol
- the embodiment of the present invention provides an IP address allocation method and user equipment in D2D communication, so as to solve the D2D communication in the prior art in the process of IP address allocation, because the sender UE and the receiver UE may simultaneously be assigned as IP addresses. And the recipient, the resulting IP address is repeatedly allocated or unallocated to improve the success rate of connection establishment of D2D communication.
- an embodiment of the present invention provides a method for allocating an IP address in D2D communication, including:
- the first user equipment UE sends a first message to the second UE, where the first message includes a first IP address that is allocated by the first UE to the second UE;
- the first UE receives the second message sent by the second UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the first message includes a first packet data network PDN type, and the first PDN type is used to indicate an IP address type supported by the first UE.
- the second message when the second message is used to indicate that the first IP address allocation fails, includes at least one of a second PDN type and a cause value, where the second PDN type is used to indicate an IP address type supported by the second UE; and the cause value is used to indicate the second The UE does not support the type of the first IP address.
- the method when the second message includes the second PDN type, the method further includes:
- the first UE determines, according to the second message, that the first UE supports the second PDN type, assigning a second IP address to the second UE, and sending the second UE to the second UE a second IP address, where the second IP address is used by the second UE to establish a device-to-device D2D communication connection between the second UE and the first UE; or
- the first UE determines, according to the second message, that the first UE does not support the second PDN type, sending a feedback message to the second UE, where the feedback message is used to indicate the D2D
- the communication connection establishment failed.
- the method when the second message includes the cause value, and the second PDN type is not included, the method further include:
- the first UE supports other types of IP addresses except the type of the first IP address, assigning a second IP address to the second UE, and sending the second IP to the second UE An address, where the second IP address is used by the second UE to establish a connection of D2D communication between the second UE and the first UE; or
- the first UE does not support other types of IP addresses except the type of the first IP address, send a feedback message to the second UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the second message when the first message includes a first PDN type, the second message includes the cause value, and the reason
- the method is further configured to: when the second UE supports the first PDN type, the method further includes:
- the first UE allocates a second IP address of the first PDN type to the second UE, and sends the second IP address to the second UE, where the second IP address is used by the first
- the second UE establishes a device-to-device D2D communication connection between the second UE and the first UE.
- the method further includes:
- the first UE supports other types of IP addresses except the type of the first IP address and the first PDN type, assigning a second IP address to the second UE, and to the second Sending, by the UE, the second IP address, where the second IP address is used by the second UE to establish a connection of D2D communication between the second UE and the first UE; or
- the first UE does not support other types of IP addresses except the first IP address type and the first PDN type, sending a feedback message to the second UE, where the feedback message is used to indicate The D2D communication connection establishment failed.
- the first message further includes an identity identifier, where the identity identifier is used to indicate that the second UE determines, according to the identity identifier, that the first UE is an IP address in D2D communication.
- the assignor, or the identity is used to indicate that the second UE is a recipient of an IP address in D2D communication.
- any one of the first to seventh implementation manners of the first aspect, in the eighth possible implementation manner, before the first UE sends the first message to the second UE, include:
- the first UE allocates the first IP address to the second UE according to the second PDN type of the second UE.
- any one of the first to the eighth implementation manners of the first aspect, in the ninth possible implementation manner, before the first UE sends the first message to the second UE, include:
- the first UE allocates the first IP address to the second UE according to the third message.
- an embodiment of the present invention provides a method for allocating an IP address in D2D communication, including:
- the second UE sends a second message to the first UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the sending, by the second UE, the second message to the first UE includes:
- the second UE determines, according to the first message, that the second UE does not support the type of the first IP address, sending the second message to the first UE, where the second message is used by Instructing the first IP address allocation to fail, wherein the second message includes at least one of a second packet data network PDN type and a cause value, the cause value is used to indicate that the second UE does not support the a type of the first IP address, where the second PDN type is used to indicate an IP address type supported by the second UE; or
- the second UE is configured according to the first Determining that the second UE does not support the type of the first IP address and the second UE supports the first PDN type, sending the second message to the first UE, the second message
- the second message is used to indicate that the first IP address is not supported, and the second message includes at least one of a second PDN type and a cause value, where the cause value is used to indicate that the second UE does not support the first a type of the IP address and the second UE supports the first PDN type; or
- the second UE determines, according to the first message, that the second UE does not support the type of the first IP address, and the second UE does not support the Transmitting the second message to the first UE, where the second message is used to indicate that the first IP address allocation fails, where the first PDN type is used to indicate the The IP address type supported by the first UE, the second message includes at least one of a second PDN type and a cause value, where the cause value is used to indicate that the second UE does not support the type of the first IP address And the second UE does not support the first PDN type, and the second PDN type is used to indicate an IP address type supported by the second UE; or
- the method when the second message is used to indicate that the first IP address allocation fails, the method is further include:
- the second UE receives the feedback message sent by the first UE, and the feedback message is used to indicate that the D2D communication connection establishment fails.
- the first and second implementation manners of the second aspect in a third possible implementation, the first message further includes an identity identifier, and the method further include:
- the second UE determines, according to the identity identifier, that the first UE is an allocator of an IP address in D2D communication or the second UE is a receiver of an IP address in D2D communication.
- the second UE receives the first message sent by the first UE before, it also includes:
- the second UE sends a third message to the first UE, where the third message is used to request the first UE to allocate the first IP address to the second UE.
- an embodiment of the present invention provides a method for allocating an IP address in D2D communication, where a first IP address is pre-configured in a first user equipment UE, and a second IP address is pre-configured in a second UE, where the method includes :
- the first UE sends a first message to the second UE, where the first message includes a first IP address and indication information, where the indication information is used to indicate that the first UE uses the first IP address.
- the indication information is further used to indicate that the second UE uses the second IP address, and the first message is used to request the second UE to establish the first UE according to the first IP address.
- the first UE receives a second message sent by the second UE, where the second message is used to indicate that the D2D communication connection is successfully established.
- an embodiment of the present invention provides a method for allocating an IP address in D2D communication, where a first IP address is pre-configured in a first user equipment UE, and a second IP address is pre-configured in a second UE, where the method includes :
- the first UE sends a first message to the second UE, where the first message includes indication information, where the indication information is used to indicate that the first UE uses the first IP address, and the indication information And indicating that the second UE uses the second IP address, where the indication information is further used to indicate that the first UE is a device-to-device D2D communication connection creator;
- the first message further includes a packet data network PDN type, where the PDN type indicates an IP address type used by the second UE, and the second message is The second IP address is added by the second UE according to the indication information and the PDN type.
- an embodiment of the present invention provides a UE, including:
- a transmitter configured to send a first message to the peer UE, where the first message includes a first IP address that is allocated by the UE to the peer UE;
- a receiver configured to receive a second message sent by the peer UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the first message includes a first packet data network PDN type, and the first PDN type is used to indicate an IP address type supported by the UE.
- the second message when the second message is used to indicate that the first IP address allocation fails, includes at least one of a second PDN type and a cause value, where the second PDN type is used to indicate an IP address type supported by the peer UE; the cause value is used to indicate the peer end The UE does not support the type of the first IP address.
- the UE when the second message includes the second PDN type, the UE further includes: a processor, configured to: And determining, by the second message, that the UE supports the second PDN type, and allocating a second IP address to the peer UE;
- the transmitter is further configured to send, by the peer UE, a second IP address that is allocated by the processor, where the second IP address is used by the peer UE to establish the peer UE and the UE The connection between the device to the device D2D communication; or,
- the processor is further configured to determine, according to the second message, that the UE does not support the second PDN type;
- the transmitter is further configured to send a feedback message to the peer UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the UE when the second message includes the cause value, and the second PDN type is not included, the UE further The processor is configured to allocate, by the UE, a second IP address to the peer UE when the UE supports other types of IP addresses except the type of the first IP address;
- the transmitter is further configured to send, by the peer UE, a second IP address that is allocated by the processor, where the second IP address is used by the peer UE to establish the peer UE and the UE Connection between D2D communication; or,
- the processor is further configured to determine that the UE does not support other types of IP addresses except the type of the first IP address;
- the transmitter is further configured to send a feedback message to the peer UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the UE when the first message includes a first PDN type, the second message includes the cause value, and the reason The value is further used to indicate that the peer UE supports the first PDN type, the UE further includes: a processor, configured to allocate, by the peer UE, a second IP address of the first PDN type;
- the transmitter is further configured to send the second IP address to the peer UE, where the second IP address is used by the peer UE to establish a device between the peer UE and the UE The connection to the device D2D communication.
- the UE when the first message includes a first PDN type, the second message includes the cause value and does not include the a second PDN type, where the cause value is further used to indicate that the peer UE does not support the first PDN type, the UE further includes: a processor, configured to support, in the UE, the first IP Assigning a second IP address to the peer UE when the type of the address and other types of IP addresses other than the first PDN type;
- the transmitter is further configured to send the second IP address to the peer UE, where the second IP address is used by the peer UE to establish a D2D between the peer UE and the UE Communication connection; or,
- the processor is further configured to determine that the UE does not support other types of IP addresses except the first IP address type and the first PDN type;
- the transmitter is further configured to send a feedback message to the peer UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the first message further includes an identity identifier, the identity identifier Determining, by the peer UE, that the UE is an allocator of an IP address in D2D communication according to the identity identifier, or the identifier is used to indicate that the peer UE is a receiver of an IP address in D2D communication .
- the receiver is further configured to be at the opposite end of the transmitter Before the UE sends the first message, the second PDN type of the peer UE is obtained; the UE further includes:
- the processor is configured to allocate the first IP address to the peer UE according to the second PDN type of the peer UE.
- the receiver is further configured to: Before receiving the first message, the UE receives the third message sent by the peer UE; the UE further includes:
- the processor is configured to allocate the first IP address to the peer UE according to the third message.
- an embodiment of the present invention provides a UE, including:
- a receiver configured to receive a first message sent by the peer UE, where the first message includes a first IP address that is allocated by the peer UE to the UE;
- a transmitter configured to send a second message to the peer UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the UE further includes a processor, where the transmitter is configured to send the second message to the peer UE, including:
- the transmitter is configured to: when the processor determines, according to the first message, that the UE does not support the type of the first IP address, send the second message to the peer UE, where The second message is used to indicate that the first IP address allocation fails, where the second message includes at least one of a second packet data network PDN type and a cause value, where the cause value is used to indicate that the UE does not Supporting the type of the first IP address, where the second PDN type is used to indicate an IP address type supported by the UE; or
- the transmitter is specifically configured to further include a first PDN type in the first message, and the processor determines, according to the first message, that the UE does not support the type of the first IP address, and the When the UE supports the first PDN type, the second message is sent to the peer UE, where the second message is used to indicate that the first IP address allocation fails, and the second message includes a second PDN. At least one of a type and a cause value, the cause value is used to indicate that the UE does not support the type of the first IP address and the UE supports the first PDN type; or
- the transmitter is specifically configured to further include a first PDN type in the first message, and the processor determines, according to the first message, that the UE does not support the type of the first IP address, and the When the UE does not support the first PDN type, the second message is sent to the peer UE, where the second message is used to indicate that the first IP address allocation fails, where the first PDN type is used.
- the second message includes a second PDN class At least one of a type and a cause value, the cause value is used to indicate that the UE does not support the type of the first IP address, and the UE does not support the first PDN type, and the second PDN type is used by Instructing the type of IP address supported by the UE; or
- the transmitter is specifically configured to: when the processor determines that the UE supports the type of the first IP address, send the second message to the peer UE, where the second message is used to indicate The first IP address allocation is successful.
- the second message is used to indicate that the first IP address allocation fails, the receiver And receiving, by the peer UE, a second IP address, where the second IP address is used by the UE to establish a device-to-device D2D communication connection between the UE and the peer UE; or
- the receiver is further configured to receive a feedback message sent by the peer UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the first and second implementation manners of the sixth aspect in a third possible implementation, the first message further includes an identity identifier, and the UE further The method includes: a processor, configured to determine, according to the identity identifier, that the peer UE is an allocator of an IP address in D2D communication or the UE is a receiver of an IP address in D2D communication.
- the transmitter is further configured to receive the opposite end at the receiver Before the first message sent by the UE, the third message is sent to the peer UE, where the third message is used to request the peer UE to allocate the first IP address to the UE.
- the embodiment of the present invention provides a UE, where a first IP address is pre-configured, and a second IP address is pre-configured in the peer UE, where the UE includes:
- a transmitter configured to send a first message to the peer UE, where the first message includes a first IP address and indication information, where the indication information is used to indicate that the UE uses the first IP address, where The indication information is further used to indicate that the peer UE uses the second IP address, and the first message is used to request the peer UE to establish a device to the UE according to the first IP address.
- a receiver configured to receive a second message sent by the peer UE, where the second message is used to indicate that the D2D communication connection is successfully established.
- an embodiment of the present invention provides a UE, where a first IP address is pre-configured in the UE. Address, the second IP address is pre-configured in the peer UE, and the UE includes:
- a transmitter configured to send a first message to the peer UE, where the first message includes indication information, where the indication information is used to indicate that the UE uses the first IP address, and the indication information is further used by Instructing the peer UE to use the second IP address, where the indication information is further used to indicate that the UE is a device-to-device D2D communication connection creator;
- a receiver configured to receive a second message sent by the peer UE, where the second message includes the second IP address, so that the UE establishes with the peer UE according to the second IP address.
- the connection between the device to the device D2D communication.
- the first message further includes a packet data network PDN type, where the PDN type indicates an IP address type used by the peer UE, and the second message is The second IP address is added by the peer UE according to the indication information and the PDN type.
- the first UE explicitly indicates the first UE and the first message by sending a first message including the allocated first IP address to the second UE.
- the responsibilities of the two UEs in the IP address allocation process that is, the first UE is the assigner of the IP address, and the second UE is the receiver of the IP address, so that the second UE returns the second message according to the received first IP address.
- the first IP address is successfully assigned or failed, that is, the second UE does not perform the operation of allocating the IP address when the type of the first IP address allocated by the first UE is not supported, and the method provided in this embodiment is provided.
- the IP address is repeatedly allocated or not allocated, and accordingly Improve the success rate of establishing a D2D communication connection.
- FIG. 1 is a schematic diagram of an IP address allocation method in D2D communication according to Embodiment 1 of the present invention. flow chart;
- FIG. 2 is a flowchart of another method for allocating an IP address in D2D communication according to an embodiment of the present invention
- FIG. 3 is a flowchart of still another method for allocating an IP address in D2D communication according to an embodiment of the present invention
- FIG. 5 is a flowchart of a method for allocating an IP address in D2D communication according to an embodiment of the present invention
- FIG. 6 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 2 of the present invention.
- FIG. 7 is a flowchart of still another method for allocating an IP address in D2D communication according to an embodiment of the present invention.
- FIG. 8 is a flowchart of still another method for allocating an IP address in D2D communication according to an embodiment of the present invention.
- FIG. 9 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 3 of the present invention.
- FIG. 10 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 4 of the present invention.
- FIG. 11 is a schematic diagram of a control plane protocol stack between UEs in D2D communication according to an embodiment of the present disclosure
- FIG. 12 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 5 of the present invention.
- FIG. 13 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 6 of the present invention.
- FIG. 14 is a schematic structural diagram of a UE according to Embodiment 7 of the present invention.
- FIG. 15 is a schematic structural diagram of another UE according to an embodiment of the present disclosure.
- FIG. 16 is a schematic structural diagram of a UE according to Embodiment 8 of the present invention.
- FIG. 17 is a schematic structural diagram of still another UE according to an embodiment of the present disclosure.
- FIG. 18 is a schematic structural diagram of a UE according to Embodiment 9 of the present invention.
- D2D communication is usually used between UEs, that is, the UEs are allowed to directly communicate by multiplexing cell resources.
- the UEs in the following embodiments are all UEs that can perform D2D communication.
- the UE can share resources with cell users under the control of the cell network, thereby improving the utilization of spectrum resources.
- D2D communication also includes the advantages of reducing the burden on the cellular network, reducing the battery power consumption of the mobile terminal, increasing the bit rate, improving the robustness of the network infrastructure failure, and the like, while also supporting a small range of point-to-point data services.
- the D2D communication described in the following embodiments of the present invention is a D2D communication based on an LTE network system, and generally includes D2D communication (LTE-D2D) and Proximity-Based Service (ProSe) in the LTE network. Both LTE-D2D and ProSe can be applied between UEs that communicate directly, while the UE can communicate without a network infrastructure.
- LTE-D2D D2D communication
- ProSe Proximity-Based Service
- the D2D communication includes the group communication and the one-to-one communication.
- the IP address allocation method in the D2D communication provided by the following embodiments of the present invention is applicable to one-to-one communication.
- the UE1 desires to perform D2D with the UE2.
- the UE1 initiates a communication setup request message to the UE2, where the request message carries the layer 2 address of the UE2, that is, the Layer-2 address, and the Layer-2 address is filled in the medium access control of the protocol stack (Medium Access Control, referred to as:
- the MAC) layer is used as the packet header of the MAC layer.
- the Layer-2 address can be obtained by the UE1 through D2D discovery, or pre-configured in the UE1.
- the UE2 After receiving the request message, the UE2 can verify the identity of the UE1. However, the UE that establishes the D2D communication needs to obtain the IP address of the peer UE to implement the data transmission. In the IP address allocation mode provided by the prior art, UE1 or UE2 may serve as the IP address distributor at the same time, or may simultaneously As the recipient of the IP address, this will appear IP The address is repeatedly allocated or unallocated, resulting in connection establishment failure of D2D communication.
- the assigners and receivers performing IP address allocation in the embodiments of the present invention may only involve two UEs, and do not involve network devices, such as an evolved network base station base station (E-UTRAN Node B, referred to as eNB, is a UE that is related to the embodiments of the present invention.
- the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
- FIG. 1 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 1 of the present invention.
- the method provided in this embodiment is applicable to the case where the two UEs that establish D2D communication allocate IP addresses.
- the method provided in this embodiment may be implemented by a UE, and the UE may be implemented in hardware and software, and may be integrated in a memory of the UE, for example, integrated in a processor chip, for execution by a processor.
- the method of this embodiment includes the following steps:
- the first UE sends a first message to the second UE, where the first message includes a first IP address that is allocated by the first UE to the second UE.
- the first UE is an initiator of D2D communication, and when it initiates D2D communication, the second UE may be allocated a first IP address for establishing D2D communication, and therefore, the first UE is known.
- the IP address of the peer UE that is, the IP address of the second UE, that is, the first IP address allocated by the first UE.
- the first UE of the D2D communication is the assigner of the IP address in the D2D communication, and the first IP address allocated by the first UE is carried in the first message sent to the second UE, and correspondingly,
- the second UE is the recipient of the IP address in the D2D communication.
- the first UE and the second UE can confirm the responsibilities in the IP address allocation process of the D2D communication by using the cells carried in the first message. If the first message sent by the UE includes the allocated first IP address, the first UE may be determined to be an allocator of the IP address, so that the second UE may pass the allocated first IP address and the known Layer-2. The address is used to verify the identity of the first UE, thereby implementing connection establishment of D2D communication.
- the first IP address that is allocated by the first UE to the second UE in this embodiment may be carried in the communication establishment message that initiates the D2D communication, or may be after the first UE sends the communication establishment request message.
- the sent message for example, is carried in an IP address allocation message, that is, the first message in this embodiment may be a communication setup request message or an IP address assignment message.
- the first UE receives a second message sent by the second UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the second UE when receiving the first message of the request message sent by the first UE, acquires the first IP address allocated by the first UE, and the second UE may know the first IP address. Is the IP address type supported by the second UE, but the first UE is agnostic to the IP address type supported by the second UE when the first IP address is allocated, that is, the type of the first IP address is the first UE according to the type
- the second UE returns a second message indicating that the first IP address is successfully allocated, and the second UE does not support the type of the first IP address when the second UE supports the type of the first IP address.
- the returned second message indicates that the first IP address allocation failed.
- the type of the first IP address is not supported by the second UE, for example, the type of the first IP address allocated by the first UE is an IPv6 type, and the second UE does not support the IP address of the IPv6 type, the second UE cannot pass the An IP address establishes a connection for D2D communication with the first UE.
- the second UE in the embodiment does not support the first IP address, as the receiver of the IP address in the D2D communication, the second UE does not perform the task of assigning the IP address, but specifically returns the first IP address allocation failure to the first UE. Instructing the message to indicate that the first UE performs the subsequent IP address allocation work; and at this time, the second message includes at least one of a second packet data network (Packet Data Network, referred to as a PDN type and a cause value, where The second PDN type is used to indicate the type of the IP address supported by the second UE, and the reason value is used to indicate that the second UE does not support the type of the first IP address. Specifically, the second UE carries the cell in the second message. The first UE is instructed to allocate the first IP address, and the second PDN type and the cause value may indicate that the first IP address allocation fails.
- a second packet data network Packet Data Network
- the first UE and the second UE clarify their responsibilities in the D2D communication establishment process.
- the first UE acts as the initiator of the D2D communication, and actively performs the IP allocation.
- the operation of the address on the other hand, even if the second UE is known not to support the first IP address assigned by the first UE, the operation of allocating the IP address is not performed, but the second PDN is fed back to the first UE.
- the two UEs performing D2D communication do not exist as the assigner of the IP address or the IP address receiver at the same time, thereby avoiding the repeated allocation or unallocation of the IP address, thereby correspondingly improving the establishment of the D2D communication.
- the success rate of the connection is not limited to the assigner of the IP address or the IP address receiver at the same time.
- the first UE passes to the second The UE sends a first message including the first IP address that has been allocated, and explicitly indicates the responsibilities of the first UE and the second UE in the IP address allocation process, that is, the first UE is an IP address distributor, and the second UE is The receiver of the IP address, so that the second UE specifically indicates that the first IP address is successfully assigned or failed according to the second message returned by the received first IP address, that is, the second UE does not support the first UE for allocating it.
- the type of the first IP address is not performed, the operation of allocating the IP address is not performed.
- the method provided in this embodiment solves the problem that the D2D communication in the prior art is allocated in the IP address, because the sender UE and the opposite UE may At the same time, as the assigner and receiver of the IP address, the IP address is repeatedly allocated or unallocated, and the success rate of establishing the D2D communication connection is correspondingly improved.
- the second message indicates that the first IP address allocation fails
- the at least one of the second PDN type and the cause value is specifically carried, and the second PDN type specifies the IP address type that the second UE can support.
- the second message includes only the cause value.
- the IP address type supported by the second UE is not explicitly indicated, the IP address type currently includes the IPv4 type and the IPv6 type, which implicitly indicates the IP address that the second UE can support. Types of. And considering that the UE can be compatible with different IP address types, even if the second UE does not support the type of the first IP address that has been allocated, the first UE may have the IP address type that can be supported by the second UE. ability.
- the first UE supports the IPv6 address type
- the second UE supports the IPv4 address type
- the first IP address allocated by the first UE that is, the IPv6 type address cannot be supported by the second UE
- the second UE can also send an IP for indicating the second UE to support by the assigner of the IP address, that is, the first UE, in the method provided by this embodiment.
- the manner of the cell of the address type indicates that the first UE reassigns the second IP address, that is, the second PDN type, so that the first UE can perform subsequent IP address allocation work according to the cell in the second message.
- FIG. 2 is a flowchart of another method for allocating an IP address in D2D communication according to an embodiment of the present invention.
- FIG. 2 is a further description of the embodiment shown in FIG. 1.
- the second message in the S120 of the embodiment specifically indicates that the first IP address allocation fails, and the second message specifically includes the second PDN type.
- the method of this embodiment further includes:
- the first UE determines, according to the second message, that the first UE supports the second PDN type, allocate a second IP address to the second UE, and send a second IP address to the second UE, where the second IP address is used for the second
- the UE establishes a connection of D2D communication between the second UE and the first UE.
- the second UE since the second UE does not support the type of the first IP address, it is directed to the first UE.
- the sending the second message specifically carries the second PDN type, and the first UE can learn the type of the IP address supported by the second UE according to the second PDN type, and can also know whether it is compatible with the IP address of the second PDN type.
- the first UE when the first UE is compatible with the IP address of the second PDN, the first UE, as the assigner of the IP address, may re-assign the second IP address to the first UE, where the type of the second IP address is The type of IP address indicated by the second PDN type.
- the method further includes:
- the first UE determines, according to the second message, that the first UE does not support the second PDN type, sends a feedback message to the second UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the first UE when the first UE acquires the second PDN type returned by the second UE, and determines that it is not compatible with the IP address of the second PDN type, the first UE may know that the assigned IP address cannot be The second UE is supported, that is, the second UE cannot establish a connection of the D2D communication by using the IP address allocated by the first UE, and at this time, a feedback message is sent to the second UE to indicate that the D2D communication connection establishment fails.
- S130 and S140 are two alternative execution manners in the embodiment shown in FIG. 2, and are executed for selecting one.
- FIG. 3 is a flowchart of still another method for allocating an IP address in D2D communication according to an embodiment of the present invention.
- FIG. 3 is a further description of the embodiment shown in FIG. 1.
- the second message in S120 of the embodiment specifically indicates that the first IP address allocation fails, and the second message specifically includes a cause value, and does not include In the second PDN type, the method in this embodiment further includes:
- the first UE supports other types of IP addresses except the type of the first IP address, allocate a second IP address to the second UE, and send a second IP address to the second UE, where the second IP address is used.
- the second UE establishes a connection of D2D communication between the second UE and the first UE.
- the second message sent by the first UE carries a reason value, and the IP address type commonly used in establishing the communication connection includes the IPv4 type.
- the IPv6 type if the first IP address allocated by the first UE is the IPv6 type, and the second UE does not support the IPv6 type, the second message carries the cause value for feedback, indicating that the second UE does not support the IPv6 type address, that is, The second UE supports the IPv4 type address. Meanwhile, if the first UE also supports the IPv4 type address, the first UE, as the IP address distributor, can re-assign the second IP address to the first UE.
- the type of the address is IPv4 type.
- the first UE can determine the second PDN type supported by the second UE by using the type of the first IP address that the cause value in the second message has been allocated, so that the second UE is compatible with the second PDN type.
- the UE allocates a second IP address.
- the method further includes:
- the first UE does not support other types of IP addresses except the type of the first IP address, send a feedback message to the second UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the second PDN type supported by the second UE may be determined according to the cause value and the type of the first IP address that has been allocated.
- the first UE is incompatible with the second PDN type, that is, the first UE knows that the IP address allocated by the first UE cannot be supported by the second UE, the UE sends a feedback message to the second UE to indicate that the D2D communication connection establishment fails.
- S130 and S140 are two alternative execution manners in the embodiment shown in FIG. 3, and are executed for selecting one of them.
- the first message sent by the first UE in the embodiment shown in FIG. 1 may further include a first PDN type, that is, when the first UE sends the first message, the second UE is indicated to the IP supported by the first UE.
- the address type when the second message specifically indicates that the first IP address allocation fails, the processing manner of the first UE is different from the embodiment shown in FIG. 2 and FIG. 3 above.
- FIG. 4 is a flowchart of another method for allocating an IP address in D2D communication according to an embodiment of the present invention. 4 is a further description based on the embodiment shown in FIG. 1.
- the first message in S110 of this embodiment further includes a first PDN type
- the second message in S120 specifically indicates that the first IP address allocation fails
- the second message specifically includes a cause value, and the cause value is further used to indicate that the second UE supports the first PDN type
- the method in this embodiment further includes:
- the first UE allocates a second IP address of the first PDN type to the second UE, and sends a second IP address to the second UE, where the second IP address is used by the second UE to establish the second UE and the first UE.
- the connection of the device to the device D2D communication.
- the type of the first IP address allocated by the first UE may not be the IP address of the first PDN type, for example, the first PDN type is the IPv6 type, but the first UE is assigned the first IP address of the IPv4 type.
- the second PDN type of the second UE is of the IPv6 type, and the second UE is not compatible with the IPv4 type.
- the returned cause value indicates that the second UE does not support the type of the first IP address, because the second UE can receive from the second UE.
- the first message is informed that the first UE supports the first
- the PDN type is the same as the second PDN type supported by the second UE, that is, the second UE determines that it can support the first PDN type, thereby indicating the foregoing judgment result by the cause value, and therefore, the cause value is also used to indicate the
- the first UE is the assigner of the IP address, and the first UE may also allocate the second IP address of the first PDN type to the second UE.
- FIG. 5 is a flowchart of a method for allocating an IP address in D2D communication according to an embodiment of the present invention.
- FIG. 5 is a further description of the embodiment shown in FIG. 1.
- the first message in S110 of this embodiment further includes a first PDN type
- the second message in S120 specifically indicates that the first IP address allocation fails
- the second message specifically includes a cause value and does not include a second PDN type, where the cause value is further used to indicate that the second UE does not support the first PDN type
- the method in this embodiment further includes:
- the first UE supports other types of IP addresses except the type of the first IP address and the first PDN type, assign a second IP address to the second UE, and send a second IP address to the second UE.
- the second IP address is used by the second UE to establish a connection for D2D communication between the second UE and the first UE.
- the first PDN type supported by the first UE and the type of the first IP address to be allocated are both IPv6 types, and the second UE only supports the IPv4 type, and the second message sent by the second UE indicates the first
- the IP address allocation fails, and the second UE can directly determine that it does not support the first PDN type.
- the UE may allocate another type of IP address other than the first PDN type to the second UE, and the type of the second IP address is an IPv4 type.
- the method further includes:
- the first UE does not support other types of IP addresses except the first IP address type and the first PDN type, send a feedback message to the second UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the case of S130 in the embodiment shown in FIG. 5 is taken as an example.
- the type of the first PDN supported by the first UE and the type of the first IP address allocated are all IPv6 types, and the second UE only Supporting the IPv4 type, the second message sent by the second UE indicates that the first IP address allocation fails, and the second UE can directly determine that the first PDN type is not supported by the UE.
- the first UE cannot be compatible with the IPv4 type.
- the IP address that is, when the first UE knows that the IP address allocated by the first UE cannot be supported by the second UE, sending a feedback message to the second UE to indicate that the D2D communication connection is established. Failure.
- S130 and S140 are two alternative execution manners in the embodiment shown in FIG. 5, and are executed for selecting one.
- the first message sent by the first UE may further include an identity identifier, where the identity identifier may be, for example, a cell IP role (role) carried in the first message, and the value thereof.
- the server is set as the server, the first UE is the assigner of the IP address, and the second UE determines that the first UE is the assigner of the IP address in the D2D communication when reading the IP role in the first message. Or determining, according to the IP role, that the second UE is a recipient of an IP address in D2D communication.
- the two parties that establish the D2D communication connection are explicitly designated by adding the identifiers of the neighbors, and the respective responsibilities in the IP address allocation process further ensure the enforceability of the IP address allocation.
- the S110 may further include: the first UE acquiring the second PDN type of the second UE; the acquiring of the second PDN type may be the first UE and the second UE Obtained in the process of short-distance discovery, so that the first UE can learn the IP address type supported by the second UE according to the acquired second PDN type, and is the second when it can be compatible with the second PDN type.
- the UE allocates a first IP address, and the type of the first IP address is a second PDN type.
- the first UE in the foregoing embodiment of the present invention acts as the initiator of the D2D communication and assumes the task of assigning an IP address; in addition, the initiator of the D2D communication can also serve as the receiver of the IP address in the D2D communication.
- the S110 may further include: the first UE receives the third message sent by the second UE; and the first UE allocates the first IP to the second UE according to the third message. address.
- the second UE is specifically the initiator of the D2D communication, and the initiator of the D2D communication actually acts as the receiver of the IP address in the D2D communication.
- FIG. 6 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 2 of the present invention.
- the method provided in this embodiment is applicable to the case where the two UEs that establish D2D communication allocate IP addresses.
- the method provided in this embodiment may be implemented by a UE, and the UE may be implemented in hardware and software, and may be integrated in a memory of the UE, for example, integrated in a processor chip, for execution by a processor.
- the method of this embodiment includes the following steps:
- the second UE receives the first message sent by the first UE, where the first message includes a first IP address that is allocated by the first UE to the second UE.
- the second UE in this embodiment is also the receiver of the IP address in the D2D communication, and when the second UE receives the first message sent by the first UE, Receiving the first IP address assigned by the first UE, so that the initiator of the D2D communication is explicitly known, that is, the first UE is specifically an allocator of the IP address in the D2D communication.
- the first UE and the second UE can confirm the responsibilities in the IP address allocation process of the D2D communication by using the allocated IP address carried in the first message by using the preset protocol.
- the first message sent by the first UE includes the allocated first IP address, and then the first UE may be determined to be an allocator of the IP address, so that the second UE may pass the allocated first IP address and the known
- the Layer-2 address verifies the identity of the first UE, thereby implementing connection establishment of D2D communication.
- the second UE in this embodiment receives the first IP address that is allocated by the first UE, and may be carried in the communication setup message that initiates the D2D communication, or may be after the first UE sends the communication setup message.
- the sent, for example, carried in the IP address allocation message, that is, the first message in this embodiment may be a communication setup message or an IP address assignment message.
- the second UE sends a second message to the first UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the second UE acquires the first IP address allocated by the first UE, and the second UE knows whether the first IP address is an IP address type supported by itself, but the first UE is When the first IP address is allocated, the type of the IP address supported by the second UE is agnostic, that is, the type of the first IP address is randomly allocated by the first UE according to its own capability, and therefore, the second UE is in the support state.
- the second message returned indicates that the first IP address is successfully allocated.
- the second UE does not support the type of the first IP address
- the second message returned indicates that the first IP address allocation fails.
- the type of the first IP address is not supported by the second UE, for example, the type of the first IP address allocated by the first UE is an IPv6 type, and the second UE does not support the IP address of the IPv6 type, the second UE cannot pass the An IP address establishes a connection for D2D communication with the first UE.
- the first message received by the second UE carries the first IP address that has been allocated, that is, the two UEs that establish D2D communication clarify that the first UE is the assigner of the IP address in the D2D communication. Therefore, even if the second UE does not support the allocated first IP address, the operation of assigning the IP address is not performed, but the allocation by the first IP address returned to the first UE fails.
- the first UE and the second UE clarify their own duties in the D2D communication establishment process.
- the first UE acts as the initiator of the D2D communication, and actively performs an operation of allocating an IP address;
- the second UE is known not to support the first IP address allocated by the first UE, the operation of allocating the IP address is not performed, but the second PDN type is fed back to the first UE to indicate to the first UE.
- the type of IP address supported by the second UE is
- the two UEs performing D2D communication do not exist as the assigner of the IP address or the IP address receiver at the same time, thereby avoiding the case of repeatedly assigning an IP address or not assigning an IP address, thereby correspondingly improving the establishment of the D2D.
- the reliability of the communication connection is not limited to the assigner of the IP address or the IP address receiver at the same time.
- the second UE sends the first message including the first IP address that is allocated by the first UE, and explicitly knows that the first UE and the second UE are in the IP address.
- the responsibilities in the allocation process that is, the first UE is the assigner of the IP address, and the second UE is the receiver of the IP address, so that the second message is returned by the second UE according to the received first IP address, the second message
- the operation of assigning an IP address is not performed when the second UE does not support the type of the first IP address allocated by the first UE. The operation provided by this embodiment is not provided.
- the method solves the problem that the IP address is repeatedly allocated or unallocated in the process of allocating the IP address in the D2D communication in the prior art, because the sender UE and the peer UE may simultaneously act as the assigner and the receiver of the IP address, correspondingly The success rate of establishing a D2D communication connection is improved.
- the second UE determines, according to the type of the first IP address that is received, and the type of the first PDN that may be carried in the first message, to determine the indication information in the returned second message.
- FIG. 7 is a flowchart of still another method for allocating an IP address in D2D communication according to an embodiment of the present invention, and FIG. 7 is a further description based on the embodiment shown in FIG. 6.
- this embodiment provides The method further includes: S230. If the second UE supports the type of the first IP address that is allocated, the second message sent to the first UE is used to indicate that the first IP address is successfully allocated.
- the method further includes: S240, if the second UE determines, according to the first message, that the second UE does not support the type of the first IP address, sends the message to the first UE. a second message, where the second message is used to indicate that the first IP address allocation fails, where the second message includes at least one of a second PDN type and a cause value, where the cause value is used to indicate that the second UE does not support the first IP address.
- the type of the address, the second PDN type is used to indicate the type of IP address supported by the second UE.
- the second UE can determine whether the type of the first IP address is supported according to the type of the first IP address and the capability of the second UE.
- the first UE can be judged according to its own compatible capability. Is it possible to continue to allocate the second IP address to the second UE, in particular, if the first UE can support the second PDN type, the second UE can be assigned a second IP address of the second PDN type, if the first UE cannot Supporting the second PDN type, a feedback message is sent indicating that the D2D connection establishment failed.
- S230 and S240 are two alternative execution manners in the embodiment shown in FIG. 7, and are executed for selecting one.
- FIG. 8 is a flowchart of still another method for allocating an IP address in D2D communication according to an embodiment of the present invention, and FIG. 8 is a further description based on the embodiment shown in FIG. 6, in this embodiment.
- the first message further includes a first PDN type
- the method provided in this embodiment further includes: S230, the second UE determines, according to the first message, that the second UE does not support the type of the first IP address, and the second UE supports the first
- the PDN type sends a second message to the first UE, where the second message is used to indicate that the first IP address allocation fails, and the second message includes at least one of the second PDN type and the cause value, where the cause value is used to indicate
- the second UE does not support the type of the first IP address and the second UE supports the first PDN type.
- the first UE may be configured to allocate the second UE even if the second UE does not support the type of the first IP address that is allocated, considering that the first UE can be compatible with different IP address types.
- the capability of the IP address type that can be supported by the UE for example, the first UE supports the IPv6 type and is compatible with the IPv4 type, the second UE supports the IPv6 type and is not compatible with the IPv4 type, and the first IP address assigned by the first UE is the IPv4 type, and cannot be
- the second UE supports, but the second UE learns that the first PDN type can be supported by the first message, and the second message is sent by the first UE to indicate that the first UE allocates the second IP address of the same type as the first PDN.
- the method provided in this embodiment further includes: S240, the second UE receives the first UE to send a second IP address, where the second IP address is used by the second UE to establish a connection of the D2D communication between the second UE and the first UE. .
- the method further includes: S250, the second UE determines, according to the first message, that the second UE does not support the type of the first IP address, and the second UE does not support the first PDN type.
- the first PDN type is used to indicate an IP address type supported by the first UE
- the second message includes at least one of a second PDN type and a cause value, where the cause value is used to indicate that the second UE does not support the first
- the type of the IP address and the second UE does not support the first PDN type, and the second PDN type is used to indicate the IP address type supported by the second UE.
- the second UE is further determined whether the first PDN type is supported, for example, the first IP address is an IPv6 type, after determining that the type of the first IP address is not supported.
- a PDN type is also an IPv6 type, and the second UE can only support an IPv4 type IP address. Therefore, when the second message is sent, the second UE may be indicated in the cause value that the second UE does not support the type of the first IP address and does not support the a PDN type; at this time, the first UE may determine, according to its own compatibility, whether to continue to allocate the second IP address to the second UE.
- the second UE allocates a second IP address of the second PDN type, and if the first UE cannot be compatible with the second PDN type, sends a feedback message indicating that the D2D connection establishment fails.
- S230-S240 and S250 are two alternative execution manners in the embodiment shown in FIG. 8, and are selected for execution.
- the first message sent by the first UE may further include an identity identifier, where the identity identifier may be, for example, a cell IP role carried in the first message, and the value may be set.
- the method provided by the embodiment further includes: determining, by the second UE, the first UE as an allocator of the IP address in the D2D communication or the second UE as the receiver of the IP address in the D2D communication according to the identity identifier.
- the two parties that establish the D2D communication connection are explicitly designated by adding the identifiers of the neighbors, and the respective responsibilities in the IP address allocation process further ensure the enforceability of the IP address allocation.
- the second UE in the foregoing embodiment of the present invention serves as the receiver of the IP address in the D2D communication
- the first UE serves as the initiator of the D2D communication and undertakes the task of assigning the IP address
- the D2D communication The initiator may also be the receiver of the IP address in the D2D communication.
- the S210 may further include: the second UE sends a third message to the first UE, where the third message is sent. The message is used to request the first UE to allocate the first IP address to the second UE.
- the second UE is specifically the initiator of the D2D communication, and the initiator of the D2D communication actually acts as the receiver of the IP address in the D2D communication.
- FIG. 9 is a schematic diagram of an IP address allocation method in D2D communication according to Embodiment 3 of the present invention; flow chart.
- the method provided in this embodiment is applicable to a situation in which two UEs that establish D2D communication acquire an IP address.
- the method provided in this embodiment may be implemented by a UE, and the UE may be implemented in hardware and software, and may be integrated in a memory of the UE, for example, integrated in a processor chip, for execution by a processor.
- the method of this embodiment includes the following steps:
- the first UE sends a first message to the second UE, where the first message includes a first IP address and indication information, where the indication information is used to indicate that the first UE uses the pre-configured first IP address, and the indication information is further used.
- the first message is used to indicate that the second UE uses a pre-configured second IP address, and the first message is used to request the second UE to establish a connection with the D2D communication between the first UE according to the first IP address.
- the first UE is pre-configured with the first IP address
- the second UE is pre-configured with the second IP address.
- the first UE and the second UE perform the group before performing the D2D communication. Communication, each of which has a configured IP address; in this case, if the first UE and the second UE are to perform D2D communication, the IP address can be directly allocated, and the configured IP address in the group communication can be directly used.
- the first UE as the initiator of the D2D communication, initiates the D2D communication, and carries the indication information in addition to the first IP address configured by the first message, and the indication information is, for example, set to Pre-configured.
- Pre-configuration indicating that the first UE uses the first IP address, the second UE uses the second IP address, and the second UE may establish, between the second UE and the first UE, according to the indication information and the first IP address. Connection for D2D communication.
- the first UE indicates, by using the first message, that the second UE establishes a connection of the D2D communication by using the first IP address carried in the first message, where the first IP address may be carried in the initiated D2D.
- the communication establishment message of the communication may be sent after the first UE sends the communication establishment message, for example, it is carried in the IP address sending message, that is, the first message in this embodiment may be a communication establishment message, or an IP address.
- the address sends a message.
- the first UE receives a second message sent by the second UE, where the second message is used to indicate that the D2D communication connection is successfully established.
- the second UE when receiving the first message sent by the first UE, acquires the first IP address in the first message, because the first UE and the second UE have performed group communication before, That is, the second UE may support the first IP address, and the connection with the D2D communication of the first UE may be established through the first IP address, and therefore, the second message for indicating that the connection establishment is successful is returned to the first UE.
- the first UE and the second UE clarify their responsibilities in the D2D communication establishment process.
- the first UE as the initiator of the D2D communication, carries in the first message sent by the first UE.
- the first IP address and the indication information are used to indicate that the first UE and the second UE respectively use the configured IP address; on the other hand, the first message sent by the first UE carries the first IP address, and further indicates
- the second UE is the creator of the D2D communication connection. Therefore, the two UEs performing D2D communication acquire the IP address configured by the peer end by the designated UE, and establish D2D communication by using the IP address acquired from the peer UE and the IP address configured by itself. Obviously, there is no case of being both an IP address assigner or a IP address receiver at the same time, thereby avoiding repeated allocation or unallocation of IP addresses, and correspondingly increasing the success rate of establishing a D2D communication connection.
- the first UE sends a first message including the first IP address and the indication information to the second UE, and indicates, by using the indication information, that the first UE uses the pre-configured An IP address, the second UE uses the pre-configured second IP address, so that the second UE establishes a connection with the D2D communication between the first UE and the first IP address that is carried by the second UE, which is provided by this embodiment.
- the IP address used by the first UE and the second UE in the D2D communication and the responsibility for establishing the D2D communication are explicitly indicated in the first message, and the allocation of the D2D communication in the IP address in the prior art is solved.
- the sender UE and the peer UE may simultaneously act as the assigner and receiver of the IP address, resulting in repeated allocation or unallocation of the IP address, the success rate of establishing the D2D communication connection is correspondingly improved.
- FIG. 10 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 4 of the present invention.
- the method provided in this embodiment is applicable to a situation in which two UEs that establish D2D communication acquire an IP address.
- the method provided in this embodiment may be implemented by a UE, and the UE may be implemented in hardware and software, and may be integrated in a memory of the UE, for example, integrated in a processor chip, for execution by a processor.
- the method of this embodiment includes the following steps:
- the first UE sends a first message to the second UE, where the first message includes indication information, where the indication information is used to indicate that the first UE uses the pre-configured first IP address, and the indication information is further used to indicate the second UE.
- the pre-configured second IP address is used, the indication information is further used to indicate that the first UE is a device-to-device D2D communication connection creator.
- the first UE is pre-configured with the first IP address
- the second UE is pre-configured with the second IP address, for example, the first UE and the first
- the two UEs perform group communication before performing D2D communication, and each of them has a configured IP address.
- the UE may not allocate an IP address directly.
- the IP address that has been configured in the group communication may be used.
- the first UE is the initiator of the D2D communication, and when the D2D communication is initiated, for example, by setting the setting indication information to Pre-configured, the first indication is performed.
- the UE uses the first IP address to indicate that the second UE uses the second IP address, and also indicates that the first UE is the creator of the D2D communication connection by using the indication information, that is, the first UE needs to acquire the IP of the opposite UE in the D2D communication.
- the address indicates that the second UE sends the second UE pre-configured second IP address to the first UE.
- the first UE receives the second message sent by the second UE, where the second message includes a second IP address, so that the first UE establishes a connection with the D2D communication between the second UE according to the second IP address.
- the second UE when receiving the first message sent by the first UE, the second UE may know that the connection of the D2D communication is established by the first UE by using the content of the indication information, and therefore, the second UE pre-configures itself.
- the second IP address is carried in the second message and sent to the first UE, so that the first UE establishes the second IP address and the first IP address pre-configured by the first IP address after acquiring the second IP address.
- the direct D2D communication connection of the UE when receiving the first message sent by the first UE, the second UE may know that the connection of the D2D communication is established by the first UE by using the content of the indication information, and therefore, the second UE pre-configures itself.
- the second IP address is carried in the second message and sent to the first UE, so that the first UE establishes the second IP address and the first IP address pre-configured by the first IP address after acquiring the second IP address.
- the second UE in this embodiment sends a pre-configured second IP address to the first UE by using the received first message including the indication information, and is used to establish a connection of the D2D communication.
- the information may be carried in the communication setup message that initiates the D2D communication, or may be sent after the first UE sends the communication setup message, for example, it is carried in the IP address sending message, that is, the first message in this embodiment may be The communication establishes a message or sends a message for an IP address.
- the first message may further include a PDN type, specifically, a PDN type supported by the first UE, where the PDN type indicates an IP address type used by the second UE;
- the second IP address is added by the second UE according to the indication information and the PDN type.
- a plurality of IP addresses may be pre-configured in the first UE and the second UE, and may be different types of IP addresses. Therefore, when the first UE initiates a D2D communication request to the second UE, The first message carries a PDN type that is compatible with the first UE, and when the second UE returns a second message, the second IP address that is the same as the PDN is sent to the first UE.
- the first UE and the second UE clarify their responsibilities in the D2D communication establishment process.
- the first UE as the initiator of the D2D communication, carries the first IP address in the first message sent by the first UE.
- indication information to indicate that the first UE and the second UE respectively use the respective configured The set IP address; on the other hand, the indication information in the first message further indicates that the first UE is the creator of the D2D communication connection. Therefore, the two UEs performing D2D communication acquire the IP address configured by the peer end by the designated UE, and establish D2D communication by using the IP address acquired from the peer UE and the IP address configured by itself.
- there is no case of being both an IP address assigner or a IP address receiver at the same time thereby avoiding repeated allocation or unallocation of IP addresses, and correspondingly increasing the success rate of establishing a D2D communication connection.
- the second UE sends a first message including the indication information by receiving the first UE, and indicates, by using the indication information, that the first UE uses the pre-configured first IP address,
- the second UE uses the pre-configured second IP address, and indicates that the first UE is the creator of the D2D communication connection by using the indication information, so that the second UE sends its pre-configured second IP address to the first UE, so that the first UE Establishing a connection of the D2D communication with the second UE according to the second IP address.
- the IP used by the first UE and the second UE in the D2D communication is explicitly indicated in the first message.
- the UEs that are directly used for D2D communication do not need to perform message forwarding through the network device, and therefore, even in an application scenario without network coverage, for example, due to an earthquake.
- the infrastructure is damaged due to a tsunami or the like, the IP address of the UE to be D2D communication cannot be allocated through the network device.
- the method provided by the embodiments of the present invention can ensure the smooth distribution of the IP address in the D2D communication.
- the two-layer UE that establishes the D2D communication connection that is, the protocol stack for communication between the first UE and the second UE is divided into a control plane and a user plane, and the protocol stack is similar to the transmission control protocol/Internet.
- the protocol stack of the Transmission Control Protocol/Internet Protocol (TCP/IP) the role of the control plane is the signaling interaction such as request, authentication, and communication parameters when the connection is established.
- the role of the user plane is actual. Send and receive data.
- the first message, the second message, the third message, and the feedback message in the foregoing embodiments of the present invention are all sent by the control plane protocol stack between the two UEs, as shown in FIG. 11 , which is provided by the embodiment of the present invention.
- a schematic diagram of a control plane protocol stack between UEs in a D2D communication where a control plane protocol stack between the first UE and the second UE includes: Radio Resource Control (referred to as: RRC) layer protocol, radio link control (Radio Link Control, RLC) layer protocol, MAC layer protocol, and physical layer (Physical Layer, PHY for short) layer protocol, where PC5-U (control plane protocol)
- RRC Radio Resource Control
- RLC Radio Link Control
- MAC layer protocol Physical Layer
- PC5-U control plane protocol
- the control model indicates the control plane interface between the two UEs; the two sides of the D2D communication need to establish the user layer data transmission, and the user layer connection must be established, that is, the connection is established through the IP address, and the IP address is obtained in the above embodiment of the present invention. That is to achieve the transmission of data in D2D communication.
- FIG. 12 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 5 of the present invention.
- the method provided in this embodiment is implemented by the first UE and the second UE, which are used to establish a D2D communication connection.
- the method in this embodiment includes the following steps:
- the first UE sends a first message to the second UE, where the first message includes a first IP address that is allocated by the first UE to the second UE.
- the first IP address that is allocated by the first UE to the second UE in this embodiment may be carried in the communication establishment message that initiates the D2D communication, or may be after the first UE sends the communication establishment request message.
- the sent message for example, is carried in an IP address allocation message, that is, the first message in this embodiment may be a communication setup request message or an IP address assignment message.
- the second UE sends a second message to the first UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the second UE when receiving the first message of the request message sent by the first UE, acquires the first IP address allocated by the first UE, and the second UE may know the first IP address. Is the IP address type supported by the second UE, but the first UE is agnostic to the IP address type supported by the second UE when the first IP address is allocated, that is, the type of the first IP address is the first UE according to the type
- the second UE returns a second message indicating that the first IP address is successfully allocated, and the second UE does not support the type of the first IP address when the second UE supports the type of the first IP address.
- the returned second message indicates that the first IP address allocation failed.
- the type of the first IP address is not supported by the second UE, for example, the type of the first IP address allocated by the first UE is an IPv6 type, and the second UE does not support the IP address of the IPv6 type, the second UE cannot pass the An IP address establishes a connection for D2D communication with the first UE.
- the method provided in this embodiment further includes: S503, the second UE determines, according to the first message, that the second UE supports the type of the allocated first IP address, and then the second UE in the S502 The second message sent by the UE is used to indicate that the first IP address is successfully allocated.
- the method further includes: S504, the second UE determines, according to the first message, that the second UE does not support the type of the first IP address, and the second message in S502 is specifically used to indicate the first IP address. If the allocation fails, the second message includes at least one of a second PDN type and a cause value.
- the second PDN type specifies the type of the IP address that the second UE can support. If the second message includes only the cause value, Although the IP address type supported by the second UE is not explicitly indicated, since the IP address type currently includes an IPv4 type and an IPv6 type, the IP address type that the second UE can support is implicitly indicated. And considering that the UE can be compatible with different IP address types, even if the second UE does not support the type of the first IP address that has been allocated, the first UE may have the IP address type that can be supported by the second UE. ability.
- the manner in which the first UE receives the second message indicating that the first IP address allocation fails may include the following:
- the second message specifically includes the second PDN type.
- the method provided in this embodiment further includes:
- the first UE determines, according to the second message, that the first UE supports the second PDN type, and allocates the second IP address to the second UE.
- the first UE sends a second IP address to the second UE.
- the second UE establishes a connection of D2D communication between the second UE and the first UE by using the second IP.
- the method further includes:
- the first UE determines, according to the second message, that the first UE does not support the second PDN type.
- the first UE sends a feedback message to the second UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the method includes the cause value and the second PDN type is not included in the second message, and the method provided in this embodiment further includes:
- the first UE determines that the first UE supports other types of IP addresses except the type of the first IP address, and allocates a second IP address to the second UE.
- the first UE sends a second IP address to the second UE.
- the second UE establishes a connection of D2D communication between the second UE and the first UE by using the second IP.
- the method further includes:
- the first UE determines that the first UE does not support other types of IP addresses except the type of the first IP address.
- the first UE sends a feedback message to the second UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the first message sent in S501 may further include a first PDN type, that is, when the first UE sends the first message, the second UE is indicated to be supported by the first UE.
- the IP address type when the second message specifically indicates that the first IP address allocation fails, the processing manner of the first UE is different from the foregoing first case and the second case.
- the manner provided in this embodiment includes the following:
- the second message specifically includes a cause value, and the cause value is further used to indicate that the second UE supports the first PDN type, and the embodiment provides The methods also include:
- the first UE allocates a second IP address of the first PDN type to the second UE.
- the first UE sends a second IP address to the second UE.
- the second UE establishes a connection of D2D communication between the second UE and the first UE by using the second IP.
- the second message specifically includes a cause value and does not include a second PDN type, where the cause value is further used to indicate that the second UE does not support the first PDN type, and the method provided in this embodiment further includes:
- the first UE determines that the first UE supports the type of the first IP address and other types of IP addresses except the first PDN type, and then allocates the second IP address to the second UE.
- the first UE sends a second IP address to the second UE.
- the second IP address is used by the second UE to establish a connection of the D2D communication between the second UE and the first UE.
- the method further includes:
- the first UE determines that the first UE does not support other types of IP addresses except the first IP address type and the first PDN type.
- the first UE sends a feedback message to the second UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the first message sent by the first UE in the S501 may further include an identity identifier, where the identity identifier may be, for example, a cell IP role carried in the first message, and the value thereof is
- the server is set to be the server
- the first UE is the IP address of the D2D communication
- the second UE is determined to be the IP address of the D2D communication. Determining, according to the IP role, that the second UE is a recipient of an IP address in D2D communication.
- the method may further include: S523, the first UE acquires a second PDN type of the second UE; the acquiring of the second PDN type may be the first UE and the first The second UE is obtained in the process of the short-distance discovery, so that the first UE can learn the IP address type supported by the second UE according to the acquired second PDN type, and when it is compatible with the second PDN type, The second UE allocates a first IP address, and the type of the first IP address is a second PDN type.
- the first UE in the foregoing embodiment of the present invention acts as the initiator of the D2D communication and assumes the task of assigning an IP address; in addition, the initiator of the D2D communication can also serve as the receiver of the IP address in the D2D communication.
- the method may further include: S524, a third message sent by the second UE to the first UE; S525, the first UE is the second UE according to the third message. Assign the first IP address.
- the second UE is specifically the initiator of the D2D communication, and the initiator of the D2D communication actually acts as the receiver of the IP address in the D2D communication.
- FIG. 13 is a flowchart of a method for allocating an IP address in D2D communication according to Embodiment 6 of the present invention.
- the method provided in this embodiment is performed by a first UE and a second UE that establish a D2D communication connection.
- the method in this embodiment includes the following steps:
- the first UE sends a first message to the second UE, where the first message includes indication information, where the indication information is used to indicate that the first UE uses a pre-configured first IP address, where the indication information is further used to indicate the second UE. Use a pre-configured second IP address.
- the first message in S601 of this embodiment further includes a first IP address
- the method provided in this embodiment includes: S602, the second UE establishes D2D communication with the first UE according to the first IP address.
- S603 the second UE sends a second message to the first UE, where the second message is used to indicate that the D2D communication connection is successfully established.
- the second UE in this embodiment receives the first message.
- the second UE can establish a connection with the D2D communication of the first UE as the creator of the D2D communication.
- the first message in the S601 of the embodiment does not carry the first IP address, and the indication information is further used to indicate that the first UE is the creator of the D2D communication connection.
- the method provided in this embodiment includes: S604, the second UE adds the second IP address pre-configured by the second UE to the second message according to the first message; S605, the second UE sends the second message to the first UE. S606, the first UE establishes a connection with the D2D communication between the second UE according to the second IP address.
- the second UE in the embodiment receives the first message, because the indication information in the first message indicates that the first UE is the creator of the D2D communication, the second UE sets its own pre-configured second IP. The address is sent to the first UE such that the first UE establishes a connection with the D2D communication of the second UE.
- the first message in this embodiment may further include a PDN type, specifically, a PDN type supported by the first UE, where the PDN type indicates an IP address type used by the second UE;
- the second IP address is added by the second UE according to the indication information and the PDN type.
- a plurality of IP addresses may be pre-configured in the first UE and the second UE, and may be different types of IP addresses. Therefore, when the first UE initiates a D2D communication request to the second UE, The first message carries a PDN type that is compatible with the first UE, and when the second UE returns a second message, the second IP address that is the same as the PDN is sent to the first UE.
- FIG. 14 is a schematic structural diagram of a UE according to Embodiment 7 of the present invention.
- the UE provided in this embodiment is applicable to allocate an IP address to the peer UE when establishing D2D communication.
- the UE can be implemented in hardware and software, and can be integrated in the memory of the UE, for example integrated in the processor chip, for execution by the processor.
- the UE of this embodiment specifically includes: a receiver 12 and a transmitter 11.
- the transmitter 11 is configured to send a first message to the peer UE, where the first message includes a first IP address that the UE allocates to the peer UE.
- the UE is the first IP address that is allocated to the peer UE, and may be carried in the communication setup message that initiates the D2D communication, or may be sent after the UE sends the communication setup request message.
- the bearer is sent in the IP address allocation message, that is, the first message in this embodiment may be a communication setup request message or an IP address assignment message.
- the receiver 12 is configured to receive a second message sent by the peer UE, where the second message is used to indicate that the first IP address assignment succeeds or fails.
- the peer UE acquires the first IP address assigned by the UE, and the peer UE knows whether the first IP address is its own.
- the supported IP address type but the UE is agnostic to the IP address type supported by the peer UE when the first IP address is allocated, that is, the type of the first IP address is randomly allocated by the UE according to its own capabilities. Therefore, when the peer UE supports the type of the first IP address, the returned second message indicates that the first IP address is successfully allocated, and when the peer UE does not support the type of the first IP address, the second message returned indicates the first message. IP address allocation failed.
- the method for performing the IP address allocation in the D2D communication provided by the embodiment of the present invention is provided by the UE, and the corresponding function module is provided, and the implementation principle and the technical effect are similar, and details are not described herein again.
- the second message indicates that the first IP address allocation fails
- the at least one of the second PDN type and the cause value is specifically carried, and the second PDN type specifies the type of the IP address that the peer UE can support.
- the second message includes only the cause value.
- the IP address type supported by the peer UE is not explicitly indicated, the IP address type usually includes the IPv4 type and the IPv6 type, which implicitly indicates the IP address that the peer UE can support. Types of. And considering that the UE can be compatible with different IP address types, even if the peer UE does not support the type of the first IP address that is allocated, the UE provided in this embodiment may also have the IP address that the peer UE can support. The ability of the address type.
- the UE supports the IPv6 address type
- the peer UE supports the IPv4 address type.
- the first IP address assigned by the UE that is, the IPv6 type address cannot be supported by the peer UE;
- An IPv4 type of address is allocated. Therefore, in the method provided by the embodiment, the peer UE may also send a manner for indicating an IP address type supported by the peer UE to the IP address assigner, that is, the UE.
- the UE is instructed to reassign the second IP address, that is, the second PDN type, so that the UE can perform subsequent IP address allocation work according to the cells in the second message.
- FIG. 15 is a schematic structural diagram of another UE according to an embodiment of the present invention.
- the second message received by the receiver 14 specifically indicates that the first IP address allocation fails, and the second message specifically includes the second PDN type, and the second embodiment is provided on the basis of the embodiment shown in FIG.
- the UE further includes: a processor 13 configured to determine UE support according to the second message The second IP address is allocated to the peer UE.
- the transmitter 11 is further configured to send, to the peer UE, a second IP address allocated by the processor 13, where the second IP address is used by the peer UE. Establish a device-to-device D2D communication connection between the peer UE and the UE.
- the processor 13 is further configured to determine, according to the second message, that the UE does not support the second PDN type; accordingly, the transmitter 11 is further configured to the opposite end.
- the UE sends a feedback message, which is used to indicate that the D2D communication connection establishment fails.
- the specific execution manner of the UE shown in FIG. 15 is: And configured to allocate a second IP address to the peer UE when the UE supports other types of IP addresses except the type of the first IP address; correspondingly, the transmitter 11 is further configured to send the processor 13 to the peer UE.
- the second IP address is allocated, and the second IP address is used by the peer UE to establish a connection of the D2D communication between the UE and the UE.
- the processor 13 is configured to determine that the UE does not support the first IP address.
- the transmitter 11 is further configured to send a feedback message to the peer UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the processor 13 is configured to allocate a second IP address of the first PDN type to the peer UE; correspondingly, the transmitter 11 is also used to the opposite end.
- the UE sends a second IP address, which is used by the peer UE to establish a device-to-device D2D communication connection between the peer UE and the UE.
- the processor 13 is configured to support the type of the first IP address and the first PDN type in the UE.
- the other type of IP address is used to allocate a second IP address to the peer UE.
- the transmitter 11 is further configured to send a second IP address to the peer UE, where the second IP address is used to establish the second UE address.
- the processor 13 is further configured to determine that the UE does not support other types of IP addresses except the first IP address type and the first PDN type;
- the sender is further configured to send a feedback message to the peer UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the UE provides the IP address allocation method in the D2D communication provided by the embodiment of the present invention, and the corresponding functional modules are similar in the implementation of the present invention. I will not repeat them here.
- the first message sent by the sender 11 may further include an identity identifier, where the identity identifier may be, for example, a cell IP role carried in the first message, and the value is set to
- the peer UE determines that the UE is the assigner of the IP address in the D2D communication when reading the IP role in the first message, or determines the peer according to the IP role.
- the UE is the recipient of the IP address in the D2D communication.
- the two parties that establish the D2D communication connection are explicitly designated by adding the identifiers of the neighbors, and the respective responsibilities in the IP address allocation process further ensure the enforceability of the IP address allocation.
- the receiver 12 in each embodiment shown in FIG. 15 is further configured to acquire a second PDN type of the opposite UE before the transmitter 11 sends the first message to the opposite UE;
- the first IP address is allocated to the peer UE according to the second PDN type of the peer UE, and the type of the first IP address is the second PDN type.
- the UE in the foregoing embodiment of the present invention acts as the initiator of the D2D communication and assumes the task of assigning an IP address.
- the initiator of the D2D communication can also serve as the receiver of the IP address in the D2D communication.
- the receiver 12 is further configured to: before the transmitter 11 sends the first message to the peer UE, receive the third message sent by the peer UE; And configured to allocate a first IP address to the peer UE according to the third message.
- the second UE is specifically the initiator of the D2D communication, and the initiator of the D2D communication actually acts as the receiver of the IP address in the D2D communication.
- the UEs in the embodiments shown in FIG. 14 and FIG. 15 are the first UEs in the above-mentioned FIG. 1 to FIG. 8 and the embodiments shown in FIG. 12, and the respective UEs shown in FIG. 14 and FIG.
- the peer UE in the embodiment is the second UE in each embodiment shown in FIG. 1 to FIG. 8 above.
- FIG. 16 is a schematic structural diagram of a UE according to Embodiment 8 of the present invention.
- the UE provided in this embodiment is suitable as a receiver of an IP address when establishing D2D communication.
- the UE can be implemented in hardware and software, and can be integrated in the memory of the UE, for example integrated in the processor chip, for execution by the processor.
- the UE of this embodiment specifically includes: a receiver 21 and a transmitter 22.
- the receiver 21 is configured to receive a first message sent by the peer UE, where the first message includes a first IP address allocated by the peer UE to the UE.
- the UE receives the first IP address that is allocated by the peer UE, and may be carried in the communication setup message that initiates the D2D communication, or may be sent after the peer UE sends the communication setup message.
- the bearer is sent in an IP address allocation message, that is, the first message in this embodiment may be a communication setup message or an IP address assignment message.
- the transmitter 22 is configured to send a second message to the peer UE, where the second message is used to indicate that the first IP address allocation succeeds or fails.
- the UE acquires the first IP address assigned by the peer UE, and the UE knows whether the first IP address is an IP address type supported by itself, but the peer UE allocates the first IP address.
- the type of the IP address supported by the UE is agnostic, that is, the type of the first IP address is randomly allocated by the peer UE according to its own capability. Therefore, the UE provided in this embodiment supports the first IP address.
- the second message returned indicates that the first IP address allocation is successful. When the UE does not support the type of the first IP address, the returned second message indicates that the first IP address allocation fails.
- the method for the IP address allocation in the D2D communication provided by the embodiment of the present invention is provided by the UE, and the corresponding function module is provided, and the implementation principle and technical effects are similar, and details are not described herein again.
- the UE determines, according to the type of the first IP address that is received, and the type of the first PDN that may be carried in the first message, to determine the indication information in the returned second message.
- FIG. 17 is a schematic structural diagram of still another UE according to an embodiment of the present invention. FIG. 17 is a further description based on the embodiment shown in FIG. 15.
- the UE provided in this embodiment further includes a processor 23.
- the transmitter 22 is configured to send the second message to the peer UE, and specifically includes: a case where the first IP address is successfully allocated, that is, the transmitter 22 is configured to determine, at the processor 23, that the UE supports the first IP.
- the second message is sent to the peer UE, where the second message is used to indicate that the first IP address is successfully allocated.
- the first IP address allocation fails, including: in the first case, the transmitter 22 is specifically configured to: when the processor 23 determines, according to the first message, that the UE does not support the type of the first IP address, to the peer end The UE sends a second message, where the second message is used to indicate that the first IP address allocation fails, where the second message includes at least one of a second packet data network PDN type and a cause value, where the cause value is used to indicate that the UE does not support First IP address Type 2, the second PDN type is used to indicate the IP address type supported by the UE; in the second case, the transmitter 22 is specifically configured to further include the first PDN type in the first message, and the processor 23 determines the UE according to the first message.
- the second message is sent to the peer UE, where the second message is used to indicate that the first IP address allocation fails, and the second message includes the second PDN type and At least one of the cause values, the cause value is used to indicate that the UE does not support the type of the first IP address, and the UE supports the first PDN type.
- the transmitter 22 is specifically configured to include the first message in the first message.
- the processor 23 determines, according to the first message, that the UE does not support the type of the first IP address, and the UE does not support the first PDN type, and sends a second message to the peer UE, where the second message is used to indicate the first
- the IP address allocation fails, where the first PDN type is used to indicate an IP address type supported by the peer UE, and the second message includes at least one of a second PDN type and a cause value, where the cause value is used to indicate that the UE does not support the first Type of IP address and the UE does not support the first P
- the DN type the second PDN type is used to indicate the type of IP address supported by the UE.
- the peer UE determines whether the second IP address can be allocated to the UE provided in this embodiment according to its own compatibility, and the specific manner of determining is in the foregoing embodiment.
- the receiver 21 of the present embodiment is further configured to receive the second IP address sent by the peer UE, where the second IP address is used by the UE to establish the UE and the peer UE.
- the device-to-device D2D communication connection; or the receiver 21 is further configured to receive a feedback message sent by the peer UE, where the feedback message is used to indicate that the D2D communication connection establishment fails.
- the method for transmitting an IP address in the D2D communication provided by the embodiment shown in FIG. 7 and FIG. 8 is provided by the UE according to the embodiment of the present invention, and has a corresponding function module, and the implementation principle and the technical effect are similar. Narration.
- the first message received by the receiver 21 further includes an identity identifier
- the processor 23 is further configured to determine, according to the identity identifier, that the peer UE is an IP address in the D2D communication.
- the distributor or UE is the recipient of the IP address in the D2D communication.
- the two parties that establish the D2D communication connection are explicitly designated by adding the identifiers of the neighbors, and the respective responsibilities in the IP address allocation process further ensure the enforceability of the IP address allocation.
- the UE in the foregoing embodiment of the present invention serves as the receiver of the IP address in the D2D communication
- the peer UE serves as the initiator of the D2D communication and assumes the task of assigning the IP address; similar to the above embodiment, the D2D
- the initiator of the communication can also be used as the IP address in the D2D communication.
- the transmitter 22 is further configured to: before the receiver 21 receives the first message sent by the peer UE, send a third message to the peer UE, where The third message is used to request the peer UE to allocate the first IP address to the UE.
- the UE provided in this embodiment is specifically the initiator of the D2D communication, and the initiator of the D2D communication actually acts as the receiver of the IP address in the D2D communication.
- the UEs in the embodiments shown in FIG. 16 and FIG. 17 are the above-mentioned FIG. 1 to FIG. 8 and the second UE in each embodiment shown in FIG. 12, and each of FIG. 16 and FIG.
- the peer UE in the embodiment is the first UE in each embodiment shown in FIG. 1 to FIG. 8 above.
- FIG. 18 is a schematic structural diagram of a UE according to Embodiment 9 of the present invention.
- the UE provided in this embodiment is suitable for performing D2D communication.
- the UE can be implemented in hardware and software, and can be integrated in the memory of the UE, for example integrated in the processor chip, for execution by the processor.
- the UE of this embodiment specifically includes: a transmitter 31 and a receiver 32.
- the transmitter 31 is configured to send a first message to the peer UE, where the first message includes a first IP address and indication information, where the indication information is used to indicate that the UE uses the first IP address, and the indication information is further used to indicate The peer UE uses the second IP address, and the first message is used to request the peer UE to establish a device-to-device D2D communication connection with the UE according to the first IP address.
- the UE is pre-configured with the first IP address
- the peer UE is pre-configured with the second IP address.
- the UE and the peer UE perform group communication before performing D2D communication, and their respective If the UE and the peer UE are to perform D2D communication, the UE and the peer UE may not use an IP address and directly use the configured IP address in the group communication.
- the first UE serves as the IP address.
- the initiator of the D2D communication when initiating the D2D communication, carries the indication information in addition to the first IP address configured by the first message, and the indication information is, for example, set to Pre-configured, indicating the first UE.
- the second UE uses the second IP address, and the peer UE can establish a connection of the D2D communication between the second UE and the first UE according to the indication information and the first IP address.
- the UE instructs the peer UE to establish a connection of the D2D communication by using the first IP address carried in the first message by using the first message, where the first IP address may be carried in the D2D communication.
- the communication setup message may also be sent after the UE sends the communication setup message, for example, it is carried in the IP address sending message, that is, the first message in this embodiment may be Create a message for communication or send a message for an IP address.
- the receiver 32 is configured to receive a second message sent by the peer UE, where the second message is used to indicate that the D2D communication connection is successfully established.
- the method for performing the IP address allocation in the D2D communication provided by the embodiment of the present invention is provided by the UE, and the corresponding function module is provided, and the implementation principle and the technical effect are similar, and details are not described herein again.
- the first message sent by the sender 31 includes only indication information, where the indication information is used to indicate that the UE uses the first IP address, and further indicates the opposite end.
- the UE uses the second IP address, and the indication information is further used to indicate that the UE is the creator of the device-to-device D2D communication connection, that is, the UE in this embodiment needs to obtain the IP address of the peer UE in the D2D communication, that is, the indication.
- the peer UE sends a second IP address pre-configured by the second UE to the UE.
- the receiver 32 is configured to receive a second message sent by the peer UE, where the second message specifically includes a second IP address, so that the UE establishes a device-to-device between the peer UE and the peer UE according to the second IP address. Connection for D2D communication.
- the peer UE in this embodiment sends a pre-configured second IP address to the UE by using the received first message including the indication information, and is used to establish a connection for D2D communication, and the indication information may be It is carried in the communication setup message that initiates the D2D communication, and may also be sent after the UE sends the communication setup message, for example, it is carried in the IP address sending message, that is, the first message in this embodiment may be a communication setup message. Or send a message for the IP address.
- the first message sent by the sender 31 may further include a PDN type, specifically, a PDN type supported by the first UE, where the PDN type indicates an IP address type used by the peer UE;
- the second IP address in the second message is added by the peer UE according to the indication information and the PDN type.
- a plurality of IP addresses may be pre-configured in the UE and the peer UE, and may be different types of IP addresses. Therefore, when the UE initiates a D2D communication request to the peer UE, in the first message.
- the second IP address of the same PDN type is sent to the first UE when the second UE sends a second message to the UE.
- the method for the IP address allocation in the D2D communication provided by the embodiment of the present invention is provided by the UE, and the corresponding function module is provided, and the implementation principle and the technical effect are similar, and details are not described herein again.
- the UE in each embodiment shown in FIG. 18 is the first UE in each embodiment shown in FIG. 9, FIG. 10, and FIG. 13, and the peer UE in each embodiment shown in FIG. The second UE in each of the embodiments shown in Figures 9, 10 and 13 above.
- the UE is pre-configured with the first IP address
- the peer UE is pre-configured with the second IP address.
- the UE and the peer UE perform group communication before performing D2D communication, and their respective If the UE and the peer UE are to perform D2D communication, the UE and the peer UE may not use an IP address and directly use the configured IP address in the group communication.
- the first UE serves as the IP address.
- the initiator of the D2D communication when initiating the D2D communication, carries the indication information in addition to the first IP address configured by the first message, and the indication information is, for example, set to Pre-configured, indicating the first UE.
- the second UE uses the second IP address, and the peer UE can establish a connection of the D2D communication between the second UE and the first UE according to the indication information and the first IP address.
- the UE instructs the peer UE to establish a connection of the D2D communication by using the first IP address carried in the first message by using the first message, where the first IP address may be carried in the D2D communication.
- the communication setup message may also be sent after the UE sends the communication setup message, for example, it is carried in the IP address sending message, that is, the first message in this embodiment may be a communication setup message or a message for an IP address.
- the receiver 32 is configured to receive a second message sent by the peer UE, where the second message is used to indicate that the D2D communication connection is successfully established.
- the method for performing the IP address allocation in the D2D communication provided by the embodiment of the present invention is provided by the UE, and the corresponding function module is provided, and the implementation principle and the technical effect are similar, and details are not described herein again.
- the UE in each embodiment shown in FIG. 18 is the first UE in each embodiment shown in FIG. 9, FIG. 10, and FIG. 13, and the peer UE in each embodiment shown in FIG. The second UE in each of the embodiments shown in Figures 9, 10 and 13 above.
- the aforementioned program can be stored in a computer readable storage medium.
- the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
Claims (36)
- 一种设备到设备通信中的网络协议IP地址分配方法,其特征在于,包括:第一用户设备UE向第二UE发送第一消息,所述第一消息中包括所述第一UE为所述第二UE分配的第一IP地址;所述第一UE接收所述第二UE发送的第二消息,所述第二消息用于指示所述第一IP地址分配成功或失败。
- 根据权利要求1所述的方法,其特征在于,所述第一消息包括第一分组数据网络PDN类型,所述第一PDN类型用于指示所述第一UE支持的IP地址类型。
- 根据权利要求1或2所述的方法,其特征在于,当所述第二消息用于指示所述第一IP地址分配失败时,所述第二消息中包括第二PDN类型和原因值中的至少一项,其中,所述第二PDN类型用于指示所述第二UE支持的IP地址类型;所述原因值用于指示所述第二UE不支持所述第一IP地址的类型。
- 根据权利要求3所述的方法,其特征在于,当所述第二消息包括所述第二PDN类型时,所述方法还包括:若所述第一UE根据所述第二消息确定所述第一UE支持所述第二PDN类型,则为所述第二UE分配第二IP地址,并向所述第二UE发送所述第二IP地址,所述第二IP地址用于所述第二UE建立所述第二UE与所述第一UE之间的设备到设备D2D通信的连接;或者,若所述第一UE根据所述第二消息确定所述第一UE不支持所述第二PDN类型,则向所述第二UE发送反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求3所述的方法,其特征在于,当所述第二消息包括所述原因值,且不包含所述第二PDN类型时,所述方法还包括:若所述第一UE支持除所述第一IP地址的类型之外的其它类型IP地址,则为所述第二UE分配第二IP地址,并向所述第二UE发送所述第二IP地址,所述第二IP地址用于所述第二UE建立所述第二UE与所述第一UE之间的D2D通信的连接;或者,若所述第一UE不支持除所述第一IP地址的类型之外的其它类型IP地址,则向所述第二UE发送反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求3所述的方法,其特征在于,当所述第一消息包含第一PDN类型,所述第二消息包含所述原因值,且所述原因值还用于指示所述第二UE支持所述第一PDN类型时,所述方法还包括:所述第一UE为所述第二UE分配所述第一PDN类型的第二IP地址,并向所述第二UE发送所述第二IP地址,所述第二IP地址用于所述第二UE建立所述第二UE与所述第一UE之间的设备到设备D2D通信的连接。
- 根据权利要求3所述的方法,其特征在于,当所述第一消息包含第一PDN类型,所述第二消息包含所述原因值且不包含所述第二PDN类型,所述原因值还用于指示所述第二UE不支持所述第一PDN类型时,所述方法还包括:若所述第一UE支持除所述第一IP地址的类型和所述第一PDN类型之外的其它类型IP地址,则为所述第二UE分配第二IP地址,并向所述第二UE发送所述第二IP地址,所述第二IP地址用于所述第二UE建立所述第二UE与所述第一UE之间的D2D通信的连接;或者,若所述第一UE不支持除所述第一IP地址类型和所述第一PDN类型之外的其它类型IP地址,则向所述第二UE发送反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求1~7中任一项所述的方法,其特征在于,所述第一消息中还包括身份标识,所述身份标识用于指示所述第二UE根据所述身份标识确定所述第一UE为D2D通信中IP地址的分配者,或者,所述身份标识用于指示所述第二UE为D2D通信中IP地址的接收者。
- 根据权利要求1~8中任一项所述的方法,其特征在于,所述第一UE向第二UE发送第一消息之前,还包括:所述第一UE获取所述第二UE的第二PDN类型;所述第一UE根据所述第二UE的所述第二PDN类型,为所述第二UE分配所述第一IP地址。
- 根据权利要求1~9中任一项所述的方法,其特征在于,所述第一UE 向第二UE发送第一消息之前,还包括:所述第一UE接收所述第二UE发送的第三消息;所述第一UE根据所述第三消息为所述第二UE分配所述第一IP地址。
- 一种设备到设备通信中的网络协议IP地址分配方法,其特征在于,包括:第二用户设备UE接收第一UE发送的第一消息,所述第一消息中包括所述第一UE为所述第二UE分配的第一IP地址;所述第二UE向所述第一UE发送第二消息,所述第二消息用于指示所述第一IP地址分配成功或失败。
- 根据权利要求11所述的方法,其特征在于,所述第二UE向所述第一UE发送第二消息,包括:若所述第二UE根据所述第一消息确定所述第二UE不支持所述第一IP地址的类型,则向所述第一UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配失败,其中,所述第二消息包含第二分组数据网络PDN类型和原因值中的至少一项,所述原因值用于指示所述第二UE不支持所述第一IP地址的类型,所述第二PDN类型用于指示所述第二UE支持的IP地址类型;或者,若所述第一消息中还包括第一PDN类型,所述第二UE根据所述第一消息确定所述第二UE不支持所述第一IP地址的类型且所述第二UE支持所述第一PDN类型,则向所述第一UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配失败,所述第二消息中包括第二PDN类型和原因值中的至少一项,所述原因值用于指示所述第二UE不支持所述第一IP地址的类型且所述第二UE支持所述第一PDN类型;或者,若所述第一消息中还包括第一PDN类型,所述第二UE根据所述第一消息确定所述第二UE不支持所述第一IP地址的类型且所述第二UE不支持所述第一PDN类型,则向所述第一UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配失败,其中,所述第一PDN类型用于指示所述第一UE支持的IP地址类型,所述第二消息包含第二PDN类型和原因值中的至少一项,所述原因值用于指示所述第二UE不支持所述第一IP地址的类型且所述第二UE不支持所述第一PDN类型,所述第二PDN类型用于指示所 述第二UE支持的IP地址类型;或者,若所述第二UE支持所述第一IP地址的类型,则向所述第一UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配成功。
- 根据权利要求11或12所述的方法,其特征在于,所述第二消息用于指示所述第一IP地址分配失败时,所述方法还包括:所述第二UE接收所述第一UE发送第二IP地址,所述第二IP地址用于所述第二UE建立所述第二UE与所述第一UE之间的设备到设备D2D通信的连接;或者,所述第二UE接收所述第一UE发送的反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求11~13中任一项所述的方法,其特征在于,所述第一消息中还包括身份标识,则所述方法还包括:所述第二UE根据所述身份标识,确定所述第一UE为D2D通信中IP地址的分配者或者所述第二UE为D2D通信中IP地址的接收者。
- 根据权利要求11~14中任一项所述的方法,其特征在于,所述第二UE接收第一UE发送的第一消息之前,还包括:所述第二UE向所述第一UE发送第三消息,所述第三消息用于请求所述第一UE为所述第二UE分配所述第一IP地址。
- 一种设备到设备通信中的网络协议IP地址分配方法,其特征在于,第一用户设备UE中预先配置第一IP地址,第二UE中预先配第二IP地址,所述方法包括:所述第一UE向所述第二UE发送第一消息,所述第一消息中包括第一IP地址和指示信息,所述指示信息用于指示所述第一UE使用所述第一IP地址,所述指示信息还用于指示所述第二UE使用所述第二IP地址,所述第一消息用于请求所述第二UE根据所述第一IP地址建立与所述第一UE之间的设备到设备D2D通信的连接;所述第一UE接收所述第二UE发送的第二消息,所述第二消息用于指示D2D通信连接建立成功。
- 一种设备到设备通信中的网络协议IP地址分配方法,其特征在于,第一用户设备UE中预先配置第一IP地址,第二UE中预先配第二IP地址, 所述方法包括:所述第一UE向所述第二UE发送第一消息,所述第一消息中包括指示信息,所述指示信息用于指示所述第一UE使用所述第一IP地址,所述指示信息还用指示所述第二UE使用所述第二IP地址,所述指示信息还用于指示所述第一UE为设备到设备D2D通信连接的建立者;所述第一UE接收所述第二UE发送的第二消息,所述第二消息中包括所述第二IP地址,以使得所述第一UE根据所述第二IP地址建立与所述第二UE之间的设备到设备D2D通信的连接。
- 根据权利要求17所述的方法,其特征在于,所述第一消息中还包括分组数据网络PDN类型,所述PDN类型指示所述第二UE使用的IP地址类型;所述第二消息中的所述第二IP地址为所述第二UE根据所述指示信息和所述PDN类型添加的。
- 一种用户设备UE,其特征在于,包括:发送器,用于向对端UE发送第一消息,所述第一消息中包括所述UE为所述对端UE分配的第一IP地址;接收器,用于接收所述对端UE发送的第二消息,所述第二消息用于指示所述第一IP地址分配成功或失败。
- 根据权利要求19所述的UE,其特征在于,所述第一消息包括第一分组数据网络PDN类型,所述第一PDN类型用于指示所述UE支持的IP地址类型。
- 根据权利要求19或20所述的UE,其特征在于,当所述第二消息用于指示所述第一IP地址分配失败时,所述第二消息中包括第二PDN类型和原因值中的至少一项,其中,所述第二PDN类型用于指示所述对端UE支持的IP地址类型;所述原因值用于指示所述对端UE不支持所述第一IP地址的类型。
- 根据权利要求21所述的UE,其特征在于,当所述第二消息包括所述第二PDN类型时,所述UE还包括:处理器,用于在根据所述第二消息确定所述UE支持所述第二PDN类型时,为所述对端UE分配第二IP地址;则所述发送器,还用于向所述对端UE发送所述处理器分配的第二IP地址,所述第二IP地址用于所述对端UE建立所述对端UE与所述UE之间的 设备到设备D2D通信的连接;或者,所述处理器,还用于根据所述第二消息确定所述UE不支持所述第二PDN类型;则所述发送器,还用于向所述对端UE发送反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求21所述的UE,其特征在于,当所述第二消息包括所述原因值,且不包含所述第二PDN类型时,所述UE还包括:处理器,用于在所述UE支持除所述第一IP地址的类型之外的其它类型IP地址时,为所述对端UE分配第二IP地址;则所述发送器,还用于向所述对端UE发送所述处理器分配的第二IP地址,所述第二IP地址用于所述对端UE建立所述对端UE与所述UE之间的D2D通信的连接;或者,所述处理器,还用于确定所述UE不支持除所述第一IP地址的类型之外的其它类型IP地址;则所述发送器,还用于向所述对端UE发送反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求21所述的UE,其特征在于,当所述第一消息包含第一PDN类型,所述第二消息包含所述原因值,且所述原因值还用于指示所述对端UE支持所述第一PDN类型时,所述UE还包括:处理器,用于为所述对端UE分配所述第一PDN类型的第二IP地址;则所述发送器,还用于向所述对端UE发送所述第二IP地址,所述第二IP地址用于所述对端UE建立所述对端UE与所述UE之间的设备到设备D2D通信的连接。
- 根据权利要求21所述的UE,其特征在于,当所述第一消息包含第一PDN类型,所述第二消息包含所述原因值且不包含所述第二PDN类型,所述原因值还用于指示所述对端UE不支持所述第一PDN类型时,所述UE还包括:处理器,用于在所述UE支持除所述第一IP地址的类型和所述第一PDN类型之外的其它类型IP地址时,为所述对端UE分配第二IP地址;则所述发送器,还用于向所述对端UE发送所述第二IP地址,所述第二IP地址用于所述对端UE建立所述对端UE与所述UE之间的D2D通信的连 接;或者,所述处理器,还用于确定所述UE不支持除所述第一IP地址类型和所述第一PDN类型之外的其它类型IP地址;则所述发送器,还用于向所述对端UE发送反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求19~25中任一项所述的UE,其特征在于,所述第一消息中还包括身份标识,所述身份标识用于指示所述对端UE根据所述身份标识确定所述UE为D2D通信中IP地址的分配者,或者,所述身份标识用于指示所述对端UE为D2D通信中IP地址的接收者。
- 根据权利要求19~26中任一项所述的UE,其特征在于,所述接收器,还用于在所述发送器向对端UE发送第一消息之前,获取所述对端UE的第二PDN类型;所述UE还包括:处理器,用于根据所述对端UE的所述第二PDN类型,为所述对端UE分配所述第一IP地址。
- 根据权利要求19~27中任一项所述的UE,其特征在于,所述接收器,还用于在所述发送器向对端UE发送第一消息之前,接收所述对端UE发送的第三消息;所述UE还包括:处理器,用于根据所述第三消息为所述对端UE分配所述第一IP地址。
- 一种用户设备UE,其特征在于,包括:接收器,用于接收对端UE发送的第一消息,所述第一消息中包括所述对端UE为所述UE分配的第一IP地址;发送器,用于向所述对端UE发送第二消息,所述第二消息用于指示所述第一IP地址分配成功或失败。
- 根据权利要求29所述的UE,其特征在于,所述UE还包括处理器,所述发送器用于向所述对端UE发送第二消息,包括:所述发送器,具体用于在所述处理器根据所述第一消息确定所述UE不支持所述第一IP地址的类型时,向所述对端UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配失败,其中,所述第二消息包含第二分组数据网络PDN类型和原因值中的至少一项,所述原因值用于指示所述UE不支持所述第一IP地址的类型,所述第二PDN类型用于指示所述UE支持 的IP地址类型;或者,所述发送器,具体用于在所述第一消息中还包括第一PDN类型,以及所述处理器根据所述第一消息确定所述UE不支持所述第一IP地址的类型且所述UE支持所述第一PDN类型时,向所述对端UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配失败,所述第二消息中包括第二PDN类型和原因值中的至少一项,所述原因值用于指示所述UE不支持所述第一IP地址的类型且所述UE支持所述第一PDN类型;或者,所述发送器,具体用于在所述第一消息中还包括第一PDN类型,以及所述处理器根据所述第一消息确定所述UE不支持所述第一IP地址的类型且所述UE不支持所述第一PDN类型时,向所述对端UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配失败,其中,所述第一PDN类型用于指示所述对端UE支持的IP地址类型,所述第二消息包含第二PDN类型和原因值中的至少一项,所述原因值用于指示所述UE不支持所述第一IP地址的类型且所述UE不支持所述第一PDN类型,所述第二PDN类型用于指示所述UE支持的IP地址类型;或者,所述发送器,具体用于在所述处理器确定所述UE支持所述第一IP地址的类型时,向所述对端UE发送所述第二消息,所述第二消息用于指示所述第一IP地址分配成功。
- 根据权利要求29或30所述的UE,其特征在于,所述第二消息用于指示所述第一IP地址分配失败时,所述接收器,还用于接收所述对端UE发送第二IP地址,所述第二IP地址用于所述UE建立所述UE与所述对端UE之间的设备到设备D2D通信的连接;或者,所述接收器,还用于接收所述对端UE发送的反馈消息,所述反馈消息用于指示所述D2D通信连接建立失败。
- 根据权利要求29~31中任一项所述的UE,其特征在于,所述第一消息中还包括身份标识,则所述UE还包括:处理器,用于根据所述身份标识,确定所述对端UE为D2D通信中IP地址的分配者或者所述UE为D2D通信中IP地址的接收者。
- 根据权利要求29~32中任一项所述的UE,其特征在于,所述发送器,还用于在所述接收器接收对端UE发送的第一消息之前,向所述对端UE发送 第三消息,所述第三消息用于请求所述对端UE为所述UE分配所述第一IP地址。
- 一种用户设备UE,其特征在于,所述UE中预先配置第一IP地址,对端UE中预先配第二IP地址,所述UE包括:发送器,用于向所述对端UE发送第一消息,所述第一消息中包括第一IP地址和指示信息,所述指示信息用于指示所述UE使用所述第一IP地址,所述指示信息还用于指示所述对端UE使用所述第二IP地址,所述第一消息用于请求所述对端UE根据所述第一IP地址建立与所述UE之间的设备到设备D2D通信的连接;接收器,用于接收所述对端UE发送的第二消息,所述第二消息用于指示D2D通信连接建立成功。
- 一种用户设备UE,其特征在于,所述UE中预先配置第一IP地址,对端UE中预先配第二IP地址,所述UE包括:发送器,用于向所述对端UE发送第一消息,所述第一消息中包括指示信息,所述指示信息用于指示所述UE使用所述第一IP地址,所述指示信息还用指示所述对端UE使用所述第二IP地址,所述指示信息还用于指示所述UE为设备到设备D2D通信连接的建立者;接收器,用于接收所述对端UE发送的第二消息,所述第二消息中包括所述第二IP地址,以使得所述UE根据所述第二IP地址建立与所述对端UE之间的设备到设备D2D通信的连接。
- 根据权利要求35所述的UE,其特征在于,所述第一消息中还包括分组数据网络PDN类型,所述PDN类型指示所述对端UE使用的IP地址类型;所述第二消息中的所述第二IP地址为所述对端UE根据所述指示信息和所述PDN类型添加的。
Priority Applications (10)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017557091A JP6606193B2 (ja) | 2015-05-18 | 2015-05-18 | D2d通信におけるipアドレス割振り方法およびユーザ機器 |
CA2980952A CA2980952A1 (en) | 2015-05-18 | 2015-05-18 | Ip address allocation method in d2d communication and user equipment |
BR112017023406-8A BR112017023406A2 (zh) | 2015-05-18 | 2015-05-18 | IP address assignment method and user equipment in D2D communication |
KR1020177030204A KR101922041B1 (ko) | 2015-05-18 | 2015-05-18 | D2d 통신에서의 ip 주소 할당 방법 및 사용자 기기 |
EP15892160.1A EP3264852A4 (en) | 2015-05-18 | 2015-05-18 | Method for allocating ip address in d2d communication, and user equipment |
CN201580031686.3A CN106465443B (zh) | 2015-05-18 | 2015-05-18 | D2d通信中的ip地址分配方法及用户设备 |
RU2017140454A RU2679184C1 (ru) | 2015-05-18 | 2015-05-18 | Способ распределения ip-адресов в d2d коммуникации и устройство пользователя |
CN201911399287.9A CN111147622A (zh) | 2015-05-18 | 2015-05-18 | D2d通信中的ip地址分配方法及用户设备 |
PCT/CN2015/079209 WO2016183781A1 (zh) | 2015-05-18 | 2015-05-18 | D2d通信中的ip地址分配方法及用户设备 |
US15/816,693 US10798054B2 (en) | 2015-05-18 | 2017-11-17 | IP address allocation method in D2D communication and user equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/079209 WO2016183781A1 (zh) | 2015-05-18 | 2015-05-18 | D2d通信中的ip地址分配方法及用户设备 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/816,693 Continuation US10798054B2 (en) | 2015-05-18 | 2017-11-17 | IP address allocation method in D2D communication and user equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016183781A1 true WO2016183781A1 (zh) | 2016-11-24 |
Family
ID=57319104
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/079209 WO2016183781A1 (zh) | 2015-05-18 | 2015-05-18 | D2d通信中的ip地址分配方法及用户设备 |
Country Status (9)
Country | Link |
---|---|
US (1) | US10798054B2 (zh) |
EP (1) | EP3264852A4 (zh) |
JP (1) | JP6606193B2 (zh) |
KR (1) | KR101922041B1 (zh) |
CN (2) | CN106465443B (zh) |
BR (1) | BR112017023406A2 (zh) |
CA (1) | CA2980952A1 (zh) |
RU (1) | RU2679184C1 (zh) |
WO (1) | WO2016183781A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11570588B2 (en) * | 2019-11-01 | 2023-01-31 | Apple Inc. | SMS enhancement for new radio |
EP4154560A4 (en) * | 2020-05-22 | 2024-06-26 | Telefonaktiebolaget LM Ericsson (publ.) | METHOD AND APPARATUS FOR DEVICE-TO-DEVICE COMMUNICATION |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101932120A (zh) * | 2009-06-22 | 2010-12-29 | 华为技术有限公司 | 中继节点与网络节点连接建立方法及装置 |
CN103139930A (zh) * | 2011-11-22 | 2013-06-05 | 华为技术有限公司 | 连接建立方法和用户设备 |
CN104144403A (zh) * | 2013-05-10 | 2014-11-12 | 电信科学技术研究院 | 一种通信方法及设备、*** |
WO2014193557A1 (en) * | 2013-05-31 | 2014-12-04 | Qualcomm Incorporated | Server-assisted device-to-device discovery and connection |
Family Cites Families (46)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6968368B2 (en) * | 2001-09-28 | 2005-11-22 | Rockwell Electronic Commerce Technologies, Llc | Streaming announcements to agents of an ACD |
US7342894B2 (en) * | 2002-04-03 | 2008-03-11 | Qualcomm Incorporated | System and method for transparent Mobile IP registration within PPP negotiation |
US20040054781A1 (en) * | 2002-07-30 | 2004-03-18 | Heng-Chien Chen | Method for establishing point to point or point to multiple points internet connection(s) |
JP2004343526A (ja) * | 2003-05-16 | 2004-12-02 | Pioneer Electronic Corp | 通信装置、通信方法並びに通信用プログラム及び情報記録媒体 |
JP4468113B2 (ja) * | 2003-08-25 | 2010-05-26 | Kddi株式会社 | ISATAPを用いてIPv4コンポーネントを備えたネットワーク上でのモバイルIPv6通信を可能とするシステム及び方法並びに記録媒体 |
US20050080858A1 (en) * | 2003-10-10 | 2005-04-14 | Microsoft Corporation | System and method for searching a peer-to-peer network |
US20050203851A1 (en) * | 2003-10-25 | 2005-09-15 | Macrovision Corporation | Corruption and its deterrence in swarm downloads of protected files in a file sharing network |
US7536467B2 (en) * | 2004-04-20 | 2009-05-19 | Microsoft Corporation | Peer-to-peer (P2P) mobility system, and method |
WO2006003739A1 (ja) * | 2004-06-30 | 2006-01-12 | Yoshida Kamagasako, Inc. | ピアツーピア通信装置及びコンピュータ・プログラム |
CN1881916B (zh) * | 2005-06-17 | 2012-07-04 | 腾讯科技(深圳)有限公司 | 一种在通信设备间实现通信的方法及装置 |
FI20051061A0 (fi) * | 2005-10-21 | 2005-10-21 | Nokia Corp | Vertaisyhteyden luominen |
US20080159266A1 (en) * | 2006-12-30 | 2008-07-03 | Arcsoft (Shanghai) Technology Company, Ltd | Determining Pairings of Telephone Numbers and IP Addresses from Caching and Peer-To-Peer Lookup |
JP4958611B2 (ja) * | 2007-04-10 | 2012-06-20 | キヤノン株式会社 | 通信装置、ネットワークシステム、通信方法、及びプログラム |
US7940697B2 (en) * | 2008-03-17 | 2011-05-10 | Nokia Corporation | Transition between IP protocol versions |
US20110060649A1 (en) * | 2008-04-11 | 2011-03-10 | Dunk Craig A | Systems, methods and apparatus for providing media content |
US8040809B2 (en) * | 2008-11-25 | 2011-10-18 | Broadcom Corporation | Client QoS based connection session jogging |
US8452290B2 (en) * | 2009-03-31 | 2013-05-28 | Broadcom Corporation | Communication session soft handover |
JPWO2011001628A1 (ja) * | 2009-07-03 | 2012-12-10 | パナソニック株式会社 | コネクション管理方法、コネクション管理システム、移動端末、パケットデータゲートウェイ並びに移動管理ゲートウェイ |
US20110087775A1 (en) * | 2009-10-12 | 2011-04-14 | Electronics And Telecommunications Research | Peer-to-peer control device and transmission overlay management method |
US8855052B2 (en) * | 2010-10-01 | 2014-10-07 | Lg Electronics Inc. | Attention commands enhancement |
US8732283B2 (en) * | 2010-10-15 | 2014-05-20 | Marvell International Ltd. | Management of network membership |
EP2637378A4 (en) | 2010-11-24 | 2014-10-08 | Huawei Tech Co Ltd | METHOD AND NETWORK UNITS FOR DETERMINING THE IP ADDRESS OF A USER |
JP5597624B2 (ja) * | 2010-12-29 | 2014-10-01 | ノキア コーポレイション | 短距離通信を介したネットワーク設定 |
TWI429308B (zh) * | 2011-02-14 | 2014-03-01 | Wistron Corp | 建立點對點傳輸的方法及行動通訊系統 |
EP2676381B1 (en) * | 2011-02-15 | 2019-07-17 | Samsung Electronics Co., Ltd. | Method and apparatus for peer-to-peer service in wireless communication system |
US9325382B2 (en) * | 2011-02-19 | 2016-04-26 | Samsung Electronics Co., Ltd | Method and system of providing internet protocol (IP) data communication in a NFC peer to peer communication environment |
US20120271912A1 (en) | 2011-04-19 | 2012-10-25 | Samsung Electronics Co., Ltd. | Apparatus and method for transmitting and receiving ip information in a wireless communication network |
KR101906834B1 (ko) * | 2011-04-19 | 2018-10-11 | 삼성전자주식회사 | 휴대단말기의 어플리케이션 리소스 선택장치 및 방법 |
CN102869116B (zh) * | 2011-07-05 | 2015-07-08 | 华为终端有限公司 | 一种本地网络和实现本地网关和家庭基站建立连接的方法 |
KR20130025749A (ko) * | 2011-09-02 | 2013-03-12 | 삼성전자주식회사 | P2p 연결을 지원하는 화상형성장치 및 그것의 신호 세기에 기초한 보안 관리 방법 |
CN103024737B (zh) * | 2011-09-23 | 2017-08-11 | 中兴通讯股份有限公司 | 可信任非3gpp接入网元、接入移动网络及去附着方法 |
US9167614B2 (en) * | 2011-09-28 | 2015-10-20 | Marvell International Ltd. | Tunneled direct link setup systems and methods with consistent link information maintenance |
KR101872358B1 (ko) * | 2011-11-22 | 2018-06-29 | 에이치피프린팅코리아 주식회사 | P2p 연결을 지원하는 화상 형성 장치 및 그것의 ip 주소 연동을 통한 응용 프로그램의 실행 방법 |
EP2608567A1 (en) * | 2011-12-13 | 2013-06-26 | Panasonic Corporation | Device triggering and congestion control |
KR101849925B1 (ko) * | 2012-02-24 | 2018-04-18 | 삼성전자주식회사 | 무선 통신 네트워크에서 디바이스 탐색 방법 및 장치 |
KR102005771B1 (ko) * | 2012-02-24 | 2019-10-01 | 삼성전자주식회사 | 무선 통신 네트워크에서 ip 주소 할당 방법 및 장치 |
JP2015520556A (ja) | 2012-04-27 | 2015-07-16 | インターデイジタル パテント ホールディングス インコーポレイテッド | 近接データパスセットアップを最適化するための方法および装置 |
CN104145451B (zh) * | 2012-08-23 | 2017-07-14 | 华为技术有限公司 | 报文处理方法、深度包检测请求网元和深度包检测设备 |
WO2014088318A1 (en) * | 2012-12-04 | 2014-06-12 | Samsung Electronics Co., Ltd. | Method and apparatus for allocating an internet protocol address to a client device |
US11102689B2 (en) * | 2013-01-03 | 2021-08-24 | Apple Inc. | Packet data connections in a wireless communication system using a wireless local area network |
US9100942B2 (en) * | 2013-03-14 | 2015-08-04 | Qualcomm Incorporated | WiFi Direct connection using machine-readable labels |
WO2014156769A1 (ja) * | 2013-03-26 | 2014-10-02 | シャープ株式会社 | 端末装置、基地局装置および制御装置 |
US20140331296A1 (en) * | 2013-05-01 | 2014-11-06 | Qualcomm Incorporated | Mechanism for gateway discovery layer-2 mobility |
KR102332880B1 (ko) | 2013-05-14 | 2021-11-30 | 삼성전자주식회사 | 디바이스-투-디바이스 통신 시스템에서 아이피 세션 연속성 시스템 및 방법 |
US9647735B2 (en) * | 2013-05-31 | 2017-05-09 | Intel IP Corporation | Hybrid digital and analog beamforming for large antenna arrays |
EP3078186B1 (en) * | 2013-12-02 | 2018-08-29 | Telefonaktiebolaget LM Ericsson (publ) | Ip address assignment for a ue in 3gpp |
-
2015
- 2015-05-18 CN CN201580031686.3A patent/CN106465443B/zh active Active
- 2015-05-18 CA CA2980952A patent/CA2980952A1/en not_active Abandoned
- 2015-05-18 WO PCT/CN2015/079209 patent/WO2016183781A1/zh active Application Filing
- 2015-05-18 JP JP2017557091A patent/JP6606193B2/ja active Active
- 2015-05-18 CN CN201911399287.9A patent/CN111147622A/zh not_active Withdrawn
- 2015-05-18 EP EP15892160.1A patent/EP3264852A4/en not_active Ceased
- 2015-05-18 BR BR112017023406-8A patent/BR112017023406A2/zh not_active IP Right Cessation
- 2015-05-18 RU RU2017140454A patent/RU2679184C1/ru active
- 2015-05-18 KR KR1020177030204A patent/KR101922041B1/ko active IP Right Grant
-
2017
- 2017-11-17 US US15/816,693 patent/US10798054B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101932120A (zh) * | 2009-06-22 | 2010-12-29 | 华为技术有限公司 | 中继节点与网络节点连接建立方法及装置 |
CN103139930A (zh) * | 2011-11-22 | 2013-06-05 | 华为技术有限公司 | 连接建立方法和用户设备 |
CN104144403A (zh) * | 2013-05-10 | 2014-11-12 | 电信科学技术研究院 | 一种通信方法及设备、*** |
WO2014193557A1 (en) * | 2013-05-31 | 2014-12-04 | Qualcomm Incorporated | Server-assisted device-to-device discovery and connection |
Non-Patent Citations (1)
Title |
---|
See also references of EP3264852A4 * |
Also Published As
Publication number | Publication date |
---|---|
CN106465443B (zh) | 2020-01-17 |
KR20170128587A (ko) | 2017-11-22 |
JP6606193B2 (ja) | 2019-11-13 |
RU2679184C1 (ru) | 2019-02-06 |
EP3264852A1 (en) | 2018-01-03 |
US10798054B2 (en) | 2020-10-06 |
CN111147622A (zh) | 2020-05-12 |
KR101922041B1 (ko) | 2018-11-26 |
EP3264852A4 (en) | 2018-04-18 |
CN106465443A (zh) | 2017-02-22 |
US20180077112A1 (en) | 2018-03-15 |
JP2018518887A (ja) | 2018-07-12 |
CA2980952A1 (en) | 2016-11-24 |
BR112017023406A2 (zh) | 2018-07-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11337271B2 (en) | Apparatus and method for providing communication based on device-to-device relay service in mobile communication system | |
WO2018084199A1 (ja) | 通信方法 | |
US9210536B2 (en) | Method for establishing device-to-device communication | |
EP3637846B1 (en) | Method and device for use in configuring novel quality of service architecture in dual connectivity system | |
US11006332B2 (en) | Method and system for handling device to device (D2D) communication | |
US10187927B2 (en) | Data communication method and terminal | |
WO2017024909A1 (zh) | 一种进行数据传输的方法和设备 | |
WO2014086204A1 (zh) | 直接通信信道建立方法、装置及*** | |
WO2016202227A1 (zh) | 一种层2链路标识的选择、通知方法及装置 | |
KR20230015321A (ko) | 멀티캐스트/브로드캐스트 세션을 위한 액세스 네트워크 시그널링 및 리소스 할당 | |
WO2014026384A1 (zh) | 用户设备配对处理方法、网络侧设备和用户设备 | |
WO2022067818A1 (zh) | 一种数据传输方法及装置 | |
WO2015055142A1 (zh) | 发现信号的发送和接收方法、以及发送和接收装置 | |
JP2023536000A (ja) | マルチキャストおよびブロードキャストサービスのための方法および装置 | |
JP2023539058A (ja) | 無線通信システムにおける中継動作のための方法及びその装置 | |
WO2015109543A1 (zh) | 一种资源指示方法、装置和*** | |
WO2014127699A1 (zh) | 一种建立直接通信路径的方法、设备及*** | |
WO2016183781A1 (zh) | D2d通信中的ip地址分配方法及用户设备 | |
WO2016070615A1 (zh) | 设备到设备d2d数据传输方法、装置及d2d ue | |
WO2019192364A1 (zh) | 地址分配方法、装置、核心网、节点、网络***及介质 | |
WO2023185992A1 (zh) | 中继通信方法与装置 | |
WO2015157945A1 (zh) | 一种信息传输方法、设备及*** | |
WO2022080230A1 (ja) | 通信制御方法 | |
WO2023125309A1 (zh) | 一种多路径通信方法及设备 | |
CN113573381A (zh) | 非ip类型数据的传输处理方法、设备、装置及介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15892160 Country of ref document: EP Kind code of ref document: A1 |
|
REEP | Request for entry into the european phase |
Ref document number: 2015892160 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2980952 Country of ref document: CA |
|
ENP | Entry into the national phase |
Ref document number: 20177030204 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2017557091 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2017140454 Country of ref document: RU |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112017023406 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 112017023406 Country of ref document: BR Kind code of ref document: A2 Effective date: 20171030 |