The management method that in the optical network unit identical function, different communications protocol is disposed
Technical field
The invention belongs to fiber optic communication field, relate to the optical network unit in the optical fiber communication, particularly a kind of implementation method that solves network communication management agreement configuration conflict in the optical network unit.
Background technology
In the process that the device of optical network unit of optical fiber communication manages, for making things convenient for operation management, the product of different shape needs the support of SNMP or tr069 NMP respectively.Different management agreements are to realizing often there are differences of identical function in definition.Each agreement is all safeguarded the cover configuration data with the supporting setting of this agreement.When two kinds of agreements earlier, when the adaptability configuration is done to same function in the back, the meeting of first configuration data by after the data division that disposes override.If the data that are capped can not guarantee and the agreement of back configuration demonstrates data and practice situation are not inconsistent, then can produce conflict.During serious conflict even cause unusually, indescribable problem appears.After configuration the time need inquire about the data of configuration earlier, the data that back configuration is earlier finished in configuration need to upgrade synchronously, reach agreement actual functional capability effectiveness and the more unification of new data.
Each management protocol stack generally all is a process independently, and protocol stack all calls the configuration that separately a cover function is finished correlation function behind analysis protocol, after a protocol stack arrangement is intact, again by shared drive, means such as IPC interprocess communication are upgraded the configuration data of other protocol stacks.This processing mode, each protocol stack all earlier with self definition consideration, realize relevant power function.So just lacking one comprehensively considers and unified planning, inconsiderate easily on the one hand complete, the conflict that some disguises are stronger can't be recognized, when data are done to upgrade synchronously on the other hand, need put the relation that disposes between each agreement in order, realize that difficulty is bigger, simultaneously, a lot of identical configuration operations, each protocol stack have the cover independent function of oneself, and code reuse is also very poor.
Summary of the invention
In order to solve the problem of multitube reason protocol stack arrangement conflict, designed the management method that in the optical network unit identical function, different communications protocol is disposed, to reach the unification of configuration and actual functional capability effectiveness.
The present invention for realizing the technical scheme that goal of the invention adopts is: in the optical network unit to identical function, the management method of different communications protocol configurations, said method is at disposing two kinds of communications protocol patterns in the optical network unit at least, comprise initial setting up in the management method, for different communications protocol patterns supporting, store the intermediate store of function model and supporting database, be also included within the communications protocol that line carries out and call the identical supporting power function model and the treatment step of data by means of managing process, key is: for various communications the function mode and the corresponding supporting data of supporting realization difference in functionality classify respectively, the filling identity code, and be stored in intermediate store; Also be stored in the intermediate store for the different function mode filling condition codes that can realize identical function in each communications protocol; Set up the parameter and standard of intermediate store and optical network unit and the index functions table of each function that the bottom api function is supported; Above-mentioned management method realizes by following steps:
(1) relevant communications protocol is resolved one by one after, set the corresponding encoding relation of communications protocol function and function pattern and supporting data, be stored in the intermediate store according to setting up the index vector table again with co-relation;
(2) managing process is determined the pattern of communications protocol according to the communication request of lead-in light network element, finds objective function index functions value according to the index functions table;
(3) seek object vector according to the index vector table, guide, in intermediate store, access adaptive function model and supporting database to buffer by the object vector value;
(4) correlation function model in the buffer and supporting database address are write in the selected communications protocol as object vector.
The invention has the beneficial effects as follows: utilize the inventive method, for in the various communications protocol the function mode and the corresponding supporting data of supporting realization difference in functionality classify respectively, the filling identity code, and be stored in intermediate store, and the different function mode filling condition codes of identical function will can be realized in each communications protocol, and set up the index functions table of each function, call the function corresponding function by the index functions table, effectively avoided the stronger conflict of disguise when changing NMP, and to the very poor problem of the code reuse of identical function.
Embodiment
In the optical network unit to identical function, the management method of different communications protocol configurations, said method is at disposing two kinds of communications protocol patterns in the optical network unit at least, comprise initial setting up in the management method, for different communications protocol patterns supporting, store the intermediate store of function model and supporting database, be also included within the communications protocol that line carries out and call the identical supporting power function model and the treatment step of data by means of managing process, key is: for various communications the function mode and the corresponding supporting data of supporting realization difference in functionality classify respectively, the filling identity code, and be stored in intermediate store; Also be stored in the intermediate store for the different function mode filling condition codes that can realize identical function in each communications protocol; Set up the parameter and standard of intermediate store and optical network unit and the index functions table of each function that the bottom api function is supported; Above-mentioned management method realizes by following steps:
(1) relevant communications protocol is resolved one by one after, set the corresponding encoding relation of communications protocol function and function pattern and supporting data, be stored in the intermediate store according to setting up the index vector table again with co-relation;
(2) managing process is determined the pattern of communications protocol according to the communication request of lead-in light network element, finds objective function index functions value according to the index functions table;
(3) seek object vector according to the index vector table, guide, in intermediate store, access adaptive function model and supporting database to buffer by the object vector value;
(4) correlation function model in the buffer and supporting database address are write in the selected communications protocol as object vector.
The mode that communicates between communications protocol and the managing process is socket or message queue.
With in each communications protocol the function mode of supporting realization difference in functionality and corresponding supporting storage in intermediate store; And also be stored in the different function modes that to realize identical function in each communications protocol in the intermediate store; Like this configuration data and the main processing procedure of function are incorporated into together, carry out unified planning, so not only avoided when the adaptability configuration is done to same function in two kinds of agreements elder generations, back, the meeting of elder generation's configuration data by after the problem that overrides of the data division that disposes, and effectively avoided the stronger conflict of disguise when changing NMP, and to the very poor problem of the code reuse of identical function.
The present invention is in the specific implementation: after resolving the communications protocol message, according to communications protocol function and function pattern, communicate by socket or message queue and managing process, find objective function index functions value according to the index functions table, index value is sent to managing process, the index vector table that relends between the supporting data that help objective function function and corresponding function function mode is sought object vector, guide by the object vector value, in intermediate store, access adaptive function model and supporting database to buffer, at last correlation function model in the buffer and supporting database address are write in the selected communications protocol as object vector.
Effectively integrate and plan by this kind method, simplified code, effectively reduce the synchronous complexity of colliding data, realized that configuration is unified.