Summary of the invention
One embodiment of the present of invention provide a kind of method, device and equipment that obtains access device performance, while solving test access device, and the technical problem that the true environment for use of access device is difficult under lab simulate.
For achieving the above object, embodiments of the invention provide following technical scheme:
First aspect, provides a kind of method of obtaining access device performance, comprising:
Test terminal is connected to a user-side port of access device, controls described access device and generate simulation address information according to the identification information of described test terminal;
Described test terminal is disconnected from described user-side port, and controlling described access device, to keep described user-side port be presence;
Thereby carry out above-mentioned steps in the offline user side ports of described access device successively and make the corresponding simulation address information of each user-side port on described access device;
Select the user-side port of a setting from described access device, delete the simulation address information corresponding to user-side port of described setting, described test terminal is connected to the user-side port of described setting;
Thereby obtain the performance parameter of described access device by described test terminal generation flow.
In conjunction with first aspect, in the possible implementation of the first of first aspect, described user-side port is physical port or logic port.
In conjunction with first aspect, in the possible implementation of the second of first aspect, the described access device of described control generates simulation address information according to the identification information of described test terminal and specifically comprises:
Generate simulation address information by access device described in command line interface control according to the identification information of described test terminal.
In conjunction with the possible implementation of the second of first aspect and first aspect, in the third possible implementation, the described access device of described control generates simulation address information according to the identification information of described test terminal and specifically comprises:
Control described access device and generate simulation address information according to the identification information of described test terminal and the port-mark that connects.
In conjunction with first aspect, in the 4th kind of possible implementation of first aspect, described in make also to comprise after the corresponding simulation address information of each user-side port:
Control the simulation address information that described access device utilization obtains and obtain IP address from dynamic-configuration control protocol Dynamic Host Configuration Protocol server; And
Control described access device and obtain configuration file according to the IP address obtaining from configuration server.
In conjunction with four kinds of possible implementations of the first to the of first aspect and first aspect, in the 5th kind of possible implementation, the identification information of described test terminal comprises one or more in the MAC Address of described test terminal and sequence number.
In conjunction with four kinds of possible implementations of the first to the of first aspect and first aspect, in the 6th kind of possible implementation, described performance parameter comprises: one or more in stability, specification and capacity.
Second aspect, provides a kind of performance testing device of access device, comprising:
Test terminal administrative unit, for being connected to test terminal the user-side port of access device;
Access device administrative unit, in the time that described test terminal is connected to the user-side port of access device, controls described access device and generates simulation address information according to the identification information of described test terminal; And control described access device in the time that described test terminal and described user-side port disconnect, make described user-side port remain on line states;
Control unit, for controlling the offline user side ports that described test terminal administrative unit connects described access device successively, select the user-side port of a setting from described access device, control described access device administrative unit described test terminal is connected to the user-side port of described setting;
Performance acquiring unit, thus flow produced and obtain the performance parameter of described access device for controlling described test terminal.
In conjunction with second aspect, in the possible implementation of the first of second aspect, described access device administrative unit is also obtained IP address for controlling the simulation address information that described access device utilization obtains from dynamic-configuration control protocol Dynamic Host Configuration Protocol server; And control described access device and obtain configuration file according to the IP address obtaining from configuration server.
The third aspect, provides a kind of access device performance test apparatus, comprising:
Port Management unit, when be connected on access device the user-side port in off-line state when test terminal, control described access device and generates simulation address information according to the identification information of described test terminal; And in the time that test terminal and described user-side port disconnect, make described user-side port remain on line states;
Test information management unit, when being connected to when test terminal the user-side port that is in line states on access device, the simulation address information corresponding to user-side port of deleting described presence;
Performance acquiring unit, produces flow for controlling test terminal, thereby obtains the performance parameter of described access device.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1:
One embodiment of the present of invention provide a kind of method of obtaining access device performance, and as shown in Figure 1, the method comprises the steps:
101, test terminal is connected to a user-side port of access device, controls described access device and generate simulation address information according to the identification information of described test terminal.
Access device can be DSLAM (Digital Subscriber Line Access Multiplexer, Digital Subscriber Line Access Multiplexer), is provided with multiple physics user-side port.
Access device can be also OLT (Optical Line Terminal, optical line terminal), be provided with at least one user-side port based on PON (Passive Optical Network, EPON), this user-side port can arrange multiple logic ports.
In operating process, can be to use a test terminal, once connect a user-side port, also can use one group of test terminal, once connect multiple user-side port, will be to use a test terminal for example in following examples.
Test terminal in the present embodiment can be ONU (Optical Network Unit, optical network unit) or ONT (Optical Network Terminal, Optical Network Terminal), can also be DSL terminal equipment etc.
The identification information of test terminal can be one or more in MAC (Media Access Control, the media interviews control) address of test terminal and the SN (Serial Number, series number) of test terminal.Will be take identification information as MAC Address as example describes in following examples.
In the present embodiment, use a test terminal to be connected to successively the user-side port of access device, in the time that test terminal is disconnected from a user-side port, this user-side port need to be set and keep online, simulate this user-side port with this and be connected with terminal equipment.In the time that test terminal is connected to a user-side port, access device can obtain the identification information of test terminal, generates a simulation address information according to the rule of setting, like this, and the simulation address information that each user-side port is corresponding different.
102, described test terminal is disconnected from described user-side port, controlling described access device, to keep described user-side port be presence.
Thereby 103, carry out above-mentioned steps in the offline user side ports of described access device successively and make the corresponding simulation address information of each user-side port on described access device.
In all offline user side ports of access device, carry out after above-mentioned steps 101-102, just produce such effect: even if test terminal disconnects and being connected of user-side port, access device still thinks that this user-side port is in connection status.In the time that test terminal is inserted different user-side port successively, can produce different MAC Address, therefore can only use same or one group of terminal equipment by the port of access device user side all in upper line states.The object of step 103 be make access device to be tested think all of the port all in being connected of accessing terminal.As shown in Figure 2, on port one, port 2, carry out after above-mentioned steps, port one port 2 is still in line states.
104, select the user-side port of a setting from described access device, delete the simulation address information corresponding to user-side port of described setting, described test terminal is connected to the user-side port of described setting.
Thereby 105, obtain the performance parameter of described access device by described test terminal generation flow.
Test terminal is connected to after the user-side port of setting, by test terminal analog subscriber online action, thereby generation flow, because the user-side port of access device now is all in line states, the flow producing can form and impact access device, thereby can obtain the performance parameter of access, such as stability, specification, capacity etc.
By such scheme, on the one hand, avoid using a large amount of accessing terminal to access, thereby reduced cost, realize easy and simple to handleization, versatility is higher; On the other hand, there is real exchanges data in access device and the external world, improved the accuracy of the access equipment parameter obtaining.
Embodiment 2
One embodiment of the present of invention provide a kind of method of obtaining access device performance, and as shown in Figure 3, the method comprises the steps:
201, test terminal is connected to a user-side port of access device.
It should be noted that the user-side port of mentioning in step 201 can be both that physical port can be also logic port.In the time that access device is DSLAM, user-side port is physical port; In the time that access device is OLT, user-side port is logic port.
202, generate simulation address information by access device described in command line interface control according to the identification information of described test terminal and the port-mark that connects.
It should be noted that, can be in the time that test terminal be connected to the user-side port of access device in the present embodiment, generate simulation address information by order line control access device according to the identification information of described test terminal and the port-mark that connects, can also be to open according to the identification information of test terminal and the port-mark that connects and generate this function of simulation address information by order line before starting test, like this in the time that test terminal is connected to some user-side port, access device can obtain the identification information of testing equipment automatically by this user-side port, generate simulation address information according to the identification information of test terminal and the port-mark that connects.
Identification information in the present embodiment can be one or more in the MAC Address of test terminal and the SN of test terminal.
The simulation address information generating can be the combination of the identification information of test terminal and the port-mark of be connected user-side port, and port-mark can be the one or more combination in the port numbers, frame position, groove position of user-side port.
Now illustrate the generative process of simulation address information: when after test terminal access access device, first obtain the MAC Address accessing terminal.If the MAC Address of test terminal is 0023-C000-03D0, then change a constant into by one section in this address and add to access terminal and insert the number of slot, establishing constant is FD, and slot number is 02,, after revising, the MAC Address of the A that accesses terminal becomes 0023-FD02-03D0.0023-FD02-03D0 is simulation address information.
203, control the simulation address information that described access device utilization obtains and obtain IP address from DHCP (Dynamic HostConfiguration Protocol, dynamic-configuration control protocol) server.
204, control described access device and obtain configuration file according to the IP address obtaining from configuration server.
205, described test terminal is disconnected from described user-side port, controlling described access device, to keep described user-side port be presence.
Thereby 206, carry out above-mentioned steps in the offline user side ports of described access device successively and make the corresponding simulation address information of each user-side port on described access device.
207, select the user-side port of a setting from described access device, delete the simulation address information corresponding to user-side port of described setting, described test terminal is connected to the user-side port of described setting.
Thereby 208, obtain the performance parameter of described access device by described test terminal generation flow.
In the present embodiment, can be also to carry out after step 206, control the simulation address information unification of access device utilization generation and obtain IP address from Dynamic Host Configuration Protocol server, and obtain configuration file according to the IP address unification of obtaining from configuration server.
Generally, the access device performance parameter of obtaining comprises: whether the stability of access device, be in operation stable; The specification of access device, the i.e. limiting value of number of access terminals; The capacity of access device, the in the situation that of the normal operation of access device, the limiting value of transmitted data amount in access device.
By such scheme, on the one hand, avoid using a large amount of accessing terminal to access, thereby reduced cost, realize easy and simple to handleization, versatility is higher; On the other hand, there is real exchanges data in access device and the external world, improved the accuracy of the access equipment parameter obtaining.
Embodiment 3
One embodiment of the present of invention provide a kind of device that obtains access device performance, and as shown in Figure 4, this device comprises: test terminal administrative unit 31, access device administrative unit 32, control unit 33, performance acquiring unit 34; Wherein:
Test terminal administrative unit 31, for being connected to test terminal the user-side port of access device.
Access device administrative unit 32, in the time that described test terminal is connected to the user-side port of access device, controls described access device and generates simulation address information according to the identification information of described test terminal; And control described access device in the time that described test terminal and described user-side port disconnect, make described user-side port remain on line states.
Wherein, the identification information in the present embodiment can be one or more in the MAC Address of test terminal and SN.
Control unit 33, for controlling the offline user side ports that described test terminal administrative unit connects described access device successively, select the user-side port of a setting from described access device, control described access device administrative unit described test terminal is connected to the user-side port of described setting.
Control unit in the present embodiment can be CPU (Central Processing Unit, CPU) etc.
Performance acquiring unit 34, thus flow produced and obtain the performance parameter of described access device for controlling described test terminal.
Further, described access device administrative unit 32 is also obtained IP address for controlling the simulation address information that described access device utilization obtains from dynamic-configuration control protocol Dynamic Host Configuration Protocol server; And control described access device and obtain configuration file according to the IP address obtaining from configuration server.
The equipment that the present embodiment provides, can automatically utilize test terminal to access testing equipment, thereby obtain the performance parameter of access device, because utilized test terminal can be less than the user-side port quantity of access device, thereby can avoid using a large amount of accessing terminal to access, thereby reduced cost, realized easy and simple to handleization, versatility is higher; On the other hand, there is real exchanges data in access device and the external world, improved the accuracy of the access equipment parameter obtaining.
In another embodiment, provide a kind of equipment that obtains access device performance, as shown in Figure 5, comprise performance element 41 and CPU42,
Wherein CPU42, for:
Control the user-side port that performance element 41 is connected to test terminal access device;
In the time that described test terminal is connected to the user-side port of access device, controls described access device and generate simulation address information according to the identification information of described test terminal; And control described access device in the time that described test terminal and described user-side port disconnect, make described user-side port remain on line states;
Control the offline user side ports that described performance element 41 connects test terminal described access device successively, select the user-side port of a setting from described access device, control described performance element described test terminal is connected to the user-side port of described setting; And
Thereby control described test terminal and produce flow and obtain the performance parameter of described access device.
CPU42 in the present embodiment also obtains IP address for the simulation address information of controlling access device utilization generation from Dynamic Host Configuration Protocol server, and utilizes the IP address obtaining to obtain configuration file from configuration server.
Further, the present embodiment also provides a kind of equipment that obtains access device performance, it should be noted that, this equipment both can be built in access device, also can be connected with access device by physics or logic interfacing, thereby reach the object of obtaining access device performance, as shown in Figure 6, comprise: Port Management unit 51, test information management unit 52, performance acquiring unit 53; Wherein:
Port Management unit 51, when be connected on access device the user-side port in off-line state when test terminal, control described access device and generates simulation address information according to the identification information of described test terminal; And in the time that test terminal and described user-side port disconnect, make described user-side port remain on line states.
Test information management unit 52, when being connected to when test terminal the user-side port that is in line states on access device, the simulation address information corresponding to user-side port of deleting described presence.
Performance acquiring unit 53, produces flow for controlling test terminal, thereby obtains the performance parameter of described access device.
By such scheme, on the one hand, avoid using a large amount of accessing terminal to access, thereby reduced cost, realize easy and simple to handleization, versatility is higher; On the other hand, there is real exchanges data in access device and the external world, improved the accuracy of the access equipment parameter obtaining.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this software product is stored in the storage medium can read, as mobile access terminal hard disk or storage card etc., comprise that some instructions are in order to make a mobile access terminal equipment (can be individual panel computer, mobile phone etc.) carry out the method described in the present invention each embodiment.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.