CN111130917B - Line testing method, device and system - Google Patents

Line testing method, device and system Download PDF

Info

Publication number
CN111130917B
CN111130917B CN201811290212.2A CN201811290212A CN111130917B CN 111130917 B CN111130917 B CN 111130917B CN 201811290212 A CN201811290212 A CN 201811290212A CN 111130917 B CN111130917 B CN 111130917B
Authority
CN
China
Prior art keywords
server
switch
test result
line state
data packet
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.)
Active
Application number
CN201811290212.2A
Other languages
Chinese (zh)
Other versions
CN111130917A (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201811290212.2A priority Critical patent/CN111130917B/en
Publication of CN111130917A publication Critical patent/CN111130917A/en
Application granted granted Critical
Publication of CN111130917B publication Critical patent/CN111130917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • 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/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

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

Abstract

The application discloses a line testing method, device and system. Wherein, the method comprises the following steps: sending a control instruction to a first switch corresponding to a first server, wherein the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to a second server; obtaining a test result corresponding to the test data packet sent by the first switch, wherein the test result is used for reflecting a line state between the first switch and the second switch; and determining the line state between the first server and the second server according to the test result. The method and the device solve the technical problems that when a line between the servers goes wrong, the specific position and the line of the fault cannot be located, and the line is inconvenient to maintain and adjust.

Description

Line testing method, device and system
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, and a system for testing a circuit.
Background
In the prior art, a bridge between a machine room and a machine room is mainly used for the mutual access of the machine room when the machine room is a special line, so that the quality of the special line is very important, and slight delay and jitter influence the communication quality.
At present, in the related technical field, two physical servers are generally used for ping test, but because multiple network devices pass through between the servers, each link becomes a problem point, and it is inconvenient to find a specific fault position and maintain and adjust the fault position.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a line testing method, device and system, which at least solve the technical problems that when a line between servers has a problem, the specific position and line of the fault cannot be located, and the line is inconvenient to maintain and adjust.
According to an aspect of an embodiment of the present application, there is provided a method for testing a line, including: sending a control instruction to a first switch corresponding to a first server, wherein the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to a second server; obtaining a test result corresponding to the test data packet sent by the first switch, wherein the test result is used for reflecting a line state between the first switch and the second switch; and determining the line state between the first server and the second server according to the test result.
Optionally, the test data packet includes: a data packet for testing connectivity between a first switch and the second switch; determining the line state between the first server and the second server according to the test result comprises: and when the test result indicates that the packet loss rate of the data packet reaches a first preset threshold value, determining that the line state between the first server and the second server is disconnected.
Optionally, the test data packet includes: a data packet for testing the quality of a link between a first switch and the second switch; determining the line state between the first server and the second server according to the test result comprises: and when the test result indicates that the packet loss rate of the test data packet reaches a second preset threshold value, determining that the line state between the first server and the second server is abnormal in link quality.
Optionally, after determining the line status between the first server and the second server according to the test result, the method further includes: and when the test result shows that the line state between the first server and the second server is disconnected or the link quality is abnormal, sending alarm information to an alarm system, wherein the alarm information is used for prompting the fault type.
Optionally, the method further comprises: acquiring time information corresponding to a line state, inputting the time information into a preset model for analysis, and obtaining the line state between a first server and a second server corresponding to the time information, wherein the preset model is obtained through training of multiple groups of data, and each group of data in the multiple groups of data comprises: and the line state corresponding to the sample time information is identified.
According to an aspect of an embodiment of the present application, there is provided a method for testing a line, including: a first switch receives a control instruction, wherein the control instruction is used for instructing the first switch to send a test data packet to a second switch, the first switch corresponds to a first server, and the second switch corresponds to a second server; the first switch receives feedback information after the second switch acquires the test data packet; the first switch determines a test result according to the feedback information, wherein the test result is used for reflecting the line state between the first switch and the second switch; and the first switch sends the test result to a server.
According to an aspect of an embodiment of the present application, there is provided a system for testing a line, including: the system comprises a first server, a second server and a third server, wherein the first server is used for sending a control instruction to a first switch corresponding to the first server, the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to the second server, and obtaining a test result from the first switch, the test result is used for reflecting the line state between the first switch and the second switch, and the line state between the first server and the second server is determined according to the test result; the first switch is used for receiving the control instruction, sending the test data packet, receiving feedback information obtained by the second switch after the test data packet is obtained, determining a test result according to the feedback information, and sending the test result to the first server; and the second switch is used for receiving the test data packet and sending feedback information corresponding to the test data packet to the first switch.
According to an aspect of an embodiment of the present application, there is provided an apparatus for testing a line, including: the system comprises a sending module, a first server and a second server, wherein the sending module is used for sending a control instruction to a first switch corresponding to the first server, and the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to the second server; an obtaining module, configured to obtain a test result corresponding to the test data packet sent by the first switch, where the test result is used to reflect a line state between the first switch and the second switch; and the determining module is used for determining the line state between the first server and the second server according to the test result.
According to an aspect of the embodiments of the present application, there is provided a storage medium, wherein the storage medium includes a stored program, and wherein when the program runs, the storage medium controls a device to execute the above-mentioned method for testing a circuit.
According to an aspect of the embodiments of the present application, there is provided a processor, wherein the processor is configured to execute a program, and wherein the program executes the method for performing the above-mentioned line test.
In the embodiment of the application, a control instruction is sent to a first switch corresponding to a first server, and the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to a second server; obtaining a test result corresponding to the test data packet sent by the first switch, wherein the test result is used for reflecting a line state between the first switch and the second switch; and determining the line state between the first server and the second server according to the test result. The detection of the circuit between the switches corresponding to the other server through the switch corresponding to the server is achieved, and the effect of accurately positioning the fault position is achieved. Therefore, the technical problem that when a line between servers goes wrong, the specific position and the line of the fault cannot be located, and line maintenance and adjustment are inconvenient is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic flow chart diagram illustrating an alternative method for line testing in accordance with an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating an alternative method for line testing in accordance with an embodiment of the present application;
FIG. 3 is a schematic block diagram of an alternative line testing system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an alternative line testing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present application, there is provided a method embodiment of line testing, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a schematic flow chart of a method for testing a circuit according to an embodiment of the present application, and as shown in fig. 1, the method at least includes the following steps:
step S102, sending a control instruction to a first switch corresponding to a first server, wherein the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to a second server;
in some optional embodiments of the present application, before sending the control instruction to the first switch, the first server may further log in to the first switch through a script, for example, log in to the first switch through a paramiko module, so that the first switch may receive the control instruction sent by the first server; the paramiko module is a module for remote control, and commands or file operations can be performed on a remote server by using the paramiko module.
In some optional embodiments of the present application, the first server may send the control command periodically, or may send the control command at any time as needed; the test data packet may be a data packet for verifying line connectivity, or may be a data packet for verifying link quality.
Step S104, obtaining a test result corresponding to the test data packet sent by the first switch, wherein the test result is used for reflecting a line state between the first switch and the second switch;
in some optional embodiments of the present application, after the first switch sends the detection packet to the second switch, the second switch sends feedback information to the first switch, where the feedback information may reflect a test result corresponding to the test packet.
And after the first switch acquires the feedback information sent by the second switch, determining a test result and sending the test result to the first server.
And step S106, determining the line state between the first server and the second server according to the test result.
In some optional embodiments of the present application, after the first server obtains the test result sent by the first switch, the first server analyzes the test result, and determines a line state of the test result corresponding to a line state between the first server and the second server; wherein the line status includes at least one of: normal line, disconnected line and abnormal link quality.
In some optional embodiments of the present application, the test data packet may be: a data packet for testing connectivity between a first switch and the second switch; when the test data packet is a data packet for testing connectivity between the first switch and the second switch, determining the line state between the first server and the second server according to the test result may be implemented in the following manner: and when the test result indicates that the packet loss rate of the data packet reaches a first preset threshold value, determining that the line state between the first server and the second server is disconnected.
In some optional embodiments of the present application, when the test packet is a packet for testing connectivity between the first switch and the second switch, the ping packet may be set to be 10 packets, the Maximum Transmission Unit (MTU) may be set to be 1500 bytes, and when a packet loss rate indicated by the test result reaches a first preset threshold 50%, it is determined that a line state between the first server and the second server is disconnected.
As can be seen from the above, the number of packets and the maximum transmission unit used in the test of connectivity are different from those used in the test of link quality. The number of data packets adopted when the connectivity is tested is smaller than that of the data packets adopted when the link quality is tested; the maximum transmission unit used when testing connectivity is smaller than the maximum transmission unit used when testing link quality.
In some optional embodiments of the present application, the test data packet may be: a data packet for testing the quality of a link between a first switch and the second switch; when the test data packet is a data packet for testing the link quality between the first switch and the second switch, determining the line state between the first server and the second server according to the test result may be implemented in the following manner: and when the test result indicates that the packet loss rate of the data packet reaches a second preset threshold value, determining that the line state between the first server and the second server is abnormal in link quality.
In some optional embodiments of the present application, when the test packet is a packet for testing the link quality between the first switch and the second switch, the ping packet may be set to be 1000 packets, the maximum transmission unit is 2000 bytes, and when the packet loss rate indicated by the test result reaches a second preset threshold (e.g., 3%), it is determined that the line status between the first server and the second server is abnormal in link quality.
In some optional embodiments of the present application, after determining the line status between the first server and the second server according to the test result in the above step, the following steps are further performed: and when the test result shows that the line state between the first server and the second server is disconnected or the link quality is abnormal, sending alarm information to an alarm system, wherein the alarm information is used for prompting the fault type.
When judging that the fault information exists in the line state, each server can independently alarm, for example:
when a first server tests that a fault exists in a line state between the first server and a second server, alarm information is sent to an alarm system, and when a second server tests that a fault exists in the line state between the first server and the second server, the alarm information is also sent to the alarm system; when one of the first server and the second server or the switch corresponding to one of the servers has a connection fault or other faults, the other server can still send the alarm information related to the line fault information between the first server and the second server to the alarm center.
In some optional embodiments of the present application, the alarm system is an alarm platform of the server, and after sending the alarm information to the alarm system, an administrator may conveniently maintain a line between the first server and the second server or replace the first switch or the second switch.
In some optional embodiments of the present application, after determining the line status between the first server and the second server according to the test result, the method further includes sending the test result and time information corresponding to the test result to a storage device.
In some optional real-time embodiments of the present application, the above-mentioned line testing method may further include the steps of,
acquiring time information, inputting the time information into a preset model for analysis, and obtaining a line state between a first server and a second server corresponding to the time information, wherein the preset model is obtained through training of multiple groups of data, and each group of data in the multiple groups of data comprises: and the line state corresponding to the sample time information is identified.
In some optional real-time embodiments of the present application, the above-mentioned line testing method may further include the steps of,
acquiring time information corresponding to a line state, inputting the time information into a preset model for analysis, and obtaining the line state between a first server and a second server corresponding to the time information, wherein the preset model is obtained through training of multiple groups of data, and each group of data in the multiple groups of data comprises: and the line state corresponding to the sample time information is identified.
In the embodiment of the application, a control instruction is sent to a first switch corresponding to a first server, and the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to a second server; obtaining a test result corresponding to the test data packet sent by the first switch, wherein the test result is used for reflecting a line state between the first switch and the second switch; and determining the line state between the first server and the second server according to the test result. The detection of the circuit between the switches corresponding to the other server through the switch corresponding to the server is achieved, and the effect of accurately positioning the fault position is achieved. Therefore, the technical problem that when a line between servers goes wrong, the specific position and the line of the fault cannot be located, and line maintenance and adjustment are inconvenient is solved.
Secondly, the Ping test is carried out on the line state between the two servers through the switch, so that the test path can be reduced, the test time is shortened, and the test efficiency is improved.
Fig. 2 is a schematic flow chart of a method for testing a circuit according to an embodiment of the present application, and as shown in fig. 2, the method at least includes the following steps:
step S202, a first switch receives a control instruction, wherein the control instruction is used for instructing the first switch to send a test data packet to a second switch, the first switch corresponds to a first server, and the second switch corresponds to a second server;
in some optional embodiments of the present application, the first switch receives the control instruction from the first server, and the first server may further log in the first switch through a script before sending the control instruction to the first switch, so that the first switch may receive the control instruction sent by the first server.
In some optional embodiments of the present application, the first server may send the control command periodically, or may send the control command at any time as needed; the test data packet may be a data packet for verifying line connectivity, or may be a data packet for verifying link quality.
Step S204, the first switch receives feedback information after the second switch acquires the test data packet;
in some optional embodiments of the present application, after the first switch sends the detection packet to the second switch, the second switch sends feedback information to the first switch, where the feedback information may reflect a test result corresponding to the test packet.
Step S206, the first switch determines a test result according to the feedback information, and the test result is used for reflecting the line state between the first switch and the second switch;
step S208, the first switch sends the test result to a server.
And after the first switch acquires the feedback information sent by the second switch, determining a test result and sending the test result to the first server.
In some optional embodiments of the present application, after the first server obtains the test result sent by the first switch, the first server analyzes the test result, and determines a line state of the test result corresponding to a line state between the first server and the second server; wherein the line status includes at least one of: normal line, disconnected line and abnormal link quality.
In some optional embodiments of the present application, the test data packet may be: a data packet for testing connectivity between a first switch and the second switch; when the test packet is a packet for testing connectivity between the first switch and the second switch,
the first server may determine a line status between the first server and the second server according to the test result, and may be implemented in the following manner: and when the test result indicates that the packet loss rate of the data packet reaches a first preset threshold value, determining that the line state between the first server and the second server is disconnected.
In some optional embodiments of the present application, when the test packet is a packet for testing connectivity between the first switch and the second switch, the ping packet may be set to be 10 packets, the maximum transmission unit is 1500 bytes, and when the packet loss rate indicated by the test result reaches a first preset threshold 50%, the first server determines that the line state between the first server and the second server is disconnected.
In some optional embodiments of the present application, the test data packet may be: a data packet for testing the quality of a link between a first switch and the second switch; when the test packet is a packet for testing the link quality between the first switch and the second switch, the first server may determine the line state between the first server and the second server according to the test result, and may be implemented in the following manner: and when the test result indicates that the packet loss rate of the data packet reaches a second preset threshold value, the first server determines that the line state between the first server and the second server is abnormal in link quality.
In some optional embodiments of the present application, when the test data packet is a data packet for testing the link quality between the first switch and the second switch, the ping data packet may be set to be 1000 packets, the maximum transmission unit is 2000 bytes, and when the data packet loss rate indicated by the test result reaches a second preset threshold of 3%, the first server determines that the line status between the first server and the second server is abnormal in link quality.
In some optional embodiments of the present application, after the first server determines the line status between the first server and the second server according to the test result, the following steps are further performed: and when the test result shows that the line state between the first server and the second server is disconnected or the link quality is abnormal, sending alarm information to an alarm system, wherein the alarm information is used for prompting the fault type.
In some optional embodiments of the present application, the alarm system is an alarm platform of the server, and after sending the alarm information to the alarm system, an administrator may conveniently maintain a line between the first server and the second server or replace the first switch or the second switch.
In some optional embodiments of the present application, after the first server determines the line status between the first server and the second server according to the test result, the method further includes sending, by the server, the test result and/or the line status, and time information corresponding to the test result and/or the line status to a storage device, where the time information may be stored in a form of a text file.
In some optional real-time examples of the present application, the line testing method may further include the following steps that a first server or other intelligent devices obtains time information corresponding to a line state, and inputs the time information into a preset model for analysis to obtain the line state between the first server and a second server corresponding to the time information, where the preset model is obtained through training of multiple sets of data, and each set of data in the multiple sets of data includes: and the line state corresponding to the sample time information is identified.
In the embodiment of the application, a first switch receives a control instruction, wherein the control instruction is used for instructing the first switch to send a test data packet to a second switch, the first switch corresponds to a first server, and the second switch corresponds to a second server; the first switch receives feedback information after the second switch acquires the test data packet; the first switch determines a test result according to the feedback information, wherein the test result is used for reflecting the line state between the first switch and the second switch; and the first switch sends the test result to a server. The detection of the circuit between the switches corresponding to the other server through the switch corresponding to the server is achieved, and the effect of accurately positioning the fault position is achieved. Therefore, the technical problem that when a line between servers goes wrong, the specific position and the line of the fault cannot be located, and line maintenance and adjustment are inconvenient is solved.
Fig. 3 is a schematic structural diagram of a line testing system according to an embodiment of the present application, and as shown in fig. 3, the apparatus at least includes: a first server 32, a first switch 34, a second switch 36, a second server 38; wherein:
the system comprises a first server 32, a second server 32 and a third server, wherein the first server 32 is used for sending a control instruction to a first switch 34 corresponding to the first server 32, the control instruction is used for controlling the first switch 34 to send a test data packet to a second switch 36 corresponding to a second server 38, and obtaining a test result from the first switch 34, the test result is used for reflecting a line state between the first switch 34 and the second switch 36, and the line state between the first server 32 and the second server 38 is determined according to the test result;
the first switch 34 is configured to receive the control instruction, send the test data packet, receive feedback information obtained by the second switch 36 after the test data packet is obtained, determine a test result according to the feedback information, and send the test result to the first server 32;
the second switch 36 is configured to receive the test data packet, and send feedback information corresponding to the test data packet to the first switch 34;
a second server 38 connected to the second switch 36.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 1 for a preferred implementation of the embodiment shown in fig. 3, and details are not described here again.
Fig. 4 is a schematic structural diagram of an apparatus for testing a circuit according to an embodiment of the present application, the apparatus at least including: a sending module 42, an obtaining module 44, and a determining module 46; wherein:
a sending module 42, configured to send a control instruction to a first switch corresponding to a first server, where the control instruction is used to control the first switch to send a test data packet to a second switch corresponding to a second server;
an obtaining module 44, configured to obtain a test result corresponding to the test data packet sent by the first switch, where the test result is used to reflect a line state between the first switch and the second switch;
and a determining module 46, configured to determine a line status between the first server and the second server according to the test result.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 1 for a preferred implementation of the embodiment shown in fig. 4, and details are not described here again.
According to another aspect of the embodiments of the present application, there is also provided a storage medium, where the storage medium includes a stored program, and where the program is executed to control a device in which the storage medium is located to perform the above-mentioned method for testing a circuit.
According to another aspect of the embodiments of the present application, there is also provided a processor, configured to execute a program, where the program executes the method for testing a circuit described above.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit may be a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (8)

1. A method of line testing, comprising:
sending a control instruction to a first switch corresponding to a first server, wherein the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to a second server;
obtaining a test result corresponding to the test data packet sent by the first switch, wherein the test result is used for reflecting a line state between the first switch and the second switch;
determining a line state between the first server and the second server according to the test result;
wherein after determining the line status between the first server and the second server according to the test result, the method further comprises: when the test result shows that the line state between the first server and the second server is disconnected or the link quality is abnormal, sending alarm information to an alarm system, wherein the alarm information is used for prompting the fault type;
the method further comprises the following steps: acquiring time information corresponding to the line state between the first server and the second server, inputting the time information into a preset model for analysis, and obtaining the line state between the first server and the second server corresponding to the time information, wherein the preset model is obtained through training of multiple groups of data, and each group of data in the multiple groups of data comprises: and the line state corresponding to the sample time information.
2. The method of claim 1, wherein the test packet comprises: a data packet for testing connectivity between a first switch and the second switch;
determining the line state between the first server and the second server according to the test result comprises: and when the test result indicates that the packet loss rate of the data packet reaches a first preset threshold value, determining that the line state between the first server and the second server is disconnected.
3. The method of claim 1, wherein the test packet comprises: a data packet for testing the quality of a link between a first switch and the second switch;
determining the line state between the first server and the second server according to the test result comprises: and when the test result indicates that the packet loss rate of the test data packet reaches a second preset threshold value, determining that the line state between the first server and the second server is abnormal in link quality.
4. A method of line testing, comprising:
a first switch receives a control instruction, wherein the control instruction is used for instructing the first switch to send a test data packet to a second switch, the first switch corresponds to a first server, and the second switch corresponds to a second server;
the first switch receives feedback information after the second switch acquires the test data packet;
the first switch determines a test result according to the feedback information, wherein the test result is used for reflecting the line state between the first switch and the second switch;
the first switch sends the test result to the first server;
wherein the method further comprises: when the test result shows that the line state between the first server and the second server is disconnected or the link quality is abnormal, sending alarm information to an alarm system, wherein the alarm information is used for prompting the fault type;
the method further comprises the following steps: the first server obtains time information corresponding to a line state between the first server and the second server, inputs the time information into a preset model for analysis, and obtains the line state between the first server and the second server corresponding to the time information, wherein the preset model is obtained through training of multiple groups of data, and each group of data in the multiple groups of data comprises: and the line state corresponding to the sample time information.
5. A system for line testing, comprising:
the system comprises a first server, a second server and a third server, wherein the first server is used for sending a control instruction to a first switch corresponding to the first server, the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to the second server, and obtaining a test result from the first switch, the test result is used for reflecting the line state between the first switch and the second switch, and the line state between the first server and the second server is determined according to the test result;
the first switch is used for receiving the control instruction, sending the test data packet, receiving feedback information obtained by the second switch after the test data packet is obtained, determining a test result according to the feedback information, and sending the test result to the first server;
the second switch is used for receiving the test data packet and sending feedback information corresponding to the test data packet to the first switch;
a second server connected to the second switch;
the system is further used for sending alarm information to an alarm system when the test result shows that the line state between the first server and the second server is disconnected or the link quality is abnormal, wherein the alarm information is used for prompting the fault type;
the system is further configured to obtain time information corresponding to a line state between the first server and the second server, input the time information into a preset model for analysis, and obtain the line state between the first server and the second server corresponding to the time information, where the preset model is obtained through training of multiple sets of data, and each set of data in the multiple sets of data includes: and the line state corresponding to the sample time information.
6. An apparatus for line testing, comprising:
the system comprises a sending module, a first server and a second server, wherein the sending module is used for sending a control instruction to a first switch corresponding to the first server, and the control instruction is used for controlling the first switch to send a test data packet to a second switch corresponding to the second server;
an obtaining module, configured to obtain a test result corresponding to the test data packet sent by the first switch, where the test result is used to reflect a line state between the first switch and the second switch;
the determining module is used for determining the line state between the first server and the second server according to the test result;
after determining the line state between the first server and the second server according to the test result, when the test result indicates that the line state between the first server and the second server is disconnected or the link quality is abnormal, sending alarm information to an alarm system, wherein the alarm information is used for prompting the fault type;
the device is further configured to obtain time information corresponding to a line state between the first server and the second server, input the time information into a preset model for analysis, and obtain the line state between the first server and the second server corresponding to the time information, where the preset model is obtained through training of multiple sets of data, and each set of data in the multiple sets of data includes: and the line state corresponding to the sample time information.
7. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the apparatus on which the storage medium is located is controlled to execute the method of line testing according to any one of claims 1 to 3 or 4.
8. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method of line testing according to any one of claims 1 to 3 or 4 when running.
CN201811290212.2A 2018-10-31 2018-10-31 Line testing method, device and system Active CN111130917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811290212.2A CN111130917B (en) 2018-10-31 2018-10-31 Line testing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811290212.2A CN111130917B (en) 2018-10-31 2018-10-31 Line testing method, device and system

Publications (2)

Publication Number Publication Date
CN111130917A CN111130917A (en) 2020-05-08
CN111130917B true CN111130917B (en) 2022-04-26

Family

ID=70494365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811290212.2A Active CN111130917B (en) 2018-10-31 2018-10-31 Line testing method, device and system

Country Status (1)

Country Link
CN (1) CN111130917B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938450B (en) * 2021-09-01 2023-09-01 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Avionics system communication fault processing method, avionics system communication fault processing device, computer equipment and medium
CN114363214A (en) * 2021-12-31 2022-04-15 中国信息通信研究院 Method and device for switch anti-seismic test, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863065A (en) * 2005-05-10 2006-11-15 华为技术有限公司 Method for positioning fault of asynchronous transmission mode carrying IP data channel
CN101399715A (en) * 2008-10-15 2009-04-01 北京航空航天大学 Network test platform and test method for optical fiber channel
CN102045222A (en) * 2011-01-30 2011-05-04 重庆思建科技有限公司 Real-time overall test method of network system
CN103281251A (en) * 2013-06-18 2013-09-04 北京百度网讯科技有限公司 Data transmission method and system between data centers and subsystem of data transmission system
CN104506482A (en) * 2014-10-10 2015-04-08 香港理工大学 Detection method and detection device for network attack
CN107317719A (en) * 2017-08-17 2017-11-03 英锐科技(深圳)有限公司 Audio frequency apparatus remote monitoring system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933153A (en) * 2016-04-25 2016-09-07 乐视控股(北京)有限公司 Cluster failure monitoring method and device
CN108289047A (en) * 2018-01-25 2018-07-17 郑州云海信息技术有限公司 A kind of RMT test methods and device
CN108632110B (en) * 2018-03-23 2020-06-19 北京网测科技有限公司 Device performance testing method, system, computer device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863065A (en) * 2005-05-10 2006-11-15 华为技术有限公司 Method for positioning fault of asynchronous transmission mode carrying IP data channel
CN101399715A (en) * 2008-10-15 2009-04-01 北京航空航天大学 Network test platform and test method for optical fiber channel
CN102045222A (en) * 2011-01-30 2011-05-04 重庆思建科技有限公司 Real-time overall test method of network system
CN103281251A (en) * 2013-06-18 2013-09-04 北京百度网讯科技有限公司 Data transmission method and system between data centers and subsystem of data transmission system
CN104506482A (en) * 2014-10-10 2015-04-08 香港理工大学 Detection method and detection device for network attack
CN107317719A (en) * 2017-08-17 2017-11-03 英锐科技(深圳)有限公司 Audio frequency apparatus remote monitoring system

Also Published As

Publication number Publication date
CN111130917A (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN106571977B (en) Data transmission method and device
US10003496B1 (en) Network change management
CN103812726A (en) Automated testing method and device for data communication equipment
CN108429629A (en) Equipment fault restoration methods and device
CN111010298B (en) PON (passive optical network) network fault monitoring method and device
CN103731205B (en) A kind of optical network unit automated testing method
CN111130917B (en) Line testing method, device and system
CN104901828A (en) Equipment end fault removing method
CN102355368A (en) Fault processing method of network equipment and system
CN103259699B (en) Method of testing, system and client and service end
CN104067599A (en) Network state monitoring system
EP3264634B1 (en) Automatically detecting an error in a communication and automatically determining a source of the error
CN103078791A (en) Method, device and system for processing operation, administration and maintenance (OAM) message
CN105550080A (en) Method, apparatus and system for performing server program fault injection based on Linux
CN105743687B (en) Method and device for judging node fault
CN111130821A (en) Power failure alarm method, processing method and device
US20080159506A1 (en) Network element provisioning and event simulation in a communications network
EP2521315A1 (en) Systems and methods for modeling a multi-layer network topology
CN111385166A (en) Network switch testing method, device, equipment and storage medium
CN105472418B (en) A kind of set-top-box system abnormality restoration methods and set-top box
CN102263678B (en) Method and device for predicting stack division
JP5949785B2 (en) Information processing method, apparatus and program
CN110224872B (en) Communication method, device and storage medium
CN114244686B (en) Communication fault detection method, device and system
US11095548B1 (en) Methods, systems, and computer readable media for testing software defined networks

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