CN101783745B - System and method for testing a plurality of network ports - Google Patents

System and method for testing a plurality of network ports Download PDF

Info

Publication number
CN101783745B
CN101783745B CN2009100456687A CN200910045668A CN101783745B CN 101783745 B CN101783745 B CN 101783745B CN 2009100456687 A CN2009100456687 A CN 2009100456687A CN 200910045668 A CN200910045668 A CN 200910045668A CN 101783745 B CN101783745 B CN 101783745B
Authority
CN
China
Prior art keywords
port
network
unlatching
ports
test
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.)
Active
Application number
CN2009100456687A
Other languages
Chinese (zh)
Other versions
CN101783745A (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.)
HUANHONG ELECTRONIC (KUNSHAN) CO., LTD.
Original Assignee
HUANXU ELECTRONICS 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 HUANXU ELECTRONICS CO Ltd filed Critical HUANXU ELECTRONICS CO Ltd
Priority to CN2009100456687A priority Critical patent/CN101783745B/en
Publication of CN101783745A publication Critical patent/CN101783745A/en
Application granted granted Critical
Publication of CN101783745B publication Critical patent/CN101783745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a system and a method for testing a plurality of network ports. The system comprises a tested device containing a plurality of network ports, a switching device containing a plurality of output ports and input ports, and a testing device. The testing method comprises the following steps of: sending a control instruction by the testing device to control the opening and closing of the output port and input port of the switching device, wherein the input port and the output port are respectively connected with the network ports of the tested device in one-to-one correspondence; sending a testing instruction to the corresponding network port form the opened output port and input port by the testing device; sending back a response message by the network port which receives the testing instruction; judging whether the sent response message is received or not, and repeating the testing method until the complex network port finishes testing to acquire that the tested port normally operate or not. The invention can avoid the inconvenience of the prior art that the connecting wires are orderly inserted and plugged out when the ports of the network communication product are tested, and simultaneously reduces the probability of physical damage of each port caused by manual operation.

Description

Plurality of network ports test macro and method
Technical field
The present invention relates to a kind of plurality of network ports test macro and method, relate in particular to a kind of plurality of network ports test macro and method tested device.
Background technology
For the satisfied network on-line that increases day by day and the demand of data passes; Many network communication products with a plurality of network ports are provided at present on the market; For example router (Router) helps the user to be engaged in the activity that connects network more expediently through the network communication product of multiport.Before these network communication products were dispatching from the factory, the running that each network port is tested to confirm port normally was a very important job.
But in the middle of known method of testing; Because computer has only a LAN port to can be used to connect network communication product mostly and tests; Therefore must rely on operating personnel between computer and many network ports product to be measured; Constantly change the port of many network ports product, so that accept the test of computer one by one, make that the efficient of test is very low and cost of labor is high.
In addition; Also have between computer and the network communication product that possesses multiport to be tested, test as intermediary through a hub, for example publication number is the application case of CN1210269; Two network cards are set on computers; Link hub and product to be measured with connecting line respectively, computer will detect the package of usefulness and see off from the network channel of connecting hub, pass package back computer through the channel that is connected with product to be measured at last; Whether whether the package of comparing computer output again and passing back is identical, normal to judge product to be measured.But this programme must the extra network card that is provided with, and causes cost to increase.If need use instead and also need dismantle, change hardware when another computer is tested, very inconvenience.
In order to improve efficient and the convenience to a plurality of network port tests of network communication product, the present invention proposes a kind of plurality of network ports test macro and method, specifies as follows.
Summary of the invention
Technical problem to be solved by this invention is in order to improve like above-mentioned inconvenient and inefficient puzzlement when the product with a plurality of network ports is tested; And a kind of plurality of network ports test macro and method thereof are provided, to reach the effect that promotes testing efficiency and increase convenience.
The present invention solves above-mentioned technical problem through following technical proposals: a kind of plurality of network ports test macro, it comprises: a tested device, a switching device shifter and a testing apparatus, testing apparatus comprise one first a signal port and a test module again.Tested device comprises the plurality of networks port, and switching device shifter then comprises plural I/O port and one first port that is connected with the first signal port, and this plural number I/O port and this plurality of network ports connect one to one respectively; Test module transmits a control command through the first signal port, in order to opening wherein two of I/O port, and closes remaining I/O port, and two I/O ports that are unlocked are respectively first and open I/O port and second and open I/O port.
Test module sends a test instruction, opens I/O port by first and is sent to the corresponding network port, and tested device then is sent to second of switching device shifter with test instruction and opens I/O port; Wherein, Second of switching device shifter is opened I/O port and is produced a response message according to this test instruction; Former transfer path inverted sequence through this test instruction passes back to testing apparatus; Testing apparatus can be judged in the tested device according to having or not of response message, receive the whether normal operation of the network port of this test instruction.
Preferably, this testing apparatus is provided with a network address through this first signal port respectively for each I/O port, and these network addresss are to be positioned at the same network segment, and this network address of each I/O port is set to different VLANs.
Preferably, this test instruction comprises this network address of this second unlatching I/O port, and this test instruction through this tested device, is sent to this second unlatching I/O port that is arranged on different virtual LAN through this first unlatching I/O port.
Preferably, this first signal port or this first port are one to be compatible with the PORT COM of RS232 standard interface.
The present invention also provides another kind of plurality of network ports test macro, and its characteristics are that it comprises:
One tested device, it comprises this plurality of network ports, and one second port;
One switching device shifter, this switching device shifter is a three-tier switch, comprises plural I/O port and one first port, these I/O ports these network ports that connect one to one respectively;
One testing apparatus, it comprises:
One first signal port connects this first port;
One second signal port connects this second port, and this testing apparatus is provided with a network address through this second signal port to this tested device;
One test module; Transmit a control command through this first signal port and give this switching device shifter; Opening one of them these I/O port, and close remaining these I/O port, this test module also sends a test instruction; Be sent to corresponding this network port that connects through this I/O port of opening, make this tested device receive this test instruction;
Wherein, This tested device produces a response message according to this test instruction; This network port and corresponding this I/O port that connects through receiving this test instruction arrive this testing apparatus; Make this testing apparatus according to the having or not of this response message, judge that this network port that receives this test instruction in this tested device could normal operation.
Preferably, this test module sends this test instruction to this tested device according to this network address, and requires this tested device response.
Preferably, this tested device is sent this response message when receiving this test instruction, this testing apparatus when receiving this response message, but judge in this tested device that this network port that transmits this test instruction is normal operation.
Preferably, this first signal port, this second signal port, this first port or this second port are one to be compatible with the PORT COM of RS232 standard interface.
In order to achieve the above object, the present invention provides a kind of plurality of network ports method of testing again according to a kind of scheme wherein, and it may further comprise the steps:
Testing apparatus sends a control command and controls a wherein I/O port of switching device shifter unlatching, and this switching device shifter comprises plural I/O port, and the plurality of network ports of the corresponding one by one tested device of difference, and control command is also closed remaining I/O port; Testing apparatus also sends a test instruction, is sent to the corresponding network port by the I/O port of opening; When tested device received this test instruction, the network port that instructs through acceptance test passed through corresponding I/O port, passes a response message back; Testing apparatus judges whether to receive the response message of sending back, if the network port that then will pass response message back is recorded as normally; At last, send another control command, after closing the I/O port of former unlatching and opening another I/O port, return the step of sending test instruction and continue to carry out, all accomplish test up to plurality of network ports.
The present invention also provides another kind of plurality of network ports method of testing, and its characteristics are that it comprises the following steps:
(a) testing apparatus sends a control command; Control a switching device shifter and open wherein two of these I/O ports, and control closes remaining these I/O port, said two these I/O ports are respectively one first and open I/O port and put in order at this first one second unlatching I/O port after opening I/O port; Wherein, This switching device shifter is to be Layer 2 switch, contains plural I/O port, respectively the plurality of network ports of a corresponding one by one tested device;
(b) this testing apparatus and send a test instruction, this test instruction first is opened I/O port and is sent to this corresponding network port of this tested device through this, again through corresponding another this network port, is sent to this and second opens I/O port;
When (c) this second unlatching I/O port receives this test instruction,, oppositely transmit a response message through transmitting the path of this test instruction;
(d) this testing apparatus judges whether to receive this response message of passing back, if then with this first unlatching I/O port and these corresponding respectively network ports of this second unlatching I/O port, be recorded as normal operation;
(e) this testing apparatus sends another control command; With order another I/O port behind this second unlatching I/O port; Open and be this second unlatching I/O port; And close and formerly should second open I/O port, and return execution in step (b), to order this last I/O port opened into this second open I/O port and through test till;
(f) this testing apparatus another control command of redispatching; Close former this first unlatching I/O port and former this second unlatching I/O port; Again order another I/O port after former this first unlatching I/O port is opened and be this first unlatching I/O port; Reach order another I/O port unlatching behind this first unlatching I/O port of newly opening and be this second unlatching I/O port; And return execution in step (b), opening respectively at two last these I/O ports to order is this first unlatching I/O port and this second unlatching I/O port, and till the process test.
Preferably, in the step (d), if do not receive this response message, then direct execution in step (e).
The present invention also provides the third plurality of network ports method of testing, and its characteristics are that it comprises the following steps:
(a) testing apparatus send a control command control a switching device shifter open these I/O ports wherein the two; And remaining these I/O port is closed in control; Said two these I/O ports are respectively one first and open I/O port and put in order at this first one second unlatching I/O port after opening I/O port, and wherein, this switching device shifter is a Layer 2 switch; Contain plural I/O port, respectively the plurality of network ports of a corresponding one by one tested device;
(b) this testing apparatus and send a test instruction, this test instruction first is opened I/O port and is sent to this corresponding network port of this tested device through this, again through corresponding another this network port, is sent to this and second opens I/O port;
When (c) this second unlatching I/O port receives this test instruction,, oppositely transmit a response message through transmitting the path of this test instruction;
(d) this testing apparatus judges whether to receive this response message of passing back, if then with this first unlatching I/O port and these corresponding respectively network ports of this second unlatching I/O port, be recorded as normal operation;
(e) this testing apparatus sends another control command; Close this first unlatching I/O port; This second is opened I/O port and opens to this and first open I/O port, and opening sequence after another I/O port second open I/O port as this, and return execution in step (b); Opening respectively at two last these I/O ports to order is this first unlatching I/O port and this second unlatching I/O port, and till the process test.
Preferably, if judgement does not receive this response message in step (d), then directly carry out the following step:
Send another control command; With order another I/O port after this second unlatching I/O port; Open and be this second unlatching I/O port; And close and formerly should second open I/O port, and return execution in step (b), to order this last I/O port opened into this second open I/O port and through test till;
Corresponding this network port that connects of this first unlatching I/O port is recorded as unusually;
Send another control command; Close former this first unlatching I/O port and former this second unlatching I/O port; Order opened to this at former this first another I/O port after opening I/O port first open I/O port, and this first another I/O port after opening I/O port of opening new of order, opening is this second unlatching I/O port; And return execution in step (b); To putting in order at two last I/O ports, opening respectively is this first unlatching I/O port and this second unlatching I/O port, and through till the test.
Positive progressive effect of the present invention is: at first can exempt a plurality of network ports of network communication product are tested, must insert one by one and the inconvenience when choosing connecting line.Simultaneously, reduce because of the unexpected probability that each ports physical is damaged of manual operation.In addition, also can through simple and easy and fast test mode learn whether each network port can normally play a role.Test formality before above-mentioned effect can be dispatched from the factory to Related product provides significantly and definite help, thereby technological means provided by the present invention has value and necessity of protecting in fact.
Description of drawings
Fig. 1 is the calcspar of first preferred embodiment of plurality of network ports test macro of the present invention.
Fig. 2 is the second preferred embodiment calcspar of plurality of network ports test macro of the present invention.
Fig. 3 is the first preferred embodiment flow chart of plurality of network ports method of testing of the present invention.
Fig. 4 is the second preferred embodiment flow chart of plurality of network ports method of testing of the present invention.
Fig. 5 is the another preferred embodiment flow chart of plurality of network ports method of testing of the present invention.
[primary clustering symbol description]
10, the 10a tested device
102, the 102a~102d network port
104 second ports
20 switching device shifters
202,202a~202d I/O port
204 first ports
30, the 30a testing apparatus
302 first signal ports
304 test modules
306 second signal ports
S401~S413 process step
S501~S515 process step
S601~S619 process step
Embodiment
The present invention provides a kind of simple and easy and plurality of network ports test macro and method easily, is used for the device under test with a plurality of network ports is carried out the detection that port could normal operation, the effect that improve testing efficiency to reach, reduces testing cost.
For more detailed explanation and explanation is provided, below will cooperate diagram to explain orally, more clearly and clearly to disclose technology used in the present invention and means.
Fig. 1 is the calcspar of a kind of plurality of network ports test macro embodiment provided by the present invention, comprises a tested device 10, a switching device shifter 20 and a testing apparatus 30 in the present embodiment.Comprise plurality of networks port one 02 in the tested device 10; Comprise a plurality of I/O ports 202 and one first connectivity port 204 in the switching device shifter 20; 30 of testing apparatuss comprise one first a signal port 302 and a test module 304.
Tested device 10 and switching device shifter 20 distinguished corresponding one by one connections through plurality of network ports 102 with plural I/O port 202, network port 102a as shown in Figure 1 connected mode to 102d and I/O port 202a to 202d.30 of testing apparatuss pass through the first signal port 302 and are connected with first connectivity port 204.
Testing apparatus 30 is connected through the first signal port 302 and first connectivity port 204; For each I/O port 202 of switching device shifter 20 is provided with a network address respectively; This same network address all is positioned at the same network segment, and each network address is set to different Virtual Local Area Network.
In addition; Testing apparatus 30 sends the network port 102 that instructs to tested device 10 with test module 304 and detects; Comprise from the first signal port 302 and transmit a control command, be used for controlling the unlatching of a plurality of I/O ports 202 or closing to first connectivity port 204.Present embodiment is with control command control switch device 20 each wherein two ports of opening I/O port 202; Describe for convenient; In the present embodiment these two ports are called first respectively and open the I/O port and the second unlatching I/O port, and remaining I/O port 202 is set to closing state.
Open I/O port when setting first and second; After making these two ports be opening; Test module 304 also sends out a test instruction; Comprise in the instruction second open I/O port (is example with 202b) the network address be target, be sent to switching device shifter 20 through the first signal port 302 and first connectivity port 204 after, control the first unlatching I/O port of opening (is example with 202a) through control command; Continue to be transferred to first and open the network port 102a of the corresponding connection of I/O port 202a; And send to tested device 10, and by tested device 10 test instruction is delivered to network port 102b again, be sent to the corresponding second unlatching I/O port 202b that connects at last.
What this must explain be; When each network address of I/O port 202 is set to different VLANs; If each network address is not at the same network segment; Under the situation of shortage router, promptly can't transmit packet message, but in the present embodiment, all be located at the same network segment owing to be positioned at the network address of each I/O port 202 of different virtual LAN as the communication relaying; And through the corresponding one by one directly connection of each I/O port 202 and each network port 102, but so still acceptance test module 304 test instruction of being sent test.
When test instruction when first of switching device shifter 20 is opened I/O port 202a and is sent to the coupled network port 102a that connects; If this network port 102a and 102b function and running are normal; Then it must be sent to second with test instruction and open I/O port 202b; Make switching device shifter 20 learn that a test instruction transmits, and return a response message according to the content of test instruction.In the time will being sent response message by switching device shifter 20; Because the network port 102a, the 102b that transmit test instruction are only arranged; And the first unlatching I/O port 202a that links to each other with network port 102a opens; And the first unlatching I/O port 202a and second opens I/O port 202b and is positioned at different VLANs, so response message only can be passed back from same transmission pipeline inverted sequence.
After the first unlatching I/O port 202a of to be switched device 20 receives response message, transfer to first connectivity port 204 again and pass back to testing apparatus 30.At this moment; Testing apparatus 30 is promptly because receive response message; And learn respectively with first and open I/O port 202a and second but to open network port 102a and the 102b that I/O port 202b is connected be normal operation; Can be with this result record in addition, and more in an identical manner, continue to open and close the I/O port 202 of various combination with control command; All test up to all network ports 102 and to finish, whether normal operation or be under the abnormality of each network port 102 judged in the record after accomplishing according to whole tests; Perhaps when test back one find to have can't normal operation the network port 102 time immediately tested device 10 is judged to be defective products.
Is example with computer as the testing apparatus 30 of present embodiment, and it is connected through the RS232 standard interface with switching device shifter 20, and also promptly the first signal port 302 and first connectivity port 204 are the PORT COM compatible with RS-232, for example COM port.Switching device shifter 20 then is connected these LAN ports (LAN Port) respectively with grid line with tested device 10, tested device 10 to be measured, and a hub (HUB) for example, and switching device shifter 20 is Layer 2 switch (Layer 2 Switch).
Test module 304 can be hyper terminal machine (HyperTerminal); Each I/O port 202 in the switching device shifter 20 is sent unlatching (Forward Mode) or closes the instruction of (Disable); In the present embodiment; Control command can control switch device 20 makes at every turn that wherein two I/O ports 202 are for opening, and other are all closed, and are divided under the situation of different virtual LAN so that open I/O port at first and second that open; Form single transmission channel, accomplish the purpose of the above-mentioned port one of test network one by one 02.The explanation of following present embodiment is an example with network port 102a all, but other port also can be accomplished test in the same manner.
Open the single transmission channel that I/O port 202a and second opens between I/O port 202b when configuring first; Again by the hyper terminal machine with second open I/O port 202b the network address be target, assign the Ping instruction and open I/O port 202b to send response request (ICMP echo request) package to the second.As stated; But if this network port 102a to be measured and 102b normal operation; Second opens I/O port 202b can receive the response Request Packet through passing on of network port 102a and 102b; And from same paths reverse reverting one response message, response message comprises the packet size, detecting number of times and response time of transmission etc., and the hyper terminal machine can be through receiving whether network port 102a and the 102b that above-mentioned response message judges that this is tested is normal operation.Otherwise; If network port 102a or 102b can't normally receive the response request package; Second opens I/O port 202b promptly can't transmit response message according to this, and behind a preset detecting effluxion, hyper terminal machine place can obtain the information that overtime does not have response (Timed Out); Then the network port 102a of this time of decidable test or 102b have at least one can't normal operation; And can be with this situation record in addition, wait for that all tests post analysis that finishes goes out the network port that really can't operate which is, or this tested device 10 is judged to subsequent jobs such as defective products.
Fig. 2 is the calcspar of another kind of plurality of network ports test macro embodiment provided by the present invention; With embodiment difference shown in Figure 1; Be that the testing apparatus 30a in the present embodiment also comprises one second signal port 306; And tested device 10a also comprises one second port one 04, and it is provided with a network address through being compatible with first signal port 302 of RS232 standard interface and being connected of first connectivity port 204 to switching device shifter 20; And, tested device 10a also is provided with a network address by being compatible with second signal port 306 of RS232 standard interface and being connected of second port one 04.In addition, the test module 304 of present embodiment is only opened one of them I/O port (for example 202a) with control command control switch device 20 and is closed other I/O port (202b~202d); Test module 304 also sends out test instruction; It is described Ping instruction embodiment illustrated in fig. 1; The network address that comprises tested device 10a in the instruction is a target, the response request package is sent to switching device shifter 20 from testing apparatus 30a after, control the I/O port 202a that opens through control command; Continue to be transferred to the network port 102a with the corresponding connection of this I/O port 202a, and send to tested device 10a.
When test instruction when the specific I/O port (like 202a) of switching device shifter 20 is sent to the coupled network port that connects (like 102a); If this network port 102a function and running normally are as good as shape; Then it must be with the Ping command reception; Make tested device 10a learn that Ping instruction transmits, and return a response message according to the content of test instruction.When tested device 10a will send response message, owing to only there is the I/O port 202a that links to each other with the network port 102a of acceptance test instruction to open, response message only can be passed back from same transmission pipeline.
After the I/O port 202a of to be switched device 20 receives response message, transfer to first connectivity port 204 again and pass back to testing apparatus 30a.At this moment; Testing apparatus 30a is promptly because receive response message; And learn that but the network port 102a that is connected with I/O port 202a is normal operation, can be with this result record in addition, and more in an identical manner; Continuation is with other I/O port (202b is to 202d) of control command control, and test network port one 02b could normal operation to 102d one by one.
Switching device shifter 20 in the present embodiment is connected these LAN ports (LAN Port) with tested device 10a respectively with grid line, tested device 10a to be measured, and a router (Router) for example, and switching device shifter 20 is three-tier switch (Layer 3 Switch).
Fig. 3 is a kind of plurality of network ports method of testing embodiment flow chart provided by the present invention, please in the lump with reference to the calcspar of Fig. 2.At first send a control command by test module 304; One of them of the I/O port 202 of control switch device 20 (is example with 202a) is opening; And close remaining I/O port 202 (S401); Switching device shifter 20 comprises a plurality of I/O ports 202, and the plurality of networks port one 02 that is comprised with a tested device 10a is corresponding one by one respectively, and the mode of opening or closing each I/O port 202 is please with reference to explanation embodiment illustrated in fig. 1.
Then test module 304 sends a test instruction; It also is the above-mentioned Ping instruction of having explained; According to the network address of tested device 10a, the single-pathway that the network port 102a that connects through correspondence from the I/O port 202a that opens is constituted sends response request (S403) to tested device 10a; Then, after tested device 10a received test instruction, this network port 102a that instructs through acceptance test passed a response message (S405) back through I/O port 202a; Testing apparatus 30a judges whether to receive a response message (S407) of passing back according to identical path from tested device 10a, if do not receive response message, then writes down this network port 102a that answers the acceptance test instruction and is unusual (S409); Otherwise if receive response message smoothly; But the network port 102a that then returns response message with this acceptance test instruction, simultaneously is recorded as normal operation (S411); Behind the state of record network port 102a (S409 or S411), close the I/O port 202a of this unlatching, send a control command again and open another I/O port (like 202b); And return above-mentioned step of testing (S403 below) with test instruction; Continue whether normal operation of the corresponding network port 102b of test, and the rest may be inferred, up to each network port 102 on the tested device 10a all accomplishes test till (S413).The detailed technology means of above-mentioned transmission test instruction and passback response message see also above-mentioned explanation embodiment illustrated in fig. 2.
In other embodiments, one of them network port 102 of step S409 record can't normal operation after, also can directly end test program, directly tested device 10 is judged to be defective products, carry out other disposal again.
Fig. 4 is an another kind of plurality of network ports method of testing embodiment flow chart provided by the present invention, and below explanation please cooperate with reference to calcspar shown in Figure 1.At first by test module 304 sending controling instructions; Open wherein two I/O ports 202 of switching device shifter 20; The I/O port 202 of one of them unlatching this be called first open I/O port (is example with 202a) (S501), another is called second and opens I/O port; And close remaining I/O port 202 (S503), and second open the putting in order after first opens I/O port 202a (is example with 202b) of I/O port.
Test module 304 then transmits a test instruction; Open I/O port 202a from first and be sent to the corresponding network port 102a that connects; From opening the corresponding network port 102b of I/O port 202b, then test instruction is passed to second and open I/O port 202b (S505) again with second; If switching device shifter 20 is after receiving test instruction; Oppositely pass a response message (S507) back according to the bang path of test instruction; Also be; From second unlatching I/O port 202b and the corresponding network port 102b, pass back through network port 102a and the first corresponding unlatching I/O port 202a thereof; Then, judge whether to receive response message (S509) by testing apparatus 30a.Step S505 sees also among the embodiment shown in Figure 1 to the detailed transfer mode of S509, opens the explanation that I/O port and second is opened I/O port about first.
If testing apparatus 30 receives response message, then can be recorded as normal operation (S511) with opening corresponding network port 102a and the 102b of I/O port 202b with the first unlatching I/O port 202a and second.
Next then send a control command again; This I/O port 202b as the second unlatching I/O port is closed; Open another I/O port that puts in order behind I/O port 202b again; For example 202c behind the second new unlatching I/O port, carries out the test program below the step S505 once more; Test corresponding with I/ O port 202a and 202c respectively network port 102a and 102c; Whether can transmit test instruction smoothly and pass response message back, open I/O port (being I/O port 202d in the present embodiment) at a last I/O port as second up to opening to put in order, and with same first open I/O port 202a collocation and test (S513) till the back.
When same first open I/O port 202a collocation put in order last second open I/O port 202d test finish after; Send a control command again; To close as the I/O port 202a of the first unlatching I/O port; Another I/O port (like 202b) that unlatching puts in order after I/O port 202a is opened I/O port as new first; And return step S503, open the I/O port that puts in order after first opens I/O port 202b, open I/O port (like 202c) as second; Proceed the test program explained orally as below the above-mentioned step S503, up to opened first open I/O port and second and open I/O port to be respectively the most last two I/O ports (like 202c, 202d) of order till (S515).And judge whether to receive (S509) after the response message, if fail correctly to receive response message, then in addition the network port of testing 102 is not noted down, and the direct program below the execution in step S513.
After testing according to above-mentioned execution mode, the record after obtaining the network port 102 tested in twos can analyze the normal or abnormal case that tested device 10a goes up each network port 102.
Fig. 5 is an another kind of plurality of network ports method of testing embodiment flow chart provided by the present invention, still please cooperate with reference to Fig. 1.The step S601 to S607 of present embodiment is identical to S507 with step S501 embodiment illustrated in fig. 4, sees also above-mentioned explanation.
The place different with implementing procedure shown in Figure 4; When being to judge whether to receive response message (S609); If testing apparatus 30 is received response signal, be about to open corresponding network port 102a and the 102b of I/O port (like 202a and 202b) with first and second respectively and be recorded as normal operation (S611); Then close first and open I/O port 202a; And will be originally second open I/O port 202b and open to new first and open I/O port; Select to open another I/O port that puts in order behind the first new unlatching I/O port 202b again; Open I/O port as new second,, and open I/ O port 202b and 202c carries out the test program below the step S605 with first and second of new unlatching like 202c (S603); Is second to open I/O port up to opening sequence at last I/O port (like 202d), and accomplishes (S613) till the test.
Otherwise; If do not receive response message; Then as step S513 shown in Figure 4; With identical first open I/O port (like 202a) collocation put in order after new second open I/O port 202c; Test below returning step S605, up to opening sequence till a last I/O port is opened I/O port as second and is opened I/O port 202a to accomplish test with same first (S615), this interval scale first open I/O port can't with any as second open I/O port other I/O ports transmit response message; Therefore will be recorded as (S617) unusually with the corresponding network port 102a of the first unlatching I/O port 202a; With step S515 shown in Figure 4, carry out the selection (S619) of the first unlatching I/O port successively more for another example, detailed explanation sees also said step S515.
Above-mentioned difference embodiment illustrated in fig. 5 and embodiment illustrated in fig. 4 is; No matter the result of detection embodiment illustrated in fig. 4 how; All the Ping instruction is carried out in pairing in twos in regular turn, if N is I/O port 202 numbers that are connected with the network port 102, testing time is N (N-1)/2; And it is embodiment illustrated in fig. 5; The method that it adopted; But find as first open I/O port particular port be normal operation after, just dispense other combinations of testing with this particular port, test once no longer from the beginning to the end; Can significantly reduce the time and the number of times of detection, and reach identical detection effect.
Comprehensive above each embodiment that is provided; The present invention provides a kind of easy and efficient plurality of network ports measuring technology; Utilize the opening and closing of each I/O port of convenient mode control switch device, and, can measure the situation of each network connection port one by one with easy test instruction; The manpower that has effectively reduced the damage probability that the constantly artificial plug of need is produced in the common method and expended is expensive; Do not need to be provided with especially on computers extras such as many network cards yet, producing online QC test, great help is provided for network communication product.
More than cited project be merely and be suitable for part preferred embodiment of the present invention; Be not to be used for limiting the category that the present invention is suitable for; If any other purposes according to the invention or adopt other not material change's technological means of the present invention, all belong to the scope of protection that the present invention is contained.

Claims (13)

1. plurality of network ports test macro is characterized in that it comprises:
One tested device, it comprises this plurality of network ports;
One switching device shifter, this switching device shifter is a Layer 2 switch, comprises plural I/O port and one first port, these I/O ports these network ports that connect one to one respectively;
One testing apparatus, it comprises:
One first signal port connects this first port;
One test module; Transmit a control command through this first signal port and give this switching device shifter; To open two in these I/O ports; Two these I/O ports that are unlocked are respectively one first and open I/O port and one second unlatching I/O port, and close remaining I/O port, and this test module also sends a test instruction; Be sent to corresponding this network port that connects through this first unlatching I/O port, this tested device also is sent to this test instruction this second unlatching I/O port of switching device shifter;
Wherein, This of this switching device shifter second opened I/O port; Produce a response message according to this test instruction; Former transfer path inverted sequence through this test instruction passes back to this testing apparatus, makes this testing apparatus according to the having or not of this response message, and judges the whether normal operation of this network port that receives this test instruction in this tested device.
2. plurality of network ports test macro as claimed in claim 1; It is characterized in that; This testing apparatus is provided with a network address through this first signal port respectively for each I/O port; These network addresss are to be positioned at the same network segment, and this network address of each I/O port is set to different VLANs.
3. plurality of network ports test macro as claimed in claim 2; It is characterized in that; This test instruction comprises this network address of this second unlatching I/O port; This test instruction is sent to this second unlatching I/O port that is arranged on different virtual LAN through this first unlatching I/O port and this tested device.
4. like any described plurality of network ports test macro in the claim 1 to 3, it is characterized in that this first signal port or this first port are one to be compatible with the PORT COM of RS232 standard interface.
5. plurality of network ports test macro is characterized in that it comprises:
One tested device, it comprises this plurality of network ports, and one second port;
One switching device shifter, this switching device shifter is a three-tier switch, comprises plural I/O port and one first port, these I/O ports these network ports that connect one to one respectively;
One testing apparatus, it comprises:
One first signal port connects this first port;
One second signal port connects this second port, and this testing apparatus is provided with a network address through this second signal port to this tested device;
One test module; Transmit a control command through this first signal port and give this switching device shifter; Opening one of them I/O port, and close remaining I/O port, this test module also sends a test instruction; Be sent to corresponding this network port that connects through this I/O port of opening, make this tested device receive this test instruction;
Wherein, This tested device produces a response message according to this test instruction; This network port and corresponding this I/O port that connects through receiving this test instruction transmit this response message to this testing apparatus; Make this testing apparatus according to the having or not of this response message, judge that this network port that receives this test instruction in this tested device could normal operation.
6. plurality of network ports test macro as claimed in claim 5 is characterized in that, this test module sends this test instruction to this tested device according to this network address, and requires this tested device response.
7. plurality of network ports test macro as claimed in claim 5; It is characterized in that; This tested device is sent this response message when receiving this test instruction; This testing apparatus when receiving this response message, but judge in this tested device that this network port that transmits this test instruction is normal operation.
8. like any described plurality of network ports test macro in the claim 5 to 7, it is characterized in that this first signal port, this second signal port, this first port or this second port are one to be compatible with the PORT COM of RS232 standard interface.
9. a plurality of network ports method of testing is characterized in that it comprises the following steps:
(a) testing apparatus sends a control command and controls a wherein I/O port of switching device shifter unlatching; And control and close remaining I/O port, wherein, this switching device shifter is a three-tier switch; Contain plural I/O port, respectively the plurality of network ports of a corresponding one by one tested device;
(b) this testing apparatus and send a test instruction, this test instruction is sent to this corresponding network port through this I/O port of opening;
When (c) this tested device receives this test instruction,, pass a response message back through this network port and this corresponding I/O port that receives this test instruction;
(d) this testing apparatus judges whether to receive this response message of passing back, if this network port that then will pass this response message back is recorded as normal operation;
(e) this testing apparatus sends another control command and cuts out this I/O port of unlatching, and after opening another I/O port of this switching device shifter, returns execution in step (b), all accomplishes test up to this plurality of network ports.
10. a plurality of network ports method of testing is characterized in that it comprises the following steps:
(a) testing apparatus sends a control command; Control a switching device shifter and open wherein two I/O ports, and control closes remaining I/O port, said two these I/O ports are respectively one first and open I/O port and put in order at this first one second unlatching I/O port after opening I/O port; Wherein, This switching device shifter is to be Layer 2 switch, contains plural I/O port, respectively the plurality of network ports of a corresponding one by one tested device;
(b) this testing apparatus and send a test instruction, this test instruction first is opened I/O port and is sent to this corresponding network port of this tested device through this, again through corresponding another this network port, is sent to this and second opens I/O port;
When (c) this second unlatching I/O port receives this test instruction,, oppositely transmit a response message through transmitting the path of this test instruction;
(d) this testing apparatus judges whether to receive this response message of passing back, if then with this first unlatching I/O port and these corresponding respectively network ports of this second unlatching I/O port, be recorded as normal operation;
(e) this testing apparatus sends another control command; With order another I/O port after this second unlatching I/O port; Open and be this second unlatching I/O port; And close and formerly should second open I/O port, and return execution in step (b), to order this last I/O port opened into this second open I/O port and through test till;
(f) this testing apparatus another control command of redispatching; Close former this first unlatching I/O port and former this second unlatching I/O port; Again order another I/O port after former this first unlatching I/O port is opened and be this first unlatching I/O port; Reach order another I/O port unlatching behind this first unlatching I/O port of newly opening and be this second unlatching I/O port; And return execution in step (b), opening respectively at two last I/O ports to order is this first unlatching I/O port and this second unlatching I/O port, and till the process test.
11. plurality of network ports method of testing as claimed in claim 10 is characterized in that, in the step (d), if do not receive this response message, and then direct execution in step (e).
12. a plurality of network ports method of testing is characterized in that it comprises the following steps:
(a) testing apparatus sends a control command and controls wherein two I/O ports of switching device shifter unlatching; And remaining I/O port is closed in control; Said two these I/O ports are respectively one first and open I/O port and put in order at this first one second unlatching I/O port after opening I/O port, and wherein, this switching device shifter is a Layer 2 switch; Contain plural I/O port, respectively the plurality of network ports of a corresponding one by one tested device;
(b) this testing apparatus and send a test instruction, this test instruction first is opened I/O port and is sent to this corresponding network port of this tested device through this, again through corresponding another this network port, is sent to this and second opens I/O port;
When (c) this second unlatching I/O port receives this test instruction,, oppositely transmit a response message through transmitting the path of this test instruction;
(d) this testing apparatus judges whether to receive this response message of passing back, if then with this first unlatching I/O port and these corresponding respectively network ports of this second unlatching I/O port, be recorded as normal operation;
(e) this testing apparatus sends another control command; Close this first unlatching I/O port; This second is opened I/O port and opens to this and first open I/O port, and opening sequence after another I/O port second open I/O port as this, and return execution in step (b); Opening respectively at two last these I/O ports to order is this first unlatching I/O port and this second unlatching I/O port, and till the process test.
13. plurality of network ports method of testing as claimed in claim 12 is characterized in that, if judgement does not receive this response message in step (d), then directly carries out the following step:
Send another control command; With order another I/O port after this second unlatching I/O port; Open to this and second open I/O port, and close and formerly should second open I/O port, and return execution in step (b); Do not receive response message yet to having opened for this second unlatching I/O port and till through test at this last I/O port in proper order, this network port that so this first unlatching I/O port correspondence is connected is recorded as unusually;
Send another control command; Close former this first unlatching I/O port and former this second unlatching I/O port; Order opened to this at former this first another I/O port after opening I/O port first open I/O port, and this first another I/O port after opening I/O port of opening new of order, opening is this second unlatching I/O port; And return execution in step (b); To putting in order at two last these I/O ports, opening respectively is this first unlatching I/O port and this second unlatching I/O port, and through till the test.
CN2009100456687A 2009-01-21 2009-01-21 System and method for testing a plurality of network ports Active CN101783745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100456687A CN101783745B (en) 2009-01-21 2009-01-21 System and method for testing a plurality of network ports

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100456687A CN101783745B (en) 2009-01-21 2009-01-21 System and method for testing a plurality of network ports

Publications (2)

Publication Number Publication Date
CN101783745A CN101783745A (en) 2010-07-21
CN101783745B true CN101783745B (en) 2012-03-14

Family

ID=42523570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100456687A Active CN101783745B (en) 2009-01-21 2009-01-21 System and method for testing a plurality of network ports

Country Status (1)

Country Link
CN (1) CN101783745B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474501A (en) * 2019-01-11 2019-03-15 深圳市菲菱科思通信技术股份有限公司 Switch test device and method

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447591B (en) * 2010-12-31 2015-08-26 北京谊安医疗系统股份有限公司 Test the system and method for multiple serial device
CN102882736A (en) * 2011-07-15 2013-01-16 鸿富锦精密工业(深圳)有限公司 Point-to-point interface testing method and system
CN102946286B (en) * 2012-10-26 2015-05-20 株洲南车时代电气股份有限公司 Method, device and system for controlling detection of equipment
CN103795579A (en) * 2012-10-26 2014-05-14 上海斐讯数据通信技术有限公司 Switch test system and switch test method
CN105530056A (en) * 2014-09-28 2016-04-27 全智科技股份有限公司 Harmonic power loss testing device
CN104320313A (en) * 2014-11-28 2015-01-28 上海斐讯数据通信技术有限公司 System and method for testing ports of interchanger
CN104506396B (en) * 2015-01-23 2018-02-13 盛科网络(苏州)有限公司 The method of testing and system of the full port Full Mesh performances of equipment
CN106603332A (en) * 2016-12-13 2017-04-26 太仓市同维电子有限公司 Method for simultaneously testing internet accesses of to-be-tested product
CN109218059B (en) 2017-07-06 2021-09-14 华为技术有限公司 Method, equipment and system for realizing fault detection
CN113407401B (en) * 2021-06-18 2023-12-05 北京汇钧科技有限公司 Automatic test method and device, electronic equipment and storage medium
CN114826992B (en) * 2022-04-08 2023-10-31 南京芯驰半导体科技有限公司 Ethernet self-test system and method for vehicle-mounted gateway

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421624B1 (en) * 1999-02-05 2002-07-16 Advantest Corp. Multi-port device analysis apparatus and method and calibration method thereof
CN1549531A (en) * 2003-05-21 2004-11-24 华为技术有限公司 Apparatus for testing network equipment transmission performance and method thereof
CN1619705A (en) * 2003-11-19 2005-05-25 华为技术有限公司 Testing method of multiport storage
CN101072047A (en) * 2007-06-11 2007-11-14 江苏省电信有限公司南京分公司 DSLAN port fast detecting device and its detecting method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421624B1 (en) * 1999-02-05 2002-07-16 Advantest Corp. Multi-port device analysis apparatus and method and calibration method thereof
CN1549531A (en) * 2003-05-21 2004-11-24 华为技术有限公司 Apparatus for testing network equipment transmission performance and method thereof
CN1619705A (en) * 2003-11-19 2005-05-25 华为技术有限公司 Testing method of multiport storage
CN101072047A (en) * 2007-06-11 2007-11-14 江苏省电信有限公司南京分公司 DSLAN port fast detecting device and its detecting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474501A (en) * 2019-01-11 2019-03-15 深圳市菲菱科思通信技术股份有限公司 Switch test device and method

Also Published As

Publication number Publication date
CN101783745A (en) 2010-07-21

Similar Documents

Publication Publication Date Title
CN101783745B (en) System and method for testing a plurality of network ports
CN101789889B (en) Method and system for automatic testing communication equipment
CN101917305B (en) Method for automatically checking topology in automatic test and automatic test system
CN103249069B (en) The test macro of the method for testing of mobile terminal and testing equipment, mobile terminal
CN202770933U (en) High-precision multichannel analog quantity automatic test system
CN103139012B (en) A kind of Ethernet interface method of testing and the network equipment
CN103139017B (en) The test system and method for a kind of network equipment
CN111314180B (en) Ethernet link test method, terminal and storage medium
CN110493079A (en) The production automation test method of industrial ethernet switch
CN101873236A (en) Method and system for testing message
CN106391481A (en) Conflict detection method
CN110335003A (en) A kind of port resource management method and device
CN109213096A (en) Control method, device, system, storage medium and the processor of field device
CN201402208Y (en) Comprehensive testing device for electro hydraulic control valve
CN102426548A (en) Debugging method, debugger and debugging system for embedded system
CN102354205B (en) Method and device for testing control cabinet of electric locomotive
CN108896841A (en) Test macro, test method and device
CN202339497U (en) Verification system of satellite-bone integrated service unit
CN101202117A (en) System and method for testing NVM chip
CN110061773A (en) A kind of light module test method, device, system and computer storage medium
CN108562805A (en) A kind of interactive mode break-make electric test device, system and method
CN101232408B (en) Method and system for testing stability of mass of numeral subscriber line port for chain building and breaking
CN102497296A (en) Method for testing normality of network card receiving and sending packets
CN115756983A (en) Inertial navigation cluster type test interaction system and method
CN206100072U (en) Electric power monitored control system's safety protection compliance data acquisition system

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
ASS Succession or assignment of patent right

Owner name: HUANHONG ELECTRONIC (KUNSHAN) CO., LTD.

Free format text: FORMER OWNER: HUANXU ELECTRONICS CO., LTD.

Effective date: 20130506

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 201203 PUDONG NEW AREA, SHANGHAI TO: 215300 SUZHOU, JIANGSU PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20130506

Address after: Huangpu road Kunshan City Qiandeng Town in Jiangsu province 215300 No. 497 building 4

Patentee after: HUANHONG ELECTRONIC (KUNSHAN) CO., LTD.

Address before: Zhangjiang hi tech park integrated circuit industry Zhang Road 201203 Shanghai City No. 1558

Patentee before: Huanxu Electronics Co., Ltd.