CN109495333B - Detection processing method, equipment and network equipment - Google Patents

Detection processing method, equipment and network equipment Download PDF

Info

Publication number
CN109495333B
CN109495333B CN201710818191.6A CN201710818191A CN109495333B CN 109495333 B CN109495333 B CN 109495333B CN 201710818191 A CN201710818191 A CN 201710818191A CN 109495333 B CN109495333 B CN 109495333B
Authority
CN
China
Prior art keywords
network
connection relationship
network connection
equipment
connection
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
CN201710818191.6A
Other languages
Chinese (zh)
Other versions
CN109495333A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710818191.6A priority Critical patent/CN109495333B/en
Publication of CN109495333A publication Critical patent/CN109495333A/en
Application granted granted Critical
Publication of CN109495333B publication Critical patent/CN109495333B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

A method, equipment and network equipment for detection processing are provided, wherein the method comprises the following steps: a first device acquires a network connection relationship, wherein the first device is any one of a plurality of network devices, and the network connection relationship is a planned connection relationship of the plurality of network devices; the first device sends the network connection relation to at least one network device except the first device in the plurality of network devices; the first equipment acquires a port connection relation of second equipment connected with the first equipment; and the first equipment judges whether the second equipment connected with the first equipment is connected correctly or not according to the port connection relation and the network connection relation. And judging whether the connection relation of the ports is correct according to the connection relation of the first network, and further judging whether the connected equipment is connected correctly, so that the connection correctness between the hardware is automatically detected.

Description

Detection processing method, equipment and network equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a method, a device, and a network device for detection processing.
Background
When the deployment is opened, a software debugging engineer designs a network topology according to the service requirement. Hardware constructors then install and connect network devices according to the network topology. After the network devices are installed and connected, the software debugging engineer sends the configuration of each device by using the network management device to complete the opening.
When a hardware constructor connects network equipment, the problem of wrong connection of the network equipment may occur. For example, port 1 of the a device should be connected to port 1 of the B device, but the hardware constructor erroneously connects port 1 of the a device to port 2 of the B device, or erroneously connects port 1 of the a device to port 1 of the C device. A network device connection error causes a configuration transmission failure or transmission to the wrong network device, resulting in an opening failure.
Disclosure of Invention
The application provides a detection processing method, equipment and network equipment, which are used for providing an automatic detection means to detect the connection correctness of the network equipment.
In a first aspect, the present application provides a method of detection processing, including: a first device acquires a network connection relationship, wherein the first device is any one of a plurality of network devices, and the network connection relationship is a planned connection relationship of the plurality of network devices; the first device sends the network connection relation to at least one network device except the first device in the plurality of network devices; the first equipment acquires a port connection relation of second equipment connected with the first equipment; and the first equipment judges whether the second equipment connected with the first equipment is connected correctly or not according to the port connection relation and the network connection relation. And judging whether the connection relation of the ports is correct or not according to the network connection relation, and further judging whether the connected equipment is connected correctly or not, so that the connection correctness between the hardware is automatically detected.
Optionally, the network connection relationship includes: an identity and a connection port of the network device; the identification comprises: the physical address or serial number of the network device. Taking the inherent properties and connection relationships of the devices as network connection relationships facilitates the differentiation of the devices.
Optionally, the method further comprises: issuing an alert when the second device connected to the first device is not connected correctly, the alert indicating a false connection. And an alarm is sent to prompt the staff, so that the staff can maintain conveniently.
Optionally, the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions. The type of the error connection is distinguished, and an alarm is sent according to the type of the error connection, so that a worker can conveniently identify the type of the error connection and correct the error connection in a targeted manner.
Optionally, the receiving, by the first device, a network connection relationship includes: the first device acquires the network connection relationship from an external storage medium; or, the first device receives the network connection relationship from a terminal device.
Optionally, the method further comprises: when the second device connected to the first device is incorrectly connected, the first device sends an indication of the incorrect connection to a terminal device. And sending the indication of the wrong connection to the terminal equipment, and displaying the wrong connection on the terminal equipment, so that a worker can find the wrong connection in time through the terminal equipment.
Optionally, the method further comprises: and when the second equipment connected with the first equipment is not connected correctly, the first equipment sends the port connection relation to terminal equipment.
In a second aspect, the present application provides an apparatus for detection processing, comprising: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a network connection relationship, the first equipment is any one of a plurality of network equipment, and the network connection relationship is a planned connection relationship of the plurality of network equipment; a sending unit, configured to send the network connection relationship to at least one of the plurality of network devices except the first device; the acquiring unit is further configured to acquire a port connection relationship of a second device connected to the first device; and the judging unit is used for judging whether the second equipment connected with the first equipment is connected correctly or not according to the port connection relation and the network connection relation.
Optionally, the network connection relationship includes: an identity and a connection port of the network device; the identification comprises: the physical address or serial number of the network device.
Optionally, the apparatus further comprises: and the alarm unit is used for sending an alarm when the second equipment connected with the first equipment is not correctly connected, and the alarm indicates wrong connection.
Optionally, the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions.
Optionally, the receiving unit is configured to obtain the network connection relationship from an external storage medium; or receiving the network connection relation from the terminal equipment.
Optionally, the sending unit is further configured to determine that, when the second device connected to the first device is incorrectly connected, sending an indication of incorrect connection to the terminal device.
Optionally, the sending unit is further configured to determine that the port connection relationship is sent to a terminal device when the second device connected to the first device is incorrectly connected.
In a third aspect, the present application provides a network device, comprising: a processor, a transceiver, and at least one physical port; the transceiver is configured to acquire a network connection relationship, where the first device is any one of a plurality of network devices, and the network connection relationship is a planned connection relationship between the plurality of network devices; the physical port is configured to send the network connection relationship to at least one of the plurality of network devices other than the first device; the processor is used for acquiring a port connection relation of second equipment connected with the first equipment; the processor is further configured to determine whether the second device connected to the first device is correctly connected according to the port connection relationship and the network connection relationship.
Optionally, the network connection relationship includes: an identity and a connection port of the network device; the identification comprises: the physical address or serial number of the network device.
Optionally, the physical port is further configured to determine that an alarm is issued when the second device connected to the first device is incorrectly connected, the alarm indicating a wrong connection.
Optionally, the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions.
Optionally, the transceiver is configured to acquire the network connection relationship from an external storage medium; or, receiving the network connection relationship from the terminal device.
Optionally, the transceiver is further configured to determine that when the second device connected to the first device is not connected correctly, send an indication of the incorrect connection to a terminal device.
Optionally, the transceiver is further configured to determine that the port connection relationship is sent to a terminal device when the second device connected to the first device is incorrectly connected.
In a fourth aspect, the present application provides a computer program product containing instructions, which when executed on a computer, cause the computer to perform the method of the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the method according to the first aspect.
Drawings
Fig. 1 is an application scenario diagram of a detection processing method according to an embodiment of the present invention;
fig. 2 is a signaling interaction diagram of a detection processing method according to an embodiment of the present invention;
fig. 3 is an example of a network topology diagram in the detection processing method according to the embodiment of the present invention;
FIG. 4 is a diagram illustrating a proprietary protocol encapsulation packet structure according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for detection processing according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a network device according to an embodiment of the present invention.
Detailed Description
Fig. 1 is an application scenario diagram of the detection processing method according to the embodiment of the present invention, where a network device may establish a communication connection with a terminal device, where the communication connection may be a connection manner such as bluetooth or a Wireless Local Area Network (WLAN), and may also be another communication connection manner, which is not limited in this embodiment of the present invention.
The network devices may be devices within the entire network, such as: a switch.
The terminal device may be a device having a processor and a display function, such as: smart phones, tablet computers, control servers, and the like.
It should be noted that, in the following description of the embodiments, the "first device", "second device", "third device", "fourth device", and "fifth device" are all network devices; the "first", "second", "third", "fourth" and "fifth" in the "first network topology", "second network topology", "third network topology", "first network connection relation", "second network connection relation", "third network connection relation" and "first device", "second device", "third device", "fourth device" and "fifth device" are for distinguishing the network topology, the network connection relation or the device, and do not limit the network topology, the network connection relation or the device itself.
Fig. 2 is a signaling interaction diagram of a detection processing method according to an embodiment of the present invention, and as shown in fig. 2, the method specifically includes the following steps:
s201, the first device receives a first network connection relation sent by the terminal device.
Before S201, before executing the method of the detection processing in this embodiment, it is necessary to plan the network connection relationships of the multiple network devices in advance, that is, obtain a first network connection relationship of the multiple network devices that are planned, and a user may plan the multiple network devices on the control server to obtain the first network connection relationship, which may specifically be adding hardware information of the network devices that need to be connected to the control server, where the hardware information may be, but is not limited to: and after the addition of the hardware information is completed, the identifier and the connection port of the network equipment complete the planning of the network equipment according to the hardware information of the network equipment, and further control the server to generate a first network connection relation.
The first network connection relationship related to the embodiment of the present invention may include multiple forms, such as a topological graph, a table, and the like, and the form of the first network connection relationship is not specifically limited in this embodiment.
The first network connection relationship may also be generated on the terminal device, for example, drawing a first network topology diagram on the smart phone, or generating a first network connection relationship table according to the first network topology diagram.
In an embodiment of the present invention, the terminal device may access the control server, and download the first network connection relationship from the control server, for example, install mobile application software (APP) on the terminal device, establish a communication connection with the control server through the APP, and further download the first network connection relationship from the control server.
After obtaining the first network connection relationship, the terminal device may send the first network connection relationship to a first device in the network device in a wired or wireless manner, for example, the terminal device is connected to the first device through a Universal Serial Bus (USB), and sends the first network connection relationship to the first device; if the terminal device establishes communication connection with the first device through wireless connection, the first network connection relation is sent to the first device through the APP on the terminal.
It should be noted that the first device may be any one of the network devices.
The first network connection relationship includes: identification and connection port of the network device; the identification comprises the following steps: media Access Control (MAC) address of a network device or Serial Number (ESN) code of the device.
Referring to fig. 3, there is shown a schematic diagram of a first network topology in which the present invention is implemented, according to which the topology can be divided into three stages, the first stage comprising: third device 2, the second stage comprises: fourth apparatus 1 and second apparatus 1, the third stage includes: fifth device 1, fifth device 2, first device and third device 1. The MAC address of the third device 2 is: 0015-9d47-2400, including ports: 1 and 2, the MAC address of the fourth device 1 is: 0015-9d47-2500, comprising ports: 1. 2 and 3, the MAC address of the second device 1 is: 0015-9d47-2600, comprising: 1. 2 and 3, the MAC address of the fifth device 1 is: 0015-9d47-2700, comprising: 1, the MAC address of the fifth device 2 is: 0015-9d47-2800, including ports: 1, the MAC address of the first device is: 0015-9d47-2900, including ports: 1, the MAC address of the third device 1 is: 0015-9d47-3000, including ports: when the first network connection relationship corresponding to the first network topology is generated in the form of a table, it may be table 1 as follows.
Identification of the device: system MAC address Port(s) Identification of the neighboring device: system MAC address Port(s)
0015-9d47-2400 1 0015-9d47-2500 1
0015-9d47-2400 2 0015-9d47-2600 2
0015-9d47-2500 2 0015-9d47-2700 1
0015-9d47-2500 3 0015-9d47-2800 1
0015-9d47-2600 1 0015-9d47-2900 1
0015-9d47-2600 3 0015-9d47-3000 1
TABLE 1
In an alternative of the embodiment of the present invention, S201 may further obtain the first network connection relationship in the following manner, specifically as follows: the first equipment acquires a first network connection relation from an external storage medium;
in an embodiment of the present invention, the first network connection relationship may also be copied from the control server through an external storage medium, and the external storage medium is importing the stored first network connection relationship into the first device. The external storage medium may be, but is not limited to: the portable storage device can be inserted into the control server or the first device through the USB interface, and then copying or exporting of the first network connection relation is achieved.
S202, the first device sends the first network connection relation to at least one network device except the first device in the plurality of network devices.
The first device sends the acquired first network connection relationship to network devices (except the first device) in the network, in this embodiment, one device in the third level in the first network topology is selected as the first device, and the first device can send the first network connection relationship to the network devices in the network according to the connection relationship between each network device in the network and the first device.
In this embodiment, the first network connection relationship of the first device may be sent to some devices or all devices except the first device in the multiple network devices, for example, some devices that do not need to be detected may not send the first network connection relationship to the first device.
The arrow in fig. 3 shows the direction of sending the first network connection, for example, the first device sends the first network connection to the second device 1; the second device 1 sends the first network connection relation to the third device 1 and the third device 2; the third device 2 sends the first network connection relation to the fourth device 1; the fourth device 1 sends the first network connection relationship to the fifth device 1 and the fifth device 2, thereby completing the step of sending the first network connection relationship to at least one network device other than the first device among the plurality of network devices by the first device.
In an embodiment of the present invention, a first network connection relationship may also be sent in a private protocol encapsulation packet manner, and fig. 4 shows a schematic diagram of a private protocol encapsulation packet structure in the embodiment of the present invention, as shown in fig. 4:
the destination MAC address may be a fixed Bridge Protocol Data Unit (BPDU) MAC address 0x0180-C2 FF-000E.
And the source MAC address is the system MAC address of the message sending end.
The message type may be defined privately, such as 0x88 BC.
The data, message BPDU, contains device connection relationship information.
Frame Check Sequence (FCS).
S203, the second device receives the first network connection relation sent by the first device.
S204, the first equipment acquires the port connection relation of the second equipment connected with the first equipment.
After the first device completes the step of sending the first network connection relationship to the network device, the first device obtains, through the protocol, a port connection relationship of a second device connected to the first device, where the port connection relationship may include: device identification and connection port. For example, in fig. 3, the identifier and the connection port of the second device 1 are obtained by the first device, and the Protocol may be a Link Layer Discovery Protocol (LLDP), a Cisco Discovery Protocol (CDP), and a north electrical Discovery Protocol (NDP).
S205, the first device judges whether the second device connected with the first device is connected correctly according to the port connection relation and the first network connection relation.
The first equipment judges whether the connection error occurs in the port connection relation according to the first network connection relation; and determining whether the second equipment connected with the first equipment is correctly connected or not according to the judgment result. The judging mode can be a comparing mode, namely whether the connection relation of the comparing port is consistent with the connection relation of the first network or not is judged, and if so, the connection of the second equipment connected with the first equipment is correct; if not, the second device connected with the first device is incorrectly connected.
And S206, when the second equipment connected with the first equipment is not connected correctly, giving an alarm.
When it is determined in step S205 that the second device connected to the first device is incorrectly connected, the first device determines, according to the comparison result between the port connection relationship and the first network relationship connection, that a portion of the port connection relationship that is inconsistent with the first network relationship connection is used as an incorrect connection, and the first device analyzes the type of the incorrect port connection relationship and issues a corresponding alarm according to the type of the connection error information.
Wherein the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions.
Wherein, the port connection error is: an error occurs in the port connection of one or two devices among two network devices connected to each other, for example, port 1 of device a needs to be connected to port 2 of device B, and port 1 of actual device a is connected to port 3 of device B.
The network device connection errors are: the occurrence of two network devices connected to each other is inconsistent with the planned network connection relationship, for example, device a needs to be connected to device B, and the actual device a is connected to device C.
The connection redundancy is: reconnection or reconnection of one or more devices in the network device occurs, e.g., device a only needs to be connected to device B, while the actual device a is connected not only to device B but also to device C.
The connection omission is: one or more devices in the network device are missed, for example, the device a needs to be connected to the device B, and the actual device a and the device B do not have a connection relationship.
The corresponding alarms may include the following:
Figure GDA0002702231420000061
the above is only an example of the corresponding alarm, and the form of the alarm may also be set according to the actual situation, and this embodiment is not limited in particular.
S207, the second device acquires the port connection relation of a third device connected with the second device.
In the present embodiment, the third device connected to the second device may include other devices in addition to the first device, for example, in fig. 3, the third device connected to the second device 1 includes the third device 1 and the third device 2 in addition to the first device, and therefore, the second device 1 needs to detect not only the first device but also the third device 1 and the third device 2.
The step of acquiring, by the second device, the port connection relationship of the third device connected to the second device is the same as the manner of acquiring the port connection relationship in S204, and reference may be made to the related description in S204 for brevity, and details are not repeated here.
And S208, the second equipment judges whether the third equipment connected with the second equipment is connected correctly according to the port connection relation.
The second equipment judges whether the connection error occurs in the port connection relation according to the first network connection relation; according to the determination result, it is determined whether the third device connected to the second device is correctly connected, and the specific determination process may refer to the description related to S205, which is for brevity and will not be described herein again.
And S209, when the third equipment connected with the second equipment is not connected correctly, giving an alarm.
The step is not consistent with the step of S206 only in execution, the execution principle of the step is the same, and reference may be made to the description of S206, which is omitted for brevity.
In an embodiment of the present invention, after the detection between the second device and the third device (including the first device) is completed, the next-stage detection may be performed according to the above-mentioned detection method between the second device and the third device, and the specific detection flows may be consistent according to the sending method of the first network connection relationship, for example, in the topology shown in fig. 3, the connection between the second devices 1 may be detected according to the first device; the second device 1 detects the connection between the first device, the third device 1 and the third device 2; the third device 2 detects the connection between the second device 1 and the fourth device 1; the connection detection is performed sequentially by the way that the fourth device 1 detects the connection between the third device 2, the fifth device 1 and the fifth device 2, and the detection may also be performed synchronously, which is not specifically limited in this embodiment.
S201 to S209 are methods for detecting and processing provided in the embodiments of the present invention, and alert means is used to remind a device of a connection error, and a device is selected from network devices as a first device, and a first network connection relationship is input to the first device; and then the first device sends the first network connection relation to other devices in the network through the connection relation of each device, the devices in the network obtain the port connection relation of each connected device after obtaining the first network connection relation, and judge whether the port connection relation is correct according to the first network connection relation, so as to judge whether the connected devices are correct in connection, and realize the automatic detection of the connection correctness between the hardware. When the connection is wrong, an alarm can be sent according to the type of the connection error, so that the maintenance of workers is facilitated.
In an embodiment of the present invention, when the second device connected to the first device is incorrectly connected, a connection error message may be displayed on the terminal device (e.g., a smart phone) of the user, and the following steps S201 to S205 may be executed first, and then the following steps S210 and S211 are executed, which specifically include:
s210, when the second equipment connected with the first equipment is not connected correctly, the first equipment sends an indication of the wrong connection to the terminal equipment.
When the second device connected with the first device is incorrectly connected, the first device acquires the wrong connection and sends the indication of the wrong connection to the terminal device so as to indicate the terminal device to display the wrong connection.
In an embodiment of the present invention, the network device may further include other devices, such as a fourth device and a fifth device shown in fig. 3, where when the connection between the fourth device and the device connected to the fifth device is incorrect, the fourth device and the fifth device may also send a connection error connection to the first device, and a manner of sending the connection error may be consistent with a transmission manner of the first network relationship connection; the fourth device and the fifth device may also directly send the erroneous connection to the terminal device.
S211, the terminal device displays the wrong connection.
And the terminal equipment displays the error connection on the APP according to the received error connection instruction, and can display the first network topological graph and identify the corresponding error connection when the network connection relationship is in the form of a topological graph.
It should be noted that, in the embodiment of the present invention, the network device includes multiple network devices, when a part of or all of the multiple network devices are in a connection error, each network device with the connection error may separately send an error connection to the terminal device, and the terminal device performs a summary display after receiving all error connection indications, where a sending manner of a specific error connection indication is the same as a manner in which the first device sends the error connection, and details are not described here.
According to the detection processing method provided by the embodiment of the invention, the first equipment is used for acquiring the wrong connection, the indication of the wrong connection is sent to the terminal equipment of the user, the terminal equipment is indicated to display the first network topological graph, and the wrong connection is marked on the first network topological graph, so that the user can find the equipment and the position with the wrong connection in time according to the wrong connection.
In an embodiment of the present invention, when the second device connected to the first device is incorrectly connected, a third network topology diagram corresponding to actual connection of the network device may be displayed on the terminal device (e.g., a control server, such as a smart phone, which is introduced in this embodiment by taking the control server as an example), and then a worker may perform a next action according to the third network topology diagram, so as to update the first network topology diagram, where S201 to S205 may be executed first, and then S212 to S220 are executed, which specifically includes the following steps:
s212, when the second device connected with the first device is not correctly connected, the first device acquires a third network connection relation of the network device in the current network.
When the second device connected with the first device is incorrectly connected, the first device acquires the port connection relations of all devices in the current network, and generates a third network connection relation according to the port connection relations and the device identifiers, namely the actual connection relations of all network devices in the current network.
And S213, the first equipment sends the third network connection relation to the control server.
S214, the control server generates a third network topological graph according to the third network connection relation.
And the target sends the third network connection relation to the control server, and instructs the control server to generate a third network topology map corresponding to the third network connection relation, wherein the third network topology map may include the connection relation of the network device which is wrong when the worker connects the network device, and the third network topology map may further include a drawing error which occurs when the worker draws the first network topology map.
S215, the control server determines difference information between the third network topological graph and the first network topological graph.
After the control server generates the third network topology map, the third network topology map is compared with the first network topology map, and difference information between the third network topology map and the first network topology map is determined, where the difference information may be, but is not limited to: port connection errors, network device connection errors, connection redundancy, or connection omissions.
S216, the control server displays the difference information on the first network topological graph.
After the control server determines the difference information, the difference information is displayed on the first network topological graph, and the difference information is displayed on the first network topological graph, so that a topological graph drawing person can detect whether the drawing error of the first network topological graph or the connection error occurs when a worker connects the network equipment hardware according to the difference information.
It should be noted that, steps S217 to S220 are optional steps, that is, when the difference information is that a connection error occurs when the staff connects the hardware of the network device, steps S217 to S220 may not be executed.
S217, the control server receives the trigger operation of the difference information.
When the displayed difference information is a drawing error of the first network topology map, the topology map drawing personnel can perform triggering operation on the difference information on the first network topology map, such as correcting the connection relation of the network equipment error, and correcting the port connection relation of the network equipment error.
And S218, the control server generates a second network topological graph and corresponding second network relation connection according to the triggering operation.
And after the control server receives the triggering operation of the topological graph drawing personnel on the difference information, generating a new second network connection relation.
And S219, the control server sends the second network connection relation to the first equipment.
S220, the first device sends the second network connection relationship to at least one of the plurality of network devices except the first device.
After the first device sends the second network connection relationship to at least one of the plurality of network devices other than the first device, the network devices in the network automatically detect whether the connection relationship between the network devices is correct according to the second network connection relationship, which may specifically refer to S202-S209, and the difference is that the first network connection relationship is in S202-S209, and the second network connection relationship is in this case.
In this embodiment, when a device is connected incorrectly, the device may directly send the incorrect connection to the control server (e.g., the first device sends the port connection to the terminal device), and the control service collects all the incorrect connections to generate a third network connection relationship, so as to form a third network topology diagram, and finally executes S215-S220. According to the detection processing method provided by the embodiment of the invention, the difference information is displayed on the control server, so that a topological graph drawing person can conveniently find whether the difference information is a topological graph drawing error, and when the topological graph drawing error occurs, the wrong first network topological graph can be corrected in time, and the loss caused by the wrong connection of network equipment is avoided.
The above description mainly introduces the scheme of the embodiment of the present application from the perspective of interaction of the first device, the second device, the terminal device, and the like. It is to be understood that the first device, the second device, the terminal device body, and the like, in order to implement the above functions, include hardware structures and/or software modules corresponding to the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the first device may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of using an integrated unit, fig. 5 is a device for detection processing according to an embodiment of the present invention, where the device may be the first device shown in fig. 2, and the device specifically includes:
an obtaining unit 501, configured to obtain a first network connection relationship, where the first device is any one of multiple network devices, and the first network connection relationship is a planned connection relationship between the multiple network devices;
a sending unit 502, configured to send the first network connection relationship to at least one network device of the plurality of network devices except the first device;
the acquiring unit 501 is configured to acquire a port connection relationship of a second device connected to the first device;
a determining unit 503, configured to determine whether the second device connected to the first device is correctly connected according to the port connection relationship and the first network connection relationship.
Optionally, the first network connection relationship includes: an identity and a connection port of the network device; the identification comprises: the physical address or serial number of the network device.
Optionally, the determining unit 503 is configured to determine whether a connection error occurs in the port connection relationship according to the first network connection relationship; and determining whether the second equipment connected with the first equipment is correctly connected or not according to the judgment result.
Optionally, the apparatus further comprises: an alarm unit 504, configured to determine that an alarm is issued when the second device connected to the first device is incorrectly connected, where the alarm indicates a wrong connection.
Optionally, the misconnection comprises at least one of the following misconnection: a misconnection of ports between devices, a misconnection between different devices, a redundant connection of devices, or a missing connection of devices.
Optionally, the obtaining unit 501 is configured to obtain the first network connection relationship from an external storage medium; or, receiving the first network connection relationship from the terminal device.
Optionally, the sending unit 502 is further configured to determine that, when the second device connected to the first device is incorrectly connected, an indication of a wrong connection is sent to the terminal device.
Optionally, the sending unit 502 is further configured to determine that the port connection relationship is sent to a terminal device when the second device connected to the first device is incorrectly connected.
Optionally, the receiving unit 501 is further configured to receive a second network connection relationship sent by the terminal device; the sending unit is further configured to send the second network connection relationship to at least one of the plurality of network devices other than the first device.
Optionally, the determining unit 504 is further configured to determine whether a connection error occurs in the port connection relationship according to the second network connection relationship; and determining whether the second equipment connected with the first equipment is correctly connected or not according to the judgment result.
In this embodiment, the device for detection processing has the function of the first device shown in fig. 2, and can execute each step executed by the first device in fig. 2, so as to achieve the technical effect of the method for detection processing shown in fig. 2.
Fig. 6 is a schematic hardware structure diagram of a first network device according to an embodiment of the present application. As shown in fig. 6, the apparatus includes: a processor 610, a memory 620, a transceiver module 630, and at least one physical port 640. Wherein:
the processor 610 may be a Central Processing Unit (CPU) or a combination of a CPU and a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
The memory 620 is used to store various applications, operating systems, and data. The memory 620 may transfer the stored data to the processor 610. The memory 620 may include a volatile memory, a nonvolatile dynamic random access memory (NVRAM), a phase change random access memory (PRAM), a Magnetoresistive Random Access Memory (MRAM), and the like, such as at least one magnetic disk memory device, an electrically erasable programmable read-only memory (EEPROM), a flash memory device, such as a NOR flash memory or a NAND flash memory, a semiconductor device, such as a Solid State Disk (SSD), and the like. Memory 1020 may also include a combination of memories of the sort described above.
A transceiver 630 for transmitting and/or receiving data. The transceiver 630 may be a USB interface, a bluetooth interface, a WLAN interface, etc.
Physical ports 640 for connections between network devices and communications between network devices. For example, physical port 640 is one or more ethernet ports.
It is understood that the memory 820 may be integrated into the processor 810 or may stand alone.
The working process of each device is as follows:
the transceiver 630 is configured to receive a first network connection relationship, where the first device is any one of a plurality of network devices, and the first network connection relationship is a planned connection relationship of the plurality of network devices;
the physical port 640 is configured to send the first network connection relationship to at least one network device other than the first device in the plurality of network devices;
a processor 610, configured to obtain a port connection relationship of a second device connected to the first device;
the processor 610 is further configured to determine whether the second device connected to the first device is correctly connected according to the port connection relationship and the first network connection relationship.
Optionally, the first network connection relationship includes: an identity and a connection port of the network device; the identification comprises: the physical address or serial number of the network device.
Optionally, the processor 610 is further configured to determine that an alarm is issued when the second device connected to the first device is not connected correctly, where the alarm indicates a wrong connection.
Optionally, the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions.
Optionally, the transceiver 630 is configured to acquire the first network connection relationship from an external storage medium; or, receiving the first network connection relationship from a terminal device.
Optionally, the transceiver 630 is further configured to determine that when the second device connected to the first device is not connected correctly, an indication of a wrong connection is sent to a terminal device.
Optionally, the transceiver 630 is further configured to determine that the port connection relationship is sent to a terminal device when the second device connected to the first device is not connected correctly.
Optionally, the transceiver 630 is further configured to receive a second network connection relationship sent by the terminal device; the physical port 640 is configured to send the second network connection relationship to at least one network device other than the first device in the plurality of network devices.
Optionally, the processor 610 is further configured to determine whether a connection error occurs in the port connection relationship according to the second network connection relationship; and determining whether the second equipment connected with the first equipment is correctly connected or not according to the judgment result.
In this embodiment, the device for detection processing has the function of the first device shown in fig. 2, and can execute each step executed by the first device in fig. 2, so as to achieve the technical effect of the method for detection processing shown in fig. 2.
It will be further appreciated by those of skill in the art that the elements and steps of the various examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, the components and steps of the various examples having been described in a functional general in the foregoing description for the purpose of clearly illustrating interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
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, all or part of the technical solution of the present invention can be embodied in the form of 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 according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a flash disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method of detection processing, comprising:
a first device acquires a first network connection relationship, wherein the first device is any one of a plurality of network devices, and the first network connection relationship is a planned connection relationship of the plurality of network devices;
the first device sends the first network connection relation to at least one network device except the first device in the plurality of network devices;
the first equipment acquires a port connection relation of second equipment connected with the first equipment;
the first equipment judges whether the second equipment connected with the first equipment is correctly connected or not according to the port connection relation and the first network connection relation;
when the second device connected with the first device is not connected correctly, the first device acquires a third network connection relation, and sends the third network connection relation to a control server, wherein the third network connection relation is the connection relation of the plurality of network devices in the existing network, the third network connection relation is used for the control server to determine difference information of the first network connection relation and the third network connection relation, the difference information is used for a drawing person of a network topology graph corresponding to the first network connection relation to judge whether the network topology graph is drawn wrongly, if so, the drawing person performs a correction operation on the control server to correct the drawing mistake, and the correction operation is used for the control server to generate a second network connection relation according to the correction operation;
and the first equipment receives the second network connection relation sent by the control server, and judges whether the second equipment connected with the first equipment is connected correctly or not according to the port connection relation and the second network connection relation.
2. The method of claim 1, wherein obtaining, by the first device, the first network connection relationship comprises:
the first device acquires the network connection relationship from an external storage medium;
or the like, or, alternatively,
and the first equipment receives the network connection relation from the terminal equipment.
3. The method of claim 1, further comprising:
when the second device connected to the first device is incorrectly connected, the first device sends an indication of the incorrect connection to a terminal device.
4. The method of claim 3, wherein the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions.
5. The method according to any one of claims 1-4, further comprising:
and when the second equipment connected with the first equipment is not connected correctly, the first equipment sends the port connection relation to terminal equipment.
6. An apparatus for detection processing, comprising:
the device comprises an obtaining unit, a judging unit and a judging unit, wherein the obtaining unit is used for obtaining a first network connection relationship, the first equipment is any one of a plurality of network equipment, and the first network connection relationship is the planned connection relationship of the plurality of network equipment;
a sending unit, configured to send the first network connection relationship to at least one of the plurality of network devices other than the first device;
the acquiring unit is further configured to acquire a port connection relationship of a second device connected to the first device;
a judging unit, configured to judge whether the second device connected to the first device is correctly connected according to the port connection relationship and the first network connection relationship;
the obtaining unit is further configured to obtain a third network connection relationship when the second device connected to the first device is incorrectly connected;
the sending unit is further configured to send the third network connection relationship to a control server, where the third network connection relationship is a connection relationship of the multiple network devices in an existing network, the third network connection relationship is used for the control server to determine difference information between the first network connection relationship and the third network connection relationship, the difference information is used for a drawing worker of a network topology corresponding to the first network connection relationship to determine whether the network topology is a drawing error, if so, the drawing worker performs a correction operation on the control server to correct the drawing error, and the correction operation is used for the control server to generate a second network connection relationship according to the correction operation;
the obtaining unit is further configured to receive the second network connection relationship sent by the control server, and determine whether the second device connected to the first device is correctly connected according to the port connection relationship and the second network connection relationship.
7. The apparatus according to claim 6, wherein the receiving unit is configured to obtain the network connection relationship from an external storage medium; or receiving the network connection relation from the terminal equipment.
8. The device of claim 6, wherein the sending unit is further configured to determine that an indication of a wrong connection is sent to a terminal device when the second device connected to the first device is not connected correctly.
9. The apparatus of claim 8, wherein the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions.
10. The device according to any of claims 6-9, wherein the sending unit is further configured to determine to send the port connection relationship to a terminal device when the second device connected to the first device is not connected correctly.
11. A network device, comprising: a processor, a transceiver, and at least one physical port;
the transceiver is configured to acquire a first network connection relationship, where the first device is any one of a plurality of network devices, and the first network connection relationship is a planned connection relationship of the plurality of network devices;
the physical port is configured to send the first network connection relationship to at least one of the plurality of network devices other than the first device;
the processor is used for acquiring a port connection relation of second equipment connected with the first equipment;
the processor is further configured to determine whether the second device connected to the first device is correctly connected according to the port connection relationship and the first network connection relationship;
the transceiver is further configured to acquire a third network connection relationship when the second device connected to the first device is incorrectly connected;
the physical port is further configured to send the third network connection relationship to a control server, where the third network connection relationship is a connection relationship of the multiple network devices in an existing network, the third network connection relationship is used for the control server to determine difference information between the first network connection relationship and the third network connection relationship, the difference information is used for a drawing worker of a network topology corresponding to the first network connection relationship to determine whether the network topology is a drawing error, if so, the drawing worker performs a correction operation on the control server to correct the drawing error, and the correction operation is used for the control server to generate a second network connection relationship according to the correction operation;
the transceiver is further configured to receive the second network connection relationship sent by the control server, and determine whether the second device connected to the first device is correctly connected according to the port connection relationship and the second network connection relationship.
12. The apparatus of claim 11, wherein the transceiver is configured to obtain the network connection relationship from an external storage medium; or, receiving the network connection relationship from the terminal device.
13. The device of claim 11, wherein the transceiver is further configured to determine that an indication of a false connection is sent to a terminal device when the second device connected to the first device is not connected correctly.
14. The apparatus of claim 13, wherein the misconnection comprises at least one of: port connection errors, network device connection errors, connection redundancy, or connection omissions.
15. The device of any of claims 11-14, wherein the transceiver is further configured to determine to send the port connection relationship to a terminal device when the second device connected to the first device is not connected correctly.
CN201710818191.6A 2017-09-12 2017-09-12 Detection processing method, equipment and network equipment Active CN109495333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710818191.6A CN109495333B (en) 2017-09-12 2017-09-12 Detection processing method, equipment and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710818191.6A CN109495333B (en) 2017-09-12 2017-09-12 Detection processing method, equipment and network equipment

Publications (2)

Publication Number Publication Date
CN109495333A CN109495333A (en) 2019-03-19
CN109495333B true CN109495333B (en) 2021-05-07

Family

ID=65688634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710818191.6A Active CN109495333B (en) 2017-09-12 2017-09-12 Detection processing method, equipment and network equipment

Country Status (1)

Country Link
CN (1) CN109495333B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134248A (en) * 2022-05-23 2022-09-30 奇安信科技集团股份有限公司 Network topology difference detection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102334310A (en) * 2011-07-12 2012-01-25 华为技术有限公司 Opening and arraning method, device and system of two-layer network equipment
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
CN104753697A (en) * 2013-12-26 2015-07-01 华为技术有限公司 Method, equipment and system for controlling provisioning of network equipment
US9130836B2 (en) * 2013-02-04 2015-09-08 Cisco Technology, Inc. Provisoning of a new node joining an existing cluster in a data center environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102334310A (en) * 2011-07-12 2012-01-25 华为技术有限公司 Opening and arraning method, device and system of two-layer network equipment
CN103095495A (en) * 2013-01-06 2013-05-08 华为技术有限公司 Network implementation configuration method, device and system
US9130836B2 (en) * 2013-02-04 2015-09-08 Cisco Technology, Inc. Provisoning of a new node joining an existing cluster in a data center environment
CN104753697A (en) * 2013-12-26 2015-07-01 华为技术有限公司 Method, equipment and system for controlling provisioning of network equipment

Also Published As

Publication number Publication date
CN109495333A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
US10405361B2 (en) Switching-on method, base station, base station controller, switching-on system and storage medium
CN106851513B (en) Method and system for testing electronic product
CN103954011A (en) Indoor unit and outdoor unit matching method and device of air conditioning unit and air conditioning unit
CN108647131B (en) Output system of running log
CN111988170A (en) Terminal fault positioning method and device
US20080225856A1 (en) Network connection apparatus
CN109495333B (en) Detection processing method, equipment and network equipment
CN106452880B (en) Network wiring detection method and device
CN110474821B (en) Node fault detection method and device
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN106324420B (en) A kind of display fault detection method
CN109560964B (en) Equipment compliance checking method and device
JP2006113668A (en) Failure diagnosis device
CN116225804A (en) PCIe link detection method, system, equipment and storage medium
CN103067053B (en) Method and device for Bluetooth node processing
CN106789304B (en) Network equipment configuration synchronization method and device
US20190037017A1 (en) Information processing device, information processing method, information processing program and information processing system
CN104378246A (en) Network equipment fault positioning system, method and device
KR101389646B1 (en) Communication device and communication method
CN115499861A (en) Service same-route detection method, device, equipment and storage medium
CN110493818B (en) Detection method and device of wireless fidelity module, storage medium and electronic device
JP2012235335A (en) Method and device for detecting incorrect connection between devices
CN110752950A (en) Update detection method and device for cloud resource pool and terminal equipment
KR102412058B1 (en) Data processing apparatus and method for wireless sensor network
EP2745547B1 (en) App driven base station man-machine interface

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