Detailed description of the invention
In distribution management system, management platform adopts the mode regularly distributing frame in system being polled, it is determined that port connection relationship, this determines that the operating time of mode is longer, and consumes more system resource.For this problem, the embodiment of the present invention provides defining method and the device of a kind of port connection relationship, it is applied in wiring frame management system, management platform in system is under the trigger condition of the notification message reported at the equipment (such as distributing frame or switch) receiving port generation plug event, just start the operating process determining port connection relationship, so, when plug does not occur port in systems, it is performed without any operation, thus saving system resource;And the equipment just for port generation plug event performs above-mentioned flow process, shortens the operating time.
Below in conjunction with Figure of description, the defining method of a kind of port connection relationship and the detailed description of the invention of device that provide the embodiment of the present invention illustrate.
The defining method of a kind of port connection relationship that the embodiment of the present invention provides, the method is applied in wiring frame management system, as in figure 2 it is shown, illustrate with this side of management platform, the method specifically includes following steps:
S21: the mark according to the equipment of the system middle port generation plug event carried in the notification message received of the management platform in system, obtains the status information of its all of the port from corresponding equipment;
Here, the status information of each port includes plug information and current state etc.;
S22: according to the plug information in the status information got, determine the port that plug event occurs on equipment, instruction equipment controls current state in the port determined and is in the port of connection and sends detectable signal successively, and successively by the port receiving detectable signal of opposite equip. feedback in system, it is defined as that there is annexation with the port sending detectable signal.
In embodiments of the present invention, said method can be applicable in wiring frame management system as shown in FIG. 1A and 1B, for Figure 1A, when port generation plug event between switch 12 and opposite end distributing frame 13 in systems (i.e. port generation plug operation), both can report corresponding notification message to management platform, inform that management platform each there occurs plug event, so, management platform is when the notification message that subsequently received switch 12 and opposite end distributing frame 13 report, it is performed both by above-mentioned steps S21-S22, to determine the annexation of system middle port more accurately.
It is usually present dividing of time order and function owing to the port generation plug between switch 12 and opposite end distributing frame 13 operates, so, for management platform, it is likely to first receive the notification message that switch 12 is sent, be likely to and first receive opposite end distributing frame 13 and such as extended the notification message that instrument is sent by communication equipment 14, based on this, the mark of the equipment carried in the notification message that management platform 11 receives, it is probably the mark of switch, it is also possible to the mark of opposite end distributing frame.
In other words, in the system shown in Figure 1A, when the equipment of the port generation plug event in above-mentioned steps S21-S22 is switch 12, opposite equip. is distributing frame 13, such as distributing frame 13 is passive distribution frame or active distributing frame, and the two adopts 10 core wire jumpers to connect;Otherwise, when the said equipment is distributing frame 13, opposite equip. is switch 12.
Additionally, for the system shown in Figure 1B, equipment and opposite equip. in above-mentioned steps S21-S22 actually refer to two interconnective distributing frames 13, such as distributing frame 13 is passive distribution frame or active distributing frame, and two distributing frames 13 adopt 10 core wire jumpers to connect, and one of them is connected with switch 12.
Specifically, in above-mentioned steps S21, for management platform, if it at a time receives a plurality of notification message, usually triggering following determines the flow process of port connection relationship successively in a certain order, and when the equipment that the mark of equipment from notification message is corresponding obtains the status information of its all of the port, if corresponding device is switch, so, this notification message is that this switch directly transmits when monitoring self port generation plug event, in this case, management platform directly issues corresponding acquisition instruction to switch, such as obtain instruction with message form transmission etc., follow-up can complete to obtain operation corresponding to instruction by the controller in switch.
nullIf corresponding device is distributing frame (such as passive distribution frame or electronic wiring frame),So,This notification message is that communication equipment generates and sends when receiving the triggering signal of the port generation plug event that this distributing frame transmits,For the ease of follow-up management platform by communication equipment transparent transmission command adapted thereto,The notification message that communication equipment generates not only carries the mark of this distributing frame,Also carry the mark of communication equipment,Such as extend the mark of instrument,In this case,Management platform can pass through distributing frame by obtaining accordingly instruction by communication equipment,That is,First received this by communication equipment and obtain instruction,Then acquisition instruction is processed,It is about to obtain instruction and is converted to the acquisition instruction that distributing frame may identify which,The acquisition instruction such as converting RS485 agreement to sends distributing frame to,Follow-up completed to obtain operation corresponding to instruction by the controller in distributing frame again.
Specifically, in above-mentioned steps S22, namely management platform can determine that the port that plug event occurs according to plug information, such as, when plug information at certain port obtained is port generation plug operation, namely showing that this port is the port that plug event occurs, this is no need for as prior art, by comparing the state of the corresponding port that port status that current period receives and last cycle receive, just can obtain occurring the port of plug event.Aforementioned this determine mode, compared to existing technologies, improve and determine efficiency, thus having shortened the operating time.
It addition, in above-mentioned steps S22, be in the port of disconnection for current state in the port that management platform is determined, it is necessary to perform the follow-up flow process judged whether in presetting database.
Preferably, said method can be applied particularly in the wiring frame management system including active distributing frame, such as can be applicable to single electron wiring frame management system, also apply be applicable to bielectron wiring frame management system, no matter it is be applied under which kind of system architecture, on electronic wiring frame, each port is provided with the display device of correspondence, in order to facilitate the port connection relationship that system manager determines according to management platform to safeguard system, thus improving Consumer's Experience, management platform in single electron wiring frame management system or bielectron wiring frame management system can also carry out following flow process:
Judge the port with annexation self determined, and in the port that plug event occurs determined, current state is in the port of disconnection whether in presetting database;
When judging that the port with annexation determined is all in presetting database, instruction corresponding ports corresponding device controls the display device of respective corresponding ports and shows the first set information;
When either port is not in presetting database in the port of annexation for having of judging to determine, the port corresponding device of annexation that what instruction was determined have controls the display device of respective corresponding ports and shows the second set information, and generates output after connection error warning information;
Judging that the port with annexation determined is not all when presetting database, instruction corresponding ports corresponding device controls the display device of respective corresponding ports and show the 3rd set information, and exports after generating illegal connection warning information;
In judging the port that plug event occurs determined, current state is in the port of disconnection in presetting database, instruction corresponding ports corresponding device controls the display device of corresponding ports and show the 4th set information, and exports after generating illegal disconnection warning information.
It should be noted that, in above-mentioned flow process, occur when incorrect link, illegal disconnection or illegal connection at port, both the display device that can pass through corresponding port shows relevant warning information, management platform side can be passed through again and export corresponding display alarm information, this dual alarm mode, the system manager that is more convenient for safeguards.
Further, in above-mentioned flow process, above-mentioned presetting database has all sequence informations, every order record two relevant informations needing the port connected, this relevant information at least includes port item, place distributing frame ID, extension instrument ID etc., so that whether the plug operation of wire jumper is consistent with sequence information on follow-up verification port, such as order record has certain port of certain electronic wiring frame, with the relevant information that certain port of peer switches or opposite end distributing frame has annexation.
Above-mentioned display device is such as display screen or LED etc..Above-mentioned first set information, the second set information, the 3rd set information and the 4th set information can set according to the real work situation of system manager, for instance, can embody respectively through following manner:
Management platform is when judging that the port with annexation determined is all in presetting database, the LED that can control the corresponding ports of relevant device is in green state (the first set information), and currently connecting with prompt system management personnel is normal connection;
When in judging above-mentioned port, only a port is in presetting database, the LED that can control the corresponding ports of relevant device is in red flicker state (the second set information), currently connecting with prompt system management personnel is incorrect link, facilitates system manager to carry out respective patch cord corrigendum in time;
When judging that above-mentioned port is not in presetting database, the LED that can control the corresponding ports of relevant device is in red status (the 3rd set information), currently connecting with prompt system management personnel is illegal connection, facilitates system manager to carry out the opening operation of respective patch cord in time;
In judging the port determined current state be in the port of disconnection in presetting database time, the LED that can control the corresponding ports of relevant device is in green flicker state (the 4th set information), with prompt system management personnel, illegal disconnection occurs, facilitate system manager to process in time.
Here, the embodiment of above-mentioned first set information, the second set information, the 3rd set information and the 4th set information is not limited in above-mentioned implementation, it is, of course, also possible to embody by other means, will not enumerate at this.
Additionally, the said method that the embodiment of the present invention provides is being applied to list, time in bielectron wiring frame management system, if the unexpected power-off of the electronic wiring frame in system, so, electronic wiring frame is equivalent to ordinary passive distributing frame and uses, the electronic wiring frame of these power-off is detected and recorded to management platform, and trigger corresponding alarming mechanism, prompting related personnel needs to perform power recovery maintenance, after power recovery, management platform sends the acquisition instruction obtaining related status information for these electronic wiring frames re-powered, current state to determine which port is in connection, detectable signal can be sent successively according to the item order of these ports, to determine the port connection relationship of reality, further determine whether consistent with before power recovery.
The embodiment of the present invention provides the defining method of a kind of port connection relationship, can be applicable in wiring frame management system, illustrates with this side of equipment of port generation plug event, as it is shown on figure 3, the method comprises the steps:
S31: the network equipment in system according to the management platform in system receive self monitor port generation plug event time send notification message after, the acquisition instruction of the status information obtaining self all of the port issued, obtain the status information of self all of the port, and be sent to described management platform;
Here, the status information of each port can include plug information and current state;
S32: according to the management platform received after determining, according to the plug information in the status information got, the port that plug event occurs, the current state in the port determined with it that controls issued successively is in the port of connection and sends the first control instruction of detectable signal, control corresponding ports successively and send detectable signal, so that management platform is successively by the port receiving detectable signal of peer network device feedback in system, it is defined as that there is annexation with the port sending detectable signal.
In embodiments of the present invention, said method still can be applicable in wiring frame management system as shown in FIG. 1A and 1B, when being applied in the system shown in Figure 1A, when the above-mentioned network equipment is switch 12, peer network device is distributing frame 13, such as distributing frame 13 is passive distribution frame or active distributing frame, and the two adopts 10 core wire jumpers to connect;Otherwise, the above-mentioned network equipment is when for distributing frame 13, and peer network device is switch 12.
When being applied in the system shown in Figure 1B, the above-mentioned network equipment and peer network device are actually two interconnective distributing frames 13, such as distributing frame 13 is passive distribution frame or active distributing frame, and two distributing frames 13 adopt 10 core wire jumpers to connect, and one of them is connected with switch 12.
Preferably, in above-mentioned steps S31, the network equipment can pass through whether the port of following manner monitoring self plug event occurs: the network equipment monitors the level of its each port, and when monitoring level and changing, it is determined that self port generation plug event.
Specifically, in above-mentioned monitoring flow process, for certain port on the network equipment such as electronic wiring frame, when being not inserted into wire jumper, the level collecting its reception is low level by the state acquisition unit that this port is corresponding, this state acquisition unit is usually located in the controller of this electronic wiring frame, so, once insert wire jumper on that port, the level change that this state acquisition unit will collect from low to high, in this case, trigger an interrupt signal immediately and be advertised to the multipoint control unit (MicroControllerUnit in controller, MCU), after follow-up MCU receives this signal, sent a notification message to management platform by communication equipment immediately, notify self port generation plug event.
Further, in above-mentioned steps S31, port plug event occurring in order to enable management platform to determine quickly and accurately, on network devices plug latch and depositor can be set each port, wherein, plug latch is mainly used in whether record port plug event occurred;Depositor is mainly used in the current state of record port, and so, the network equipment, when obtaining related status information, only need to read the plug latch of each port and the respective value of depositor, it is possible to determine corresponding status information.
Specifically, the network equipment is the status information being obtained self all of the port by following manner:
The network equipment reads the value of plug latch corresponding to each of which port and depositor respectively;
When the value of the plug latch read is the first initial value, it is determined that the plug information of corresponding ports is that port does not occur plug to operate;When first outside the value of the plug latch read is the first initial value sets numerical value, it is determined that the plug information of corresponding ports is port generation plug operation;
When the value of the depositor read is the second initial value, it is determined that the current state of corresponding ports is in disconnection;When second outside the value of the depositor read is the second initial value sets numerical value, it is determined that the current state of corresponding ports is in connection.
It should be noted that in above-mentioned acquisition flow process, above-mentioned first initial value, the first setting numerical value, the second initial value and second set numerical value and all can specify in advance, for instance the first initial value and the second initial value can be identical, for instance be 0, it is also possible to different;First setting numerical value and second sets numerical value can be identical, for instance is 1, it is also possible to different.
Preferably, said method also apply be applicable to include in the wiring frame management system of active distributing frame, and under this system architecture, the network equipment in system also can perform following flow process:
If receiving management platform when judging that the port with annexation self determined is all in presetting database, the corresponding ports that controls issued shows the second control instruction of the first set information, then the display device controlling its corresponding ports shows the first set information;
As received management platform when either port is not in presetting database in the port of annexation for having of judging self to determine, the corresponding ports that controls issued shows the 3rd control instruction of the second set information, then the display device controlling its corresponding ports shows the second set information;
If receiving management platform when judging that the port with annexation self determined is not all in presetting database, the corresponding ports that controls issued shows the 4th control instruction of the 3rd set information, then the display device controlling its corresponding ports shows the 3rd set information;
If receive management platform current state in judging the port self determined be in the port of disconnection in presetting database time, the corresponding ports that controls issued shows the 5th control instruction of the 4th set information, then the display device controlling its corresponding ports shows the 4th set information.
It should be noted that the setting of above-mentioned presetting database, the type of display device and the first set information are to the implementation of the 4th set information, all can be identical with implementation during using above-mentioned management platform as executive agent, no longer describe in detail one by one at this.
In above-mentioned steps S32, the network equipment is after control corresponding port sends detection (Detection) signal, for the peer network device receiving this signal, after state acquisition unit in its controller monitors this detectable signal, also can trigger an interrupt signal to have no progeny in receiving this to MCU, the MCU in controller, read the value of the detection latch of each port respectively, determine the port receiving detectable signal, then report management platform.
Occur in different phase it should be noted that receive level change during due to Detection signal and port generation plug event, therefore, different clocks is adopted to carry out signals collecting, can distinguish exactly, for instance, the level received with the clock acquisition port more than 20ms.
Below in conjunction with following embodiment, the defining method of the port connection relationship that the embodiment of the present invention provides is described in detail:
For bielectron wiring frame management system (as shown in Figure 4), it is assumed that by the port P1 on the electronic wiring frame 41 in 10 core wire jumper elder generation insertion systems, be inserted on the port P2 on electronic wiring frame 42;Assume that having P1 and P2 in presetting database has the relevant information of annexation;The value assuming plug latch is that 0 representative does not occur plug to operate, and value is 1 representative generation plug operation;The value of depositor is 0 represent current state and be in disconnection, and value is 1 represent current state and be in connection;The value of detection latch is that 0 representative does not receive detectable signal, and value is that 1 representative receives detectable signal;So, in this case, the interaction flow of electronic wiring frame 41, extension instrument 43 and management platform 44 is as follows:
State acquisition unit 4111 in the controller 411 of electronic wiring frame 41 monitors the level of port P1 and change from low to high occurs, at this moment the value arranging plug latch corresponding to this port immediately is " 1 ", the value of the depositor arranging correspondence is " 1 ", and triggers an interrupt signal to the MCU4112 in controller 411;After MCU4112 receives this interrupt signal, notify to extension instrument 43, after extension instrument 43 receives this interrupt signal, the Ethernet message triggering correspondence immediately is sent to management platform 44, notify that the port of its electronic wiring frame 41 has plug event to occur, this Ethernet message carries electronic wiring frame 41ID and extension instrument 43ID.
After management platform 44 receives this Ethernet message, the acquisition instruction of the status information of all of the port on electronic wiring frame 41 is obtained to electronic wiring frame 41 transparent transmission by extending instrument 43, controller 411 reads the plug latch of each port of electronic wiring frame 41 and the value of depositor according to this instruction, and after generating the status information of port, pass through management platform 44 by extending instrument 43;Management platform can show after status information is analyzed that the port P1 on electronic wiring frame 41 is the port that plug event occurs, and is currently in connection status, sends the control instruction of detectable signal by extending instrument 43 transparent transmission control port P1;After controller 411 receives this instruction, control port P1 and send detectable signal, for instance send the square-wave signal of 1KHZ, and by clear for the value of plug latch 0.
State acquisition unit 4211 in the controller 421 of electronic wiring frame 42 monitors this detectable signal, trigger an interrupt signal and be advertised to the MCU4212 in controller 421, after MCU4212 receives this interrupt signal, read the value of the detection latch of each port on electronic wiring frame 42, determine that port P2 receives detectable signal, the relevant information of P2 port is passed through management platform 44 by extending instrument 43, so, management platform 44 is receiving relevant information, such as relevant information includes port P2 item, controller ID, extension instrument ID etc., namely the port P1 of electronic wiring frame 41 is determined, with the port P2 of electronic wiring frame 42, there is annexation, and record.
Certainly, meanwhile, electronic wiring frame 42 also can proactive notification management platform 44 oneself ports having generation plug event, and subsequent execution flow process is identical with above-mentioned flow process, and so, the port connection relationship that management platform is determined is comparatively accurate.
Management platform 44 is drawing the port P1 of electronic wiring frame 41, after there is annexation with the port P2 of electronic wiring frame 42, also this relation is compared with the port connection relationship in presetting database, when comparing identical, LED corresponding with port P2 for port P1 can be controlled and be in green state, currently connect with prompt system management personnel and be in normal connection.
Based on same inventive concept, the embodiment of the present invention additionally provides the determination device of a kind of port connection relationship, owing to the principle of the solved problem of this device is similar to the defining method of aforementioned port connection relationship, therefore the enforcement of this device may refer to the enforcement of preceding method, repeats part and repeats no more.
The embodiment of the present invention provides the determination device of a kind of port connection relationship, and this device is applied in wiring frame management system, as it is shown in figure 5, this device includes:
Receiver module 51, is used for receiving notification message, carries the mark of the equipment of system middle port generation plug event in this notification message;
Acquisition module 52, obtains the status information of its all of the port for the equipment that the mark from equipment is corresponding, and the status information of each port includes plug information and current state;
Determine module 53, for the plug information in the status information that gets according to acquisition module 52, it is determined that equipment occurs the port of plug event;And successively by the port receiving detectable signal of opposite equip. feedback in system, it is defined as that there is annexation with the port sending detectable signal;
Instruction controls module 54, for indicating equipment to control successively to determine the port that current state in the port that module 53 is determined is in connection to send detectable signal.
Preferably, the equipment of status information that above-mentioned acquisition module 52 obtains is switch, above-mentioned determines that module 53 determines that having the opposite equip. of annexation with the port sending detectable signal is passive distribution frame or active distributing frame;Or the equipment of status information that acquisition module 52 obtains is passive distribution frame or active distributing frame, it is determined that module 53 determines that having the opposite equip. of annexation with the port sending detectable signal is switch;Or, the equipment of status information that acquisition module 52 obtains, and determine that module 53 determines that having the opposite equip. of annexation with the port sending detectable signal is two interconnective passive distribution framves or active distributing frame.
Preferably, said apparatus is applied to include in the wiring frame management system of active distributing frame, and this device also includes:
Judge module 55, for judging to determine the port with annexation that module 53 is determined, and determines that in the port that module 53 is determined, current state is in the port of disconnection whether in presetting database;
Instruction controls module 54, is additionally operable to when judge module 55 judges to determine that the port with annexation that module 53 determines is all in presetting database, and instruction corresponding ports corresponding device controls the display device of its corresponding ports and shows the first set information;When judge module 55 judges to determine that module 53 determines and have that in the port of annexation, either port is not in presetting database, the port corresponding device with annexation that instruction is determined controls the display device of its corresponding ports and shows the second set information;When judge module 55 judges to determine that the port with annexation that module 53 determines is not all in presetting database, instruction corresponding ports corresponding device controls the display device of its corresponding ports and shows the 3rd set information;And judge module 55 judge to determine in the port that module 53 is determined current state be in the port of disconnection in presetting database time, instruction equipment controls the display device of corresponding ports and shows the 4th set information;
Generate output module 56, for when judge module 55 judges to determine that module 53 determines and have that in the port of annexation, either port is not in presetting database, generating connection error warning information and also export;When judge module 55 judges to determine that the port with annexation that module 53 determines is not all in presetting database, generate illegal connection warning information and also export;And judge module 55 judge to determine in the port that module 53 is determined current state be in the port of disconnection in presetting database time, generate illegal disconnection warning information and export.
The embodiment of the present invention also provides for the determination device of a kind of port connection relationship, and this device is applied in wiring frame management system, and as shown in Figure 6, this device includes:
Monitoring modular 61, whether the port for monitoring device there is plug event;
Sending module 62, for when monitoring modular 61 monitors the port generation plug event of device, sending a notification message to the management platform in system;And send the status information that acquisition module 64 gets to management platform;
Receiver module 63, for the acquisition instruction of the status information obtaining self all of the port that receiving management platform issues upon receiving the notification message;And receiving management platform is after determining, according to the plug information in the status information that gets, the port that plug event occurs, in the port controlling to determine on device issued successively, current state is in the port of connection and sends the first control instruction of detectable signal;
Acquisition module 64, for when receiver module 63 receives acquisition instruction, the status information of all of the port on acquisition device, the status information of each port includes plug information and current state;
Control module 65, for when receiver module 63 receives the first control instruction, control current state in the port determined successively to be in the port of connection and send detectable signal, so that management platform is successively by the port receiving detectable signal of peer network device feedback in system, it is defined as that there is annexation with the port certainly sending detectable signal with it.
Preferably, above-mentioned monitoring modular 61, specifically for the level of each port on monitoring device, and when monitoring level and changing, it is determined that device generation plug event.
Preferably, above-mentioned acquisition module 64, the plug latch corresponding specifically for port each on reading device and the value of depositor;When the value of the plug latch read is the first initial value, it is determined that the plug information of corresponding ports is that port does not occur plug to operate;When outside the value of the plug latch read is the first initial value first sets numerical value, it is determined that the plug information of corresponding ports is port generation plug operation;When the value of the depositor read is the second initial value, it is determined that the current state of corresponding ports is in disconnection;And second outside the value of depositor read is the second initial value is when setting numerical value, it is determined that the current state of corresponding ports is in connection.
Preferably, said apparatus is switch, control module 65 make management platform determine having the peer network device of annexation with the port sending detectable signal is passive distribution frame or active distributing frame;Or, said apparatus is passive distribution frame or active distributing frame, control module 65 indicate management platform to determine having the peer network device of annexation with the port sending detectable signal is switch;Or, said apparatus and control module 65 indicate management platform to determine having the peer network device of annexation with the port sending detectable signal is two interconnective passive distribution framves or active distributing frame.
Preferably, said apparatus is applied to include in the wiring frame management system of active distributing frame, and,
Receiver module 63, is additionally operable to receiving management platform when judging that the port with annexation self determined is all in presetting database, and the corresponding ports that controls issued shows the second control instruction of the first set information;Receiving management platform is not when either port is in presetting database in the port of annexation for having of self judging to determine, and the corresponding ports that controls issued shows the 3rd control instruction of the second set information;Receiving management platform is when self judging that the port with annexation determined is not all in presetting database, and the corresponding ports that controls issued shows the 4th control instruction of the 3rd set information;And receiving management platform current state in judging the port self determined be in the port of disconnection in presetting database time, the corresponding ports that controls issued shows the 5th control instruction of the 4th set information;
Controlling module 65, be additionally operable to when receiver module 63 receives the second control instruction, the display device of corresponding ports in the port of annexation that has controlling to determine on device shows the first set information;When receiver module 63 receives three control instructions, the display device of corresponding ports in the port of annexation that has controlling to determine on device shows the second set information;When receiver module 63 receives four control instructions, the display device of corresponding ports in the port of annexation that has controlling to determine on device shows the 3rd set information;And when receiver module 63 receives five control instructions, control the display device of the port that current state is in disconnection in the port determined on device and show the 4th set information.
Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.