Summary of the invention
The technical problems to be solved by the present invention are: in view of the problems of the existing technology, a kind of OLT batch is provided and is issued
The detection method and device of ONU configuration.By issuing specified order automatically, after each OLT is restarted, test OLT is to all
Whether the configuration that ONU is issued succeeds, and helps to test.It can efficiently be pressed for the EPON network environment for accessing a large amount of ONU
Power test, the problem for finding to cause business obstructed due to issuing configuration loss early save manpower.
The technical solution adopted by the invention is as follows:
The detection method that a kind of OLT batch issues ONU configuration includes:
Step 1: collect EPON system used in slot number, PON mouthfuls and it is PON mouthfuls each under ONU quantity;Addition
The logic card of OLT;
Step 2: VLAN creation, PON mouthfuls of VLAN, three layers of INTERFACE VLAN and IP configuration are carried out to OLT;Pass through
OLT issues the management IP of each ONU, management VLAN, loop detection, the vlan mode of each uni port and vlan configuration ginseng
Number;
Step 3: test command being issued to OLT by detection terminal, OLT carries out broadcast data to ONU and issues, accordingly
ONU postbacks data to OLT;Whether test configurations process is normal, when ONU configuration process is normal, terminates configuration;Otherwise string is checked
Whether mouth OLT serial ports input is normal.
Further, it further includes executing test to ONU that a kind of OLT batch, which issues the detection method of ONU configuration,;Detailed process
Include:
Step 4: detection terminal is by checking that the log information of OLT judges whether there is the time-out information of some ONU, if it exists
Whether when time-out information, then it is online to search corresponding ONU interface, executes step 5;Otherwise test passes through;
Step 5: when the ONU is online, then assert it is that OLT configuration distributing data have exception, there are packet loss phenomenons, continue
Check that OLT log information time-out information orients specific ONU;Otherwise, the ONU is not online, continues to check OLT log information time-out
Information locating goes out specific ONU.
Further, continue to check that OLT log information time-out information orients specific ONU detailed process in the step 5
It is:
Step 51: the ONU IP address of ping failure is oriented by time-out information;
Step 52: by the keyword " time-out information " in search log information, if not searching, illustrating that OLT is configured
It is issued to the normal of ONU;If searching " time-out information ", using the log information of the time-out information searched as starting point, forward
Log information is searched for, whether inquiry OUN is online;If ONU is online, illustrates the configuration failure that OLT issues ONU, need to OLT
It is analyzed to the configuration failure reason that ONU is issued;If onu is not online, it is abnormal to illustrate that OLT issues not appearance to ONU;
Step 53: step 52 is repeated, until log information is searched for less than time-out information.
The detection device that a kind of OLT batch issues ONU configuration includes:
Information acquisition module, for adding the logic card of OLT;It is collected simultaneously slot number used in EPON system, PON
Mouthful and it is PON mouthfuls each under ONU quantity;And send its information to detection terminal;
OLT configuration module, for carrying out VLAN creation, PON mouthfuls of VLAN, three layers of INTERFACE VLAN and IP to OLT
Configuration;By OLT issue each ONU management IP, management VLAN, loop detection, the vlan mode of each uni port and
Vlan configuration parameter;
Terminal is detected, for issuing test command to OLT by detection terminal, OLT carries out under broadcast data ONU
Hair, corresponding ONU postback data to OLT;Whether test configurations process is normal, when ONU configuration process is normal, terminates configuration;It is no
Then check whether the input of serial ports OLT serial ports is normal.
Further, a kind of detection device that OLT batch issues ONU configuration further includes that detection terminal executes test to ONU;
Detailed process includes:
Terminal is detected by checking that the log information of OLT judges whether there is the time-out information of some ONU, time-out is believed if it exists
Whether when breath, then it is online to search corresponding ONU interface, executes step 5;Otherwise test passes through;
When the ONU is online, then assert it is that OLT configuration distributing data have exception, there are packet loss phenomenon, continue to check
OLT log information time-out information orients specific ONU;Otherwise, the ONU is not online, continues to check OLT log information time-out information
Orient specific ONU.
Further, the detection terminal continues to check that OLT log information time-out information orients specific ONU detailed process
It is:
The ONU IP address of ping failure is oriented by time-out information;Step 51: ping is oriented by time-out information
The ONU IP address of failure;
Illustrate that OLT configuration distributing arrives if not searching by the keyword " time-out information " in search log information
ONU's is normal;If searching " time-out information ", using the log information of the time-out information searched as starting point, day is searched for forward
Whether will information, inquiry OUN are online;If ONU is online, illustrates the configuration failure that OLT issues ONU, need to OLT to ONU
The configuration failure reason issued is analyzed;If onu is not online, it is abnormal to illustrate that OLT issues not appearance to ONU;In repetition
State step, i.e., from the keyword " time-out information " in search log information, check OLT configuration distributing to ONU normally whether just
Often, until log information is searched for less than time-out information.
In conclusion by adopting the above-described technical solution, the beneficial effects of the present invention are:
The configuration issued from OLT to ONU is issued by OAM message, meets CTC specification, so having
Versatility is suitble to any ONU for meeting CTC codes and standards of docking.
Pressure test efficiently can be carried out for the EPON network environment for accessing a large amount of ONU, be found early due to issuing
Configuration loss and the problem for causing business obstructed save manpower.
Specific embodiment
All features disclosed in this specification or disclosed all methods or in the process the step of, in addition to mutually exclusive
Feature and/or step other than, can combine in any way.
Any feature disclosed in this specification unless specifically stated can be equivalent or with similar purpose by other
Alternative features are replaced.That is, unless specifically stated, each feature is an example in a series of equivalent or similar characteristics
?.
OLT is used to connect the terminal device of fiber optic backbone, and function is:
1) Ethernet data is sent with broadcast mode to ONU;
2) position ONU bandwidth allocation, i.e. control ONU send the time in fact of data and send window size.
ONU function introduction:
Selection receives the broadcast data of OLT transmission;
The Ethernet data of user is cached, and is sent in the transmission window of OLT distribution to up direction.
ONU equipment responds the ranging and power control command that OLT is issued, and makees corresponding adjustment.
1, configuration includes three steps: adding the configuration under logic card, OLT configuration and the ONU interface of OLT.Add logic
The purpose of card is to guarantee that subsequent configuration can be issued normally, and script by default adds the logic card of 6 slot positions, can be according to reality
Situation is modified.OLT configuration includes three parts: VLAN creation, PON mouthful VLAN configure, three layers of INTERFACE VLAN with
And IP configuration.The configuration of ONU includes the configuration of uni port, loop detection configuration, management VLAN and the configuration for managing IP.Pass through
The correct configuration of three above step, it is ensured that the normal communication between OLT and ONU.It can be by between OLT and ONU
Whether the configuration of ping operation acknowledgement issues success.
2, whether detection configuration issues successful script, and executing process is after restarting OLT every time, to inquire each PON mouthfuls
ONU quantity, respectively from the IP address of each ONU interface of the end OLT ping.Each ping has 11 seconds waiting time.The t present invention
It is not limited to specific embodiment above-mentioned.
Specific implementation process is: firstly the need of slot number, PON mouthfuls and each PON used in collection EPON system
The quantity of ONU under mouthful, and it is filled up to the designated position in script.When execution, need to be connected to the serial ports of OLT by console,
Such as SecureCRT software, and set log record.Using script function load test script, after having finished execution, need to lead to
Log log is crossed to be analyzed.
It completes after executing, opens log journal file." Receive time out. " is searched in log, if there is the printing
Information, then have 2 kinds of possibility: the failure of 1. configuration distributings has packet loss.2. the ONU is not online after restarting OLT.So also needing
After checking that OLT is restarted in this time, whether ONU is normal online.Ping can be oriented by search " Receive time out. " to lose
The ONU IP address lost.IP address format is " a.b.c.d ", and the value that the value of a is fixed as 1, b is slot number, and c is PON slogan, d
It is No. LLID, if the interface ping of IP address 1.1.1.10 fails, then illustrating ONU 1/1:10, there may be problems, search for upwards
Whether " show onu interface olt 1/1 ", the ONU for checking that LLID is 10 are online.If online, illustrate that configuration distributing loses
It loses;If not online, explanation, which is that ONU is offline, to be caused, and being not due to configuration distributing unsuccessfully causes.It repeats the above steps, continues to inquire
?.
The present invention expands to any new feature disclosed in the present specification or any new combination, and any disclosed
The step of new method or process or any new combination.