CN112311574A - Method, device and equipment for checking network topology connection - Google Patents

Method, device and equipment for checking network topology connection Download PDF

Info

Publication number
CN112311574A
CN112311574A CN201910697739.5A CN201910697739A CN112311574A CN 112311574 A CN112311574 A CN 112311574A CN 201910697739 A CN201910697739 A CN 201910697739A CN 112311574 A CN112311574 A CN 112311574A
Authority
CN
China
Prior art keywords
information
connection
switch
equipment
topological 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.)
Granted
Application number
CN201910697739.5A
Other languages
Chinese (zh)
Other versions
CN112311574B (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.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910697739.5A priority Critical patent/CN112311574B/en
Publication of CN112311574A publication Critical patent/CN112311574A/en
Application granted granted Critical
Publication of CN112311574B publication Critical patent/CN112311574B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network 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
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing 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 a network topology connection line. An inspection method, comprising: acquiring equipment information of opposite-end equipment which has a topological connection with a first switch; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table. The scheme of the invention can realize the check of the topological connection between the switch and the opposite terminal equipment.

Description

Method, device and equipment for checking network topology connection
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 gradually becomes a future Network trend. The software and hardware decoupling not only increases the networking flexibility, but also brings the integration and delivery test work of a large number of components. However, the integration process of the NFV network at present lacks a unified planning and unified platform, which results in complex and variable integration process and depends on the experience of integration personnel to a great extent. The number of iterations of integration increases and the probability of failure and error increases.
Due to the introduction of the next-generation network architecture, the access layer, the convergence layer and the core layer are not covered by the same manufacturer equipment any more, and the adaptation among multiple manufacturer equipment in a complex integrated environment is the most troublesome problem faced by a large-scale operator at present. And the integration efficiency is accelerated by adopting abundant automatic integration tools and continuous integration continuous delivery closed-loop chains, so that the flexibility of the network can be better exerted.
From the perspective of integrated delivery, the traditional delivery means cannot meet the requirements of operators, and the integrated delivery report of any manufacturer cannot test and cover all manufacturer devices in the resource pool, so that the current integrated delivery acceptance work is transferred to the operators to be completed. Although integrated vendors may provide partially automated assay collection tools, vendors are ill-equipped and do not guarantee that the test observation point will fully meet the operator's requirements. Therefore, operators should have an autonomously developed, neutral and automated integrated acceptance tool, and develop complete and efficient integrated acceptance from multiple aspects of hardware, network, software and the like.
The prior art has the following problems: in the past, the integrated delivery of the traditional network is basically completed by equipment manufacturers, because the decoupling is not realized from an access side, a convergence side and a 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 topology link inspection, and a report is delivered to the operator that is also output by the automation tool. However, after the NFV is introduced, the conventional network delivery means cannot meet the requirement, and since no CI/CD tool of any one vendor can cover all the vendors' devices in the environment, the work is handed over to the operator to complete. The checking of the connections between the switches of different vendors and the servers + switches of different vendors presents a major problem.
Disclosure of Invention
The invention provides a method, a device and equipment for checking a network topology connection line. The checking of the topological connection between the switch and the opposite terminal equipment can be realized.
To solve the above technical problem, an embodiment of the present invention provides the following solutions:
a method for checking a network topological connection line comprises the following steps:
acquiring equipment information of opposite-end equipment which has a topological connection with a first switch;
and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table.
Optionally, the obtaining of the peer device information having a topological connection with the first switch includes:
and acquiring the device information of the opposite-end device which has the topological 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 hostname.
Optionally, checking whether the topological connection is faulty according to the device information and device information in connection information in a pre-stored information table, including:
and if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite-end equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite-end equipment is wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
and if the opposite-end 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 pre-stored information table fed back by the 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 wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
if the opposite-end 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 pre-stored hardware integration manufacturer, the topological connection between the first switch and the server is determined to be correct, otherwise, the topological connection between the first switch and the server is determined to be wrong.
Optionally, the device with a higher priority in the first switch and the peer device acquires device information of the peer device having a topological connection with the local device; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in connection information in a 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 carrying out duplicate removal operation on the checking result of whether the topological connection is wrong or not.
Optionally, the checking result of whether the topological connection line is incorrect is transmitted to a human-computer interface for displaying.
The embodiment of the present invention further provides an apparatus for checking a network topology connection, including:
the acquisition module is used for acquiring equipment information of opposite-end equipment which has a topological connection with the first switch;
and 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.
Optionally, the obtaining module is configured to: and acquiring the device information of the opposite-end device which has the topological 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 hostname.
Optionally, the processing module is configured to: and if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite-end equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite-end equipment is wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
and if the opposite-end 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 pre-stored information table fed back by the 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 wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
if the opposite-end 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 pre-stored hardware integration manufacturer, the topological connection between the first switch and the server is determined to be correct, otherwise, the topological connection between the first switch and the server is determined to be wrong.
Optionally, the device with a higher priority in the first switch and the peer device acquires device information of the peer device having a topological connection with the local device; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in connection information in a 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 carrying out duplicate removal operation on the checking result of whether the topological connection is wrong or not.
Optionally, the checking result of whether the topological connection line is incorrect is transmitted to a human-computer interface for displaying.
An embodiment of the present invention further provides an inspection apparatus for network topology connection, including:
the processor is used for acquiring equipment information of opposite-end equipment which has a topological connection with the first switch; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table.
Optionally, the processor obtains device information of an opposite-end device having a topological 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 hostname.
Optionally, the processor is configured to determine that a topology connection between the first switch and the peer device is correct if the device information is consistent with device information in connection information in an information table fed back by the hardware integration vendor, 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 device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
and if the opposite-end 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 pre-stored information table fed back by the 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 wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
if the opposite-end 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 pre-stored hardware integration manufacturer, the topological connection between the first switch and the server is determined to be correct, otherwise, the topological connection between the first switch and the server is determined to be wrong.
Optionally, the device with a higher priority in the first switch and the peer device acquires device information of the peer device having a topological connection with the local device; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in connection information in a 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 carrying out duplicate removal operation on the checking result of whether the topological connection is wrong or not.
Optionally, the checking result of whether the topological connection line is incorrect is transmitted to a human-computer interface for displaying.
An embodiment of the present invention further provides an inspection apparatus for network topology connection, including: 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 including instructions that, when executed on a computer, cause the computer to perform the method as described above.
The scheme of the invention at least comprises the following beneficial effects:
according to the scheme, the equipment information of the opposite terminal equipment which is in topological connection with the first switch is obtained; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table. Therefore, the network topology connection inspection can be realized, and the inspection efficiency and the accuracy are high.
Drawings
Fig. 1 is a schematic 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 a network topology connection according to an embodiment of the present invention;
fig. 3 is a block diagram of an apparatus for checking network topology connection 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 disclosure 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:
step 11, acquiring device information of opposite terminal equipment with a topological connection line with a first switch; optionally, the device information of the peer device having the topology connection with the first switch is obtained through a neighbor discovery protocol LLDP. The device information here may include: at least one of a MAC (media Access control) address, a direct port number, a device host name (Hostname).
And 12, checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a prestored information table.
In the embodiment of the invention, the device information of the opposite terminal device which has the topological connection with the first switch is obtained; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table. The method can realize the check of the network topology connection and has high check efficiency and correctness.
In an optional 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 pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite-end device is correct, otherwise, determining that the topological connection between the first switch and the opposite-end device is incorrect.
Here, if the peer 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 pre-stored hardware integration manufacturer, it is determined that the topological connection between the first switch and the second switch is correct, and otherwise, it is determined that the topological connection between the first switch and the second switch is incorrect.
If the opposite-end 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 pre-stored hardware integration manufacturer, the topological connection between the first switch and the server is determined to be correct, otherwise, the topological connection between the first switch and the server is determined to be wrong.
In the foregoing embodiment of the present invention, optionally, the device with a higher priority in the first switch and the peer device obtains device information of the peer device having a topological connection with the local device; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in connection information in a pre-stored information table.
When the priority of the first switch is equal to the priority of the peer device, the checking method may further include: and step 13, carrying out duplication elimination operation on the check result of whether the topological connecting line is wrong or not.
Further, the method may further include: and step 14, transmitting the checking result of whether the topological connection line is wrong to a human-computer interface for displaying.
In the above embodiment of the present invention, after the device is delivered as a hard set, the operator performs network topology connection check. The requirement can be that actual topological connection is generated among the devices, the actually acquired connection is compared with the device connection information in a feedback table (LLD) delivered by a hard set manufacturer, the purpose of secondary test is achieved, and prompt warning information needs to be given once a link is found to be wrong.
As shown in fig. 2, a specific implementation flow of the foregoing embodiment includes:
and step 21, integrating data in an information table (LLD) fed back by a hardware integration manufacturer, and storing the table in a database form, so as to facilitate subsequent maintenance and search of the data.
Step 22, logging in to the switch (such as the first switch) in an SSH (Secure Shell protocol) manner, executing LLDP operation for checking the peer device on the switch, and if the link is normal, learning peer device information through LLDP message communication at both 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).
And step 23, storing all the opposite-end device information directly connected with the first switch in a dictionary nesting list mode, wherein the storage mode is only an illustration mode, and other storage modes can be provided, the key of the dictionary is a device port number, the value is a dictionary in a list format, and the key is an opposite-end device hostname, an opposite-end MAC address and an opposite-end device port number respectively.
Step 24, reading the device port number of the dictionary key generated in step 23, finding the value with the hostname as the key in the value list, and searching the database in step 21 with the hostname as an index because the hostname of the device in the resource pool is used as the unique identifier.
Here, the peer device is looked up in two cases, one is a switch (swicth) and the other is a server (server).
If the peer device is a switch, the type of the switch may include a TOR type switch, or an EOR type switch, and the link type is TOR + TOR, EOR + EOR, EOR + TOR. Finding an opposite-end switch in a database through the hostname, judging the type of the link, comparing the switch information of the opposite end found through detection with that stored in the database according to a preset checking sequence of equipment at two ends of the link, if the switch information is inconsistent with that stored in the database, checking the link by an error, and if a topological connection fed back by a hard set manufacturer is inconsistent with the actually checked link, returning an error alarm; if so, the link checks normal.
If the opposite-end device is a server, because the models of the network cards used in the servers of different manufacturers are different, and the degrees of LLDP supported by different network card types are different, taking X710 as an example, the LLDP is supported by the network card firmware of the network card itself, and the network card itself can interact with the opposite-end device with LLDP messages without depending on an upper operating system, but because the network card is self-sent, the hostname information is not carried in the LLDP messages, so that it is not feasible to use the hostname as the unique identifier of the network card.
Therefore, aiming at the link type of the server of the opposite terminal equipment, the information storage format of the opposite terminal equipment is modified, the hostname is abandoned as the unique identifier, the MAC address of the opposite terminal equipment is used as the unique identifier instead, and the link type of the server of the opposite terminal equipment is stored in a dictionary mode. When the opposite terminal is a server, the MAC address information of the opposite terminal equipment is read. For the two-layer switch, the MAC address of the device is unique, and for the server, each server may have multiple network cards, each network card corresponds to its own MAC address, so that it is necessary to find the corresponding network card MAC according to the obtained MAC address of the opposite terminal, determine which server the MAC address is on, and then search the database for the second time to determine whether there is a server found in the device directly connected to the device, if so, the link check is correct, if not, the link check is incorrect, and the topology connection fed back by the hard set manufacturer is inconsistent with the actually detected connection.
Since each link has two devices (i.e., a local device and an opposite device), if the link logs in each switch in sequence to obtain link information, a phenomenon that the same link is checked twice will inevitably occur, which may cause many redundant tests for link check.
If the level of the opposite terminal equipment is 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 lower than that of the local terminal equipment, the link route is detected by the local terminal;
if the level of the opposite-end equipment is consistent with that of the local-end equipment (the condition of the same-level switch cascade is less), the link needs to be detected, and in order to avoid redundant data, the detected result of the link calls python grammar to perform deduplication operation.
And 25, comparing the link check condition in the step 24 with the database information stored in the step 21, returning the comparison results (Success and Failure) to the front end, and displaying the connection check result through the UI interface of the front end.
In the above embodiments of the present invention, the topology links are generated by packet interaction between the network devices and the server through the LLDP protocol. And classifying and storing each piece of opposite-end information searched by the switch by taking the equipment type, the application scene and the link type as models, so that the subsequent link state check is facilitated. According to the hierarchy of the network and the link type, the left end and the right end of the link are defined, the left end is a low-level switch, the rear end is a high-level switch, the high-level switch is logged in to check opposite-end information in a unified and specified mode, and redundant check of the link is prevented. The embodiment of the invention mainly aims at the hardware integration stage, and inspects the topological connecting lines among the EOR, the TOR and the server in the same resource pool, especially aims at the inspection of physical connecting lines rather than logical connecting lines, and is convenient, efficient and accurate in inspection result.
As shown in fig. 3, an embodiment of the present invention further provides an apparatus 30 for checking network topology connection, including:
an obtaining module 31, configured to obtain device information of an opposite-end device having a topological connection with a first switch;
and the processing module 32 is configured to check whether the topological connection is faulty according to the device information and device information in connection information in a pre-stored information table.
Optionally, the obtaining module is configured to: and acquiring the device information of the opposite-end device which has the topological 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 hostname.
Optionally, the processing module 32 is configured to: and if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite-end equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite-end equipment is wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
and if the opposite-end 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 pre-stored information table fed back by the 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 wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
if the opposite-end 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 pre-stored hardware integration manufacturer, the topological connection between the first switch and the server is determined to be correct, otherwise, the topological connection between the first switch and the server is determined to be wrong.
Optionally, the device with a higher priority in the first switch and the peer device acquires device information of the peer device having a topological connection with the local device; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in connection information in a 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 carrying out duplicate removal operation on the checking result of whether the topological connection is wrong or not.
Optionally, the checking result of whether the topological connection line is incorrect is transmitted to a human-computer interface for displaying.
It should be noted that the apparatus is an apparatus corresponding to the method shown in fig. 1 and fig. 2, and all the implementations in the above method embodiments are applicable to the embodiment of the apparatus, and the same technical effects can be achieved.
An embodiment of the present invention further provides an inspection apparatus for network topology connection, including:
the processor is used for acquiring equipment information of opposite-end equipment which has a topological connection with the first switch; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table.
Optionally, the processor obtains device information of an opposite-end device having a topological 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 hostname.
Optionally, the processor is configured to determine that a topology connection between the first switch and the peer device is correct if the device information is consistent with device information in connection information in an information table fed back by the hardware integration vendor, 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 device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
and if the opposite-end 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 pre-stored information table fed back by the 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 wrong.
Optionally, if the device information is consistent with device information in connection information in an information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the peer device is correct, otherwise, determining that the topological connection between the first switch and the peer device is incorrect, includes:
if the opposite-end 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 pre-stored hardware integration manufacturer, the topological connection between the first switch and the server is determined to be correct, otherwise, the topological connection between the first switch and the server is determined to be wrong.
Optionally, the device with a higher priority in the first switch and the peer device acquires device information of the peer device having a topological connection with the local device; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in connection information in a 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 carrying out duplicate removal operation on the checking result of whether the topological connection is wrong or not.
Optionally, the checking result of whether the topological connection line is incorrect is transmitted to a human-computer interface for displaying.
It should be noted that the apparatus is a device corresponding to the methods shown in fig. 1 and fig. 2, the device may be a switch or a server, and all implementation manners in the above method embodiments are applicable to the embodiment of the apparatus, and the same technical effect can be achieved.
An embodiment of the present invention further provides an inspection apparatus for network topology connection, including: 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 above method embodiment are applicable to this embodiment, and the same technical effect can be achieved.
Embodiments of the present invention also provide a computer-readable storage medium including instructions that, when executed on a computer, cause the computer to perform the method as described above. All the implementation manners in the above method embodiments are applicable to the embodiments, 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 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 invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The 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 such understanding, the technical solution of the present invention may 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 U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Furthermore, it is to be noted that in the device and method of the invention, it is obvious that the individual components or steps can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of performing the series of processes described above may naturally be performed chronologically in the order described, but need not necessarily be performed chronologically, and some steps may be performed in parallel or independently of each other. It will be understood by those skilled in the art that all or any of the steps or elements of the method and apparatus of the present invention may be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or any combination thereof, which can be implemented by those skilled in the art using their basic programming skills after reading the description of the present invention.
Thus, the objects of the invention may also be achieved by running a program or a set of programs on any computing device. The computing device may be a general purpose device as is well known. The object of the invention is thus also achieved solely by providing a program product comprising program code for implementing the method or the 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 to be understood that the storage medium may be any known storage medium or any storage medium developed in the future. It is further noted that in the apparatus and method of the present invention, it is apparent that each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of executing the series of processes described above may naturally be executed chronologically in the order described, but need not necessarily be executed chronologically. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. A method for inspecting a network topology connection line is characterized by comprising the following steps:
acquiring equipment information of opposite-end equipment which has a topological connection with a first switch;
and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table.
2. The method of claim 1, wherein obtaining peer device information having a topological connection with the first switch comprises:
and acquiring the device information of the opposite-end device which has the topological connection with the first switch through a neighbor discovery protocol (LLDP).
3. The method for inspecting network topology connection according to claim 1, wherein said device information comprises: at least one of a Media Access Control (MAC) address, a direct connection port number, and a device hostname.
4. The method according to claim 3, wherein the step of checking whether the topological connection is faulty according to the device information and device information in connection information in a pre-stored information table comprises:
and if the equipment information is consistent with the equipment information in the connection information in the information table fed back by the pre-stored hardware integration manufacturer, determining that the topological connection between the first switch and the opposite-end equipment is correct, otherwise, determining that the topological connection between the first switch and the opposite-end equipment is wrong.
5. The method according to claim 4, wherein if the device information is consistent with the device information in the connection information in the information table fed back by the hardware integration vendor, determining that the topological connection between the first switch and the peer device is correct, and otherwise, determining that the topological connection between the first switch and the peer device is incorrect comprises:
and if the opposite-end 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 pre-stored information table fed back by the 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 wrong.
6. The method according to claim 4, wherein if the device information is consistent with the device information in the connection information in the information table fed back by the hardware integration vendor, determining that the topological connection between the first switch and the peer device is correct, and otherwise, determining that the topological connection between the first switch and the peer device is incorrect comprises:
if the opposite-end 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 pre-stored hardware integration manufacturer, the topological connection between the first switch and the server is determined to be correct, otherwise, the topological connection between the first switch and the server is determined to be wrong.
7. The method according to any one of claims 1 to 6, wherein a device with a higher priority in the first switch and the peer device obtains device information of a peer device having a topological connection with a local device; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in connection information in a pre-stored information table.
8. The method for inspecting network topology connection according to any of claims 1 to 6, wherein the priority of the first switch is equal to the priority of the peer device, further comprising:
and carrying out duplicate removal operation on the checking result of whether the topological connection is wrong or not.
9. The method for inspecting a network topology connection according to claim 1, further comprising: and transmitting the checking result for checking whether the topological connection line is wrong to a human-computer interface for displaying.
10. An apparatus for checking a network topology connection, comprising:
the acquisition module is used for acquiring equipment information of opposite-end equipment which has a topological connection with the first switch;
and 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.
11. An apparatus for inspecting a network topology connection, comprising:
the processor is used for acquiring equipment information of opposite-end equipment which has a topological connection with the first switch; and checking whether the topological connection is wrong or not according to the equipment information and equipment information in the connection information in a pre-stored information table.
12. An apparatus for inspecting a network topology connection, comprising: a processor, a memory storing a computer program which, when executed by the processor, performs the method of any of claims 1 to 9.
13. A computer-readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 9.
CN201910697739.5A 2019-07-30 2019-07-30 Network topology connection checking method, device and equipment Active CN112311574B (en)

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 true CN112311574A (en) 2021-02-02
CN112311574B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098725A (en) * 2021-06-10 2021-07-09 北京全路通信信号研究设计院集团有限公司 Dual-network interweaving abnormity detection method and system
CN115185759A (en) * 2022-09-05 2022-10-14 平安银行股份有限公司 LLDP-based server wiring verification method, device and system
WO2023024833A1 (en) * 2021-08-26 2023-03-02 中兴通讯股份有限公司 Connecting line inspection method, connecting line inspection apparatus, and server and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702663A (en) * 2009-11-11 2010-05-05 华为技术有限公司 Method for updating ring network topology information, device and system thereof
CN102082710A (en) * 2011-01-24 2011-06-01 中兴通讯股份有限公司 Method and system for implementing detection on network topology fault of nodes in network
CN102123044A (en) * 2011-01-14 2011-07-13 北京邮电大学 Detection device and method of network topology consistency based on topology discovery technology
CN103516824A (en) * 2012-06-30 2014-01-15 华为技术有限公司 Network topology identification method based on IP layer and devices
CN104518927A (en) * 2014-12-15 2015-04-15 清华大学 Detecting method and device of error connection in data center network
CN108173701A (en) * 2018-02-11 2018-06-15 国电南瑞科技股份有限公司 Method of calibration is configured in a kind of intelligent substation network parameter

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702663A (en) * 2009-11-11 2010-05-05 华为技术有限公司 Method for updating ring network topology information, device and system thereof
CN102123044A (en) * 2011-01-14 2011-07-13 北京邮电大学 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
CN103516824A (en) * 2012-06-30 2014-01-15 华为技术有限公司 Network topology identification method based on IP layer and devices
CN104518927A (en) * 2014-12-15 2015-04-15 清华大学 Detecting method and device of error connection in data center network
CN108173701A (en) * 2018-02-11 2018-06-15 国电南瑞科技股份有限公司 Method of calibration is configured in a kind of intelligent substation network parameter

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113098725A (en) * 2021-06-10 2021-07-09 北京全路通信信号研究设计院集团有限公司 Dual-network interweaving abnormity detection method and system
WO2023024833A1 (en) * 2021-08-26 2023-03-02 中兴通讯股份有限公司 Connecting line inspection method, connecting line inspection apparatus, and server and storage medium
CN115185759A (en) * 2022-09-05 2022-10-14 平安银行股份有限公司 LLDP-based server wiring verification method, device and system
CN115185759B (en) * 2022-09-05 2023-09-29 平安银行股份有限公司 Method, device and system for checking server wiring based on LLDP

Also Published As

Publication number Publication date
CN112311574B (en) 2023-05-09

Similar Documents

Publication Publication Date Title
Potharaju et al. Juggling the jigsaw: Towards automated problem inference from network trouble tickets
CN112311574B (en) Network topology connection checking method, device and equipment
CN110928772A (en) Test method and device
CN110691009B (en) Network equipment inspection method and device
CN111108481B (en) Fault analysis method and related equipment
CN110275992B (en) Emergency processing method, device, server and computer readable storage medium
CN113760730A (en) Automatic testing method and device
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN113285906A (en) Security policy configuration method, device, equipment and storage medium
CN113656315A (en) Data testing method and device, electronic equipment and storage medium
CN116506340A (en) Flow link testing method and device, electronic equipment and storage medium
CN115842861A (en) Edge connection device adaptation method, device and computer readable storage medium
CN115544202A (en) Alarm processing method, device and storage medium
CN111427736A (en) Log monitoring method, device, equipment and computer readable storage medium
CN115098362A (en) Page testing method and device, electronic equipment and storage medium
CN115373916A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and computer-readable storage medium
CN112787839B (en) Port description modification method and device
CN109560964B (en) Equipment compliance checking method and device
CN108694105B (en) Wiring prompting method of rack-mounted server system
CN106992873B (en) Protection group processing method and device
CN114816876B (en) Automatic test system for server Redfish interface specifications
CN116028078B (en) Software remote upgrading method based on VPN technology
WO2023032116A1 (en) Script identification device, script identification method, and script identification system
CN110213783B (en) Base station monitoring method, device and system
CN117056238B (en) Method and computing device for verifying correctness of model conversion under deployment framework

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