Background technology
Internet and mobile communication be as two important symbols of the information-intensive society of marching toward, and the Internet correspondence a large amount of information resources that can be accessed, and mobile communication then is the personal communication of roaming everywhere.The development of WAP technology impels both to organically combine, and makes people's visit information resource no longer be subjected to the restriction in time and space.
The mobile subscriber is during by the resource on the WAP gateway visit Internet, at first to pass through GGSN, GGSN distributes related resource and preserves these information for it, by Radius message user profile is sent to WAP gateway subsequently, WAP gateway and GGSN want cache user information like this, owing to mutual reason such as switchings between information drop-out, equipment fault, the system, often cause in two equipment user profile inconsistent, cause user capture to fail.
At present, the flow process of user capture WAP station website comprises as shown in Figure 1:
Step 1~2, the terminal use reaches the standard grade and initiates the PDP activation;
Step 3, GGSN distributes temporary resource for it, as IP, Qos, charging ID etc., and sends Radius message and brings WAP gateway, these information of WAP gateway cache user with relevant information to WAP gateway;
Step 4~6 are returned response successively.
Step 7~10, subsequent user is initiated service request, no longer carries user profile, and WAP gateway inserts for the user provides WAP to use, and the user is inserted PDN(Public Data Network), and return response successively.
Give the line request until the user, GGSN deletion user profile also notifies WAP gateway to delete this user profile.In whole user profile reciprocal process, the user profile that the reception GGSN that WAP gateway only just can be passive when the user reaches the standard grade for the first time sends all can't get access to user profile in other cases.This just causes such scheme to have following shortcoming:
1, switch between GGSN and the WAP gateway, the user can't normally visit
Under the normal condition, A area user and B area user profile are kept at respectively among the GGSN and WAP GW of two places, the user profile basically identical among two places GGSN and the WAP GW, and the two places customer service all can normally be visited, as shown in Figure 2.
When a certain LAN device fails, local service need be cut other areas, as shown in Figure 3.At this moment, the WAP GW on A ground stops service, A ground business need be cut into B ground, be about to GGSN (A) and point to WAP GW (B),, therefore need A ground user offline because WAP GW (B) does not have the user data among the GGSN (A), again the back GGSN (A) that reaches the standard grade just can send to A ground user profile WAP GW (B), certainly under this sight, GGSN (A) also can force users roll off the production line, and allows the user initiate the request of reaching the standard grade again.Reduce the user experience on A ground like this.
2, cause WAP GW to lose local GGSN user data information when reasons such as information drop-out or WAP GW equipment break down, cause the user capture failure.
As shown in Figure 4, step 1~10 are identical with the described step 1 of Fig. 1~10, after this, because a variety of causes may cause WAP GW to lose local GGSN user data information, at this moment after WAP GW receives user's request of step 11, because user data is lost, miscue can appear.When continuous appearance repeatedly after the miscue, user terminal is forced to roll off the production line, and reaches the standard grade again once more to initiate PDP and activate request, can make the user reuse the WAP application service by the mode that GGSN redistributes user's temporary resource information.Had a strong impact on the use of user, reduced user experience business.
Embodiment
For making purpose of the present invention, technological means and advantage clearer, the present invention is described in further details below in conjunction with accompanying drawing.
Fig. 5 is the method overview flow chart of interactive information between WAP gateway and GGSN in the embodiment of the invention.As shown in Figure 5, this method comprises:
Step 501, when the user reached the standard grade, the WAP gateway that responsible user inserts received and preserves the temporary resource information that GGSN distributes for the user, for the user provides WAP the access service of application.
Step 502, when the temporary resource information dropout of preserving in the WAP gateway or carry out WAP gateway when switching, the WAP gateway that current responsible user inserts obtains described temporary resource information from GGSN again.
Wherein, the obtaining the temporary resource information mode and can have two kinds of this step, a kind of is WAP gateway initiatively obtains temporary resource information from the user to GGSN, another kind is GGSN initiatively sends a temporary resource information from the user to WAP gateway; In addition, lose user profile or carry out the different situations that WAP gateway switches for WAP gateway, the concrete mode of obtaining temporary resource information again is also different.In the specific embodiment of back, will be described in further details with regard to the concrete enforcement of the following two kinds of obtain manners of different situations.
Fig. 6 is the overall construction drawing of WAP gateway in the embodiment of the invention.As shown in Figure 2, this WAP gateway comprises that user profile acquiring unit, abnormality sensing unit and WAP use access unit.
In this WAP gateway, the user profile acquiring unit is used for when the user reaches the standard grade, and receives the temporary resource information that GGSN distributes for the user, and offers described WAP application access unit; And after the notice that receives the transmission of abnormality sensing unit, obtain user's temporary resource information again from GGSN.The abnormality sensing unit, the temporary resource that is used for determining the user is lost or has been carried out the WAP gateway switching, and notice user profile acquiring unit.WAP uses access unit, and the user's that provides according to the user profile acquiring unit temporary resource information is provided, the access service that provides WAP to use for the user.
Fig. 7 is the overall construction drawing of GGSN in the embodiment of the invention.As shown in Figure 7, this GGSN comprises: temporary resource allocation units, temporary resource issue unit and memory cell.
In this GGSN, the temporary resource allocation units are used for when the user reaches the standard grade, and the temporary resource information for the user distributes is saved in memory cell, and the notice temporary resource issues the temporary resource that the unit issues this distribution;
Temporary resource issues the unit, is used for after receiving the notice that issues the appointment temporary resource of described temporary resource allocation units, extracts the appointment temporary resource of preserving in the memory cell and also is handed down to the current WAP gateway that this user inserts of being responsible for; Also be used for when the temporary resource that WAP gateway switches or WAP gateway is preserved is lost, issue user's temporary resource information again to the current WAP gateway of being responsible for this user's access;
Memory cell is used to preserve the temporary resource information that the temporary resource allocation units distribute for the user.
Embodiment one:
In the present embodiment, suppose that user profile is lost in the WAP gateway, and WAP gateway from the mode that GGSN obtains user's temporary resource information is again: WAP gateway active inquiry mode.Because in the present embodiment is that user profile is lost in WAP gateway, therefore, the user never changes for providing the WAP gateway of WAP access services.
Fig. 8 is the method particular flow sheet of interacting user information between WAP gateway and the GGSN in the embodiment of the invention one.As shown in Figure 8, this method comprises:
Step 801, when the user reached the standard grade, the WAP gateway that responsible user inserts received and preserves the temporary resource information that GGSN distributes for the user, for the user provides WAP the access service of application.
Step 802, WAP gateway receive user's request that GGSN transmits, and determine that user profile loses.
Cause the reason that user profile loses may be various, for example user's on-line message be lost or WAP gateway internal fault etc.
Determine that the concrete mode that user profile is lost is: WAP gateway receives user that GGSN transmits when asking, and WAP gateway is found self not this user profile, then determines to have lost this user profile.
Step 803, the request of WAP gateway cache user, and to GGSN transmission user profile query messages.
In this step, WAP gateway is determined the pairing GGSN in this IP address according to the IP address in user's request, sends the user profile query messages to this GGSN then, and comprise the IP address of terminal and the IP address of GGSN in the user profile query messages.The user profile query messages can redefine or the form that increases a field in existing message realizes.
In the concrete present embodiment, newly-increased a pair of Radius message is respectively Interim-Query-Request and Interim-Query-Response.Wherein Interim-Query-Request is the user profile query messages of this step transmission, and Interim-Query-Response is the user profile inquiry response in the step 704.When WAP gateway receives that the user asks, find not this user profile, send query messages Interim-Query-Request to GGSN, carry the IP address of GGSN and terminal, after GGSN receives this query messages, this IP user information corresponding is sent to WAP gateway by Interim-Query-Response, and its message content is with reference to Accounting-Request Start message.Two message structure definables as shown in Table 1 and Table 2.
Table 1 Interim-Query-Request message definition
Field name |
Describe |
Remarks |
MessageType |
Type of message (Interim_Query_Request) |
Essential |
Calling_ID |
IP address of terminal |
Essential |
GGSNIP |
The IP address of GGSN |
Essential |
… |
… |
|
Table 2 Interim-Query-Response message definition
Field name |
Describe |
Remarks |
MessageType |
Type of message (Interim_Query_Response) |
Essential |
MSISDN |
Subscriber phone number |
Essential |
IMSI |
Terminal IMSI number |
Optional |
User_Name |
User name |
Optional |
User_Type |
User type |
Optional |
OperateID |
Carrier ID |
Optional |
NAS?IP |
Access Network IP address |
Essential |
Calling_ID |
IP address of terminal |
Essential |
Acct_Session_ID |
Session id |
Essential |
ChargeID |
Charging ID |
Essential |
Qos |
Service quality |
Optional |
BearType |
Bearer types |
Optional |
SGSN?IP |
SGSN IP address |
Optional |
APN |
Access points |
Optional |
… |
… |
… |
Step 804, GGSN returns the user profile inquiry response to WAP gateway, and carries user's temporary resource information after receiving the user profile query messages of WAP gateway transmission.
In this step, user's temporary resource information of returning to WAP gateway can comprise information such as carrying subscriber phone number, charging ID, Qos, APN.And the user profile inquiry response that returns can be the message of redetermination, or the new field of expansion realizes in original message.
In the present embodiment, as previously mentioned, redetermination Interim-Query-Request message is as the user profile inquiry response.
Step 805, WAP gateway receives the user profile inquiry response that GGSN returns, user's temporary resource information that buffer memory wherein carries, and transmit user's request, continue as user's service.
In this step, WAP gateway extracts user's temporary resource information and preserves in the user profile inquiry response that receives, to have regained the user profile of losing.
So far, the method flow in the present embodiment finishes.Be illustrated in figure 9 as according to the interacting message schematic diagram of above-mentioned flow process in each inter-entity.By said process as seen, after WAP gateway is lost user profile, can obtain the user profile of losing again by the mode of WAP gateway active inquiry user temporary resource information, thereby avoid having improved user's experience because user profile is lost the situation generation of the refusing user's service that causes.
Embodiment two:
In the present embodiment, suppose that WAP gateway switches, change the user of former cause WAP GW (A) service into service, and WAP gateway from the mode that GGSN obtains user's temporary resource information is again: WAP gateway active inquiry mode by WAP GW (B).WAP gateway switches in the present embodiment, and before the switching, GGSN A points to WAP GW (A), is WAP GW (A) for the user provides the WAP gateway of WAP access services just; After the switching, GGSN A points to WAP GW (B), is WAP GW (B) for the user provides the WAP gateway of WAP access services just.
Figure 10 is the method particular flow sheet of interacting user information between WAP gateway and the GGSN in the embodiment of the invention two.As shown in figure 10, this method comprises:
Step 1001, when the user reached the standard grade, the WAP GW (A) that responsible user inserts received and preserves the temporary resource information that GGSN distributes for the user, for the user provides WAP the access service of application.
Gateway takes place and switches in step 1002, and GGSN A points to WAP GW (B).
It is transparent that WAP GW switches to the user, and GGSN can initiatively not allow user offline yet, and this moment, the user can continue to send request.
Step 1003, WAP GW (B) receives user's request that GGSN A transmits for the first time, this user's request of buffer memory, and to GGSN A transmission user profile query messages.
In this step, send in the step 803 of the mode of user profile query messages and concrete user profile query messages and embodiment one identically to GGSN A, just repeat no more here.
Step 1004, GGSN A returns the user profile inquiry response to WAP GW (B), and carries user's temporary resource information after receiving the user profile query messages of WAP GW (B) transmission.
In this step, GGSN A returns in the step 804 of the mode of user profile inquiry response and concrete user profile inquiry response and embodiment one identical, just repeats no more here.
Step 1005, WAP GW (B) receives the user profile inquiry response that GGSN A returns, user's temporary resource information that buffer memory wherein carries, and transmit user's request, continue as user's service.
So far, the method flow in the present embodiment finishes.Be according to the interacting message schematic diagram of above-mentioned flow process in each inter-entity as shown in figure 11, wherein, MS A inserts WAP gateway by GGSN A, and MSB inserts WAP gateway by GGSN B, and GGSN B is the local GGSN of WAP GW (B).By said process as seen, after WAP gateway switches, can pass through the mode of the purpose WAP gateway active inquiry user temporary resource information of switching, again obtain the user profile in the source WAP gateway of switching, thereby avoid having improved user's experience because the situation that needs the user to reach the standard grade again after switching takes place.
Embodiment three:
In the present embodiment, suppose that WAP gateway switches, change the user of former cause WAP GW (A) service into by WAP GW (B) service, and WAP gateway from the mode that GGSN obtains user's temporary resource information is again: GGSN initiatively sends the mode of user's temporary resource information to WAP gateway.Similar with embodiment one, WAP gateway switches in the present embodiment, and before the switching, GGSN A points to WAP GW (A), is WAPGW (A) for the user provides the WAP gateway of WAP access services just; After the switching, GGSN A points to WAP GW (B), is WAP GW (B) for the user provides the WAP gateway of WAP access services just.
Figure 12 is the method particular flow sheet of interacting user information between WAP gateway and the GGSN in the embodiment of the invention three.As shown in figure 12, this method comprises:
Step 1201, when the user reached the standard grade, the WAP GW (A) that responsible user inserts received and preserves the temporary resource information that GGSN distributes for the user, for the user provides WAP the access service of application.
Step 1202, GGSN A finds that routing iinformation changes, and gateway switches to be finished, and GGSN A points to WAP GW (B).
It is transparent that WAP GW switches to the user, GGSN A can initiatively not allow user offline yet, after this, GGSN A determine WAP gateway switch finish after, initiatively send user's temporary resource information to WAP GW (B), the mode that specifically sends this temporary resource information has two kinds.
For first kind of mode, carry out following step during realization:
When step 1203a, GGSN A first user after receiving route exchanging asks, send user's on-line message, and carry user's temporary resource information to WAP GW (B).
In this step, user's on-line message that GGSN A sends is exactly existing user's on-line message Accounting-Request (start), carries user's temporary resource information in this message.
Step 1204a, WAP GW (B) receives user's on-line message that GGSN A sends, and preserves user's temporary resource information, is user's service.
In this case, it also is transparent switching to WAP GW (B), and WAP GW (B) is the user's service of A area.So far, the method flow that GGSN A utilizes first kind of mode to make WAP GW (B) obtain user's temporary resource information in the present embodiment finishes.Be under first kind of mode as shown in figure 13, at the interacting message schematic diagram of each inter-entity, wherein, MS A inserts WAP gateway by GGSN A, and MS B inserts WAP gateway by GGSN B, and GGSN B is the local GGSN of WAP GW (B).
For the second way, when realizing, carry out following steps:
Step 1203b, GGSN A is transmitting the temporary resource information of carrying the user when user asks.
Step 1204b, WAP GW (B) receive user's request that GGSN A transmits, and resolve this user's request and extraction user's temporary resource information wherein, preserve this information and continue as user's service.
So far, the method flow that GGSN A utilizes the second way to make WAP GW (B) obtain user's temporary resource information in the present embodiment finishes.Be under the second way as shown in figure 14, at the interacting message schematic diagram of each inter-entity, wherein, MS A inserts WAP gateway by GGSN A, and MS B inserts WAP gateway by GGSN B, and GGSN B is the local GGSN of WAP GW (B).
By the specific implementation of present embodiment as seen, under the mode for the gateway switching, can initiatively send the mode of user's temporary resource information by GGSN, make WAP gateway after the switching obtain user's temporary resource information, for the user provides service, thereby needing the user to reach the standard grade again after avoiding WAP gateway to switch can provide the situation of service for the user, improve user's experience.
Method idiographic flow in the foregoing description one~three all can be realized in WAP gateway shown in Figure 6.
To sum up, the WAP gateway that the embodiment of the invention provides and and GGSN between the method for interacting user information, enriched the interface between GGSN and the WAP gateway, improved the mutual flexibility of user profile between GGSN and the WAP gateway, the smooth migration of system when realizing switching mutually between GGSN and the WAP gateway, raising user's perception.Particularly,
1, in same set of GGSN and WAP GW inside, do not have user profile owing to reasons such as information drop-out or network failure cause WAP GW, this moment, WAP GW initiatively initiated query messages.
2, when GGSN and WAP GW switch, WAP GW is initiatively to new GGSN searching user's information.
3, when GGSN and WAP GW switch, GGSN can initiatively report new WAP GW with user profile.
Being preferred embodiment of the present invention only below, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.