1. Field of the Invention
The present invention relates generally to test technology of connection apparatus and, more particularly, to a network connection apparatus testing method used for detecting the efficiency of a connecting port assembled in a network connection apparatus to receive data packets.
2. Description of Related Art
With the explosive development of computer technology and Internet, scale of the information platform built on the computer internet in enterprise is becoming more and more large, from a tiny network connected to only one computer to a huge network connected to Internet and hundreds of computers, acquiring Internet information having become an important function for computer. Simultaneously, various network connection apparatus acted as necessary device have played important part in connecting multiple computers to internet, wherein, it is most common to apply in the process for building network in enterprise by employing various switches and hubs.
However, as to network connection apparatus, different network connection apparatuses are possible to cause fault during using due to the flaws produced in manufacture or assembly, affecting transport performance of signal, thereby making the terminal connected to the connecting port, e.g., personal computer and the like, can not receive or transmit data with full accuracy rate, once hardware trouble of the connecting port is occurred, the whole network may not run properly, therefore, whether network connection apparatus is good or bad is an important condition for determining the network connecting quality is good or bad, and is key of that whether can provide network connection apparatus with high efficiency to promote the reliability of network connection.
At present, most enterprises often employ certain testing instrument to perform correlative pressure test for testing the reliability of network connection, but such kind of instrument is quite expensive, and it is not easy for general technical staff to understand and grasp how to manipulate, set, administer and maintain such kind of instrument. Most important, as far as the realizing scheme of the present technique is concerned, it is may not be quite complex to test efficiency of various connecting ports in the network connection apparatus, but it is worthless for the enterprise to take huge sum to finish such test. In addition, there exists a problem of lacking uniform public credibility due to different test software for different products adhered by various manufacturers of network connection apparatus.
Accordingly, there exists a strong need in the art for a network connection apparatus testing method to solve drawbacks of the test technology, so as to make enterprise quickly and efficiently detect efficiency of the network connection apparatus and prevent from expensive cost of test instrument.
Accordingly, it is an objective of the present invention to solve the drawbacks of the aforementioned conventional technology by providing a network connection apparatus testing method, which can quickly and efficiently detect a data receiving efficiency of various connecting ports assembled in the network connection apparatus.
It is another objective of the present invention to provide a network connection apparatus testing method to make enterprise test transmitting and receiving state of the network connection apparatus without huge sum for purchasing expensive test instrument and additional software and hardware.
It is a further objective of the present invention to provide a network connection apparatus testing method having an expandable testing structure to authentically test the performance of the connecting ports assembled in the network connection apparatus.
In order to attain the object mentioned above, a network connection apparatus testing method is provided according to the present invention. The method is used to test the efficiency of various connecting ports of the network connection apparatus to receive data packets. The method includes providing at least a first terminal apparatus and a second terminal apparatus, both of which are respectively connected to a first connecting port and a second connecting port assembled in the network connection apparatus, the first terminal apparatus having a test program and a test parameter set by the test program and being capable of transmitting a data packet according to a setting value of the test parameter, the second terminal apparatus having a packet capturing program and an execution parameter set by the execution program and being capable of acquiring a data packet according to a setting value of the executive parameter; enabling the first terminal apparatus when executing the test program to transmit a group of test data packets to the second terminal apparatus, and counting a number of the test data packets that have been transmitted by the first terminal apparatus until the number is equal to the setting value of the test parameter; enabling the second terminal apparatus to execute the packet capturing program to acquire the test data packets transmitted from the first terminal apparatus, and counting a number of the test data packets received by the second terminal apparatus; comparing the test parameter set by the test program with the number of the received test data packets counted by the packet capturing program, and calculating a receiving rate of the test data packets; and judging an efficiency of the connecting port assembled in the network connection apparatus according to the receiving rate.
Compared with the test technology of efficiency of the conventional network connection apparatus, network connection apparatus testing method according to the present invention employs terminal to programming control data packet, and acquires the test result of efficiency of various connecting ports assembled in the connection apparatus according to the transmitting and receiving state of test dada packet, making the enterprise quickly and efficiently detect the efficiency of network connection apparatus without taking high cost to purchase additional software and hardware device, and test where the problem of the network apparatus is and the packet losing rate of each connecting port within a certain time.
The following illustrative embodiments are provided to illustrate the disclosure of the present invention, these and other advantages and effects can be apparently understood by those in the art after reading the disclosure of this specification. The present invention can also be performed or applied by other different embodiments. The details of the specification may be on the basis of different points and applications, and numerous modifications and variations can be devised without departing from the spirit of the present invention.
With reference to
With reference to
In step S2, the first terminal apparatus is embedded with a test program, and a test parameter is set by the test program accordingly, enabling the first terminal apparatus to transmit a data packet according to a setting value of the test parameter. In the exemplary embodiment, the test program is a packet Internet groper, i.e., a conventional Ping instrument, and the test parameter at least comprises one selected from a group consisting of a number of test data packet needed to be transmit, a size of the test data packet, and a receiving rate of the test data packets in a single test. For example, the size of the test data packets can be set to a size that Windows supports, the first terminal apparatus is designed to transmit N (=1000) test data packets, each of which has 1280 bytes, in a single test, and the network connection apparatus is judged to be a qualified product if a receiving rate of the test data packets received by the second terminal apparatus is larger than 90%. Note that the size of the testing data packet is defined according to a standard constituted by Internet Engineering Task Force (IETF), and can have a size of 64, 128, 256, 1024, 1280 or 1518. Whether a test result is successful or not is defined according to the standard constituted by Internet Engineering Task Force (IETF). Then proceed to step S3.
In step S3, a packet capturing program and an execution parameter are embedded in the second terminal apparatus, enabling the second terminal apparatus to acquire the test data packet according to a setting value of the executive parameter. In the exemplary embodiment, the packet capturing program is an ethereal packet acquiring software. In an actual application process, an internet protocol type in the software is set to be Internet control Message Protocol (ICMP), and a type value of ICMP rule is set to be 8. Under the ICMP rule, the second terminal apparatus automatically provides a reply to indicate that the test data packets are received provided after receiving the test data packets. After such a setting process is completed, the second terminal apparatus runs the packet acquiring software to receive the test data packets. Next proceed to step S4.
In step S4, when executing the test program the first terminal apparatus transmits a group of test data packets to the second terminal apparatus, and counts a number of the data packets that have been transmitted until the number of the transmitted test data packets is equal to the setting value of the test parameter, which is set by the test program previously. In the exemplary embodiment, the first terminal apparatus is designed to execute the Ping instruction and transmit N (=1000) test data packets, each of which has 1280 bytes, in a single test to a specified address, and count a number M of test data packets that have been transmitted in the single test. The number M is added by one every time when one test data packet is transmitted by the first terminal apparatus until the number M is equal to the number N, that is 1000. Then proceed to step S5. In step S5, the second terminal apparatus executes the packet capturing program to acquire the test data packets transmitted from the first terminal apparatus, and counts a number P of the test data packets that have been received by the second terminal apparatus. In the exemplary embodiment, after receiving the test data packets the second terminal apparatus returns information representing that the test data packets have been received by the second terminal apparatus, and counts the number P. The number P is added by one every time when the second terminal apparatus receives one test data packet until the number P is equal to N, that is 1000, which means that test is completed. Then proceed to step S6. In step S6, the test parameter set by the test program is compared with the number P of the test data packets that have been received by the second terminal apparatus and counted by the packet capturing program, and a receiving rate of the test data packets is calculated. In the exemplary embodiment, the second terminal apparatus is assumed to have received 950 test data packets, i.e., P=950, which means that the receiving rate of the test data packet is 95% (P/M). Then proceed to step S7.
In step S7, the data receiving efficiency of the first connecting port and the second connecting port assembled in the network connection apparatus that has been tested is judged according to the receiving rate of the test data packets. In the exemplary embodiment, the receiving rate is 95%, which is larger than a predetermined receiving rate of 90%, so the data receiving efficiency of the connecting ports assembled in the network connection apparatus is quite excellent. In addition, such a test result can be recorded in the terminal apparatuss for future reference.
With reference to
In addition, if it is required to test efficiency of other connecting port assembled in the network connection apparatus 100, it must make each connecting port that is to be detected correspondingly connect to a terminal, then repeat the step 1 to step 6 of the above-discussed method, thereby the test result of efficiency of each connecting port that is to be detected can be acquired. The following is to respectively employ hub and switch with 16 connecting ports to further describe the implementary situation if it is required to test each connecting port that is to be detected.
Please refer to
As shown in
Please refer to
As shown in
The above-described exemplary embodiments are to describe various objects and features of the present invention as illustrative and not restrictive. A person of ordinary skill in the art would recognize that changes could be made in form and detail without departing from the sprit and the scope of the invention. Thus, the right protective scope of the present invention should fall within the appended claim.