In a kind of communication system based on the initial method of system's correlation
Technical field
The present invention relates in a kind of communication system initial method based on system's correlation based on the initial method, particularly synchronous digital transmission system (SDH) of system's correlation.
Background technology
In general, present communication system is a kind of new and high technology system product that integrates modern microelectronics, photoelectron, software engineering and network technology, is again the network that a kind of standardization level is had relatively high expectations simultaneously.Guarantee the normal operation of communication network, be unable to do without the support of powerful network management platform.Synchronous digital transmission system in the transmission system (SDH) also is like this.The normal operation of SDH be unable to do without the support of network management, and the power of SDH and superiority can only could fully show by advanced person's network management system.
A kind of reference model of typical network management as shown in Figure 1.
Generally speaking, preserve the topological sum configuration information of SDH net at NE management layer (MANAGER) and Network Element Layer (AGENT), and do not preserve at ply (MCU).Can transmission network be managed normally, is whether network element and veneer obtain correct initial configuration, so the initial configuration of system is the important prerequisite that transmission network management can be carried out normal management.
Simply say, the initialization procedure of system, when powering in system exactly, MCU can correctly obtain necessary relevant business and other configuration informations from AGENT, and by the Qx mouth its operating state is reported MANAGER again by AGENT or by the Qx mouth or through the ECC forwarding.
In the SDH transmission system, AGENT to the initialization procedure of MCU is: MCU reports plate type information to AGENT respectively at a certain time interval, AGENT receives the back it is configured, MCU then finishes to report after correctly receiving configuration information, and enter operating state, AGENT and each piece MCU will repeat this process, all normally enter running status until all MCU.
Adopt the initial configuration of this mode, clearly have following problem: irrelevant between one, MCU and the AGENT, AGENT just responds the reporting information of MCU passively, like this may be unreasonable because of reporting gap size to be provided with, duplicate configuration, cause internet message congested.Time interval size also is a comparatively rough empirical value in addition, there is no strict basis; Two, function is relevant between some MCU, must after category-B MCU operate as normal, just can enter operating state such as category-A MCU, otherwise just may cause system to enter a kind of unpredictable state, solution is that various MCU are preset different time of delay, and for a comparatively complicated transmission system, the required time of initialization reaches dozens of minutes sometimes, and this obviously is unscientific.
The research of domestic SDH transmission equipment starts from middle nineteen nineties, at first having released transmission bandwidth is the low speed transmissions equipment that 155M or 622M etc. are applied to local network, the high-speed transmission equipment of releasing again that can be used for arterial grid is SDH transmission equipments such as 2500M as transmission bandwidth then.In the low speed transmissions equipment development, the initialization of system is not considered too much the system initialization process is normal substantially, but in the high-speed equipment exploitation, discovery system initialization process often can not be finished normally.Mainly show: it is incomplete that (1) MCU receives configuration information; (2) AGENT carries out repeated configuration to MCU; (3) state of the AGENT of network management interface demonstration and MCU is incorrect; (4) after initialization was finished, system often entered a kind of nondeterministic statement.Why do the problems referred to above show not obviously in the low speed transmissions equipment in early days? through anatomizing, find that main cause is that early stage low speed transmissions device architecture is less, systematic comparison is simple, and compare with low speed transmissions equipment at a high speed, the complexity of software and hardware and amount of information size, very big variation has all been arranged, continued to use this method again, be certain to bring the problems referred to above.
Summary of the invention
The present invention proposes in a kind of communication system initial method based on system's correlation, the deficiencies in the prior art have been overcome, solved the information dropout, the repeated configuration that exist in the initialization procedure, between the MCU correlation control and initialization time oversize etc. problem.
The method of the invention works in the embedded operational environment, and its operating system is to support the real time operating system of multitask and message mechanism.
Realize that the method for the invention can be divided into following two tasks:
The function of first task is to realize that AGENT receives the MCU reporting message, and whether differentiate this message be the message that repeats to report;
Second task is to realize that AGENT differentiates the correlation of MCU, makes corresponding processing then.
Adopt message queue to realize communication and synchronous between above-mentioned two tasks.Judge that when first task the message of receiving is not to repeat to give the correct time, just message can be sent to second task, do correlation by second task and differentiate, and conclude whether call initialization module thus.Work between two tasks and synchronized relation are as shown in Figure 6.
First task of described method is divided into following steps:
1. design a kind of current groove position init state table, the init state of the corresponding single-board slot of the content description in the list item.Purpose is to avoid repeating in the initialization procedure to report problem.
2. during system initialization, AGENT all is changed to the no initializtion state with current groove position init state contents in table.
Receive the preparation of MCU reporting message 3.AGENT carry out.
4.AGENT after side is received reporting of MCU, search current groove position init state table.If groove position init state table list item that should MCU is set, show AGENT received this corresponding groove position MCU report plate type information, and maybe will carry out initial configuration to it, lose this message, go to step 3 and wait for that MCU reports; Otherwise, with corresponding list item set, message is issued the reception message queue of second task, go to step 3.
Second task of described method is divided into following steps:
1. design the set of one group of MCU correlation table in the AGENT side, it has described the possible combined situation of equipment plate, and the correlation of various function MCU under every kind of combination.
2. during system initialization, AGENT adopts matching algorithm to choose corresponding correlation table according to the MCU configuring condition of equipment.This step is only carried out once in initialization.
3. wait for the message that receives first task step 4.
4. search the MCU correlation table of having chosen.
5. carrying out correlation differentiates.If the MCU relevant with this MCU initially finishes, then go to step 6; Otherwise, lose this message, go to MCU such as step 3 grade and report.
6. transfer the MCU initialization module, MCU is carried out initialization, then finish after normally finishing, remove current groove position init state table simultaneously to should the MCU contents in table in the correlation table status word that should MCU being changed to.Return step 3.
Adopt method of the present invention, what occurred when having solved initialization procedure in the transmission system repeats to report problem, has realized the correlation control of system.Such as before employing the present invention, initialization time for complicated high-speed transmission equipment needs dozens of minutes, even can not guarantee initialization procedure like this can correctly finish, and after employing the present invention, initialization time shortens to a few minutes, and after can guaranteeing that each initialization is finished, equipment enters normal operating conditions.
Description of drawings
Fig. 1 is the reference model of SDH managerial grid.
Fig. 2 is the transmission equipment structural representation.
Fig. 3 is certain concrete transmission equipment correlation hoist pennants.
Fig. 4 is a possible combined situation of having described the equipment plate, and the correlation table set that produces various function MCU therefrom.
Fig. 5 is a schematic diagram of describing the current groove of MCU position init state table.
Fig. 6 is that the message that reaches synchronously between two tasks is transmitted schematic diagram.
Fig. 7 is that AGENT is to the current groove of MCU position init state list processing flow chart.
Fig. 8 is the process chart of AGENT to the correlation table of MCU.
Embodiment
Be described in further detail below in conjunction with the realization of accompanying drawing the method for the invention.
At first several conceptual illustration that the method for the invention is related to are as follows:
1) correlation table: to specific system, each MCU from function be related in logic, such as category-A MCU can only could work after category-B MCU operate as normal, just refers to their succession in other words.
2) correlation table set: the type transmission equipment can be realized smooth upgrade, according to the MCU of the different kind of each groove position insertion, just can realize the transmission equipment of different rates, and they can have different correlations.Therefore, the correlation table just is meant the set of various possibility correlations.
3) coupling: during the AGENT initialization,, choose corresponding correlation table according to the characteristic that current device is installed MCU.
4) GUI: graphical user interface.
5) MANAGER: manager.It sends the notice that loopback is acted on behalf of in administration order and reception, realizes various management functions whereby.
6) AGENT: succedaneum.Its response management person's order is implemented concrete to relevant management object
7) MCU: various function veneers also can be described as the object of being managed.
For a SDH transmission system, Fig. 2 has provided the sub-frame plate schematic diagram of transmission equipment.AGENT is a master control borad, and PW is a power panel, and MCU1 is other miscellaneous services and feature board to MCUn, such as group road, tributary card etc.
In order to describe the correlation between the hardware device, structure correlation table as shown in Figure 3.The correlation table is exactly abstract to ardware feature, it adopts a kind of mathematical method to describe relation between the MCU, wherein subscript 1~n and sub-frame are for concerning one to one, the size of correlation has been represented the initialization order of MCU, the size of value has been represented initialized priority, what value was identical then carries out initialization by the order that reports, and initialization indicates successfully and whether reflected corresponding MCU by normal initialization that it has success and two kinds of values of failure.Utilize this sample loading mode, can make AGENT control MCU carry out initialized order, thereby realized the correlation control between the MCU.
For the high-speed transmission equipment of complexity, can gather the correlation of describing between the hardware device with correlation table as shown in Figure 4.The type digital synchronous equipment can be realized smooth upgrade by insert different MCU on sub-frame, just realizes the equipment of different rates and crossing, and every kind of equipment all may corresponding correlation table.The classification of summarizing of the situation of antithetical phrase frame plate forms a correlation table set.
To a concrete MCU, Fig. 5 shows the current groove of MCU position init state table.Wherein subscript 1~n and sub-frame are for concerning that one to one its state value is two kinds, and promptly AGENT maybe will not carry out init state to MCU to MCU initialization and AGENT.
As shown in Figure 6, be to adopt message queue to realize communication and synchronously between two of the method for the invention tasks.Judge that when first task the message of receiving is not to repeat to give the correct time, just message can be sent to second task, do correlation by second task and differentiate, and conclude whether call initialization module thus.
As shown in Figure 7, AGENT to the processing procedure of the current groove of MCU position init state table is: at first AGENT is changed to the no initializtion state with the current groove of MCU position all contents in table of init state table.When receiving the reporting message of MCU, check current groove position init state table respective items, if position, corresponding states position, illustrate and receive that this MCU reports, abandon this message, maybe will carry out init state otherwise the state of corresponding list item is changed to AGENT to this MCU, and give message sink formation among Fig. 8 this forwards.
AGENT to the handling process of MCU correlation table is as shown in Figure 8: the type transmission equipment has the ability of smooth upgrade, therefore AGENT should be according to current installation configuration information relevance of searches table set when initialization, find out with it corresponding correlation table, and will initialization wherein successfully indicate and be changed to failure.When receiving from message that Fig. 7 transmits, need whether also have also no initializtion of the own big MCU of correlation ratio in the inquiry correlation table, if have, then abandon this message, go to " receiving the MCU reporting message that sends from Fig. 7 ", otherwise, this MCU is carried out initialization, after initialization is finished, remove corresponding list item in the state table of current groove position, put that initialization flag is successfully in the correlation table.If all MCU initialization finish, then finish, otherwise go to " receiving the MCU reporting message that sends from Fig. 7 ".
Along with the continuous development of digital synchronous transmission technology, the function of transmission equipment will constantly strengthen, and certainly system also will be complicated more, and it is designer's major issue that must think better of from now on that initialization procedure is effectively controlled.This method disclosed in this invention has solved the problem of correlation control in the transmission system initialization procedure better.From actual effect, the situation for carrying out complicated networking in the transmission system adopts method of the present invention, makes the system initialization process stabilization reliable, for the normal operation of transmission network management system is had laid a good foundation.