Background technology
Configuration management is a critical function of network management system such as telecommunications, it according to business demand to the network equipment with Internet resources define and initialization.
In existing systems, the first method that is managed for configuration is to take the mode of manmachine command, the Operation and Maintenance personnel are by OMC (operational administrative center, Operate Manager Center) issues manmachine command to the foreground, the Foreground Data storehouse table that foreground resolve command and operation are relevant is realized the configuration of data.
The shortcoming of this mode is the operation workload that has increased the foreground greatly, because configuration logic all is to realize on the foreground, has increased the size of code on foreground, is unfavorable for the stable of foreground, has reduced the foreground operating efficiency.Simultaneously, compare with the system R (DBMS) of backstage maturation, foreground embedded data library facility is simple relatively, for example, can not well provide the function of transaction operation, in case occur data exception in the layoutprocedure, recovers relatively difficulty of correct data.
Second method is that the foreground configuration data is sent to the backstage earlier, changes into database format on the backstage, as the DBF file, edits these database files then, converts the Foreground Data form again to, is sent to the foreground and preserves.
The shortcoming of this method is all will be sent to the backstage to Foreground Data earlier when carrying out data configuration at every turn, and is convenient inadequately.And because a configuration data relates generally to a lot of files, for large-scale communication system (for example GSM), the backstage is difficult to guarantee the correctness of data and to the complete operation of affairs when the file of form such as editor DBF etc.
Summary of the invention
Technical problem to be solved by this invention is to provide and realizes in a kind of network management system can making full use of the power of backstage system R when alleviating the foreground workload to the method for Foreground Data configuration, makes configuration data more reliable.
In order to solve above technical problem, the invention provides and realize in a kind of network management system the method for Foreground Data configuration be may further comprise the steps:
(a) background data base simulation Foreground Data storehouse system creation relevant configuration table, and create data to be transmitted table and foreground and background databases mapping table, and the self-defined storing process that is used to realize configuration logic;
(b) the Operation and Maintenance personnel issue the data configuration request;
(c) after the webmaster program is received the data configuration request, call relevant self-defined storing process, generate configuration data;
(e) the Operation and Maintenance personnel send data synchronization request;
(f) after the webmaster program is received data synchronization request, read the data of the allocation list that will transmit according to described data to be transmitted table, carry out data transaction according to described foreground and background databases mapping table after, mutual with the foreground, data are sent to the foreground;
(g) foreground receives configuration data, after finishing receiving, data is saved in the Foreground Data storehouse.Thereby finish data configuration to the foreground.
In order to realize the synchronous dual mode of the synchronous and whole table of increment, in the said method: the mark of the allocation list that also will revise in the described step (c) in described data to be transmitted table is changed to " needing to transmit " state; In the described step (e), the Operation and Maintenance personnel can send the synchronous request of the synchronous or whole table of increment; In the described step (f), after the webmaster program receives the synchronous request of increment, only read and transmit the allocation list data that are labeled as " needing transmission " state in the data to be transmitted table, and after receiving the synchronous request of whole table, read the data of all allocation lists in the data to be transmitted table.
At a background data base corresponding to a plurality of foregrounds module and need carry out data configuration selectively the time, in the described step (e), the Operation and Maintenance personnel also select will carry out the network element of data configuration and issue from the webmaster terminal, and the webmaster program is chosen relative allocation list according to described network element from the data to be transmitted table.
As from the foregoing, the inventive method adopts self-defined process to realize configuration logic in the large-scale system R of background data base maturation, can well realize functions such as affairs, reduces wrong probability.And, because configuration logic is by realizing, thereby has alleviated the burden on foreground, improved the foreground operating efficiency in background data base.Can in network management system, realize high-efficient disposition to the network equipments such as telecommunications and Internet resources.
Embodiment
Network management system with personal portable telephone system (PHS) system is an example below, introduces implementation method of the present invention in detail.
The PHS system is a kind of personal mobile communication system of ripe development, is the product that a kind of wired access network technology and mobile handoff technique combine from technical system, belongs to the mobile communication product of 2.5G.The PHS network management system is a subsystem of PHS system.In the present embodiment, the PHS network management system is the standard client/server configuration, background data base adopts Microsoft SQL Server, and the Operation and Maintenance personnel use graphic user interface (GUI) terminal by PHS NM server (being background server) visit SQL Server database.Between background system and the foreground system by ICP/IP protocol communication.
At first, SQL Server database simulation Foreground Data storehouse list structure is created the relevant configuration table, and so-called simulation is meant that the structure (as field name, field type, field length etc.) of the two is almost consistent.But, because also may there be inconsistent problem in the type difference of foreground and background databases, at this moment need be before transmitting Data Format Transform in addition.
In the data configuration process, on background data base, finish configuration logic according to Operation and Maintenance personnel's configuring request on the background data base.When synchronous, also need determine needs which table of transmission and is transferred to which foreground module, and carries out data transaction according to the corresponding relation of foreground and background databases allocation list.
In the present embodiment, when installing, created background data base the self-defined storing process that is used to realize configuration logic.The configuring request that these self-defined storing process can issue according to the Operation and Maintenance personnel is finished corresponding modify to data in all Relational databases automatically with software, finishes configuration logic, and its reliability will be higher than the editor to the data library file.
PHS network management system data configuration comprises that whole table synchronously and synchronous two types of increment, whole table is to the foreground synchronously the data sync of the whole allocation lists of background data base, generally when beginning, use, increment is synchronously from the data of the last table of having revised since subsynchronous synchronously, the data that increment relates to synchronously are fewer, generally use when system's operation maintenance.
For the table of determining to transmit when synchronous, background data base has been created data to be transmitted table send_table when installing, write the table name Tablename that relates to configuration data in the background data base during to its data initialization, and the mark IsSend that transmits of network element number (representing the foreground module No.) and whether needing, whether the transmission mark is used to discern allocation list is " needing transmission " state.The structure of send_table table is as shown in table 1, but the present invention is not limited thereto.
Table 1, data to be transmitted table (send_table)
| Field name | Field type | Field contents |
| NeNo | ?Tinyint | Network element number |
| Tablename | ?Varchar(20) | The configuration table name |
| IsSend | ?Tinyint | Whether need transmission, 0~not needs 1~needs |
In order to reflect the corresponding relation of allocation list in the foreground and background databases, and the structure corresponding relation between table and the table, the PHS network management system database of present embodiment when mounted, created the relation table table_book of reflection foreground and background databases corresponding relation, the database table information that during data initialization AM/BAM is related to configuration data writes in this table, and the NM server program is carried out the correspondence of data transaction and table according to table table_book.The structure of the table_book of present embodiment table is as shown in table 2, comprises backstage table name, backstage table field name, backstage literary name segment type and length, and corresponding foreground table name, fields such as foreground table field name, foreground literary name segment type and length.But should table be an example, field wherein also can according to circumstances be omitted or be increased.
Table 2, foreground and background databases mapping table (table_book)
| Field name | Data type | Implication |
| Nmtable | ?Varchar(20) | The backstage table name |
| Nmfield | ?Varchar(20) | Backstage table field name |
| Npfdtype | ?Tinyint | Backstage literary name segment data type |
| Npfdlength | ?Smallint | The shared byte length of backstage literary name section |
| Mptable | ?Varchar(12) | The foreground table name |
| Mpfield | ?Varchar(10) | Foreground table field name |
| Mpfdtype | ?Tinyint | Foreground literary name segment data type |
| Mpfdlength | ?Smallint | The shared byte length of foreground literary name section |
The concrete steps of PHS network management system data configuration may further comprise the steps as shown in Figure 1:
Step 100, SQL Server database simulation Foreground Data storehouse are created the relevant configuration table, and the structure of these tables (comprising the title, length, type of field etc.) is basic identical with the foreground;
Step 110, SQL Server database initialize foreground and background databases mapping table table_book and data to be transmitted table send_table;
Step 120, the self-defined storing process of SQL Server database initialize is realized configuration logic;
Step 130, the Operation and Maintenance personnel use PHS webmaster terminal to issue the data configuration request as required, for example, increase veneer, increase base station etc.;
Step 140, PHS NM server receive the configuring request that PHS webmaster terminal is sent, and call the corresponding self-defined storing process of background data base after the processing, configuration data is write background data base SQLServer show accordingly;
The allocation list that step 150, background data base were revised corresponding isSend field in data to be transmitted table send_table is set to 1, so that inquire about which table when increment is synchronous revises;
Step 160, the Operation and Maintenance personnel select network element (be transfer of data to foreground module) from PHS webmaster terminal after data configuration is finished, issue data synchronization request;
Step 170, the PHS NM server is analyzed the type of data synchronization request, if whole table is synchronously, execution in step 180a, if increment is synchronous, execution in step 180b;
Step 180a takes out whole allocation lists of selected network element correspondence from send_table, according to the mapping table table_book of foreground and background databases, the data of taking out is converted into the data that the foreground can receive in the internal memory of PHS NM server;
Step 180b, from the send_table table, take out the change table (table that isSend equals 1) of selected network element correspondence, according to the mapping table table_book of foreground and background databases, the data of taking out are converted into the data that the foreground can receive in the internal memory of PHS NM server;
Step 190, the PHS NM server sends data synchronization request to the foreground, after obtaining replying, transmits configuration data with ICP/IP protocol to the foreground;
Step 200, the foreground writes Foreground Data storehouse temporary table with the configuration data that receives earlier;
Step 210 is finished in the data transmission, and the PHS NM server sends data deposit request to the foreground;
Step 220, the foreground copies the data of Foreground Data storehouse temporary table in the actual table in Foreground Data storehouse to, and data sync finishes.
The inventive method is simulated Foreground Data storehouse system creation relevant configuration table in the background data base of network management system, background data base uses self-defined storing process to realize configuration logic, after configuration data all generates, realize configuration to the data sync on foreground to the network equipment such as telecommunications and Internet resources by the backstage.Thereby employing this method, can save resources such as the limited CPU in foreground, internal memory, improve the operating efficiency on foreground, simultaneously, can make full use of the power of backstage system R, make configuration data more reliable.By making in this way, the Operation and Maintenance personnel can carry out flexibly, dispose efficiently network by the Graphic Terminal of OMC, and can guarantee data integrity, and are minimum to the system loading influence simultaneously.
Though the embodiment of the invention is to be example with the PHS network management system, the inventive method is applicable in all kinds of network management systems, and the backstage of this network management system will link to each other with foreground system certainly.