Service processing method, base station and user equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a service processing method, a base station, and a user equipment.
Background
An Advanced international mobile telecommunications (IMT-Advanced) oriented network is a heterogeneous network, which includes both a centralized control system (i.e., cellular systems, such as WiMAX, LTE, TD-SCDMA, etc.) and an ad-hoc or MESH system in which user equipments can communicate directly with each other. In a centralized control system, communication between all User Equipments (UEs) is controlled by a base station (BS, or NB, eNB). In an ad-hoc network, however, the UE1, UE2 may communicate directly with each other or may be relayed through another UE.
In a cellular network, even if two UEs (e.g., UE1, UE2) are in close proximity, control of communication is performed by a central controller, such as a base station. Such a centralized control system has an advantage of facilitating resource management and interference control, but has a disadvantage of inefficient use of resources. For example, even if two UEs are close together, double the resources are used for communication. Therefore, in order to improve spectrum utilization efficiency and achieve higher system throughput, a mode of direct communication between UEs, such as Device-to-Device (D2D), has been proposed in LTE-Advanced, and such a communication network will no longer be a single-mode network but a hybrid network in which a centralized network and a distributed network coexist. Hybrid networks will undoubtedly be able to increase the performance of the communication system more than single mode networks.
The D2D system is an ad-hoc system and is fully distributed, and the user devices can communicate directly with each other under certain conditions. In the prior art, the D2D system shares the same resources with the cellular system in an Underlay manner to improve the spectrum utilization. In particular, the UE in the D2D system needs to receive control of the cellular system to provide services such as information sharing, gaming, social services, and mobile advertising. When D2D communication is between two UEs, it is necessary to return to cellular communication at certain times, so the UEs may need to switch back and forth between D2D communication and cellular communication.
However, in the prior art, once the D2D communication is selected, the service interaction between the two UEs cannot be converted into cellular communication, and vice versa. This results in the inability to switch D2D communications and cellular communications to each other, with the potential for D2D service outages. How to ensure that service interaction between two UEs is not interrupted when switching between D2D communication and cellular communication becomes a technical problem to be solved currently.
Disclosure of Invention
In order to overcome the defects in the prior art, embodiments of the present invention provide a service processing method, a base station, and a user equipment.
The service processing method provided by the embodiment of the invention comprises the following steps:
receiving measurement reports related to end-to-end D2D sent by a first User Equipment (UE) and a second UE respectively;
determining from the measurement report that the first UE and the second UE in cellular communication meet a D2D communication condition, then sending a configuration message to the first UE and the second UE, respectively, configuring D2D communication, the configuration message being used by the first UE and the second UE for a D2D communication connection; and
after the first UE and the second UE are switched from the cellular communication to the D2D communication, reserving service connection contexts respectively established with a base station when the first UE and the second UE carry out cellular communication;
after the first UE and the second UE switch from the D2D communication to cellular communication, using the traffic connection context for transmission of traffic data with the first UE and the second UE.
The service processing method provided by the embodiment of the invention comprises the following steps:
during cellular communication between a User Equipment (UE) and another UE, the UE sends a measurement report related to end-to-end D2D to a base station;
the UE receiving a configuration message sent by the base station in response to the measurement report that the UE and another UE are in D2D communication;
after the UE performs D2D communication connection with the other UE according to the configuration message, reserving a service connection context established by the UE during cellular communication with the base station, and transmitting service data in the D2D communication;
after the UE switches from the D2D communication to a cellular communication, the traffic data is transmitted with a base station using the traffic connection context.
The base station provided by the embodiment of the invention comprises:
a receiving unit, configured to receive measurement reports related to end-to-end D2D sent by a first user equipment UE and a second UE, respectively;
a determining unit configured to determine whether the first UE and the second UE in cellular communication reach a D2D communication condition according to the measurement report;
a sending unit, configured to send a configuration message configuring D2D communication to the first UE and the second UE, respectively, if the determining unit determines that the first UE and the second UE reach the D2D communication condition, where the configuration message is used by the first UE and the second UE for D2D communication connection;
a reserving unit, configured to reserve service connection contexts respectively established with base stations when the first UE and the second UE perform cellular communication after the first UE and the second UE switch from the cellular communication to D2D communication;
a data transmission unit, configured to perform transmission of traffic data with the first UE and the second UE using the traffic connection context after the first UE and the second UE switch from the D2D communication to cellular communication.
The user equipment provided by the embodiment of the invention comprises:
a sending unit, configured to send, to a base station, a measurement report related to end-to-end D2D during cellular communication between a user equipment UE and another UE;
a receiving unit, configured to receive a configuration message sent by the base station in response to the measurement report, where the UE and another UE perform D2D communication;
a reserving unit, configured to reserve a service connection context established with the base station when the UE performs cellular communication after performing D2D communication connection with the another UE according to the configuration message, and transmit service data in the D2D communication; and after the UE switches from the D2D communication to a cellular communication, using the traffic connection context for transmission of traffic data with a base station.
As can be seen from the foregoing technical solutions, in the service processing method, the base station, and the user equipment according to the embodiments of the present invention, when it is determined that the first UE and the second UE can perform D2D communication according to the measurement report related to D2D sent by the first UE and the second UE in cellular communication, configuration messages are sent to the first UE and the second UE, so that the first UE and the second UE establish a D2D communication connection, and after the first UE and the second UE are switched from cellular communication to D2D communication, the base station retains a service connection context for the first UE and the base station communication, and a service connection context for the second UE and the base station communication, so that the first UE and the second UE use the service connection context to perform service data transmission when the first UE and the second UE are switched from D2D communication to cellular communication; and then, the service data between the two UEs can be switched between D2D communication and cellular communication, the uninterrupted service data can be ensured, the load of a base station is reduced, and the resources of a cellular network are effectively saved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings needed to be used in the examples, obviously: the following drawings are only drawings of some embodiments of the invention, and for those skilled in the art, other drawings capable of realizing the technical scheme of the invention can be obtained according to the drawings without creative efforts.
Fig. 1 is a scene diagram applied to the service processing method of the present invention;
fig. 2 is a scenario diagram of the handover of the user equipment of the present invention between D2D communication and cellular communication;
fig. 3 is a schematic flow chart of a service processing method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a service processing method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a service processing method according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a service processing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a base station according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a user equipment according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is clear that the various embodiments described below are only some of the embodiments of the invention. Based on the embodiments of the present invention described below, even if no creative work is done, a person skilled in the art can obtain other embodiments capable of solving the technical problems of the present invention and achieving the technical effects of the present invention by equivalent transformation of part or even all of the technical features, and it is obvious that the various embodiments transformed by the present invention do not depart from the scope of the present invention.
The embodiment of the invention is applied to long term evolution (LTE for short) and 2G/3G networks. Taking an LTE scenario as an example, referring to fig. 1 and fig. 2, wherein UE3 and UE2 communicate with a network side base station respectively, and UE2 and UE3 may also communicate directly, and the two communications may use the same resource (e.g., spectrum resource); the direct communication mode between the UE2 and the UE3 is a D2D communication mode, and resources used by the UE2 and the UE3 are allocated by a base station.
Generally, the security of the LTE system is implemented in a Packet Data Convergence Protocol (PDCP) layer, where the PDCP layer includes two parts, namely, a ciphering part and an integrity protection part, where traffic data only implements ciphering, and signaling data implements two kinds of security protection, namely, ciphering and integrity protection, and D2D communication between the UE2 and the UE3 in the embodiment of the present invention only involves transmission of the traffic data and does not involve transmission of the signaling data.
The service data interaction between two UEs in the embodiment of the present invention is firstly UE 2-base station-UE 3, and when the signal quality (such as transmission power) of UE2 and UE3 can meet the condition of D2D communication, the base station issues a configuration message to UE2 and UE3, so that UE2 and UE3 establish communication connection to directly transfer the service data.
In the following embodiments, UE2 in fig. 1 is defined as a first UE, and UE3 in fig. 1 is defined as a second UE. The first UE may send service data to the second UE, and may also receive the service data sent by the second UE.
Example one
Fig. 3 is a schematic flow chart illustrating a service processing method according to an embodiment of the present invention, and as shown in fig. 3, the service processing method in this embodiment is described below.
301. The base station receives measurement reports related to D2D sent by the first UE and the second UE, respectively.
For example, the measurement report corresponding to the first UE may include: the transmit power or signal quality of the second UE, etc.; the measurement report corresponding to the second UE may include: the transmit power or signal quality of the first UE, etc.
302. And the base station determines that the first UE and the second UE in cellular communication reach the D2D communication condition according to the measurement report, and respectively sends configuration messages for configuring D2D communication to the first UE and the second UE, wherein the configuration messages are used for carrying out D2D communication connection by the first UE and the second UE.
The D2D communication condition may be that the transmission power of the first UE and/or the second UE both reach a preset threshold.
Or,
the D2D communication conditions include the first UE measuring that the signal quality of the second UE satisfies the D2D communication requirements, and/or the second UE measuring that the signal quality of the first UE satisfies the D2D communication requirements.
The configuration message here includes, for example: control information and security parameters required to establish a D2D communication connection for transmitting traffic data.
Further, the control information may include: indicating uplink and downlink in the D2D communication; or the base station indicates one of the first UE and the second UE as a master UE and the other one as a slave UE, and the data from the master UE to the slave UE is determined to be uplink in the D2D communication.
Or, in other embodiments, one of the first UE and the second UE is indicated as a master UE, and the other is indicated as a slave UE, and the data from the master UE to the slave UE is determined to be downlink in the D2D communication.
In particular, the above-mentioned master UE may be understood as a virtual base station, and in this case, data transmitted by the virtual base station to another UE is downlink. For example, the base station indicates one of the first UE and the second UE as a virtual base station to determine uplink and downlink in the D2D communication.
Through the determination of uplink and downlink, two transmission directions of two UEs in D2D communication can be distinguished as uplink and downlink.
Of course, in practical application, the uplink and downlink may also be determined according to a certain rule, for example, the data from the sending end to the receiving end is uplink, and vice versa.
In other embodiments, the control information may further include: time-frequency resources of service data, D2D communication identification, and the like.
The security parameters in this step may include one or more of the following: keys for D2D communication, parameters for generating keys for D2D communication, security algorithm for D2D communication, bearers for D2D communication, uplink and downlink indications for D2D communication, COUNT value for COUNT of D2D communication.
303. And after the first UE and the second UE are switched from the cellular communication to the D2D communication, reserving service connection contexts respectively established with the base station when the first UE and the second UE carry out the cellular communication.
304. After the first UE and the second UE switch from the D2D communication to the cellular communication, the reserved traffic connection context is used for transmission of traffic data with the first UE and the second UE.
That is, the traffic connection context of each UE reserved by the base station is used to transmit traffic data transmitted through the base station in switching from the D2D communication back to the cellular communication, so that the transmission of the traffic data is not interrupted when two UEs are switched to each other in the D2D communication and the cellular communication.
Further, the base station reserves a service connection context of the first UE communicating with the base station, that is, reserves a first security parameter in the service connection context when the first UE communicates with the base station. For example, the first security parameters may include: a first security algorithm, a first key, a first bearer, etc. of the first UE in cellular communication;
accordingly, the base station reserves the service connection context of the second UE communicating with the base station, that is, reserves the second security parameter in the service connection context when the second UE communicates with the base station. For example, the second security parameters may include: a second security algorithm, a second key and a second bearer, etc. for the second UE in cellular communication.
Preferably, the first security parameter further comprises: the counting value of the first UE in the cellular communication, the corresponding configuration of each layer of the protocol stack and the like; the second security parameters further include: a COUNT value of a COUNT of the second UE in the cellular communication, a configuration corresponding to each layer of the protocol stack, and the like.
It should be noted that the bearer in the security parameters of the configuration message in step 302 (i.e., the bearer in the D2D communication) may be consistent with the first bearer used by the first UE in the cellular communication, or may be consistent with the second bearer used by the second UE in the cellular communication. For example, if the control information of the configuration message indicates that the first UE is the virtual base station and the second UE is the terminal, the bearer in the security parameters of the configuration message may be consistent with the second bearer used by the second UE in cellular communication.
In the prior art, each of the UE2 and the UE3 (shown in fig. 1) and the eNB in cellular communication has a set of security parameters, which are used for encrypted transmission of traffic data in cellular communication, and the two sets of security parameters (i.e., the security parameters of the UE2 and the eNB, and the security parameters of the UE3 and the eNB) are not related to each other.
In D2D communication, a set of security parameters is negotiated between UE2 and UE 3. If the same service needs to be switched between D2D communication and cellular communication and the service is guaranteed to be uninterrupted, it is necessary for the base station to reserve some security parameters in the original cellular communication for the UEs 2 and 3 implementing D2D communication.
Currently, for each UE, the base station configured security parameters may include: KEY, COUNT (COUNT value of counter), DIRECTION (uplink and downlink indication), BEARER, etc. In addition, another security algorithm is based on UE capability, and the security algorithm supported by each UE is constant and does not change. When a UE enters a Radio Resource Control (RRC) connection mode, an eNB needs to configure security parameters for each UE, so that the UE and the eNB start to perform secure interaction on service data.
Wherein KEY is a KEY calculated locally according to parameters transferred by the network, and the COUNT value is equivalent to a counter value used for counting packets of PDCP (packet data convergence protocol) layer ciphered data. Generally, the COUNT value includes two components, such as an HFN value representing a high bit and an SN value representing a low bit, direct is an uplink and downlink indication, and BEARER is a BEARER.
It should be noted that the HFN value and the SN value in the COUNT value here are existing contents, and the present embodiment will not be described in detail.
As can be seen from the foregoing embodiments, in the traffic processing method of this embodiment, when it is determined that the first UE and the second UE are capable of performing D2D communication according to the measurement report related to D2D sent by the first UE and the second UE in cellular communication, sending a configuration message to the first UE and the second UE, so that the first UE and the second UE establish a D2D communication connection to transmit traffic data, and after the first UE and the second UE switch from cellular communication to D2D communication, the base station retains a traffic connection context of the first UE communicating with the base station and a traffic connection context of the second UE communicating with the base station, so that the first UE and the second UE use the above traffic connection context to perform traffic data transmission when switching from D2D communication to cellular communication; (ii) a And then, the service data between the two UEs can be switched between D2D communication and cellular communication, the uninterrupted service data can be ensured, the load of a base station is reduced, and the resources of a cellular network are effectively saved.
Example two
Fig. 4 shows a flowchart of a service processing method according to an embodiment of the present invention, and as shown in fig. 4, the service processing method in this embodiment is described below.
401. The base station receives measurement reports related to D2D sent by the first UE and the second UE respectively; and the base station determines that the first UE and the second UE in the cellular communication reach the D2D communication condition according to the measurement report, and respectively sends configuration messages for configuring the D2D communication to the first UE and the second UE, wherein the configuration messages are used for carrying out the D2D communication connection by the first UE and the second UE.
402. The base station retains a traffic connection context, e.g., a first security parameter in the traffic connection context, of the first UE communicating with the base station and retains a traffic connection context, e.g., a second security parameter in the traffic connection context, of the second UE communicating with the base station after the first UE and the second UE switch from cellular communication to D2D communication, and further uses the traffic connection context for transmission of traffic data with the first UE and the second UE after the first UE and the second UE switch from D2D communication to cellular communication.
403. When the first UE and the second UE switch from D2D communication to cellular communication, the first UE and the second UE respectively reserve the D2D connection context used in D2D communication, for example, reserve the security parameters of D2D communication in the D2D connection context, so that the first UE and the second UE switch from cellular communication to D2D communication using the reserved security parameters of D2D communication for transmission of traffic data.
That is, the base station switches the first UE and the second UE from the cellular communication to the D2D communication again, and performs transmission of traffic data using the D2D connection context used in the D2D communication respectively reserved by the first UE and the second UE.
404. After the first UE and the second UE switch from D2D communication to cellular communication, if the first UE and the second UE respectively reserve the D2D connection used by the first UE and the second UE in D2D communication for the next day,
at this time, the base station receives a communication message sent by the first UE to the base station through the service connection context reserved by the first UE, wherein the communication message carries information that the first UE reserves the D2D connection context;
instructing the first UE and the second UE to use the D2D connection context for the transmission of the traffic data when the first UE and the second UE again switch from the cellular communication to the D2D communication.
In other embodiments, the base station may also send, by the second UE, a communication message to the base station through a service connection context reserved by the second UE, where the communication message carries information that the second UE reserves the D2D connection context; and further instructing the first UE and the second UE to use the D2D connection context for transmission of the traffic data when the first UE and the second UE switch from the cellular communication to the D2D communication again.
Or, the base station receives the communication messages respectively sent by the first UE and the second UE at the same time.
In another application scenario, the measurement report related to D2D sent by the first UE to the base station carries an identification of the security parameters of the reserved D2D communication. Alternatively, the D2D related measurement report sent by the second UE to the base station carries the identity of the security parameters of the reserved D2D communication.
In addition, when the traffic data transmitted between the first UE and the second UE is switched from the D2D communication to be transmitted through the base station (i.e., cellular communication), the first UE and the second UE may transmit the partial security parameters of the traffic data to the base station by carrying them in the communication message, for example, the transmitted partial security parameters may include one or more of the following combinations: a count (SN) value of a Packet Data Convergence (PDCP) layer; a count (HFN) value of a Packet Data Convergence (PDCP) layer.
The COUNT (SN) value and/or the COUNT (HFN) value at this point constitute the COUNT value of the counter.
It should be noted that if only the HFN value is carried by the transmitted partial security parameter, the SN value is cleared, and in practical applications, if both the HFN value and the SN value are carried by the transmitted security parameter, the SN value may also be cleared.
For example, the base station may receive a communication message sent by a first UE through the reserved first security parameters between the first UE and the base station, and/or receive a communication message sent by a second UE through the reserved second security parameters between the second UE and the base station; and enabling cellular communication between the first UE and the second UE according to the communication message. The communication message carries the SN value of the PDCP layer and/or the HFN value of the PDCP layer, and information for reserving the D2D connection context.
The above-mentioned interaction of traffic data between the two UEs may be switched between cellular communication and D2D communication.
In practical applications, the COUNT values of the counters in the security parameters between the first UE and the second UE in the cellular communication network and the base station may be continuously continued, for example, when the first UE performs D2D communication with the second UE, the COUNT values of the counters in the cellular communication are retained, and after the first UE and the second UE switch from D2D communication to cellular communication, the COUNT values of the counters retained in the cellular communication may be used for subsequent changes.
Correspondingly, the COUNT value of the counter in the security parameter of the D2D communication between the first UE and the second UE in the D2D communication may also be continued intermittently.
In another embodiment, the first UE and the second UE transmit a traffic data via D2D communication, cellular communication, when the counter COUNT value may be extended jointly in D2D communication, cellular communication.
For example, the first UE carries the COUNT value of the counter of the D2D communication in a communication message sent with the first security parameters between the first UE and the base station reserved by the base station when switching from the D2D communication to the cellular communication;
correspondingly, the second UE may also carry the COUNT value of the counter of D2D communication in a communication message sent by the second security parameter between the second UE and the base station, where the communication message is reserved by the base station; and
when the first UE and the second UE switch from the cellular communication to the D2D communication, the COUNT value of the counter of the first UE in the cellular communication or the COUNT value of the counter of the second UE may be carried in the security parameters of the D2D communication of the configuration message.
In practical applications, when the first UE and the second UE switch from the D2D communication to the cellular communication, the first UE and the second UE may no longer reserve the D2D connection context used in the D2D communication, such as the security parameters of the D2D communication described above. For example, when the first UE and/or the second UE detect that the D2D communication conditions of the current first UE and second UE are not satisfied, the first UE and the second UE may no longer retain the D2D connection context used in the D2D communication, such as the security parameters of the D2D communication described above.
Further, in other embodiments, if the first UE and the second UE switch from the D2D communication to the cellular communication, the first security parameter corresponding to the first UE and the second security parameter corresponding to the second UE are not reserved in the cellular communication, the base station needs to establish the security parameters corresponding to the first UE and the second UE respectively to be handled as a new service, at this time, the service of the last communication through D2D is terminated or interrupted, and the COUNT value of the COUNT in the new service starts a new COUNT.
As can be seen from the foregoing embodiments, the service processing method of this embodiment implements switching of service data between two UEs between D2D communication and cellular communication, ensures that the service data is not interrupted, reduces the load of the base station, and effectively saves resources of the cellular network.
EXAMPLE III
Fig. 5 is a flowchart illustrating a service processing method according to an embodiment of the present invention, and as shown in fig. 5, the service processing method in this embodiment is described below.
501. In the process of cellular communication between a first UE and a second UE, a base station receives a first measurement message sent by the first UE and a second measurement message sent by the second UE, wherein the first measurement message comprises: a signal quality of the second UE; the second measurement message includes: a signal quality of the first UE.
For example, the signal quality at this point may be information of transmission power, reception power, and the like.
502. If the base station determines that the signal quality of the first UE and the signal quality of the second UE in cellular communication reach preset threshold values, the base station respectively sends configuration messages for configuring D2D communication to the first UE and the second UE, and the configuration messages are used for D2D communication connection by the first UE and the second UE.
503. The base station maintains the traffic connection context of the first UE communicating with the base station and the traffic connection context of the second UE communicating with the base station after the first UE and the second UE switch from cellular communication to D2D communication.
Typically, the base station retains a first security parameter in a traffic connection context where a first UE communicates with the base station, and retains a second security parameter in a traffic connection context where a second UE communicates with the base station.
For example, the base station reserving the first security parameters for the first UE to communicate with the base station includes: a first security algorithm, a first key and a first bearer;
the base station reserving a second security parameter for the second UE to communicate with the base station comprises: a second security algorithm, a second key, and a second bearer.
Preferably, the first security parameter further comprises: a COUNT value of a COUNT of the first UE in the cellular communication; the second security parameters further include: a COUNT value of a COUNT of the second UE in the cellular communication.
504. After the first UE and the second UE switch from the D2D communication to the cellular communication, the traffic data is transmitted with the first UE and the second UE using the traffic connection context, and
the first UE and the second UE respectively reserve the security parameters used in the D2D communication, so that the first UE and the second UE use the reserved security parameters of the D2D communication for the transmission of the traffic data when switching from the cellular communication to the D2D communication.
Specifically, the first UE and the second UE respectively reserve security parameters used in D2D communication, including: a security algorithm for D2D communication, a key for D2D communication, and a bearer for D2D communication.
Preferably, the first UE and the second UE respectively reserve security parameters used in D2D communication, and further include: COUNT value of the COUNT of D2D communications.
Optionally, in another application scenario, the service processing method described above may further include steps 505 and 506, which are not shown in fig. 5 as follows.
505. When the first UE and the second UE switch from cellular communication to D2D communication, the base station sends a message to the core network including the first UE and the second UE entering D2D communication.
This step is used to illustrate that the base station informs the core network that two UEs enter D2D, which may reduce charging, etc.
506. When the first UE and the second UE switch from D2D communication to cellular communication, the base station sends a message to the core network including the first UE and the second UE entering cellular communication.
It should be further noted that, if the service between the first UE and the second UE is ended in the D2D communication, the first UE and the second UE no longer maintain the D2D connection context;
correspondingly, the base station also needs to receive a notification message of service end between the first UE and the second UE, which is sent by the first UE and/or the second UE through the service connection context reserved by the first UE and/or the second UE;
at this time, the base station releases the reserved service connection contexts corresponding to the first UE and the second UE, such as the contents of the first security parameter and the second security parameter, according to the notification message. That is, the base station releases the service connection context reserved for the first UE and the second UE according to the notification message.
Of course, in the cellular communication, if the service between the first UE and the second UE is finished and both the first UE and the second UE have the D2D connection context, correspondingly, the UE at the transmitting end sends a service end message to both the base station and the UE at the receiving end, so that the base station releases the corresponding service connection context, the receiving end releases the corresponding service connection context, the D2D connection context, and the like.
For example, the UE at the sending end sends a service end message to the base station through the corresponding service connection context; and the UE at the sending end sends a message of service end to the UE at the receiving end through the D2D connection context.
It can be known from the foregoing embodiments that, the service processing method of this embodiment can effectively implement that the interaction of service data between two UEs can be switched between D2D and cellular communication, and the service process is not interrupted.
Example four
601. During cellular communication of the UE with another UE, the UE sends a measurement report related to D2D to the base station.
602. The UE receives a configuration message sent by the base station in response to the measurement report that the UE and the other UE are in D2D communication.
The configuration message in this embodiment includes: control information and security parameters required to establish the D2D communication connection for transmitting traffic data.
For example, the control information includes: indicating uplink and downlink in the D2D communication; or the base station indicates the UE or the other UE as the master UE and the slave UE, and determines that the data from the master UE to the slave UE is uplink/downlink in D2D communication; or the base station indicates the UE or the other UE as a virtual base station, the data sent by the virtual base station to the other UE is downlink data, and the data sent by the other UE to the virtual base station/the main UE is uplink data.
Of course, in practical applications, the control information may also determine the uplink and downlink according to a certain rule, for example, the data from the originating end to the receiving end is the uplink in the D2D communication, and vice versa is the downlink in the D2D communication.
The security parameters in the configuration message include one or more of the following items: keys for D2D communication, parameters for generating keys for D2D communication, security algorithm for D2D communication, bearers for D2D communication, uplink and downlink indications for D2D communication, COUNT value for COUNT of D2D communication.
It should be noted that the bearer of D2D communication in the security parameters of the configuration message is consistent with the bearer used by the UE in cellular communication, or the bearer of D2D communication in the security parameters of the configuration message is consistent with the bearer used by another UE in cellular communication.
603. After the UE performs D2D communication connection with another UE according to the configuration message, reserving a service connection context established with the base station when the UE performs cellular communication, and transmitting service data in D2D communication, an
After the UE switches from D2D communication to cellular communication, the traffic data is transmitted with the base station using the traffic connection context.
Further, after the UE switches from the D2D communication to the cellular communication again, the traffic processing method further includes the following step 604 not shown in fig. 6.
604. The UE retains the D2D connection context used in the D2D communication; after the UE again switches from cellular communication to D2D communication, the traffic data is transmitted using the D2D connection context.
Of course, the UE retains the D2D connection context used in the D2D communication including security parameters, security parameters for the D2D communication.
The security parameters of D2D communication in this embodiment include: a security algorithm for D2D communication, a key for D2D communication, and a bearer for D2D communication; alternatively, the security parameters of D2D communication include: a security algorithm for D2D communications, a key for D2D communications, a bearer for D2D communications, and a COUNT value for a COUNT of D2D communications.
Preferably, the service processing method further includes step 605 not shown in the figure.
605. After the UE again switches from D2D communication to cellular communication, the UE retains the D2D connection context used in D2D communication; the UE sends a communication message to the base station through the reserved service connection context, wherein the communication message carries the information that the D2D connection context is reserved by the UE;
after the UE is switched to the D2D communication from the cellular communication again, the traffic data is transmitted by using the D2D connection context according to the indication of the base station.
Further, if the service between the UE and the other UE is ended in the D2D communication, the UE sends a notification message of the end of the service between the UE and the other UE to the base station through the reserved service connection context, where the notification message is a message used by the base station to release the corresponding reserved service connection context, so as to notify the base station to release the reserved service connection context.
Of course, in cellular communication, if the service between the first UE and the second UE is ended and both the first UE and the second UE retain the D2D connection context, correspondingly, the UE at the transmitting end needs to send a service end message to the UE at the receiving end through the retained D2D connection context, so that the UE at the receiving end releases the corresponding D2D connection context, and so on.
It can be known from the foregoing embodiments that the service processing method of this embodiment can effectively implement that the interaction of service data between two UEs can be switched between D2D and cellular communication, and the service process is not interrupted.
EXAMPLE five
According to another aspect of the present invention, the present invention further provides a base station, as shown in fig. 7, the base station including: a receiving unit 71, a determining unit 72, a transmitting unit 73, a holding unit 74, and a data transmitting unit 75;
the receiving unit 71 is configured to receive measurement reports related to D2D sent by the first UE and the second UE, respectively; the determining unit 72 is configured to determine whether the first UE and the second UE in cellular communication reach the D2D communication condition according to the measurement report; the sending unit 73 is configured to send, if the determining unit 72 determines that the first UE and the second UE reach the D2D communication condition, a configuration message configuring D2D communication to the first UE and the second UE, respectively, where the configuration message is used by the first UE and the second UE for D2D communication connection; the reserving unit 74 is configured to reserve service connection contexts respectively established with the base station when the first UE and the second UE perform cellular communication after the first UE and the second UE switch from the cellular communication to the D2D communication; the data transmission unit 75 is configured to perform transmission of traffic data with the first UE and the second UE using the traffic connection context after the first UE and the second UE switch from the D2D communication to the cellular communication.
The determination unit 72 in this embodiment may be a hardware processor.
Further, the reserving unit 74 is specifically configured to reserve a first security parameter in a service connection context when the first UE communicates with the base station, and reserve a second security parameter in the service connection context when the second UE communicates with the base station.
The configuration information includes: control information and security parameters required to establish the D2D communication connection for transmitting traffic data.
For example, the control information may include: indicating uplink and downlink in the D2D communication; or, one of the first UE and the second UE is indicated to be a master UE, and the other UE is indicated to be a slave UE, and the data from the master UE to the slave UE is determined to be uplink in D2D communication; or, one of the first UE and the second UE is indicated to be a master UE, the other UE is indicated to be a slave UE, and the data from the master UE to the slave UE is determined to be downlink in D2D communication; or, one of the first UE and the second UE is indicated as a virtual base station to determine uplink and downlink in the D2D communication.
The security parameters include one or more of the following: keys for D2D communication, parameters for generating keys for D2D communication, security algorithm for D2D communication, bearers for D2D communication, uplink and downlink indications for D2D communication, COUNT value for COUNT of D2D communication.
In particular, the bearer for D2D communication is consistent with a first bearer used by the first UE in cellular communication, or the bearer for D2D communication is consistent with a second bearer used by the second UE in cellular communication.
Of course, the aforementioned reservation unit 74 is also used for, after the first UE and the second UE switch from the D2D communication to the cellular communication, if the first UE and the second UE respectively reserve the D2D connection context used by the first UE and the second UE in the D2D communication,
correspondingly, the receiving unit 71 is further configured to receive a communication message sent by the first UE to the base station through the corresponding reserved service connection context, where the communication message carries information that the first UE reserves the D2D connection context;
and/or
Receiving a communication message sent by the second UE to the base station through the corresponding reserved service connection context, wherein the communication message carries information that the second UE reserves the D2D connection context;
instructing the first UE and the second UE to use the D2D connection context for the transmission of the traffic data when the first UE and the second UE again switch from cellular communication to D2D communication.
It should be noted that, the D2D connection context includes: security parameters of D2D communication; for example, the security parameters of D2D communication include: a security algorithm for D2D communication, a key for D2D communication, and a bearer for D2D communication; alternatively, the security algorithm of the D2D communication, the key of the D2D communication, the bearer of the D2D communication, and the COUNT value of the COUNT of the D2D communication.
Further, the base station may further include: a releasing unit, configured to receive a notification message of service termination between the first UE and the second UE, sent by the first UE and/or the second UE through a service connection context reserved by the first UE and/or the second UE, and release the reserved service connection context reserved with the first UE and the second UE according to the notification message.
It can be known from the foregoing embodiments that the base station of this embodiment can implement that the interaction of service data between two UEs can be switched between D2D and cellular communication, and the service process is not interrupted.
EXAMPLE six
According to another aspect of the present invention, the present invention further provides a user equipment, as shown in fig. 8, the user equipment of this embodiment includes: a transmitting unit 81, a receiving unit 82, and a holding unit 83;
wherein, the transmitting unit 81 is configured to transmit a measurement report related to D2D to the base station during cellular communication between the UE and another UE; the receiving unit 82 is configured to receive a configuration message of D2D communication between the UE and another UE, which is sent by the base station in response to the measurement report; the reserving unit 83 is configured to reserve a service connection context established by the UE during cellular communication with the base station after D2D communication connection with another UE according to the configuration message, and transmit service data in D2D communication; and the UE performs transmission of traffic data with the base station using the traffic connection context after switching from D2D communication to cellular communication.
The reservation unit 83 in this embodiment may be a hardware wireless Transceiver (Transceiver).
Preferably, the reserving unit is further configured to reserve the D2D connection context used in the D2D communication after the UE switches from the D2D communication to the cellular communication again;
correspondingly, the sending unit 81 is further configured to send a communication message to the base station through the reserved service connection context, where the communication message carries information that the UE reserves the D2D connection context; after the UE is switched to the D2D communication from the cellular communication again, the traffic data is transmitted by using the D2D connection context according to the indication of the base station.
For example, the D2D connection context described above may include: security parameters in D2D communications.
The user equipment may further include: a notification unit, configured to send, to the base station through the reserved service connection context, a notification message of service termination between the UE and the another UE to notify the base station to release the reserved service connection context.
It can be known from the foregoing embodiments that the user equipment of this embodiment can implement that the interaction of service data between two UEs can be switched between D2D and cellular communication, and the service process is not interrupted.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.