CN109194541A - A kind of network test method and system - Google Patents

A kind of network test method and system Download PDF

Info

Publication number
CN109194541A
CN109194541A CN201810957700.8A CN201810957700A CN109194541A CN 109194541 A CN109194541 A CN 109194541A CN 201810957700 A CN201810957700 A CN 201810957700A CN 109194541 A CN109194541 A CN 109194541A
Authority
CN
China
Prior art keywords
line
equipment
port
connection
network
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.)
Granted
Application number
CN201810957700.8A
Other languages
Chinese (zh)
Other versions
CN109194541B (en
Inventor
段琳
刘京亮
丁凯乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810957700.8A priority Critical patent/CN109194541B/en
Publication of CN109194541A publication Critical patent/CN109194541A/en
Application granted granted Critical
Publication of CN109194541B publication Critical patent/CN109194541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of network test method and systems, and the method includes reading the design planning data of network to be tested;According to the design planning data, the connection relationship of line pair is judged;Detection connects the signal quality of correct line pair.Realize that simply strong applicability, the realization of automation significantly improves the reliability of network test efficiency and test result;It can also realize the regular visit to network of computer room, all standing detection, have the function that Continuous Quality guarantees.

Description

A kind of network test method and system
[technical field]
The present invention relates to Computer Applied Technologies, in particular to network test method and system.
[background technique]
It delivers and is delivered in test in the network facilities of IDC network computer room, since the interface links of entire room system are many Processes that are more, and being entirely routed, such as label is puted up, port plug, is mostly to need artificial progress, inevitably be will appear mistake Accidentally;Meanwhile the cable of entire computer room wiring is all before wiring and during deployment, to be likely to cable occur in terms of necessarily Physical damage.
It in the prior art, is manually inspected by random samples after the completion of computer room wiring;Or next step deployment is directly carried out, it encounters and asks Topic is positioned again.Low efficiency;Covering scope is limited;Test dynamics is not fine enough, cannot sufficiently expose problem;Finding the problem needs It manually to check, extremely waste time and human cost.
[summary of the invention]
The many aspects of the application provide network test method, system, equipment and storage medium, can be improved network survey Try the reliability of efficiency and test result.
An aspect of of the present present invention provides a kind of network test method, which comprises
Read the design planning data of network to be tested;
According to the design planning data, the connection relationship of line pair is judged;
Detection connects the signal quality of correct line pair.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the design rule Drawing data includes line to information and equipment log-on message.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described according to institute Design planning data are stated, carrying out judgement to the connection relationship of line pair includes:
According to the line to information and equipment log-on message, each line is successively logged in the equipment at both ends, to the line pair Connection relationship is judged.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, to the line pair Connection carry out judgement include:
Judge the line to the port at both ends whether all for link connection state;
If not, into the first abnormality processing process;
If so, successively being interrupted to the line to one section of port, attended operation, whether detection Peer-Port is synchronized Variation;
If asynchronous variation, into the second abnormality processing process;
If synchronous variation, judges that the connection of the line pair is correct.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, described first is different Often process flow includes:
If the line is all link terminal state to the port at both ends, judge the line to not connected;
If the line is respectively to interrupt and connection status to the port at both ends, the port of connection status successively carried out Disconnected, attended operation detects the corresponding ports of synchronous variation in network.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, described second is different Often process flow includes:
Port of the line to both ends is successively interrupted respectively, attended operation, detects pair of synchronous variation in network Answer port.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the method is also Include:
The detected actual line of record is to connection relationship.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, detection connection is just After the signal quality of true line pair further include:
Detected actual line summarizes connection relationship.
Another aspect of the present invention provides a kind of network test system, the system comprises:
Read module is planned, for reading the design planning data of network to be tested;
Connection relationship detection module, for judging the connection relationship of line pair according to the design planning data;
Signal quality detector module, for detecting the signal quality for connecting correct line pair.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the design rule Drawing data includes line to information and equipment log-on message.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the connection are closed It is that detection module is specifically used for:
According to the line to information and equipment log-on message, calls equipment login module successively to log in each line and both ends are set It is standby, the connection relationship of the line pair is judged.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the connection are closed It is that detection module is specifically used for:
Judge the line to the port at both ends whether all for link connection state;
If not, into the first abnormality processing process;
If so, successively being interrupted to the line to one section of port, attended operation, whether detection Peer-Port is synchronized Variation;
If asynchronous variation, into the second abnormality processing process;
If synchronous variation, judges that the connection of the line pair is correct.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the connection are closed It is that detection module includes the first abnormality processing submodule, is used for:
If the line is all link terminal state to the port at both ends, judge the line to not connected;
If the line is respectively to interrupt and connection status to the port at both ends, the port of connection status successively carried out Disconnected, attended operation detects the corresponding ports of synchronous variation in network.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the connection are closed It is that detection module includes the second abnormality processing submodule, for successively being interrupted to port of the line to both ends respectively, even Operation is connect, the corresponding ports of synchronous variation in network are detected.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the system is also Including result logging modle, for recording detected actual line to connection relationship.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the result note Record module is also used to summarize connection relationship on detected actual line.
Another aspect of the present invention, provides a kind of computer equipment, including memory, processor and is stored in the storage On device and the computer program that can run on the processor, the processor are realized as previously discussed when executing described program Method.
Another aspect of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, described Method as described above is realized when program is executed by processor.
It can be seen that based on above-mentioned introduction using scheme of the present invention, can be improved network test efficiency and test knot The reliability of fruit.
[Detailed description of the invention]
Fig. 1 is the flow chart of network test method of the present invention;
Fig. 2 is the flow chart of a specific embodiment of network test method of the present invention;
Fig. 3 is the flow chart of the abnormality processing process 1 of a specific embodiment of network test method of the present invention;
Fig. 4 is the flow chart of the abnormality processing process 2 of a specific embodiment of network test method of the present invention;
Fig. 5 is the structure chart of network test system of the present invention;
Fig. 6 shows the frame for being suitable for the exemplary computer system/server 012 for being used to realize embodiment of the present invention Figure.
[specific embodiment]
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Whole other embodiments obtained without creative efforts, shall fall in the protection scope of this application.
Fig. 1 is the flow chart of network test method embodiment of the present invention, as shown in Figure 1, comprising the following steps:
Step S11, the design planning data of network to be tested are read;
Step S12, according to the design planning data, the connection relationship of line pair is judged;
Step S13, detection connects the signal quality of correct line pair.
Specifically, as shown in flow chart Fig. 2 of the specific embodiment of the invention:
In a kind of preferred implementation of step S11,
Read the design planning data of network to be tested from database, the design planning data include line to information and Equipment log-on message.
Preferably, the line is line to information table to information, has recorded in network to be tested each line to two with tabular form The device port connection relationship at end, such as shown in table 1,
3 mouthfuls of A equipment<-connection 1->5 mouthfuls of B device
6 mouthfuls of C equipment<-connection 2->7 mouthfuls of B device
3 mouthfuls of B device<-connection 3->10 mouthfuls of F equipment
23 mouthfuls of A equipment<-connection 4->5 mouthfuls of F equipment
Table 1
Preferably, the equipment log-on message is equipment log-on message table, has recorded network to be tested in the form of a list In each equipment log-on message, comprising: login mode, logs in IP etc. at login password, each to be logged according to the log-on message Equipment judges the port connection relationship of each equipment, such as shown in table 2,
A equipment login mode, logs in IP at login password
B device login mode, logs in IP at login password
C equipment login mode, logs in IP at login password
D equipment login mode, logs in IP at login password
E equipment login mode, logs in IP at login password
F equipment login mode, logs in IP at login password
Table 2
Preferably, according to the difference of equipment, the login mode may include the login modes such as ssh, telnet.
In a kind of preferred implementation of step S12, according to the design planning data, to the connection relationship of line pair into Row judgement;
Preferably, the line is read to information, and successively the connection relationship of each line pair is judged;According to each line to both ends Device identification, obtain the equipment log-on message, log in line to the equipment at both ends, the connection relationship of each line pair is sentenced It is disconnected.Wherein, after according to the login mode logging device, use corresponding order line sequence includes with obtain order line output The link state of port and the log information of signal strength win the link state and signal strength of exit port.
Preferably due to after line logs in the equipment at both ends, should be by corresponding ports of the line to connection in equipment Linkup (link connection) state, therefore, whether detection line is all linkup state to both ends corresponding ports first;If not, Then show the line to connection error, into abnormality processing process 1;If it is, needing further to be detected, such as line pair The corresponding ports at both ends are all connected with other ports and are linkup state, and not representing line is to pass through to the corresponding ports at both ends The line is correct to connecting, and therefore, continues to carry out linkdown (link down) and linkup (link company to one end port to line Connect) it operates, whether detection line synchronizes variation to the link state of the port of opposite end;If asynchronous variation, enter abnormality processing Process 2;If synchronous variation, the line is correct to connecting, i.e., the described line is recorded in the results list to meeting cabling requirement The testing result of the line pair, by the line to being recorded in " connecting correct line to list " in the results list.
For example, read line to information table, first judges 1 connection relationship line, line is 3 mouthfuls of A equipment to 1 both ends With 5 mouthfuls of B device.The log-on message of A equipment and B device, including A equipment login side are obtained from the equipment log-on message table Formula, logs in IP at login password;B device login mode, logs in IP at login password;According to the log-on message, A is logged in respectively and is set Standby and B device.Whether the link state for detecting 3 mouthfuls of A equipment with 5 mouthfuls of B device is linkup state.If it is not, then entering abnormal Process flow 1;If so, operating to A equipment 3 mouthfuls of progress linkdown and linkup, detection line is to 5 mouthfuls of B device of opposite end Whether link state synchronizes variation;Or B device 5 mouthfuls of progress linkdown and linkup are operated, detection line is to the A equipment to section Whether 3 mouthfuls of link state synchronizes variation, if asynchronous variation, enters abnormality processing process 2;If synchronous variation, described Line is correct to connecting, and the line is recorded in " connecting just in the results list to 1 " 3 mouthfuls of A equipment<-connection 1->5 mouthfuls of B device " True line is to list " in.
Preferably, the network to be tested is tested, not only needs to obtain the correct line pair of connection, also judges to connect The practical connection of the line pair of wrong accidentally, for example, specifically connection error is still not connected with.
Preferably, the reality of the line pair of connection error is judged with abnormality processing process 2 by the abnormality processing process 1 Connection.
Preferably, in a kind of preferred implementation of the abnormality processing process 1, as shown in figure 3, the line is to both ends Corresponding ports are not necessarily all linkup state, if the line is all linkdown state to both ends corresponding ports, by the line Information is recorded in " not connected line is to list " in the results list;If the line is a linkup to both ends corresponding ports State, a linkdown state then show that the port of the linkup state has the corresponding ports of linkup state in a network, Therefore, linkdown and linkup is successively carried out by the port to the linkup state to operate, in poll network to be tested Equipment finds out the corresponding ports of variation synchronous with the port of the linkup state, and actual connection relationship can be obtained and carry out Record.
For example, then should if 5 mouthfuls of 3 mouthfuls of A equipment and B device are all linkdown state in 3 mouthfuls and 5 mouthfuls of B device of A equipment For line to being recorded in " not connected line is to list " in the results list, i.e., 3 mouthfuls and 5 mouthfuls of B device of A equipment not connected.If A equipment 3 mouthfuls are linkup state, and 5 mouthfuls of B device are linkdown state, then show that 3 mouthfuls of A equipment exist in the network to be tested The corresponding ports of linkup state successively carry out linkdown and linkup to 3 mouthfuls of A equipment and grasp to find out the corresponding ports Make, the equipment in poll network to be tested finds out the corresponding ports of variation synchronous with 3 mouthfuls of A equipment, such as 7 mouthfuls of B device, and by institute Actual connection relationship is stated to be recorded.Preferably, former line is recorded in knot to 1 " 3 mouthfuls of A equipment<-connection 1->5 mouthfuls of B device " In " line of connection error is to list " in fruit list.
Preferably, in a kind of preferred implementation of the abnormality processing process 2, as shown in figure 4, the line is to both ends All there are the corresponding ports of linkup state in corresponding ports, therefore, by corresponding to both ends to the line respectively in a network A port in port successively carries out linkdown and linkup operation, and the equipment in poll network to be tested is found out and is somebody's turn to do The corresponding ports of the synchronous variation in port, can be obtained actual line connecting relation and are recorded.
For example, if 3 mouthfuls of A equipment variations asynchronous with 5 mouthfuls of B device of link state, i.e. 5 mouthfuls of 3 mouthfuls of A equipment and B device all There are the corresponding ports of linkup state, but 5 mouthfuls of 3 mouthfuls of A equipment and B device be not practical to be connected.In order to find out A equipment respectively 3 mouthfuls and 5 mouthfuls of B device of corresponding ports successively carry out linkdown and linkup to 3 mouthfuls of A equipment and operate, poll network to be tested In equipment, find out the corresponding ports of variation synchronous with 3 mouthfuls of A equipment, such as 7 mouthfuls of B device, and the connection relationship remembered Record;Then, linkdown and linkup is successively carried out to 5 mouthfuls of B device to operate, the equipment in poll network to be tested, find out and B The corresponding ports of 5 mouthfuls of equipment synchronous variations, record such as 3 mouthfuls of C equipment, and by the actual connection relationship.
In a kind of preferred implementation of step S13, if the connection of line pair is correct, the connection is further being detected just The signal quality of true line pair.
Preferably, respectively in the line to signal quality data is checked in the even equipment of section, judge that the signal quality is It is no to meet preset engine request;If it is not, then by the line to be recorded in the results list " line of poor signal quality is to column The line of table " poor signal quality is to list;If so, judge line to whether end of polling(EOP), if non-end of polling(EOP), to line to letter The remaining line in table is ceased to step S12, step S13 is successively executed, for example, to line to connection 2, connection 3, the connection in information table 4 successively execute step S12, step S13;If end of polling(EOP), the information in the results list is summarized.
Preferably due to be to each line to being polled, therefore, the actual connection relationship between obtained port can be deposited It is repeating, it is therefore desirable to which the information in list is summarized.The line pair that will be read in the summary information and step S11 Information table compares, and obtains and is not recorded in the line in the network under test to the line pair in information table, is recorded in than planning More lines are in list.
For example, not remembered by the abnormality processing process 1 and the obtained actual connection relationship of abnormality processing process 2 Record, in information table, by comparing, is recorded in " than the planning more lines to list " in the results list in the line.
Preferably, several chartings in described the results list are normalized, with external offer it is unified read and Query interface.
Through this embodiment, realize simple, strong applicability, the realization of automation, significantly improve network test efficiency and The reliability of test result.It can be used for the regular visit to network of computer room, all standing detection reaches the work of Continuous Quality guarantee With.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
The introduction about embodiment of the method above, below by way of Installation practice, to scheme of the present invention carry out into One step explanation.
Fig. 5 is the structure chart of network test system embodiment of the present invention, as shown in figure 5, comprising the following modules:
Read module 51 is planned, for reading the design planning data of network to be tested;
Connection relationship detection module 52, for judging the connection relationship of line pair according to the design planning data;
Signal quality detector module 53, for detecting the signal quality for connecting correct line pair.
In a kind of preferred implementation of planning read module 51, planning read module 51 reads to be measured from database The design planning data of network are tried, the design planning data include line to information and equipment log-on message.
Preferably, the line is line to information table to information, has recorded in network to be tested each line to two with tabular form The device port connection relationship at end, such as shown in table 1,
Table 1
Preferably, the equipment log-on message is equipment log-on message table, has recorded network to be tested in the form of a list In each equipment log-on message, comprising: login mode, logs in IP etc. at login password, each to be logged according to the log-on message Equipment judges the port connection relationship of each equipment, such as shown in table 2,
A equipment login mode, logs in IP at login password
B device login mode, logs in IP at login password
C equipment login mode, logs in IP at login password
D equipment login mode, logs in IP at login password
E equipment login mode, logs in IP at login password
F equipment login mode, logs in IP at login password
Table 2
Preferably, according to the difference of equipment, the login mode may include the login modes such as ssh, telnet.
In a kind of preferred implementation of connection relationship detection module 52, it is used for according to the design planning data, it is right The connection relationship of line pair judges;
Preferably, the line that connection relationship detection module 52 is read according to planning read module 51 is successively right to information The connection relationship of each line pair judges;
Preferably, the device identification according to each line to both ends obtains the equipment log-on message, calls equipment login module 54 log in line to the equipment at both ends, judge the connection relationship of each line pair.Preferably, equipment control and information record are called The order line sequence of acquisition link state after equipment login mode and logging device is sent to equipment login module by module 55 54, the order line difference of distinct device is shielded, and corresponding result is returned to connection relationship detection module 52.Equipment logs in mould After block 54 is according to the login mode logging device, inputting the order line sequence with obtain order line output includes port The log information of link state is won the link state of exit port by 52 recalls information analysis module 55 of connection relationship detection module And return result to connection relationship detection module 52.
Preferably due to after line logs in the equipment at both ends, should be by corresponding ports of the line to connection in equipment Whether linkup state, therefore, the detection line first of connection relationship detection module 52 are all linkup state to both ends corresponding ports; If it is not, then showing the line to connection error, into abnormality processing process 1;If it is, need further to be detected, Such as line is all connected to the corresponding ports at both ends with other ports and is linkup state, does not represent line to the corresponding end at both ends Mouthful be it is correct to connecting by the line, therefore, by order line continue to line to one end port carry out linkdown and Whether linkup operation, detection line synchronize variation to the link state of the port of opposite end;If asynchronous variation, enter exception Manage process 2;If synchronous variation, the line is correct to connecting, i.e., the described line is to meeting cabling requirement, and by result logging modle 56 record the testing result of the line pair in the results list, by the line to be recorded in the results list " connection is correct Line is to list " in.
For example, read line to information table, first judges 1 connection relationship line, line is 3 mouthfuls of A equipment to 1 both ends With 5 mouthfuls of B device.The log-on message of A equipment and B device, including A equipment login side are obtained from the equipment log-on message table Formula, logs in IP at login password;B device login mode, logs in IP at login password;According to the log-on message, A is logged in respectively and is set Standby and B device.Whether the link state for detecting 3 mouthfuls of A equipment with 5 mouthfuls of B device is linkup state.If it is not, then entering abnormal Process flow 1;If so, operating to A equipment 3 mouthfuls of progress linkdown and linkup, detection line is to 5 mouthfuls of B device of opposite end Whether link state synchronizes variation;Or B device 5 mouthfuls of progress linkdown and linkup are operated, detection line is to the A equipment to section Whether 3 mouthfuls of link state synchronizes variation, if asynchronous variation, enters abnormality processing process 2;If synchronous variation, described Line is correct to connecting, and the line is recorded in " connecting just in the results list to 1 " 3 mouthfuls of A equipment<-connection 1->5 mouthfuls of B device " True line is to list " in.
Preferably, the network to be tested is tested, not only needs to obtain the correct line pair of connection, also judges to connect The practical connection of the line pair of wrong accidentally, for example, specifically connection error is still not connected with.
Preferably, the first abnormality processing submodule that connection relationship detection module 52 passes through the processing abnormality processing process 1 Block and the second abnormality processing submodule of the abnormality processing process 2 is handled to judge the practical connection feelings of the line pair of connection error Condition.
Preferably, in a kind of preferred implementation of the abnormality processing process 1, the line to both ends corresponding ports simultaneously It is not all linkup state, if the line is all linkdown state to both ends corresponding ports, the line records information In " not connected line is to list " in the results list;As the line to both ends corresponding ports be a linkup state, one Linkdown state then shows that the port of the linkup state has the corresponding ports of linkup state in a network, therefore, leads to It crosses and linkdown and linkup operation is successively carried out to the port of the linkup state, the equipment in poll network to be tested is looked for The corresponding ports of variation synchronous with the port of the linkup state out can be obtained actual connection relationship and be recorded.
For example, then should if 5 mouthfuls of 3 mouthfuls of A equipment and B device are all linkdown state in 3 mouthfuls and 5 mouthfuls of B device of A equipment For line to being recorded in " not connected line is to list " in the results list, i.e., 3 mouthfuls and 5 mouthfuls of B device of A equipment not connected.If A equipment 3 mouthfuls are linkup state, and 5 mouthfuls of B device are linkdown state, then show that 3 mouthfuls of A equipment exist in the network to be tested The corresponding ports of linkup state successively carry out linkdown and linkup to 3 mouthfuls of A equipment and grasp to find out the corresponding ports Make, the equipment in poll network to be tested finds out the corresponding ports of variation synchronous with 3 mouthfuls of A equipment, such as 7 mouthfuls of B device, and by institute Actual connection relationship is stated to be recorded.Preferably, former line is recorded in knot to 1 " 3 mouthfuls of A equipment<-connection 1->5 mouthfuls of B device " In " line of connection error is to list " in fruit list.
Preferably, in a kind of preferred implementation of the abnormality processing process 2, the line exists to both ends corresponding ports All there are the corresponding ports of linkup state in network, therefore, by respectively to the line to one in the corresponding ports of both ends A port successively carries out linkdown and linkup operation, and the equipment in poll network to be tested finds out become synchronous with the port The corresponding ports of change can be obtained actual line connecting relation and be recorded.
For example, if 3 mouthfuls of A equipment variations asynchronous with 5 mouthfuls of B device of link state, i.e. 5 mouthfuls of 3 mouthfuls of A equipment and B device all There are the corresponding ports of linkup state, but 5 mouthfuls of 3 mouthfuls of A equipment and B device be not practical to be connected.In order to find out A equipment respectively 3 mouthfuls and 5 mouthfuls of B device of corresponding ports successively carry out linkdown and linkup to 3 mouthfuls of A equipment and operate, poll network to be tested In equipment, find out the corresponding ports of variation synchronous with 3 mouthfuls of A equipment, such as 7 mouthfuls of B device, and the connection relationship remembered Record;Then, linkdown and linkup is successively carried out to 5 mouthfuls of B device to operate, the equipment in poll network to be tested, find out and B The corresponding ports of 5 mouthfuls of equipment synchronous variations, record such as 3 mouthfuls of C equipment, and by the actual connection relationship.
In a kind of preferred implementation of signal quality detector module 53, for detecting the letter for connecting correct line pair Number quality.
Preferably, respectively in the line to signal quality data is checked in the even equipment of section, judge that the signal quality is It is no to meet preset engine request;If it is not, then call result logging modle 56 is by the line to being recorded in the results list The line of " line of poor signal quality is to list " poor signal quality is to list;If so, judge line to whether end of polling(EOP), if not End of polling(EOP), then to line to the remaining line in information table to successively execute step S12, step S13, for example, to line to information table In connection 2, connection 3, connection 4 successively execute step S12, step S13;If end of polling(EOP), call result logging modle Information in 56 pairs of the results lists summarizes.
Preferably, the order line sequence for calling equipment control to will acquire signal strength with information logging modle 55, which is sent to, to be set Standby login module 54, shields the order line difference of distinct device, and corresponding result is returned to signal quality detector module 53. Equipment login module 54 inputs the order line sequence for obtaining signal strength to obtain the letter including port of order line output The log information of number intensity, wins the signal strength of exit port simultaneously by 53 recalls information analysis module 55 of signal quality detector module Return result to signal strength detection module 53.
Preferably due to be to each line to being polled, therefore, the actual connection relationship between obtained port can be deposited It is repeating, it is therefore desirable to which call result logging modle 56 summarizes the information in list.By the summary information and planning The line read in read module 51 compares information table, obtains and is not recorded in the line in the network under test to letter The line pair in table is ceased, is recorded in than planning more lines in list.
For example, not remembered by the abnormality processing process 1 and the obtained actual connection relationship of abnormality processing process 2 Record, in information table, by comparing, is recorded in " than the planning more lines to list " in the results list in the line.
Preferably, the connection relationship detection module 52 can be same module with signal quality detector module 53.
Preferably, as a result several chartings in described the results list are normalized in logging modle 56, with external Unified reading and query interface are provided.
Through this embodiment, realize simple, strong applicability, the realization of automation, significantly improve network test efficiency and The reliability of test result.It can also realize the regular visit to network of computer room, all standing detection, reach Continuous Quality guarantee Effect.
It is apparent to those skilled in the art that for convenience and simplicity of description, the terminal of the description It with the specific work process of server, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed method and apparatus can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can integrate in a processor, it is also possible to Each unit physically exists alone, and can also be integrated in one unit with two or more units.The integrated unit Both it can take the form of hardware realization, can also have been realized in the form of hardware adds SFU software functional unit.
Fig. 6 shows the frame for being suitable for the exemplary computer system/server 012 for being used to realize embodiment of the present invention Figure.The computer system/server 012 that Fig. 6 is shown is only an example, should not function and use to the embodiment of the present invention Range band carrys out any restrictions.
As shown in fig. 6, computer system/server 012 is showed in the form of universal computing device.Computer system/clothes The component of business device 012 can include but is not limited to: one or more processor or processor 016, system storage 028, Connect the bus 018 of different system components (including system storage 028 and processor 016).
Bus 018 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer system/server 012 typically comprises a variety of computer system readable media.These media, which can be, appoints The usable medium what can be accessed by computer system/server 012, including volatile and non-volatile media, movably With immovable medium.
System storage 028 may include the computer system readable media of form of volatile memory, such as deposit at random Access to memory (RAM) 030 and/or cache memory 032.Computer system/server 012 may further include other Removable/nonremovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 034 can For reading and writing immovable, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").Although in Fig. 6 It is not shown, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and to can The CD drive of mobile anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these situations Under, each driver can be connected by one or more data media interfaces with bus 018.Memory 028 may include At least one program product, the program product have one group of (for example, at least one) program module, these program modules are configured To execute the function of various embodiments of the present invention.
Program/utility 040 with one group of (at least one) program module 042, can store in such as memory In 028, such program module 042 includes --- but being not limited to --- operating system, one or more application program, other It may include the realization of network environment in program module and program data, each of these examples or certain combination.Journey Sequence module 042 usually executes function and/or method in embodiment described in the invention.
Computer system/server 012 can also with one or more external equipments 014 (such as keyboard, sensing equipment, Display 024 etc.) communication, in the present invention, computer system/server 012 is communicated with outside radar equipment, can also be with One or more equipment that sounder is interacted with the computer system/server 012 communication, and/or with make this Any equipment that computer system/server 012 can be communicated with one or more of the other calculating equipment (adjust by such as network interface card Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 022.Also, computer system/ Server 012 can also pass through network adapter 020 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, for example, internet) communication.As shown in fig. 6, network adapter 020 passes through bus 018 and computer Other modules of systems/servers 012 communicate.It should be understood that computer system/service can be combined although being not shown in Fig. 6 Device 012 uses other hardware and/or software module, including but not limited to: microcode, device driver, redundant processor, outside Disk drive array, RAID system, tape drive and data backup storage system etc..
The program that processor 016 is stored in system storage 028 by operation, thereby executing reality described in the invention Apply the function and/or method in example.
Above-mentioned computer program can be set in computer storage medium, i.e., the computer storage medium is encoded with Computer program, the program by one or more computers when being executed, so that one or more computers execute in the present invention State method flow shown in embodiment and/or device operation.
With time, the development of technology, medium meaning is more and more extensive, and the route of transmission of computer program is no longer limited by Tangible medium, can also be directly from network downloading etc..It can be using any combination of one or more computer-readable media. Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer-readable storage medium Matter for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or Any above combination of person.The more specific example (non exhaustive list) of computer readable storage medium includes: with one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It is fully executed on sounder computer, partly executes on sounder computer, held as an independent software package Row, partially on sounder computer part on the remote computer execute or completely on a remote computer or server It executes.In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) or wide area network (WAN) is connected to sounder computer, or, it may be connected to outer computer (such as utilize internet Service provider is connected by internet).
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of the description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed method and apparatus can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can integrate in a processor, it is also possible to Each unit physically exists alone, and can also be integrated in one unit with two or more units.The integrated unit Both it can take the form of hardware realization, can also have been realized in the form of hardware adds SFU software functional unit.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (18)

1. a kind of network test method, which is characterized in that the described method includes:
Read the design planning data of network to be tested;
According to the design planning data, the connection relationship of line pair is judged;
Detection connects the signal quality of correct line pair.
2. the method according to claim 1, wherein
The design planning data include line to information and equipment log-on message.
3. according to the method described in claim 2, it is characterized in that, described according to the design planning data, to the company of line pair The relationship of connecing carries out judgement
According to the line to information and equipment log-on message, connection of each line to the equipment at both ends, to the line pair is successively logged in Relationship is judged.
4. according to the method described in claim 3, it is characterized in that, to the connection of the line pair carry out judgement include:
Judge the line to the port at both ends whether all for link connection state;
If not, into the first abnormality processing process;
If so, successively being interrupted to the line to one section of port, attended operation, whether detection Peer-Port synchronizes change Change;
If asynchronous variation, into the second abnormality processing process;
If synchronous variation, judges that the connection of the line pair is correct.
5. according to the method described in claim 4, it is characterized in that, the first abnormality processing process includes:
If the line is all link terminal state to the port at both ends, judge the line to not connected;
If the line is respectively interruption and connection status to the port at both ends, the port of connection status is successively interrupted, even Operation is connect, the corresponding ports of synchronous variation in network are detected.
6. according to the method described in claim 4, it is characterized in that, the second abnormality processing process includes:
Port of the line to both ends is successively interrupted respectively, attended operation, detects the corresponding end of synchronous variation in network Mouthful.
7. method according to claim 5 or 6, which is characterized in that the method also includes:
The detected actual line of record is to connection relationship.
8. the method according to the description of claim 7 is characterized in that the signal quality that detection connects correct line pair also wraps later It includes:
Detected actual line summarizes connection relationship.
9. a kind of network test system, which is characterized in that the system comprises:
Read module is planned, for reading the design planning data of network to be tested;
Connection relationship detection module, for judging the connection relationship of line pair according to the design planning data;
Signal quality detector module, for detecting the signal quality for connecting correct line pair.
10. system according to claim 9, which is characterized in that
The design planning data include line to information and equipment log-on message.
11. system according to claim 10, which is characterized in that the connection relationship detection module is specifically used for:
According to the line to information and equipment log-on message, equipment login module is called successively to log in each line to the equipment at both ends, The connection relationship of the line pair is judged.
12. system according to claim 11, which is characterized in that the connection relationship detection module is specifically used for:
Judge the line to the port at both ends whether all for link connection state;
If not, into the first abnormality processing process;
If so, successively being interrupted to the line to one section of port, attended operation, whether detection Peer-Port synchronizes change Change;
If asynchronous variation, into the second abnormality processing process;
If synchronous variation, judges that the connection of the line pair is correct.
13. system according to claim 12, which is characterized in that the connection relationship detection module includes the first exception Submodule is managed, is used for:
If the line is all link terminal state to the port at both ends, judge the line to not connected;
If the line is respectively interruption and connection status to the port at both ends, the port of connection status is successively interrupted, even Operation is connect, the corresponding ports of synchronous variation in network are detected.
14. system according to claim 12, which is characterized in that the connection relationship detection module includes the second exception Submodule is managed, for successively being interrupted to port of the line to both ends respectively, attended operation, detects synchronous variation in network Corresponding ports.
15. system described in 3 or 14 according to claim 1, which is characterized in that the system also includes result logging modles, use In the detected actual line of record to connection relationship.
16. system according to claim 15, which is characterized in that the result logging modle is also used to detected Actual line summarizes connection relationship.
17. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor is realized when executing described program as any in claim 1~8 Method described in.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed Such as method according to any one of claims 1 to 8 is realized when device executes.
CN201810957700.8A 2018-08-22 2018-08-22 Network testing method and system Active CN109194541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810957700.8A CN109194541B (en) 2018-08-22 2018-08-22 Network testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810957700.8A CN109194541B (en) 2018-08-22 2018-08-22 Network testing method and system

Publications (2)

Publication Number Publication Date
CN109194541A true CN109194541A (en) 2019-01-11
CN109194541B CN109194541B (en) 2021-04-16

Family

ID=64918875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810957700.8A Active CN109194541B (en) 2018-08-22 2018-08-22 Network testing method and system

Country Status (1)

Country Link
CN (1) CN109194541B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941561A (en) * 2022-09-23 2023-04-07 中盈优创资讯科技有限公司 Method and device for automatically testing link quality based on link correspondence

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531229A (en) * 2003-03-13 2004-09-22 华为技术有限公司 Method for detecting chain circuit cross misconnection
CN101042420A (en) * 2007-04-24 2007-09-26 华为技术有限公司 Method, system and device for line detection
CN101424721A (en) * 2008-11-28 2009-05-06 江苏省电力公司南京供电公司 Telemetry link on-line detecting system of scheduling automated system
CN101605180A (en) * 2008-06-10 2009-12-16 上海贝尔阿尔卡特股份有限公司 Subscribers feeder is to lookup method and device thereof in a kind of network access system
CN103166774A (en) * 2011-12-09 2013-06-19 中国移动通信集团福建有限公司 Checking method and device of the same route
CN103701665A (en) * 2013-12-27 2014-04-02 华为技术有限公司 Line connection error detecting method and device
CN104518927A (en) * 2014-12-15 2015-04-15 清华大学 Detecting method and device of error connection in data center network
CN105450442A (en) * 2015-11-06 2016-03-30 广东电网有限责任公司电力科学研究院 Network topology checking method and system thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531229A (en) * 2003-03-13 2004-09-22 华为技术有限公司 Method for detecting chain circuit cross misconnection
CN101042420A (en) * 2007-04-24 2007-09-26 华为技术有限公司 Method, system and device for line detection
CN101605180A (en) * 2008-06-10 2009-12-16 上海贝尔阿尔卡特股份有限公司 Subscribers feeder is to lookup method and device thereof in a kind of network access system
CN101424721A (en) * 2008-11-28 2009-05-06 江苏省电力公司南京供电公司 Telemetry link on-line detecting system of scheduling automated system
CN103166774A (en) * 2011-12-09 2013-06-19 中国移动通信集团福建有限公司 Checking method and device of the same route
CN103701665A (en) * 2013-12-27 2014-04-02 华为技术有限公司 Line connection error detecting method and device
CN104518927A (en) * 2014-12-15 2015-04-15 清华大学 Detecting method and device of error connection in data center network
CN105450442A (en) * 2015-11-06 2016-03-30 广东电网有限责任公司电力科学研究院 Network topology checking method and system thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941561A (en) * 2022-09-23 2023-04-07 中盈优创资讯科技有限公司 Method and device for automatically testing link quality based on link correspondence

Also Published As

Publication number Publication date
CN109194541B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US9219644B2 (en) Automated configuration of new racks and other computing assets in a data center
US9091719B2 (en) Systems and methods of identifying connections in a communications patching system using common-mode channel signal transmissions
CN108768730B (en) Method and device for operating intelligent network card
US6809505B2 (en) Storage system and method of detecting an improper cable connection in the storage system
US20130234725A1 (en) Intelligent Patching Systems and Methods Using Electrical Cable Diagnostic Tests and Inference-Based Mapping Techniques
CN101483698A (en) Methods, systems and computer program products for using time domain reflectometry signatures to monitor network communication lines
US20220050765A1 (en) Method for processing logs in a computer system for events identified as abnormal and revealing solutions, electronic device, and cloud server
CN106851513A (en) The method of testing and system of a kind of electronic product
CN108446193A (en) A kind of serial ports test system and method
CN109194541A (en) A kind of network test method and system
CN108197016A (en) A kind of cloud platform failure cause analysis method, device, equipment and storage medium
CN114338493A (en) NCSI test method, system, device and storage medium based on network protocol stack
US6912599B2 (en) Method and apparatus for sensing positions of device enclosures within multi-shelf cabinets
WO2002025870A1 (en) Method, system, and computer program product for managing storage resources
CN106649019A (en) Test method for overall automatic PCIE communication quality based on serial port
US7489626B2 (en) Method of using cable test to modify teaming failover algorithm
KR200493553Y1 (en) red LED recognition Circuit for detecting a connection error of cable used in a LAN modular jack and an active patch panel and active patch panel having the same
CN110514931B (en) Electromagnetic compatibility test system and method for equipment with vehicle-mounted Ethernet function
CN107544830A (en) A kind of method and device of automatic installation database
CN116962184A (en) Method, system, terminal and medium for automatically deploying RoCE cluster
CN109254553A (en) Control systems of nuclear power plant
CN109167707A (en) A kind of shunting device test macro, method, apparatus, server and storage medium
CN114755223A (en) Electronic equipment wiring monitoring method, device and system
US9772788B1 (en) Cable with integrated status indicator
CN101316202B (en) On-line diagnosis method and system of embedded software, embedded software device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant