CN104702449A - Connectivity test system and method - Google Patents

Connectivity test system and method Download PDF

Info

Publication number
CN104702449A
CN104702449A CN201310648106.8A CN201310648106A CN104702449A CN 104702449 A CN104702449 A CN 104702449A CN 201310648106 A CN201310648106 A CN 201310648106A CN 104702449 A CN104702449 A CN 104702449A
Authority
CN
China
Prior art keywords
port
data flow
transceiving data
address
ping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310648106.8A
Other languages
Chinese (zh)
Inventor
林玉龙
董华
谭杰君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201310648106.8A priority Critical patent/CN104702449A/en
Publication of CN104702449A publication Critical patent/CN104702449A/en
Pending legal-status Critical Current

Links

Abstract

A connectivity test method is applied to a computer and used for testing a first port and a second port of a switch, wherein the first port is connected with the computer, and the second port is connected with a loopback interface device. The method comprises the following steps: closing the connection between the first and second ports and other ports of the switch; acquiring first sending and receiving data traffic of the second port; sending a data packet of a Ping default IP address through the first port; determining whether the external connectivity of the second port is normal or not according to whether the first port can receive the data packet of the Ping default IP address looped back by the loopback interface device; acquiring second sending and receiving data traffic of the second port; and determining the connectivity between the first port and the second port according to the first sending and receiving data traffic and the second sending and receiving data traffic. The invention further provides a connectivity test system. The connectivity test system and the connectivity test method of the invention can be used for testing the connectivity of switch ports.

Description

Continuity testing system and method
Technical field
The present invention relates to a kind of continuity testing system and method.
Background technology
At present, when testing the internal connectivity (connectedness namely between the port of this switch and port) of each port and exterior connectivity (i.e. the port of this switch and the connectedness of external equipment) of switch (Switch), because switch does not have Mac(Media AccessControl) address, IP address (Internet Protocol Address is not just had yet, be translated into internet protocol address again), the internal connectivity of test port cannot be carried out according to transceiving data bag, also cannot realize testing the exterior connectivity of port testing the internal connectivity of port simultaneously simultaneously.
Summary of the invention
In view of above content, be necessary to provide a kind of continuity testing system and method, can be used for testing the connectedness of switch ports themselves.
Described continuity testing system, run in computer, for testing the first port and second port of a switch, wherein, described first port is connected with described computer, described second port and a loopback interface equipment connection, this system comprises: Executive Module, for closing being communicated with of other ports of first and second port described and described switch; Acquisition module, for obtaining the first transceiving data flow of described second port; Sending module, for sending the packet of a Ping preset IP address by described first port; Determination module, for whether can receive the packet of the described Ping preset IP address of described loopback interface equipment institute loopback according to described first port, determines that whether the exterior connectivity of described second port is normal; Described acquisition module, also for again obtaining the second transceiving data flow of described second port; And described determination module, also for determining the connectedness between described first port and the second port according to first and second transceiving data flow described.
Described continuity testing method, be applied in computer, for testing the first port and second port of a switch, wherein, described first port is connected with described computer, described second port and a loopback interface equipment connection, the method comprises: perform step, closes being communicated with of other ports of first and second port described and described switch; First obtaining step, obtains the first transceiving data flow of described second port; Forwarding step, sends the packet of a Ping preset IP address by described first port; Whether the first determining step, can receive the packet of the described Ping preset IP address of described loopback interface equipment institute loopback, determine that whether the exterior connectivity of described second port is normal according to described first port; Second obtaining step, obtains the second transceiving data flow of described second port again; And second determining step, determine the connectedness between described first port and the second port according to first and second transceiving data flow described.
Compared to prior art, continuity testing system and method for the present invention, can carry out the internal connectivity of test port according to transceiving data bag, and can test the exterior connectivity of port testing the internal connectivity of port simultaneously simultaneously.
Accompanying drawing explanation
Fig. 1 is the running environment figure of continuity testing system of the present invention.
Fig. 2 is the functional block diagram of continuity testing system of the present invention.
Fig. 3 is the flow chart of the preferred embodiment of continuity testing method of the present invention.
Main element symbol description
Computer 100
Continuity testing system 10
Memory 11
Processor 12
Loopback interface equipment 300
Switch 200
Port 0、1、2、3、4、5、6、7
Executive Module 101
Acquisition module 102
Sending module 103
Determination module 104
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the running environment figure of continuity testing system of the present invention.In the present embodiment, continuity testing system 10 runs in computer 100, for testing internal connectivity and the exterior connectivity of each port of switch 200.The present embodiment comprises 8 ports (i.e. port 0 ~ 7) for described switch 200 and illustrates.In other embodiments, this switch 200 also can comprise 4,12 or other multiple ports.
Here, internal connectivity refers to the connectedness between each port of this switch 200, such as, and port one as shown in Figure 1 and port 3, the connectedness between port one and port 5.Exterior connectivity refers to the connectedness of each port and external equipment, and namely whether this each port can be communicated with external equipment (as a station server).
The present embodiment is when testing each port of described switch 200, in advance one of them port in be tested two ports is connected with described computer 100, another one port is connected with the loopback interface of a loopback interface (Loop Back) equipment 300, after completing above-mentioned connection, described continuity testing system 10 closes being communicated with of these two ports and other ports, and then carries out continuity testing by the mode of transceiving data bag.Detail elucidated hereinafter.
In the present embodiment, described continuity testing system 10 comprises one or more module.Such as consult shown in Fig. 2, described continuity testing system 10 comprises Executive Module 101, acquisition module 102, sending module 103 and determination module 104.Described module 101 ~ 104 is stored in the memory 11 of described computer 100, and performed to realize function of the present invention by the processor 12 of this computer 100, module alleged by the present invention has been the program segment of a specific function, and composition graphs 3 illustrates by the function about modules.
As shown in Figure 3, be the flow chart of preferred embodiment of continuity testing method of the present invention.
Step S1, by one of them port in two ports of the connectedness to be tested of switch 200 (for convenience of description, hereinafter referred to as the first port) be connected with computer 100, another one port (hereinafter referred to as the second port) is connected with loopback interface equipment 300.Executive Module 101 closes being communicated with of other ports of first and second port described and described switch 200.
Such as, when testing the port one of switch 200 and port 3 connective, be connected with described computer 100 by port one, port 3 is connected with described loopback interface equipment 300.Executive Module 101 close described port one, 3 with being communicated with of other ports (i.e. port 2,5,6).
Particularly, described Executive Module 101 can pass through I2C(Inter-Integrated Circuit) agreement, first and second port described in closing other ports described (i.e. port 2,5,6) transmission interface disabling " disableport " order is communicated with other ports described.
Step 2, acquisition module 102 obtains first transmitting-receiving (i.e. Rx and Tx) data traffic of described second port.
Particularly, described acquisition module 102 can obtain the first transceiving data flow of this second port from the register of the transceiving data flow for storing described second port (as port 3) by I2C agreement.
Such as, the first transceiving data flow getting described port 3 is 0.
Step 3, sending module 103 sends a Ping(Packet Internet Groper by described first port (i.e. port one)) packet of preset IP address (Internet Protocol Address, is translated into internet protocol address again).
Step 4, the packet loopback of described Ping preset IP address is given described computer 100 by loopback interface equipment 300.
Because switch 200 does not have Mac(Media Access Control) address, also would not there is IP address.The packet of the Ping preset IP address that described sending module 103 sends would not meet with a response.So in the normal situation of exterior connectivity of described second port (i.e. port 3) (when namely described port 3 can be communicated with described loopback interface equipment 300), this Ping preset IP address packet can be looped back to by described loopback interface equipment 300 described first port.
Step 5, whether determination module 104 can receive the packet of the described Ping preset IP address of institute's loopback according to described first port (i.e. port one), determine that whether the exterior connectivity of described second port (i.e. port 3) is normal.
As previously described, if the exterior connectivity of described second port normal (as described in port 3 can be communicated with as described in loopback interface equipment 300), the packet of this Ping preset IP address then can be looped back to described first port by described loopback interface equipment 300, and the packet that so determination module 104 can receive the described Ping preset IP address of institute's loopback according to described first port determines that the exterior connectivity of described second port is normal.
Otherwise if described first port can not receive the packet of the described Ping preset IP address of institute's loopback, then determination module 104 determines that the exterior connectivity of described second port is abnormal.
Step 6, described acquisition module 102 obtains second transmitting-receiving (i.e. Tx and Rx) data traffic of described second port again.
Similarly, described acquisition module 102 can again be obtained from register as described in the transceiving data flow for storing described second port (as port 3) by described I2C agreement as described in the second transceiving data flow.
Step 7, described determination module 104 determines the connectedness between described first port and the second port according to first and second transceiving data flow described.
Particularly, if the flow difference that described second transceiving data flow and described first transceiving data flow produce equals described second port when receiving and dispatching the data flow value that described Ping preset IP address packet produces, then judge that the connectedness between this first port (as port one) and the second port (as port 3) is normal, otherwise, then judge that the connectedness between this first port and second port is abnormal.
Finally it should be noted that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a continuity testing system, runs in computer, for testing the first port and second port of a switch, wherein, described first port is connected with described computer, described second port and a loopback interface equipment connection, it is characterized in that, this system comprises:
Executive Module, for closing being communicated with of other ports of first and second port described and described switch;
Acquisition module, for obtaining the first transceiving data flow of described second port;
Sending module, for sending the packet of a Ping preset IP address by described first port;
Determination module, for whether can receive the packet of the described Ping preset IP address of described loopback interface equipment institute loopback according to described first port, determines that whether the exterior connectivity of described second port is normal;
Described acquisition module, also for again obtaining the second transceiving data flow of described second port; And
Described determination module, also for determining the connectedness between described first port and the second port according to first and second transceiving data flow described.
2. continuity testing system as claimed in claim 1, is characterized in that, described Executive Module closes being communicated with of first and second port described and other ports described by I2C agreement to other port transmit port disable command described.
3. continuity testing system as claimed in claim 1, it is characterized in that, described determination module, when described first port can receive the packet of described Ping preset IP address of institute's loopback, determines that the exterior connectivity of described second port is normal.
4. continuity testing system as claimed in claim 1, it is characterized in that, the flow difference that described determination module produces in described second transceiving data flow and described first transceiving data flow, equal described second port when receiving and dispatching the data flow value that described Ping preset IP address packet produces, determine that the connectedness between described first port and the second port is normal.
5. continuity testing system as claimed in claim 1, is characterized in that, described acquisition module obtains first and second transceiving data flow described by I2C agreement from the register of the transceiving data flow for storing described second port.
6. a continuity testing method, is applied in computer, for testing the first port and second port of a switch, wherein, described first port is connected with described computer, described second port and a loopback interface equipment connection, it is characterized in that, the method comprises:
Perform step, close being communicated with of other ports of first and second port described and described switch;
First obtaining step, obtains the first transceiving data flow of described second port;
Forwarding step, sends the packet of a Ping preset IP address by described first port;
Whether the first determining step, can receive the packet of the described Ping preset IP address of described loopback interface equipment institute loopback, determine that whether the exterior connectivity of described second port is normal according to described first port;
Second obtaining step, obtains the second transceiving data flow of described second port again; And
Second determining step, determines the connectedness between described first port and the second port according to first and second transceiving data flow described.
7. continuity testing method as claimed in claim 6, is characterized in that, in described execution step, closes being communicated with of first and second port described and other ports described by I2C agreement to other port transmit port disable command described.
8. continuity testing method as claimed in claim 6, is characterized in that, in described first determining step, when described first port can receive the packet of described Ping preset IP address of institute's loopback, determine that the exterior connectivity of described second port is normal.
9. continuity testing method as claimed in claim 6, it is characterized in that, in described second determining step, in the flow difference that described second transceiving data flow and described first transceiving data flow produce, equal described second port when receiving and dispatching the data flow value that described Ping preset IP address packet produces, determine that the connectedness between described first port and the second port is normal.
10. continuity testing method as claimed in claim 6, it is characterized in that, in first and second obtaining step described, from the register of the transceiving data flow for storing described second port, obtain first and second transceiving data flow described by I2C agreement.
CN201310648106.8A 2013-12-04 2013-12-04 Connectivity test system and method Pending CN104702449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310648106.8A CN104702449A (en) 2013-12-04 2013-12-04 Connectivity test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310648106.8A CN104702449A (en) 2013-12-04 2013-12-04 Connectivity test system and method

Publications (1)

Publication Number Publication Date
CN104702449A true CN104702449A (en) 2015-06-10

Family

ID=53349241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310648106.8A Pending CN104702449A (en) 2013-12-04 2013-12-04 Connectivity test system and method

Country Status (1)

Country Link
CN (1) CN104702449A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106940432A (en) * 2016-01-04 2017-07-11 苏州普源精电科技有限公司 A kind of instrument connective method of testing and test system
CN110162437A (en) * 2019-05-15 2019-08-23 杭州迪普科技股份有限公司 A kind of frame type equipment internal connectivity detection method and system
CN111092788A (en) * 2019-12-16 2020-05-01 京信通信系统(中国)有限公司 Switch test system
CN111835586A (en) * 2020-06-21 2020-10-27 山东云海国创云计算装备产业创新中心有限公司 Method and system for testing network connectivity of server and switch

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106940432A (en) * 2016-01-04 2017-07-11 苏州普源精电科技有限公司 A kind of instrument connective method of testing and test system
CN106940432B (en) * 2016-01-04 2020-06-12 普源精电科技股份有限公司 Method and system for testing instrument connectivity
CN110162437A (en) * 2019-05-15 2019-08-23 杭州迪普科技股份有限公司 A kind of frame type equipment internal connectivity detection method and system
CN110162437B (en) * 2019-05-15 2023-10-27 杭州迪普科技股份有限公司 Frame type equipment internal connectivity detection method and system
CN111092788A (en) * 2019-12-16 2020-05-01 京信通信系统(中国)有限公司 Switch test system
CN111835586A (en) * 2020-06-21 2020-10-27 山东云海国创云计算装备产业创新中心有限公司 Method and system for testing network connectivity of server and switch
CN111835586B (en) * 2020-06-21 2021-11-09 山东云海国创云计算装备产业创新中心有限公司 Method and system for testing network connectivity of server and switch

Similar Documents

Publication Publication Date Title
US10367713B2 (en) Cloud based system and method for managing testing configurations for cable test devices
US9473381B2 (en) Systems and methods for network testing
US20150382219A1 (en) Methods, apparatus and articles of manufacture to test home networks
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN103078770A (en) Method for testing stability of switch
CN104702449A (en) Connectivity test system and method
CN104618187A (en) Method for on-line testing of functional completeness of network controller sideband interface (NCSI) network card
CN102098187B (en) Method and system for testing robustness of data path of router
US10219248B2 (en) Method for communicating test results from wireless device under test using non-link testing resources
CN106789438A (en) A kind of device connectivity detection method and device
CN111901197A (en) Ethernet interface mode detection device and detection method
CN109753392B (en) Network bridging device, bus testing method and system
US9250673B2 (en) Power over Ethernet parameter storage
JP5600720B2 (en) Test system and test method for mobile communication terminal device
US9154409B2 (en) Method for debugging private VLAN
CN102946335B (en) A kind of network condition detection method and system
EP2822223A1 (en) Systems and methods for low cost and low power network troubleshooting
CN107509214A (en) A kind of more radio frequency link wireless routers and method for diagnosing faults
CN115733729B (en) Communication fault processing method, system and equipment
CN102739460B (en) Interface wiring path detection device and detection method thereof
CN111181810A (en) Performance test method and system for MoCA equipment
US9455895B2 (en) Data link layer switch frame forwarding analysis
WO2022222479A1 (en) Network detection method and apparatus, and device and storage medium
CN105049294A (en) Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch
US20180041384A1 (en) Diagnosis apparatus and method for failure node and portable terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150610