CN108900362B - Cloud network access layer physical link topology generation method and device - Google Patents

Cloud network access layer physical link topology generation method and device Download PDF

Info

Publication number
CN108900362B
CN108900362B CN201810916112.XA CN201810916112A CN108900362B CN 108900362 B CN108900362 B CN 108900362B CN 201810916112 A CN201810916112 A CN 201810916112A CN 108900362 B CN108900362 B CN 108900362B
Authority
CN
China
Prior art keywords
lldp
service
information
cloud
information set
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
CN201810916112.XA
Other languages
Chinese (zh)
Other versions
CN108900362A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810916112.XA priority Critical patent/CN108900362B/en
Publication of CN108900362A publication Critical patent/CN108900362A/en
Application granted granted Critical
Publication of CN108900362B publication Critical patent/CN108900362B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • 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

Abstract

The invention discloses a method and a device for generating a physical link topology of a cloud network access layer. The method comprises the following steps: acquiring an LLDP announcement information set announced by a switch by adopting a Link Layer Discovery Protocol (LLDP) waiting service of a network card networked with a cloud host in a cloud network, and caching the LLDP announcement information set; acquiring a cached LLDP notification information set by adopting an LLDPTOOL tool of a cloud host to obtain LLDP information required for constructing a topology and storing the required LLDP information in a database; and outputting the required LLDP information to the monitoring equipment of the cloud network where the cloud host is located, so that the monitoring equipment combines the physical network card information to form access layer physical link topology information. The LLDP waiting service is used for acquiring the LLDP announcement information set announced by the switch, obtaining the LLDP information required for constructing the topology, and outputting the required LLDP information to the monitoring equipment, so that the information can be provided for constructing the topology information of the physical equipment of the complete access layer of the cloud network.

Description

Cloud network access layer physical link topology generation method and device
Technical Field
The invention relates to a cloud computing technology, in particular to a method and a device for generating a physical link topology of a cloud network access layer.
Background
The application of current cloud computing is more and more extensive, and is more and more important in accelerating enterprise digital transformation, but, breaks down in the production environment, when needing operation and maintenance management, can not effectively fix a position access layer physical network equipment and configuration attribute information of cloud host computer fast. In public cloud, private cloud or mixed cloud, it is very important to maintain and construct a global overall network topology, and the network topology shows the connection of cloud computing elements such as virtual switches, virtual machines, containers and virtual network elements in an intuitive graph form, but does not relate to a cloud host access layer physical network supporting the operation of the cloud computing elements. However, for the management, operation and maintenance of the cloud network, the access layer problem is the first to easily occur. Therefore, it is very inconvenient for the management, operation and maintenance of the cloud network that the network information of the access layer is not shown in a unified network view in the network topology.
Disclosure of Invention
In order to solve the technical problem, the invention provides a cloud network access layer physical link topology generation method and a cloud network access layer physical link topology generation device, which can provide information for constructing topology information of complete access layer physical equipment of a cloud network.
In order to achieve the object of the present invention, an embodiment of the present invention provides a cloud network access layer physical link topology generation method, where the method includes:
acquiring an LLDP announcement information set announced by a switch by adopting a Link Layer Discovery Protocol (LLDP) waiting service of a network card networked with a cloud host in a cloud network, and caching the LLDP announcement information set;
acquiring a cached LLDP notification information set by adopting an LLDPTOOL tool of a cloud host to obtain LLDP information required for constructing a topology and storing the required LLDP information in a database;
and outputting the required LLDP information to the monitoring equipment of the cloud network where the cloud host is located, so that the monitoring equipment combines the physical network card information to form access layer physical link topology information.
Further, in an optional embodiment, before the step of acquiring the set of LLDP advertisement information advertised by the switch by using an LLDP waiting service of a network card networked with the cloud host, the method further includes:
defining an LLDP advertisement information set such that the LLDP advertisement information set includes required LLDP information;
the ICENET SERVICE service of the cloud host is associated with the LLDPAD SERVICE service of the network card of the cloud host network, so that the network card is controlled to start LLDPAD SERVICE service through the ICENET SERVICE service, and the LLDP waiting service is executed.
Further, in an optional embodiment, before the step of obtaining the cached LLDP advertisement information set by using the LLDPTOOL of the cloud host, the method further includes:
the lldptol service is configured such that the lldptol service and the LLDPAD SERVICE service communicate over the internal UNIX SOCKET of the cloud host.
Further, in an optional embodiment, the required LLDP information includes a sessions ID TLV, a Port Description TLV, a System Name TLV, and a System Description TLV.
In another aspect, an embodiment of the present invention provides a cloud network access layer physical link topology generating device, where the device includes: the device comprises an announcement information set acquisition module, an LLDP information acquisition module and an LLDP information output module; wherein the content of the first and second substances,
the notification information set acquisition module is used for acquiring an LLDP notification information set announced by the switch by adopting a Link Layer Discovery Protocol (LLDP) waiting service of a network card networked with a cloud host in the cloud network and caching the LLDP notification information set;
the LLDP information acquisition module is used for acquiring the cached LLDP notification information set by adopting an LLDPTOOL tool of the cloud host so as to obtain the LLDP information required by topology construction from the LLDP notification information set, and storing the required LLDP information in a database;
the LLDP information output module is used for outputting required LLDP information to monitoring equipment of a cloud network where the cloud host is located, so that the monitoring equipment combines physical network card information to form access layer physical link topology information.
Further, in an optional embodiment, the apparatus further includes a definition module, the definition module is configured to: before the notification information set acquisition module acquires the LLDP notification information set advertised by the switch by adopting an LLDP waiting service of a network card networked with the cloud host, defining the LLDP notification information set so that the LLDP notification information set comprises required LLDP information; the ICENET SERVICE service of the cloud host is associated with the LLDPAD SERVICE service of the network card of the cloud host network, so that the network card is controlled to start LLDPAD SERVICE service through the ICENET SERVICE service, and the LLDP waiting service is executed.
Further, in an optional embodiment, the apparatus further comprises a configuration module, configured to: before the LLDP information obtaining module obtains the cached LLDP advertisement information set by using the lldptol tool of the cloud host, the lldptol service is configured, so that the lldptol service and the LLDPAD SERVICE service communicate through the internal UNIX SOCKET of the cloud host.
Further, in an optional embodiment, the required LLDP information includes a sessions ID TLV, a Port Description TLV, a System Name TLV, and a System Description TLV.
The beneficial effects of the embodiment of the invention are that the LLDP waiting service is used for acquiring the LLDP announcement information set announced by the switch, obtaining the LLDP information required by topology construction, and outputting the required LLDP information to the monitoring equipment, thereby providing information for constructing topology information of the physical equipment of the complete access layer of the cloud network.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a cloud network access layer physical link topology generation method according to an embodiment of the present invention;
fig. 2 is a block diagram of a cloud network access layer physical link topology generation apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In one aspect, an embodiment of the present invention provides a cloud network access stratum physical link topology generation method, as shown in fig. 1, the method includes steps S103 to S107.
Step S103, acquiring an LLDP advertisement information set advertised by the switch by using an LLDP waiting service of a network card networked with the cloud host in the cloud network, and caching the LLDP advertisement information set.
Here, the switch includes an access layer switch or a leaf switch (leaf switch). The access layer switch or the leaf switch enables an LLDP protocol, and the fact that the network card of the cloud host in the open state can receive the LLDP information is guaranteed. LLDP (Link Layer Discovery Protocol, ieee802.1ab) is a proximity Discovery Protocol. It defines a standard method for ethernet network devices (e.g., switches, routers, and wireless lan access points) to advertise their presence to other nodes in the network and to maintain discovery information for each neighboring device. Detailed information such as device configuration and device identification may be advertised using the protocol. In particular, LLDP defines a general advertisement information set, a protocol for transmitting advertisements and a method for storing received advertisement information. The device to advertise itself can transmit multiple pieces of advertisement information in a local area network packet, where the transmission is in the form of Type Length Value (TLV) field. The server can determine the port of the switch connected with the server through the LLDP after the LLDP is installed on the server, and the switch can also confirm the server connected with the port through the LLDP, and can quickly locate the connection relation between the server and the switch when the connection of the server and the switch is complex.
Step S105, acquiring the cached LLDP advertisement information set by using the LLDPTOOL of the cloud host to obtain LLDP information required for constructing the topology, and storing the required LLDP information in the database.
The LLDP information includes various information according to the transmission requirement, and in order to construct the topology, the LLDP information required for constructing the topology needs to be acquired from the LLDP information.
Step S107, outputting the required LLDP information to the monitoring equipment of the cloud network where the cloud host is located, so that the monitoring equipment combines the physical network card information to form access layer physical link topology information.
The physical network card information is obtained by the monitoring equipment from each cloud host.
And outputting required LLDP information to monitoring equipment of a cloud network where the cloud host is located through an LLDP API module of the cloud host, so that the monitoring equipment combines physical network card information to form access layer physical link topology information. The monitoring device can adopt a Web UI plug-in to draw a topological graph of the access layer physical link based on the access layer physical link topological information for displaying.
The beneficial effects of the embodiment of the invention are that the LLDP waiting service is used for acquiring the LLDP announcement information set announced by the switch, obtaining the LLDP information required by topology construction, and outputting the required LLDP information to the monitoring equipment, thereby providing information for constructing topology information of the physical equipment of the complete access layer of the cloud network.
Further, in an optional embodiment, before step S103, the method further includes:
defining an LLDP advertisement information set such that the LLDP information includes required LLDP information;
the ICENET SERVICE service of the cloud host is associated with the LLDPAD SERVICE service of the network card of the cloud host network, so that the network card is controlled to start LLDPAD SERVICE service through the ICENET SERVICE service, and the LLDP waiting service is executed.
Further, in an optional embodiment, before step S105, the method further includes:
the lldptol service is configured such that the lldptol service and the LLDPAD SERVICE service communicate over the internal UNIX SOCKET of the cloud host.
Here, in order to ensure that lldptol service and LLDPAD service communicate normally, lldptol service is configured in Security-Enhanced Linux (SELinux for short) of the cloud host, where SELinux is a Linux kernel module and is also a Security subsystem of Linux, so that lldptol service and LLDPAD SERVICE service communicate through UNIX SOCKET inside the cloud host.
Further, in an optional embodiment, the required LLDP information includes a chatsis ID TLV (Type/Length/Value), a Port ID TLV, a Port Description TLV, a System Name TLV, and a System Description TLV.
On the other hand, an embodiment of the present invention provides a cloud network access layer physical link topology generating device, as shown in fig. 2, the device includes: an announcement information set acquisition module 203, an LLDP information acquisition module 205, and an LLDP information output module 207.
The notification information set acquisition module 203 is configured to acquire an LLDP notification information set advertised by a switch by using an LLDP waiting service of a network card networked with a cloud host in a cloud network, and cache the LLDP notification information set.
The LLDP information obtaining module 205 is configured to obtain the cached LLDP advertisement information set by using an LLDPTOOL of the cloud host, to obtain therefrom LLDP information required for constructing the topology, and store the required LLDP information in the database.
The LLDP information output module 207 is configured to output required LLDP information to a monitoring device of a cloud network where the cloud host is located, so that the monitoring device combines physical network card information to combine into access layer physical link topology information.
The beneficial effects of the embodiment of the invention are that the LLDP waiting service is used for acquiring the LLDP announcement information set announced by the switch, obtaining the LLDP information required by topology construction, and outputting the required LLDP information to the monitoring equipment, thereby providing information for constructing topology information of the physical equipment of the complete access layer of the cloud network.
Further, in an optional embodiment, the apparatus further includes a definition module, and the definition module is configured to: before the notification information set acquisition module 203 acquires the LLDP notification information set advertised by the switch by using the LLDP waiting service of the network card networked with the cloud host, defining the LLDP notification information set so that the LLDP notification information set includes the required LLDP information; the ICENET SERVICE service of the cloud host is associated with the LLDPAD SERVICE service of the network card of the cloud host network, so that the network card is controlled to start LLDPAD SERVICE service through the ICENET SERVICE service, and the LLDP waiting service is executed.
Further, in an optional embodiment, the apparatus further includes a configuration module, where the configuration module is configured to: before the LLDP information obtaining module 205 obtains the cached LLDP advertisement information set by using the lldptol tool of the cloud host, the lldptol service is configured so that the lldptol service and the LLDPAD SERVICE service communicate through the internal UNIX SOCKET of the cloud host.
Further, in an optional embodiment, the required LLDP information includes a sessions ID TLV, a Port Description TLV, a System Name TLV, and a System Description TLV.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (6)

1. A cloud network access layer physical link topology generation method is characterized by comprising the following steps:
acquiring an LLDP announcement information set announced by a switch by adopting an LLDP waiting service of a Link Layer Discovery Protocol (LLDP) of a network card networked with a cloud host in a cloud network, and caching the LLDP announcement information set, wherein the LLDP waiting service is a service for acquiring the LLDP announcement information set announced by the switch;
acquiring a cached LLDP notification information set by adopting an LLDPTOOL tool of a cloud host to obtain LLDP information required for constructing a topology, and storing the required LLDP information in a database;
outputting the required LLDP information to monitoring equipment of a cloud network where the cloud host is located, so that the monitoring equipment combines physical network card information to form access layer physical link topology information;
before the step of acquiring the set of LLDP advertisement information advertised by the switch using the LLDP waiting service of the network card networked with the cloud host, the method further includes:
defining an LLDP advertisement information set such that the LLDP advertisement information set includes required LLDP information;
associating ICENET SERVICE service of a cloud host with LLDPAD SERVICE service of a network card of the cloud host network, controlling the network card to start LLDPAD SERVICE service through the ICENET SERVICE service, and executing LLDP waiting service; the ICENET SERVICE service is a service for controlling the network card to start LLDPAD SERVICE service, and the LLDPAD SERVICE service is a service for executing LLDP waiting service.
2. The method of claim 1, wherein prior to the step of obtaining the cached set of LLDP advertisement information using the LLDPTOOL of the cloud host, the method further comprises:
configuring LLDPTOOL service such that the LLDPTOOL service communicates with the LLDPAD SERVICE service over the cloud host's internal UNIX SOCKET.
3. The method of claim 1, wherein the required LLDP information comprises a chatsis ID TLV, a Port Description TLV, a System Name TLV, and a System Description TLV.
4. An apparatus for generating a physical link topology of a cloud network access layer, comprising: the device comprises an announcement information set acquisition module, an LLDP information acquisition module and an LLDP information output module; wherein the content of the first and second substances,
the notification information set acquisition module is used for acquiring an LLDP notification information set announced by a switch by adopting an LLDP waiting service of a Link Layer Discovery Protocol (LLDP) of a network card networked with a cloud host in a cloud network, and caching the LLDP notification information set, wherein the LLDP waiting service is used for acquiring the LLDP notification information set announced by the switch;
the LLDP information obtaining module is configured to obtain a cached LLDP advertisement information set by using an LLDPTOOL of a cloud host, to obtain LLDP information required for constructing a topology from the LLDP advertisement information set, and store the required LLDP information in a database;
the LLDP information output module is used for outputting the required LLDP information to monitoring equipment of a cloud network where the cloud host is located, so that the monitoring equipment combines physical network card information to form access layer physical link topology information;
the apparatus further comprises a definition module to: before the notification information set acquisition module acquires the LLDP notification information set advertised by the switch by adopting an LLDP waiting service of a network card networked with the cloud host, defining the LLDP notification information set so that the LLDP notification information set comprises required LLDP information; associating ICENET SERVICE service of a cloud host with LLDPAD SERVICE service of a network card of the cloud host network, controlling the network card to start LLDPAD SERVICE service through the ICENET SERVICE service, and executing LLDP waiting service; the ICENET SERVICE service is a service for controlling the network card to start LLDPAD SERVICE service, and the LLDPAD SERVICE service is a service for executing LLDP waiting service.
5. The apparatus of claim 4, further comprising a configuration module to: before the LLDP information obtaining module obtains the cached LLDP advertisement information set by using an lldptol tool of the cloud host, configuring an lldptol service, so that the lldptol service and the LLDPAD SERVICE service communicate through an internal UNIX SOCKET of the cloud host.
6. The apparatus of claim 4, wherein the required LLDP information comprises a chatsis ID TLV, a Port Description TLV, a System Name TLV, and a System Description TLV.
CN201810916112.XA 2018-08-13 2018-08-13 Cloud network access layer physical link topology generation method and device Active CN108900362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810916112.XA CN108900362B (en) 2018-08-13 2018-08-13 Cloud network access layer physical link topology generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810916112.XA CN108900362B (en) 2018-08-13 2018-08-13 Cloud network access layer physical link topology generation method and device

Publications (2)

Publication Number Publication Date
CN108900362A CN108900362A (en) 2018-11-27
CN108900362B true CN108900362B (en) 2021-07-30

Family

ID=64353888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810916112.XA Active CN108900362B (en) 2018-08-13 2018-08-13 Cloud network access layer physical link topology generation method and device

Country Status (1)

Country Link
CN (1) CN108900362B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364628A (en) * 2021-06-11 2021-09-07 上海中通吉网络技术有限公司 Method and equipment for establishing topological relation between server and switch

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580923A (en) * 2013-11-08 2014-02-12 华为技术有限公司 Software deploying method and device
WO2014090280A1 (en) * 2012-12-10 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) A method for automatically detecting physical connections of ethernet bridges connected to a root bridge
CN106161077A (en) * 2015-04-24 2016-11-23 中兴通讯股份有限公司 Cut-in convergent device and certification register method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014090280A1 (en) * 2012-12-10 2014-06-19 Telefonaktiebolaget L M Ericsson (Publ) A method for automatically detecting physical connections of ethernet bridges connected to a root bridge
CN103580923A (en) * 2013-11-08 2014-02-12 华为技术有限公司 Software deploying method and device
CN106161077A (en) * 2015-04-24 2016-11-23 中兴通讯股份有限公司 Cut-in convergent device and certification register method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Efficient topology discovery algorithm for software-defined networks》;George Tarnaras等;《IET Networks》;20171231;全文 *
《基于LLDP协议的OLT设备拓扑发现研究》;崔太祥 等;《光通信技术》;20151115;全文 *
《基于链路层发现协议(LLDP)的物理网络拓扑发现》;曾干;《电脑知识与技术》;20060715;第2-3节 *

Also Published As

Publication number Publication date
CN108900362A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
US10270648B2 (en) Configuration information management method, device, network element management system and storage medium
CN107733670B (en) Forwarding strategy configuration method and device
CN102387061B (en) Method, device and system for accessing VPC (virtual private cloud) to VPN (virtual private network)
CN112511660B (en) Management system, method and device of edge terminal equipment and storage medium
CN109639536A (en) A kind of method, system, equipment and the medium of intelligent wireless device parameter extraction
US10666512B2 (en) Current configuration state specific device configuration
CN113037771B (en) Method and device for controlling device shadow, storage medium and electronic device
CN103905251A (en) Network topology obtaining method and device
US9094316B2 (en) Dynamic name generation
CN105659689A (en) Method and system for dual role handling in a wireless environment
CN104168140A (en) VTEP abnormal condition processing method and device
CN104065514A (en) Home network management method based on network configuration protocol (NETCONF) relay
CN104243198B (en) A kind of network management and system based on network configuration protocol
CN107911764B (en) Method for accelerating business management of intensive EPON ONU
CN108900362B (en) Cloud network access layer physical link topology generation method and device
CN111866916B (en) Service configuration method, equipment and server
CN101119275B (en) Method, equipment and system for service provider equipment to obtain information
CN106100910B (en) A kind of methods, devices and systems for realizing power fail warning
CN104486443A (en) Message pushing system and method
CN105191231B (en) Gateway apparatus
CN105306417A (en) Network data distribution method based on super router and network system
CN112217649A (en) Terminal device management method, server and terminal device
CN102801618B (en) A kind of method and device determining three layer data paths in ethernet ring network
JP2009206731A (en) Monitoring system, monitoring device, monitoring method, and program
CN104579967A (en) Transmission path control equipment

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