Background technology
System framework evolution (SAE; System Architecture Evolution) under the system; In setting up the process of default bearer; User terminal (UE) is to mobile management entity (MME; Carried Packet Data Network (PDN, Packet Data Network) type (type) parameter in attach request (Attach Request) message of Mobility Management Entity) sending or Packet Data Network's connection request (the PDN connectivity request) message, in order to show the type information of UE request IP address allocated.
Particularly, PDN type parameter is divided into three kinds: the Internet Protocol (IPV4V6) of Internet Protocol (IPV6), edition 4 and the version 6 of the Internet Protocol of edition 4 (IPV4), version 6.
When PDN type parameter is IPV4V6, explain evolved packet system (EPS, Evolved Packet System) carry can with an IPV6 address correlation, also can with an IPV4 address, an IPV6 address correlation.When PDN type parameter is IPV4, explain EPS carry can only with an IPV4 address correlation.When PDN type parameter is IPV6, explain EPS carry can only with an IPV6 address correlation.
When having following situation, just need to use the PDN type parameter of IPV4 or IPV6:
UE or packet data network gateway (PDN GW, Packet Data Network Gateway) are only supported IPV4 address or IPV6 address;
Operator specifies the IP address of using single release type;
For certain APN (APN, Access Point Name), the subscription data of user terminal indicates and only uses IPV4 address or IPV6 address;
With the earlier version intercommunication time, use.
Receive the Attach request message or PDN connectivity request message of UE as MME after; Can check the PDN type parameter of carrying in this message according to the subscription data of UE; If the PDN type parameter of carrying in the message is IPV4V6; And subscription data shows that UE can only use the IP address of single release type; Can to revise PDN Type parameter be IPV4 or IPV6 to MME so, sets up request (Create default bearer request) message through default bearer simultaneously and pass to gateway (Serving GW, Serving Network Gateway); Serving GW gives packet data network gateway (PDN GW, Packet Data Network Gateway) with this Create default bearer request forwards.
After PDN GW receives Create default bearer request message; Is UE distributing IP address according to the PDN type parameter of carrying in this message with the operator configuration information of self storing in advance; If the PDN type parameter of carrying in the message is IPV4V6; And the operator configuration information indication can only distribute the IP address (IPV4 or IPV6) of single release type to UE; PDN GW can only distribute to the IP address (IPV4 or IPV6) of the single release type of UE according to operator configuration information so; Revising PDN type parameter simultaneously is IPV4 or IPV6; And record modification reason; Promptly be provided with and cause that reason (reason cause) parameter is that network preferentially selects (network preference) or single address to carry (single address bearers only), and IP address allocated and reason cause parameter are set up default bearer response (Create default bearer response) message informing through transmission give Serving GW, Serving GW gives MME with this forwards again.
After MME receives the Create defeult bearer response message of Serving GW forwarding; Adhere to acceptance (Attach accept) message or PDN connection response (PDN connectivity response) message through base station (eNodeB) to the UE transmission; And in this message, carry IP address and the PDN type parameter of distributing to UE; And if PDN type parameter revised by PDN GW, also can carry the corresponding modification cause information.And if PDN type parameter is revised by MME; MME can be provided with reason cause parameter and limit (Subscription limitation) for contracting so; And this reason cause parameter is carried on (RRC; Radio Route Control) in the message, this message is transmitted to UE through eNodeB.
But, in existing IP address assignment process, can have the unusual situation of IP address assignment.For example; The IP address of UE request distributing IP V6; Be that the PDN type parameter that UE sends is IPV6, and MME obtains from home signature user server (HSS, Home Subscriber Server) with the corresponding CAMEL-Subscription-Information of this UE in show that this UE can only support the IP address of IPV4.Again for example, the IP address of UE request distributing IP V4, promptly the UE PDN type parameter of sending is IPV4, and show in the operator configuration information of in PDN GW, storing can only for this UE can only distributing IP V6 the IP address.
And in the prior art, do not provide the processing scheme under the IP address assignment abnormal conditions.
Summary of the invention
The embodiment of the invention provides a kind of IP address assignment method, system and device, in order to the unusual problem of IP address assignment that exists in the process that solves existing distributing IP address.
A kind of IP address assignment method that the embodiment of the invention provides comprises:
Mobile management entity receives the message of user terminal requests distributing IP address, and therefrom obtains the type information of this user terminal requests IP address allocated;
Whether there is the IP address class type information identical in the CAMEL-Subscription-Information of the said user terminal of mobile management entity judges with the type information of said user terminal requests IP address allocated;
When not having the identical IP address class type information of type information with said user terminal requests IP address allocated in the CAMEL-Subscription-Information of said user terminal, said mobile management entity sends the refusal request message to said user terminal.
A kind of communication system that the embodiment of the invention provides comprises: base station, mobile management entity, gateway and PDN GW; Wherein,
The base station is used to receive the message of user terminal requests distributing IP address, and gives mobile management entity with this forwards;
Mobile management entity comprises:
Receive request unit, be used to receive the message of user terminal requests distributing IP address, and therefrom obtain the type information of this user terminal requests IP address allocated;
First judging unit is used for judging whether the CAMEL-Subscription-Information of said user terminal exists the IP address class type information identical with the type information of said user terminal requests IP address allocated;
The first refusal request unit when being used for CAMEL-Subscription-Information when said user terminal and not having the identical IP address class type information of type information with said user terminal requests IP address allocated, sends to said user terminal and to refuse request message;
Send request unit; Be used for when there is the identical IP address class type information of type information with said user terminal requests IP address allocated in the CAMEL-Subscription-Information of said user terminal; Set up the default bearer request message through gateway to the packet data network gateway transmission, comprising the type information of said user terminal requests IP address allocated;
Second judging unit is used for whether receiving the message that the refusal foundation of packet data gateway transmission is carried according to mobile management entity, judges that whether said packet data network gateway is refused is that said user terminal is set up carrying;
The second refusal request unit is used for when said packet data network gateway refusal is set up carrying for said user terminal, sending the refusal request message to said user terminal;
Gateway is used for the said default bearer request message of setting up is transmitted to PDN GW; And the refusal that PDN GW sends is set up bearer messages be transmitted to said mobile management entity;
PDN GW comprises:
Receive request unit, be used to receive that said gateway transmits sets up the default bearer request message, and therefrom obtain the type information of said user terminal requests IP address allocated;
Judging unit is used for judging whether operator configuration information exists the IP address class type information identical with the type information of said user terminal requests IP address allocated;
The refusal request unit; Be used for when there is not the identical IP address class type information of type information with said user terminal requests IP address allocated in said operator configuration information, sends refusal through said gateway to said mobile management entity and setting up bearer messages;
The IP address assignment unit; Being used for when there is the identical IP address class type information of type information with the user terminal requests IP address allocated in said operator configuration information, is user terminal distributing IP address according to the type information of user terminal requests IP address allocated.
The embodiment of the invention, mobile management entity receives the message of user terminal requests distributing IP address, and therefrom obtains the type information of this user terminal requests IP address allocated; Whether there is the IP address class type information identical in the CAMEL-Subscription-Information of the said user terminal of mobile management entity judges with the type information of said user terminal requests IP address allocated; When not having the identical IP address class type information of type information with said user terminal requests IP address allocated in the CAMEL-Subscription-Information of said user terminal; Said mobile management entity sends the refusal request message to said user terminal; Thereby the IP address assignment abnormal problem to existing in the process of distributing IP address has provided solution.
Embodiment
The embodiment of the invention provides a kind of IP address assignment method, system and device, in order to the unusual problem of IP address assignment that exists in the process that solves existing distributing IP address.
Provide the detailed description of the embodiment of the invention below in conjunction with accompanying drawing.
The embodiment of the invention is applied in the SAE system, and referring to Fig. 1, a kind of communication system that the embodiment of the invention provides comprises:
User terminal 11; Be used for sending the message of request distributing IP address to base station 12; This message can be attach request (Attach request) message or PDN connection request (PDN connectivity request) message, comprising the type information of these user terminal 11 request IP address allocated.
Particularly; The type information of UE request IP address allocated is that UE is adhering to (Attach) process or setting up in the PDN connection procedure; Carry through the PDN type parameter that in Attach Request message or PDN connection request message, is provided with based on the configuration of its IP stack, the mode that PDN type parameter specifically is set comprises:
If UE has IPV4 and IPV6 ability, it is IPV4V6 that PDN type parameter can be set so;
If UE has only the IPV4 ability, it is IPV4 that PDN type parameter is set so;
If UE has only the IPV6 ability, it is IPV6 that the PDNtype parameter is set so;
When UE did not know the IP version ability of self, it was IPV4V6 that PDN type parameter is set so.
Base station 12 is used to receive the message that user terminal 11 is asked the distributing IP addresses, and gives mobile management entity 13 with this forwards.
Mobile management entity 13 is used to receive the message of the user terminal 11 request distributing IP addresses of transmitting base station 12, and therefrom obtains the type information of these user terminal 11 request IP address allocated; Whether there is the identical IP address class type information of type information in the CAMEL-Subscription-Information of the said user terminal 11 that judgement is provided with in advance with said user terminal 11 request IP address allocated; If; Then send and set up default bearer request (Create default bearer request) message, comprising the type information of said user terminal 11 request IP address allocated to gateway 14; Otherwise; Send the refusal request message to said user terminal 11; This refusal request message connects refusal (PDN connectivity reject) message for adhering to refusal (Attach reject) message or PDN; Comprising the type of the said user terminal 11 request IP address allocated information that do not match; This information is to carry, that is to say through EPS mobile management cause information element (EMM Cause IE, EPS mobility management Cause Information element) parameter; Mobile management entity 13 is provided with EMM Cause IE parameter and does not match for the IP address class type in adhering to refuse information or PDN connection refused message, thereby notice UE adheres to or PDN connects unaccepted reason.
The CAMEL-Subscription-Information of UE is that the user is disposed by operator when opening an account; And be stored among the HSS, when UE carried out the Attach process, MME can apply for the CAMEL-Subscription-Information of this UE to HSS; Be stored among the MME then; When UE carries out request and sets up PDN and connect the process of (UE requested PDN connectivity), need not be again to the HSS application, but directly use the CAMEL-Subscription-Information of this UE of MME storage.The CAMEL-Subscription-Information of UE mainly comprises some essential informations of UE, and like the APN information that allows to insert, some set up needed essential information when carrying, and comprise IP address class type or the like.
Gateway 14 is used for being transmitted to packet data network gateway 15 with setting up the default bearer request message.
Packet data network gateway 15 is used to receive that gateway 14 transmits sets up the default bearer request message, and therefrom obtains the type information of said user terminal 11 request IP address allocated; Judge the identical IP address class type information of type information that whether exists in the operator configuration information that is provided with in advance with said user terminal 11 request IP address allocated; If then the type information according to user terminal 11 request IP address allocated is user terminal 11 distributing IP addresses; Otherwise; Send refusal to said gateway 14 and set up bearer messages; Just set up the default bearer response message; Cause information element wherein (Cause IE, Cause Information Element) parameter does not match for the IP address version, explains that promptly the type of said user terminal 11 request IP address allocated does not match.
The information content of operator configuration information is more, and wherein relevant with IP address information comprises the IP version information of PDN GW support or the IP version information that APN supports.
Said gateway 14 will be set up bearer messages from the refusal of packet data network gateway 15 and be transmitted to said mobile management entity 13.
Mobile management entity 13; The refusal of further transmitting according to said gateway 14 is set up bearer messages; Send the refusal request message through base station 12 to said user terminal 11, comprising the unmatched information of type of said user terminal 11 request IP address allocated.
Need to prove; When there was not the identical IP address class type information of type information with said user terminal 11 request IP address allocated in the CAMEL-Subscription-Information of user terminal 11, the Reason For Denial that mobile management entity 13 comprises in the unmatched information of type of the user terminal 11 request IP address allocated that user terminal 11 sends was that these user terminal 11 pairing CAMEL-Subscription-Information do not match; When there is not the identical IP address class type information of type information with said user terminal 11 request IP address allocated in operator configuration information; The Reason For Denial that mobile management entity 13 comprises in the unmatched information of type of the user terminal 11 request IP address allocated that user terminal 11 sends is that operator does not support, that is to say that network do not support the type of user terminal 11 request IP address allocated.
Preferably, referring to Fig. 2, said mobile management entity 13 comprises:
Receive request unit 21, be used to receive the message of user terminal 11 request distributing IP addresses, and therefrom obtain the type information of this user terminal requests IP address allocated.
First judging unit 22 is used for judging whether the CAMEL-Subscription-Information of said user terminal 11 exists the identical IP address class type information of type information of asking IP address allocated with said user terminal 11, if then trigger and send request unit 24; Otherwise, trigger the first refusal request unit 23.
The first refusal request unit 23 when being used for CAMEL-Subscription-Information when said user terminal 11 and not having the identical IP address class type information of type information with said user terminal 11 request IP address allocated, sends to said user terminal 11 and to refuse request messages; Perhaps when the refusal that receives said gateway 14 forwardings is set up bearer messages, set up bearer messages according to this refusal and send the refusal request messages to said user terminal 11.
Send request unit 24; Be used for when there is the identical IP address class type information of the type information of asking IP address allocated with said user terminal 11 in the CAMEL-Subscription-Information of said user terminal 11; Set up the default bearer request message through gateway 14 to packet data network gateway 15 transmissions, comprising the type information of said user terminal 11 request IP address allocated.
Second judging unit 25 is used for whether receiving the message that the refusal foundation of packet data network gateway 15 transmissions is carried according to mobile management entity 13, judges that whether said packet data network gateway 15 is refused is that said user terminal 11 is set up carrying.
The second refusal request unit 26 is used for when said packet data network gateway 15 refusals are set up carrying for said user terminal 11, sending the refusal request message to said user terminal 11.
Preferably, referring to Fig. 3, said packet data network gateway 15 comprises:
Receive request unit 31, be used to receive that gateway 14 transmits sets up the default bearer request message, and therefrom obtain the type information of said user terminal 11 request IP address allocated.
Judging unit 32 is used for judging whether operator configuration information exists the identical IP address class type information of type information of asking IP address allocated with said user terminal 11, if then trigger IP address assignment unit 34; Otherwise, trigger refusal request unit 33.
Refusal request unit 33; Be used for when there is not the identical IP address class type information of type information with said user terminal 11 request IP address allocated in said operator configuration information, sends refusal through said gateway 14 to mobile management entity 13 and setting up bearer messages.
IP address assignment unit 34; Be used for when there is the identical IP address class type information of type information with said user terminal 11 request IP address allocated in said operator configuration information, asking the type information of IP address allocated according to said user terminal 11 is said user terminal 11 distributing IP addresses.
To sum up; When MME receives Attach request (or the PDN connectivity request) message that UE sends; MME can check the PDN type parameter in this message; When UE application be the IP address of IPV4 type, and user contracting data is when representing that the pairing APN of this UE can only use the IP address of IPV6 type; Perhaps; When the UE application is the IP address of IPV6 type; And user contracting data is when representing that the pairing APN of this UE can only use the IP address of IPV4 type; Attach process or PDN connectivity that MME should refuse this UE initiation set up process, in Attach reject (or PDN connectivity reject) message, EMM Cause IE parameter are set simultaneously and do not match for the IP address class type.
If MME passes through the PDN type parameter testing that UE sends; MME can send Create default bearer request message and give Serving GW so; Serving GW sends this message and gives PDN GW, and PDN GW can check the PDN type parameter of carrying in this message according to operator configuration information, if inspection is not passed through; If i.e. UE application is the IP address of IPV4 type, and PDN GW can only use the IP address of IPV6 type; Perhaps; If the UE application is the IP address of IPv6 type, and PDN GW can only use the IP address of IPV4 type, so; PDN GW can refuse to set up and carry; Send simultaneously and set up default bearer response (Create default bearer response) message, in this message, Cause IE parameter is made as the IP address class type and does not match, notice Serving GW to Serving GW; Serving GW sends to MME with this message; After MME receives this message, refuse the Attach request (or PDN connectivity sets up request) of this UE, in Attach reject (or PDN connectivity reject) message, EMM Cause IE parameter is set simultaneously and does not match for the IP address class type.
Under following three kinds of situation, MME thinks that parameter testing is passed through to PDN type:
The release type of the IP address of indication UE not only can but also can be IPV6 for IPV4 in the corresponding CAMEL-Subscription-Information of situation one: UE, and the PDN type parameter that UE sends is IPV4, IPV6 or IPV4V6.
The release type of the IP address of indication UE is IPV4 in the CAMEL-Subscription-Information of situation two: UE correspondence, and the PDNtype parameter that UE sends is IPV4; Perhaps, the release type of the IP address of indication UE is IPV6 in the CAMEL-Subscription-Information of UE correspondence, and the PDN type parameter that UE sends is IPV6.
The release type of the IP address of indication UE is IPV4 or IPV6 in the CAMEL-Subscription-Information of situation three: UE correspondence, and the PDN type parameter that UE sends is IPV4V6.
Wherein, above-mentioned situation three times, MME need make amendment to the PDN type parameter that UE sends, if the release type of the IP address of indication UE is IPV4 in the CAMEL-Subscription-Information that promptly UE is corresponding, the PDN type parameter modification that then UE is sent is IPV4; If the release type of the IP address of indication UE is IPV6 in the CAMEL-Subscription-Information of UE correspondence, the PDN type parameter modification that then UE is sent is IPV6.After the PDN type parameter modification of MME to the UE transmission, send Create default bearer request message and give Serving GW, wherein carry amended PDN type parameter.
In like manner, under following three kinds of situation, PDN GW thinks the PDN type parameter testing of carrying in the Create default bearer request message is passed through, and is UE distributing IP address:
Situation 1: indication both can be the IP address of UE distributing IP V4 release type in the operator configuration information; Can be the IP address of this UE distributing IP V6 release type again, and the PDN type parameter of carrying in the Create default bearer request message is IPV4, IPV6 or IPV4V6.
Situation 2: indication can only be the IP address of UE distributing IP V4 release type in the operator configuration information, and the PDN type parameter of carrying in the Create default bearer request message is IPV4; Perhaps, indication can only be the IP address of UE distributing IP V6 release type in the operator configuration information, and the PDN type parameter of carrying in the Create default bearer request message is IPV6.
Situation 3: indication can only be the IP address of UE distributing IP V4 or IPV6 release type in the operator configuration information, and the PDN type parameter of carrying in the Create default bearer request message is IPV4V6.
Wherein, Above-mentioned situation 3 times; PDN GW need make amendment to the PDN type parameter of carrying in the Create default bearer request message; If promptly indication can only be the IP address of UE distributing IP V4 release type in the operator configuration information, is IPV4 with the PDN type parameter modification that carries in the Create default bearer request message then; If indication can only be the IP address of UE distributing IP V6 release type in the operator configuration information, is IPV6 with the PDN type parameter modification that carries in the Create default bearer request message then.And; PDN GW is according to the IP address that UE distributes the respective version type that is designated as of operator configuration information; Send Create default bearer response message and give Serving GW, wherein carry IP address allocated into UE, and the amended PDNtype parameter of PDN GW.
Introduce the method that the embodiment of the invention provides below in conjunction with accompanying drawing.
Referring to Fig. 4, a kind of IP address assignment method that the embodiment of the invention provides specifically comprises step:
S401, MME receive the message of UE request distributing IP address, and therefrom obtain the type information of UE request IP address allocated.
The message of UE request distributing IP address is the Attach Request message or the grouped data network PDN connection request message of this UE transmission.
S402, MME search the CAMEL-Subscription-Information of the UE that self stores in advance.
S403, MME judge the identical IP address class type information of type information that whether exists in the CAMEL-Subscription-Information of UE with UE request IP address allocated, if then carry out step S405; Otherwise, carry out step S404.
S404, MME send the refusal request message to UE, comprising the type of the UE request IP address allocated information that do not match.
S405, MME send to Serving GW and set up the default bearer request message, comprising the type information of UE request IP address allocated.
S406, Serving GW transmit the said default bearer request message of setting up to PDN GW.
S407, PDN GW search the operator configuration information of storage in advance according to setting up the default bearer request message.
S408, PDN GW judge the identical IP address class type information of type information that whether exists in the operator configuration information with said UE request IP address allocated, if then carry out step S412; Otherwise, carry out step S409.
S409, PDN GW send refusal to Serving GW and set up bearer messages, comprising the type of the UE request IP address allocated information that do not match.
S410, Serving GW transmit refusal to MME and set up bearer messages.
S411, MME send the refusal request message to UE, comprising the type of the said UE request IP address allocated information that do not match.
The refusal request message that MME sends to UE is for adhering to refuse information or Packet Data Network's connection refused message.
S412, PDN GW are this UE distributing IP address according to the type information that UE asks IP address allocated.
Need to prove; The technical scheme that the embodiment of the invention provides is not limited to connect and to set up the IP address assignment in the process setting up default bearer process or PDN; DHCP (DHCPV4 through edition 4 after accomplishing for the process of setting up at default bearer; Dynamic Host Configuration Protocol Version 4) distributing IP address is that the situation of UE distributing IP address is suitable equally through the automatic configuration mechanism of stateless address perhaps.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.