Summary of the invention
The main technical problem to be solved in the present invention is, management method, communication equipment and the communication system of a kind of network management functional area is provided, and can, in avoiding forming communications loop, reduce the complexity of networking, reduces use cost, improves utilization rate of equipment and installations.
For solving the problems of the technologies described above, the management method that the invention provides a kind of network management functional area comprises:
In the time that the state information acquisition cycle arranging arrives, the each network management business module of communication equipment obtains physical state and the operating state of self network management functional area, the described physical state of obtaining and operating state is sent to other network management business modules of described communication equipment; And reception is from physical state and the operating state of the network management functional area of other network management business modules of described communication equipment;
In the time that the operating state update cycle arranging arrives, the each network management business module of described communication equipment obtains effective operating state according to self the physical state of network management functional area of obtaining, and judges that whether described effective operating state is consistent with the operating state of the network management functional area of self; As no, select directly the operating state of the network management functional area of self to be updated to described effective operating state according to described effective operating state, or select to judge whether the operating state of the network management functional area of self to be updated to described effective operating state according to the physical state of the network management functional area of other network management business modules of described communication equipment and operating state.
In an embodiment of the present invention, be blocked state if obtain described effective operating state, directly the operating state of the network management functional area of self is updated to blocked state; If the described effective operating state obtaining is for can forwarding state, judging whether the operating state of the network management functional area of self to be updated to according to the network management functional area physical state of other network management business modules of described communication equipment and operating state can forwarding state.
In an embodiment of the present invention, judge whether the operating state of the network management functional area of self to be updated to and can forwarding state to comprise according to the physical state of the network management functional area of other network management business modules of described communication equipment and operating state:
If the physical state of the network management functional area of other network management business modules of described communication equipment is all opening, the operating state that judges whether a network management functional area is for can forwarding state; In this way, do not upgrade the operating state of self network management functional area; Otherwise judging whether the operating state of self network management functional area to be updated to according to preset rules can forwarding state;
If the physical state of other network management functional areas of described communication equipment is all closed condition, the operating state of self network management functional area being updated to can forwarding state;
If in the network management functional area of other network management business modules of described communication equipment, existing physical state is the network management functional area of closed condition, while having again physical state to be the network management functional area of opening, be judged as and in the network management functional area of opening, whether have the operating state of a network management functional area for can forwarding state, in this way, do not upgrade the operating state of self network management functional area; Otherwise judging whether the operating state of self network management functional area to be updated to according to described preset rules can forwarding state.
In an embodiment of the present invention, described preset rules is:
In the network management functional area that is opening in physical state, the operating state that the network management functional area that priority is the highest is set is for can forwarding state;
Judge whether the operating state of self network management functional area to be updated to and can forwarding state to comprise according to described preset rules:
Whether in the network management functional area that the priority that judges self network management functional area is opening in physical state, be the highest, in this way, its operating state being updated to can forwarding state; Otherwise, do not upgrade its operating state.
In an embodiment of the present invention, directly the operating state of self network management functional area is updated to after blocked state, also comprises that the operating state after self network management functional area is upgraded sends to other network management business modules.
In an embodiment of the present invention, described communication equipment comprises two network management business modules, be respectively first network management service module and second network management service module, described first network management service module comprises first network management service mouth, and described second network management service module comprises second network management service mouth, described first network management service module according to the physical state of described second network management service mouth and operating state judge whether by the operating state of first network management service mouth be updated to can the process of forwarding state in, if the physical state of described second network management service mouth is closed condition, operating state is can forwarding state time, described first network management service module is updated to after the message of blocked state in the operating state of receiving described second network management service mouth, judging whether the operating state of first network management service mouth to be updated to according to the described message receiving can forwarding state.
The present invention also provides a kind of communication equipment, comprises at least two network management business modules, and described network management business module comprises a network management functional area and the main control unit that is connected corresponding to described network management functional area; Described main control unit comprises timing subelement, state information acquisition subelement, operating state renewal subelement, wherein,
Described timing subelement is used for arranging state information acquisition cycle and operating state update cycle, and in the time that the state information acquisition cycle arranging arrives, sending state information acquisition notifies to described state information acquisition subelement, in the time that the operating state update cycle arranging arrives, send operating state update notification and upgrade subelement to described operating state;
Described state information acquisition subelement is used for receiving after described state information acquisition notice, obtain physical state and the operating state of its map network management service mouth, the described physical state of obtaining and operating state are sent to other network management business modules of described communication equipment; And reception is from physical state and the operating state of the network management functional area of other network management business modules of described communication equipment;
Described operating state is upgraded subelement and is used for receiving after operating state update notification, the physical state of obtaining according to described state information acquisition subelement obtains effective operating state of its map network management service mouth, judges that whether described effective operating state is consistent with its map network management service mouth operating state; As no, select directly the operating state of its map network management service mouth to be updated to described effective operating state according to described effective operating state, or select to judge whether the operating state of its map network management service mouth to be updated to described effective operating state according to the physical state of other network management functional areas of described communication equipment and operating state.
In an embodiment of the present invention, if effective operating state that described operating state renewal subelement obtains is blocked state, described operating state is upgraded subelement for directly the operating state of its corresponding network management functional area being updated to blocked state; If described operating state is upgraded effective operating state that subelement obtains for can forwarding state, described operating state upgrade subelement can forwarding state for judging whether the operating state of its corresponding network management functional area to be updated to according to the physical state of other network management functional areas of described communication equipment and operating state.
In an embodiment of the present invention, described operating state is upgraded subelement for judging whether the operating state of its corresponding network management functional area to be updated to and can forwarding state to comprise according to the physical state of other network management functional areas of described communication equipment and operating state:
If the physical state of other network management functional areas of described communication equipment is all opening, described operating state upgrade subelement for the operating state that judges whether a network management functional area for can forwarding state; In this way, do not upgrade the operating state of its corresponding network management functional area; Otherwise judging whether the operating state of its corresponding network management functional area to be updated to according to preset rules can forwarding state;
If the physical state of other network management functional areas of described communication equipment is all closed condition, described operating state upgrade subelement can forwarding state for the operating state of its corresponding network management functional area is updated to;
If in other network management functional areas of described communication equipment, existing physical state is the network management functional area of closed condition, while having again physical state to be the network management functional area of opening, described operating state upgrade subelement for the operating state that is judged as the network management functional area of opening and whether has a network management functional area for can forwarding state, in this way, do not upgrade the operating state of its corresponding network management functional area; Otherwise judging whether the operating state of its corresponding network management functional area to be updated to according to described preset rules can forwarding state.
In an embodiment of the present invention, described operating state is upgraded subelement and directly the operating state of its corresponding network management functional area is updated to after blocked state, also sends to other network management functional areas for the operating state after this network management functional area is upgraded.
The present invention also provides a kind of communication system, comprises network management device and communication equipment described above, and described network management device is connected with described communication equipment by least two network management functional areas of described communication equipment.
In an embodiment of the present invention, described network management device is connected with at least two network management functional areas of described communication equipment by switch or HUB.
The invention has the beneficial effects as follows:
In the present invention, the each network management business module of communication equipment periodically obtains physical state and the operating state of self network management functional area, and the physical state of obtaining and operating state is sent to other network management business modules of communication equipment; And reception is from physical state and the operating state of other network management business modules transmissions of communication equipment; Then in the time that the operating state update cycle arranging arrives, obtain effective operating state according to self the physical state of obtaining, judge that whether effective operating state is consistent with the operating state of self; If inconsistent, select directly the operating state of self to be updated to effective operating state according to effective operating state, or judge whether its operating state to be updated to described effective operating state according to the physical state of other network management functional areas of communication equipment and operating state.Be that network management functional area in the present invention is in the time that needs upgrade its operating state, have more than is simply to upgrade its operating state along with the variation of its physical state, also further judge whether upgrade the operating state of self in conjunction with physical state and the operating state of other Network mouths, therefore the operating state that can avoid multiple Network mouths is simultaneously in can forwarding state, and cause forming communications loop, improve the reliability of network service; Meanwhile, the present invention does not need to increase extra equipment (for example switch) and avoids forming communications loop, therefore can reduce the complexity of networking, reduces use cost, improves the utilance of resource.
Embodiment
By reference to the accompanying drawings the present invention is described in further detail below by embodiment.
Please refer to Fig. 1, communication system in the present embodiment comprises network management device 2 and communication equipment 1, communication equipment 1 has at least two network management business modules (being QX module), on each network management business module, be provided with a network management functional area (being QX mouth), network management device 2 is connected with communication equipment 1 by least two QX mouths of communication equipment 1, specifically can be connected with at least two QX mouths of communication equipment 1 by HUB or switch.Communication equipment 1 in the present embodiment specifically can be switch, also can be other communicators.Communication equipment 1 also can be connected with other communication equipments by network or other mode, for example, also can be connected with other switch by network.Communication equipment 1 in the present embodiment arranges multiple QX mouths and is mainly used for active and standby switching, to ensure that network traffic do not interrupt.
But, when multiple QX mouth is set, how to avoid forming communications loop between multiple QX mouths, the solution that prior art has not had, in the present embodiment, for this problem, discloses following solution:
The network management business module of communication equipment 1 also comprises the main control unit of a connection corresponding to QX mouth; Refer to Fig. 2, main control unit specifically comprises timing subelement 11, state information acquisition subelement 12, operating state renewal subelement 13, wherein,
Timing subelement 11 is for arranging state information acquisition cycle and operating state update cycle, set state information acquisition cycle and operating state update cycle can be the same cycle herein, the acquisition process that needs only a trigger state information, operating state renewal process is also just triggered simultaneously; Also can be two separate different cycles; Set state information acquisition cycle and operating state update cycle can be for the included all QX mouths of communication equipment 1 herein, the state information acquisition cycle that arranges of certain all QX mouths and operating state update cycle can be set to identical according to actual needs, also can be set to difference.Timing subelement 11 is also for timing, and in the time that the state information acquisition cycle arranging arrives, sends state information acquisition and notify the state information acquisition subelement 12 to QX mouth, obtains subelement 12 and obtain the state information of its corresponding QX mouth with notification status information; In the time that the operating state update cycle arranging arrives, send operating state update notification and upgrade subelement 13 to operating state, notify its operating state to QX mouth to upgrade;
State information acquisition subelement 12 for the state information acquisition notice of receiving timing subelement 11 and sending after, obtain physical state and the operating state of its corresponding QX mouth, the physical state of obtaining and operating state are sent to other QX mouths of this communication equipment; And reception is from physical state and the operating state of other QX mouths transmissions of this communication equipment; State information acquisition subelement 12 also can be used for physical state and the operating state of the each QX mouth obtaining to store, and specifically can be stored in state global table;
Operating state upgrade subelement 13 for the operating state update notification of receiving timing subelement 11 and sending after, the physical state of obtaining according to state information acquisition subelement 12 obtains effective operating state of its corresponding QX mouth, effective operating state is herein the operating state of mating with physical state, for example, when the physical state of QX mouth is opening UP, the effective operating state obtaining according to this physical state is for can forwarding state, and flow can forward; When the physical state of QX mouth is closed condition DOWN, the effective operating state obtaining according to this physical state is blocked state, and flow blocks.Operating state is upgraded subelement 13 and is obtained after effective operating state of QX mouth, judges that whether effective operating state of this QX mouth is consistent with this QX mouth operating state of obtaining; As inconsistent, further selecting according to the effective operating state obtaining is directly the operating state of this QX mouth to be updated to effective operating state, or judge whether the operating state of its corresponding QX mouth to be updated to effective operating state according to the physical state of other QX mouths of communication equipment 1 and operating state, specifically can comprise:
If effective operating state that operating state renewal subelement 13 obtains is blocked state, operating state renewal subelement 13 is directly updated to blocked state by the operating state of its corresponding QX mouth, also can be used for the operating state after upgrading to send to other QX mouths; Otherwise, operating state is upgraded effective operating state of obtaining of subelement for can forwarding state, now operating state upgrade that subelement 13 judges whether the operating state of its corresponding QX mouth to be updated to according to the physical state of other QX mouths of communication equipment and operating state can forwarding state; This process comprises:
Judge that the physical state of other QX mouths of communication equipment 1 be all opening if operating state is upgraded subelement 13, to upgrade the operating state that subelement 13 judges whether a QX mouth be can forwarding state to operating state; In this way, do not upgrade the operating state of its corresponding QX mouth; Otherwise judging whether the operating state of its corresponding QX mouth to be updated to according to preset rules can forwarding state;
If the physical state of other QX mouths of described communication equipment is all closed condition, described operating state upgrade subelement can forwarding state for the operating state of its corresponding QX mouth is updated to;
If upgrading subelement 13, operating state judges in other QX mouths of communication equipment 1, existing physical state is the QX mouth of closed condition, while having again physical state to be the QX mouth of opening, operating state is upgraded subelement 13 and is judged as in the QX mouth of opening, whether there is the operating state of a QX mouth for can forwarding state, in this way, do not upgrade the operating state of its corresponding QX mouth; Otherwise judging whether the operating state of its corresponding QX mouth to be updated to according to preset rules can forwarding state.
Preset rules in the present embodiment can be:
In the network management functional area that is opening in physical state, the operating state that the network management functional area that priority is the highest is set is for can forwarding state;
Therefore, operating state renewal subelement 13 judges whether the operating state of its corresponding QX mouth to be updated to and can forwarding state to comprise according to preset rules:
Operating state is upgraded subelement 13 and is judged whether the priority of its corresponding QX mouth is the highest in all QX mouths that are opening in physical state, if the highest, the operating state of its corresponding QX mouth being updated to can forwarding state; Otherwise, do not upgrade the operating state of its corresponding QX mouth.
Known according to above-mentioned disclosed content, when the closed condition DOWN of the physical state that the QX mouth in the present embodiment obtains, effective operating state of this QX mouth is blocked state, if when the now work of this QX mouth and effective operating state inconsistent (be operating state be can forwarding state), can directly the operating state of this QX mouth be updated to effective operating state, not need physical state and operating state with reference to other QX; Its corresponding operating state that is to say, as long as when the physical state of QX mouth is closed condition, all should be blocked state; When the physical state of QX mouth is UP state, its effective operating state is forwarding state, if now the operating state of this QX mouth is blocked state, in the time judging whether upgrade the operating state of this QX mouth, need further to judge in conjunction with physical state and the operating state of other QX mouths, to ensure in the time having multiple physical states as the QX mouth of UP, the operating state of also only having a QX mouth is for can forwarding state, to avoid the formation of communications loop, improve the reliability of network management.As from the foregoing, in the present embodiment, in the time avoiding forming communications loop, do not need to increase extra switch, therefore can reduce the complexity of networking, reduce use cost, improve the utilance of resource.
For a better understanding of the present invention, taking one, more specifically as example, the present invention is described further in embodiment below:
Communication equipment in the present embodiment only includes two QX modules,, be respectively a QX module and the 2nd QX module, in a QX module, be provided with a QX mouth, in the 2nd QX module, be provided with the 2nd QX mouth; Certainly, according to actual needs, in order further to improve the reliability of communication, also communication equipment also can arrange three or more QX modules, and the QX mouth that adopts one of them QX module is primary QX mouth, other can be used as QX mouth for subsequent use.The one QX mouth is when primary, and a QX mouth is primary QX mouth, and the 2nd QX mouth is QX mouth for subsequent use; Equally, when the 2nd QX mouth is when primary, the 2nd QX mouth is primary QX mouth, and a QX mouth is QX mouth for subsequent use.The corresponding main control unit connecting of the one QX mouth is the first main control unit, and the first main control unit specifically comprises the first timing subelement, the first state information acquisition subelement, the first operating state renewal subelement; The corresponding main control unit connecting of the 2nd QX mouth is the second main control unit, and the second main control unit specifically comprises the second timing subelement, the second state information acquisition subelement, the second operating state renewal subelement.The one QX mouth is set identical with the operating state update cycle with the state information acquisition cycle of the 2nd QX mouth in the present embodiment.Network management device is connected with this communication equipment with the 2nd QX mouth by a QX mouth.
When initial, the operating state of these two QX mouths is all blocked state (BLOCKING), in communication process, in the time that the state information acquisition cycle arrives, the first state information acquisition subelement and the second state information acquisition subelement periodically obtain respectively physical state and the operating state of a QX mouth and the 2nd QX mouth according to the state information acquisition cycle arranging, the physical state of obtaining and operating state are stored respectively in the state global table of the first main control unit and the second main control unit, and the physical state of obtaining and operating state are sent to respectively to the other side's QX mouth, and receive the other side's that the other side sends the physical state of QX mouth and operating state and the physical state and the operating state that receive are stored.
In the time that the operating state update cycle arrives, the first operating state is upgraded subelement and is obtained effective operating state of a QX mouth according to the physical state of the up-to-date QX mouth obtaining, and judges that whether the operating state of the up-to-date QX mouth obtaining is consistent with effective operating state obtained above, if consistent, it is not upgraded, otherwise, judge whether effective operating state is blocked state, in this way, directly the operating state of a QX mouth is upgraded, otherwise, show that this effective operating state, for can forwarding state, judges whether the physical state of the 2nd QX mouth is UP state, as no, the physical state that shows the 2nd QX mouth is DOWN state, now the 2nd QX mouth inevitable blocked state of final operating state within this cycle, therefore the operating state of a QX mouth being updated to can forwarding state, if the physical state of the 2nd QX mouth is UP state, whether the operating state that needs to judge the 2nd QX mouth is can forwarding state, in this way, the operating state of a QX mouth is not upgraded, otherwise, judge whether the priority of a QX mouth is greater than the priority of the 2nd QX mouth, in this way, its operating state being updated to can forwarding state, otherwise, to operating state, it does not upgrade, herein also can be according to judging that now who is for primary QX mouth, the current operating state as primary QX mouth is updated to can forwarding state, and its QX mouth interface is remained to blocked state by its operating state.
In the time that the operating state update cycle arrives, the second operating state is upgraded subelement and is judged whether that the method that the operating state of the 2nd QX mouth is upgraded is the same.
For the more concise and to the point clear and definite the present invention that understands, carry out the explanation of a step below in conjunction with rule list as shown in table 1:
Table 1
In table 1, UP represents that physical state is opening, and DOWN represents that physical state is closed condition, and B represents that Physics Work state is blocked state, and F represents that operating state is can forwarding state;-represent that operating state is constant.(BB) operating state that F represents a QX mouth and the 2nd QX mouth is when being blocked state B, and being switched to can forwarding state F.
As shown in Table 1, in the time that the physical state of a QX mouth and the 2nd QX mouth is all UP, within any operating state cycle, the operating state of all only having a QX mouth is for can forwarding state F; And in the time that the physical state of QX mouth is all DOWN, within this cycle, the operating state of this QX mouth is all finally blocked state B.When the physical state of a QX mouth is UP, when another physical state is DOWN, within this cycle, for the operating state of the QX mouth of UP is finally can forwarding state F, for the operating state of the QX mouth of DOWN is finally blocked state B.
When the physical state of a QX mouth is UP, forwarding state is B, and the 2nd QX mouth physical state is DOWN, when forwarding state is F, the operating state update cycle, while arrival, the operating state of the one QX mouth and the 2nd QX mouth all needed to do once to switch, but transfer sequence can be different; For example can switch in the following order:
It is F that the first operating state renewal subelement obtains its effective operating state according to the physical state of a QX mouth, and its work at present state is inconsistent, then the operating state that judges the 2nd QX mouth is F state, if now only according to the operating state judgement of the 2nd QX mouth, the operating state of a QX mouth can not be upgraded, and still remains blocked state.But now the physical state of the 2nd QX mouth is DOWN, its effective operating state is B, F is inconsistent with its work at present state, now the operating state of the 2nd QX mouth need be updated to B, the second operating state is upgraded subelement the operating state B after switching is sent to a QX mouth, and the first status message acquisition module is stored in this information in the state global table at the first main control unit place after receiving this message; Then the first operating state is upgraded subelement to obtain its effective operating state according to the physical state of a QX mouth is F, and when its work at present state is inconsistent, then the operating state that judges up-to-date the 2nd QX mouth receiving is B state, now met renewal (or switching) condition, the first operating state renewal subelement is updated to the operating state of a QX mouth can forwarding state.Certainly, in these cases, for fear of only judging whether to switch while there is above-mentioned situation the operating state of self according to the operating state of other QX mouths, also can directly adopt above-mentionedly directly to judge according to the physical state of QX mouth.
The detailed process of upgrading below in conjunction with the operating state of a QX mouth is further described:
Step 301: the state information acquisition cycle arrives, the first main control unit of the one QX module obtains physical state and the operating state of a QX mouth, and the physical state of obtaining and operating state are sent to the 2nd QX module, receive physical state and the work state information of the 2nd QX mouth simultaneously, these information are stored in the first main control unit state global table T;
Step 302: while arrival, in inquiry the first main control unit global state table T, the physical state of a QX mouth and the 2nd QX mouth, if be UP, went to step 303, otherwise went to step 306 the operating state update cycle;
Step 303: whether the operating state that judges a QX mouth and the 2nd QX mouth is consistent, if inconsistent, a QX mouth operating state is BLOCKING, the operating state of another QX mouth is FORWARDING, goes to step 304; Otherwise, go to step 305:
Step 304: keep current forwarding status information constant, so far in this cycle, state processing flow process finishes.
Step 305: the operating state that shows a QX and the 2nd QX is all BLOCKING, the operating state that a QX mouth is set is FORWARDING, upgrades the first main control unit state global table T, so far, in this cycle, state processing flow process finishes.
Step 306: judge the whether all DOWN of physical state of a QX mouth and the 2nd QX mouth, if so, go to step 307, otherwise go to step 310;
Step 307, judges and the whether BLOCKING of operating state of a QX mouth if so, goes to step 308; Otherwise, go to step 309;
Step 308: keep work at present state constant, so far in this cycle, state processing flow process finishes;
Step 309: the operating state of a QX mouth is updated to BLOCKING, and upgrades first main control unit state global table T, so far, in this cycle, state processing flow process finishes.
Step 310: judge that whether its current operating state of effective operating state obtaining according to the physical state of a QX mouth is consistent, if consistent, operating state is FORWARDING when a QX mouth physical state UP, when QX mouth physical state is DOWN, operating state is BLOCKING, goes to step 311; Otherwise, go to step 312:
Step 311: keep the current operating state of a QX mouth constant, so far, in this cycle, state processing flow process finishes.
Step 312: whether the physical state that judges a QX mouth is UP, if so, goes to step 313; Otherwise, go to step 316;
Step 313: judge whether the current operating state of a QX mouth is BLOCKING, in this way, goes to step 314; Otherwise go to step 315:
Step 314: the operating state of a QX mouth is set to FORWARDING, and upgrade the first main control unit state global table T, so far, in this cycle, state processing flow process finishes.
Step 315: keep the operating state of a QX mouth constant, so far, in this cycle, state processing flow process finishes.
Step 316: the physical state of a QX mouth is DOWN, judges whether the current operating state of a QX mouth is BLOCKING, in this way, goes to step 317; Otherwise go to step 318:
Step 317: keep the operating state of a QX mouth constant, so far, in this cycle, state processing flow process finishes.
Step 318: the operating state of a QX mouth is set to BLOCKING, and upgrade the first main control unit state global table T, so far, in this cycle, state processing flow process finishes.
In the present embodiment, in the time there is active and standby switching in communication equipment, the operating state that switches to primary QX mouth (for example a QX mouth switches to primary QX mouth) is unconditionally switched to FORWARDING immediately, and its operating state is upgraded in timing as stated above, if the effective operating state calculating and current operating state are inconsistent and while meeting above-mentioned state switching condition, trigger its renewal from left state, and record the operating state after upgrading; Otherwise keep original state constant.The main control unit (for example the second control unit) that switches to QX mouth for subsequent use is restarted after end, QX mouth initial condition for subsequent use is set to BLOCKING, its operating state is upgraded in timing as stated above, if the effective operating state calculating and current operating state are inconsistent and meet above-mentioned state switching condition, trigger its operating state and upgrade, and record the forwarding state after upgrading; Otherwise keep original state constant; , can not interrupt to ensure normal network traffic by above-mentioned masterslave switchover process.
Above content is in conjunction with concrete execution mode further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.