CN112260901B - Network damage instrument and use method thereof - Google Patents

Network damage instrument and use method thereof Download PDF

Info

Publication number
CN112260901B
CN112260901B CN202011146317.8A CN202011146317A CN112260901B CN 112260901 B CN112260901 B CN 112260901B CN 202011146317 A CN202011146317 A CN 202011146317A CN 112260901 B CN112260901 B CN 112260901B
Authority
CN
China
Prior art keywords
switching device
network
controller
signal
network traffic
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
CN202011146317.8A
Other languages
Chinese (zh)
Other versions
CN112260901A (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 Teletest Technology Co ltd
Original Assignee
Beijing Teletest 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 Teletest Technology Co ltd filed Critical Beijing Teletest Technology Co ltd
Priority to CN202011146317.8A priority Critical patent/CN112260901B/en
Publication of CN112260901A publication Critical patent/CN112260901A/en
Application granted granted Critical
Publication of CN112260901B publication Critical patent/CN112260901B/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/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • 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

Abstract

The invention provides a network damage instrument and a use method thereof, wherein the use method comprises the following steps: a switching device and a controller; the controller is used for supplying power to the switching device when the controller is in a power-on state; the switching device is used for establishing signal connection with the controller when the controller supplies power, and transmitting first network flow to the controller through the signal connection when the first network flow from external network supply equipment is received; when the controller stops supplying power, the signal connection between the controller and the controller is disconnected, and when first network flow from the network supply equipment is received, the first network flow is transmitted to external network equipment; the controller is further configured to generate a second network traffic signal according to the first network traffic signal and a preset network impairment instruction when receiving the first network traffic from the switching device, and transmit the second network traffic signal to the network device through the switching device. The problem that the network damage instrument is disconnected with the network equipment when the power failure occurs can be solved.

Description

Network damage instrument and use method thereof
Technical Field
The invention relates to the technical field of internet, in particular to a network damage instrument and a use method of the network damage instrument.
Background
With the development of internet technology, more and more applications and network devices need to rely on networks to work. Any network with a long distance has complex network damage conditions such as limited bandwidth, time delay, packet loss, jitter, message disorder, repeated messages, competing traffic, congestion and error codes, which may reduce the performance of the application for network application, even lead to network application paralysis.
In order to analyze and test the network damage condition to test the final use effect of the network application in the real network, at the present stage, a network damage instrument is mainly adopted to perform fault injection on the network damage.
The network damage instrument needs to be in a power-on state when working, but in practical application, if the network damage instrument is powered off, the network damage instrument can be paralyzed, so that network flow received by the network damage instrument from the network supply equipment can not be transmitted to the network utilization equipment, and the network utilization equipment is disconnected.
Disclosure of Invention
The invention provides a network damage instrument and a use method of the network damage instrument, which can ensure that a network device cannot be disconnected when the network damage instrument is powered down.
In a first aspect, an embodiment of the present invention provides a network impairment instrument, including: at least one switching device and a controller;
the controller is used for supplying power to the at least one switching device when the controller is in a power-on state;
the switching device is used for establishing signal connection with the controller when the controller supplies power, and transmitting first network flow to the controller through the signal connection when the first network flow from external network supply equipment is received; when the controller stops supplying power, the signal connection between the controller and the controller is disconnected, and when first network flow from the network supply equipment is received, the first network flow is transmitted to external network equipment;
the controller is further configured to generate a second network traffic signal according to the first network traffic signal and a preset network impairment instruction when receiving the first network traffic from the at least one switching device, and transmit the second network traffic signal to the network device through the at least one switching device.
In a possible implementation manner, when the at least one switching device includes: when the first switching device and the second switching device are in use,
the controller is used for respectively supplying power to the first switching device and the second switching device when the controller is in a power-on state;
the first switching device is configured to transmit the first network traffic to the controller through the signal connection when receiving the first network traffic from the external network supply device; when the controller stops supplying power, disconnecting the signal connection with the controller, establishing transmission connection with the second switching device, and transmitting the first network flow to the second switching device through the transmission connection when receiving the first network flow of the network supply equipment;
the second switching device is configured to transmit the second network traffic signal to the network device through the signal connection when receiving the second network traffic signal from the controller; when the controller stops supplying power, the signal connection between the controller and the controller is disconnected, and when the first network traffic from the first switching device is received, the first network traffic is transmitted to the network utilization equipment;
the controller is further configured to receive the first network traffic from the first switching device, and transmit a second network traffic signal to the second switching device through the signal connection after generating the second network traffic.
In one possible implementation, when the at least one switching device includes: when the first switching device and the second switching device are in use,
the controller is used for supplying power to the first switching device when the controller is in a power-on state;
the first switching device is used for establishing signal connection with the controller when the controller supplies power, establishing electric connection with the second switching device, supplying power to the second switching device through the electric connection, and transmitting the first network flow to the controller through the signal connection when the first network flow from the network supply equipment is received; when the controller stops supplying power, the signal connection with the controller is disconnected, transmission connection is established with the second switching device, and when the first network flow from the network supply equipment is received, the first network flow is transmitted to the second switching device through the transmission connection;
the second switching device is used for establishing electric connection with the first switching device when the first switching device supplies power, establishing the signal connection with the controller, and transmitting a second network flow signal to the network equipment when receiving the second network flow signal from the controller; and when the first switching device stops supplying power, the signal connection with the controller is disconnected, and when the first network traffic from the first switching device is received, the first network traffic is transmitted to the network utilization equipment.
In one possible implementation, the controller includes a transceiver module and a processing module;
the digital signal end of the transceiver module is connected with the processing module, and the analog signal end of the transceiver module is connected with the switching device;
the transceiver module is configured to convert the first network traffic in the form of an analog signal from the switching device into the first network traffic in the form of a digital signal, and transmit the first network traffic in the form of a digital signal to the processing module; converting the second network traffic in the form of digital signals from the processing module into the second network traffic in the form of analog signals, and transmitting the second network traffic in the form of analog signals to the switching device through the signal connection.
In one possible implementation, the network impairment instrument further comprises: an energy storage element;
the energy storage element is arranged in the switching device;
the switching device is also used for establishing electric connection with the energy storage element when the controller supplies power to supply power to the energy storage element;
the energy storage element supplies power to the switching device when the controller stops supplying power to the switching device.
In a second aspect, an embodiment of the present invention provides a method for using a network damage monitor, where the method includes:
supplying power to at least one switching device when in a powered-on state using a controller;
utilizing the at least one switching device to establish signal connection with the controller when the controller is powered on, and transmitting first network flow to the controller through the signal connection when the first network flow from an external network supply device is received;
generating a second network flow signal according to the first network flow signal and a preset network damage instruction by using the controller;
transmitting the second network traffic signal to an external network device through the at least one switching device by using the controller;
and when the controller stops supplying power, the signal connection between the controller and the at least one switching device is disconnected, and when the first network flow is received, the first network flow is transmitted to the network utilization equipment.
In one possible implementation, when the at least one switching device includes: when the first switching device and the second switching device are in use,
the supplying power to at least one switching device includes:
supplying power to the first switching device and the second switching device respectively;
the transmitting the first network traffic to the controller over the signal connection includes:
transmitting the first network traffic to the controller over the signal connection with the first switching device;
the transmitting the second network traffic signal to the external network device through the at least one switching device by using the controller includes:
transmitting the second network traffic signal to the second switching device using the controller;
transmitting the second network flow signal to external network equipment by using the second switching device;
the disconnecting of the signal connection with the controller by using the at least one switching device when the controller stops supplying power, and transmitting the first network traffic to the network device when receiving the first network traffic, includes:
when the controller stops supplying power, the signal connection between the controller and the controller is disconnected by the first switching device and the second switching device, and transmission connection is established between the first switching device and the second switching device;
transmitting the first network traffic to the second switching device through the transmission connection when the first switching device receives the first network traffic of the network supply equipment;
and transmitting the first network traffic to the network equipment by using the second switching device when the first network traffic from the first switching device is received by using the second switching device.
In one possible implementation, when the at least one switching device includes: when the first switching device and the second switching device are in use,
the supplying power to at least one switching device includes:
supplying power to the first switching device;
after the supplying power to the first switching device, further comprising:
utilizing the first switching device to establish signal connection with the controller when the controller supplies power, establishing electrical connection with the second switching device, and supplying power to the second switching device through the electrical connection so as to enable the second switching device to establish the signal connection with the controller;
the transmitting the first network traffic to the controller over the signal connection includes:
transmitting the received first network traffic to the controller through the signal connection using the first switching device;
the transmitting the second network traffic signal to the external network device through the at least one switching device by using the controller includes:
transmitting the second network traffic signal to the second switching device using the controller;
transmitting the second network flow signal to external network equipment by using the second switching device;
the disconnecting of the signal connection with the controller by using the at least one switching device when the controller stops supplying power, and transmitting the first network traffic to the network device when receiving the first network traffic, includes:
when the controller stops the supply of power,
disconnecting the signal connection with the controller by using the first switching device and the second switching device, and establishing a transmission connection with the second switching device by using the first switching device;
transmitting the first network traffic to the second switching device through the transmission connection when the first switching device receives the first network traffic from the network supply equipment;
and transmitting the first network flow to the network equipment by using the second switching device.
In a possible implementation manner, when the controller comprises a transceiver module and a processing module, and when the first network traffic from the external network supply device is received by the at least one switching device,
the transmitting the first network traffic to the controller over the signal connection includes:
converting the first network traffic in the form of an analog signal from the switching device into the first network traffic in the form of a digital signal by using the transceiver module, and transmitting the first network traffic in the form of a digital signal to the processing module;
generating a second network traffic signal according to the first network traffic signal and a preset network damage instruction by using the controller, wherein the method comprises the following steps:
generating a second network flow signal in a digital signal form by utilizing the processing module according to the first network flow in the digital signal form and a preset network damage instruction;
the transmitting the second network traffic signal to the external network device through the at least one switching device by using the controller includes:
sending the second network flow signal in the form of a digital signal to the transceiver module by using the processing module;
and converting the second network traffic signal in the form of a digital signal into the second network traffic signal in the form of a digital signal by using the transceiver module.
In one possible matter, after the utilizing the controller to supply power to the at least one switching device while in the power-on state, the method further includes:
disposing an energy storage element within each of the switching devices;
establishing electric connection with the energy storage element by utilizing the switching device when the controller supplies power, and supplying power to the energy storage element;
and supplying power to the switching device by using the energy storage element when the controller stops supplying power to the switching device.
According to the technical scheme, when the controller is in a power-on state, the switching device is in signal connection with the controller. Therefore, the switching device can transmit the first network flow from the network supply equipment to the controller through the signal connection, so that the controller can carry out network damage on the first network flow signal according to a network damage instruction, and further transmit a second network flow signal generated after the network damage to the network utilization equipment through the switching device, thereby ensuring that the network damage instrument can inject preset faults into the network when the network damage instrument works normally. And when the controller stops supplying power, the switching device is disconnected with the controller, so that the first network flow is directly transmitted to the network utilization equipment through the switching device. Therefore, the scheme can not only guarantee that the network damage instrument normally carries out network damage on the network when the network damage instrument is in the power-off state, but also guarantee that the network equipment normally supplies the network for the network damage instrument when the network damage instrument is in the power-off state, and the network can not be paralyzed due to the power failure of the network damage instrument, so that the use experience of a user can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a network damage meter according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a network damage meter according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network damage meter according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another network impairment instrument provided by an embodiment of the present invention;
fig. 5 is a flowchart of a method for using a network impairment instrument according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention, and based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts belong to the scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a network damage meter, including: at least one switching device 101 and a controller 102;
a controller 102 for supplying power to at least one switching device 101 when in a power-on state;
the switching device 101 is used for establishing signal connection with the controller 102 when the controller 102 supplies power, and transmitting first network flow to the controller 102 through the signal connection when the first network flow from an external network supply device 103 is received; when the controller 102 stops supplying power, the signal connection with the controller 102 is disconnected, and when first network traffic from the network supply device 103 is received, the first network traffic is transmitted to the external network device 104;
the controller 102 is further configured to generate a second network traffic signal according to the first network traffic signal and a preset network impairment instruction when receiving the first network traffic from the at least one switching device 101, and transmit the second network traffic signal to the network device 104 through the at least one switching device 101.
In the embodiment of the invention, when the controller is in a power-on state, the switching device establishes signal connection with the controller. Therefore, the switching device can transmit the first network flow from the network supply equipment to the controller through the signal connection, so that the controller can carry out network damage on the first network flow signal according to a network damage instruction, and further transmit a second network flow signal generated after the network damage to the network utilization equipment through the switching device, thereby ensuring that the network damage instrument can inject preset faults into the network when the network damage instrument works normally. And when the controller stops supplying power, the switching device is disconnected with the controller, so that the first network flow is directly transmitted to the network utilization equipment through the switching device. Therefore, the scheme can not only guarantee that the network damage instrument normally carries out network damage on the network when the network damage instrument is in the power-off state, but also guarantee that the network equipment normally supplies the network for the network damage instrument when the network damage instrument is in the power-off state, and the network can not be paralyzed due to the power failure of the network damage instrument, so that the use experience of a user can be improved.
In one possible implementation, as in the network impairment instrument of fig. 1, when at least one switching device includes a first switching device and a second switching device, the first switching device and the second switching device may be used as an input of the first network traffic and an output of the second network traffic signal, respectively. Specifically, the method may include:
the controller is used for respectively supplying power to the first switching device and the second switching device when the controller is in a power-on state;
the first switching device is used for transmitting first network flow to the controller through signal connection when the first network flow from external network supply equipment is received; when the controller stops supplying power, the signal connection with the controller is disconnected, transmission connection is established with the second switching device, and when first network flow of the network supply equipment is received, the first network flow is transmitted to the second switching device through the transmission connection;
the second switching device is used for transmitting a second network flow signal to the network equipment through signal connection when receiving the second network flow signal from the controller; when the controller stops supplying power, the signal connection with the controller is disconnected, and when first network flow from the first switching device is received, the first network flow is transmitted to the network equipment;
the controller is further configured to receive the first network traffic from the first switching device and transmit a second network traffic signal to the second switching device via the signal connection after generating the second network traffic.
In the embodiment of the invention, the controller is used for respectively supplying power to the first switching device and the second switching device, so that the first network flow can be transmitted to the controller through the first switching device for network damage, the second switching device transmits a second network flow signal injected with a fault to the network equipment, the division of work of the first switching device and the second switching device is more definite, the first switching device and the second switching device can adopt equipment with simpler internal structures, and the same switching device is not required to simultaneously complete the operation of transmitting the first network flow signal and the second network flow signal. And when the controller stops supplying power, the first switching device can be electrically connected with the second switching device, so that the first network flow can be ensured to be transmitted to the network equipment through electric connection, and the problems that a network system is broken down and the network equipment is disconnected under the condition of power failure of the controller are solved.
In one possible implementation, as in the network impairment instrument shown in fig. 1, when at least one switching device includes a first switching device and a second switching device, the controller supplies power to the first switching device and establishes a signal connection; the first switching device is electrically connected with the second switching device and supplies power to the second switching device, so that the first switching device and the second switching device are used as input of the first network flow and output of the second network flow signal respectively. Specifically, the method may include:
when the at least one switching device comprises: when the first switching device and the second switching device are in use,
the controller is used for supplying power to the first switching device when the controller is in a power-on state;
the first switching device is used for establishing signal connection with the controller when the controller supplies power, establishing electric connection with the second switching device, supplying power to the second switching device through the electric connection, and transmitting first network flow to the controller through the signal connection when the first network flow from the network supply equipment is received; when the controller stops supplying power, the signal connection with the controller is disconnected, transmission connection is established with the second switching device, and when first network flow from the network supply equipment is received, the first network flow is transmitted to the second switching device through the transmission connection;
the second switching device is used for establishing electric connection with the first switching device when the first switching device supplies power, establishing signal connection with the controller and transmitting a second network flow signal to the network equipment when receiving the second network flow signal from the controller; when the first switching device stops supplying power, the signal connection with the controller is disconnected, and when first network traffic from the first switching device is received, the first network traffic is transmitted to the network equipment.
In the embodiment of the present invention, when the switching devices include the first switching device and the second switching device, the first switching device may be powered by the controller, and the second switching device may be powered by the first switching device through an electrical connection with the first switching device, so that the first switching device may be in an electrical state when the first switching device is in the electrical state, and synchronization between the two switching devices may be achieved. Meanwhile, the first switching device is used for supplying power to the second switching device, so that a circuit between the first switching device and the controller can be simplified, and the working efficiency of the controller is improved.
In one possible implementation, based on the network impairment instrument shown in fig. 1, as shown in fig. 2, the controller 102 may include a transceiver module 1021 and a processing module 1022. Specifically, the method may include:
the digital signal end of the transceiver module 1021 is connected with the processing module 1022, and the analog signal end of the transceiver module 1021 is connected with the switching device;
a transceiver module 1021, configured to convert the first network traffic in the form of an analog signal from the switching device into the first network traffic in the form of a digital signal, and transmit the first network traffic in the form of a digital signal to the processing module 1022; the second network traffic in the form of digital signals from the processing module 1022 is converted into second network traffic in the form of analog signals, and the second network traffic in the form of analog signals is transmitted to the switching device through the signal connection.
In the embodiment of the invention, the processing module in the controller can only identify the digital signal, the first network traffic provided by the network equipment is an analog signal, and the second network traffic signal output by the network equipment is also an analog signal. Therefore, the conversion between the analog signal and the digital signal is realized through the transceiver module in the controller, so that the network damage instrument can normally work according to the instruction of the processing module, and the fault can be accurately injected into the network according to the network damage information.
In a possible implementation manner, the network injury meter provided in each of the above implementation manners may further include an energy storage element.
In the embodiment of the invention, the energy storage element is arranged in the switching device, and can be electrically connected with the energy storage element to supply power to the energy storage element when the controller supplies power, and the switching device can be supplied with power by the energy storage element when the controller stops supplying power to the switching device. So make auto-change over device's selection more extensive, can need not select when the outage the components and parts that auto-change over device can resume initial condition, even the components and parts that the outage stops promptly, through supplying power by energy storage component, also can realize the switching of state to can guarantee to transmit first network flow for the confession net equipment through auto-change over device when the outage state.
In the embodiment of the present invention, when the at least one switching device mentioned in the above-mentioned various implementation manners includes the first switching device and the second switching device, the network impairment instrument may have the following two forms:
in a first form: the controller supplies power to the first switching device and the second switching device respectively.
In a second form, the controller supplies power to a first switching device, which supplies power to a second switching device through an electrical connection.
As shown in fig. 3, the following describes the first form of network impairment instrument in detail:
in the embodiment of the present invention, the controller is electrically connected to the first switching device and the second switching device respectively (as shown by solid lines in fig. 3), so that when the controller is in the power-on state, it can be ensured that both the first switching device and the second switching device are in the working state. There should also be a signal connection (as shown by the dashed line in fig. 3) between the controller and the first switching device and the second switching device, so that when the first switching device receives the first network traffic of the external network supply device, the first network traffic can be transmitted to the controller through the signal connection. The controller generates a second network traffic signal according to a preset network damage instruction, and then the second switching device can transmit the second network traffic signal to external network equipment through signal connection.
The switching device is a multi-directional switch with switching characteristics in principle, first conduction ends of the first switching device and the second switching device are connected with the controller, and a second conduction end of the first switching device is connected with a second conduction end of the second switching device. Therefore, when the controller is in an electric state, after a user inputs a network damage instruction to the controller, the controller controls the switches of the first switching device and the second switching device to be switched and connected to the first conducting end, so that the whole network damage instrument is in a conducting state. Therefore, the controller can perform fault injection on the first network flow according to the input network damage information, and further can transmit the second network flow after the network damage to the external network equipment through the second switching device.
Of course, it is more worth noting that, for the conventional network damage instrument, when the network damage instrument is powered down, the controller cannot work, so that the whole network system connected to the network damage instrument is in a paralysis state, that is, various network devices are in a disconnected state, which brings great inconvenience to users. In the embodiment of the present invention, by adding the first switching device and the second switching device, when the network damage instrument is in a power-off state, that is, when the controller stops supplying power to the first switching device and the second switching device, the first switching device and the second switching device will disconnect the signal connection with the controller, and the internal switches of the first switching device and the second switching device will both switch to the second conducting terminal, so that a transmission connection (as shown by a dotted line in fig. 3) is established between the first switching device and the second switching device, and thus the first network traffic input by the network device can be transmitted to the network device through the transmission connection via the second switching device. Therefore, the scheme ensures that the network can still be normally supplied for the network supply equipment even if the damage instrument is powered down, and solves the problem that the network of each network equipment is disconnected when the damage instrument is powered down.
Because the first network traffic input through the network supply device is in the form of analog signals, the processor of the network impairment instrument can only process network traffic in the form of digital signals. Therefore, the controller provided in the embodiment of the present invention may include a transceiver module and a processing module, and the transceiver module converts the first network traffic in the form of analog signals into the first network traffic in the form of digital signals, and then transmits the first network traffic to the processing module. The processing module carries out network damage on the first network flow in the digital signal form according to preset network damage information, and transmits a second network flow signal in the digital signal form generated after the network damage to the transceiving module. At this time, the transceiver module converts the second network traffic signal in the form of the digital signal into the second network traffic in the form of the analog signal, and transmits the second network traffic to the network-using device through the second switching device. For example. The transceiver module may be a physical interface transceiver PHY. The first network traffic is input through the network cable interface and output through the network cable interface, where the network cable interface may include an RJ45 information jack connector. The switching means may be electronic devices based on the multi-directional switching principle, such as multiplexers and electromagnetic relays.
For some electronic devices, it is necessary to operate the electronic device as a switching device in a live mode, i.e. when the switching device is suddenly powered down, the switching state inside the switching device is not changed. If the switch in the switching device is connected to the first conducting end before power failure, the switching device can be always kept at the first conducting end after sudden power failure, and therefore the first network flow cannot be transmitted to the network equipment due to the fact that the controller is not conducted when power failure occurs, and the network equipment is disconnected. Therefore, in an implementation manner of the present invention, an energy storage element may be disposed inside the switching device, and the energy storage element is powered on when the switching device is powered on, and when the controller stops powering the switching device, the energy storage element is utilized to power the switching device, so that the first switching device and the second switching device can establish a transmission connection, and the first network traffic is transmitted to the network device through the second switching device, thereby ensuring that the network device can also use the normal network when the controller is powered off. The energy storage element may comprise a rechargeable battery or the like. Of course, if an electronic device similar to an electromagnetic relay is selected as the switching device, the electronic device will return to the initial state when the power is off, and the initial state is connected to the second conducting terminal, so that the first network traffic can be transmitted to the network equipment through the second switching device without using an energy storage element, and the power off of the network equipment is avoided.
As shown in fig. 4, the network impairment instrument of the second form is explained in detail below:
in the embodiment of the present invention, the controller is electrically connected to only the first switching device (as shown by the solid line between the controller and the first switching device in fig. 4), that is, the controller supplies power to the first switching device, and the first switching device is electrically connected to the second switching device (as shown by the solid line between the first switching device and the second switching device in fig. 4), that is, when the controller supplies power to the first switching device, the first switching device may supply power to the second switching device through the electrical connection, and the controller and the first switching device are only in signal connection with the second switching device (as shown by the dashed and dotted line in fig. 4). Therefore, when the first switching device receives the first network flow of the network equipment, the first network flow is transmitted to the controller through signal connection, and after the controller carries out network damage on the first network flow according to the network damage information, the generated second network flow signal is transmitted to the network equipment through the second switching device. When the network damage instrument is in a power-off state, namely the controller stops supplying power to the first switching device, the first switching device also stops supplying power to the second switching device. At this time, the first switching device and the second switching device may disconnect the signal connection with the controller, and the internal switches of the first switching device and the second switching device may both switch to the second conducting terminal, so that a transmission connection (shown by dotted lines in fig. 3) is established between the first switching device and the second switching device, so that the first network traffic input by the network device may be transmitted to the network device through the transmission connection via the second switching device.
In the network damage meter of the second form, the internal structure, function and electronic components used for forming the switching device are the same as those of the network damage meter of the first form, and are not described herein again. In addition, the controller in the network injury instrument in the second form is also composed of a transceiver module and a processing module, as with the controller in the first form, and the functions thereof are not described herein again.
It is noted that since the second switching device is powered by the first switching device, no power supply via the controller is required, and thus there is a relatively wide choice in making the selection of the controller.
As shown in fig. 5, an embodiment of the present invention further provides a method for using a network impairment instrument, which is provided based on any one of the above possible embodiments, and the method includes:
step 501: supplying power to at least one switching device when in a powered-on state using a controller;
step 502: the method comprises the steps that at least one switching device is utilized to establish signal connection with a controller when the controller supplies power, and when first network flow from external network supply equipment is received, the first network flow is transmitted to the controller through the signal connection;
step 503: generating a second network flow signal by using a controller according to the first network flow signal and a preset network damage instruction;
step 504: transmitting the second network flow signal to external network equipment through at least one switching device by using the controller;
step 505: and utilizing at least one switching device to disconnect the signal connection with the controller when the controller stops supplying power, and transmitting the first network flow to the network utilization equipment when the first network flow is received.
In the embodiment of the invention, the controller can realize the operation of network damage to the network when in the power-on state by using the switching device, and the input first network flow can be directly transmitted to the network equipment by the switching device when the controller stops supplying power. Therefore, when the controller is powered off, the network damage instrument can still transmit the network flow to the network equipment, the network paralysis caused by the power failure of the controller and the network disconnection of the network equipment are avoided, and the use experience of a user is greatly improved.
In one possible implementation, when the at least one switching device comprises: when the first switching device and the second switching device are in use,
providing power to at least one switching device, comprising:
supplying power to the first switching device and the second switching device respectively;
transmitting the first network traffic to the controller over the signal connection, comprising:
transmitting the first network flow to the controller by using the first switching device through signal connection;
transmitting the second network traffic signal to the external network device through the at least one switching device using the controller, comprising:
transmitting the second network traffic signal to a second switching device using the controller;
transmitting the second network flow signal to external network equipment by using a second switching device;
utilize at least one switching device when the controller stops the power supply, break the signal connection with between the controller to when receiving first network traffic, with this first network traffic transmission to with net equipment, include:
when the controller stops supplying power, the first switching device and the second switching device are used for disconnecting the signal connection with the controller, and the first switching device and the second switching device are used for establishing transmission connection;
when receiving a first network flow of a network supply device, a first switching device transmits the first network flow to a second switching device through a transmission connection;
and transmitting the first network traffic to the network equipment by using the second switching device when the first network traffic from the first switching device is received.
In one possible implementation, when the at least one switching device comprises: when the first switching device and the second switching device are in use,
providing power to at least one switching device, comprising:
supplying power to the first switching device;
after supplying power to the first switching device, further comprising:
the first switching device is used for establishing signal connection with the controller when the controller supplies power, establishing electric connection with the second switching device, and supplying power to the second switching device through the electric connection so as to establish signal connection between the second switching device and the controller;
transmitting the first network traffic to the controller over the signal connection, comprising:
transmitting the received first network flow to a controller by using a first switching device through signal connection;
transmitting the second network traffic signal to the external network device through the at least one switching device using the controller, comprising:
transmitting the second network traffic signal to a second switching device using the controller;
transmitting the second network flow signal to external network equipment by using a second switching device;
utilize at least one switching device when the controller stops the power supply, break the signal connection with between the controller to when receiving first network traffic, with this first network traffic transmission to with net equipment, include:
when the controller stops the supply of power,
disconnecting the signal connection between the controller by using the first switching device and the second switching device, and establishing transmission connection between the first switching device and the second switching device;
when receiving a first network flow from a network supply device, the first switching device transmits the first network flow to a second switching device through a transmission connection;
and transmitting the first network traffic to the network utilization equipment by utilizing the second switching device.
In one possible implementation, when the controller includes a transceiver module and a processing module, and receives the first network traffic from the external network-providing device by using the at least one switching device,
transmitting the first network traffic to the controller over the signal connection, comprising:
converting the first network flow in the form of an analog signal from the switching device into first network flow in the form of a digital signal by using a transceiving module, and transmitting the first network flow in the form of the digital signal to a processing module;
generating a second network traffic signal according to the first network traffic signal and a preset network damage instruction by using a controller, wherein the method comprises the following steps:
generating a second network flow signal in a digital signal form by using a processing module according to the first network flow in the digital signal form and a preset network damage instruction;
transmitting the second network traffic signal to the external network device through the at least one switching device using the controller, comprising:
sending the second network flow signal in the form of a digital signal to a transceiver module by using a processing module;
and converting the second network traffic signal in the form of the digital signal into a second network traffic signal in the form of a digital signal by using the transceiver module.
In one possible implementation, after the controller is utilized to supply power to the at least one switching device while in the power-on state, the method further includes:
arranging an energy storage element in each switching device;
the switching device is utilized to establish electric connection with the energy storage element when the controller supplies power, and the energy storage element is supplied with power;
and the energy storage element is used for supplying power to the switching device when the controller stops supplying power to the switching device.
Since each embodiment of the method corresponds to each embodiment of the network impairment instrument, corresponding detailed descriptions can be obtained in each embodiment of the corresponding network impairment instrument, and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other similar elements in a process, method, article, or apparatus that comprises the element.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present invention, and is only used to illustrate the technical solutions of the present invention, and not to limit the protection scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. Network damage appearance, its characterized in that includes: at least one switching device and a controller;
the controller is used for supplying power to the at least one switching device when the controller is in a power-on state;
the switching device is used for establishing signal connection with the controller when the controller supplies power, and transmitting first network flow to the controller through the signal connection when the first network flow from external network supply equipment is received; when the controller stops supplying power, the signal connection between the controller and the controller is disconnected, and when first network flow from the network supply equipment is received, the first network flow is transmitted to external network equipment;
the controller is further configured to generate a second network traffic signal according to the first network traffic signal and a preset network impairment instruction when receiving the first network traffic from the at least one switching device, and transmit the second network traffic signal to the network device through the at least one switching device;
when the at least one switching device comprises: when the first switching device and the second switching device are in use,
the controller is used for supplying power to the first switching device when the controller is in a power-on state;
the first switching device is used for establishing signal connection with the controller when the controller is powered on, establishing electric connection with the second switching device, supplying power to the second switching device through the electric connection, and transmitting the first network flow to the controller through the signal connection when the first network flow from the network supply equipment is received; when the controller stops supplying power, the signal connection with the controller is disconnected, transmission connection is established with the second switching device, and when the first network flow from the network supply equipment is received, the first network flow is transmitted to the second switching device through the transmission connection;
the second switching device is used for establishing electric connection with the first switching device when the first switching device supplies power, establishing the signal connection with the controller, and transmitting a second network flow signal to the network equipment when receiving the second network flow signal from the controller; and when the first switching device stops supplying power, the signal connection with the controller is disconnected, and when the first network traffic from the first switching device is received, the first network traffic is transmitted to the network utilization equipment.
2. The network impairment instrument of claim 1,
when the at least one switching device comprises: when the first switching device and the second switching device are in use,
the controller is used for respectively supplying power to the first switching device and the second switching device when the controller is in a power-on state;
the first switching device is configured to transmit the first network traffic to the controller through the signal connection when receiving the first network traffic from the external network supply device; when the controller stops supplying power, disconnecting the signal connection with the controller, establishing transmission connection with the second switching device, and transmitting the first network flow to the second switching device through the transmission connection when receiving the first network flow of the network supply equipment;
the second switching device is configured to transmit the second network traffic signal to the network device through the signal connection when receiving the second network traffic signal from the controller; when the controller stops supplying power, the signal connection between the controller and the controller is disconnected, and when the first network traffic from the first switching device is received, the first network traffic is transmitted to the network utilization equipment;
the controller is further configured to receive the first network traffic from the first switching device, and transmit a second network traffic signal to the second switching device through the signal connection after generating the second network traffic.
3. The network impairment instrument of claim 1, wherein the controller comprises a transceiver module and a processing module;
the digital signal end of the transceiver module is connected with the processing module, and the analog signal end of the transceiver module is connected with the switching device;
the transceiver module is configured to convert the first network traffic in the form of an analog signal from the switching device into the first network traffic in the form of a digital signal, and transmit the first network traffic in the form of a digital signal to the processing module; converting the second network traffic in the form of digital signals from the processing module into the second network traffic in the form of analog signals, and transmitting the second network traffic in the form of analog signals to the switching device through the signal connection.
4. The network impairment instrument of any one of claims 1 to 3, further comprising: an energy storage element;
the energy storage element is arranged in each switching device;
the switching device is also used for establishing electric connection with the energy storage element when the controller supplies power to supply power to the energy storage element;
the energy storage element supplies power to the switching device when the controller stops supplying power to the switching device.
5. The use method of the network damage instrument is characterized by comprising the following steps:
supplying power to at least one switching device when in a powered-on state using a controller;
utilizing the at least one switching device to establish signal connection with the controller when the controller is powered on, and transmitting first network flow to the controller through the signal connection when the first network flow from an external network supply device is received;
generating a second network flow signal according to the first network flow signal and a preset network damage instruction by using the controller;
transmitting the second network traffic signal to an external network device through the at least one switching device by using the controller;
the switching device is utilized to disconnect the signal connection with the controller when the controller stops supplying power, and transmit the first network flow to the network utilization equipment when receiving the first network flow;
when the at least one switching device comprises: when the first switching device and the second switching device are in use,
the supplying power to at least one switching device includes:
supplying power to the first switching device;
after the supplying power to the first switching device, further comprising:
utilizing the first switching device to establish signal connection with the controller when the controller supplies power, establishing electrical connection with the second switching device, and supplying power to the second switching device through the electrical connection so as to enable the second switching device to establish the signal connection with the controller;
the transmitting the first network traffic to the controller over the signal connection includes:
transmitting the received first network traffic to the controller through the signal connection using the first switching device;
the transmitting the second network traffic signal to the external network device through the at least one switching device by using the controller includes:
transmitting the second network traffic signal to the second switching device using the controller;
transmitting the second network flow signal to external network equipment by using the second switching device;
the disconnecting of the signal connection with the controller by using the at least one switching device when the controller stops supplying power, and transmitting the first network traffic to the network device when receiving the first network traffic, includes:
when the controller stops the supply of power,
disconnecting the signal connection with the controller by using the first switching device and the second switching device, and establishing a transmission connection with the second switching device by using the first switching device;
transmitting the first network traffic to the second switching device through the transmission connection when the first switching device receives the first network traffic from the network supply equipment;
and transmitting the first network flow to the network equipment by using the second switching device.
6. The method of claim 5,
when the at least one switching device comprises: when the first switching device and the second switching device are in use,
the supplying power to at least one switching device includes:
supplying power to the first switching device and the second switching device respectively;
the transmitting the first network traffic to the controller over the signal connection includes:
transmitting the first network traffic to the controller over the signal connection with the first switching device;
the transmitting the second network traffic signal to an external network device through the at least one switching device by using the controller includes:
transmitting the second network traffic signal to the second switching device using the controller;
transmitting the second network flow signal to external network equipment by using the second switching device;
the disconnecting of the signal connection with the controller by using the at least one switching device when the controller stops supplying power, and transmitting the first network traffic to the network device when receiving the first network traffic, includes:
when the controller stops supplying power, the signal connection between the controller and the controller is disconnected by the first switching device and the second switching device, and transmission connection is established between the first switching device and the second switching device;
transmitting the first network traffic to the second switching device through the transmission connection when the first switching device receives the first network traffic of the network supply equipment;
and transmitting the first network traffic to the network equipment by using the second switching device when the first network traffic from the first switching device is received by using the second switching device.
7. The method of claim 5,
when the controller comprises a transceiver module and a processing module and receives first network traffic from an external network-supplying device by using the at least one switching device,
the transmitting the first network traffic to the controller over the signal connection includes:
converting the first network traffic in the form of an analog signal from the switching device into the first network traffic in the form of a digital signal by using the transceiver module, and transmitting the first network traffic in the form of a digital signal to the processing module;
generating a second network traffic signal according to the first network traffic signal and a preset network damage instruction by using the controller, wherein the method comprises the following steps:
generating a second network flow signal in a digital signal form by utilizing the processing module according to the first network flow in the digital signal form and a preset network damage instruction;
the transmitting the second network traffic signal to the external network device through the at least one switching device by using the controller includes:
sending the second network flow signal in the form of a digital signal to the transceiver module by using the processing module;
and converting the second network traffic signal in the form of a digital signal into the second network traffic signal in the form of a digital signal by using the transceiver module.
8. The method of any of claims 5 to 7, further comprising, after the utilizing the controller, when in the power-up state, supplying power to at least one switching device:
disposing an energy storage element within each of the switching devices;
establishing electric connection with the energy storage element by utilizing the switching device when the controller supplies power, and supplying power to the energy storage element;
and supplying power to the switching device by using the energy storage element when the controller stops supplying power to the switching device.
CN202011146317.8A 2020-10-23 2020-10-23 Network damage instrument and use method thereof Active CN112260901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011146317.8A CN112260901B (en) 2020-10-23 2020-10-23 Network damage instrument and use method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011146317.8A CN112260901B (en) 2020-10-23 2020-10-23 Network damage instrument and use method thereof

Publications (2)

Publication Number Publication Date
CN112260901A CN112260901A (en) 2021-01-22
CN112260901B true CN112260901B (en) 2022-05-03

Family

ID=74264258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011146317.8A Active CN112260901B (en) 2020-10-23 2020-10-23 Network damage instrument and use method thereof

Country Status (1)

Country Link
CN (1) CN112260901B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5912963A (en) * 1997-03-03 1999-06-15 At&T Corp. Method and apparatus for providing an alternate telecommunications network
CN102255774A (en) * 2011-06-28 2011-11-23 迈普通信技术股份有限公司 Test system and test method for switch-on and switch-off of communication device as well as fault location method
CN103209099A (en) * 2013-05-03 2013-07-17 广州市成格信息技术有限公司 Automatic switching protection method for network communication circuit between nodes
EP2642699A1 (en) * 2010-11-16 2013-09-25 Fujitsu Limited Method of controlling communication system, communication system, communication device
WO2015078129A1 (en) * 2013-11-29 2015-06-04 华为技术有限公司 Modem and communication method thereof, wireless charging method and device
CN106027282A (en) * 2016-04-28 2016-10-12 深圳市恒扬数据股份有限公司 Network probe for preventing link interruption and network probe method
CN206413032U (en) * 2016-12-28 2017-08-15 上海谱翱数据科技有限公司 Communication node
CN111586131A (en) * 2020-04-29 2020-08-25 上汽大众汽车有限公司 Vehicle-mounted Ethernet fault injection test device and test method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060217847A1 (en) * 2005-03-28 2006-09-28 Adc Telecommunications, Inc. Power sourcing unit for power over ethernet system
US20070025039A1 (en) * 2005-07-27 2007-02-01 Sousa Marc D Priority powerdown system and method for power distribution systems
CN201629756U (en) * 2009-12-22 2010-11-10 杭州华三通信技术有限公司 Network card power-on detection supply unit and intelligent switch equipment
DE102010032513A1 (en) * 2010-07-28 2012-02-02 Fujitsu Technology Solutions Intellectual Property Gmbh Energy saving circuit for a network powered device, network arrangement and energy saving method
CN105306223A (en) * 2014-06-30 2016-02-03 中兴通讯股份有限公司 Power supply method, power supply device and power supply system
CN105786070B (en) * 2014-12-23 2019-07-02 中兴通讯股份有限公司 The control device and method of communication network power supply
CN106230635A (en) * 2016-08-01 2016-12-14 广东古帆装饰工程有限公司 A kind of network monitoring system based on network automatic switching control equipment
EP3576284A1 (en) * 2018-05-30 2019-12-04 Siemens Aktiengesellschaft Electrical coupling of a first electrical network with a second electric network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5912963A (en) * 1997-03-03 1999-06-15 At&T Corp. Method and apparatus for providing an alternate telecommunications network
EP2642699A1 (en) * 2010-11-16 2013-09-25 Fujitsu Limited Method of controlling communication system, communication system, communication device
CN102255774A (en) * 2011-06-28 2011-11-23 迈普通信技术股份有限公司 Test system and test method for switch-on and switch-off of communication device as well as fault location method
CN103209099A (en) * 2013-05-03 2013-07-17 广州市成格信息技术有限公司 Automatic switching protection method for network communication circuit between nodes
WO2015078129A1 (en) * 2013-11-29 2015-06-04 华为技术有限公司 Modem and communication method thereof, wireless charging method and device
CN106027282A (en) * 2016-04-28 2016-10-12 深圳市恒扬数据股份有限公司 Network probe for preventing link interruption and network probe method
CN206413032U (en) * 2016-12-28 2017-08-15 上海谱翱数据科技有限公司 Communication node
CN111586131A (en) * 2020-04-29 2020-08-25 上汽大众汽车有限公司 Vehicle-mounted Ethernet fault injection test device and test method

Also Published As

Publication number Publication date
CN112260901A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
CN102761422B (en) A kind of power over ethernet electric power system of cascade and Power over Ethernet method thereof
US20110110662A1 (en) Method and apparatus for integrating automated switching in a passive optical network
CN111181646A (en) Communication line and communication system
CN102290862B (en) Peer to peer communication method and system of power distribution terminals
CN102111728B (en) Network connection management module and method of mobile terminal
CN115549036A (en) Distributed new energy relay protection system based on 5G
EP2369716A2 (en) Network device with uninterruptible power supply function
CN112260901B (en) Network damage instrument and use method thereof
CN107360005B (en) Power receiving end equipment and power receiving method
CN110715791B (en) Optical fiber type laser energy distribution network system and distribution method
CN105119652A (en) Optical cable main/standby routing controller
CN205051696U (en) Optical cable activestandby routing control ware
CN111638863A (en) KVM USB link switching system
CN102110924A (en) Power supply interface device, power distribution unit and power supply method
CN218570241U (en) Interface control circuit and conference terminal all-in-one machine
CN205647547U (en) Net twine channel switching protection device
CN211930647U (en) 100G plug-in card
CN211348544U (en) Safety electricity utilization monitoring system
CN219420925U (en) On-off control device of network module and on-off control system of network module
CN105356934A (en) Signal selection way of high-speed electronic switch-type optical cable protector
CN217563664U (en) Ethernet communication device with one-network one-circuit double-route automatic protection function
KR102616332B1 (en) A computer-implemented method for configuring an electronic relay
CN114696894B (en) Testing method and device of passive optical network equipment and readable storage medium
CN212231476U (en) Single-wire power supply and half-duplex communication bus circuit
CN217883848U (en) Communication device, ammeter and electric power system based on WIFI

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