When it is implemented, eNB1 can be during direct communication path be established, by measurement request hair for UE1 and UE2
Give UE1.For example eNB1 is after UE1 distributes direct communication path resources, and measurement request is carried on and is sent to being used for for UE1
Notify to be sent to UE1 in the message of direct communication resource;Or eNB1 can establish direct communication path for UE1 and UE2
During, measurement request is sent to UE1 by dedicated signaling.ENB1 can also will establish direct communication road knowing UE1 and UE2
During footpath, measurement request is sent to UE1 by dedicated signaling.
Include UE2 mark, and measurement configuration information in measurement request.Measurement configuration information includes measuring door
Limit, time of measuring interval(Such as measurement period), measurement event, measurement report the measurement parameters such as parameter.Wherein, measuring thresholding can be with
It is the parameter for characterizing signal intensity, when the intensity of the signal for the UE2 that UE1 is received is less than the measurement thresholding, it is necessary to trigger straight
Connect letter path switching process.ENB1 can set measurement to join according to the attribute for the direct communication business established between UE1 and UE2
Number, such as, the direct communication that video calling is kept in the range of 100 meters is allowed between UE1 and UE2, then eNB1 by UE at a distance of 100
Rice apart from when received signal strength empirical value, be arranged to measurement thresholding corresponding to video call service.
Further, two or more business configuration measurement parameter can be directed in measurement configuration information.Such as
In the case that the direct communication business established between UE1 and UE2 includes video call service and voice conversation business, eNB1 difference
For video call service and voice conversation business configuration measurement parameter.Specifically, eNB1 obtains video call service and speech
The communication distance that talk business is allowed:Allow the direct communication that video calling is kept in the range of 100 meters between UE1 and UE2,
The direct communication of voice conversation is kept in the range of 500 meters;By the distance that the direct communication of voice conversation business is allowed is big
In video call service, thus eNB1 be measurement thresholding that voice conversation business is set be less than be video call service setting survey
Measure thresholding, be measurement period that voice conversation business is set be more than be video call service setting measurement period, so can be with
Ensure to switch for the video call service triggering direct communication path of rdativery sensitive in time.
It should be noted that eNB1 can be from HSS(Home Subscriber Server)Obtain UE1 or/and UE2 label
About information, direct communication business rule information or the configuration information according to application layer either are obtained from business rule server,
Or the QoS of carrying is established from UE(Quality of Service, service quality)Information, obtain and establish between UE1 and UE2
The attribute information of direct communication business.
Further, eNB1 can also send measurement updaue request to UE1, to ask to update measurement parameter.For example, UE1
Either UE2 some signing informations change or the attribute of direct communication changes, or the setting hair of some application layers
It is raw to change, it is likely to influence the direct communication path hold mode between UE1 and UE2.For such case, eNB1 to
UE1 sends measurement updaue request, to update the configuration of measurement of correlation parameter to meet the needs of current.For example, UE1 and UE2 it
Preceding permission keeps the direct communication of video calling in the range of 100 meters, and because the influence of some factors, UE1 are present with UE2
Only allow the direct communication that video calling is kept in the range of 50 meters, then video calling industry is improved according to this change, eNB1
Thresholding is measured corresponding to business, shortens measurement period corresponding to video call service, and measurement updaue request message is sent to UE1,
Wherein carry the measurement parameter after renewal.
UE1 carries out signal detection according to measurement configuration information thereon to UE2, directly logical according to signal detecting result triggering
Believe path switching, its flow can be as shown in Figure 3.
Referring to Fig. 3, flow is switched for the direct communication path provided in an embodiment of the present invention based on terminal measurement, the flow
It may include:
Step 301:UE1 is according to the signal between measurement configuration information measurement thereon and UE2;
Step 302:UE1 measures when the meeting path switching condition of signal of UE2 transmissions, initiates from direct communication path
To the path switching process in core network communications path.Wherein, when the measurement thresholding in measurement configuration information is sign signal intensity
Parameter when, if UE1 measure UE2 transmission signal intensity less than measurement thresholding, that is, mean to meet path switching bar
Part, so as to initiate the path switching process from direct communication path to core network communications path.
Further, after step 302, after UE1 and UE2 completes the path switching of direct communication path, can also wrap
Include following steps:
Step 303:The interface-free resources of direct communication path between UE1 and UE2 releases UE1 and UE2, and it is direct to delete this
The contextual information of communication path.
In above-mentioned flow, from direct communication path to the path switching process in core network communications path, can as shown in figure 4,
Comprise the following steps:
Step 401:UE1, towards UE2 transmitting path switching request message, asks UE2 by the control between UE1 and UE2
Data flow on direct communication path is switched to core network communications path.
Step 402:UE1 and UE2 is respectively the carrying that the data flow selection on direct communication path passes through core network.
Step 403:After data flows of the UE2 on for direct communication path determines the carrying by core network, to UE1
Return path switches response message.
Step 404:UE1 and UE2 difference execution route reversed processes, i.e. map the data flow on direct communication path
Onto the bearer connection by core network determined.
Because the data flow carrying of different business allows the scope difference using direct communication path, therefore carrying out directly
When communication path is switched, path switching targetedly can be carried out to the data flow on direct communication path.For example, user may
Signing allows to transmit video call service using direct communication path in the range of 100 meters, it is allowed to using straight in the range of 500 meters
Letter path transmission voice conversation business is connected, then when UE1 and UE2 are moved to the 200 meters of scopes in interval, video call service will not
It can be transmitted using direct communication path, and voice conversation business still can be transmitted using direct communication path.
For case above, in the step 401 of above-mentioned flow, UE1 is probably to the path switching request message that UE2 is sent
Data flow on all direct communication paths is switched to core net path by request, it is also possible to which request is by direct communication road
Partial data stream on footpath is switched to core net path, therefore is carried in the path switching request message that UE1 is sent to UE2
Need mark or the stream identification list of the data flow of path switching.The mark of described data flow can be the mark of carrying
TFT in knowledge or a certain carrying(Traffic Flow Template, traffic flow template)The information such as mark.Accordingly
, in step 402, the mark for the data flow that UE1 and UE2 are safeguarded according to demand respectively, determine to pass through for corresponding data flow
The carrying of core network.For example UE1 measures door from the intensity of the UE2 signals received less than corresponding to video call service
Limit but measurement thresholding corresponding higher than voice conversation business, showing the data flow of video call service needs from direct communication path
Core network communications path is switched to, and direct communication path transmission still can be used in the data flow of voice conversation business, therefore UE1 will
The mark of the data flow of video call service is carried on path switching request message and is sent to UE2.
In the step 402 of above-mentioned flow, UE1 or UE2 are in the number it is determined that during by the carrying of core net, switched if desired
It can be mapped in the existing bearer connection by core net according to stream, then the existing bearer connection by core net of UE selections passes
The defeated data flow for needing to switch;The data flow switched if desired can not be mapped to the existing carrying by core net and connect
Connect, then UE initiates new bearing activation process to the network entity serviced, current to swash to activate the carrying by core net
Core living is net loaded described to need the data flow switched for transmitting.
For example the carrying 1 of direct communication is established between UE1 and UE2, while also maintain and hold between UE1 and core net
Carry the connection of 2 and carrying 3.When UE1 needs data flow 1 being switched on core net path, UE1 judges that data flow 1 whether may be used
To be mapped in current carrying 2 or carrying 3.Its criterion is primarily to see APN corresponding to data flow 1(Access Point
Name, access point name), data flow 1 QoS attributes or data flow 1 TFT whether with carried 2 or carrying 3 match,
If matching, data flow 1 can be mapped in the carrying to match by confirmation.
If data flow 1 can use the transmission of carrying 2, but not have 1 corresponding TFT of data flow in carrying 2, then UE is initiated
To the modification process of carrying 2, increase the TFT of data flow 1, carried so as to which data flow 1 be associated with 2.
If data flow 1 can not use carrying 2 or carrying 3 transmission, UE to initiate core net carrying establish or
Process is established in person PDN connections, and carrying 4 is established for data flow 1, so as to which data flow 1 is associated with carrying 4.
In the step 404 of above-mentioned flow, UE is selected by core network by the way that local data flow is associated with
In carrying, so as to which the data flow on direct communication path is mapped in the selected bearer connection by core network.
Such as can be by by the IP five-tuple information of data flow(IP five-tuples can unique identification data stream, IP five-tuples generally include source
IP address, source port, purpose IP address, destination interface, transport layer protocol number)Or other information that can be identified for that data flow are with leading to
The mark for crossing the carrying of core network establishes incidence relation, selected passes through core net so as to which local data flow be associated with
In the carrying of transmission.
By foregoing description as can be seen that the embodiment of the present invention realizes direct communication road by the measurement based on terminal
Path switching of the footpath to core network communications path.In addition, Business Stream road between direct communication path and core network communications path
Footpath protection switching process, the business data flow of other activation is not impacted.
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of terminal device.
Referring to Fig. 5, for the structural representation of terminal device provided in an embodiment of the present invention, the terminal device may include:Survey
Module 51, path switching judging module 52, path switching module 53 are measured, further, may also include measurement configuration module 54, its
In:
Configuration module 54 is measured, when this terminal device is service conversation initiator's terminal device, receives the initiator
The measurement request that the resident base station of terminal is sent, measurement configuration information and the direct-connected communication industry are carried in the measurement request
The mark of the receiving side terminal of business session;
Measurement module 51, for corresponding with the mark of the receiving side terminal according to the measurement request received, measurement
Signal between receiving side terminal;
Path switching judging module 52, judgement is switched for carrying out direct communication path according to measurement result;
Path switching module 53, for needing to perform direct communication path in the path switching judging module 52 judgement
When switching, the path switching process from direct communication path to core network communications path is initiated.
Specifically, measurement configuration module 54 passes through during direct communication path is established with the receiving side terminal
Receive the specific messages of the resident base station transmission of initiator's terminal or indicate direct communication path for initiator's terminal
The message of resource, receive measurement request.
Specifically, path switching thresholding is configured with the measurement configuration information.Accordingly, path switching judging module 52
When the intensity for measuring the signal that the receiving side terminal is sent is less than path switching thresholding, judgement needs to perform direct communication
Path switching.
Specifically, in the measurement configuration information, corresponding measurement configuration information is configured with for different type services.
Accordingly, the measurement configuration information according to corresponding to all types of business of path switching module 53, the receiving side terminal hair is measured
When the intensity of the signal for the first business sent is less than the path switching thresholding of the first business, judgement is needed the data of the first business
Stream is switched to core network communications path from direct communication path.
Specifically, path switching module 53 is specifically used for, to the receiving side terminal transmitting path switching request, and for
Data flow on direct communication path between the receiving side terminal determines the carrying by core network, wherein, it is described
Path switching is asked for asking the receiving side terminal to be switched to the direct communication path between described sender terminal
Core network communications path;, will be with institute after path switching module 53 receives the path switching response that the receiving side terminal returns
State the data flow on the direct communication path between receiving side terminal and be mapped to the carrying by core network determined
On, wherein, the path switching response is the receiving side terminal on the direct communication road between initiator's terminal
Data flow on footpath determines what is sent after the carrying by core network.
Specifically, path switching module 53 is specifically used for, pass through for the data flow selection on direct communication path is existing
The carrying of core network;Or change the existing carrying by core network for the data flow on direct communication path;
Or establish the carrying by core network for the data flow on direct communication path.Wherein, path switching module 53 can root
It is direct from the existing carrying by core network according to APN, QoS or TFT of the data flow on direct communication path
The carrying of data flow selection matching on communication path.
Specifically, the data flow on direct communication path is all or part of data flows on direct communication path;It is described
The mark of the data flow of path switching in need is carried in path switching request.
Further, path switching module 53 discharges institute after core network communications path is switched to from direct communication path
The interface-free resources of direct communication path are stated, and delete the contextual information of the direct communication path.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.