CN1581816A - Device and method for dynamically measuring VLAN users - Google Patents

Device and method for dynamically measuring VLAN users Download PDF

Info

Publication number
CN1581816A
CN1581816A CN 03143778 CN03143778A CN1581816A CN 1581816 A CN1581816 A CN 1581816A CN 03143778 CN03143778 CN 03143778 CN 03143778 A CN03143778 A CN 03143778A CN 1581816 A CN1581816 A CN 1581816A
Authority
CN
China
Prior art keywords
message
address
vlan
dhcpoffer
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 03143778
Other languages
Chinese (zh)
Other versions
CN100359869C (en
Inventor
陈勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031437788A priority Critical patent/CN100359869C/en
Publication of CN1581816A publication Critical patent/CN1581816A/en
Application granted granted Critical
Publication of CN100359869C publication Critical patent/CN100359869C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The method includes steps: script structures DHCPDISCOVER message; script structures DHCPREQUEST message; broadcasting DHCPDISCOVER message in order to change state into SELECT, and waiting for DHCPOFFER message; based on received DHCPOFFER message, sending DHCPREQUEST message to apply for allocation of IP address in DHCPOFFER. Testing is carried out for multiple devices of supporting VLAN user service by PC through testing script 'under variable definition, flexible structuring' on line message and off line message of dynamic VLAN user. After VLAN user on line, testing can be executed including two way or one way message send receive significance testing under each rate, length of message, one to one, one to many, many to many etc, and each anomaly testing in procedure of VLAN user on line and off line.

Description

A kind of apparatus and method of VLAN user being carried out dynamic test
Technical field
The present invention relates to network technology, be specifically related to a kind of apparatus and method of VLAN user being carried out dynamic test.
Background technology
Understand the present invention for the ease of those skilled in the art, the term definition of using in this specification is as follows:
Abbreviation English name Chinese
DHCP ?Dynamic?Host?Configuration?Protocol DHCP
VLAN ?Virtual?Local?Area?Net VLAN
MAC ?Media?Access?Control The medium access control
DHCPDISCOVE ?R ?Dynamic?Host?Configuration?Protocol?Discover DHCP is found
DHCPREQUEST ?Dynamic?Host?Configuration?Protocol?Request Dhcp request
DHCPOFFER ?Dynamic?Host?Configuration?Protocol?Offer DHCP provides
DHCPACK ?Dynamic?Host?Configuration?Protocol?Ack DHCP is replied
DHCPRELEASE ?Dynamic?Host?Configuration?Protocol?Release DHCP discharges
IP ?Internet?Protocol Internet protocol
The service level that the professional equipment of supported vlans (VLAN) provides the VLAN customer service is the key property of this equipment, therefore in test, just must simulate a plurality of VLAN users and implement test, with of the support of abundant checking equipment under test to VLAN user's function of surfing the Net and performance by simulation means.A VLAN user realizes that the process of packet sending and receiving business abbreviates online (following as not doing special declaration, implication is constant) in this manual as.In fact network process comprises that this VLAN user sends application IP addresses request → acquisition IP address → transmission/receiving data packets → the send request of rolling off the production line → processes such as release IP address, therefore when test, must comprise these contents, to realize that its function, performance and stability are guaranteed in the test of the simulation practical application of supported vlans business device.
Existing method of testing generally is to use many a plurality of VLAN user's online of computer simulation, and perhaps the test of supported vlans business network equipment is finished in DHCP (DHCP) the message application IP address of using network interface card to send a plurality of different mac sources address on a computer.
Fig. 1 shows the test topology structure of many computer testing vlan networks of available technology adopting equipment.Wherein, be connected on the network equipment of supported vlans business by using many computers, simulation VLAN user surfs the Net with the function and the performance of checking equipment under test, emulation reality admirably, and each user's last line process all is independently.
But this structure has following deficiency:
(1) need many computer supports, the input expense is big;
(2) the simulation process automatization level is not high, and the manpower and the time ratio that need are more;
(3) be difficult to realize the simulation test of a large number of users (as 2K, i.e. 2048 above users);
Can only simulate that VLAN user reaches the standard grade and following line process, can't well carry out for the performance test after reaching the standard grade.
Fig. 2 is for adopting the test topology structure of many computer testing vlan networks of software simulation equipment.Wherein, send the dhcp address application message that has different MAC Address, simulate a plurality of VLAN users' online the network equipment of supported vlans business is tested by the network interface card of controlling computer.
But this structure has following deficiency:
(1) VLAN user's limited speed of reaching the standard grade is in the network interface card disposal ability of computer, the very difficult realization test of reaching the standard grade fast;
(2) the VLAN user data transmission speed after reaching the standard grade is subject to the network interface card disposal ability of computer;
(3) can only simulate the process that VLAN user reaches the standard grade and rolls off the production line, very big in limitation aspect the simulation of the normal business of networking of user, can only realize a user's business;
(4) at simulation a large number of users (as 2K, promptly 2048 more than the user) aspect of reaching the standard grade simultaneously, roll off the production line limitation is arranged.
In order to overcome these deficiencies of prior art, wish to utilize the separate unit PC by the tester simulation lot of V LAN user test of reaching the standard grade automatically, roll off the production line; The test of reaching the standard grade fast, roll off the production line; The test of rolling off the production line on repeatedly for a long time.Wish to realize that also the VLAN user back of reaching the standard grade realizes under the various speed, various message lengths one to one, the two-way or unidirectional packet sending and receiving performance test of one-to-many and multi-to-multi; VLAN user reach the standard grade and following line process in various abnormality tests.
Summary of the invention
The invention provides and a kind of VLAN user is carried out the apparatus and method of dynamic test, to solve the problem that testing efficiency is low, automaticity is not high that exists in the prior art.
For addressing the above problem, the invention provides following technical scheme:
A kind of method that VLAN user is carried out dynamic test comprises step:
Script structure DHCPDISCOVER (DHCP discovery) message;
Script structure DHCPREQUEST (dhcp request) message;
Broadcast described DHCPDISCOVER message, state being become SELECT (selection) attitude, and wait for and receive DHCPOFFER (DHCP provides) message;
According to the DHCPOFFER message of receiving, send DHCPREQUEST message application IP address allocated in DHCPOFFER.
Wherein, the step of the described DHCPDISCOVER message of described broadcasting comprises: control described tester sends described script structure to DHCP (DHCP) server by equipment under test DHCPDISCOVER message.
Wherein, described Dynamic Host Configuration Protocol server is received and is judged it behind the described DHCPDISCOVER message for behind the legal DHCPDISCOVER message, replys and produce described DHCPOFFER message.
Wherein, described transmission DHCPREQUEST message application step of IP address allocated in DHCPOFFER comprises: described tester receives described DHCPOFFER message; Send the DHCPREQUEST message to Dynamic Host Configuration Protocol server, state becomes REQUEST (request) attitude.
Wherein, also comprise step,, therefrom obtain the gateway address of equipment side and the dynamic IP addressing of server-assignment,, retransmit the DHCPDISCOVER message automatically if do not receive the DHCPOFFER message if receive the DHCPOFFER message.
This method also comprises step, gateway address that will obtain from the DHCPOFFER message and dynamic IP addressing are composed the message to DHCPREQUEST, the control tester sends the application of DHCPREQUEST message to Dynamic Host Configuration Protocol server the described dynamic IP addressing of obtaining is confirmed, if Dynamic Host Configuration Protocol server has been beamed back the normal confirmation message of ACK, carry out the transmitting-receiving of service message.
Wherein, described gateway address and dynamic IP addressing are assigned to the variable field in the DHCPREQUEST message.
Method also comprises step: when needs roll off the production line, by test script structure DHCPRELEASE (DHCP release) message, control described tester sends DHCPRELEASE message from described structure to equipment under test.
Wherein, described DHCPRELEASE message needs assigned source MAC Address (user's MAC), target MAC (Media Access Control) address (MAC Address of equipment under test vlan port, this address obtains), source IP address (user's IP address need roll off the production line), purpose IP address (being the gateway address field of the equipment told about previously) and VALN ID number from the DHCPOFFER message.
Wherein, the message structure of described tester transmission is the UDP message of the band VLAN head of standard.
A kind of VLAN user is carried out the device of dynamic test, it comprises:
The data message constructing apparatus, be used for having IP or the UDP message of source IP address, source MAC, purpose IP address, target MAC (Media Access Control) address and Vlan ID by the script structure, wherein, described address and the Vlan ID that source IP address, source MAC, purpose IP address, target MAC (Media Access Control) address and Vlan ID are arranged for the user that reaches the standard grade;
Dispensing device is used to control tester and sends the message of being constructed, and the speed that sends message can be provided with tester by script.
Deriving means is used for sending DHCPREQUEST message application IP address allocated in DHCPOFFER according to the DHCPOFFER message of receiving.
Utilize the present invention, can realize the maximum VLAN user's that the equipment under test to the supported vlans customer service can carry volume test.The test script that moves on the PC terminal can be revised flexibly, thereby realizes the multiple abnormality test that VLAN user reaches the standard grade and rolls off the production line, and is illegal such as user's MAC Address IP address illegal, application, VLAN id number is illegal etc.The equipment under test lot of V LAN user that can the realize the supported vlans customer service automatically test of reaching the standard grade and roll off the production line for a long time, repeatedly.After the dynamic vlan user reaches the standard grade, can realize under the various speed between the VLAN user, various message lengths one to one with the two-way or unidirectional packet sending and receiving performance test of one-to-many.Can save test manpower, material resources, reduce cost, improve testing efficiency, improve test mass and accelerate testing progress.
Description of drawings
Fig. 1 shows the test topology structure of many computer testing vlan networks of available technology adopting equipment;
Fig. 2 is for adopting the test topology structure of many computer testing vlan networks of software simulation equipment;
Fig. 3 is state machine flow path switch figure that the dynamic vlan user reaches the standard grade and rolls off the production line during test in the embodiment of the invention;
Fig. 4 is the simple Test Networking figure of embodiments of the invention;
Fig. 5 is that the individual vlan user of the carrier state machine of embodiments of the invention reaches the standard grade and rolls off the production line flow chart.
Embodiment
Understand and realization the present invention the existing embodiments of the invention of describing in conjunction with the accompanying drawings for the ease of persons skilled in the art.
Foundation of the present invention is the DHCP agreement (RFC1533) of standard, so at first the overall process that a dynamic vlan user is reached the standard grade and rolls off the production line (promptly dynamic vlan user obtains and discharge the process of IP address) is done one and briefly introduced.
For a VLAN user, any moment, its state must be in one of six state machines of DHCP agreement, promptly initial state (INITIALIZE), select attitude (SELECT), request attitude (REQUEST), binding attitude (BOUND), bind attitude (REBIND) and refresh mode (RENEW) again.Because the technology among the present invention is to be used for reaching the standard grade and rolling off the production line of laboratory tests VLAN user, so just need not relate to and bind attitude (REBIND) and two states of refresh mode (RENEW) again, the SELECT attitude is to have the state that just has under the condition of a plurality of Dynamic Host Configuration Protocol server in local area network (LAN) simultaneously, the state that a plurality of server response DHCPOFFER messages are selected just, thus among the present invention with its state as the DHCPOFFER message of reception server.Fig. 3 is state machine flow path switch figure that the dynamic vlan user reaches the standard grade and rolls off the production line during test in the embodiment of the invention.
Usually under normal circumstances, the basic process of a dynamic vlan user's going on line or off line:
(1) when a dynamic vlan user did not also accept the DHCP service, its state was in the INITIALIZE attitude;
(2) when this user wants dynamically to obtain dynamic IP addressing by DHCP service, at first can broadcast a DHCPDISCOVER message and oneself state is become the SELECT attitude, Dynamic Host Configuration Protocol server is received this message and is judged and can respond a DHCPOFFER after legal;
(3) after this user receives the DHCPOFFER message, send the DHCPREQUEST message to Dynamic Host Configuration Protocol server again, state changes the REQUEST attitude into thereupon;
(4) the Dynamic Host Configuration Protocol server authentication sends the DHCPACK message by the back to this user, and this user normally reaches the standard grade;
(5) when the user initiatively to server send DHCPRELEASE message or IP leasing period to the time, state comes back to the INITIALIZE attitude.
According to the transfer process of top dhcp state machine, the present invention is based on the demand background of practical application, realized having the dynamic vlan user of state machine and stateless machine to reach the standard grade and inserting method, user's simulation is to realize by the port of tester:
(1) the dynamic vlan user's going on line or off line method of state machine is arranged: follow the DHCP agreement fully;
(2) method of the dynamic vlan user's going on line or off line of stateless machine: only pay close attention to user side, will not pay close attention to,, be mainly used to the performance test of the equipment of realizing in order to realize reaching the standard grade fast and roll off the production line and designing of VLAN user to the Dynamic Host Configuration Protocol server end.
Fig. 4 is the simple Test Networking figure of embodiments of the invention, and the Dynamic Host Configuration Protocol server among the figure can externally also can be that equipment under test is built-in, no matter be what configuration, as long as the function of Dynamic Host Configuration Protocol server end can be provided.
Fig. 5 is that the individual vlan user of the carrier state machine of embodiments of the invention reaches the standard grade and rolls off the production line flow chart.For the implementation method that state machine is arranged, the specific implementation process of VLAN user's going on line or off line is described below in conjunction with Test Networking figure (Fig. 4) and flow chart (Fig. 5) at this that (the English words name section that uses in the description all is the field name in the DHCP message structure of standard, this is known to persons skilled in the art, and its meaning only is a name tag):
(1) write the above-mentioned three kinds of standard messages (DHCPDISCOVER, DHCPREQUEST, DHCPRELEASE) of test script (Test Script) structure by the PC terminal: the structure of these three messages is that (structure of message can be referring to the 16th chapter BOOTP in the reference book in the annex: boot protocol or use PC to start packet capturing software in an environment that the DHCP service is provided for the UDP message of the band VLAN head of standard, apply for then and discharge IP, also can obtain five kinds of messages of PC and server interaction in the whole process).Many fields need be used variable in the message structure, and some field pays particular attention to (judgement of state machine, an IP and UDP verification and calculating, type of message, opcode field and the Transaction Identifier field of DHCP) in addition.Before these fields of explanation, provide the packet format of BOOTP earlier:
The IP stem The UDP stem BOOTP asks/replys
|------20Byte-----|----8Byte---|----------------300Byte---------------|
|------------------UDP datagram----------------------||----------------------------IP datagram-----------------------------|
BOOTP request and replying all is encapsulated in the UDP datagram, the standard message form that provides BOOTP below and ask/reply, 0~31 expression bit unit of form top.
0?????????????7?8?????????????15?16???????????23?24??????????31
Command code Type of hardware Hardware address length Jumping figure
Transaction Identifier (TRANSACTION ID)
Second number Do not use
Client IP (CLIENT IP ADDRESS)
Your IP (YOUR IP ADDRESS)
Server ip (SERVER IP ADDRESS)
Device gateway IP (GATEWAY IP ADDRESS)
User rs host hardware address (CLIENT HARDWARE ADDRESS) (16Byte)
Server host name (SERVER HOST NAME) (64Byte)
Boot files name (BOOT FILE NAME) (128Byte)
Specific merchant's information (comprising client's host name field, message type field of DHCP or the like)
Describe the above-mentioned field that needs to use the field of variable and need special concern below in conjunction with top message format, have a detailed description in ICP/IP protocol for the field in MAC head, IP stem and the UDP stem, this specification is no longer described.
A) what bytes are the source MAC field in the message have be set to variable and decide according to the number of users of equipment under test support in these six bytes;
B) user vlan id field, this field be totally two bytes, can allow its increasing or decreasing during realization;
C) checksum field, comprise IP head and UDP head verification and, for DHCPDISCOVER message and DHCPREQUEST message, the verification of IP head and be a constant, reason be in these two headings source IP and purpose IP can be complete 0 and full F (purpose IP address is that full F represents limited broadcasting, this moment, main frame may also not known its place network of network mask, and source IP address normally complete 0), and the verification of UDP head and can calculate and be set to complete 0 (if UDP verification of regulation message and be 0 in the DHCP agreement, then indication equipment side without the verification of verification UDP head and), also improved testing efficiency simultaneously greatly; For the DHCPRELEASE message, IP verification and need to calculate the narration of the same front of UDP head;
D) opcode field in the message all is set to " 1 " when the above-mentioned three kinds of messages of structure, and expression is the request message (being that 2 expressions are response messages that server is issued the user) that the user issues server;
E) the type of hardware field is made as " 1 ", the Ethernet of expression 10M/S;
F) hardware address length is " 6 ", i.e. 6 byte length values of MAC Address;
G) jumping figure and a second number can be set to " 0 ";
H) Transaction Identifier (TRANSACTION ID), 4 bytes of this fields account (to the request of user and server and reply mate) can be made as random value;
I) IP address field (CLIENT IP ADDRESS) of user's request, this field are set to complete 0 (reason is that the user does not also have the IP address this moment) in the DHCPDISCOVER message; Need to fill in DHCPREQUEST message and DHCPRELEASE message, this address obtains from the DHCPOFFER message, and this address must be preserved (preserving as using array) and used for the DHCPRELEASE message;
J) the gateway address field of equipment, this field is only filled in DHCPREQUEST message and DHCPRELEASE message, and this address obtains from the DHCPOFFER message;
K) server host name and boot files name can be set to " 0 " entirely;
1) user rs host file-name field (Host Name), 7 bytes of this fields account, wherein what bytes are set to the number of users that variable supports according to equipment under test and decide, this field only needs to use in DHCPDISCOVER and DHCPREQUEST message, be indifferent to this field for the DHCPRELEASE message, can be set to complete 0;
When m) message is constructed, the message type field of DHCP (DHCP MESSAGE TYPE) will be filled in correctly, type has 7 values, only uses three (all the other four is the type of message of server response) here: DHCPDISCOVER message (type=1), DHCPREQUEST message (type=3), DHCPRELEASE message (type=7).
(2) after message is constructed, just can control tester and send message to Dynamic Host Configuration Protocol server by equipment under test, at first send the DHCPDISCOVER message, then catch the DHCPOFFER message of server loopback at the transmit port of tester, here need to judge the authenticity of DHCPOFFER message, method is to take out above-mentioned " opcode field " and " dhcp message type field " from the message of catching, and the value of these two fields must all equal " 2 " and be only the DHCPOFFER message; Just can therefrom obtain the gateway address of equipment side and the dynamic IP addressing of server-assignment after capturing the DHCPOFFER message,, then need to retransmit automatically the DHCPDISCOVER message if do not capture the DHCPOFFER message.
(3) receive the DHCPOFFER message after, gateway address and the dynamic IP addressing obtained in (2) are composed to the variable field in the DHCPREQUEST message, controlling tester then sends the dynamic IP addressing that the application of DHCPREQUEST message obtains in to (2) to Dynamic Host Configuration Protocol server and confirms, normal confirmation message (is put into practice according to laboratory tests if Dynamic Host Configuration Protocol server has been beamed back ACK, if server has been given normal DHCPOFFER message, then finally can beam back the ACK message, and can not return the NAK message), mean that promptly this VLAN user has successfully obtained dynamic IP addressing, reach the standard grade successfully, can carry out the transmitting-receiving of service message.
(4) dynamic vlan user's following line process is fairly simple, it is just passable only to need to send the DHCPRELEASE message by test script control tester to equipment under test on the PC terminal, it should be noted that this message needs assigned source MAC Address (user's MAC), target MAC (Media Access Control) address (MAC Address of equipment under test vlan port, this address obtains), source IP address (user's IP address need roll off the production line), purpose IP address (being the gateway address field of the equipment told about previously) and VALN ID number from the DHCPOFFER message.
For the stateless machine (in the present invention, the stateless machine refers to that user side and server end need not carry out alternately), only reaching the standard grade for the user needs construct DHCPDISCOVER message and DHCPREQUEST message with test script on the PC terminal, and controlling tester then, to send these two messages just passable; The user offline process is with the above-mentioned dynamic vlan user offline process that state machine is arranged.Its feature and require as follows:
(1) response message that does not need to catch server is analyzed, the device gateway address field that structure DHCPRELEASE message and DHCPREQUEST message are required and the IP address field of user applies are specified according to the configuration of equipment under test end voluntarily by the tester, do not need to obtain from the DHCPOFFER message, this mechanism proposes in order to realize rolling off the production line on the dynamic vlan user " fast ".
(2) this mechanism needs a precondition: the address pool that needs to empty the configuration of Dynamic Host Configuration Protocol server end before the test, because " IP address field of user's request " of filling in when sending the DHCPREQUEST message is preassigned, if address pool is not occupied in address pool for the empty IP address of test application of can causing, thereby does not reach the purpose of test.
The present invention simulates the maximum VLAN user's that the equipment under test of supported vlans customer service can carry volume test by the test port of control tester.
The present invention realizes the structure of message by script on the PC terminal, Run Script during test, the user can revise the critical field in the script arbitrarily during test in script, it mainly is user's MAC Address field, the IP address field of application, user's Vlan id field, such as MAC Address being made as complete 0 or full F, the IP address of revising application is complete 0 or the IP address (at situation of stateless machine) not in the address pool of server of full F or application, revising Vlan ID is illegal value, use the IP address in the literary composition of report from a liner up and down that to revise different user when rolling off the production line on the Do statement realization multi-user, MAC Address and Vlan id field, thus realize that same IP of a plurality of user applies or same user repeat to apply for that IP or same IP address are repeatedly discharged the situation that (at the situation of stateless machine) or same Vlan ID are used by two Vlan users.It is exactly the multiple abnormality test that has realized that VLAN user reaches the standard grade and rolls off the production line that message after the user revised voluntarily is sent to equipment under test by the control tester.
The realization of rolling off the production line on the multi-user among the present invention realizes by use Do statement (such as for circulation) in script, MAC Address in the DHCP message of mentioning in the text, VlanID, the Transaction Identifier field, the IP address and the user rs host file-name field of user's request need be set to variable, because these fields of different users all are different, the automatic change (the simplest increasing or decreasing that is set to) of controlling these fields by Do statement just can realize automatically that the equipment under test lot of V LAN user of supported vlans customer service is long-time then, reach the standard grade repeatedly and roll off the production line test.Such as controlling reaching the standard grade automatically and rolling off the production line of user respectively by two for circulation respectively, use a for circulation just can realize that user " repeatedly " reach the standard grade and roll off the production line at the skin of these two for circulations again; The equipment under test lot of V LAN user that can the realize the supported vlans customer service automatically test of reaching the standard grade and roll off the production line for a long time, repeatedly; Can use cyclic variable to come increasing or decreasing for the user's MAC address field in the message, VLANID field.And for the stateless machine, " IP address field of user's request " in the DHCPREQUEST message also can use cyclic variable to come increasing or decreasing;
The present invention has the IP message of source IP address, source MAC, purpose IP address, target MAC (Media Access Control) address and Vlan ID by the script structure, control tester then and send the message constructed (being noted that these addresses, front and Vlan ID are reached the standard grade user's address and Vlan ID), thus realize between the VLAN user under the various speed, various message lengths one to one with the two-way or unidirectional packet sending and receiving performance test of one-to-many.Can save test manpower, material resources, reduce cost, improve testing efficiency, improve test mass and accelerate testing progress.
The present invention is in conjunction with tester, can realize the maximum VLAN user's that the equipment under test to the supported vlans customer service can carry volume test.
" by the method for variable-definition flexible construction ", the test script that moves on the PC terminal can be revised flexibly, thereby realize the multiple abnormality test that VLAN user reaches the standard grade and rolls off the production line, illegal such as user's MAC Address IP address illegal, application, VLAN id number is illegal etc.
The equipment under test lot of V LAN user that can the realize the supported vlans customer service automatically test of reaching the standard grade and roll off the production line for a long time, repeatedly.
After the dynamic vlan user reaches the standard grade, can realize under the various speed between the VLAN user, various message lengths one to one with the two-way or unidirectional packet sending and receiving performance test of one-to-many.
The present invention can realize with the testing equipment of a PC to many supported vlans customer services.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.

Claims (11)

1. one kind is carried out the method for dynamic test to VLAN user, it is characterized in that, comprises step:
Script structure DHCPDISCOVER (DHCP discovery) message;
Script structure DHCPREQUEST (dhcp request) message;
Broadcast described DHCPDISCOVER message, state being become SELECT (selection) attitude, and wait for and receive DHCPOFFER (DHCP provides) message;
According to the DHCPOFFER message of receiving, send DHCPREQUEST message application IP address allocated in DHCPOFFER.
2. the method for claim 1, it is characterized in that the step of broadcasting described DHCPDISCOVER message comprises: control described tester sends described script structure to DHCP (DHCP) server by equipment under test DHCPDISCOVER message.
3. method as claimed in claim 2 is characterized in that, described Dynamic Host Configuration Protocol server is received and judged it behind the described DHCPDISCOVER message for behind the legal DHCPDISCOVER message, replys and produce described DHCPOFFER message.
4. the method for claim 1 is characterized in that, described transmission DHCPREQUEST message application step of IP address allocated in DHCPOFFER comprises: described tester receives described DHCPOFFER message; Send the DHCPREQUEST message to Dynamic Host Configuration Protocol server, state becomes REQUEST (request) attitude.
5. method as claimed in claim 4 is characterized in that, also comprises step, if receive the DHCPOFFER message, therefrom obtain the gateway address of equipment side and the dynamic IP addressing of server-assignment,, retransmit the DHCPDISCOVER message automatically if do not receive the DHCPOFFER message.
6. method as claimed in claim 5, it is characterized in that, also comprise step, gateway address that will obtain from the DHCPOFFER message and dynamic IP addressing are composed the message to DHCPREQUEST, the control tester sends the application of DHCPREQUEST message to Dynamic Host Configuration Protocol server the described dynamic IP addressing of obtaining is confirmed, if Dynamic Host Configuration Protocol server has been beamed back the normal confirmation message of ACK, carry out the transmitting-receiving of service message.
7. method as claimed in claim 6 is characterized in that described gateway address and dynamic IP addressing are assigned to the variable field in the DHCPREQUEST message.
8. the method for claim 1, it is characterized in that, also comprise: when needs roll off the production line,, control described tester sends DHCPRELEASE message from described structure to equipment under test by test script structure DHCPRELEASE (DHCP release) message.
9. method as claimed in claim 8, it is characterized in that, described DHCPRELEASE message needs assigned source MAC Address (user's MAC), target MAC (Media Access Control) address (MAC Address of equipment under test vlan port, this address obtains), source IP address (user's IP address need roll off the production line), purpose IP address (being the gateway address field of the equipment told about previously) and VALN ID number from the DHCPOFFER message.
10. as claim 1 or 9 described methods, it is characterized in that the message structure that described tester sends is the UDP message of the band VLAN head of standard.
11. one kind is carried out the device of dynamic test to VLAN user, it is characterized in that, comprising:
The data message constructing apparatus, be used for having IP or the UDP message of source IP address, source MAC, purpose IP address, target MAC (Media Access Control) address and Vlan ID by the script structure, wherein, described address and the Vlan ID that source IP address, source MAC, purpose IP address, target MAC (Media Access Control) address and Vlan ID are arranged for the user that reaches the standard grade;
Dispensing device is used to control tester and sends the message of being constructed, and the speed that sends message can be provided with tester by script;
Deriving means is used for sending DHCPREQUEST message application IP address allocated in DHCPOFFER according to the DHCPOFFER message of receiving.
CNB031437788A 2003-08-05 2003-08-05 Device and method for dynamically measuring VLAN users Expired - Fee Related CN100359869C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031437788A CN100359869C (en) 2003-08-05 2003-08-05 Device and method for dynamically measuring VLAN users

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031437788A CN100359869C (en) 2003-08-05 2003-08-05 Device and method for dynamically measuring VLAN users

Publications (2)

Publication Number Publication Date
CN1581816A true CN1581816A (en) 2005-02-16
CN100359869C CN100359869C (en) 2008-01-02

Family

ID=34579516

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031437788A Expired - Fee Related CN100359869C (en) 2003-08-05 2003-08-05 Device and method for dynamically measuring VLAN users

Country Status (1)

Country Link
CN (1) CN100359869C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100446484C (en) * 2006-07-06 2008-12-24 华为技术有限公司 Method and device for pressure detection of wideband network cut-in device
CN100520732C (en) * 2006-12-26 2009-07-29 中国电信股份有限公司 Performance test script generation method
CN101425938B (en) * 2008-12-17 2011-02-09 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
CN101534221B (en) * 2008-03-11 2012-01-04 朗讯科技公司 Method and device for testing communication protocol in test equipment
CN101405998B (en) * 2006-03-22 2012-04-11 阿尔卡特朗讯 Logical group endpoint discovery for data communication network
CN104125119A (en) * 2014-08-12 2014-10-29 上海斐讯数据通信技术有限公司 Method and system for testing server
CN105306308A (en) * 2015-11-16 2016-02-03 上海斐讯数据通信技术有限公司 Automated testing method and equipment based on dynamic vlan (Virtual Local Area Network)
CN106789391A (en) * 2016-11-14 2017-05-31 上海斐讯数据通信技术有限公司 A kind of automated testing method and device of router DHCP functions
CN114205274A (en) * 2021-11-02 2022-03-18 北京百度网讯科技有限公司 Network equipment testing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3488347B2 (en) * 1996-08-29 2004-01-19 株式会社日立製作所 Automatic address distribution system and address distribution server
US6728718B2 (en) * 2001-06-26 2004-04-27 International Business Machines Corporation Method and system for recovering DHCP data
CN1167227C (en) * 2001-10-31 2004-09-15 华为技术有限公司 Method for switching in virtual local area network of the access network with mixed optical fiber and coaxial line

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101405998B (en) * 2006-03-22 2012-04-11 阿尔卡特朗讯 Logical group endpoint discovery for data communication network
CN100446484C (en) * 2006-07-06 2008-12-24 华为技术有限公司 Method and device for pressure detection of wideband network cut-in device
CN100520732C (en) * 2006-12-26 2009-07-29 中国电信股份有限公司 Performance test script generation method
CN101534221B (en) * 2008-03-11 2012-01-04 朗讯科技公司 Method and device for testing communication protocol in test equipment
CN101425938B (en) * 2008-12-17 2011-02-09 福建星网锐捷网络有限公司 Method and apparatus for network apparatus test
CN104125119A (en) * 2014-08-12 2014-10-29 上海斐讯数据通信技术有限公司 Method and system for testing server
CN104125119B (en) * 2014-08-12 2019-09-13 上海斐讯数据通信技术有限公司 A kind of test method and test macro of server
CN105306308A (en) * 2015-11-16 2016-02-03 上海斐讯数据通信技术有限公司 Automated testing method and equipment based on dynamic vlan (Virtual Local Area Network)
CN106789391A (en) * 2016-11-14 2017-05-31 上海斐讯数据通信技术有限公司 A kind of automated testing method and device of router DHCP functions
CN114205274A (en) * 2021-11-02 2022-03-18 北京百度网讯科技有限公司 Network equipment testing method and device
CN114205274B (en) * 2021-11-02 2024-06-11 北京百度网讯科技有限公司 Network equipment testing method and device

Also Published As

Publication number Publication date
CN100359869C (en) 2008-01-02

Similar Documents

Publication Publication Date Title
CN1170401C (en) Apparatus and method for distributing interconnected network protocol address to network interface card
CN101425938B (en) Method and apparatus for network apparatus test
KR101194502B1 (en) Separable url internet browser-based gaming system
CN101557349B (en) Method and system for processing Internet data message
CN101043384A (en) System and method for network test
CN1926840A (en) Address and port number abstraction when setting up a connection between at least two computational devices
CN1949784A (en) IP address requesting method for DHCP client by DHCP repeater
JP2013132051A (en) Method, device, and system which allocate public ip address
CN1425246A (en) Home-networking
US7930370B2 (en) Method and system for remote configuration of managed nodes
CN1817000A (en) System and method for synchronous configuration of DHCP server and router interfaces
CN1318930A (en) Multiple access transmission communication method
KR100694045B1 (en) A fast handover method in DHCPv4, handover apparatus thereof and recording medium thereof
CN105359458B (en) Network device communications method and the network equipment
CN107273186A (en) Access method, physical host and the virtual machine of virtual machine server
CN1581816A (en) Device and method for dynamically measuring VLAN users
CN1549546A (en) Apparatus and method for realizing PPPOE user dynamic obtaining IP address utilizing DHCP protocol
CN1901546A (en) Information processing device
CN1574871A (en) Electronic apparatus, and system and method for downloading file into electronic apparatus
CN101159611A (en) Batch system disposing method and device
CN1773941A (en) Performance test method and apparatus for identification service
CN1961541A (en) Devices and methods for routeing a unit of data in a network
CN1917521A (en) Method and system for realizing load balancing, and load balancing equipment
US20070053349A1 (en) Network interface accessing multiple sized memory segments
CN1628444A (en) Method and apparatus for dynamic host configuration protocol lease time determination

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080102

Termination date: 20100805