CN110266530B - Link discovery method and device based on Opendataright framework - Google Patents

Link discovery method and device based on Opendataright framework Download PDF

Info

Publication number
CN110266530B
CN110266530B CN201910519330.4A CN201910519330A CN110266530B CN 110266530 B CN110266530 B CN 110266530B CN 201910519330 A CN201910519330 A CN 201910519330A CN 110266530 B CN110266530 B CN 110266530B
Authority
CN
China
Prior art keywords
network equipment
link
neighbor
neighbor network
mac address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910519330.4A
Other languages
Chinese (zh)
Other versions
CN110266530A (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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN201910519330.4A priority Critical patent/CN110266530B/en
Publication of CN110266530A publication Critical patent/CN110266530A/en
Application granted granted Critical
Publication of CN110266530B publication Critical patent/CN110266530B/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/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • 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

Landscapes

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

Abstract

The invention discloses a link discovery method and a device based on an Opendayright framework, wherein the method comprises the following steps: the network equipment informs the neighbor network equipment of link information through an LLDP protocol; neighbor network equipment informs the network equipment of link information; the network management platform acquires link information of the network equipment and the neighbor network equipment through an Opnda southbound interface; whether a link from the network device to the neighbor network device is the same link as a link from the neighbor network device to the network device is confirmed. The invention realizes the reading of the link information of the network equipment through the southbound interface; the southbound interface not only supports a componentization mode, can be flexibly upgraded and uninstalled, but also supports a plurality of protocols. The network management platform adopting the Opendaylight southbound interface has a modular framework, and not only supports the cluster, but also supports hot plug; because the southbound interface supports a plurality of protocols, the compatibility of the network platform is enhanced.

Description

Link discovery method and device based on Opendataright framework
Technical Field
The invention relates to a link discovery method and device based on an Opendayright framework, and belongs to the technical field of communication.
Background
At present, the network management platform is mostly realized by adopting JAVA technology and supports B/S architecture. Basically, the SNMP protocol is used to collect network management information from network devices.
Aiming at automatic Link Discovery, devices of different manufacturers adopt a Link Layer Discovery Protocol (Link Layer Discovery Protocol) to interact with directly connected neighbor devices to manage information such as addresses, device identifiers, interface identifiers and the like, the neighbor devices store the information in a form of an MIB (management information base), and a network management system inquires LLDP (Link Layer Discovery Protocol) information through a snmp (snmp network management Protocol) interface to judge and obtain Link states and information.
However, most of the existing network management platforms have a single means for acquiring link information, and depend on the SNMP protocol, and once the designated network device does not provide an SNMP interface, the network management platform cannot realize the function of automatically generating a link.
Disclosure of Invention
Aiming at the defects of the method, the invention provides a link discovery method and a device based on an Opendataright framework, which can realize network management based on the Opendataright framework and support link discovery of various protocols.
The technical scheme adopted for solving the technical problem is as follows:
in one aspect, a method for discovering a link based on an opendataright framework provided in an embodiment of the present invention includes the following steps:
the network equipment informs the neighbor network equipment of link information through an LLDP protocol;
neighbor network equipment informs the network equipment of link information;
the network management platform acquires link information of the network equipment and the neighbor network equipment through an Openstyle southbound interface;
whether a link from the network device to the neighbor network device is the same link as a link from the neighbor network device to the network device is confirmed.
In combination with a possible implementation manner as this embodiment, the link information includes a device IP, a device port, and a MAC address of the local end, and a device IP, a device port, and a MAC address of the opposite end.
In combination with a possible implementation manner of this embodiment, the specific process of determining whether a link from the network device to the neighbor network device and a link from the neighbor network device to the network device are the same link is as follows:
the link information of the network equipment and the neighbor network equipment is comprehensively compared, if the opposite-end MAC address of the network equipment is the same as the home-end MAC address of the neighbor network equipment and the opposite-end port of the network equipment is the same as the home-end port of the neighbor network equipment, or the home-end MAC address of the network equipment is the same as the opposite-end MAC address of the neighbor network equipment and the home-end port of the network equipment is the same as the opposite-end port of the neighbor network equipment, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the network equipment are confirmed to be the same link and stored in a database, otherwise, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the network equipment are confirmed to be different links.
In combination as a possible implementation manner of this embodiment, the opendataright southbound interface supports one or more of SNMP, REST API, Netconf, and SSH interface protocols.
In combination with a possible implementation manner as this embodiment, both the network device and the neighbor network device have multiple device ports.
On the other hand, the link discovery apparatus based on the opendataright framework provided by the embodiment of the present invention includes a network device, a neighbor network device and a network management platform, where the network device notifies link information to the neighbor network device through an LLDP protocol; the neighbor network equipment informs the network equipment of link information; the network management platform acquires link information of the network equipment and the neighbor network equipment through the Openstyle southbound interface, and confirms whether a link from the network equipment to the neighbor network equipment and a link from the neighbor network equipment to the network equipment are the same link.
In combination with a possible implementation manner as this embodiment, the link information includes a device IP, a device port, and a MAC address of the local end, and a device IP, a device port, and a MAC address of the opposite end.
In combination with a possible implementation manner of this embodiment, the network management platform includes a link determining module, the link judgment module is used for comprehensively comparing the link information of the network equipment and the neighbor network equipment, if the peer MAC address of the network device is the same as the home MAC address of the neighbor network device and the peer port of the network device is the same as the home port of the neighbor network device, or the home MAC address of the network device is the same as the peer MAC address of the neighbor network device and the home port of the network device is the same as the peer port of the neighbor network device, it is confirmed that the link of the network device to the neighbor network device is the same link as the link of the neighbor network device to the network device, and storing the link to the neighbor network device in the database, otherwise, confirming that the link from the network device to the neighbor network device is different from the link from the neighbor network device to the network device.
In combination as a possible implementation manner of this embodiment, the opendataright southbound interface supports one or more of SNMP, REST API, Netconf, and SSH interface protocols.
In combination with a possible implementation manner as this embodiment, the network device and the neighbor network device both have multiple device ports.
The technical scheme of the embodiment of the invention has the following beneficial effects:
the link discovery method based on the Opendayright framework in the technical scheme of the embodiment of the invention comprises the following steps: the network equipment informs the neighbor network equipment of link information through an LLDP protocol; neighbor network equipment informs the network equipment of link information; the network management platform acquires link information of the network equipment and the neighbor network equipment through an Openstyle southbound interface; whether a link from the network device to the neighbor network device is the same link as a link from the neighbor network device to the network device is confirmed. The invention realizes the reading of the link information of the network equipment by adopting the Openstyle southbound interface; the southbound interface not only supports a modularization mode and can be flexibly upgraded and uninstalled, but also supports various southbound interfaces such as SNMP, REST API, NETCONF, SSH and the like. The network management platform adopting the Opendaylight southbound interface has a modular framework, and not only supports the cluster, but also supports hot plug; because the southbound interface supports a plurality of protocols, the southbound interface is not limited to the SNMP protocol when acquiring the link information, and a proper interface can be adopted according to the actual situation of the network equipment, so that the compatibility of the network platform is enhanced.
The link discovery device based on the Opendayright framework comprises network equipment, neighbor network equipment and a network management platform, wherein the network equipment informs the neighbor network equipment of link information through an LLDP protocol; the neighbor network equipment informs the network equipment of link information; the network management platform acquires link information of the network equipment and the neighbor network equipment through the Openstyle southbound interface, and confirms whether a link from the network equipment to the neighbor network equipment and a link from the neighbor network equipment to the network equipment are the same link. The invention realizes the reading of the link information of the network equipment by adopting the Openstyle southbound interface; the southbound interface not only supports a modularization mode and can be flexibly upgraded and uninstalled, but also supports various southbound interfaces such as SNMP, REST API, NETCONF, SSH and the like. The network management platform adopting the Opendaylight southbound interface has a modular framework, and not only supports the cluster, but also supports hot plug; because the southbound interface supports a plurality of protocols, the southbound interface is not limited to the SNMP protocol when acquiring the link information, and a proper interface can be adopted according to the actual situation of the network equipment, so that the compatibility of the network platform is enhanced.
Description of the drawings:
FIG. 1 is a flow diagram illustrating an Opendataright framework-based link discovery method in accordance with an illustrative embodiment;
fig. 2 is a diagram illustrating an opendataright framework-based link discovery apparatus according to an example embodiment.
Detailed Description
The invention is further illustrated by the following examples in conjunction with the accompanying drawings:
in order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
Fig. 1 is a flow diagram illustrating an opendataright framework-based link discovery method in accordance with an illustrative embodiment. As shown in fig. 1, a method for discovering a link based on an opendataright framework provided in an embodiment of the present invention includes the following steps:
the network equipment informs the neighbor network equipment of link information through an LLDP protocol;
neighbor network equipment informs the network equipment of link information;
the network management platform acquires link information of the network equipment and the neighbor network equipment through an Openstyle southbound interface;
and determining whether the link from the network device to the neighbor network device is the same link as the link from the neighbor network device to the network device.
In combination with a possible implementation manner as this embodiment, the link information includes a device IP, a device port, and a MAC address of the local end, and a device IP, a device port, and a MAC address of the opposite end.
In combination with a possible implementation manner of this embodiment, the specific process of determining whether a link from the network device to the neighbor network device and a link from the neighbor network device to the network device are the same link is as follows:
the link information of the network equipment and the neighbor network equipment is comprehensively compared, if the opposite-end MAC address of the network equipment is the same as the home-end MAC address of the neighbor network equipment and the opposite-end port of the network equipment is the same as the home-end port of the neighbor network equipment, or the home-end MAC address of the network equipment is the same as the opposite-end MAC address of the neighbor network equipment and the home-end port of the network equipment is the same as the opposite-end port of the neighbor network equipment, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the network equipment are confirmed to be the same link and stored in a database, otherwise, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the network equipment are confirmed to be different links.
Comparing both MAC addresses and ports when deciding valid links because there can be multiple links between two network devices whose MAC addresses match but ports can match, thus supporting multi-link functionality in automatic link discovery.
In combination as a possible implementation manner of this embodiment, the opendataright southbound interface supports one or more of SNMP, REST API, Netconf, and SSH interface protocols.
In combination with a possible implementation manner as this embodiment, both the network device and the neighbor network device have multiple device ports.
In the embodiment, the opendataright southbound interface is adopted to realize the reading of the link information of the network device; the southbound interface not only supports a modularization mode, can be flexibly upgraded and uninstalled, but also supports various southbound interfaces such as SNMP, REST API, NETCONF, SSH and the like. The network management platform adopting the Opendaylight southbound interface has a modular framework, and not only supports the cluster, but also supports hot plug; because the southbound interface supports a plurality of protocols, the southbound interface is not limited to the SNMP protocol when acquiring the link information, and a proper interface can be adopted according to the actual situation of the network equipment, so that the compatibility of the network platform is enhanced. In practical application, a specific wireless AC device does not support SNMP but supports REST API (representational state transfer) interface, so that a network management platform can effectively read link information and realize integrated display of wired device and wireless device link.
Fig. 2 is a diagram illustrating an opendataright framework-based link discovery apparatus according to an example embodiment. As shown in fig. 2, a link discovery apparatus based on an opendataright framework provided in this embodiment includes a network device, a neighbor network device, and a network management platform, where the network device notifies link information to the neighbor network device through an LLDP protocol; the neighbor network equipment informs the network equipment of link information; the network management platform acquires link information of the network equipment and the neighbor network equipment through the Openstyle southbound interface, and confirms whether a link from the network equipment to the neighbor network equipment and a link from the neighbor network equipment to the network equipment are the same link.
In combination with a possible implementation manner as this embodiment, the link information includes a device IP, a device port, and a MAC address of the local end, and a device IP, a device port, and a MAC address of the opposite end.
In combination with a possible implementation manner of this embodiment, the network management platform includes a link determining module, the link judgment module is used for comprehensively comparing the link information of the network equipment and the neighbor network equipment, if the peer MAC address of the network device is the same as the home MAC address of the neighbor network device and the peer port of the network device is the same as the home port of the neighbor network device, or the home MAC address of the network device is the same as the peer MAC address of the neighbor network device and the home port of the network device is the same as the peer port of the neighbor network device, it is confirmed that the link of the network device to the neighbor network device is the same link as the link of the neighbor network device to the network device, and storing the link to the neighbor network device in the database, otherwise, confirming that the link from the network device to the neighbor network device is different from the link from the neighbor network device to the network device.
In combination as a possible implementation manner of this embodiment, the opendataright southbound interface supports one or more of SNMP, REST API, Netconf, and SSH interface protocols.
In combination with a possible implementation manner as this embodiment, the network device and the neighbor network device both have multiple device ports.
According to the embodiment, the network management platform can realize the automatic generation function of the link through various interfaces such as an SNMP interface, an REST API interface, a Netconf interface and an SSH interface, an enhanced link verification algorithm can be adopted for link information, the robustness is improved, and the multilink function among devices can be effectively supported.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements are also considered to be within the scope of the present invention.

Claims (8)

1. A link discovery method based on an Opendataright framework is characterized by comprising the following steps:
network equipment informs neighbor network equipment of link information;
neighbor network equipment informs the network equipment of link information;
the network management platform acquires link information of the network equipment and the neighbor network equipment through an Openstyle southbound interface;
confirming whether a link from the network equipment to the neighbor network equipment and a link from the neighbor network equipment to the network equipment are the same link or not;
the specific process of determining whether the link from the network device to the neighbor network device and the link from the neighbor network device to the network device are the same link is as follows:
the link information of the network equipment and the neighbor network equipment is comprehensively compared, if the opposite-end MAC address of the network equipment is the same as the home-end MAC address of the neighbor network equipment and the opposite-end port of the network equipment is the same as the home-end port of the neighbor network equipment, or the home-end MAC address of the network equipment is the same as the opposite-end MAC address of the neighbor network equipment and the home-end port of the network equipment is the same as the opposite-end port of the neighbor network equipment, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the network equipment are confirmed to be the same link and stored in a database, otherwise, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the network equipment are confirmed to be different links.
2. The method of claim 1, wherein the link information includes a device IP, a device port, and a MAC address of a local end and a device IP, a device port, and a MAC address of an opposite end.
3. The Opendaight framework-based link discovery method of claim 1, wherein the Opendaight southbound interface supports one or more of SNMP, REST API, Netconf, and SSH interface protocols.
4. The Opendaight framework-based link discovery method according to any one of claims 1-3, wherein the network device and the neighbor network device each have a plurality of device ports.
5. A link discovery device based on an Opendataright framework is characterized by comprising network equipment, neighbor network equipment and a network management platform, wherein the network equipment informs the neighbor network equipment of link information; the neighbor network equipment informs the network equipment of link information; the network management platform acquires link information of the network equipment and the neighbor network equipment through an Openstyle southbound interface, and confirms whether a link from the network equipment to the neighbor network equipment and a link from the neighbor network equipment to the network equipment are the same link;
the network management platform comprises a link judgment module, wherein the link judgment module is used for comprehensively comparing link information of the network equipment and neighbor network equipment, if an opposite-end MAC address of the network equipment is the same as a home-end MAC address of the neighbor network equipment and an opposite-end port of the network equipment is the same as a home-end port of the neighbor network equipment, or the home-end MAC address of the network equipment is the same as the opposite-end MAC address of the neighbor network equipment and the home-end port of the network equipment is the same as the opposite-end port of the neighbor network equipment, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the neighbor network equipment are confirmed to be the same link and stored in a database, otherwise, the link from the network equipment to the neighbor network equipment and the link from the neighbor network equipment to the network equipment are confirmed to be different links.
6. The Opendayright framework-based link discovery apparatus according to claim 5, wherein the link information includes a device IP, a device port, and a MAC address of a local end and a device IP, a device port, and a MAC address of an opposite end.
7. The OpenDAYLight framework-based link discovery device of claim 6, wherein the OpenDAYLight southbound interface supports one or more of SNMP, REST API, Netconf and SSH interface protocols.
8. The opendataright framework-based link discovery apparatus according to any one of claims 6-7, wherein each of the network device and the neighboring network device has multiple device ports.
CN201910519330.4A 2019-06-14 2019-06-14 Link discovery method and device based on Opendataright framework Active CN110266530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910519330.4A CN110266530B (en) 2019-06-14 2019-06-14 Link discovery method and device based on Opendataright framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910519330.4A CN110266530B (en) 2019-06-14 2019-06-14 Link discovery method and device based on Opendataright framework

Publications (2)

Publication Number Publication Date
CN110266530A CN110266530A (en) 2019-09-20
CN110266530B true CN110266530B (en) 2022-05-27

Family

ID=67918541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910519330.4A Active CN110266530B (en) 2019-06-14 2019-06-14 Link discovery method and device based on Opendataright framework

Country Status (1)

Country Link
CN (1) CN110266530B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918306B (en) * 2020-07-28 2022-03-11 烽火通信科技股份有限公司 Method and system for realizing network element communication under IP unreachable scene

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143018A (en) * 2010-12-07 2011-08-03 华为技术有限公司 Message loop detection method, routing agent equipment and networking system
CN102437932A (en) * 2011-12-30 2012-05-02 华为技术有限公司 Method, device and system for managing link status information of low-speed link
CN103236941A (en) * 2013-04-03 2013-08-07 华为技术有限公司 Link discovery method and device
CN103269277A (en) * 2013-04-22 2013-08-28 华为技术有限公司 Method and system for finding link, first network element and network management equipment
CN103782553A (en) * 2013-09-03 2014-05-07 华为技术有限公司 Link discovery method, SDN controller and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143018A (en) * 2010-12-07 2011-08-03 华为技术有限公司 Message loop detection method, routing agent equipment and networking system
CN102437932A (en) * 2011-12-30 2012-05-02 华为技术有限公司 Method, device and system for managing link status information of low-speed link
CN103236941A (en) * 2013-04-03 2013-08-07 华为技术有限公司 Link discovery method and device
CN103269277A (en) * 2013-04-22 2013-08-28 华为技术有限公司 Method and system for finding link, first network element and network management equipment
CN103782553A (en) * 2013-09-03 2014-05-07 华为技术有限公司 Link discovery method, SDN controller and device

Also Published As

Publication number Publication date
CN110266530A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
EP2055116B1 (en) Obtaining per-port location information for wired lan switches
CN105024855B (en) Distributed type assemblies manage system and method
CN102291320B (en) MAC (media access control) address learning method and edge device
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
CN101552697B (en) Network access apparatus upgrade system and network access apparatus upgrade method
EP3024175A1 (en) Method and system for remote management of network devices
CN109039788B (en) Port configuration method and device of network equipment and storage medium
CN113572645B (en) Method, device, storage medium and processor for generating network topology
WO2013185731A2 (en) Method and system for managing ipv6 address conflict automatically
CN106658554A (en) Method and device for activating base station
CN104168160A (en) Method and device for testing compatibility of server
CN113612658A (en) Broadband network equipment test system and test method
CN113037737B (en) Method for external network card application of user terminal equipment
CN103138978A (en) Network management method and network management system
CN107911764B (en) Method for accelerating business management of intensive EPON ONU
CN110266530B (en) Link discovery method and device based on Opendataright framework
CN111404801A (en) Data processing method, device and system for cross-cloud manufacturer
JP7119174B2 (en) Network topology discovery method, network topology discovery device and network topology discovery system
EP3763085A1 (en) Computing device and method for generating a fabric-wide ipv6 address
CN100550818C (en) A kind of data reconstruction method, device, storage server and Dynamic Host Configuration Protocol server
JP2010068152A (en) System and method for network topology estimation and recording medium
CN101207607B (en) Method for supporting Cable Modem double certificate
JP4527650B2 (en) Physical wiring control device, physical wiring control method, and physical wiring control program
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
US9015280B2 (en) Communication terminal, address resolution server, and computer program

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