CN102377611A - Automatic testing system for dynamic host configuration protocol server - Google Patents

Automatic testing system for dynamic host configuration protocol server Download PDF

Info

Publication number
CN102377611A
CN102377611A CN2010102581970A CN201010258197A CN102377611A CN 102377611 A CN102377611 A CN 102377611A CN 2010102581970 A CN2010102581970 A CN 2010102581970A CN 201010258197 A CN201010258197 A CN 201010258197A CN 102377611 A CN102377611 A CN 102377611A
Authority
CN
China
Prior art keywords
configuration protocol
host configuration
dynamic host
protocol server
package
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.)
Pending
Application number
CN2010102581970A
Other languages
Chinese (zh)
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.)
ZHENGWEN SCI-TECH Co Ltd
Gemtek Technology Co Ltd
Original Assignee
ZHENGWEN SCI-TECH 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 ZHENGWEN SCI-TECH Co Ltd filed Critical ZHENGWEN SCI-TECH Co Ltd
Priority to CN2010102581970A priority Critical patent/CN102377611A/en
Publication of CN102377611A publication Critical patent/CN102377611A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an automatic testing system for a dynamic host configuration protocol server. The system is used for performing a quality test on the dynamic host configuration protocol server. The automatic testing system comprises a packet processing unit, an automatic testing module and an operating unit connected with the automatic testing module, wherein the packet processing unit is used for generating, resolving and transmitting a plurality of packets; the automatic testing module is connected with the packet processing unit and the dynamic host configuration protocol server, and performs packet testing and resolution on the dynamic host configuration protocol server; and the operating unit is provided for a user to operate and set the automatic testing module. Therefore, the system can automatically detect the dynamic host configuration protocol server and avoid errors and loss caused by inexperience or negligence in manual detection.

Description

The Auto-Test System of Dynamic Host Configuration Protocol server
Technical field
The present invention relates to a kind of Auto-Test System of network system, relate in particular to a kind of test macro of Dynamic Host Configuration Protocol server.
Background technology
Network is capturing extremely important and indispensable status in people's life in modern times, along with the increase of population to surf the net, and one group of IP address of all necessary use of the computer of the net of whenever appearing on the stage, existing IPv4 uses inadequately.In order to solve the not enough problem of using in IP address, the research staff provides two kinds of solutions, and one is to use virtual ip address; The cooperation network address translation (Network Address Translation, NAT) technology is in LAN; Its internal host all uses virtual ip address; In to outer network, then utilize the NAT technology, unified by a group object IP address contact with foreign countries, reduce the use of entity IP whereby; The opposing party's rule is used DHCP, and (Dynamic Host Configuration Protocol DHCP), utilizes the idea of dynamic assignment IP address, uses limited IP address in turn, utilizes limited IP address to supply majority to use.
Dynamic Host Configuration Protocol server (DHCP Server) and the network equipment of client that the use of DHCP technology must be equipped with in network computer room just can use.No matter and be the network equipment of Dynamic Host Configuration Protocol server or client before dispatching from the factory all must through in detail and tight test just can guarantee quality." the NETWORK DEVICE TEST SYSTEM AND METHOD FOR TESTING NETWORK DEVICE " that is disclosed like No. 7596095 patent case of United States Patent (USP); It is to utilize a kind of test macro that the network equipment of client is carried out control and measuring, the quality of the network equipment before dispatching from the factory with assurance.
Yet the Dynamic Host Configuration Protocol server product does not have effective Automatic Test Equipment at present, only can utilize manually-operated mode to detect by the product test personnel.But DHCP server function program when equipment room is linked up is complicated, and the tester maybe be because lack experience or neglect, and fail to detect the wrong part in its package content, causes judging by accident, or makes mistake when filling in the testing journal sheet, causes damage.
Summary of the invention
Main purpose of the present invention is to avoid the product test personnel because of lacking experience or neglect, and fails to detect the wrong part in its package content, or makes mistake when filling in the testing journal sheet, causes erroneous judgement to cause damage.
For realizing above-mentioned purpose; The present invention provides a kind of Auto-Test System of Dynamic Host Configuration Protocol server; It is in order to carry out quality test to a Dynamic Host Configuration Protocol server, and this Auto-Test System comprises: the operating unit that a packet processing unit, an automatic test module and are connected with this automatic test module.This packet processing unit is in order to produce, to resolve, to send a plurality of packages; This automatic test module is connected with this packet processing unit and this Dynamic Host Configuration Protocol server, and this Dynamic Host Configuration Protocol server is carried out the test and the parsing of package through this packet processing unit; This operating unit supplies a user that this automatic test module is operated and set.
Can know that by above-mentioned explanation compared to known techniques, the present invention has following characteristics:
One, by this automatic test module this Dynamic Host Configuration Protocol server is carried out functional test, can before this Dynamic Host Configuration Protocol server dispatches from the factory, test.
Two, by this automatic test module this Dynamic Host Configuration Protocol server is carried out functional test, after tough body renewal or maintenance, carry out functional test to guarantee the machine quality.
Three, Auto-Test System of the present invention is avoided the tester because lack experience or careless mistake, causes erroneous judgement, or makes mistake when filling in the testing journal sheet, causes total quality to reduce, and causes company's loss.
Four, compare with the manual detection mode, not only correctness is high to utilize Auto-Test System of the present invention, and can accelerate the time that QC detects.
Description of drawings
Fig. 1 is the square configuration schematic diagram of one embodiment of the present invention;
Fig. 2 is the testing procedure schematic flow sheet of one embodiment of the present invention;
Fig. 3 is the test result form example schematic of one embodiment of the present invention.
Embodiment
Relevant detailed description of the present invention and technology contents, as follows with regard to the conjunction with figs. explanation at present:
See also shown in Figure 1; It is the square configuration schematic diagram of one embodiment of the present invention; As shown in the figure: the present invention is a kind of Auto-Test System of Dynamic Host Configuration Protocol server; It is in order to carry out quality test to a Dynamic Host Configuration Protocol server 50, and this Auto-Test System comprises: the operating unit 20 that a packet processing unit 40, an automatic test module 30 and are connected with this automatic test module 30.This packet processing unit 40 is in order to produce, to resolve, to send a plurality of packages; This automatic test module 30 is connected with this packet processing unit 40 and this Dynamic Host Configuration Protocol server 50, and tests and resolve through 40 pairs of these Dynamic Host Configuration Protocol server 50 of this packet processing unit; This operating unit 20 supplies 10 pairs of these automatic test modules 30 of a user to operate and set.
Explanation further, this automatic test module 30 comprise a positive test unit 31, a negative testing unit 32 and an authentication unit 33.This positive test unit 31 produces and sends a positive test package 41 by this packet processing unit 40 and gives this Dynamic Host Configuration Protocol server 50; A positive response package 42 of these Dynamic Host Configuration Protocol server 50 passbacks is also resolved and transmitted to this packet processing unit 40 to this positive test unit 31, checks whereby whether the positive response of this Dynamic Host Configuration Protocol server 50 is correct.This negative testing unit 32 produces and sends a negative testing package 43 by this packet processing unit 40 and gives this Dynamic Host Configuration Protocol server 50; This Dynamic Host Configuration Protocol server 50 must be able to judge that this negative testing package 43 is wrong package; And abandon this negative testing package 43, and can continue normal operation.This authentication unit 33 is in order to the correctness of the passback package of verifying this Dynamic Host Configuration Protocol server 50.
In addition; The Auto-Test System of Dynamic Host Configuration Protocol server of the present invention also comprises a storage element 60 and a form generation unit 70; This storage element 60 is connected with this automatic test module 30 and this operating unit 20, and this form generation unit 70 is connected with this operating unit 20, this storage element 60 and this automatic test module 30.Whereby; This storage element 60 stores the data that this automatic test module 30 is tested; And this form generation unit 70 in order to the information of this automatic test module 30 of direct reception to produce form; Perhaps select the information in this storage element 60 by this operating unit 20, and produce form by this form generation unit 70 by user 10.
See also Fig. 2, it is the testing procedure schematic flow sheet of one embodiment of the present invention, and please cooperate and consult Fig. 1, and this steps flow chart includes S1-S11 totally ten one steps, explains as follows:
S1: produce and transmit a DHCPDISCOVERY package; This positive test unit 31 produces this DHCPDISCOVERY package according to RFC 2131 standards through this packet processing unit 40 and gives this Dynamic Host Configuration Protocol server 50; And wait for a corresponding DHCPOFFER package, wherein this DHCPDISCOVERY package and this DHCPOFFER package are respectively this positive test package 41 and this positive response package 42;
S2: the DHCPOFFER package of resolving passback; This positive test unit 31 is resolved and be sent to this packet processing unit 40 after receiving this DHCPOFFER package; By the Transaction ID in this positive test unit 31 these DHCPOFFER packages of inspection whether with this DHCPDISCOVERY package in Transaction ID identical, if come to the same thing, then represent test result normal; If Transaction ID is inequality, then test result is undesired;
S3: produce and transmit a DHCPREQUEST package; This positive test unit 31 produces this DHCPREQUEST package according to RFC 2131 standards through this packet processing unit 40 and gives this Dynamic Host Configuration Protocol server 50; And wait for a corresponding DHCPACK package, wherein this DHCPREQUEST package and this DHCPACK package are respectively this positive test package 41 and this positive response package 42;
S4: resolve this DHCPACK package; This positive test unit 31 is resolved and be sent to this packet processing unit 40 after receiving this DHCPOFFER package; By the Transaction ID in this positive test unit 31 these DHCPACK packages of inspection whether with this DHCPREQUEST package in Transaction ID identical, then check yiaddr field, verify whether it obtains correct IP address; If above checking is all correct; Then test result is normal, if incorrect, then test result is undesired;
S5: the test network accessibility, whether examination can utilize the IP address of being obtained by this Dynamic Host Configuration Protocol server 50 to carry out the network service access;
S6: check this DHCPACK package; This authentication unit 33 is resolved checking according to this DHCPACK package; Respectively to server ID (Sever Identifier), name server (Domain Name Sever; DNS) and the correctness of lease time (Lease Time) verify that and the IP address obtained of checking is whether in correct scope;
S7: carry out negative testing one; This negative testing package 43 is to be that a DHCPDISCOVERY contains wrong package according to RFC 2131 standards; Contain wrong package (it contains the error code of op code=0x03) to this Dynamic Host Configuration Protocol server 50 by sending this DHCPDISCOVERY; What need to specify is, wherein op code should be 0x01 and is only right value, and this Dynamic Host Configuration Protocol server 50 must be able to abandon the vicious DHCPDISCOVERY of these field contents and contain wrong package; Do not return the DHCPOFFER package, and can continue normal operation just for correct response;
S8: carry out negative testing two; The DHCPDISCOVERY that transmission one contains Flags=0x0001 contains wrong package and gives this Dynamic Host Configuration Protocol server 50; Wherein Flags should be 0x8000 and is only right value; This Dynamic Host Configuration Protocol server 50 must be able to abandon the vicious DHCPDISCOVERY of these field contents and contain wrong package, does not return the DHCPOFFER package, and can continue normal operation just for correct response;
S9: carry out negative testing three; The DHCPDISCOVERY that transmission one contains Ciaddr=224.168.0.1 contains wrong package and gives this Dynamic Host Configuration Protocol server 50; Wherein Ciaddr should be 0.0.0.0 and is only right value; This Dynamic Host Configuration Protocol server 50 must be able to abandon the vicious DHCPDISCOVERY of these field contents and contain wrong package, does not return the DHCPOFFER package, and can continue normal operation just for correct response;
S10: the running of checking main frame is normal; Because this Dynamic Host Configuration Protocol server 50 can not return the DHCPOFFER package receiving after the vicious DHCPDISCOVERY of field contents contains wrong package; And this Dynamic Host Configuration Protocol server 50 also can not return the DHCPOFFER package when fault, therefore, and after confirming above-mentioned negative testing; Must repeat step S1-S6 again one time, be under normal operation, to abandon wrong package to confirm this Dynamic Host Configuration Protocol server 50;
S11: form produces, and produces the report after this automatic test module 30 is tested by this form generation unit 70, checks for the tester.
Please cooperate and consult Fig. 3, it is the test result form example schematic of one embodiment of the present invention, and is as shown in the figure; If test result is normal, end product field (Result) can show PASS, if test result is undesired; End product field (Result) can show FAIL, and is as shown in the figure, wherein; Last two is negative testing, and this Dynamic Host Configuration Protocol server 50 should abandon after receiving the DHCPDISCOVERY mistake package that contains error field, and does not return the DHCPOFFER package; But this Dynamic Host Configuration Protocol server 50 can return the DHCPOFFER package, so test result is undesired, and report shows FAIL.
What need special instruction is; Much more no longer English proper nouns such as the DHCPDISCOVERY that is carried among the present invention, DHCPOFFER, DHCPREQUEST, DHCPACK, Transaction ID, yiaddr and Ciaddr are all has the noun that common knowledge the knowledgeable is known in this area, therefore to do explanation.
In sum; Because the present invention carries out functional test by 30 pairs of these Dynamic Host Configuration Protocol server 50 of this automatic test module; Not only can before this Dynamic Host Configuration Protocol server 50 dispatches from the factory, test, also can after tough body renewal or maintenance, carry out functional test to guarantee the machine quality.In addition, Auto-Test System of the present invention is avoided the tester because lack experience or careless mistake, causes erroneous judgement, or makes mistake when filling in the testing journal sheet, causes total quality to reduce, and causes company's loss.And, utilize storage element 60 of the present invention and this form generation unit 70 to store and the printing test result, convenient follow-up tracking and processing.In addition, compare with the manual detection mode, not only correctness is high to utilize Auto-Test System of the present invention, also can accelerate the time that QC detects, so the present invention has progressive and meets the important document of applying for patent of invention.
Below the present invention is done a detailed description, the above is merely a preferred embodiment of the present invention, when not limiting the scope that the present invention implements.Be that all equalizations of doing according to application range of the present invention change and modify etc., all should still belong in the patent covering scope of the present invention.

Claims (14)

1. the Auto-Test System of a Dynamic Host Configuration Protocol server, it is characterized in that in order to a Dynamic Host Configuration Protocol server (50) is carried out quality test said Auto-Test System comprises:
One packet processing unit (40) is in order to produce, to resolve, to send a plurality of packages;
One automatic test module (30); Be connected with said packet processing unit (40) and said Dynamic Host Configuration Protocol server (50), said automatic test module (30) is tested and is resolved said Dynamic Host Configuration Protocol server (50) through said packet processing unit (40); And
One operating unit (20) that is connected with said automatic test module (30) supplies a user (10) that said automatic test module (30) is operated and set.
2. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 1; It is characterized in that; Said automatic test module (30) comprises a positive test unit (31) and a negative testing unit (32); Said positive test unit (31) checks through said packet processing unit (40) whether the positive response of said Dynamic Host Configuration Protocol server (50) is correct, and said negative testing unit (32) checks through said packet processing unit (40) whether the inverse response of said Dynamic Host Configuration Protocol server (50) is correct.
3. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 2; It is characterized in that; Said positive test unit (31) produces and sends a positive test package (41) through said packet processing unit (40) and gives said Dynamic Host Configuration Protocol server (50), and a positive response package (42) to the said positive test unit (31) of said Dynamic Host Configuration Protocol server (50) passback is also resolved and transmitted to said packet processing unit (40).
4. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 3; It is characterized in that; Said positive test package (41) is a DHCPDISCOVERY package according to RFC 2131 standards, and said positive response package (42) is a DHCPOFFER package.
5. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 4; It is characterized in that; Said packet processing unit (40) is resolved after receiving said DHCPOFFER package, and by the Transaction ID in the said DHCPOFFER package of said positive test unit (31) inspection whether with said DHCPDISCOVERY package in Transaction ID identical.
6. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 3; It is characterized in that; Said positive test package (41) is a DHCPREQUEST package according to RFC 2131 standards, and said positive response package (42) is a DHCPACK package.
7. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 6; It is characterized in that; Said packet processing unit (40) is resolved after receiving said DHCPACK package; And by the Transaction ID in the said DHCPACK package of said positive test unit (31) inspection whether with said DHCPREQUEST package in Transaction ID identical, and check yiaddr field, whether checking obtains correct IP address.
8. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 3; It is characterized in that the network service access property of the IP address of being obtained by said Dynamic Host Configuration Protocol server (50) is checked in said positive test unit (31).
9. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 2; It is characterized in that said negative testing unit (32) produces and sends a negative testing package (43) through said packet processing unit (40) and gives said Dynamic Host Configuration Protocol server (50).
10. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 9 is characterized in that, said negative testing package (43) is that a DHCPDISCOVERY contains wrong package according to RFC 2131 standards.
11. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 1; It is characterized in that; Said automatic test module (30) comprises an authentication unit (33), and said authentication unit is verified the correctness of the passback package of said Dynamic Host Configuration Protocol server (50).
12. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 1; It is characterized in that; Have the storage element (60) of a storage detecting information, said storage element is connected with said automatic test module (30) and said operating unit (20).
13. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 12; It is characterized in that; Have the form generation unit (70) of a generation test result, said form generation unit is connected with said operating unit (20), said storage element (60) and said automatic test module (30).
14. the Auto-Test System of Dynamic Host Configuration Protocol server according to claim 1; It is characterized in that said automatic test module (30) is connected with said Dynamic Host Configuration Protocol server (50) through any mode that is selected from wired and the group that the wireless network connected mode is formed.
CN2010102581970A 2010-08-18 2010-08-18 Automatic testing system for dynamic host configuration protocol server Pending CN102377611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102581970A CN102377611A (en) 2010-08-18 2010-08-18 Automatic testing system for dynamic host configuration protocol server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102581970A CN102377611A (en) 2010-08-18 2010-08-18 Automatic testing system for dynamic host configuration protocol server

Publications (1)

Publication Number Publication Date
CN102377611A true CN102377611A (en) 2012-03-14

Family

ID=45795628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102581970A Pending CN102377611A (en) 2010-08-18 2010-08-18 Automatic testing system for dynamic host configuration protocol server

Country Status (1)

Country Link
CN (1) CN102377611A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039728A (en) * 2020-08-27 2020-12-04 中国科学院地质与地球物理研究所 Port communication test method and port communication test box

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003073116A1 (en) * 2002-02-26 2003-09-04 Teradyne, Inc. Technique for programming clocks in automatic test system
CN1719786A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Automatic testing system and method for command of command line interface of data communication apparatus
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003073116A1 (en) * 2002-02-26 2003-09-04 Teradyne, Inc. Technique for programming clocks in automatic test system
CN1719786A (en) * 2004-07-08 2006-01-11 中兴通讯股份有限公司 Automatic testing system and method for command of command line interface of data communication apparatus
CN101478449A (en) * 2009-01-22 2009-07-08 凌阳科技股份有限公司 Protocol automatic test method and system thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112039728A (en) * 2020-08-27 2020-12-04 中国科学院地质与地球物理研究所 Port communication test method and port communication test box
CN112039728B (en) * 2020-08-27 2021-05-18 中国科学院地质与地球物理研究所 Port communication test method and port communication test box

Similar Documents

Publication Publication Date Title
US20120023220A1 (en) Automatic testing system of dynamic host configuration protocol server
CN102064979B (en) Network fault restoration system, device and method
CN101662387A (en) System for detecting computer accessing situation in network and method thereof
CN102170589B (en) Method, system and terminal for network television detection
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN105897652A (en) Standard protocol based heterogeneous terminal dynamic access method
CN102594914A (en) Remote debugging method based on cloud platform
CN114301673A (en) Vulnerability detection method and device, electronic equipment and storage medium
CN106330483A (en) Information acquiring method, client device and server device
KR101730267B1 (en) Apparatus and method for checking conformance of substation automation equipment
US20070047448A1 (en) Network equipment testing method and system
CN106130774A (en) A kind of network fault diagnosis method and device
CN102377611A (en) Automatic testing system for dynamic host configuration protocol server
CN105703969B (en) Method, field device and the IP-based network of the accessibility of diagnostic network user
CN105262628A (en) Campus dormitory network management system based on multi-operator link sharing
CN107995059B (en) iOS network test strategy
CN109981324B (en) Fault positioning method, device, equipment and medium for interactive network television
KR101247988B1 (en) System and method for measuring service quality of web server
CN102510523A (en) Socket communication interactive testing method and network television testing system using same
US20050268122A1 (en) Devices and methods for validating network connections
CN106817279A (en) A kind of broadband-based network detecting method
CN107592374B (en) Correction method and system for domain name error resolution
CN102394893B (en) Method, server and system for inspecting communication protocol between terminal and server side
CN114944992B (en) Active defense gateway configuration detection method, device and system
CN105577464A (en) Dual stack user network detection method, apparatus and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120314