Background technology
Along with the continuous development of the communication technology, mobile IP technology connects unbroken possibility for the user provides the across a network data service.When the user roams out ownership place, can adopt the access way of mobile IP, continue to use the service that provides by home network.At this moment, need the user at first to be connected to Foreign Agent, carry out information interaction by Foreign Agent and home agent again, thereby realize user's access.
When the user inserted, home agent was given user's home address assignment.When the user carries out the data service process, home agent will mail to user's data and be routed to Foreign Agent, be transmitted to user terminal by Foreign Agent.The data forwarding that Foreign Agent can directly send the user also can be forwarded to home agent with user's data to the internet, by home agent user's data is sent to the internet again.Thus, Foreign Agent cooperates the common user data service service that realizes with home agent.
When the user carried out data service, Foreign Agent can occur can not be for the user provides service, but the situation that home agent can't be learnt, home agent perhaps can occur can not be for the user provides service, but can't notify the situation of Foreign Agent.
As Foreign Agent for a certain reason (such as, user's abnormal off-line or managerial forbidding), ended user's connection, Foreign Agent will stop user's connection this moment, but owing to there is not the processing of Foreign Agent notice home agent user offline in the agreement of mobile IP, home agent possibly can't know that the user rolls off the production line.At this moment, home agent may need the connection by mode stops user such as the user is overtime.
For another example, when home agent provides prepaid data professional as prepayment client for the user, the angelica agency can't for user applies to new quota so that when continuing as the user and providing prepaid data professional, home agent will stop user's connection.At this moment, home agent may occur and discharge the user, but Foreign Agent condition of unknown also.
If Foreign Agent and home agent carry out the negotiation that mobile IP nullifies ability in advance, promptly when the user discharges, know that by a square tube that detects release in advance the opposing party need stop user's connection.Like this, Foreign Agent can correctly carry out alternately with home agent, carries out the processing that the user discharges synchronously.
If home agent and/or Foreign Agent do not have such ability, perhaps do not carry out the negotiation of this ability, will appear at home agent/Foreign Agent user and discharge, but in the also online situation of nonlocal proxy/home proxy user.
Summary of the invention
At the problems referred to above, the purpose of this invention is to provide a kind of method that stops user data service, to solve under mobile IP access situation, angelica agency and Foreign Agent do not have when notifying the ability that the other user need discharge mutually, and home agent is connected inconsistent problem with Foreign Agent to the termination user.
For achieving the above object, can be by all having the third party device of interacting message to realize with home agent and Foreign Agent.When user's access and practical business control, home agent and Foreign Agent all can go authentication to authentication, mandate and accounting server, obtain corresponding authorization message; If home agent or Foreign Agent produce charge information, also will send to authentication, mandate and accounting server.Therefore, can consider by authentication, mandate and accounting server when the termination user connects, home agent and local agent to be carried out synchronously.
A kind of method that stops user data service may further comprise the steps: step S102, Foreign Agent and home agent provide the data, services of mobile IP jointly for the user; Step S104, detecting with a side in the home agent at Foreign Agent needs to discharge under user's the situation about being connected, the message that will comprise the first connection termination information sends to authentication, mandate and accounting server, and stops user's data service corresponding to connection at side place; Step S106, the message that authentication, mandate and accounting server judge My World indicates first connection termination and user under also there is situation corresponding to the data service that connects in the opposing party, and authentication, mandate and accounting server are sent to the opposing party with the second connection termination message; And step S108, after the opposing party receives the second connection termination message, stop the connection of user's correspondence.
In step S102, Foreign Agent and home agent carry out authentication by authentication, mandate and accounting server to the user.
In step S102, when user's access authentication, authentication, mandate and accounting server are maintained in the presence information table for the user, and information table comprises the information of each connection of user.
In step S104, be connection service request message at Foreign Agent or home agent to the message that authentication, mandate and accounting server send, but service request can not be satisfied.
In step S104, the message that comprises the first connection termination information stops message for chargeing.
In step S106, authentication, mandate and accounting server determine according to the user online status information table of being safeguarded whether the opposing party exists corresponding to the information that connects.
In step S106, receive the message that comprises the first connection termination information when authentication, mandate and accounting server after, in the deletion user line information table corresponding to the information that connects.After mandate, authentication and accounting server receive the first connection termination message of a side to last connection of described user, deletion user online status information table.
Foreign Agent is the packet data service node in the code division multiple access system, and home agent is the home agent in the code division multiple access system.
The invention provides a kind of method that stops user data service, the actual conditions that this method can make system connect according to the user, determine the current connection that whether stops the user at Foreign Agent or home agent, for user's information synchronization in access device provides a kind of solution, thus the ability of raising system monitoring user data service.
Embodiment
Below in conjunction with corresponding accompanying drawing and specific embodiment a kind of method that stops user data service of the present invention is described in detail.
Network structure when Fig. 2 illustrates the user and moves IP and insert, wherein, user terminal 202 adopts the mode of MIP to insert Foreign Agent 204 and home agent 206.Foreign Agent 204 cooperates the service that data service is provided for the user jointly with home agent 206, Foreign Agent 204 is realized the access management function of user terminal 202, the binding that home agent 206 provides MIP to insert for user terminal 202.Authentication, mandate and accounting server 208 provide authentication, authorization service for user terminal 202, also can be user terminal 202 billing function is provided.
Below when carrying out data service, set up the situation of single connection at the user, Foreign Agent is initiated at first to discharge the user connects and home agent is at first initiated to discharge the situation that the user connects and described respectively.
Fig. 3 illustrates according to Foreign Agent of the present invention and at first discharges the flow chart that the user connects, and as shown in Figure 3, the concrete steps that Foreign Agent at first discharges user's connection are as follows:
At first, Foreign Agent and home agent provide the data, services (S302) of mobile IP jointly for the user.
Secondly, Foreign Agent detects needs to discharge user's connection, sends message to authentication, mandate and accounting server, comprises the information of user's connection termination in the message, and stops the data service (S304) that the user connects at Foreign Agent.
Once more, authentication, mandate and accounting server are judged the termination messages that message connects for the user, and also there is the information of connection in the user at home agent, and transmission message requires home agent also to stop user's connection (S306) to home agent.
At last, home agent is received the message that authentication, mandate and accounting server send, and interrupts user's connection (S308).
Wherein, in step S302, comprise that Foreign Agent and home agent carry out authentication to authentication, mandate and accounting server for the user.In addition, authentication, mandate and accounting server are maintained in the presence information table for the user when user's access authentication, will comprise the information that the user connects in the information table.
In step S304, the message that Foreign Agent sends for authentication, mandate and accounting server is this connection service request message of user, but this service request can not be satisfied.In addition, Foreign Agent stops message for the charging of this connection termination of user for message that authentication, mandate and accounting server send.
In step S306, whether authentication, mandate and accounting server also exist this to connect corresponding information at home agent according to the user online status information table decision user who safeguards.In addition, authentication, mandate and accounting server send to the message of home agent for interrupting this connection request message of user.
After authentication, mandate and accounting server receive that Foreign Agent comprises the message of user's connection termination, deletion user online status information table.
In above each step, Foreign Agent is the PDSN (Packet Data Service Node, packet data serving node) in CDMA (Code Division MultipleAccess, the code division multiple access) system, home agent is the HA (Home Agent, home agent) in the cdma system.
Fig. 4 illustrates according to home agent of the present invention and at first discharges the flow chart that the user connects, and as shown in Figure 4, the concrete steps that home agent at first discharges user's connection are as follows:
At first, Foreign Agent and home agent provide the data, services (S402) of mobile IP jointly for the user.
Secondly, home agent detects needs to discharge user's connection, sends message to authentication, mandate and accounting server, comprises the information of user's connection termination in the message, and stops the data service (S404) that the user connects at home agent.
Once more, authentication, mandate and accounting server are judged the termination messages that message connects for the user, and also there is link information in the user at Foreign Agent, and transmission message requires Foreign Agent also to stop user's connection (S406) to Foreign Agent.
At last, Foreign Agent is received the message that authentication, mandate and accounting server send, and interrupts user's connection (S408).
Wherein, in step S402, comprise that Foreign Agent and home agent carry out authentication to authentication, mandate and accounting server for the user.In addition, authentication, mandate and accounting server are maintained in the presence information table for the user when user's access authentication, will comprise the information that the user connects in the information table.
In step S404, the message that home agent sends for authentication, mandate and accounting server is this connection service request message of user, but this service request can not be satisfied.In addition, home agent stops message for the charging of this connection termination of user for message that authentication, mandate and accounting server send.
In step S406, whether authentication, mandate and accounting server also exist this to connect corresponding information at Foreign Agent according to the user online status information table decision user who safeguards.In addition, authentication, mandate and accounting server send to the message of Foreign Agent for interrupting this connection request message of user.
After authentication, mandate and accounting server receive that home agent comprises the message of user's connection termination, deletion user online status information table.
In above each step, Foreign Agent is the PDSN (Packet Data Service Node, packet data serving node) in CDMA (Code Division MultipleAccess, the code division multiple access) system, home agent is the HA (Home Agent, home agent) in the cdma system.
In cdma system, Foreign Agent is born by packet data serving node PDSN, and home agent is HA.The abort message that the user connects on PDSN can be that the charging of PDSN user offline stops message, when authentication, mandate and accounting server are received this message, can roll off the production line according to the relevant information judgement user that charging stops in the message.Authentication, mandate and accounting server can stop user's connection by sending interruption connection request message to PDSN or HA with request PDSN or HA when judging user offline.
Fig. 5 is illustrated in the cdma system, proceeds the management inhibiting user under the situation of data service, and Foreign Agent at first stops the schematic diagram that the user connects.As shown in Figure 5, this situation may further comprise the steps:
At first, the user adopts the mode of mobile IP (MIP) to insert, and carries out data service (S502).
Secondly, when the management inhibiting user proceeded data service, the charging that PDSN sends the user stopped message to aaa server, comprised the information (S504) that the user stops in the message.
Once more, the aaa server response is chargeed and is stopped message, and checks whether current HA also exists user's link information; Simultaneously, PDSN discharges user's connection; (S506)
Then, aaa server judges that also there is user connection information in HA, sends and interrupts connection request message to HA, and request HA stops user's connection (S508).
At last, HA stops the connection of relative users, and connection request message (S510) is interrupted in response.
In cdma system, when the user adopted MIP to insert, HA can bear prepayment client, to realize the real-time control to the user prepayment business.AAA and prepaid server PPS provide the authentication and the authorization service of pre-payment jointly for the user.Carry out in the process in prepayment service, when HA can't arrive quota for user applies, HA should stop user's connection.
Fig. 6 is illustrated in the cdma system, and HA takes prepayment client and can't apply under the situation of quota again, and home agent at first stops the schematic diagram that the user connects.As shown in Figure 6, this situation may further comprise the steps:
At first, the user adopts the mode of MIP to insert, and HA provides prepaid services (S602) as prepayment client for the user.
Secondly, when HA upward used for the user applies quota, HA initiated online quota update inquiry information (S604) to the AAA/PPS server.
Once more, the AAA/PPS server judges that user's quota uses, and responds online quota updating message to HA, does not comprise new quota in the message; Simultaneously, HA discharges user's connection (S606).
Then, the AAA/PPS server is initiated the interruption connection request message (S608) of relative users to PDSN.
At last, PDSN stops corresponding user and connects, and connection request message (S610) is interrupted in response.
Those skilled in the art will readily understand additional advantages and modifications of the present invention.Therefore, above-mentioned at embodiment be described as the concrete Application Example of the present invention, the present invention aspect widely is not limited to the specific detail and the exemplary embodiments that illustrate and describe herein.Therefore, can under the condition that does not break away from by claim and the spirit or scope of the present invention that equivalent limited thereof, make various modifications.