The method and system that a kind of ONU equipment is registered automatically
Technical field
The present invention relates to communication technical field, more particularly to the method and system that a kind of ONU equipment is registered automatically.
Background technology
With the Change and Development of information age, real-time voice Video chat, super clear audio-visual video request program, big file-sharing are passed
The business such as defeated, all bandwidth and stability to internet are proposed higher requirement.Traditional copper cable transmission technology without
Method meets the growing demand in internet, the substitute is optical fiber transmission technique.
PON (Passive Optical Network, EPON) as optical fiber technology of new generation broadband solution party
Case is widely used.The main OLT's (optical line terminal), ODN (light distributor) and user side by network side of PON system structure
ONU (optical network unit) is constituted, and the business such as IP data, voice, video is located at OLT, using broadcast mode, is assigned to by ODN
All ONU units, ONU units filter and received business number according to ONUID (the ONU identifiers that ONU is distributed when registering by OLT)
According to.
For the security of network, illegal ONU access is prevented, it is necessary to first complete to note to OLT before ONU energy uses
Volume.OLT registrations ONU traditional approach is that after ONU reaches the standard grade, OLT is by having found that agreement obtains ONU sequence number, by administrative staff
ONU sequence number and ONUID is added on OLT registration database manually to complete registration process.
Traditional logon mode has obvious defect:When ONU breaks down or needs to update and replace ONU equipment
When, it is necessary to administrative staff carry out the renewal of registration database on OLT, when there is substantial amounts of ONU equipment to need replacement, exist with
Lower problem:
1st, administrative staff easily delete still online ONU sequence number, caused by mistake in manually operated renewal registration database
ONU networks can not work, and the maintenance work of database is difficult.
2nd, it is necessary to which logging on each OLT one by one is updated operation when the ONU replaced is distributed under different OLT, operation
It is cumbersome.
When the 3rd, distributing ONU ID attributes to each equipment, manual assignment easily duplicates the situation of distribution, causes ONU to note
Volume failure, operability is poor.
The content of the invention
It is an object of the invention to provide the method and system that a kind of ONU equipment is registered automatically, conventional Registration mode is solved
The big technical problem of operational poor, maintenance workload.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention provides a kind of ONU equipment and registered automatically
Method, methods described includes:
Receive the registration request that the ONU equipment is sent using login name to registrar;On the registrar
Provided with registration list of file names;The registration list of file names is stored with the corresponding login names of registered ONU and its related information.
Parse the registration request and obtain login name;
Judge to whether there is the login name in the registration list of file names;
If it is not, sending the information of registration failure to the ONU equipment;
If so, login state of the login name in the registration list of file names is inquired about, if the registration of the ONU equipment please
The login name asked is in the register list, and the login state of the login name is unregistered state, then to the ONU
Equipment sends the information that succeeds in registration, and sends the ONU equipment attribute of the ONU equipment to ONU equipment.
Another technical scheme of the present invention is provides the system that a kind of ONU equipment is registered automatically, and the system includes receiving
Module, acquisition module, judge Registering modules and sending module;
Receiving module, for receiving the registration request that ONU equipment is sent using login name to registrar;The registration
Server is provided with registration list of file names;The registration list of file names is stored with the corresponding login names of registered ONU and its related information.
Acquisition module, for parsing the registration request and obtaining login name;
Registering modules are judged, for judging to whether there is the login name in the registration list of file names;If it is not, to described
ONU equipment sends the information of registration failure;If so, login state of the login name in the registration list of file names is inquired about, if
Login name in the registration request of the ONU equipment is in the register list, and the login state of the login name is not
Login state, then send the information succeeded in registration to the ONU equipment;
Sending module, for after judging that Registering modules send the information succeeded in registration to the ONU equipment, sending described
The ONU equipment attribute of ONU equipment is to ONU equipment.
Beneficial effect of the present invention:The method and system that the ONU equipment of the present invention is registered automatically, provided with registration list of file names, are adopted
The relevant information of the authentication registration of equipment is managed collectively with Accreditation System, administrative staff only need to be grasped in same system
Make, easy to operate, administrative staff only need to search unregistered shape from the registration list of file names in management system when replacing ONU equipment
The login name of state, is used as the login name of new equipment, it is not necessary to continually update registration database, and maintenance work is simple.Solution
The problem of traditional ONU equipment logon mode of having determined is cumbersome, operational poor, maintenance work is difficult.
Brief description of the drawings
Fig. 1 is the structured flowchart of system registered automatically of ONU equipment of the specific embodiment of the invention;
Fig. 2 is the flow chart of method registered automatically of ONU equipment of the embodiment of the specific embodiment of the invention;
Label declaration:
1st, receiving module;2nd, acquisition module;3rd, Registering modules are judged;4th, sending module.
Embodiment
To describe technology contents, the objects and the effects of the present invention in detail, below in conjunction with embodiment and coordinate attached
Figure is explained.
The design of most critical of the present invention is:Registration to ONU equipment is managed collectively, and administrative staff are only needed to same
Operated in one system, it is easy to operate.
One embodiment of the present of invention is provides a kind of method that ONU equipment is registered automatically, and methods described includes:
Receive the registration request that the ONU equipment is sent using login name to registrar;On the registrar
Provided with registration list of file names;The registration list of file names is stored with the corresponding login names of registered ONU and its related information.
Parse the registration request and obtain login name;
Judge to whether there is the login name in the registration list of file names;
If it is not, sending the information of registration failure to the ONU equipment;
If so, login state of the login name in the registration list of file names is inquired about, if the registration of the ONU equipment please
The login name asked is in the register list, and the login state of the login name is unregistered state, then to the ONU
Equipment sends the information that succeeds in registration, and sends the ONU equipment attribute of the ONU equipment to ONU equipment.
From upper description, registration of the method that above-mentioned ONU equipment is registered automatically to ONU equipment is managed collectively, pipe
Reason personnel only need to be operated in same system, easy to operate, are only needed to during administrative staff's replacement equipment from management system
The login name of unregistered state is searched in registration list of file names on system, the login name of new equipment is used as, it is not necessary to continually
Registration database is updated, maintenance work is simple.Solve traditional ONU equipment logon mode it is cumbersome, it is operational it is poor, safeguard work
The problem of feeling embarrassed.
Further, the method that above-mentioned ONU equipment is registered automatically also includes:A contention mode is preset, it is described to seize
Pattern is set to seize or can not seized;
The step:If also including after " login name in the registration request of the ONU equipment is in the register list "
Step:If the login state of login name when being registered state, and default contention mode is when can seize, to
The ONU equipment sends the information succeeded in registration;Default contention mode is when can not seize, to send and note to the ONU equipment
The information of volume failure.The contention mode is set to global schema or stand-alone mode, and the global schema is to the register list
All come into force;The stand-alone mode comes into force to the part of the register list.
From upper description, the method that above-mentioned ONU equipment is registered automatically has been opened after contention mode, user only needs to
The login name of used equipment is used on new equipment, you can realize registration and the network opening of new equipment, it is not necessary to administrative staff's
Intervention.Registration database need not be continually updated, maintenance work is simple.
Further, in the method that above-mentioned ONU equipment is registered automatically, the ONU equipment send the registration request it
Before, the login name is configured by administrative staff in the ONU equipment, and one or more is set in the ONU equipment
The login name.Multiple login names are included in one registration request of the ONU equipment.
Further, in the method that above-mentioned ONU equipment is registered automatically, the step:" send and note to the ONU equipment
Also include after the successful information of volume ":The login name of the ONU equipment is updated in the login state registered in list of file names as
Login state;When the ONU equipment is offline, registration shape of the login name of the ONU equipment in the registration list of file names is updated
State is unregistered state.
Further, in the method that above-mentioned ONU equipment is registered automatically, when the ONU equipment is offline, by predetermined period
Afterwards, the login name of the ONU equipment is updated in the login state registered in list of file names as unregistered state.
From upper description, in the method that above-mentioned ONU equipment is registered automatically, the authentication state for the login name that upgrades in time and week
Phase (time interval can be set) reclaim unused login name automatically, improve the service efficiency of login name.
Further, in the method that above-mentioned ONU equipment is registered automatically, the allocation model of ONU equipment attribute is preset, it is described
Allocation model is set to duplicate allocation pattern or unique allocation model;
The duplicate allocation pattern is:The ONU equipment can be assigned to device attribute described in identical;
Unique allocation model is:The ONU equipment can not be assigned to device attribute described in identical;
From upper description, in the method that above-mentioned ONU equipment is registered automatically, unique allocation model is set, and Accreditation System is certainly
It is dynamic to search and distributing equipment attribute, be not in the situation of duplicate allocation.
Referring to Fig. 1, the present invention also provides the system that a kind of ONU equipment is registered automatically, the system includes receiving module
1st, acquisition module 2, judge Registering modules 3 and sending module 4;
Receiving module 1, for receiving the registration request that ONU equipment is sent using login name to registrar;The note
Volume server is provided with registration list of file names;It is described registration list of file names be stored with the corresponding login names of registered ONU and its association letter
Breath.
Acquisition module 2, for parsing the registration request and obtaining login name;
Registering modules 3 are judged, for judging to whether there is the login name in the registration list of file names;If it is not, to described
ONU equipment sends the information of registration failure;If so, login state of the login name in the registration list of file names is inquired about, if
Login name in the registration request of the ONU equipment is in the register list, and the login state of the login name is not
Login state, then send the information succeeded in registration to the ONU equipment;
Sending module 4, for after judging that Registering modules send the information succeeded in registration to the ONU equipment, sending institute
The ONU equipment attribute of ONU equipment is stated to ONU equipment.
Further, the system that above-mentioned ONU equipment is registered automatically also includes presetting module and seizes module;
Presetting module, for presetting a contention mode, the contention mode is set to seize or can not seized;
Module is seized, for when the login state of the login name is registered state, and default mould is seized
Formula is that when can seize, the information succeeded in registration is sent to the ONU equipment;Default contention mode is when can not seize, to institute
State the information that ONU equipment sends registration failure.
Embodiment 1
Referring to Fig. 2, the flow chart of its method registered automatically for a kind of ONU equipment of the present embodiment, the present embodiment side
Method includes:
Step 101:ONU equipment (lower summary is equipment) is reached the standard grade, and sends registration request.
Step 102:Obtain the login name in registration request.
Step 103:Judge to whether there is the login name in registration list of file names.If not, representing the login name right and wrong of request
Method, registration failure enters step 107;If it is, representing that the login name of request is legal, make further into step 104
Judge.
Step 104:Whether the login name of decision request is already allocated to other equipment.If not, representing request registration
Name can be distributed, and be succeeded in registration into step 106;If it is, representing that the login name of the request is registered by other equipment, enter
Step 105 makees further judgement.
Step 105:Determine whether to enable contention mode.Open after contention mode, if the request registration of current device
Name is registered by other equipment, then nullifies other equipment, is registered current device, is succeeded in registration and carry out into step 106;Otherwise note
Volume unsuccessfully carries out step 107.
The application scenarios of the present embodiment can be:One user needs the office more renewed, and new office
Deployed to have got well ONU new equipments, if user needs to use network in new office, former way is, otherwise user
Need the used equipment for the login name that is stored with to take newly-set-up public domain point to and reconnected and connected up, otherwise need to notify backstage
Administrative staff are that new equipment distributes new login name.After contention mode has been opened, user only needs to use on new equipment
The login name of used equipment, you can realize registration and the network opening of new equipment, it is not necessary to the intervention of administrative staff.
Step 107:Registration failure, terminates.
Step 108:Optionally, the ONU equipment distributing equipment attribute to succeed in registration.
In the present embodiment, device attribute includes distributing to the configuration informations such as IP, the port vlan of equipment of equipment.Its
In, before equipment is reached the standard grade, in addition to:Administrative staff have preset registration list of file names, and registration list of file names can pass through random or order
Mode carry out batch it is open-minded;Administrative staff set one or more login name on each device.
In the present embodiment, the strategy of login name certification is managed, can be contention mode or non-preemption pattern.
Wherein, contention mode also includes:All login names in registration list of file names are come into force by global schema;Stand-alone mode, to login name
Part login name in list comes into force.
In the present embodiment, registration list of file names can be managed renewal;Update login name authentication state and periodically (when
Between be spaced it is settable) reclaim unused login name automatically.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalents that bright specification and accompanying drawing content are made, or the technical field of correlation is directly or indirectly used in, similarly include
In the scope of patent protection of the present invention.