A kind of optical network local side apparatus method of data synchronization and system
Technical field
The present invention relates to the communications field, more particularly to a kind of optical network local side apparatus method of data synchronization and system.
Background technology
Optical network local side apparatus is a kind of to be used to connect the terminal device of fiber optic backbone, traditional optical network local side apparatus
In, multiple optical network port modules are generally there are, and using the connected mode of synchronous serial, when optical network port module starts
Afterwards, the initiation message is sent to optical network local side apparatus by optical network port module, and optical network local side apparatus will belong to optical-fiber network
The problem of configuration information of port module is sent to the optical network port module, and the method is brought is that configuration information transmission is very slow
Slowly, thus cause optical network port module connect device of optical network unit reach the standard grade it is slow.
Some improved methods send multiple identical categories to optical network local side apparatus every time by optical network port module
Message, although accelerating transmission speed to a certain extent, it substantially still can not be from basic using serial manner
It is upper to solve the problems, such as that configuration file transmission is slow.
The content of the invention
For above mentioned problem existing for optical network local side apparatus in the prior art, one kind is now provided and aims at optical-fiber network list
The optical network local side apparatus method of data synchronization and system of first Quick thread.
Concrete technical scheme is as follows:
A kind of optical network local side apparatus method of data synchronization and system, optical network local side apparatus (the OLT optical
Line terminal) a plurality of optical network port modules of connection, a plurality of optical-fiber network lists of each light net port module connection
First (ONU Optical Network Unit), specifically includes following steps:
Step S1, corresponding startup information is sent into the optical network local side when described optical network port module starts to set
It is standby;
Step S2, described optical network local side apparatus receives the corresponding startup information, is believed according to corresponding described start
Configuration file corresponding to breath generation one, and the configuration file is sent to the corresponding optical network port module;
Step S3, the configuration file corresponding to described optical network port module loading, and according to the configuration file to
The optical network unit of connection issues configuration.
Preferably, the optical network local side apparatus includes a database, and the corresponding plural number is stored in the database
The configuration information of individual light net port module, in the step S2, the optical network local side apparatus is according to the startup information in institute
The configuration information corresponding to being searched in database is stated, and the configuration file is generated according to the configuration information found.
Preferably, the database is SQILTE databases.
Preferably, in the step S2, comprise the following steps:
Step S21, described optical network local side apparatus passes through the corresponding light after the corresponding configuration file of generation
Network port module, sent to the optical network unit of the corresponding optical network port module connection and prepare to receive configuration
Instruction;
Step S22, the corresponding optical network port module is in receiving the optical network local side apparatus to the light net
After the preparation that network unit is sent receives the instruction of configuration, sent to the optical network local side apparatus and download the corresponding configuration text
The request of part;
Step S23, described optical network local side apparatus receives the optical network port mould corresponding to offer after the request
Block downloads the corresponding configuration file.
Preferably, the optical network local side apparatus includes a database, and the corresponding plural number is stored in the database
The configuration information of individual light net port module, in the step S2, the optical network local side apparatus is according to the startup information in institute
The configuration information corresponding to being searched in database is stated, and the configuration file is generated according to the configuration information found.
Preferably, the database is SQILTE databases.
Preferably, in the step S2, comprise the following steps:
Step S21, described optical network local side apparatus passes through the corresponding light after the corresponding configuration file of generation
Network port module, sent to the optical network unit of the corresponding optical network port module connection and prepare to receive configuration
Instruction;
Step S22, the corresponding optical network port module is in receiving the optical network local side apparatus to the light net
After the preparation that network unit is sent receives the instruction of configuration, sent to the optical network local side apparatus and download the corresponding configuration text
The request of part;
Step S23, described optical network local side apparatus receives the optical network port mould corresponding to offer after the request
Block downloads the corresponding configuration file.
Preferably, the optical network port module carries out timing after the startup information is sent, as timing time exceedes
Do not receive the optical network local side apparatus during one first preset value also and receive configuration to the preparation that the optical network unit is sent
Instruction, then send the startup information to the optical network local side apparatus again.
Preferably, the optical network port module is counted after the request for downloading the corresponding configuration file is sent
When, the configuration file as corresponding to being downloaded when timing time is more than second preset value is also failed, then again to the light
Network local side apparatus sends the request for downloading the corresponding configuration file.
Preferably, it is further comprising the steps of in the step S2:
Step S24, described optical network port module downloads the successfully backward optical-fiber network in the corresponding configuration file
Local side apparatus sends sign and downloads successful message.
Preferably, the optical network local side apparatus is sent pair by File Transfer Protocol to the corresponding optical network port module
The configuration file answered.
Preferably, the configuration file is database file.
Also include, a kind of optical-fiber network control system, applied to the optical network local side apparatus method of data synchronization.
Above-mentioned technical proposal has the following advantages that or beneficial effect:When multiple optical network port moulds in optical network local side apparatus
When block starts, multiple optical network port modules configuration number file can be defeated by optical network port mould by optical network local side apparatus simultaneously
Block, optical network port module almost simultaneously complete its configuration process, therefore fundamentally solve configuration file send slowly and
The problem of configuration process is slow, accelerate linear velocity on device of optical network unit.
Brief description of the drawings
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.However, appended accompanying drawing be merely to illustrate and
Illustrate, and be not meant to limit the scope of the invention.
Fig. 1 is a kind of flow chart of the embodiment of optical network local side apparatus method of data synchronization of the present invention;
Fig. 2 is a kind of embodiment of the configuration file transmission process of optical network local side apparatus method of data synchronization of the present invention
Flow chart;
Fig. 3 is that a kind of another kind of configuration file transmission process of optical network local side apparatus method of data synchronization of the present invention is real
Apply the flow chart of example.
Embodiment
The present invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
Technical solution of the present invention includes a kind of optical network local side apparatus method of data synchronization.
As shown in figure 1, a kind of embodiment of optical network local side apparatus method of data synchronization, optical network local side apparatus connection is multiple
Several optical network port modules, each light net port module connect a plurality of optical network units, wherein, specifically include following step
Suddenly:
Step S1, the corresponding information that starts is sent to optical network local side apparatus when optical network port module starts;
Step S2, optical network local side apparatus receives corresponding startup information, and a correspondence is generated according to the corresponding information that starts
Configuration file, and configuration file is sent to corresponding optical network port module;
Step S3, configuration file corresponding to optical network port module loading, and the optical-fiber network according to configuration file to connection
Unit issues configuration.
In specific implementation, it when optical network port module starts corresponding will start information and be sent to optical network local side and set
Standby, wherein optical network port module is multiple, and network local side apparatus receives corresponding initiation message, configuration text corresponding to generation one
Part, and configuration file being sent to optical network port module, configuration file corresponding to optical network port module loading, when having loaded
After finishing configuration file is issued to optical network unit according to configuration file, the present embodiment is due to optical network local side apparatus being issued
The configuration information of a corresponding optical network port is changed to be formed and sends a separate configurations file by series form, so as to reduce
Number of communications between optical network local side apparatus and corresponding optical network port, fundamentally solve configuration file send it is slow
The problem of slow and optical network port module configuration process is slow.
On the basis of such scheme, further, optical network local side apparatus includes a database, is stored in database pair
Answer the configuration information of a plurality of light net port modules, in step S2, optical network local side apparatus is according to starting information in database
Configuration information corresponding to lookup, and configuration file is generated according to the configuration information found.As a preferred embodiment,
Above-mentioned database can be nested relations type database.
On the basis of such scheme, further, database is SQILTE databases.
On the basis of such scheme, further, in step S2, as shown in Fig. 2 may comprise steps of:
Step S21, optical network local side apparatus passes through corresponding optical network port mould after corresponding configuration file is generated
Block, the optical network unit connected to corresponding optical network port module, which is sent, prepares the instruction for receiving configuration;
Step S22, corresponding optical network port module is in receiving what optical network local side apparatus was sent to optical network unit
After the instruction for preparing receiving configuration, the request for downloading corresponding configuration file is sent to optical network local side apparatus;
Step S23, optical network port module corresponding to offer is downloaded accordingly after optical network local side apparatus receives request
Configuration file.
On the basis of such scheme, further, optical network port module carries out timing after startup information is sent, and such as counts
When the time more than first preset value when do not receive the preparation that optical network local side apparatus is sent to optical network unit also and receive configuration
Instruction, then again to optical network local side apparatus send start information.
On the basis of such scheme, further, optical network port module downloads asking for corresponding configuration file in transmission
Timing is carried out after asking, as when timing time is more than second preset value download corresponding to configuration file it is also failed, then again to
Optical network local side apparatus sends the request for downloading corresponding configuration file.
On the basis of such scheme, further, in step S2, as shown in Fig. 2 further comprising the steps of:
Step S24, optical network port module is sent after corresponding configuration file is downloaded successfully to optical network local side apparatus
Sign downloads successful message.
On the basis of such scheme, further, optical network local side apparatus passes through File Transfer Protocol (File Transfer
Protocol FTPs) to corresponding optical network port module send corresponding to configuration file.
As a kind of specific embodiment, optical network local side apparatus can be while starting to generate corresponding configuration file
FTP service is opened, corresponding optical network port module can be in the backward optical-fiber network office of instruction for receiving corresponding preparation receiving configuration
End equipment proposes FTP requests, so as to complete the configuration file transmitting procedure based on File Transfer Protocol.
On the basis of such scheme, further, configuration file is database file, and optical network port module receives phase
The database file (a kind of embodiment of configuration file) answered loads this document afterwards, that is, completes optical network local side apparatus and light net
Configuration transmission between network port module.A kind of optical-fiber network control system is additionally provided in technical scheme, is applied to
Optical network local side apparatus method of data synchronization.
Above-mentioned technical proposal has the following advantages that or beneficial effect:When multiple optical network port moulds in optical network local side apparatus
When block starts, multiple optical network port modules configuration number file can be defeated by optical network port mould by optical network local side apparatus simultaneously
Block, optical network port module almost simultaneously complete its configuration process, therefore fundamentally solve configuration file send slowly and
The problem of configuration process is slow, accelerate linear velocity on device of optical network unit.
For a person skilled in the art, after reading described above, various changes and modifications undoubtedly will be evident.
Therefore, appended claims should regard whole variations and modifications of the true intention and scope that cover the present invention as.Weighing
Any and all scope and content of equal value, are all considered as still belonging to the intent and scope of the invention in the range of sharp claim.