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.