A kind of method of ground field management entity System Fault Tolerance
Technical field
The present invention relates to the problem of ground field management entity System Fault Tolerance in a kind of flexible IP network technology system.Specifically, the present invention relates to that the ground field management entity comprises program exception, unit exception etc. to the detection of the system failure in the flexible IP network technology system, and the method for these abnormal conditions being made corresponding judgment and processing.
Background technology
Along with the improvement of the development of Internet and portable instrument volumes such as notebook computer and PDA, weight, performance, the realization of mobile office becomes easily gradually.Mobile IP is by the Internet engineering duty (IETF of group, Internet Engineering Task Force) standard of Zhi Dinging, it is the solution of process IP host mobile communication in the internet, realize that the IP main frame need not change its original IP address when mobile, in not interrupt communication with do not restart under the situation of application program and need not change the link layer access point.
Along with mobile IP technology obtains paying attention to and using, the user is also strict more to the requirement of mobile IP technology, and the applicability and the robustness of system are had higher requirement.The network environment that the user uses varies, and unusually also happening occasionally appears in the network equipment that the user uses.Traditional mobile IP system does not have the unusual mechanism of detection system and network environment because of its application limit.Because the abnormal conditions for system can not detect and recover automatically, the user is unaware of the temporary fault of network environment, can make old registration occupying system resources, new flow process can't be set up, make the user can't normally use mobile IP system to carry out data access and operation, cause communication disruption the most at last.How user's network environment, the running status of the network equipment are detected in real time,, also having a strong impact on the application and the popularization of mobile IP system the important component part that the corresponding processing of making of unusual situation is a mobile IP system occurring.
Summary of the invention
The invention solves network environment in the background technology, the network equipment and occur that system can not detect and recover automatically when unusual, cause the technical problem of communication disruption the most at last.
Technical solution of the present invention is:
A kind of method of ground field management entity System Fault Tolerance is characterized in that: this method may further comprise the steps
1). detect the log-on message state
(1.1). system carries out mark to each register requirement of mobile node 6;
(1.2). judge whether program exception of mobile node 6;
(1.3) if. unusual, then handle unusual: remove tunnel, binding table and the routing iinformation of this mobile node 6, rebulid all information of this mobile node 6;
2). detect the intermediate equipment abnormal mechanism
(2.1). the running status of 1 pair of current system of flexible IP ground field management entity detects, and judges whether the state synchronized with other management entities;
(2.2) if. asynchronous, then notify nonsynchronous management entity to carry out system restart.
Said system is carried out mark to each register requirement of mobile node 6 and be may further comprise the steps:
1). for mobile node 6 is set up the enrollment status status indication
Flexible IP ground field management entity 1 is set up the enrollment status status indication for current all mobile nodes 6 that are in active state, and this login state mark is set to sky.
2). register connection
(2.1). registration for the first time connects:
(2.1.1). mobile node 6 roams into the extended network territory, sends register requirement to flexible IP access-in management entity 3.
(2.1.2). after the register requirement of once receiving mobile node 6 of access-in management entity 3, according to the enrollment status status indication in the register requirement, dynamically set up the enrollment status status indication of this mobile node 6, the login state mark is set to 0 simultaneously, and request is transmitted to ground field management entity 1.
(2.1.3). ground field management entity 1 is when receiving the register requirement of a mobile node 6 for the first time, and ground field management entity 1 is set up the user list item of this mobile node 6, then this mobile node 6 is carried out authentication.Authentication is passed through, and the enrollment status status indication of ground field management entity 1 this mobile node 6 is set to 0, and expression connects beginning.Authentication is unsuccessful, then deletes the user list item of this mobile node 6.
(2.1.4). ground field management entity 1 sends registration reply for the first time to mobile node 6, and this is replied by 3 transfers of access-in management entity.The enrollment status status indication of this mobile node 6 is set to 1 on ground field management entity 1, and also the enrollment status status indication of this mobile node 6 is set to 1 on access-in management entity 3.
(2.2). registration for the second time connects:
(2.2.1). mobile node 6 is after the enrollment status status indication on the ground field management entity 1 is 1, and ground field management entity 1 can wait for that this mobile node 6 sends register requirement for the second time; Simultaneously, ground field management entity 1 transmits the address parameter information that data tunnel needs of setting up mutually with access-in management entity 3.
(2.2.2). when mobile node 6 sends register requirement to ground field management entity 1 for the second time, in the process of carrying out the register requirement second time, ground field management entity 1 and access-in management entity 3 will further produce and transmit the address parameter information that data tunnel needs of setting up.
(2.2.3). after access-in management entity 3 obtains setting up the address parameter information of data tunnel needs, set up the tunnel of this mobile node 6.After the tunnel was successfully set up, the enrollment status status indication of this mobile node 6 was set to 2.
(2.2.4). after ground field management entity 1 obtains setting up the address parameter information of data tunnel needs, set up the data tunnel of this mobile node 6; Data tunnel is set up successfully, and the enrollment status status indication of ground field management entity 1 this mobile node 6 is set to 2, then register requirement success.
(2.2.5). ground field management entity 1 sends replying of register requirement success to mobile node 6, and this is replied by access-in management entity 3 and transmits.After mobile node 6 is received registration reply, set up the tunnel, and to replying that ground field management entity 1 transmission tunnel is successfully set up.The login state mark of mobile node 6 oneself is set to 2.
Above-mentionedly judge mobile node 6 whether program exception is meant to judge whether ground field management entity 1 takes place unusually, ground field management entity 1 judges by the enrollment status status indication that detects in mobile node 6 register requirement whether ground field management entity 1 takes place unusually; The order of described mobile node 6 registration enrollment status status indications is: the status indication of access-in management entity 3 reaches state 2 earlier, reaches state 2 behind the status indication of ground field management entity 1, and the status indication of mobile node 6 reaches state 2 at last; If the variation of status indication is not according to this order, it is unusual to judge that then ground field management entity 1 occurs.
Above-mentioned judgement mobile node 6 program exceptions are then handled and are meant the unusual of processing ground field management entity 1 unusually; If any one management entity is restarted in the flexible IP network technology system, the enrollment status status indication all is reset to initial state, and the login state mark reverts to sky; If ground field management entity 1 is restarted, the access-in management entity 3 of communicating by letter with ground field management entity 1 is according to the abnormal state detection of the enrollment status status indication rebooting status to ground field management entity 1, the registration of the corresponding mobile node 6 of access-in management entity 3 deletions, the corresponding data tunnel of setting up on the deletion access-in management entity 3; If access-in management entity 3 is restarted, the ground field management entity is according to the rebooting status of the abnormal state detection access-in management entity 3 of enrollment status status indication, the registration of 1 corresponding mobile node 6 of deletion of ground field management entity, the corresponding data tunnel of setting up on the deletion ground field management entity 1; If mobile node 6 is restarted, access-in management entity 3 and ground field management entity 1 detect the unusual of login state mark in the register requirement of mobile node 6, carry out initialization separately, remove the registration of mobile node 6, the data tunnel of setting up on the delete entity.
The running status of 1 pair of current system of above-mentioned flexible IP ground field management entity detects, and the state of judgement and other management entities is asynchronous, then notifies nonsynchronous management entity to carry out system restart, may further comprise the steps:
1). if the NAPT gateway in basic network territory or extended network territory restarts, flexible IP access-in management entity 3 listens to the variation of the source port on the NAPT, and access-in management entity 3 is just to flexible IP ground field management entity 1 transmit port abnormal information;
2). after ground field management entity 1 is received this information, remove relevant tunnel and log-on message, cancel original NAPT gateway address and port allow relevant mobile node 6 utilize request mechanism to register again, the connection of recovery system.
The present invention has the following advantages:
The internet or and wide area network on when using flexible IP network technology system, unusual if systemic-function entity or network environment occur, ground field management entity of the present invention can detect unusually, and system is recovered normally automatically.Ruuning situation to flexible IP network technology system can be monitored in real time, and monitoring target comprises the current state information of log-on message, wall port maintenance information, ground field management entity, the current state information of access-in management entity etc.At the abnormal conditions that every kind of information of monitoring occurs, the present invention can make corresponding processing, and the system that makes recovers normal automatically.Good detection of the present invention and Restoration Mechanism can be guaranteed the operation that system is long-term and stable.
Description of drawings
Accompanying drawing is each functional entity and a network topology structure schematic diagram in the flexible IP technology.
Drawing reference numeral explanation: 1-ground field management entity; The fire compartment wall in 2-basic network territory; 3-access-in management entity; 4-Internet, i.e. internet; The fire compartment wall in 5-extended network territory; The 6-mobile node.
Embodiment
Flexible IP network technology system of the present invention is meant by the ground field management entity, the extending domain management entity, the access-in management entity, mobile node constitutes, make mobile node in the local area network (LAN) can be in the Global Internet scope arbitrarily roaming, and guarantee that mobile node can realize interactive access with its basic network territory at any time.
Core of the present invention is 1 pair of state-detection of flexible IP ground field management entity and synchronous, unusual the catching of NAPT gateway.When if certain management entity abnormal restarting in the flexible IP network technology system or NAPT gateway are unusual, the link information that its is preserved will all be lost or be invalid, cause between each management entity information asynchronous, and system can't operate as normal.Utilize log-on message state synchronized mechanism and intermediate equipment abnormality detection mechanism to address the above problem, system removes the continuous item of each management entity automatically, restarts whole register flow path, guarantees the self-recovery and the availability of system.
The present invention includes and detect the log-on message state and detect intermediate equipment abnormal mechanism two parts, performing step is as follows:
1. detect the log-on message state:
1). system can carry out mark to each register requirement of mobile node 6;
2). judge whether program exception of mobile node 6.
3) if. unusual, then remove tunnel, binding table and the routing iinformation of this mobile node 6; Rebulid all information of this mobile node 6.
2. detect the intermediate equipment abnormal mechanism:
The running status of 1 pair of current system of flexible IP ground field management entity detects, and judges whether the state synchronized with other management entities.If asynchronous, then notify nonsynchronous management entity to carry out system restart.
Referring to accompanying drawing, specific implementation method of the present invention is as follows:
1. detect the synchronous regime of log-on message
1). for mobile node 6 is set up the enrollment status status indication:
Flexible IP ground field management entity 1 is set up the enrollment status status indication for current all mobile nodes 6 that are in active state, and this login state mark is set to sky.This login state mark is used to write down the roaming registration scenarios of mobile node 6.
2). register connection
(1). registration for the first time connects:
(1.1). mobile node 6 roams into the extended network territory, sends register requirement to flexible IP access-in management entity 3.
(1.2). after the register requirement of once receiving mobile node 6 of access-in management entity 3, according to the enrollment status status indication in the register requirement, dynamically set up the enrollment status status indication of this mobile node 6, the login state mark is set to 0 simultaneously, and request is transmitted to ground field management entity 1.
(1.3). ground field management entity 1 is when receiving the register requirement of a mobile node 6 for the first time, and ground field management entity 1 is set up the user list item of this mobile node 6, then this mobile node 6 is carried out authentication.Authentication is passed through, and the enrollment status status indication of ground field management entity 1 this mobile node 6 is set to 0, and expression connects beginning.Authentication is unsuccessful, then deletes the user list item of this mobile node 6.
(1.4). ground field management entity 1 sends registration reply for the first time to mobile node 6, and this is replied by 3 transfers of access-in management entity.The enrollment status status indication of this mobile node 6 is set to 1 on ground field management entity 1, and also the enrollment status status indication of this mobile node 6 is set to 1 on access-in management entity 3.
(2). registration for the second time connects:
(2.1). mobile node 6 is after the enrollment status status indication on the ground field management entity 1 is 1, and ground field management entity 1 can wait for that this mobile node 6 sends register requirement for the second time; Simultaneously, ground field management entity 1 transmits the address parameter information that data tunnel needs of setting up mutually with access-in management entity 3.
(2.2). when mobile node 6 sends register requirement to ground field management entity 1 for the second time, in the process of carrying out the register requirement second time, ground field management entity 1 and access-in management entity 3 will further produce and transmit the address parameter information that data tunnel needs of setting up.
(2.3). after access-in management entity 3 obtains setting up the address parameter information of data tunnel needs, set up the tunnel of this mobile node 6.After the tunnel was successfully set up, the enrollment status status indication of this mobile node 6 was set to 2.
(2.4). after ground field management entity 1 obtains setting up the address parameter information of data tunnel needs, set up the data tunnel of this mobile node 6; Data tunnel is set up successfully, and the enrollment status status indication of ground field management entity 1 this mobile node 6 is set to 2, then register requirement success.
(2.5). ground field management entity 1 sends replying of register requirement success to mobile node 6, and this is replied by access-in management entity 3 and transmits.After mobile node 6 is received registration reply, set up the tunnel, and to replying that ground field management entity 1 transmission tunnel is successfully set up.The login state mark of mobile node 6 oneself is set to 2.
3). judge whether ground field management entity 1 takes place unusually
(1). the enrollment status status indication that ground field management entity 1 detects in mobile node 6 register requirement can judge whether ground field management entity 1 takes place unusually.
The order of mobile node 6 registration enrollment status status indications is: the status indication of access-in management entity 3 reaches state 2 earlier, the status indication that is ground field management entity 1 then reaches state 2, the status indication that is only mobile node 6 at last reaches state 2, if the variation of status indication is not according to this order, it is unusual to judge that then ground field management entity 1 occurs.
4). handle the unusual of ground field management entity 1
If any one management entity is restarted in the flexible IP network technology system, the enrollment status status indication all can be reset to initial state, and promptly the login state mark reverts to sky.If ground field management entity 1 is restarted, the access-in management entity of communicating by letter with ground field management entity 13 can be according to the abnormal state detection of the enrollment status status indication rebooting status to ground field management entity 1, the registration of 3 corresponding mobile nodes 6 of deletion of access-in management entity, the corresponding data tunnel of setting up on the deletion access-in management entity 3.If access-in management entity 3 is restarted, the ground field management entity can detect the rebooting status of access-in management entity 3 according to the abnormality of enrollment status status indication, the registration of 1 corresponding mobile node 6 of deletion of ground field management entity, the corresponding data tunnel of setting up on the deletion ground field management entity 1.If mobile node 6 is restarted, access-in management entity 3 and ground field management entity 1 can detect the unusual of login state mark in the register requirement of mobile node 6, carry out initialization separately: remove the registration of mobile node 6, the data tunnel of setting up on the delete entity.
2. detect the abnormal mechanism of intermediate equipment
The running status of 1 pair of current system of flexible IP ground field management entity detects, and judges whether the state synchronized with other management entities.NAPT gateway port change detecting method makes the flexible IP management entity system of normal operation have certain disaster detectability.
1). if the NAPT gateway in basic network territory or extended network territory restarts, then flexible IP access-in management entity 3 will listen to the variation of the source port on the NAPT, and access-in management entity 3 is to flexible IP ground field management entity 1 transmit port abnormal information.
2). after ground field management entity 1 is received this information, remove relevant tunnel and log-on message, cancel original NAPT gateway address and port allow relevant mobile node 6 utilize request mechanism to register again, the connection of recovery system.
Relevant technical terms of the present invention is described as follows:
The ground field management entity: the network equipment that has a port to link to each other with the basic network territory at mobile node place, for the mobile node that roaming takes place provides purview certification and identity agency.
The extending domain management entity: the network equipment on the extended network territory of mobile node, for mobile node is transmitted authentication message and packet.
The access-in management entity: having can be at the network equipment of the IP address of internet route, and it authenticates and transmit the trunking of mobile node packet to the mobile node identity between ground field management entity and extending domain management entity.
The basic network territory: mobile node is roamed the network at preceding place.
Extended network territory: the network that mobile node roaming back is arrived.
IP tunnel: be meant that an IP-based packet is encapsulated in the path of process when transmitting in the net load of another IP packet.
Tunneling technique: refer to comprise data encapsulation, the overall process in wrapping in is conciliate in transmission.
Mobile node: can with the position of entering the Internet from a link switchover to another link, and still keep all ongoing communications, and only use the equipment of original fixed ip address.