CN102098188A - Method and system for detecting IP (Internet Protocol) connection - Google Patents
Method and system for detecting IP (Internet Protocol) connection Download PDFInfo
- Publication number
- CN102098188A CN102098188A CN2011100046711A CN201110004671A CN102098188A CN 102098188 A CN102098188 A CN 102098188A CN 2011100046711 A CN2011100046711 A CN 2011100046711A CN 201110004671 A CN201110004671 A CN 201110004671A CN 102098188 A CN102098188 A CN 102098188A
- Authority
- CN
- China
- Prior art keywords
- network
- network equipment
- address
- connects
- detection method
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method for detecting connection, comprising the following steps: initializing network environment; setting IP (Internet Protocol) address of the to-be-tested network apparatus; sending configured ICMP (Internet Control Messages Protocol) data packet to the network apparatus, receiving by the network apparatus and returning the data packet containing self network state; analyzing the returned data packet; if the network is normal, sending order to obtain the MAC (Media Access Control) address of the network apparatus. The invention further provides a system for detecting IP connection. The method and system provided by the invention can intelligently detect situations of the network apparatus connecting with the local area network in aging tests, comprising the MAC address, the network state and disconnection times of each network apparatus, thereby effectively improving the production efficiency of the products and accuracy of the test.
Description
Technical field
The present invention relates to the network test technology, especially relate to and a kind of networking products are carried out the method for IP joint detection, and the detection system of using this method.
Background technology
Along with Internet development, the diverse network product emerges in an endless stream.Product based on internet, applications is countless, supports but the burn-in test problem of networking products also needs the technology of renewal.In the network terminal product production process, the product of producing connects stability of network need be through strict check and test.Some networking products (for example router), since the scheme platform stable of product, the controlling of production process of product, the difference of factors such as the test environment of product can occur connecting local area network (LAN) at test process and go offline, and speed waits phenomenon slowly.
How to detect and write down the state that each product is connected network at test process, perplexing the producer of networking products always.Traditional detection mode is for to carry out the personal monitoring to product, the manual operating state of record product, but this detection method inefficiency not only, and human error appears easily.
Summary of the invention
The present invention provides a kind of conveniently IP joint detection method for networking products, the detection network equipment that can intelligence connects the situation of local area network (LAN) in burn-in test, comprise MAC Address, network state and the disconnection times of equipment, thereby effectively improve the accuracy of production efficient and test.
The present invention has adopted following technical scheme to realize: the detection method that a kind of IP connects, and it comprises step: the initialization network environment; Set the IP address of the network equipment to be tested; The ICMP protocol data bag of structure is sent to the network equipment, receive and return the packet that comprises self network status data by the network equipment; The packet that returns is carried out analyzing and processing,, then send the MAC Address that the network equipment is obtained in order if analysis result is that network is normal.
Preferably, the detection method that described IP connects also comprises step: the action pane of user's operation is provided, and the user is by the IP address that the network equipment is set of this action pane.
Preferably, the detection method of described IP connection also comprises step: MAC Address is printed to this action pane.
Wherein, described action pane with the testing process of the network equipment is adopted respectively one independently thread carry out data processing.
Wherein, if a plurality of network equipments that need test are arranged in the network environment, then can be by setting the IP address that the IP address field is provided with each network equipment.
Wherein, the network that adopts inner loop to test each network equipment successively according to the IP address connects.
Preferably, the detection method of described IP connection also comprises step: MAC Address, network connection back disconnection times and the test result of each network equipment are recorded in the file.
The present invention also discloses the detection system that a kind of IP connects, and it comprises: testing server is connected at least one network equipment to be tested of testing server with network; ICMP protocol data bag by testing server initialization network environment and structure sends to the network equipment with ICMP protocol data bag; Testing equipment receives ICMP protocol data bag, returns the packet that comprises self network status data; By testing server the packet that returns is carried out analyzing and processing,, then send the MAC Address that the network equipment is obtained in order if analysis result is that network is normal.
Compared with prior art, the present invention has following useful technique effect:
The present invention is a technical scheme of utilizing computer program to realize, do not need to increase any hardware cost, can run on common computer, compatible Windows XP and Vista system, with network terminal MAC Address, the disconnection times in the detection IP section, and generate corresponding log file.As long as the tester opens log file, just can know the network connection state of every network equipment, thereby can detect out of order machine easily.Therefore, the present invention is simple to operate, carries out network test by calling the ICMP agreement, has improved the accuracy of detection efficiency and detection.
Description of drawings
Fig. 1 is the schematic flow sheet of first embodiment of the invention;
Fig. 2 is the schematic flow sheet of first embodiment of the invention;
Fig. 3 is the initialization interface schematic diagram of action pane of the present invention;
Fig. 4 is the interface schematic diagram that action pane of the present invention shows test results.
Embodiment
As shown in Figure 1, the test environment that the present invention builds by LAN, in testing server (can be the logical PC of a Daepori), use the test macro among the present invention, just can in testing server, demonstrate the network port state of detected each network equipment.
Step S11: testing server sends initializing signal, the network environment that initialization is built, and initialization procedure comprises settings such as this machine IP, subnet mask, gateway and fire compartment wall.
Step S12: after the initialization network environment, testing server structure ICMP (Internet Control Message Protocol, Internet Control Message Protocol) protocol data bag.
The ICMP agreement is a sub-protocol of TCP/IP protocol suite, is used for transmitting control message between IP main frame, router.Control messages is meant the message of logical obstructed, the network such as whether main frame can reach, route is whether available of network itself.Though these control messages are transmitting user data not, play an important role for the transmission of user data.The present invention tests by calling the IP internal agreement, possesses good compatibility.
Step S13: after having constructed ICMP protocol data bag, set the IP address of the network equipment to be tested.The setting of IP address can be imported by the tester by the action pane of this test macro.Entering the network port after the user imports the IP of the network equipment that needs test tests.
Step S14: send ICMP test protocol bag from testing server.
Step S15: the network equipment by test receives ICMP test protocol bag, returns the packet that comprises self network status data again; Testing server carries out analyzing and processing to the packet that returns then.
Step S16: if the back display network is normal then send the MAC Address that the network equipment to be tested is obtained in order more by analysis for return data, and MAC Address printed to the action pane of this test macro, for the user inquiring analysis.
Aforementioned description be the testing process of " one to one ", if " one-to-many " test, promptly successively each network equipment is tested by the IP address by inner loop, each testing equipment flow process is identical with Fig. 1.The test flow chart of " one-to-many " is not described in detail at this as shown in Figure 2.
The present invention enters endless loop in order to prevent test process, cause action pane that the user can't the operational testing system and shutdown test system etc., the present invention adopts the multithreading control technology to prevent that effectively program from entering the endless loop state, network test is operated in the separate threads, the also independent thread of action pane so just can have been realized manual intervention.
The present invention is simple to operate, as long as LAN IP section and the time-out time that needs test is set, begins to detect the state that the equipment that just can monitor in real time in the test I P section connects local area network (LAN) then.As shown in Figure 3, action pane of the present invention (or operation interface), the test operation that the user carries out is as follows: the IP section that needs test is set, is provided with one and is IP From, next one be End IP, as if testing an IP, is provided with that IP From is the same with End IP to get final product; Click " searching equipment " button, search the network equipment that connects in the network segment; Click " beginning to detect " button, can constantly detect the equipment of the IP that finds; If the network equipment have connect situation that the back disconnects can be in the log.txt file record; Promptly withdraw from test macro by " quitting a program " button.By after the above-mentioned steps operational testing system, test result interface as shown in Figure 4 appears.
The present invention is a technical scheme of utilizing computer program to realize, do not need to increase any hardware cost, can run on common computer, compatible Windows XP and Vista system, with network terminal MAC Address, the disconnection times in the detection IP section, and generate corresponding log file.As long as the tester opens log file, just can know the network connection state of every network equipment, thereby can detect out of order machine easily.Therefore, the present invention is simple to operate, carries out network test by calling the ICMP agreement, has improved the accuracy of detection efficiency and detection.
Claims (10)
1. the detection method that IP connects is characterized in that, comprises step:
The initialization network environment;
Set the IP address of the network equipment to be tested;
The ICMP protocol data bag of structure is sent to the network equipment, receive and return the packet that comprises self network status data by the network equipment;
The packet that returns is carried out analyzing and processing,, then send the MAC Address that the network equipment is obtained in order if analysis result is that network is normal.
2. the detection method that connects according to the described IP of claim 1 is characterized in that, also comprises step: the action pane of user's operation is provided, and the user is by the IP address that the network equipment is set of this action pane.
3. the detection method that connects according to the described IP of claim 2 is characterized in that, also comprises step: MAC Address is printed to this action pane.
4. the detection method that connects according to the described IP of claim 2 is characterized in that, described action pane and testing process to the network equipment adopt respectively one independently thread carry out data processing.
5. the detection method that connects according to the described IP of claim 1 is characterized in that, if a plurality of network equipments that need test are arranged in the network environment, and then can be by setting the IP address that the IP address field is provided with each network equipment.
6. the detection method that connects according to the described IP of claim 1 is characterized in that, the network that adopts inner loop to test each network equipment successively according to the IP address connects.
7. the detection method that connects according to the described IP of claim 1 is characterized in that, also comprises step: MAC Address, network connection back disconnection times and the test result of each network equipment are recorded in the file.
8. the detection system that IP connects is characterized in that comprise: testing server is connected at least one network equipment to be tested of testing server with network; ICMP protocol data bag by testing server initialization network environment and structure sends to the network equipment with ICMP protocol data bag; Testing equipment receives ICMP protocol data bag, returns the packet that comprises self network status data; By testing server the packet that returns is carried out analyzing and processing,, then send the MAC Address that the network equipment is obtained in order if analysis result is that network is normal.
9. the detection system that described according to Claim 8 IP connects is characterized in that, described testing server provides the action pane of user's operation, and the user is by the IP address that the network equipment is set of this action pane.
10. the detection system that described according to Claim 8 IP connects is characterized in that, described testing server records MAC Address, network connection back disconnection times and the test result of each network equipment in the file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100046711A CN102098188A (en) | 2011-01-11 | 2011-01-11 | Method and system for detecting IP (Internet Protocol) connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100046711A CN102098188A (en) | 2011-01-11 | 2011-01-11 | Method and system for detecting IP (Internet Protocol) connection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102098188A true CN102098188A (en) | 2011-06-15 |
Family
ID=44131064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100046711A Pending CN102098188A (en) | 2011-01-11 | 2011-01-11 | Method and system for detecting IP (Internet Protocol) connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102098188A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255774A (en) * | 2011-06-28 | 2011-11-23 | 迈普通信技术股份有限公司 | Test system and test method for switch-on and switch-off of communication device as well as fault location method |
CN106559289A (en) * | 2016-11-28 | 2017-04-05 | 杭州迪普科技股份有限公司 | The concurrent testing method and device of SSLVPN gateways |
CN106559288A (en) * | 2016-11-23 | 2017-04-05 | 北京航天自动控制研究所 | A kind of quick fault testing method based on icmp packet |
CN106972956A (en) * | 2017-03-08 | 2017-07-21 | 北京航天自动控制研究所 | The control method and device of the network equipment |
CN107276848A (en) * | 2017-06-14 | 2017-10-20 | 无锡智泉科技有限公司 | A kind of network equipment online test method |
CN110213395A (en) * | 2019-05-21 | 2019-09-06 | 苏州浪潮智能科技有限公司 | The method and system of local area network online equipment is searched under WINDOWS system |
CN114079620A (en) * | 2020-08-06 | 2022-02-22 | 北京国基科技股份有限公司 | Method and device for determining online state of network equipment |
CN114598609A (en) * | 2022-03-11 | 2022-06-07 | 杭州网银互联科技股份有限公司 | Network topology connection structure information storage method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1909483A (en) * | 2005-08-05 | 2007-02-07 | 英业达股份有限公司 | Method and system for network equipment testing |
CN101252483A (en) * | 2008-04-10 | 2008-08-27 | 北京星网锐捷网络技术有限公司 | System and method for testing switch |
-
2011
- 2011-01-11 CN CN2011100046711A patent/CN102098188A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1909483A (en) * | 2005-08-05 | 2007-02-07 | 英业达股份有限公司 | Method and system for network equipment testing |
CN101252483A (en) * | 2008-04-10 | 2008-08-27 | 北京星网锐捷网络技术有限公司 | System and method for testing switch |
Non-Patent Citations (3)
Title |
---|
侯红: "利用Sniffer软件管理和维护局域网", 《铁路计算机应用》, no. 62, 31 May 2002 (2002-05-31) * |
邹建国: "使用ping命令自动记录主机_路由器的网络连接状况", 《电脑编程技巧与维护》, 31 January 2002 (2002-01-31) * |
黄铧焕: "《sniffer使用教程》", 1 January 2005, article "Sniffer Pro软件软件说明" * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102255774A (en) * | 2011-06-28 | 2011-11-23 | 迈普通信技术股份有限公司 | Test system and test method for switch-on and switch-off of communication device as well as fault location method |
CN106559288A (en) * | 2016-11-23 | 2017-04-05 | 北京航天自动控制研究所 | A kind of quick fault testing method based on icmp packet |
CN106559288B (en) * | 2016-11-23 | 2019-11-12 | 北京航天自动控制研究所 | A kind of quick fault testing method based on icmp packet |
CN106559289A (en) * | 2016-11-28 | 2017-04-05 | 杭州迪普科技股份有限公司 | The concurrent testing method and device of SSLVPN gateways |
CN106972956A (en) * | 2017-03-08 | 2017-07-21 | 北京航天自动控制研究所 | The control method and device of the network equipment |
CN107276848A (en) * | 2017-06-14 | 2017-10-20 | 无锡智泉科技有限公司 | A kind of network equipment online test method |
CN110213395A (en) * | 2019-05-21 | 2019-09-06 | 苏州浪潮智能科技有限公司 | The method and system of local area network online equipment is searched under WINDOWS system |
CN114079620A (en) * | 2020-08-06 | 2022-02-22 | 北京国基科技股份有限公司 | Method and device for determining online state of network equipment |
CN114079620B (en) * | 2020-08-06 | 2024-02-27 | 北京国基科技股份有限公司 | Method and device for determining online state of network equipment |
CN114598609A (en) * | 2022-03-11 | 2022-06-07 | 杭州网银互联科技股份有限公司 | Network topology connection structure information storage method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102098188A (en) | Method and system for detecting IP (Internet Protocol) connection | |
US20080219173A1 (en) | Network test apparatus, network test method and network test program | |
US20090075605A1 (en) | Communication apparatus and network information collecting program | |
US20070233858A1 (en) | Diagnostic access system | |
US7693081B1 (en) | Integrated IP DSLAM test monitor | |
US20180165431A1 (en) | Method, apparatus and system for device replacement detection and device recommendation | |
JP5545162B2 (en) | Monitoring program, monitoring device, and monitoring method | |
EP3682595A1 (en) | Obtaining local area network diagnostic test results | |
JP4510751B2 (en) | Network failure detection device | |
CN112333044A (en) | Shunting equipment performance test method, device and system, electronic equipment and medium | |
CN106375152A (en) | Method for processing communication abnormality of Client/Server (C/S) architecture | |
CN112152875A (en) | System and method for testing abnormal connection of WiFi module | |
CN103036707A (en) | Portable diagnostic device of internet protocol television (IPTV) business service quality and diagnostic method of IPTV business service quality | |
Kassim et al. | Network Analysis of Students' Online Activities via Port mirroring Switch Port Analyzer | |
CN113645058A (en) | Network link flow monitoring method, device and system | |
CN111181810B (en) | Performance test method and system for MoCA equipment | |
EP2541839B1 (en) | Method of determining immediate topology of a network connection | |
US20190289056A1 (en) | Method and Apparatus for Cross Layer Network Diagnostics and Self-Healing Platform for Point-to-Multipoint Networks | |
Sperotto et al. | Anomaly characterization in flow-based traffic time series | |
CN108123752B (en) | EPON precise loop detection method based on geographic information positioning | |
CN116192607A (en) | Fault alarm method and device | |
CN113009246B (en) | PSE device detection device and PSE device detection method | |
US20060229067A1 (en) | Wireless interface for test and measurement device | |
CN103746858B (en) | Method for detecting wireless network topology | |
CN105612721A (en) | Transmission time delay measurement method, device and system based on DOCSIS protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110615 |