A kind of method for obtaining access device performance, device and equipment
Technical field
The present invention relates to the communications field, more particularly to a kind of method for obtaining access device performance, device and equipment.
Background technology
During data communication, data need to get to data destination through access device.So-called access sets
Standby is the hardware interface for providing the service of sending and receiving for data.To ensure the reliability of access device and the requirement of accuracy,
Pay much attention to that access device is carried out to detect this link in each manufacture commercial city.However, that what is faced due to access device is user
Quantity is big, the actual working environment that volume of transmitted data is high, the working environment is simulated in the lab more difficult.
Under normal circumstances, following two modes are mainly taken to simulate the actual working environment of access device:
One is realized by hardware, really access device will be accessed after access terminal ECDC removing the work office, so as to dock
Entering equipment carries out various tests.The quantity of real access terminal is the ultimate load of access device.
Two are realized by software, i.e., access device simulates the access signal of access terminal, and the signal is processed,
So as to test the parameters of access device.
At least there is following technical problem in the prior art:
1st, access device, high cost, complex operation, poor universality are tested by real access terminal;
2nd, the working environment of access device is simulated by software, because whole simulation process all occurs in access device
Portion, without real data transfer, so the parameters test of access device is inaccurate, can not test when access device and
There is parameter related to the data during data exchange in the external world.
The content of the invention
One embodiment of the present of invention provides a kind of method for obtaining access device performance, device and equipment, solves test
During access device, the true use environment of access device is difficult to the technical problem simulated under lab.
To reach above-mentioned purpose, embodiments of the invention provide following technical scheme:
A kind of first aspect, there is provided method of acquisition access device performance, including:
Test terminal is connected to into a user-side port of access device, the access device is controlled according to the test
The identification information of terminal generates simulation address information;
The test terminal is disconnected from the user-side port, the access device is controlled and is kept the user side
Port is presence;
Successively the offline user side ports in the access device perform above-mentioned steps so that on the access device
One simulation address information of each user-side port correspondence;
The user-side port of a setting is selected from the access device, the user-side port correspondence of the setting is deleted
Simulation address information, the test terminal is connected to into the user-side port of the setting;
Flow is produced so as to obtain the performance parameter of the access device by the test terminal.
With reference in a first aspect, in the first possible implementation of first aspect, the user-side port is physics
Port or logic port.
With reference in a first aspect, in second possible implementation of first aspect, the control access device
Simulation address information is generated according to the identification information of the test terminal to specifically include:
The access device is controlled by command line interface and generates simulation address letter according to the identification information of the test terminal
Breath.
With reference to first aspect and second possible implementation of first aspect, in the third possible implementation
In, the control access device generates simulation address information and specifically includes according to the identification information of the test terminal:
Control the access device and mould is generated according to the identification information of the test terminal and the port-mark for being connected
Intend address information.
It is described so that each user's side with reference in a first aspect, in the 4th kind of possible implementation of first aspect
Also include after one simulation address information of mouth correspondence:
Control the access device to obtain from dynamic configuration control protocol Dynamic Host Configuration Protocol server using the simulation address information for obtaining
Take IP address;And
Control the access device and configuration file is obtained from configuration server according to the IP address for obtaining.
With reference to first aspect and first aspect the first to the 4th kind of possible implementation, in the 5th kind of possible reality
In existing mode, the identification information of the test terminal includes one or many in the MAC Address and serial number of the test terminal
It is individual.
With reference to first aspect and first aspect the first to the 4th kind of possible implementation, in the 6th kind of possible reality
In existing mode, the performance parameter includes:One or more in stability, specification and capacity.
A kind of second aspect, there is provided performance testing device of access device, including:
Test terminal administrative unit, for test terminal to be connected to the user-side port of access device;
Access device administrative unit, during for the user-side port that access device is connected to when the test terminal, control
The access device generates simulation address information according to the identification information of the test terminal;And the control access device exists
When the test terminal disconnects with the user-side port, the user-side port is set to keep presence;
Control unit, for controlling the offline user side that the test terminal administrative unit is sequentially connected the access device
Port, the user-side port of a setting is selected from the access device, and controlling the access device administrative unit will be described
Test terminal is connected to the user-side port of the setting;
Performance acquiring unit, flow is produced so as to the performance for obtaining the access device is joined for controlling the test terminal
Number.
With reference to second aspect, in the first possible implementation of second aspect, the access device administrative unit
It is additionally operable to control the access device using the simulation address information for obtaining from the acquisition of dynamic configuration control protocol Dynamic Host Configuration Protocol server
IP address;And the access device is controlled according to the IP address for obtaining from configuration server acquisition configuration file.
A kind of third aspect, there is provided access device performance test apparatus, including:
Port Management unit, for being connected on access device the user-side port in off-line state when test terminal
When, control the access device and simulation address information is generated according to the identification information of the test terminal;And in test terminal
When disconnecting with the user-side port, the user-side port is set to keep presence;
Test information management unit, for being connected on access device the user's side in presence when test terminal
During mouth, the corresponding simulation address information of user-side port of the presence is deleted;
Performance acquiring unit, produces flow, so as to obtain the performance parameter of the access device for controlling test terminal.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the method for obtaining access device performance in the embodiment of the present invention 1;
Fig. 2 is the online off-line state schematic diagram in access device port in the embodiment of the present invention 1;
Fig. 3 is the flow chart of another kind of method for obtaining access device performance in the embodiment of the present invention 2;
Fig. 4 is a kind of block diagram of the device for obtaining access device performance in the embodiment of the present invention 3;
Fig. 5 is the block diagram of another kind of device for obtaining access device performance in the embodiment of the present invention 3;
Fig. 6 is a kind of block diagram of the equipment for obtaining access device performance in the embodiment of the present invention 3.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Embodiment 1:
One embodiment of the present of invention provides a kind of method for obtaining access device performance, as shown in figure 1, the method includes
Following steps:
The 101st, test terminal is connected to a user-side port of access device, the access device is controlled according to described
The identification information of test terminal generates simulation address information.
Access device can be that DSLAM (use by Digital Subscriber Line Access Multiplexer, numeral
Family line access multiplexer), it is provided with multiple physical User side ports.
Access device can also be OLT (Optical Line Terminal, optical line terminal), be provided with least one
Based on the user-side port of PON (Passive Optical Network, EPON), the user-side port can be arranged
Multiple logic ports.
In operation, can use a test terminal, once connect a user-side port, it is also possible to make
With one group of test terminal, once connect multiple user-side ports, in the examples below will be with using a test terminal citing.
Test terminal in the present embodiment can be ONU (Optical Network Unit, optical network unit) or ONT
(Optical Network Terminal, ONT Optical Network Terminal), can also be DSL terminal units etc..
The identification information of test terminal can be MAC (Media Access Control, the media interviews control of test terminal
System) address and test terminal SN (Serial Number, series number) in one or more.Will be with mark in following examples
Knowledge information is to illustrate as a example by MAC Address.
In the present embodiment, the user-side port of access device is consecutively connected to using a test terminal, when will test
Terminal from a user-side port disconnect when, need to arrange this user-side port and keep online, the user is simulated with this
Side ports are connected with terminal unit.When test terminal is connected to a user-side port, access device can obtain test terminal
Identification information, a simulation address information, so, the different mould of each user-side port correspondence are generated according to the rule of setting
Intend address information.
102nd, the test terminal is disconnected from the user-side port, controls the access device and keep the use
Family side ports are presence.
103rd, successively the access device offline user side ports perform above-mentioned steps so that the access sets
Standby upper one simulation address information of each user-side port correspondence.
After performing above-mentioned steps 101-102 in all offline user side ports of access device, such effect is just produced
Really:Even if test terminal disconnects the connection with user-side port, access device still believes that the user-side port in connection shape
State.When test terminal is sequentially inserted into different user-side ports, different MAC Address can be produced, therefore can be simply used same
One or one group of terminal unit are by the port of access device user side all in upper line states.The purpose of step 103 be make it is to be measured
Examination access device thinks all of the port all in the connection with access terminal.As shown in Fig. 2 performing on port 1, port 2
After above-mentioned steps, the port 2 of port 1 is still in presence.
104th, the user-side port of a setting is selected from the access device, the user-side port of the setting is deleted
Corresponding simulation address information, by the test terminal user-side port of the setting is connected to.
105th, flow is produced so as to obtain the performance parameter of the access device by the test terminal.
Test terminal is connected to after the user-side port of setting, by test terminal analog subscriber online action, so as to
Flow is produced, because the user-side port of now access device is all in presence, the flow of generation can be to access device structure
Into impact, such that it is able to obtain the performance parameter of access, such as stability, specification, capacity etc..
It is real so as to reduce cost by such scheme, on the one hand, avoid being accessed using substantial amounts of access terminal
Easy to operateization is showed, versatility is higher;On the other hand, there is real data exchange in access device and the external world, improves and obtains
The accuracy of the access equipment parameter for taking.
Embodiment 2
One embodiment of the present of invention provides a kind of method for obtaining access device performance, as shown in figure 3, the method includes
Following steps:
The 201st, test terminal is connected to a user-side port of access device.
It should be noted that it can also be logical end that the user-side port mentioned in step 201 both can be physical port
Mouthful.When access device is DSLAM, user-side port is physical port;When access device is OLT, user-side port is to patrol
Collect port.
202nd, the access device is controlled according to the identification information of the test terminal by command line interface and is connected
The port-mark for connecing generates simulation address information.
It should be noted that in the present embodiment can when test terminal to be connected to the user-side port of access device,
Access device is controlled by order line simulation is generated according to the identification information of the test terminal and the port-mark for being connected
Address information, can also be and according to the identification information of test terminal and connected by order line opening before starting to test
Port-mark generate simulation address information this function, so when test terminal is connected to some user-side port, connect
Entering equipment can obtain the identification information of test equipment automatically by the user-side port, according to the identification information of test terminal and
The port-mark for being connected generates simulation address information.
Identification information in the present embodiment can be in the MAC Address of test terminal and the SN of test terminal or many
It is individual.
The simulation address information of generation can be the port of the identification information of test terminal and the user-side port for being connected
The combination of mark, port-mark can be the combination of one or more in the port numbers of user-side port, frame position, groove position.
Now illustrate the generating process of simulation address information:After access device is accessed in test terminal, obtain connect first
Enter the MAC Address of terminal.If the MAC Address of test terminal is 0023-C000-03D0, then a section in this address is changed to
One constant inserts the number of slot plus access terminal, if constant is FD, slot number is 02, then it is modified after, access
The MAC Address of terminal A is changed into 0023-FD02-03D0.0023-FD02-03D0 as simulates address information.
203rd, the access device is controlled using the simulation address information for obtaining from DHCP (Dynamic
HostConfiguration Protocol, dynamic configuration control protocol) server acquisition IP address.
204th, control the access device and configuration file is obtained from configuration server according to the IP address for obtaining.
205th, the test terminal is disconnected from the user-side port, controls the access device and keep the use
Family side ports are presence.
206th, successively the access device offline user side ports perform above-mentioned steps so that the access sets
Standby upper one simulation address information of each user-side port correspondence.
207th, the user-side port of a setting is selected from the access device, the user-side port of the setting is deleted
Corresponding simulation address information, by the test terminal user-side port of the setting is connected to.
208th, flow is produced so as to obtain the performance parameter of the access device by the test terminal.
Can also be after step 206 is performed, to control access device using the simulation address letter for generating in the present embodiment
Breath is unified to obtain IP address from Dynamic Host Configuration Protocol server, and obtains configuration text from configuration server according to the IP address unification for obtaining
Part.
Generally, the access device performance parameter of acquisition includes:The stability of access device, i.e., in operation whether
It is stable;The ultimate value of the specification of access device, i.e. number of access terminals;The capacity of access device, i.e., normally transport in access device
In the case of row, the ultimate value of transmitted data amount in access device.
It is real so as to reduce cost by such scheme, on the one hand, avoid being accessed using substantial amounts of access terminal
Easy to operateization is showed, versatility is higher;On the other hand, there is real data exchange in access device and the external world, improves and obtains
The accuracy of the access equipment parameter for taking.
Embodiment 3
One embodiment of the present of invention provides a kind of device for obtaining access device performance, as shown in figure 4, the device bag
Include:Test terminal administrative unit 31, access device administrative unit 32, control unit 33, performance acquiring unit 34;Wherein:
Test terminal administrative unit 31, for test terminal to be connected to the user-side port of access device.
Access device administrative unit 32, during for the user-side port that access device is connected to when the test terminal, control
Make the access device and simulation address information is generated according to the identification information of the test terminal;And the control access device
When the test terminal disconnects with the user-side port, the user-side port is set to keep presence.
Wherein, the identification information in the present embodiment can be one or more in the MAC Address and SN of test terminal.
Control unit 33, for controlling the offline user that the test terminal administrative unit is sequentially connected the access device
Side ports, the user-side port of a setting is selected from the access device, controls the access device administrative unit by institute
State the user-side port that test terminal is connected to the setting.
Control unit in the present embodiment can be CPU (Central Processing Unit, CPU)
Deng.
Performance acquiring unit 34, flow is produced so as to obtain the performance of the access device for controlling the test terminal
Parameter.
Further, the access device administrative unit 32 is additionally operable to control the access device using the simulation ground for obtaining
Location information obtains IP address from dynamic configuration control protocol Dynamic Host Configuration Protocol server;And the access device is controlled according to the IP for obtaining
Address obtains configuration file from configuration server.
The equipment that the present embodiment is provided, can be automatically using test terminal to accessing testing equipment, so as to obtain access
The performance parameter of equipment, because the test terminal for being utilized can be less than the user-side port quantity of access device, such that it is able to
Avoid being accessed using substantial amounts of access terminal, so as to reduce cost, realize easy to operateization, versatility is higher;Separately
On the one hand, there is real data exchange in access device and the external world, improve the accuracy of the access equipment parameter of acquisition.
In another embodiment, there is provided it is a kind of obtain access device performance equipment, as shown in figure 5, including
Performance element 41 and CPU42,
Wherein CPU42, is used for:
Test terminal is connected to control performance element 41 user-side port of access device;
When the test terminal is connected to the user-side port of access device, the access device is controlled according to the survey
The identification information of examination terminal generates simulation address information;And the access device is controlled in the test terminal and the user
When side ports are disconnected, the user-side port is set to keep presence;
The offline user side ports that test terminal is sequentially connected the performance element 41 access device are controlled, from institute
The user-side port that a setting is selected on access device is stated, the control performance element is connected to the test terminal described
The user-side port of setting;And
Control the test terminal and produce flow so as to obtain the performance parameter of the access device.
CPU42 in the present embodiment is additionally operable to control access device using the simulation address information for generating from Dynamic Host Configuration Protocol server
IP address is obtained, and configuration file is obtained from configuration server using the IP address for obtaining.
Further, the present embodiment also provides a kind of equipment of acquisition access device performance, it should be noted that the equipment
Both access device can be built in, it is also possible to be connected with access device by physics or logic interfacing, had been connect so as to reach acquisition
Enter the purpose of equipment performance, as shown in fig. 6, including:Port Management unit 51, test information management unit 52, performance obtains single
Unit 53;Wherein:
Port Management unit 51, for being connected on access device the user-side port in off-line state when test terminal
When, control the access device and simulation address information is generated according to the identification information of the test terminal;And in test terminal
When disconnecting with the user-side port, the user-side port is set to keep presence.
Test information management unit 52, for being connected on access device the user side in presence when test terminal
During port, the corresponding simulation address information of user-side port of the presence is deleted.
Performance acquiring unit 53, for controlling test terminal flow is produced, so as to the performance for obtaining the access device is joined
Number.
It is real so as to reduce cost by such scheme, on the one hand, avoid being accessed using substantial amounts of access terminal
Easy to operateization is showed, versatility is higher;On the other hand, there is real data exchange in access device and the external world, improves and obtains
The accuracy of the access equipment parameter for taking.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be borrowed
Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which by hardware, but in many cases the former is more preferably
Embodiment.Based on such understanding, the portion that technical scheme substantially contributes in other words to prior art
Dividing can be embodied in the form of software product, and the software product is stored in the storage medium that can read, such as mobile access
Terminal hard disk or storage card etc., including some instructions are used so that a mobile access terminal equipment (can be personal flat board electricity
Brain, mobile phone etc.) perform method described in each embodiment of the invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, the change or replacement that can be readily occurred in, all should
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be with the scope of the claims
It is accurate.