CN112311574B - Network topology connection checking method, device and equipment - Google Patents
Network topology connection checking method, device and equipment Download PDFInfo
- Publication number
- CN112311574B CN112311574B CN201910697739.5A CN201910697739A CN112311574B CN 112311574 B CN112311574 B CN 112311574B CN 201910697739 A CN201910697739 A CN 201910697739A CN 112311574 B CN112311574 B CN 112311574B
- Authority
- CN
- China
- Prior art keywords
- information
- switch
- connection
- determining
- equipment
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a method, a device and equipment for checking network topology connection lines. An inspection method comprising: acquiring equipment information of opposite-end equipment with topological connection with a first switch; and checking whether the topological connection is wrong or not according to the device information and the device information in the connection information in the pre-stored information table. The scheme of the invention can realize the inspection of the topological connection line between the switch and the opposite terminal equipment.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a device for checking a network topology connection.
Background
With the introduction of NFV (Network Function Virtualization ) technology, a three-layer decoupled network architecture is becoming a future network trend. The decoupling of the software and the hardware not only increases the flexibility of networking, but also brings the integration and delivery test work of a large number of components. However, the integration flow of the NFV network lacks a unified planning and a unified platform at present, which results in complex and changeable integration flow, and the integration flow is performed largely depending on experience of integration personnel. The number of repetitions of integration increases, and the failure and error probability increases.
The next generation network architecture is introduced, so that the access layer, the convergence layer and the core layer are not covered by the same manufacturer equipment any more, and the adaptation between the multi-manufacturer equipment in a complex integrated environment is the most troublesome problem faced by the large-scale operators at present. The integration efficiency is quickened by adopting rich automatic integration tools and continuous integration continuous delivery closed-loop chains, so that the flexibility of the network can be better exerted.
From the integrated delivery perspective, the conventional delivery means cannot meet the requirements of operators, and the integrated delivery report of any manufacturer cannot cover the test of all manufacturer devices in the resource pool, so that the current integrated delivery acceptance work is transferred to the operators to finish. Although the integrated manufacturer can provide a partially automated acceptance tool, the manufacturer is not good enough to ensure that the test observation point completely meets the requirements of the operator. Therefore, operators should be provided with autonomous, neutral, automated integrated acceptance tools, and develop perfect and efficient integrated acceptance from various aspects of hardware, networks, software, and the like.
The prior art has the following problems: the integrated delivery of the traditional network is basically completed by equipment manufacturers, because decoupling is not realized from the access side, the convergence side to the core side, and the integrated delivery of the traditional network is basically different types of equipment of the same manufacturer. Each manufacturer has a CI/CD tool that is suitable for performing topology link checks and delivers a report to the operator that is also output by the automated tool. However, after NFV is introduced, conventional network delivery means of this type are not satisfactory, and since no one vendor's CI/CD tool can cover all vendors' devices in the environment, this part of the work is handed over to the operator itself. The checking of the connections between switches of different vendors and servers + switches of different vendors presents a significant problem.
Disclosure of Invention
The invention provides a method, a device and equipment for checking network topology connection lines. The inspection of the topology wiring between the switch and the peer device can be achieved.
In order to solve the technical problems, the embodiment of the invention provides the following scheme:
a method of inspecting network topology links, comprising:
acquiring equipment information of opposite-end equipment with topological connection with a first switch;
and checking whether the topological connection is wrong or not according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, obtaining the information of the peer device having the topological connection with the first switch includes:
and acquiring the device information of the opposite-end device with the topological connection with the first switch through the neighbor discovery protocol LLDP.
Optionally, the device information includes: at least one of a media access control MAC address, a direct connection port number, and a device host name.
Optionally, checking whether the topology link is wrong according to the device information and the device information in the link information in the prestored information table includes:
if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal equipment is wrong.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a server, and the MAC address of the server is consistent with the MAC address of the server in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the server is correct, otherwise, determining that the topological connection between the first switch and the server is incorrect.
Optionally, the first switch and the device with high priority in the opposite terminal device acquire device information of the opposite terminal device having a topological connection with the local terminal device; and checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, when the priority of the first switch is equal to the priority of the peer device, the method further includes: and performing deduplication operation on a checking result of checking whether the topological connection line is wrong.
Optionally, the checking result for checking whether the topological connection is wrong is transmitted to a human-computer interface for display.
The embodiment of the invention also provides a device for checking network topology connection, which comprises:
the acquisition module is used for acquiring equipment information of opposite-end equipment with topological connection with the first switch;
and the processing module is used for checking whether the topological connection is wrong according to the equipment information and the equipment information in the connection information in the prestored information table.
Optionally, the acquiring module is configured to: and acquiring the device information of the opposite-end device with the topological connection with the first switch through the neighbor discovery protocol LLDP.
Optionally, the device information includes: at least one of a media access control MAC address, a direct connection port number, and a device host name.
Optionally, the processing module is configured to: if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal equipment is wrong.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a server, and the MAC address of the server is consistent with the MAC address of the server in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the server is correct, otherwise, determining that the topological connection between the first switch and the server is incorrect.
Optionally, the first switch and the device with high priority in the opposite terminal device acquire device information of the opposite terminal device having a topological connection with the local terminal device; and checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, when the priority of the first switch is equal to the priority of the peer device, the method further includes: and performing deduplication operation on a checking result of checking whether the topological connection line is wrong.
Optionally, the checking result for checking whether the topological connection is wrong is transmitted to a human-computer interface for display.
The embodiment of the invention also provides a network topology connection checking device, which comprises:
the processor is used for acquiring equipment information of opposite-end equipment with topological connection with the first switch; and checking whether the topological connection is wrong or not according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, the processor obtains device information of a peer device having a topology connection with the first switch through a neighbor discovery protocol LLDP.
Optionally, the device information includes: at least one of a media access control MAC address, a direct connection port number, and a device host name.
Optionally, the processor is configured to determine that the topology connection between the first switch and the peer device is correct if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, and otherwise determine that the topology connection between the first switch and the peer device is incorrect.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a server, and the MAC address of the server is consistent with the MAC address of the server in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the server is correct, otherwise, determining that the topological connection between the first switch and the server is incorrect.
Optionally, the first switch and the device with high priority in the opposite terminal device acquire device information of the opposite terminal device having a topological connection with the local terminal device; and checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, when the priority of the first switch is equal to the priority of the peer device, the method further includes: and performing deduplication operation on a checking result of checking whether the topological connection line is wrong.
Optionally, the checking result for checking whether the topological connection is wrong is transmitted to a human-computer interface for display.
The embodiment of the invention also provides a network topology connection checking device, which comprises: a processor, a memory storing a computer program which, when executed by the processor, performs the method as described above.
Embodiments of the present invention also provide a computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform a method as described above.
The scheme of the invention at least comprises the following beneficial effects:
according to the scheme, equipment information of opposite-end equipment with topological connection with the first switch is obtained; and checking whether the topological connection is wrong or not according to the device information and the device information in the connection information in the pre-stored information table. Therefore, the network topology connection can be checked, and the checking efficiency and the checking accuracy are high.
Drawings
Fig. 1 is a flow chart of a method for checking network topology connection according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for inspecting network topology links according to an embodiment of the present invention;
fig. 3 is a block diagram of an inspection apparatus for network topology according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a method for checking a network topology connection, including:
And step 12, checking whether the topological connection is wrong according to the equipment information and the equipment information in the connection information in the pre-stored information table.
In the embodiment of the invention, the equipment information of the opposite-end equipment with the topological connection with the first switch is acquired; and checking whether the topological connection is wrong or not according to the device information and the device information in the connection information in the pre-stored information table. The network topology connection can be checked, and the checking efficiency and the accuracy are high.
In an alternative embodiment of the present invention, the step 12 may include:
step 121, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is incorrect.
Here, if the opposite terminal device is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
If the opposite terminal equipment is a server, and the MAC address of the server is consistent with the MAC address of the server in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the server is correct, otherwise, determining that the topological connection between the first switch and the server is incorrect.
In the foregoing embodiment of the present invention, optionally, devices with high priority in the first switch and the peer device acquire device information of the peer device having a topological connection with the local device; and checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
When the priority of the first switch is equal to the priority of the opposite terminal device, the above checking method may further include: and 13, performing deduplication operation on a checking result of checking whether the topological connection line is wrong.
Further, the method may further include: and step 14, transmitting a checking result for checking whether the topological connection is wrong to a human-computer interface for display.
In the above embodiment of the present invention, after the hard set delivery, the device performs network topology connection checking by the operator. The requirement can generate actual topological connection lines between devices, compare the actually obtained connection lines with the device connection line information in a feedback table (LLD) delivered by a hard set manufacturer, achieve the aim of secondary test, and give prompt warning information once a link is found to be wrong.
As shown in fig. 2, a specific implementation flow of the foregoing embodiment includes:
and 21, integrating data in an information table (LLD) fed back by a hardware integration manufacturer, and storing the table in a database form, so that the subsequent maintenance and searching of the data are facilitated.
In step 22, log onto a switch (such as the first switch) by means of SSH (Secure Shell), perform an operation of checking the LLDP of the peer device on the switch, and if the link is normal, learn the peer device information from each other through LLDP message communication of the two ends, where the obtained peer information includes a peer MAC address, a peer device port number, and a peer device hostname (for uniquely identifying the device).
In step 23, all directly connected peer device information of the first switch is stored in the form of a dictionary nested list, where the storage form is only for illustration, and other storage forms are possible, and a key of the dictionary is a device port number, and a value is a dictionary in a list format, where the key is a peer device hostname, a peer MAC address, and a peer device port number respectively.
Here, the search peer device is divided into two cases, one is a switch (swith) and one is a server (server).
If the opposite device is a switch, the switch type may include a TOR type switch or an EOR type switch, and the link type is tor+tor, eor+eor, eor+tor. The method comprises the steps of firstly finding an opposite-end switch in a database through a hostname, judging the type of a link, comparing switch information of the opposite end found through detection with the switch information stored in the database according to the detection sequence of equipment at two ends of the preset link, if the switch information is inconsistent with the switch information, checking the link by mistake, and returning an error alarm if a topological connection fed back by a hard set manufacturer is inconsistent with an actually checked link; if so, the link check is normal.
If the opposite terminal device is a server, because the network card types used in different manufacturer servers are different, the LLDP degree supported by different network card types is also different, taking X710 as an example, the network card firmware of the opposite terminal device supports LLDP, the network card itself can interact with the opposite terminal device to form LLDP messages, an upper-layer operating system is not needed, but because the network card self-sends packets, the LLDP messages do not carry hostname information, and the hostname is taken as a unique identifier of the network card to be quite feasible.
Therefore, the storage format of the opposite terminal equipment information is modified according to the link type of the opposite terminal equipment which is the server, the hostname is abandoned as the unique identifier, the MAC address of the opposite terminal equipment is used as the unique identifier, and the opposite terminal equipment is still stored in a dictionary mode. When the opposite terminal is a server, the MAC address information of the opposite terminal equipment is read. Because the MAC address of the device is unique to the two-layer switch, and for the server, each server has multiple network cards, each network card corresponds to its own MAC address, so it is necessary to find the corresponding network card MAC according to the obtained opposite end MAC address, then determine on which server this MAC address is located, then look up the database for the second time, and directly connect to this device whether there is this found server in the device, if there is, the link check is correct, if there is no link check error, the topology connection fed back by the hard set manufacturer is inconsistent with the actual detection.
Since each link has two devices (i.e., a home device and a peer device), if the links are logged in to each switch in turn to acquire link information, there is a possibility that the same link is checked twice, which may cause many redundant tests for the link check.
If the level of the opposite terminal equipment is detected to be higher than that of the local terminal equipment, the opposite terminal equipment information is not acquired without checking the link, and the link information is acquired by the opposite terminal equipment;
if the level of the opposite terminal equipment is detected to be lower than that of the local terminal equipment, the link is detected by the local terminal;
if the level of the opposite terminal device is detected to be consistent with that of the local terminal device (the condition that the switches at the same level are cascaded is less), the link needs to be detected, and in order to avoid redundant data, the result of the detection of the link is called python grammar to perform a deduplication operation.
And step 25, comparing the link checking condition in step 24 with the stored database information in step 21, and returning comparison results (Success and Failure) to the front end, and displaying the connection checking result through a front end UI interface.
The above embodiments of the present invention generate a topology link through message interaction of the LLDP protocol between network devices and servers. And the equipment type, the application scene and the link type are taken as models, and each piece of opposite terminal information searched by the switch is classified and stored, so that the subsequent link state inspection is convenient. According to the level and the link type of the network, defining the left end and the right end of the link, wherein the left end is a low-level switch, the rear end is a high-level switch, and uniformly prescribing to log in the high-level switch to check opposite end information so as to prevent the redundant check of the link. The embodiment of the invention mainly aims at the hardware integration stage, checks the topological connection lines among EOR, TOR and servers in the same resource pool, and particularly checks physical connection lines instead of logical connection lines, thereby being convenient, efficient and accurate in checking result.
As shown in fig. 3, an embodiment of the present invention further provides a network topology connection checking apparatus 30, including:
an obtaining module 31, configured to obtain device information of an opposite device having a topology connection with the first switch;
and the processing module 32 is configured to check whether the topology connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, the acquiring module is configured to: and acquiring the device information of the opposite-end device with the topological connection with the first switch through the neighbor discovery protocol LLDP.
Optionally, the device information includes: at least one of a media access control MAC address, a direct connection port number, and a device host name.
Optionally, the processing module 32 is configured to: if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal equipment is wrong.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a server, and the MAC address of the server is consistent with the MAC address of the server in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the server is correct, otherwise, determining that the topological connection between the first switch and the server is incorrect.
Optionally, the first switch and the device with high priority in the opposite terminal device acquire device information of the opposite terminal device having a topological connection with the local terminal device; and checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, when the priority of the first switch is equal to the priority of the peer device, the method further includes: and performing deduplication operation on a checking result of checking whether the topological connection line is wrong.
Optionally, the checking result for checking whether the topological connection is wrong is transmitted to a human-computer interface for display.
It should be noted that, the apparatus is an apparatus corresponding to the method shown in fig. 1 and fig. 2, and all the implementation manners in the method embodiment described above are applicable to the embodiment of the apparatus, so that the same technical effects can be achieved.
The embodiment of the invention also provides a network topology connection checking device, which comprises:
the processor is used for acquiring equipment information of opposite-end equipment with topological connection with the first switch; and checking whether the topological connection is wrong or not according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, the processor obtains device information of a peer device having a topology connection with the first switch through a neighbor discovery protocol LLDP.
Optionally, the device information includes: at least one of a media access control MAC address, a direct connection port number, and a device host name.
Optionally, the processor is configured to determine that the topology connection between the first switch and the peer device is correct if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, and otherwise determine that the topology connection between the first switch and the peer device is incorrect.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
Optionally, if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong includes:
if the opposite terminal equipment is a server, and the MAC address of the server is consistent with the MAC address of the server in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the server is correct, otherwise, determining that the topological connection between the first switch and the server is incorrect.
Optionally, the first switch and the device with high priority in the opposite terminal device acquire device information of the opposite terminal device having a topological connection with the local terminal device; and checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
Optionally, when the priority of the first switch is equal to the priority of the peer device, the method further includes: and performing deduplication operation on a checking result of checking whether the topological connection line is wrong.
Optionally, the checking result for checking whether the topological connection is wrong is transmitted to a human-computer interface for display.
It should be noted that, the apparatus is a device corresponding to the method shown in fig. 1 and fig. 2, and the device may be a switch or a server, and all implementation manners in the method embodiment are applicable to the embodiment of the apparatus, so that the same technical effects can be achieved.
The embodiment of the invention also provides a network topology connection checking device, which comprises: a processor, a memory storing a computer program which, when executed by the processor, performs the method as described above. All the implementation manners in the method embodiment are applicable to the embodiment, and the same technical effects can be achieved.
Embodiments of the present invention also provide a computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform a method as described above. All the implementation manners in the method embodiment are applicable to the embodiment, and the same technical effect can be achieved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software 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 invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
Furthermore, it should be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. Also, the steps of performing the series of processes described above may naturally be performed in chronological order in the order of description, but are not necessarily performed in chronological order, and some steps may be performed in parallel or independently of each other. It will be appreciated by those of ordinary skill in the art that all or any of the steps or components of the methods and apparatus of the present invention may be implemented in hardware, firmware, software, or a combination thereof in any computing device (including processors, storage media, etc.) or network of computing devices, as would be apparent to one of ordinary skill in the art after reading this description of the invention.
The object of the invention can thus also be achieved by running a program or a set of programs on any computing device. The computing device may be a well-known general purpose device. The object of the invention can thus also be achieved by merely providing a program product containing program code for implementing said method or apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is apparent that the storage medium may be any known storage medium or any storage medium developed in the future. It should also be noted that in the apparatus and method of the present invention, it is apparent that the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects of the present invention. The steps of executing the series of processes may naturally be executed in chronological order in the order described, but are not necessarily executed in chronological order. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.
Claims (11)
1. A method for inspecting a network topology link, comprising:
acquiring equipment information of opposite-end equipment with topological connection with a first switch;
checking whether the topological connection is wrong or not according to the equipment information and the equipment information in the connection information in the pre-stored information table;
checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table, comprising:
if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal equipment is wrong;
if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong comprises:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
2. The method for checking network topology links as recited in claim 1, wherein obtaining peer device information having topology links with the first switch comprises:
and acquiring the device information of the opposite-end device with the topological connection with the first switch through the neighbor discovery protocol LLDP.
3. The method for checking network topology links as recited in claim 1, wherein the device information comprises: at least one of a media access control MAC address, a direct connection port number, and a device host name.
4. The method according to claim 1, wherein if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topology connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topology connection between the first switch and the opposite terminal device is incorrect, further comprising:
if the opposite terminal equipment is a server, and the MAC address of the server is consistent with the MAC address of the server in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the server is correct, otherwise, determining that the topological connection between the first switch and the server is incorrect.
5. The method for checking a network topology connection according to any one of claims 1 to 4, wherein a device with a high priority among the first switch and the peer device acquires device information of the peer device having the topology connection with the home device; and checking whether the topological connection is wrong according to the device information and the device information in the connection information in the pre-stored information table.
6. The method according to any one of claims 1 to 4, wherein when the priority of the first switch is equal to the priority of the peer device, further comprising:
and performing deduplication operation on a checking result of checking whether the topological connection line is wrong.
7. The method for checking network topology links as recited in claim 1, further comprising: and transmitting the checking result for checking whether the topological connection line is wrong to a human-computer interface for display.
8. An inspection apparatus for network topology connection, comprising:
the acquisition module is used for acquiring equipment information of opposite-end equipment with topological connection with the first switch;
the processing module is used for checking whether the topological connection is wrong or not according to the equipment information and the equipment information in the connection information in the prestored information table;
the processing module is used for: if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal equipment is wrong;
if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong comprises:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
9. An inspection apparatus for network topology wiring, comprising:
the processor is used for acquiring equipment information of opposite-end equipment with topological connection with the first switch; checking whether the topological connection is wrong or not according to the equipment information and the equipment information in the connection information in the pre-stored information table;
the processor is used for judging that if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal equipment is wrong;
if the device information is consistent with the device information in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite terminal device is correct, otherwise, determining that the topological connection between the first switch and the opposite terminal device is wrong comprises:
if the opposite terminal equipment is a second switch, and the host name of the second switch is consistent with the host name of the second switch in the connection information in the information table fed back by the prestored hardware integration manufacturer, determining that the topological connection between the first switch and the second switch is correct, otherwise, determining that the topological connection between the first switch and the second switch is incorrect.
10. An inspection apparatus for network topology wiring, comprising: a processor, a memory storing a computer program which, when executed by the processor, performs the method of any one of claims 1 to 7.
11. A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910697739.5A CN112311574B (en) | 2019-07-30 | 2019-07-30 | Network topology connection checking method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910697739.5A CN112311574B (en) | 2019-07-30 | 2019-07-30 | Network topology connection checking method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112311574A CN112311574A (en) | 2021-02-02 |
CN112311574B true CN112311574B (en) | 2023-05-09 |
Family
ID=74485142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910697739.5A Active CN112311574B (en) | 2019-07-30 | 2019-07-30 | Network topology connection checking method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112311574B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113098725B (en) * | 2021-06-10 | 2021-08-24 | 北京全路通信信号研究设计院集团有限公司 | Dual-network interweaving abnormity detection method and system |
CN113849354A (en) * | 2021-08-26 | 2021-12-28 | 中兴通讯股份有限公司 | Connection checking method, connection checking device, server and storage medium |
CN115185759B (en) * | 2022-09-05 | 2023-09-29 | 平安银行股份有限公司 | Method, device and system for checking server wiring based on LLDP |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516824A (en) * | 2012-06-30 | 2014-01-15 | 华为技术有限公司 | Network topology identification method based on IP layer and devices |
CN108173701A (en) * | 2018-02-11 | 2018-06-15 | 国电南瑞科技股份有限公司 | Method of calibration is configured in a kind of intelligent substation network parameter |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702663B (en) * | 2009-11-11 | 2012-09-05 | 华为技术有限公司 | Method and device for updating ring network topology information |
CN102123044B (en) * | 2011-01-14 | 2013-08-28 | 北京邮电大学 | Detection device and method of network topology consistency based on topology discovery technology |
CN102082710A (en) * | 2011-01-24 | 2011-06-01 | 中兴通讯股份有限公司 | Method and system for implementing detection on network topology fault of nodes in network |
CN104518927A (en) * | 2014-12-15 | 2015-04-15 | 清华大学 | Detecting method and device of error connection in data center network |
-
2019
- 2019-07-30 CN CN201910697739.5A patent/CN112311574B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516824A (en) * | 2012-06-30 | 2014-01-15 | 华为技术有限公司 | Network topology identification method based on IP layer and devices |
CN108173701A (en) * | 2018-02-11 | 2018-06-15 | 国电南瑞科技股份有限公司 | Method of calibration is configured in a kind of intelligent substation network parameter |
Also Published As
Publication number | Publication date |
---|---|
CN112311574A (en) | 2021-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112311574B (en) | Network topology connection checking method, device and equipment | |
CN114285725A (en) | Network fault determination method and device, storage medium and electronic equipment | |
CN110995545A (en) | Cloud network configuration testing method and device | |
CN109039682A (en) | A kind of method and apparatus of diagnostic process | |
CN116506340A (en) | Flow link testing method and device, electronic equipment and storage medium | |
WO2016026510A1 (en) | Hardware fault identification management in a network | |
CN111124828A (en) | Data processing method, device, equipment and storage medium | |
CN114244686B (en) | Communication fault detection method, device and system | |
US7984136B2 (en) | Methods, systems, and computer program products for determining locations of interconnected processing modules and for verifying consistency of interconnect wiring of processing modules | |
CN115544202A (en) | Alarm processing method, device and storage medium | |
JP5088738B2 (en) | Fault monitoring apparatus, fault monitoring method, and program therefor | |
CN112787839B (en) | Port description modification method and device | |
CN108694105B (en) | Wiring prompting method of rack-mounted server system | |
CN113703782A (en) | Method and device for automatically deploying copy set, electronic equipment and storage medium | |
CN109560964B (en) | Equipment compliance checking method and device | |
CN103312530A (en) | Method and system for correspondingly counting on-line server and rack position, and counting platform | |
CN106992873B (en) | Protection group processing method and device | |
CN114816876B (en) | Automatic test system for server Redfish interface specifications | |
CN114531420B (en) | IP address configuration method and device, storage medium and electronic equipment | |
CN111261271A (en) | Service availability diagnosis method and device for video monitoring environment | |
CN110213783B (en) | Base station monitoring method, device and system | |
CN113746680A (en) | Physical position determining method and device testing method and device | |
CN112636944B (en) | OLT equipment offline intelligent diagnosis method and system | |
CN116382968B (en) | Fault detection method and device for external equipment | |
US20220404413A1 (en) | Method for analyzing an electrical circuit |
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 |