Background technology
(Dynamic Host Configuration Protocol DHCP) provides the mechanism of a kind of dynamic assigned ip address and configuration parameter to DHCP, and it is mainly used in the relatively place of difficulty of large network environment and configuration.According to this agreement, Dynamic Host Configuration Protocol server can be client computer assigned ip address automatically, some is also uncorrelated with the IP agreement for the configuration parameter of appointment, but because the layoutprocedure of DHCP can realize automatically, all configuration informations can be by the Dynamic Host Configuration Protocol server unified management, not only can the distributing IP address, but also can dispose other a large amount of information, these configuration parameters make the compunication on the network become convenient and realize that easily therefore, DHCP is widely used now.
DHCP generally adopts the Client/Server pattern, by user end to server configuration application (comprising parameters such as IP address allocated, subnet mask, default gateway) is proposed, server returns corresponding configuration information according to strategy, and the DHCP message adopts UDP to encapsulate.
Defined member mainly comprises in the DHCP agreement:
DHCP Server: the administration configuration server, DHCP is provided service, according to the request of client, be client distributing IP address or other network parameters, general existence form comprises: router, three-tier switch or special Dynamic Host Configuration Protocol server;
DHCP Relay: the equipment of transmission of dhcp message between DHCP Server and DHCP Client, for the server in the different segment and client can transmit the DHCP message, it also provides secure option simultaneously; DHCP Relay provides a kind of transparent transmission mechanism of broadcasting packet, for not providing forwarding capability by the dhcp broadcast message of switch, make Dynamic Host Configuration Protocol server to provide service for dhcp client not at its this network segment, Relay is after receiving the DHCP request message that client is sent, the interface IP address of receiving this message is inserted message, transmit then, Dynamic Host Configuration Protocol server just can determine according to the interface IP address in the message of receiving needs distribute the IP address of which subnet like this;
DHCP Client: utilize the DHCP agreement to obtain the main frame of configuration parameter (as: IP address) in the network, promptly client host or other can obtain the three-layer equipment of IP address.
The network insertion session connection with a subscriber's (Subscriber) IP address correlation has been represented in IP session (IP session), IP Session and point-to-point session (PPP Session) equity, be based on the session connection of IP, IP Session goes up termination at IP edge device (BNG/BRAS) usually, and promptly IPSession is that a session (session) of setting up between subscriber terminal equipment and IP edge device is connected.The IP address of Subscriber is a crucial part in the parameter of identification IP Session and the verification process, the IP address is generally by DHCP management and configuration, be that the application of the IP Session IP address of using is in the Dynamic Host Configuration Protocol server application, IP Session is used for the activity of user access network is managed, for example accounting management, condition managing etc.Subscriber (Subscriber) is the role who contracts with Virtual network operator, the client needs access network, need to contract with operator, finally become a subscriber, as obtain a network access user name, a subscriber can comprise a plurality of IP sessions, and promptly a plurality of IP sessions are that same subscriber sets up.
The process of IP Session generally includes foundation or the generation of Session, and Session keeps or state detection, the termination of Session.
Wherein, the termination of IP Session can be divided into initiatively (non-passive) termination and passive termination.
The situation of IP Session active termination comprises: the DHCP addresses distributed rental period expires, and Dynamic Host Configuration Protocol server is initiatively regained the address or discharged configuration; Perhaps IP session client initiatively discharges the address, and for example DHCP client carries out address release by sending DHCP RELEASE message.
The situation of the passive termination of IP Session comprises: IP Session survival mechanisms (Keep-alive mechanism) detects IP session and has no progeny and trigger the termination of IP session, the IP session that authentication and authorization charging server triggers stops, as the pre-paid subscribers expense exhaust stop the service, the termination that network management triggers, the carrying link of session connection or the termination of path down trigger are as the termination that detects link down trigger by OAM mechanism etc.
During IP Session active termination, DHCP Server can be known the termination incident, thereby can discharge address resource; But, during the passive termination of IP Session, because DHCP Server can't know the termination incident, therefore can't discharge relevant IP resource, can cause the wasting of resources, and DHCP Server can't notify upper layer application server (for example: location server CLF, strategic server, resource management server) Session to stop owing to can't know the Session state of connection.
Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are elaborated.
Accompanying drawing 1 is for realizing the representative network Organization Chart of IP session (session), wherein, CPE/CPG is customer rs premise equipment/gateway (Customer Premise Equipment/Gateway), as PC or RG (Residential Gateway), AN is access node (Access Node), aaa server is authentication (Authentication, Authorization and Accounting, an AAA) server.The user can or set up IP session by this architectures, and promptly the user is by the IPsession access network.Aaa server can carry out Certificate Authority to the IP session; Administration configuration server (as Dynamic Host Configuration Protocol server) can be parameters such as IP session configuration address; Application server (as the on-position associated server, i.e. CLF server, perhaps strategic server, perhaps resource management server) can carry out on-position management, tactical management or network resource management to subscriber's session.Behind subscriber's access network, aaa server and/or administration configuration server can notify subscriber's session to set up successfully, and aaa server can charge to the subscriber, and subscriber A comprises two session connections in this Organization Chart, the corresponding session connection of subscriber B.Need to prove that the Organization Chart shown in the accompanying drawing 1 only is that example is used, in actual application, the concrete network architecture is not limited thereto, as long as can realize the function of IP session.
Accompanying drawing 2 is the main flow chart of the described method of the embodiment of the invention, and when passive termination took place in the IP session, IP session connection end points can carry out following steps proactive notification administration configuration server (for example Dynamic Host Configuration Protocol server) and discharge configuration:
Step 201, session connection end-point detection arrive the session connection of appointment by passive termination;
Described session connection end points comprises: wideband network gateway (Broadband NetworkGateway, BNG), or Broadband Remote Access Server (Broadband Remote AccessServer, BRAS), or IP edge device (IP Edge device), and other have the equipment of session connection endpoint functionality; The described method that detects passive termination can be the termination incident that described session connection end points detects session connection, be passive termination and non-passive termination according to Identification of events then, passive termination refers to not to be the termination that initiatively triggers by session connection client and administration configuration server, and the termination that right and wrong initiatively trigger, for example: utilize the survival mechanisms (Keep-alive mechanism) of session connection to detect the termination that the triggering session of having no progeny in the session connects; The session connection that authentication and authorization charging server triggers stops, and exhausts the termination that stops to serve and trigger as the pre-paid subscribers expense; The termination that network management system triggers; Interrupt and the termination of triggering in the link or the path of carrying session connection, as detect the termination of link down trigger by OAM mechanism.
Step 202, session connection end points generate and stop notification message, send to the administration configuration server corresponding with described session connection then.Described termination notification message can adopt DHCP Release message, also can adopt the Indication message of the message format that meets DIAMTER or snmp protocol, can also be the form of message that meets other agreements or interface standard.Carry the information that announcement session connects in this message, wherein, should comprise the sign of session connection at least, as the IP address.The session connection end points is according to the session connection information structuring of preserving and send message, renewal that the session connection information that the session connection end points is preserved is preserved from session connection foundation and/or middle is preserved, handle the session connection information of upgrading as the continuity of IP address rental period, the session connection end points can be surveyed by DHCP and obtain data session link information parameter, also can be other related protocols such as SNMP (Simple Network Management Protocol) session connection information parameter.
After step 203, configuration management server are received described termination notification message, resolve the termination notification message of receiving, remove processing, for example: discharge session connection relevant configuration or resource, relevant configuration or resource comprise the IP address.
Optional step 204, configuration management server are constructed new notification message according to the termination notification message parameter of receiving, stop notification message as session connection, send described message to application server, the termination that the notice application server carries out session connection.Described application server comprises on-position associated server, strategic server, resource management server etc.Described notification message can be the Indication message that meets the message format of DIAMTER or snmp protocol, wherein, the sign that should comprise session connection at least, as the IP address, described application server carries out termination according to discharging Indication message, as on-position related information or the strategy of strategic server deletion session connection or the resource that resource management server release session connection takies etc. of on-position associated server deletion session connection.
In sum, configuration management server receives that the notice of session connection termination or the releasing processing of indication comprise that configuration management server discharges self-administered resource or configuration, as the IP address etc., further can comprise the termination that configuration management server notice application server carries out session connection.
Be specifying of the embodiment of the invention below.
Embodiment one: passive termination notification message adopts DHCP Release message, and session connection is IPsession (IP session), and the administration configuration server is a Dynamic Host Configuration Protocol server, and as shown in Figure 3, concrete steps are as follows:
Step 301, session connection end-point detection arrive the IP session of appointment by passive termination;
Session connection end points (as BNG, BRAS or IP Edge) detects the passive termination of IP Session of appointment, for example: the session connection end points detects IPSession by IP Session Keep-alive mechanism and interrupts, perhaps the manager stops the IPSession of appointment by management interface on the session connection end points, and perhaps aaa server stops the IP session of appointment because the pre-paid subscribers expense has used up.
Step 302, session connection end points generate the DHCP Release message of the IP Session that is terminated, then described DHCP Release message are sent to Dynamic Host Configuration Protocol server, notify described Dynamic Host Configuration Protocol server to remove processing, as discharging the IP address resource;
In described step 302, preferred session connection end points has DHCP Relay or DHCP PROXY function, DHCP Relay or DHCP PROXY can preserve the part correlation information of IP Session when IP Session sets up, as the IP address of IP Session, the address information of address assignment rental period, Dynamic Host Configuration Protocol server address, IPSession client etc.The session connection end points can be according to the part correlation information structuring DHCP Release message of the IP Session of described preservation, and concrete message format can be referring to the DHCP consensus standard, as RFC 2131.
In addition, in the described step 302, because DHCP Release message is not asked response mechanism, therefore can not guarantee whether resource discharges certain successful, confirm if desired to discharge successfully, the session connection end points can inquire about (whether (RFC 4388) mechanism inspection address resource has discharged success by the rental period.
Step 303, Dynamic Host Configuration Protocol server are received described DHCP Release message, resolve this message after, according to the content of this message, remove processing, for example: discharge the IP address; If there is application server, Dynamic Host Configuration Protocol server can also notify application server to carry out the termination of session connection, for example send session connection and stop notification message to application server, the notice associated application servers is carried out the session connection termination, gives the session connection configured strategy or discharges resource that session connection takies etc. as the on-position related information of deletion session connection or deletion;
Step 304, session connection end points generate to charge and stop message (Accounting Stop), then this message are sent to accounting server (aaa server);
Step 305, after aaa server receives that charging stops message, stop charging to current IP Session, judge whether the IP Session that current generation stops is last Session that specifies the subscriber, if and have an application server, then send subscriber's indication notification message that rolls off the production line to application server, require application server to stop all session connections of subscriber, the resource that takies as the collocation strategy of all session connections of the on-position related information of all session connections of on-position associated server deletion subscriber or strategic server deletion subscriber or all session connections that resource management server discharges the subscriber; Here, aaa server need stop (Accounting Stop) message by charging and finds subscriber's profile, subscriber's profile comprises subscriber's CAMEL-Subscription-Information and subscriber's parameter, as subscriber's title, password etc., can be according to IP address or MAC Address or LLID searching; After aaa server finds charging to stop the subscriber profile of (Accounting Stop) message correspondence, the structure subscriber indication notification message that rolls off the production line, send to application server, subscriber's indication notification message that rolls off the production line comprises and is not limited only to DIAMTER, snmp message, aaa server subscriber profile parameter and charging stop (AccountingStop) message, with reference to the messaging protocol structure subscriber indication notification message that rolls off the production line, subscriber's indication notification message that rolls off the production line comprises subscriber identification (as subscriber's title) at least or/and subscriber's IP address.
Step 306, session connection end points are removed session connection.
The session connection end points is removed the local configuration data of IP session, as the address binding table, stops Keep-alive timer etc.
Step 304,305 is an optional step, need be access via telephone line as the subscriber according to actual deployment needs whether, may not need.
Step 302 and 304 does not have the precedence requirement, and step 304 can be before step 302.
Embodiment two: passive termination notification message adopts the message format that meets DIAMTER or snmp protocol.
See also accompanying drawing 4, step 401 in the present embodiment is similar substantially with the concrete steps of the foregoing description 1 to step 406, difference is when detecting the situation of passive termination, the abnormal end notification message that the session connection end points generates adopts the message format that meets DIAMTER or snmp protocol, be that the session connection end points is removed processing by snmp protocol or DIAMTER notice of settlement administration configuration server, as the address that discharges the IP session etc.
Of particular note, in the implementation procedure of the specific embodiment of the invention, the session connection end points also can be removed processing by other agreements or interface notice administration configuration server, as the I P address that discharges session connection etc., exceeds to realize the object of the invention.
For example, if Dynamic Host Configuration Protocol server is the home server that is integrated in session connection end points inside, be that Dynamic Host Configuration Protocol server is to realize in same equipment with the session connection end points, the session connection end points can directly pass through API (Application Programming Interface API) directly notifies Dynamic Host Configuration Protocol server to remove processing in the described step 302.
Accompanying drawing 5 is the non-passive termination process schematic diagram of system of the present invention, and session connection is IP session (IP session), and the administration configuration server is a Dynamic Host Configuration Protocol server, and as shown in Figure 5, concrete steps are as follows:
Step 501, session connection end-point detection connect by non-passive termination to session;
Session connection end points (BNG/BRAS/IP Edge) detects the non-passive termination of IP Session of appointment, and for example: the session connection end points detects DHCP release message by DHCP Relay or PROXY mechanism, and the triggering session connection termination is handled.
Step 502, Dynamic Host Configuration Protocol server detect session connection by non-passive termination, as receive DHCPrelease message or detect the address rental period and expire, and the releasing that the Dynamic Host Configuration Protocol server triggering session connects is handled;
Step 503, Dynamic Host Configuration Protocol server are received described DHCP Release message, resolve this message after, according to the content of this message, discharge the address of appointment, perhaps according to rental period of appointment address that expires; If have application server then Dynamic Host Configuration Protocol server sends session connection to application server stops notification message, the notice application server stops session connection and handles, and deletes the on-position related information of described session connection or collocation strategy or resource management server that strategic server is deleted described session connection discharge the resource that described session connection takies as the on-position associated server;
Step 504, session connection end points generate to charge and stop message (Accounting stop), send a message to accounting server (aaa server) then;
Step 505, after aaa server receives that charging stops message, judge whether the IPSession that current generation stops is last Session that specifies the subscriber, if and have an application server, then send subscriber's indication notification message that rolls off the production line to application server, require application server to stop all session connections of subscriber, the resource that takies as the collocation strategy of all session connections of the on-position related information of all session connections of on-position associated server deletion subscriber or strategic server deletion subscriber or all session connections that resource management server discharges the subscriber; Here, aaa server need stop (Accounting Stop) message by charging and finds subscriber's profile, subscriber's profile comprises subscriber's CAMEL-Subscription-Information and subscriber's parameter, as subscriber's title, password etc., can be according to IP address or MAC Address or LLID searching; After aaa server finds charging to stop the subscriber profile of (AccountingStop) message correspondence, the structure subscriber indication notification message that rolls off the production line, send to application server, subscriber's indication notification message that rolls off the production line comprises and is not limited only to DIAMTER, snmp message, aaa server subscriber profile parameter and charging stop (Accounting Stop) message, with reference to the messaging protocol structure subscriber indication notification message that rolls off the production line, subscriber's indication notification message that rolls off the production line comprises subscriber identification (as subscriber's title) at least or/and subscriber's IP address.
Step 506, session connection end points are removed session connection.
The session connection end points is removed the local configuration data of session connection, as the address binding table, stops Keep-alive timer etc.
Step 504,505 is an optional step, need be according to actual deployment needs whether, and using as special line not to need charge information.
See also accompanying drawing 6, the described session connection management devices of the embodiment of the invention comprises:
The session connection state detection module is used to survey the state event of described session connection, the passive termination of identification session connection;
Session connection state notifying module is used for the passive termination event notice of described session connection to the relevant administration configuration server of described session connection.
Of particular note, as described in embodiment in front, Dynamic Host Configuration Protocol server can be the home server that is integrated in session connection end points inside, be that Dynamic Host Configuration Protocol server and session connection end points are realized in same equipment, in this case, described IP session processing unit and Dynamic Host Configuration Protocol server can be positioned at same entity, and promptly described session connection processing unit can be in the same place with the administration configuration server is integrated.
See also accompanying drawing 7, the described session connection management system of the embodiment of the invention comprises:
The session connection end-point devices is used to manage described session connection, surveys the termination incident of described session connection, discerns the passive termination of described session connection, notifies described session connection relevant administration configuration server described passive termination;
The administration configuration server is used to manage the configuration of described session connection, receives the passive termination notice that comes from described session connection end points, resolves described passive termination notice, removes processing, as discharging the IP address at interior related resource.
Application server after passive termination takes place in session connection, according to the request of described administration configuration server, discharges the resource relevant with described session connection.
Wherein, described application server can be strategic server, session connection location server or resource management server or the like.
Wherein, described administration configuration server can also comprise:
Notification module is used for notifying described application server with the passive termination message of described session connection.
Wherein, described administration configuration server can also comprise:
Initiatively discharge processing module, be used for initiatively discharging the configuration of described session connection, and the termination of described session connection is notified to application server.
Described session connection management system can also comprise:
Authentication and authorization charging server, after passive termination takes place in session connection, according to the request of described session connection end points, the processing of chargeing accordingly.
Wherein, described session connection end points can also comprise:
Charge to handle notification module, be used for after described session connection end points detects session connection and stops, notify the processing of chargeing accordingly of described authentication and authorization charging server.
Whether wherein, described authentication and authorization charging server: detecting described session connection is last connection of subscriber if may further include, if then send subscriber's indication of rolling off the production line and be notified to the relevant application server of described session connection.
The concrete signalling interactive process and the associative operation of said apparatus and system can be with reference to the detailed descriptions of top embodiment.
The above; it only is the preferable embodiment of the embodiment of the invention; but the protection range of the embodiment of the invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the invention discloses; the variation that can expect easily or replacement all should be encompassed within the protection range of the embodiment of the invention.Therefore, the protection range of the embodiment of the invention should be as the criterion with the protection range of claim.