Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of test macro and method of Fiber Node, for solving the incomplete problem of test of the node device (ONU and OLT) of optical fiber link in prior art.
For achieving the above object and other relevant objects, the invention provides a kind of test macro of Fiber Node, comprise: at least one road optical fiber link to be tested, wherein, optical fiber link described in every road comprises the node being positioned at optical fiber link two ends and the optical fiber being connected node described in two; Be positioned at the jamming equipment of node described at least one, for applying environmental interference based on obtained interference parameter to described optical fiber link to be tested; The testing equipment be all connected with described jamming equipment, each described node, for sending described interference parameter according to the environmental interference strategy preset to described jamming equipment, and at the data packet number that described jamming equipment run duration is added up each node transmission in described optical fiber link two ends and received, and the comparison result of the data packet number sending based on each node and receive, each described node is tested.
Preferably, described jamming equipment comprises: noise signal generating means, for applying noise jamming based on the noise parameter in obtained interference parameter to described optical fiber link; Light emitting devices, for applying light interference based on the light interference parameter in obtained interference parameter to described optical fiber link.
Preferably, described testing equipment comprises: control device, for sending the interference parameter comprising noise parameter and/or light interference parameter to described jamming equipment based on the obtained environmental interference strategy comprising noise parameter and/or light interference parameter and regulative mode; The quantity statistics device be all connected with the node at the optical fiber link two ends of current test, for adding up the data packet number that in preset duration, each node sends and receives, and the data packet number sending based on each node and receive tests the packet loss corresponding to interference parameter that described control device exports, and based on the anti-interference of described packet loss determination respective nodes.
Preferably, the node at described optical fiber link two ends is respectively OLT and ONU.
Preferably, described jamming equipment is positioned at described ONU side.
Preferably, when optical fiber link to be tested is many, each described optical fiber link common node is OLT, and described test macro also comprises: the optical splitter be connected with described OLT, and the node ONU of each optical fiber link other end to be tested connects OLT by described optical splitter.
Preferably, described testing equipment connects each node in all optical fiber links to be tested.
Based on above-mentioned purpose, the present invention also provides a kind of method of testing of Fiber Node, comprising: apply environmental interference according to the environmental interference strategy preset to optical fiber link to be tested; During environmental interference, add up the data packet number that each node in described optical fiber link two ends sends and receives, and the comparison result of the data packet number sending based on each node and receive, each described node is tested.
Preferably, the data packet number that each node in described statistics optical fiber link two ends sends and receives, and the comparison result of the data packet number sending based on each node and receive, the mode that each described node is tested is comprised: the data packet number that in statistics preset duration, each node sends and receives, and the data packet number sending based on each node and receive tests the packet loss corresponding to described interference parameter, and based on the anti-interference of described packet loss determination respective nodes.
As mentioned above, the test macro of Fiber Node of the present invention and method, there is following beneficial effect: by applying interference to optical fiber link, and the interference rejection ability of test each node in an interference situation, on the one hand can the network transmission performance of test node product, can also improve node product based on test result on the other hand; In addition, especially for noise and ambient light to the interference of optical fiber link, the vulnerability to jamming of node product can accurately be recorded; Further, described test macro can test multiple ONU and shared OLT thereof simultaneously, effectively improves testing efficiency.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, the invention provides a kind of test macro of Fiber Node.Described test macro comprises: at least one road optical fiber link, jamming equipment, testing equipment to be tested.
Described optical fiber link comprises the node 11 being positioned at optical fiber link two ends and the optical fiber being connected node 11 described in two.Wherein, the node 11 at optical fiber two ends is respectively OLT and ONU.The length of described optical fiber is exemplified as 20km.Wherein, OLT can adopt the descending light of 1490nm wavelength to send packet, and ONU can adopt the up light of 1310nm wavelength to send packet.
Described jamming equipment 12 can be arranged on ONU side, also can be arranged on OLT side.Described jamming equipment 12 is for applying environmental interference based on obtained interference parameter to described optical fiber link to be tested.
Said interference parameter includes but not limited to: light interference parameter, noise parameter etc.
Wherein, described jamming equipment 12 comprises: noise signal generating means and light emitting devices.
Described noise signal generating means is used for applying noise jamming based on the noise parameter in obtained interference parameter to described optical fiber link.
Particularly, the interference parameter obtained comprises: white Gaussian noise interference type and interference power, then described noise signal generating means applies white Gaussian noise according to described interference power to described optical fiber link.
Described light emitting devices is used for applying light interference based on the light interference parameter in obtained interference parameter to described optical fiber link.
Particularly, the interference parameter obtained comprises: light intensity parameter, light emission angle etc., and described light emitting devices applies light interference according to described interference parameter to described optical fiber link.
Described testing apparatus is all connected with described jamming equipment 12, each described node 11, for sending described interference parameter according to the environmental interference strategy preset to described jamming equipment 12, and add up at described jamming equipment 12 run duration the data packet number that each node 11 in described optical fiber link two ends sends and receive, and the comparison result of the data packet number sending and receive based on each node 11, each described node 11 is tested.
At this, described environmental interference strategy includes but not limited to: 1) only indicate noise signal generating means adjustment noise parameter; 2) only pilot light emitter adjusts light interference parameter; 3) indicate noise signal generating means and light emitting devices to adjust respective interference parameter simultaneously.Wherein, the adjusting range of described noise parameter can be established with reference to the interval of noise parameter in actual fiber link.The adjusting range of described smooth interference parameter also can be established with reference to the interval of light interference parameter in actual fiber link.
Adjustment mode is also comprised in described environmental interference strategy.Such as, described testing equipment 13 is preset in dull adjustment interference parameter step by step in interference parameter adjusting range, and under the interference parameter of every grade, add up the data packet number that each node 11 in preset duration sends and receive, and test the packet loss corresponding to interference parameter of every grade based on the data packet number that each node 11 sends and receives, and based on the anti-interference of described packet loss determination respective nodes 11.
At this, described testing equipment 13 comprises: control device and quantity statistics device.
Described control device is used for sending based on the obtained environmental interference strategy comprising noise parameter and/or light interference parameter and regulative mode the interference parameter comprising noise parameter and/or light interference parameter to described jamming equipment 12.
Particularly, described control device can comprise display screen and man-machine interaction assembly (as mouse, keyboard etc.), user comprises the environmental interference strategy of interference parameter and regulative mode by the input of man-machine interaction assembly, then described control device obtains corresponding environmental interference strategy, and sends corresponding interference parameter to described jamming equipment 12.
Described quantity statistics device is all connected with the node 11 at the optical fiber link two ends of current test, for adding up the data packet number that in preset duration, each node 11 sends and receives, and test the packet loss corresponding to interference parameter that described control device exports based on the data packet number that each node 11 sends and receives, and based on the anti-interference of described packet loss determination respective nodes 11.
Such as, when in described quantity statistics device statistics preset duration, described jamming equipment 12 disturbs optical fiber link according to every grade of interference parameter, the data packet number that OLT and ONU at optical fiber two ends sends separately and receive.And the data packet number that OLT sends by described quantity statistics device respectively and the data packet number that ONU receives are compared, the data packet number that the data packet number send ONU and OLT receive is compared, and determines the packet loss of OLT and ONU correspondence when prime interference parameter based on each comparison result.When correspondence is greater than default packet loss threshold value when the packet loss of prime interference parameter, according to the grade of current interference parameter, described quantity statistics device determines that whether the anti-interference of corresponding OLT or ONU is qualified.Wherein, be inversely proportional between grade and default packet loss threshold value.
As a kind of optimal way, as shown in Figure 2, optical fiber link to be tested is many and each described optical fiber link common node 11 is OLT.Described test macro also comprises: the optical splitter be connected with described OLT, and the node 11ONU of each optical fiber link other end to be tested connects OLT by described optical splitter.Such as, described optical splitter is 64 points, then same OLT is connected by optical fiber with 64 ONU.So, for the ease of test, described jamming equipment 12 is positioned at described OLT side.Described testing equipment 13 connects each node 11 in all optical fiber links to be tested.The test mode of described testing equipment 13, detailed earlier herein, does not repeat them here.
As shown in Figure 3, the present invention also provides a kind of method of testing of Fiber Node.Described method of testing performs primarily of aforementioned test macro.
In step sl, described test macro applies environmental interference according to the environmental interference strategy preset to optical fiber link to be tested.
At this, described environmental interference strategy includes but not limited to: 1) only indicate noise signal generating means adjustment noise parameter; 2) only pilot light emitter adjusts light interference parameter; 3) indicate noise signal generating means and light emitting devices to adjust respective interference parameter simultaneously.Wherein, the adjusting range of described noise parameter can be established with reference to the interval of noise parameter in actual fiber link.The adjusting range of described smooth interference parameter also can be established with reference to the interval of light interference parameter in actual fiber link.
Adjustment mode is also comprised in described environmental interference strategy.Such as, described test macro is preset in dull adjustment interference parameter step by step in interference parameter adjusting range, and wherein, every grade of interference parameter maintains preset duration.
At this, described interference parameter includes but not limited to: light interference parameter, noise parameter etc.
Particularly, described test macro applies noise jamming based on the noise parameter in interference parameter to described optical fiber link.
Such as, described interference parameter comprises: white Gaussian noise interference type and interference power, then described test macro applies white Gaussian noise according to described interference power to described optical fiber link.
In addition, described test macro applies light interference based on the light interference parameter in described interference parameter to described optical fiber link.
Such as, described interference parameter comprises: light intensity parameter, light emission angle etc., and described test macro applies light interference according to described interference parameter to described optical fiber link.
In step s 2, described test macro, during environmental interference, adds up the data packet number that each node in described optical fiber link two ends sends and receives, and the comparison result of the data packet number sending based on each node and receive, each described node is tested.
In the present embodiment, the data packet number that in described test macro statistics preset duration, each node sends and receives, and the data packet number sending based on each node and receive tests the packet loss corresponding to described interference parameter, and based on the anti-interference of described packet loss determination respective nodes.
Again specifically, described test macro is under every grade of interference parameter, the data packet number that each node in statistics preset duration sends and receives, and the data packet number sending based on each node and receive tests the packet loss corresponding to interference parameter of every grade, and based on the anti-interference of described packet loss determination respective nodes.
Such as, when in described test macro statistics preset duration, described jamming equipment disturbs optical fiber link according to every grade of interference parameter, the data packet number that OLT and ONU at optical fiber two ends sends separately and receive.And the data packet number that OLT sends by described quantity statistics device respectively and the data packet number that ONU receives are compared, the data packet number that the data packet number send ONU and OLT receive is compared, and determines the packet loss of OLT and ONU correspondence when prime interference parameter based on each comparison result.When correspondence is greater than default packet loss threshold value when the packet loss of prime interference parameter, according to the grade of current interference parameter, described quantity statistics device determines that whether the anti-interference of corresponding OLT or ONU is qualified.Wherein, be inversely proportional between grade and default packet loss threshold value.
It should be noted that, described test macro can also test many optical fiber links according to above-mentioned steps, its test mode and abovementioned steps same or similar, be not described in detail in this.
In sum, the present invention, by applying interference to optical fiber link, and the interference rejection ability of test each node in an interference situation, on the one hand can test node product whether qualified, can also improve node product based on test result on the other hand; In addition, especially for noise and ambient light to the interference of optical fiber link, the vulnerability to jamming of node product can accurately be recorded; Further, described test macro can test multiple ONU and shared OLT thereof simultaneously, effectively improves testing efficiency.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.