[summary of the invention]
For solving the deficiency that above-mentioned prior art exists, a kind of network equipment need be provided, be used for solving the communication abnormality that public exchanging telephone network is made mistakes and caused because of network equipment.
In addition, also need provide a kind of user state information method for synchronous, be used for solving the communication abnormality that public exchanging telephone network is made mistakes and caused because of network equipment.
A kind of network equipment is connected with user side and local switch, and this network equipment comprises state information system, interface system and management system.The state information system comprises state information primary module and state information backup module, is used for the state information of recording user end.Interface system comprises interface primary module and interface backup module, is used for the state information and the inquiry of recording user end and judges whether the state information of the user side that state information system and interface system are write down is identical.Management system is used to detect the state information primary module and whether the interface primary module makes mistakes, and state information backup module and interface backup module are replaced the module of makeing mistakes accordingly, and replacement information is sent to interface system.Wherein, interface system also is used to receive replacement information, and with the state information updating of the user side that it the write down state information for the same user side that write down with the state information system.
A kind of user state information method for synchronous is applied to one and comprises in the network equipment of state information system, interface system and management system, is used for Synchronization Status Message system and user state information that interface system write down.The state information system comprises state information primary module and state information backup module.Interface system comprises interface primary module and interface backup module.The user state information method for synchronous comprises whether state information primary module and interface primary module make mistakes in the detecting network equipment.If there is module to make mistakes, management system is replaced the primary module of makeing mistakes accordingly with state information backup module and interface backup module, and replacement information is sent to interface system.After interface system received replacement information, inquiry also judged whether the user state information that state information system and interface system write down is identical.And if inequality, interface system is the user state information that the state information system is write down with the user state information updating that it write down.
Network equipment in the embodiment of the present invention and user state information method for synchronous thereof are because the state information system directly links to each other with user side, so the state information system can obtain the real time information of user side at first when the state of user side changes.After having module to replace because of makeing mistakes in the network equipment, interface system is synchronous by initiating with the user state information of state information system, can guarantee to record in the interface system right user state information, to guarantee the communication network normal operation.
[embodiment]
See also Fig. 1, be depicted as the applied environment schematic diagram ofnetwork equipment 20 in the embodiment of the presentinvention.Network equipment 20 is connected withuser side 10 andlocal switch 30, andlocal switch 30 can (Embeded Opration Channel, EOC) the supervising thenetwork device 20 by a special-purpose embedding operation path in the V5 interface.In the present embodiment,user side 10 can be an analog telephone, andnetwork equipment 20 can be an access network (Access Network, AN) equipment.
See also Fig. 2, be depicted as the module map ofnetwork equipment 20 in the embodiment of the presentinvention.Network equipment 20 comprisesstate information system 22,interface system 26 and management system 24.State information system 22 is used for the state information ofrecording user end 10.
State information system 22 comprises state informationprimary module 222 and state information backup module 224.State informationprimary module 222 is used to obtain the state information ofuser side 10, and stateinformation backup module 224 is used to back up described state informationprimary module 222 from obtaining the user state information thatuser side 10 obtains.When state informationprimary module 222 was made mistakes,management system 24 was replaced attitudeinformation spinner module 222 with state information backup module 224.After error statusinformation spinner module 222 was repaired, the attitudeinformation spinner module 222 aftermanagement system 24 will be repaired was replaced stateinformation backup module 224.
Interface system 26 comprises interfaceprimary module 260 and interface backup module 262.Interfaceprimary module 260 is used for obtaining fromstate information system 22 state information of user side 10.Interface backup module 262 is used to back up the user profile of described interface primary module 260.When interfaceprimary module 260 was made mistakes,management system 24 was replaced interfaceprimary module 260 withinterface backup module 262, madenetwork equipment 20 continue operate as normal.
In the present embodiment, interfaceprimary module 260 comprises firstcustomer data base 2602 and the first judgement submodule 2604.Firstcustomer data base 2602 is used for the user state information that record interfaceprimary module 260 obtains fromstate information system 22, and first judges thatsubmodule 2604 is used to inquire about and judge whether the state information of theuser side 10 that firstcustomer data base 2602 and stateinformation backup module 224 are write down is identical.
In the present embodiment,interface backup module 262 comprises secondcustomer data base 2622 and the second judgement submodule 2624.Secondcustomer data base 2622 is used to back up the state information of theuser side 10 of first customer data base 2602.Second judges thatsubmodule 2624 is used to inquire about and judges whether the state information of theuser side 10 that secondcustomer data base 2622 and state informationprimary module 222 are write down is identical.
Whethermanagement system 24 is used to detectstate information system 22 makes mistakes withinterface system 26, and replaces thestate information system 22 andinterface system 26 that makes mistakes, and replacement information is sent tointerface system 26.
Interface system 26 is used to inquire about and judges whether the state information of theuser side 10 thatstate information system 22 andinterface system 26 are write down isidentical.Interface system 26 also is used for the replacement information that receivingmanagement system 24 is sent, and the state information updating of theuser side 10 that it write down is the state information identical withstate information system 22.
In the present embodiment, interfaceprimary module 260 andinterface backup module 262 communicate by V5 interface protocol andlocal switch 30 andstate information system 22.
See also Fig. 3, be depicted as the flow chart of user state information method for synchronous in the embodiment of the present invention.
At step S300,network equipment 20 is in normal communication state.
At step S302, whether state informationprimary module 222 and interfaceprimary module 260 make mistakes in themanagement system 24 detecting network equipments 20.If any one is made mistakes in state informationprimary module 222 and the interfaceprimary module 260, then enter step S304.If state informationprimary module 222 and interfaceprimary module 260 equal operate as normal are then returned step S300 and are continued detecting.
Enter step S304,management system 24 is replaced the module of makeing mistakes, and replacement information is sent to interface system 26.In the present embodiment, stateinformation backup module 224 backup has all state informations of theuser side 10 that state informationprimary module 222 write down.If state informationprimary module 222 is made mistakes,management system 24 is replaced the state informationprimary module 222 of makeing mistakes with stateinformation backup module 224, makesstate information system 22 keep normal communication state.Interface backup module 262 backup has all state informations of theuser side 10 that interfaceprimary module 260 write down.If interfaceprimary module 260 is made mistakes,management system 24 is replaced interfaceprimary module 260 withinterface backup module 262, makesinterface system 26 keep normal communication state.
Enter step S306, first judges thatsubmodule 2604 orsecond judges submodule 2624 inquiry and judge whether the state information of thesame user side 10 thatstate information system 22 andinterface system 26 are write down is identical.In the present embodiment, be to judgesubmodule 2604 or judge that by thesecond judgement submodule 2624 depending in thenetwork equipment 20 is that state informationprimary module 222 is made mistakes or interfaceprimary module 260 is made mistakes by first.Specifically, when state informationprimary module 222 is made mistakes,management system 24 is replaced the state informationprimary module 222 of makeing mistakes with stateinformation backup module 224, and judge that byfirst submodule 2604 judges whether the state information of thesame user side 10 that firstcustomer data base 2602 and stateinformation backup module 224 are write down is identical this moment.When interfaceprimary module 260 is made mistakes,management system 24 is replaced interfaceprimary modules 260 withinterface backup module 262, and judge that bysecond submodule 2624 judges whether the state information of thesame user side 10 that secondcustomer data base 2622 and state informationprimary module 222 are write down is identical this moment.If difference then enters step 308.If the identical step 300 of then returning continues detecting.
Enter step S308,interface system 26 is with the state information updating of theuser side 10 that it the write down state information for the relative users end 10 that write down withstate information system 22.
See also Fig. 4, be depicted as the refinement flow chart of user state information method for synchronous in the embodiment of the present invention.
In step 400,network equipment 20 is in normal communication state.
In step 402, whether there is module to make mistakes in themanagement system 24 detecting network equipments 20.If there is module to make mistakes, then enter step 404.If no module is made mistakes, then return step 400 and continue detecting.
Enter step 404,management system 24 judges whether the module of makeing mistakes is interface primary module 260.In the present embodiment, have only state informationprimary module 222 and interfaceprimary module 260 to make mistakes in thenetwork equipment 20.
If interfaceprimary module 260 is made mistakes, then enter step 406,management system 24 is replaced interfaceprimary module 260 withinterface backup module 262 and is.Then enter step 410,management system 24 sends to second with replacement information andjudges submodule 2624.
Enter step 414, second judges thatsubmodule 2624 judges whether the state information of thesame user side 10 that secondcustomer data base 2622 and state informationprimary module 222 are write down is identical.If the identical step 400 of then returning continues detecting.If difference then enters step 418.
Enter step 418, second judges that the state information of the state information of theuser side 10 thatsubmodule 2624 is write down secondcustomer data base 2622 and thesame user side 10 that state informationprimary module 222 is write down is synchronous.
In step 404,, then enter step 408 if state informationprimary module 222 is mademistakes.Management system 24 is replaced state informationprimary module 222 with stateinformation backup module 224.
Enter step 412,management system 24 sends to first with replacement information andjudges submodule 2604.
Enter step 416, first judges thatsubmodule 2604 judges whether the state information of thesame user side 10 that firstcustomer data base 2602 and stateinformation backup module 224 are write down is identical.If the identical step 400 of then returning continues detecting, if difference then enters step 420.
Enter step 420, first judges that the state information of the state information of theuser side 10 thatsubmodule 2604 is write down firstcustomer data base 2602 and thesame user side 10 that stateinformation backup module 224 is write down is synchronous.
In the present embodiment, becausestate information system 22 directly links to each other withuser side 10, sostate information system 22 can obtain the real time information ofuser side 10 at first when the state ofuser side 10 changes.After having module to replace because of makeing mistakes in thenetwork equipment 20,interface system 26 is initiated with the user state information ofstate information system 22 synchronous, to promote network service user's conversation accuracy.