Invention content
The present invention provides a kind of terminal registration method and device, can realize that user is carrying out closely servicing ProSe industry
During the registration of business, registration efficiency is improved.
In a first aspect, the present invention provides a kind of terminal registration method, including:
User equipment receives the first flag of the first network element distribution, and first flag is used for identity user equipment;
User equipment sends first message to the second network element, and first message carries first flag, so that the second network element is uses
Family distributes second identifier and sends second message, and the first network element is made to recognize according to first flag user equipment to the first network element
Card pass through after, record second identifier and to the second network element send third message, wherein, in second message carry first flag and
Second identifier, second identifier are used for identity user;
User equipment receives the 4th message of the second network element transmission, and the 4th message is used to register to user equipment return
Work(result.
With reference to first aspect, in the first embodiment, user equipment receives the first flag of the first network element distribution, the
One mark specifically includes for identity user equipment:
User equipment sends the 5th message via mobile management entity to the first network element, and the 5th message is for the first net of request
Member distribution first flag.
With reference to first aspect with the first embodiment, in the second embodiment, user equipment receives the first network element
The first flag of distribution, first flag are used for identity user equipment, specifically include:
User equipment receives the 6th message that the first network element sends via mobile management entity, and the 6th message carries described the
One mark.
With reference to first aspect with first two embodiment, in the third embodiment, third is also carried in first message
Mark, so that the second network element, which is identified according to third to the first network element, sends second message.
With reference to first aspect with first three embodiment, in the 4th kind of embodiment, third is also carried in first message
Mark, third are identified as the IP address or FQDN of the first network element.
With reference to first aspect with preceding four kinds of embodiments, in the 5th kind of embodiment, mobile management entity is according to user
The ProSe ability informations of equipment and the service profile of user equipment judge that user equipment can carry out ProSe business
Afterwards, the 5th message is sent to the first network element.
Second aspect, the present invention provide a kind of terminal registration method, including:
First network element distributes first flag to user equipment, and first flag is used for identity user equipment;
First network element receives the second message that the second network element is sent, and first flag and second identifier are carried in second message,
Second identifier is used for identity user;
First network element according to first flag to user equipment certification by rear, record second identifier;
First network element sends third message to the second network element, and third message is used to return to the knot that succeeds in registration to the second network element
Fruit.
With reference to second aspect, in the first embodiment, before the first network element distributes first flag for the user equipment,
The 5th message of the user equipment transmission is received via mobile management entity.
With reference to second aspect and the first embodiment, in the second embodiment, the first network element is user equipment point
After first flag, the 6th message is sent to user equipment via mobile management entity.
With reference to second aspect and first two embodiment, in the third embodiment, third is also carried in first message
Mark, so that the second network element, which is identified according to third to the first network element, sends the second message.
With reference to second aspect and first three embodiment, in the 4th kind of embodiment, third is identified as the first network element
IP address or FQDN.
With reference to second aspect and preceding four kinds of embodiments, in the 5th kind of embodiment, the first network element receives the second network element
After the second message of transmission, further include:
First network element receives the acquisition ProSe UE context requests that the third network element in consolidated network is sent;
First network element returns to ProSe UE contexts to third network element.
The third aspect, the present invention provide a kind of terminal registration method, including:
Second network element receives the first message that user equipment is sent, and first message carries first flag, and first flag is used for
Identity user equipment;
Second network element sends second message to the first network element, carries first flag and second identifier in second message, and second
Mark is for identity user.
Second network element receives the third message that the first network element is sent, and third message is used to succeed in registration to the return of the second network element
As a result;
Second network element sends the 4th message to user equipment, and the 4th message is used to return to the knot that succeeds in registration to user equipment
Fruit.
With reference to the third aspect, third mark is carried in the first embodiment, in first message, and third is identified as first
The IP address or FQDN of network element;
Second network element sends second message to the first network element, specifically includes:
Second network element identifies to the first network element according to third and sends second message.
With reference to the third aspect and the first embodiment, in the second embodiment, the second network element is sent out to the first network element
Before sending second message, user is authenticated.
With reference to the third aspect and first two embodiment, in the third embodiment, the second network element is sent out to the first network element
After sending second message, further include:
Second network element receives the update ProSe UE context requests that third network element is sent, and update ProSe UE contexts please
Middle carrying second identifier, the 4th mark and the 5th mark are asked, the 4th identifies for identifying user equipment in third network element, the
Five are identified as the IP address or FQDN of third network element;
Second network element sends update ProSe UE context responses according to the 5th mark to third network element.
Fourth aspect, the present invention provide a kind of user equipment, including:
First receiving module, for receiving the first flag of the first network element distribution, first flag is used for identity user equipment;
First sending module, for sending first message to the second network element, first message carries first flag, so that second
Network element for user distribute second identifier and to the first network element send second message, and make the first network element according to first flag to
Family device authentication records second identifier and sends third message to the second network element by rear, wherein, the is carried in second message
One mark and second identifier, second identifier are used for identity user;
Second receiving module, for receiving the 4th message that the second network element is sent, the 4th message is used to return to user equipment
Re-injection volume successful result.
With reference to fourth aspect, in the first embodiment, the first sending module is used for via mobile management entity to the
One network element sends the 5th message, and the 5th message is for request the first network element distribution first flag.
With reference to fourth aspect and the first embodiment, in the second embodiment, the first receiving module be used for via
Mobile management entity receives the 6th message that the first network element is sent, and the 6th message carries the first flag.
With reference to fourth aspect and first two embodiment, in the third embodiment, third is also carried in first message
Mark, so that the second network element, which is identified according to third to the first network element, sends second message.
With reference to fourth aspect and first three embodiment, in the 4th kind of embodiment, third mark is carried in first message
Know, third is identified as the IP address or FQDN of the first network element.
With reference to fourth aspect and preceding four kinds of embodiments, in the 5th kind of embodiment, mobile management entity is according to user
The ProSe ability informations of equipment and the service profile of user equipment judge that user equipment can carry out ProSe business
Afterwards, the 5th message is sent to first network element.
5th aspect, the present invention provide a kind of server, including:
First sending module, for sending distribution first flag for user equipment, first flag is used for identity user equipment;
First receiving module, carried for receiving the second message that the second network element is sent, in second message first flag and
Second identifier, second identifier are used for identity user;
Registration module, for according to first flag to user equipment certification by rear, record second identifier;
Second sending module, for sending third message to the second network element, third message is used to return to the second network element and note
Volume successful result.
With reference to the 5th aspect, in the first embodiment, the first receiving module is used to receive via mobile management entity
The 5th message that user equipment is sent.
With reference to the 5th aspect and the first embodiment, in the second embodiment, the first sending module is used for first
After network element distributes first flag for user equipment, the 6th message is sent to user equipment via mobile management entity.
With reference to the 5th aspect and first two embodiment, in the third embodiment, third is also carried in first message
Mark, so that second network element, which is identified according to the third to first network element, sends the second message.
With reference to the 5th aspect and first three embodiment, in the 4th kind of embodiment, third is identified as the first network element
IP address or FQDN.
With reference to the 5th aspect and preceding four kinds of embodiments, in the 5th kind of embodiment, the first receiving module receives second
After the second message that network element is sent, it is additionally operable to:
Receive the acquisition ProSe UE context requests that third network element is sent;
Second sending module is additionally operable to return to ProSe UE contexts to third network element.
6th aspect, the present invention provide a kind of server, including:
First receiving module, for receive user equipment transmission first message, first message carry first flag, first
Mark is for identity user equipment;
For sending second message to the first network element, first flag and second is carried in second message for first sending module
Mark, second identifier are used for identity user.
Second receiving module, for receiving the third message that the first network element is sent, third message is used to return to the second network element
Re-injection volume successful result;
Second sending module, for sending the 4th message to user equipment, the 4th message is used to return to user equipment and note
Volume successful result.
With reference to the 6th aspect, third mark is carried in the first embodiment, in first message, and third is identified as first
The IP address or FQDN of network element;
First sending module, which is used to be identified to the first network element according to third, sends second message.
With reference to the 6th aspect and the first embodiment, in the second embodiment, the first sending module is to the first net
Before member sends second message, it is additionally operable to authenticate user.
With reference to the 6th aspect and first two embodiment, in the third embodiment, the first sending module is to the first net
After member sends second message, the second receiving module is additionally operable to:
The update ProSe UE context requests that third network element is sent are received, updates and is carried in ProSe UE context requests
Second identifier, the 4th mark and the 5th mark, for identifying user equipment in third network element, the 5th is identified as the 4th mark
The IP address or FQDN of third network element;
First sending module is additionally operable to according to the 5th mark, and update ProSe UE context responses are sent to third network element.
Terminal registration method and device provided by the invention, user equipment only need to send first message to the second network element,
And the second network element directly can distribute second identifier for user, and complete by the second network element directly automatically to the registration of the first network element
Process has been achieved the automatic registration that user equipment closely services ProSe business, can improve registration efficiency.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without making creative work shall fall within the protection scope of the present invention.
Fig. 1 is the flow diagram for the terminal registration method that the embodiment of the present invention one provides.As shown in Figure 1, the present embodiment
The terminal registration method of offer includes:
S101, user equipment receive the first flag of the first network element distribution, and first flag is used for identity user equipment;
Wherein, the first network element can be that closely service ProSe servers, first flag can be that the first network element is user
The closely service identification ProSe_UE_ID of equipment distribution, for identifying the user equipment.User equipment receives the first network element hair
When sending the first flag of distribution, if having existed network connection with the first network element, the first network element can utilize user equipment pre-
The information such as the host domain name being first configured send first flag to user equipment.
User equipment can also receive the first flag distributed to the first network element via mobile management entity.User sets at this time
It is standby first to send attach request to mobile management entity, mobile management entity after the attach request for receiving user equipment transmission,
Connection is sent to the first network element establish request again.
Optionally, it when user equipment receives the first flag of the first network element distribution via mobile management entity, can first pass through
The 5th message is sent from mobile management entity to the first network element, the 5th message is for request the first network element distribution first flag.The
The ProSe ability informations of user equipment can be carried in five message, so that mobile management entity is according to the user equipment
The service profile of ProSe ability informations and user equipment, judges whether user equipment can carry out ProSe business.
Optionally, user equipment receives when being used for identity user equipment first flag of the first network element distribution, can be via
Mobile management entity receives the 6th message that the first network element is sent, and the 6th message carries first flag.
S102, user equipment send first message to the second network element, and first message carries first flag, so that the second network element
Second identifier is distributed for user and sends second message, and make first network element according to first flag to institute to the first network element
User equipment certification is stated by rear, record second identifier and sends third message to second network element, wherein, second message
Middle carrying first flag and second identifier, second identifier are used for identity user;
Wherein, it is that distribute second identifier can be the second network element to user is that the user distributes second identifier or the second network element
Application identities for the user distribute second identifier.Here the application identities of user can be account in application software or
The mark of application level, such as the login account of Facebook, the QQ number code of QQ applications etc. is used for the mark of identity user.
Optionally, third mark can also be carried in first message, so that the second network element is identified according to third to the first net
Member sends second message.The third identifies the address for showing the first network element, and the second network element or user equipment can be according to these
Corresponding first network element of third identifier lookup.Wherein third mark can be the IP address or full name of the first network element
Domain name (Fully Qualified Domain Name, abbreviation FQDN).Full name domain name FQDN is that host name adds complete trails,
All domain members in sequence are listed in middle complete trails.It therefore, can be logically accurate by the information included in universe name
Ground represents position of host machine.
Wherein, the second network element can be the application server in operator core network or internet, to for user
The support of application program, such as the Fetion server in Operator Core Network and the Facebook in internet, QQ application are provided
Server.After user equipment starts application program, first message is sent to the second network element, which carries the first mark
Know, which is used to identify the user equipment.Second network element is that user distributes second identifier after receiving first message, should
For second identifier for identifying the user, the second identifier is different from account, can for protecting account of the user in application software
With identity user in the application, for example, to Mr. Yu user, it is identified as in the application level of application program Facebook
John.Allen facebook.com, the second network element are, for example, that Facebook servers can be then that the user distributes
" 1234eda " is as its second identifier, so that the first network element is in the mark that there is no user's application level
(John.Allen@facebook.com)In the case of, it still can pass through second identifier(“1234eda”)To the second network element only
One determines the user.Second network element sends the second message for carrying first flag and second identifier to the first network element again, and causes
First network element according to first flag to user equipment certification by rear, record second identifier and send third to the second network element and disappear
Breath.
Wherein, first network element refers to the first network element according to first flag user equipment certification according to first flag
User equipment is determined in the first network element, and according to the context of user equipment, and judge whether user can use low coverage
From business.
S103, user equipment receive the 4th message of the second network element transmission, and the 4th message is used to return to user equipment
Succeed in registration result.
Second network element sends the 4th message after the registration process of itself is completed, to user equipment, and the 4th message is used for
It succeeds in registration to user equipment return as a result, informing that user equipment has succeeded in registration.
In the present embodiment, user equipment receives the first mark carried for identity user equipment of the first network element distribution
Know;Then to the second network element send carry first flag first message, wherein first flag to make the second network element be user
Distribution is used for the second identifier of identity user and sends second message to the first network element, wherein, first is carried in second message
Mark and second identifier;The third for being used to return the result that succeeds in registration to user equipment for finally receiving the transmission of the second network element disappears
Breath.User equipment only needs to send first message to the second network element in this way, and the second network element directly can distribute second for user
Mark, and complete to be realized user equipment directly automatically to the registration process of the first network element by the second network element and closely serviced
The automatic registration of ProSe business improves registration efficiency.
Fig. 2 is the flow diagram of terminal registration method provided by Embodiment 2 of the present invention.As shown in Fig. 2, the present embodiment
The terminal registration method of offer includes:
S201, the first network element distribute first flag for user equipment, and first flag is used for identity user equipment;
Wherein, the first network element can be that closely service ProSe servers, first flag can be that the first network element is user
The closely service identification ProSe_User_ID of equipment distribution, for identifying the user equipment.
It optionally, can be directly from the first network element directly to user when the first network element is to user equipment distribution first flag
Equipment is distributed, and the context returned at this time to the first network element, which is established, includes first flag in response message.
Alternatively, before the first network element distributes first flag for user equipment, user can also be received via mobile management entity
The 5th message for request the first network element distribution first flag that equipment is sent, and passed through after first flag is distributed by moving tube
It manages entity and sends the 6th message to user equipment.The first network element sends a message to mobile management entity at this time, and mobile management is real
Attachment is received message again and is sent to user equipment by body.Optionally, third mark, third mark can also be carried in the 6th message
IP address or FQDN for the first network element.The third identifies the address for showing the first network element, and the second network element or user set
It is standby can be according to corresponding first network element of the third identifier lookup.Wherein third mark can be the IP address of the first network element,
Can also be full name domain name (Fully Qualified Domain Name, abbreviation FQDN).
S202, the first network element receive the second message that the second network element is sent, and first flag and second is carried in second message
Mark, second identifier are used for identity user;
Specifically, carrying first flag and second identifier in the second message that the second network element is sent, first flag is used for
Identify the user equipment;Then the second network element can utilize the first flag to distribute second identifier for user, which uses
In identifying the user, the second identifier is different from account, can be in the application for protecting account of the user in application software
Identity user.
Specifically, after the first network element receives the second message that the second network element is sent, further include:
First network element receives the acquisition ProSe UE context requests that the third network element in consolidated network is sent;
First network element returns to ProSe UE contexts to third network element.
Third network element and the first network element may be in consolidated network or there is connection, such as can be in same EPC
Network.When the first network element is ProSe servers, third network element can be another ProSe server.
S203, the first network element according to first flag to user equipment certification by rear, record second identifier;
First network element can according to the second network element be user distribute second identifier, determine user equipment first flag,
The second identifier and user equipment of user in itself between correspondence, so as to complete the registration process of user equipment.Wherein,
Two network elements can be the application server in core network or internet, to provide the application information of user.
S204, the first network element send third message to the second network element, and third message is used to register to the return of the second network element
Work(result.
First network element sends third message after the registration process for completing user equipment, to the second network element, and third message is used
It succeeds in registration in second network element return as a result, informing that the second network element has succeeded in registration.
In the present embodiment, the first network element distributes first flag for user equipment, and wherein first flag sets for identity user
It is standby, the carrying first flag of the second network element transmission and the second message of second identifier are then received, wherein second identifier is used to mark
Know user, the registration process of user equipment completed according to second identifier, most after sent to the second network element for being returned to the second network element
The third message of re-injection volume successful result.User equipment is only needed to the second network element transmission first message in this way, and the second network element
Can second identifier directly be distributed for user, and complete to be realized directly automatically to the registration process of the first network element by the second network element
User equipment closely services the automatic registration of ProSe business, improves registration efficiency.
Fig. 3 is the flow diagram for the terminal registration method that the embodiment of the present invention three provides.As shown in figure 3, the present embodiment
The terminal registration method of offer includes:
S301, the second network element receive the first message that user equipment is sent, and first message carries first flag, first flag
For identity user equipment;
Specifically, carrying third mark in first message, third is identified as the IP address or FQDN of the first network element;
S302, the second network element send second message to the first network element, and first flag and second identifier are carried in second message,
Second identifier is used for identity user;
Specifically, the second network element can authenticate user before the first network element sends second message.Concrete operations are
Whether business information provided according to user etc., which can carry out user registration, judges, if it is then in the second network element
In for the user distribute second identifier, to identity user.
Specifically, the second network element is identified according to third, second message is sent to the first network element.First is carried in second message
Mark and second identifier, second identifier are used for identity user.
Optionally, the second network element can also include after the first network element sends second message:
Second network element receives the update ProSe UE context requests that third network element is sent, and update ProSe UE contexts please
It asks middle and carries the second identifier, the 4th mark and the 5th mark, for identity user equipment, the 5th is identified as the 4th mark
The IP address or FQDN of third network element;Second network element sends update above and below ProSe UE according to the 5th mark to third network element
Text response.
S303, the second network element receive the third message that the first network element is sent, and third message is used to return to the second network element and note
Volume successful result;
Second network element receives the third message that the first network element is sent, and third message is used to succeed in registration to the return of the second network element
As a result, inform that the second network element has succeeded in registration.
S304, the second network element send the 4th message to user equipment, and the 4th message is used to register to user equipment return
Work(result.
Second network element sends the 4th message to user equipment, and the 4th message is used to return to the knot that succeeds in registration to user equipment
Fruit informs that user equipment has succeeded in registration.
In the present embodiment, the second network element first receives the first message of user equipment transmission, and first message carries first flag,
First flag is used for identity user equipment, then sends second message to the first network element, and first flag and the are carried in second message
Two marks, second identifier are used for identity user, finally receive succeeding in registration for being returned to the second network element for the first network element transmission
As a result third message, and succeed in registration the 4th message of result to user equipment transmission.User equipment is only needed in this way
Two network elements send first message, and the second network element directly can distribute second identifier for user, and complete direct by the second network element
Automatically to the registration process of the first network element, the automatic registration that user equipment closely services ProSe business is realized, improves registration
Efficiency.
Fig. 4 is the flow diagram for the terminal registration method that the embodiment of the present invention four provides.The present embodiment has been corresponded in net
The implement scene that each equipment interacts in network.As shown in figure 4, terminal registration method provided in this embodiment includes:
S401, the first network element send distribution first flag for user equipment, and first flag is used for identity user equipment;
When first network element distributes first flag for user equipment, if user equipment and the first network element have existed network company
It connects, the first network element can utilize the information such as the preconfigured host domain name of user equipment, directly be connected with user equipment;It can also
Via mobile management entity, first flag is distributed for user equipment.In the present embodiment, user equipment via mobile management entity and
First network element connects, and the scene of each equipment interaction is as shown in Figure 5 in network.
Mobile management entity can be according to the ProSe ability informations of user equipment and the service contracting of user equipment first
Information, judges whether user equipment can carry out ProSe business.If mobile management entity judges user equipment can carry out ProSe
Business then chooses first network element for user equipment.Then mobile management entity sends connection to the first network element chosen and builds
Vertical information establishes in information the identification information that can carry user equipment, such as the international mobile subscriber of user equipment in connection
Identification code(InternationalMobile Subscriber Identification Number, abbreviation IMSI)Deng.
First network element can be that closely service ProSe servers, first flag can be that the first network element is user equipment
The closely service identification ProSe_User_ID of distribution, for identifying the user equipment.ProSe servers are being connected to moving tube
After information is established in the connection that reason entity is sent, a first flag is distributed for user equipment, which is used for identity user
Equipment.The first flag can be the closely service identification ProSe_User_ID that the first network element is user equipment distribution.The
The 6th message for carrying closely service identification ProSe_User_ID is returned to mobile management entity by one network element again, this
Six message can be connection establishment response message.
S402, user equipment receive the first flag of the first network element distribution, and first flag is used for identity user equipment;
Mobile management entity receives the closely service identification ProSe_ for carrying user equipment of the first network element transmission
After the connection response message of User_ID, context is established, then attachment received message is sent to user equipment for user equipment.
Adhere in received message, carry the closely service identification ProSe_User_ID for the user equipment that the first network element is distributed, this
Third mark, such as the IP address of the first network element or FQDN etc. can also be carried outside.Second network element etc. can be according to the third mark
Know and search first network element.
S403, user equipment send first message to the second network element, and first message carries first flag, so that the second network element
Second identifier is distributed for user and sends second message, and the first network element is made to be set according to first flag to user to the first network element
Standby certification records second identifier and sends third message to the second network element by rear, wherein, the first mark is carried in second message
Know and second identifier, second identifier are used for identity user;
Specifically, the second network element can be the application server in core network or internet, to provide to the user
The support of application program.When user equipment it is application software initiated after, user equipment to the second network element initiate login request message.
The first flag of user equipment, such as the closely service identification ProSe_ of user equipment are carried in a registration request message
User_ID can additionally carry third mark, such as the IP address of the first network element or FQDN etc..Second network element etc. can root
According to the third identifier lookup first network element.
Optionally, third mark can also be carried in first message, so that the second network element is identified according to third to the first net
Member sends second message.The third identifies the address for showing the first network element, and the second network element or user equipment can be according to these
Corresponding first network element of third identifier lookup.Wherein third mark can be the IP address or full name of the first network element
Domain name (Fully Qualified Domain Name, abbreviation FQDN).Full name domain name FQDN is that host name adds complete trails,
All domain members in sequence are listed in middle complete trails.It therefore, can be logically accurate by the information included in universe name
Ground represents position of host machine.
S404, the second network element receive the first message that user equipment is sent, and first message carries first flag, first flag
For identity user equipment;
In specific implementation process, the second network element can be application server.The business that second network element is provided according to user
Information etc. authenticates user, judges whether user can be registered, if it is then being the user in the second network element
Second identifier is distributed, to identify the user.Wherein second identifier can be application identities APP_User_ID of user etc..
S405, the second network element send second message to the first network element, and first flag and second identifier are carried in second message,
Second identifier is used for identity user;
After second network element distributes APP_User_ID for user, log-on message is sent to the first network element, is taken in log-on message
The application identities APP_User_ID of closely service identification ProSe_User_ID and user with the user equipment.
S406, the first network element receive the second message that the second network element is sent, carry in the second message first flag and
Second identifier, second identifier are used for identity user;
After first network element receives the log-on message that the second network element is sent, wherein carrying the closely business of the user equipment
Identify the application identities APP_User_ID of ProSe_User_ID and user.
S407, the first network element according to first flag to user equipment certification by rear, record second identifier;
After first network element receives the log-on message of application program transmission, according to the application identities APP_ of the user received
User_ID passes through user equipment certification, and the closely service identification ProSe_User_ID of the user equipment is recorded
Come, complete ProSe service log-on process of the user equipment on first network element.
S408, the first network element send third message to the second network element, and third message is used to register to the return of the second network element
Work(result;
After first network element completes ProSe service log-on processes of the user equipment on first network element, sent out to the second network element
The message that succeeds in registration is sent, shows to succeed in registration.
S409, the second network element receive the third message that the first network element is sent, and third message is used to return to the second network element and note
Volume successful result;
S410, the second network element send the 4th message to user equipment, and the 4th message is used to register to user equipment return
Work(result;
Second network element receives the information that succeeds in registration that the first network element returns, and sends the information that succeeds in registration to user equipment.
S411, user equipment receive the 4th message of the second network element transmission, and the 4th message is used to return to user equipment
Succeed in registration result.
User equipment receives the information that succeeds in registration of the second network element transmission, and registration is completed.
In the present embodiment, via locomotive function entity, what user equipment connects the first network element, and first is distributed for user equipment
Mark, wherein first flag are used for identity user equipment;User equipment sends to the second network element carry the first of first flag again
Message, so that the second network element distributes second identifier for user and sends second message to the first network element, wherein, in second message
First flag and second identifier are carried, second identifier is used for identity user;Second network element receives first that user equipment is sent and disappears
After breath, the second message for carrying first flag and second identifier is sent to the first network element;First network element is completed according to second identifier
Then the registration process of user equipment sends to the second network element and returns to the result that succeeds in registration;Second network element returns again to user equipment
4th message of re-injection volume successful result;User equipment receive represent succeed in registration result the 4th message after, registration complete.
User equipment only needs to send first message to the second network element in this way, and the second network element can be directly the second mark of user's distribution
Know, and complete to be realized user equipment directly automatically to the registration process of the first network element by the second network element and closely service ProSe
The automatic registration of business improves registration efficiency.
Fig. 6 is the flow diagram for the terminal registration method that the embodiment of the present invention five provides.It is each in network in the present embodiment
Equipment interaction scene as shown in fig. 7, the present embodiment relative user equipment not via locomotive function entity, and directly and the first net
The implement scene of member connection.As shown in fig. 6, terminal registration method provided in this embodiment includes:
S601, the first network element distribute first flag for user equipment, and first flag is used for identity user equipment;
In the present embodiment, when the first network element distributes first flag for user equipment, if user equipment and the first network element are
Through there are network connections, in the case of e.g. having existed network connection between user equipment and ProSe servers, the first net
Member can utilize the information such as the preconfigured host domain name of user equipment, directly be connected with user equipment.
First network element is after request message is established in the connection for receiving user equipment transmission, for user equipment distribution one the
One mark, the first flag are used for identity user equipment.The first flag can be that the first network element is what the user equipment distributed
Closely service identification ProSe_User_ID.The company that first network element will carry closely service identification ProSe_User_ID again
It connects and establishes response message and return to user equipment.
S602, user equipment receive the first flag of the first network element distribution, and first flag is used for identity user equipment;
In the connection response message that user equipment receives, the closely industry for the user equipment that the first network element is distributed is carried
Business mark ProSe_User_ID can additionally carry third mark, such as the IP address of the first network element or FQDN etc..The
Two network elements etc. can be according to the third identifier lookup first network element.
S603, user equipment send first message to the second network element, and first message carries first flag, so that the second network element
Second identifier is distributed for user and sends second message, and make first network element according to first flag to institute to the first network element
User equipment certification is stated by rear, record second identifier and sends third message to second network element, wherein, second message
Middle carrying first flag and second identifier, second identifier are used for identity user;
Specifically, the second network element can be the application server in core network or internet, to provide to the user
The support of application program.When user equipment it is application software initiated after, user equipment to the second network element initiate login request message.
The first flag of user equipment, such as the closely service identification ProSe_ of user equipment are carried in a registration request message
User_ID can additionally carry third mark, such as the IP address of the first network element or FQDN etc..Second network element etc. can root
According to the third identifier lookup first network element.
S604, the second network element receive the first message that user equipment is sent, and first message carries first flag, first flag
For identity user equipment;
Wherein, the second network element can be the application server in core network or internet, should to provide to the user
With the support of program.Business information that second network element can be provided according to user etc. authenticates user, whether judges user
It can be registered, if it is then second identifier is distributed for the user in the second network element, to identify the user.Wherein
Second identifier can be application identities APP_User_ID of user etc..
S605, the second network element send second message to the first network element, and first flag and second identifier are carried in second message,
Second identifier is used for identity user;
After second network element distributes APP_User_ID for user, log-on message is sent to the first network element, is taken in log-on message
The application identities APP_User_ID of closely service identification ProSe_User_ID and user with the user equipment.
S606, the first network element receive the second message that the second network element is sent, carry in the second message first flag and
Second identifier, second identifier are used for identity user;
After first network element receives the log-on message that the second network element is sent, wherein carrying the closely business of the user equipment
Identify the application identities APP_User_ID of ProSe_User_ID and user.
S607, the first network element according to first flag to user equipment certification by rear, record second identifier;
After first network element receives the log-on message of application program transmission, according to the application identities APP_ of the user received
User_ID passes through user equipment certification, and record the user equipment closely service identification ProSe_User_ID and
The correspondence mappings of the closely service identification ProSe_User_ID of user equipment and the application identities APP_User_ID of user are closed
System completes ProSe service log-on process of the user equipment on first network element.
S608, the first network element send third message to the second network element, and third message is used to register to the return of the second network element
Work(result;
After first network element completes ProSe service log-on processes of the user equipment on first network element, sent out to the second network element
The message that succeeds in registration is sent, shows to succeed in registration.
S609, the second network element receive the third message that the first network element is sent, and third message is used to return to the second network element and note
Volume successful result;
S610, the second network element send the 4th message to user equipment, and the 4th message is used to register to user equipment return
Work(result;
Second network element receives the information that succeeds in registration that the first network element returns, and sends the information that succeeds in registration to user equipment.
S611, user equipment receive the 4th message of the second network element transmission, and the 4th message is used to return to user equipment
Succeed in registration result.
User equipment receives the information that succeeds in registration of the second network element transmission, and registration is completed.
The present embodiment relative user equipment is not via locomotive function entity, and the implementation field directly connected with the first network element
Scape.First network element is user equipment distribution for the first flag of identity user equipment;User equipment is sent again to the second network element
The first message of first flag is carried, is disappeared so that the second network element distributes second identifier and send second to the first network element for user
Breath, wherein, first flag and second identifier are carried in second message, second identifier is used for identity user;Second network element, which receives, to be used
After the first message that family equipment is sent, the second message for carrying first flag and second identifier is sent to the first network element;First net
Member completes the registration process of user equipment according to second identifier, is then sent to the second network element and returns to the result that succeeds in registration;Second
Network element returns to the 4th message of the result that succeeds in registration to user equipment again;User equipment, which receives, represents to succeed in registration the of result
After four message, registration is completed.User equipment only needs to send first message to the second network element in this way, and the second network element can be direct
Second identifier is distributed for user, and completes to be realized user directly automatically to the registration process of the first network element by the second network element and set
The standby automatic registration for closely servicing ProSe business improves registration efficiency.
Fig. 8 is the flow diagram for the terminal registration method that the embodiment of the present invention six provides.The present embodiment has been corresponded to
When one network element cannot be connected with user equipment, user equipment and the second network element reregister with the implement scene of third network element.Such as
Shown in Fig. 8, terminal registration method provided in this embodiment includes:
S801, the first network element receive the acquisition ProSe UE context requests that third network element is sent in consolidated network;
In the present embodiment, user equipment has ProSe business, but current user equipment can not connect with original first network element
It connecing, then user equipment needs to reselect a new third network element, and the third network element and the first network element, which exist, to be connected, such as the
Three network elements and the first network element can be the 2nd ProSe servers and the first ProSe servers in same EPC networks.
User equipment can directly and new third network element be attached request, can also via locomotive function entity into
Row.Now by taking user equipment is via locomotive function entity and the first network element/third network element connection as an example, specific network equipment interaction
Process is as shown in Figure 9.When user equipment is connected via locomotive function entity and the first network element/third network element, because user sets
It is standby mobile, a new locomotive function entity is switched to by original locomotive function entity, the new locomotive function entity because
It cannot connect on original first network element, so needing to select a new third network element for user equipment, to keep ProSe
Business.In specific implementation procedure, new locomotive function entity completes the switching of signaling gateway for user equipment, and is set according to user
Standby original connection context judges that user equipment has a ProSe business, but the locomotive function entity cannot connect to it is original
On first network element, therefore new third network element is selected for user equipment.
After locomotive function entity selection third network element, after third network element sending connection establishes request, in the request can be with
Carry the third mark of the first network element, such as the IP address or FQDN of the first network element.
Third network element sends to the first network element after receiving connection and establishing request and obtains ProSe UE context requests,
To ProSe UE context of the first network element request user equipment in former first network element.ProSeUE contexts can include using
The correspondence mappings relationship of the closely service identification ProSe_User_ID of family equipment and the application identities APP_User_ID of user
Deng.
S802, the first network element return to ProSe UE contexts to third network element;
After first network element receives the acquisition ProSe UE context requests of third network element transmission, returned to third network element
ProSe UE contexts.
S803, the second network element receive the update ProSe UE context requests that third network element is sent, and update on ProSe UE
Second identifier, the 4th mark and the 5th mark are carried in hereafter asking, the 4th mark is for the identity user in third network element
Equipment, the 5th is identified as the IP address or FQDN of third network element;
After third network element receives the ProSe UE contexts of the first network element return, one the 4th mark is distributed for user equipment
Know, the 4th mark is for identity user equipment.4th mark can be the low coverage that the first network element is user equipment distribution
From service identification ProSe_User_ID.The ProSe UE contexts that third network element is returned further according to the first network element, which is set
The correspondence of the application identities APP_User_ID of the standby closely service identification ProSe_User_ID and user in third network element is reflected
The relationship of penetrating is updated.After the completion of update, third network element is sent to the second network element carries second identifier, the 4th mark and the 5th
The update ProSe UE context requests of mark, wherein the 5th is identified as the IP address or FQDN of third network element.Second network element
Receive update ProSe UE context requests.
S804, the second network element send update ProSe UE context responses according to the 5th mark to third network element.
Second network element sends update ProSeUE contexts according to the IP address or FQDN of third network element to third network element
Response.Then third network element will carry the 4th mark for identifying the user equipment and the IP to represent third network element
The 5th mark of address or FQDN are sent to user equipment by locomotive function entity, complete re-registering for user equipment.
In the present embodiment, when user equipment can not be connected with original first network element, the first network element receives third network element
The acquisition ProSe UE context requests of transmission, and ProSe UE contexts are returned to third network element, the second network element receives the again
The update ProSe UE context requests of carrying second identifier, the 4th mark and the 5th mark that three network elements are sent, Ran Hougen
It is identified according to the 5th to third network element and sends update ProSeUE context responses.User equipment has been achieved to carry out closely
When servicing ProSe business, when the first original network element can not provide ProSe business, new third network element is reregistered with.
Figure 10 is a kind of structure diagram for user equipment that the embodiment of the present invention seven provides.As shown in Figure 10, this implementation
The user equipment 10 that example provides includes:
First receiving module 1001, for receiving the first flag of the first network element distribution, first flag is used by being used to identify
Family equipment;
First sending module 1002, for sending first message to the second network element, first message carries first flag, so that
Second network element distributes second identifier for user and sends second message, and make the first network element according to first flag to the first network element
To user equipment certification by rear, record second identifier and send third message to the second network element, wherein, it is taken in second message
Band first flag and second identifier, second identifier are used for identity user;
Second receiving module 1003, for receiving the 4th message that the second network element is sent, the 4th message is used to set to user
It is standby to return to the result that succeeds in registration.
Optionally, the first sending module 1102 can be used for the first network element transmission the 5th disappearing via mobile management entity
Breath, the 5th message is for request the first network element distribution first flag.
Optionally, the first receiving module 1101 can be used for the receive the first network element via mobile management entity and send the 6th
Message, the 6th message carry first flag.
Specifically, carrying third mark in first message, sent so that the second network element is identified according to third to the first network element
Second message.
Specifically, also carried in first message third mark, third mark can be the first network element IP address or
FQDN。
Specifically, mobile management entity is according to the ProSe ability informations of user equipment and the service contracting of user equipment
After judging that user equipment can carry out ProSe business, the 5th message is sent to the first network element for information.
User equipment provided in this embodiment, the detailed process for performing the method that business provides can method as shown in Figure 1
The associated description of embodiment, details are not described herein again.
The user equipment provided in the present embodiment, the first receiving module receive the first flag of the first network element distribution, wherein
First flag is used for identity user equipment;Then the first sending module sends first message to the second network element, and first message carries
First flag, so that the second network element distributes second identifier for user and sends second message to the first network element, wherein, second disappears
First flag and second identifier are carried in breath, second identifier is used for identity user;Finally, the second receiving module receives the second network element
The 4th message of the result that is used to succeed in registration to user equipment return sent.User equipment only needs to send out to the second network element in this way
It send first message, and the second network element directly can distribute second identifier for user, and completes by the second network element directly automatically to the
The registration process of one network element realizes the automatic registration that user equipment closely services ProSe business, improves registration efficiency.
Figure 11 is a kind of structure diagram for server that the embodiment of the present invention eight provides.As shown in figure 11, the present embodiment
The server 11 of offer includes:
First sending module 1101, for distributing first flag for user equipment, first flag is used for identity user equipment;
First receiving module 1102 for receiving the second message that the second network element is sent, carries the first mark in second message
Know and second identifier, second identifier are used for identity user equipment;
Registration module 1103, for according to first flag to user equipment certification by rear, record second identifier;
Second sending module 1104, for sending third message to the second network element, third message is used to return to the second network element
Re-injection volume successful result.
Optionally, the first receiving module 1102 can be used for the receive user equipment via mobile management entity and send the 5th
Message.
Optionally, the first sending module 1101 can be used for user equipment transmission the 6th disappearing via mobile management entity
Breath.
Specifically, third mark is also carried in first message, so that the second network element is identified according to third to first net
Member sends second message.Third mark can be the IP address or FQDN of the first network element.
Specifically, after the first receiving module 1102 receives the second message that the second network element is sent, it is additionally operable to receive third
The acquisition ProSe UE context requests that network element is sent;Second sending module 1104 is additionally operable to return to ProSe UE to third network element
Context.
Server provided in this embodiment, perform the method that business provides detailed process can as shown in Figure 2 method it is real
The associated description of example is applied, details are not described herein again.
Server provided in this embodiment, the first sending module are user equipment distribution for the first of identity user equipment
Mark, the first receiving module receive the second message that the second network element is sent, and first flag and second is carried wherein in second message
Mark, second identifier are used for identity user, and registration module completes the registration process of user equipment, the second hair further according to second identifier
After sending module most the third message for returning to the result that succeeds in registration is sent to the second network element.User equipment is only needed in this way
Two network elements send first message, and the second network element directly can distribute second identifier for user, and complete direct by the second network element
Automatically to the registration process of the first network element, the automatic registration that user equipment closely services ProSe business is realized, improves registration
Efficiency.
Figure 12 is a kind of structure diagram for server that the embodiment of the present invention nine provides.As shown in figure 12, the present embodiment
The server 12 of offer includes:
First receiving module 1201, for receiving the first message of user equipment transmission, first message carries first flag,
First flag is used for identity user equipment;
First sending module 1202, carried for sending second message to the first network element, in second message first flag and
Second identifier, second identifier are used for identity user.
Second receiving module 1203, for receiving the third message that the first network element is sent, third message is used for the second net
Member returns to the result that succeeds in registration;
Second sending module 1204, for sending the 4th message to user equipment, the 4th message is used to return to user equipment
Re-injection volume successful result.
Specifically, carrying third mark in first message, third is identified as the IP address or FQDN of the first network element;
Specifically, the first sending module 1202, which is used to be identified to the first network element according to third, sends second message.
Specifically, the first sending module 1202 is additionally operable to authenticate user before the first network element sends second message.
Specifically, the first sending module 1202, after the first network element sends second message, the second receiving module 1203 is also
For receiving the update ProSe UE context requests of third network element transmission, update in ProSe UE context requests and carry second
Mark, the 4th mark and the 5th mark, for the 4th mark for identifying user equipment in third network element, the 5th is identified as third
The IP address or FQDN of network element;First sending module 1202 is additionally operable to, according to the 5th mark, send and update to third network element
ProSe UE context responses.
Server provided in this embodiment, perform the method that business provides detailed process can as shown in Figure 3 method it is real
The associated description of example is applied, details are not described herein again.
Server provided in this embodiment, the first receiving module first receive the of the carrying first flag of user equipment transmission
One message, wherein first flag are used for identity user equipment;First sending module sends to the first network element carry first flag again
With the second message of second identifier, wherein second identifier is used for identity user;Second receiving module and then reception the first network element hair
It send, for returning to the 4th message of result that succeeds in registration to the second network element;Second sending module most after to user equipment send use
In the 4th message for returning to the result that succeeds in registration.User equipment is only needed to the second network element transmission first message in this way, and second
Network element directly can distribute second identifier for user, and complete by the second network element directly automatically to the registration process of the first network element,
The automatic registration that user equipment closely services ProSe business is realized, improves registration efficiency.
Figure 13 is a kind of structure diagram for user equipment that the embodiment of the present invention ten provides.As shown in figure 13, this implementation
The user equipment 13 that example provides includes:
Transmitter 1301, for sending first message to the second network element, first message carries first flag, so that the second net
Member distributes second identifier for user and sends second message, and make the first network element according to first flag to user to the first network element
Device authentication records second identifier and sends third message to the second network element by rear, wherein, first is carried in second message
Mark and second identifier, second identifier are used for identity user;
Receiver 1302, for receiving the first flag of the first network element distribution, first flag is used for identity user equipment;
For receiving the 4th message that the second network element is sent, the 4th message is used to return to the knot that succeeds in registration to user equipment
Fruit.
Optionally, transmitter 1301 can be used for via mobile management entity to the first network element send the 5th message, the 5th
Message is for request the first network element distribution first flag.
Optionally, receiver 1302 can be used for the 6th message for receiving the first network element via mobile management entity and sending,
6th message carries first flag.
Specifically, carrying third mark in first message, sent so that the second network element is identified according to third to the first network element
Second message.
Specifically, also carrying third mark in first message, third is identified as the IP address or FQDN of the first network element.
Specifically, mobile management entity is according to the ProSe ability informations of user equipment and the service contracting of user equipment
After judging that user equipment can carry out ProSe business, the 5th message is sent to the first network element for information.
User equipment provided in this embodiment, the detailed process for performing the method that business provides can method as shown in Figure 1
The associated description of embodiment, details are not described herein again.
The user equipment provided in the present embodiment, receiver receive the first flag of the first network element distribution, wherein the first mark
Know for identity user equipment;Then transmitter sends first message to the second network element, and first message carries first flag, so that
Second network element distributes second identifier for user and sends second message to the first network element, wherein, first is carried in second message
Mark and second identifier, second identifier are used for identity user;Finally, what the second network element of receiver reception was sent is used to set to user
Standby the 4th message for returning to the result that succeeds in registration.User equipment is only needed to the second network element transmission first message in this way, and second
Network element directly can distribute second identifier for user, and complete by the second network element directly automatically to the registration process of the first network element,
The automatic registration that user equipment closely services ProSe business is realized, improves registration efficiency.
Figure 14 is a kind of structure diagram for server that the embodiment of the present invention 11 provides.As shown in figure 14, this implementation
The server 14 that example provides includes:
Receiver 1401 carries first flag and for receiving the second message that the second network element is sent, in second message
Two marks, second identifier are used for identity user;
Transmitter 1402, for distributing first flag for user equipment, first flag is used for identity user equipment;
For sending third message to the second network element, third message is used to return to the result that succeeds in registration to the second network element;
Processor 1403, for according to first flag to user equipment certification by rear, record second identifier.
Optionally, receiver 1401 can be used for the 5th message for receiving user equipment via mobile management entity and sending.
Optionally, transmitter 1402 can be used for sending the 6th message to user equipment via mobile management entity.
Specifically, also carrying third mark in first message, sent out so that the second network element is identified according to third to the first network element
Send second message.Third mark can be the IP address or FQDN of the first network element.
Specifically, after receiver 1401 receives the second message that the second network element is sent, it is additionally operable to receive third network element hair
The acquisition ProSe UE context requests sent;Transmitter 1402 is additionally operable to return to ProSe UE contexts to third network element.
Server provided in this embodiment, perform the method that business provides detailed process can as shown in Figure 2 method it is real
The associated description of example is applied, details are not described herein again.
Server provided in this embodiment, transmitter are used for the first flag of identity user equipment for user equipment distribution,
Receiver receives the second message that the second network element is sent, and first flag and second identifier, the second mark are carried wherein in second message
Know for identity user, processor completes the registration process of user equipment, most backward second net of transmitter further according to second identifier
Member sends the third message for returning to the result that succeeds in registration.User equipment only needs to disappear to the second network element transmission first in this way
Breath, and the second network element directly can distribute second identifier for user, and complete by the second network element directly automatically to the first network element
Registration process realizes the automatic registration that user equipment closely services ProSe business, improves registration efficiency.
Figure 15 is a kind of structure diagram for server that the embodiment of the present invention 12 provides.As shown in figure 15, this implementation
The server 15 that example provides includes:
Receiver 1501, for receiving the first message of user equipment transmission, first message carries first flag, the first mark
Know for identity user equipment;
For receiving the 4th message that the first network element is sent, the 4th message is used to return to the knot that succeeds in registration to the second network element
Fruit;
Transmitter 1502 for sending second message to the first network element, carries first flag and the second mark in second message
Know, second identifier is used for identity user.
For sending the 4th message to user equipment, the 4th message is used to return to the result that succeeds in registration to user equipment.
Specifically, carrying third mark in first message, third is identified as the IP address or FQDN of the first network element;
Specifically, transmitter 1502, which is used to be identified to the first network element according to third, sends second message.
Specifically, transmitter 1502 is additionally operable to authenticate user before the first network element sends second message.
Specifically, transmitter 1502, after the first network element sends second message, receiver 1501 is additionally operable to receive third
The update ProSe UE context requests that network element is sent update and second identifier, the 4th mark are carried in ProSe UE context requests
Know and the 5th identifies, the 4th mark in third network element for identifying user equipment, and the 5th with being identified as the IP of third network element
Location or FQDN;Transmitter 1502 is additionally operable to according to the 5th mark, and update ProSe UE context responses are sent to third network element.
Server provided in this embodiment, perform the method that business provides detailed process can as shown in Figure 3 method it is real
The associated description of example is applied, details are not described herein again.
Server provided in this embodiment, receiver first receive first disappearing for the carrying first flag of user equipment transmission
Breath, wherein first flag are used for identity user equipment;Transmitter sends to the first network element carry first flag and second identifier again
Second message, wherein second identifier be used for identity user;Receiving module and then receive what the first network element was sent, for second
Network element returns to the third message for the result that succeeds in registration;Transmitter most after send to user equipment and succeed in registration result for returning
4th message.User equipment only needs to send first message to the second network element in this way, and the second network element can be directly user point
With second identifier, and complete to realize user equipment closely directly automatically to the registration process of the first network element by the second network element
The automatic registration of ProSe business is serviced, improves registration efficiency.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Aforementioned program can be stored in a computer read/write memory medium.The journey
Sequence when being executed, performs the step of including above-mentioned each method embodiment;And aforementioned storage medium includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into
Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.