CN107465622A - A kind of method and system that discovering network topology is realized using LLDP - Google Patents

A kind of method and system that discovering network topology is realized using LLDP Download PDF

Info

Publication number
CN107465622A
CN107465622A CN201710930195.3A CN201710930195A CN107465622A CN 107465622 A CN107465622 A CN 107465622A CN 201710930195 A CN201710930195 A CN 201710930195A CN 107465622 A CN107465622 A CN 107465622A
Authority
CN
China
Prior art keywords
lldp
port
topological
tlv
network topology
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
CN201710930195.3A
Other languages
Chinese (zh)
Other versions
CN107465622B (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.)
Anhui Province Postal Communication Electricity Ltd Co
Original Assignee
Anhui Province Postal Communication Electricity Ltd Co
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 Anhui Province Postal Communication Electricity Ltd Co filed Critical Anhui Province Postal Communication Electricity Ltd Co
Priority to CN201710930195.3A priority Critical patent/CN107465622B/en
Publication of CN107465622A publication Critical patent/CN107465622A/en
Application granted granted Critical
Publication of CN107465622B publication Critical patent/CN107465622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

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

Abstract

The invention discloses a kind of method and system that discovering network topology is realized using LLDP, the LLDP for setting port is aggressive mode or Passive Mode, and judge whether the LLDP of sending port is aggressive mode, if sending port is aggressive mode, then platform sends the LLDP messages with topological TLV, receiving port judges whether the LLDP that receives carries topological TLV fields, if that receiving port receives is the LLDP for not carrying topological TLV fields, on send LLDP messages to platform processes;That if receiving port receives is the LLDP for carrying topological TLV fields, then judge in topological TLV fields whether the included port information of oneself, if including the port information of oneself in topological TLV fields, ignore and abandon the LLDP messages;Compared with existing LLDP, newly-increased topological TLV fields can be recorded effectively all of the port information on path is all orderly, so as to can effectively supervise whole network topology from Centroid, and can upgrade in time and record change in topology.

Description

A kind of method and system that discovering network topology is realized using LLDP
Technical field
The present invention relates to a kind of method and system for realizing discovering network topology, is specially that one kind realizes network using LLDP The method and system of Topology Discovery.
Background technology
At present, the species of the network equipment it is increasingly various and it is respective configuration it is intricate, in order that the equipment of different vendor It can mutually find in a network and the respective system of interaction and configuration information are, it is necessary to there is the information intercourse platform of a standard.
LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) is exactly in this context It is caused, it provide a kind of standard link layer find mode, can by the unique ability of local device, management IP, set The information such as standby mark, interface identifier are organized into different TLV (Type/Length/Value, type/length/value), and are encapsulated in Issued in LLDPDU (Link Layer Discovery Protocol Data Unit, Link Layer Discovery Protocol data cell) Give oneself direct-connected neighbour, neighbours are received it after these information with standard mib (Management Information Base, management information bank) form save, so that the communication conditions of link are inquired about and judged to NMS.
In brief, LLDP is a kind of neighbouring discovery agreement.It is ethernet network device, as interchanger, router and Wireless local network connecting point defines a kind of method of standard, its other node into network is announced the presence of itself, And preserve the discovery information of each nearby device.Such as the details such as device configuration and equipment identification can be entered with the agreement Row bulletin.
Specifically, LLDP defines a general notice information collection, the agreement that a transmission is announced and one kind and is used for depositing The method of the received notice information of storage.A plurality of notice information can be placed on one LAN by announcing the equipment of self information Transmitted in packet, the form of transmission is type lengths values (TLV) domain.
Transmission mechanism
Device port periodically can send LLDP messages to neighbor device.If being locally configured and change of equipment LLDP messages are sent immediately, and the situation of change of local information is notified to neighbor device as early as possible.But in order to prevent local information Frequent change and cause a large amount of transmissions of LLDP messages, often send a LLDP message after all need postpone a period of time after followed by Supervention send next message.
Reception mechanism
Device port can carry out validity check to the LLDP messages and its TLV of carrying received, by again will after inspection Neighbor information is saved in local, and sets neighbor information according to the value of TTL in TTL (Time To Live, life span) TLV Ageing time on the local device, if the value is zero, the neighbor information of aging at once.
Current LLDP can realize that the port links of neighbouring device are found, but realize whole network currently without correlation technique The port links of topology find, as shown in Fig. 2 equipment R1 can not discovering device R2 and equipment R3 link port information.
The content of the invention
The present invention provides a kind of method and system that discovering network topology is realized using LLDP, can effectively solve background skill The problem of in art.
In order to solve the above-mentioned technical problem, the invention provides following technical scheme:
A kind of method and system that discovering network topology is realized using LLDP of the present invention, is comprised the following steps:
The first step, the LLDP for setting port are aggressive mode or Passive Mode, and judge sending port LLDP whether be Aggressive mode.
As a preferred technical solution of the present invention, second step, if sending port is aggressive mode, platform sends band There are a topological TLV LLDP messages, topological TLV belongs to port information list collection, and a list includes a port information, one Port information includes port mac, management IP, device identification, interface identifier;If sending port is not aggressive mode, platform hair Send the general LLDP messages without topological TLV.
As a preferred technical solution of the present invention, the 3rd step, whether the LLDP that receiving port judges to receive, which carries, is opened up Flutter TLV fields.
As a preferred technical solution of the present invention, the 4th step, if what receiving port received is not carry topological TLV words Section LLDP, then on send LLDP messages to platform processes;If that receiving port receives is the LLDP for carrying topological TLV fields, Judge again in topological TLV fields whether the included port information of oneself.
As a preferred technical solution of the present invention, the 5th step, if believing in topological TLV fields comprising the port of oneself Breath, then ignore and abandon the LLDP messages;If not including the port information of oneself in topological TLV fields, then judge receiving terminal Whether mouth is Passive Mode.
As a preferred technical solution of the present invention, the 6th step, if receiving port is not Passive Mode, on send LLDP Packet platform processing;If receiving port is Passive Mode, in topological TLV increase receiving port information, and on send portion LLDP messages are to platform processes, while the message that floods is to other Passive Mode ports.
As a preferred technical solution of the present invention, the 7th step, when the port that floods sends LLDP messages, sending port Orderly information is added to the port information list concentration for extending topological TLV.
As a preferred technical solution of the present invention, the 8th step, when next receiving port receives LLDP messages, then Repeat the flow of the 3rd step to the 7th step.
The beneficial effect that is reached of the present invention is:Compared with existing LLDP, newly-increased topological TLV fields can effective handle All of the port information is all orderly on path records, and is opened up so as to can effectively supervise whole network from Centroid Flutter, and can upgrade in time and record change in topology.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart for the method and system that discovering network topology is realized using LLDP of the present invention;
Fig. 2 is a kind of introduction of the usage scenario for the method and system that discovering network topology is realized using LLDP of the present invention Figure;
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Embodiment:As shown in Figure 1-2, a kind of method and system that discovering network topology is realized using LLDP of the present invention, bag Include following steps:
The first step, the LLDP for setting port are aggressive mode or Passive Mode, and judge sending port LLDP whether be Aggressive mode.
Second step, if sending port is aggressive mode, platform sends the LLDP messages with topological TLV, topological TLV category In port information list collection, a list includes a port information, and a port information includes port mac, management IP, set Standby mark, interface identifier;If sending port is not aggressive mode, platform sends the general LLDP messages without topological TLV.
3rd step, receiving port judge whether the LLDP received carries topological TLV fields.
4th step, if that receiving port receives is the LLDP for not carrying topological TLV fields, on send LLDP messages to platform Processing;That if receiving port receives is the LLDP for carrying topological TLV fields, then judges whether wrapped in topological TLV fields Containing the port information of oneself.
5th step, if including the port information of oneself in topological TLV fields, ignore and abandon the LLDP messages;If open up Flutter and do not include the port information of oneself in TLV fields, then judge whether receiving port is Passive Mode again.
6th step, if receiving port is not Passive Mode, on send LLDP packet platforms handle;If receiving port is passive Pattern, then increase receiving port information in topological TLV, and on send a LLDP messages to platform processes, while the report that floods Text arrives other Passive Mode ports.
7th step, when the port that floods sends LLDP messages, sending port orderly information is added to the end for extending topological TLV Mouth information list is concentrated.
8th step, when next receiving port receives LLDP messages, repeat the flow of the 3rd step to the 7th step.
This kind realizes the method and system of discovering network topology using LLDP, compared with existing LLDP, newly-increased topological TLV Field can be recorded effectively all of the port information on path is all orderly, so as to can be effective from Centroid Whole network topology is supervised, and can upgrade in time and record change in topology.
Finally it should be noted that:The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, Although the present invention is described in detail with reference to the foregoing embodiments, for those skilled in the art, it still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic. Within the spirit and principles of the invention, any modification, equivalent substitution and improvements made etc., it should be included in the present invention's Within protection domain.

Claims (8)

1. a kind of method and system that discovering network topology is realized using LLDP, it is characterised in that comprise the following steps:
The first step, the LLDP for setting port is aggressive mode or Passive Mode, and judges whether the LLDP of sending port is actively Pattern.
A kind of 2. method and system that discovering network topology is realized using LLDP according to claim 1, it is characterised in that Second step, if sending port is aggressive mode, platform sends the LLDP messages with topological TLV, and topological TLV belongs to port letter Cease list collection, a list includes a port information, a port information include port mac, manage IP, device identification, Interface identifier;If sending port is not aggressive mode, platform sends the general LLDP messages without topological TLV.
A kind of 3. method and system that discovering network topology is realized using LLDP according to claim 2, it is characterised in that 3rd step, receiving port judge whether the LLDP received carries topological TLV fields.
A kind of 4. method and system that discovering network topology is realized using LLDP according to claim 3, it is characterised in that 4th step, if that receiving port receives is the LLDP for not carrying topological TLV fields, on send LLDP messages to platform processes;If That receiving port receives is the LLDP for carrying topological TLV fields, then judge again in topological TLV fields whether it is included oneself Port information.
A kind of 5. method and system that discovering network topology is realized using LLDP according to claim 4, it is characterised in that 5th step, if including the port information of oneself in topological TLV fields, ignore and abandon the LLDP messages;If topological TLV fields In do not include the port information of oneself, then judge whether receiving port is Passive Mode again.
A kind of 6. method and system that discovering network topology is realized using LLDP according to claim 5, it is characterised in that 6th step, if receiving port is not Passive Mode, on send LLDP packet platforms handle;If receiving port is Passive Mode, Increase receiving port information in topological TLV, and on send a LLDP messages to platform processes, while the message that floods arrives other Passive Mode port.
A kind of 7. method and system that discovering network topology is realized using LLDP according to claim 6, it is characterised in that 7th step, when the port that floods sends LLDP messages, sending port orderly information is added to the port information row for extending topological TLV Table is concentrated.
A kind of 8. method and system that discovering network topology is realized using LLDP according to claim 7, it is characterised in that 8th step, when next receiving port receives LLDP messages, repeat the flow of the 3rd step to the 7th step.
CN201710930195.3A 2017-10-09 2017-10-09 Method for realizing network topology discovery by utilizing LLDP Active CN107465622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710930195.3A CN107465622B (en) 2017-10-09 2017-10-09 Method for realizing network topology discovery by utilizing LLDP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710930195.3A CN107465622B (en) 2017-10-09 2017-10-09 Method for realizing network topology discovery by utilizing LLDP

Publications (2)

Publication Number Publication Date
CN107465622A true CN107465622A (en) 2017-12-12
CN107465622B CN107465622B (en) 2020-05-12

Family

ID=60554245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710930195.3A Active CN107465622B (en) 2017-10-09 2017-10-09 Method for realizing network topology discovery by utilizing LLDP

Country Status (1)

Country Link
CN (1) CN107465622B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616453A (en) * 2018-04-20 2018-10-02 联想(北京)有限公司 A kind of methods, devices and systems for the network equipment
CN108809767A (en) * 2018-06-28 2018-11-13 新华三技术有限公司 MAC Address processing method, equipment and cascading networking system
CN110061936A (en) * 2018-01-19 2019-07-26 美超微电脑股份有限公司 Automatic multiple cases link aggregation configuration
CN110401568A (en) * 2019-07-31 2019-11-01 普联技术有限公司 A kind of method for discovering network topology and equipment
CN112532462A (en) * 2020-12-17 2021-03-19 安徽皖通邮电股份有限公司 Method for discovering information of OTN link of packet enhanced OTN equipment
CN116032770A (en) * 2022-12-28 2023-04-28 天翼云科技有限公司 LLDP-based topology link discovery method

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756189A (en) * 2004-09-30 2006-04-05 北京航空航天大学 IP network topology discovering method based on SNMP
CN101345655A (en) * 2008-08-15 2009-01-14 中兴通讯股份有限公司 Method for discovering protocol and acquiring network connection information by utilization of link layer
CN101383772A (en) * 2008-09-26 2009-03-11 中兴通讯股份有限公司 Method and device for automatically discovering and establishing MAC route information table
CN101621414A (en) * 2009-08-21 2010-01-06 杭州华三通信技术有限公司 Method and apparatus for discovering network resource and topology
CN102821009A (en) * 2012-08-08 2012-12-12 中兴通讯股份有限公司 Method for monitoring ring network on basis of link layer discovery protocol and device
CN102946327A (en) * 2012-11-30 2013-02-27 深圳市磊科实业有限公司 Topology generation method of switchboard management system
CN104283802A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Neighbor discovery method and device
CN104604193A (en) * 2012-08-17 2015-05-06 思科技术公司 Auto management of a virtual device context enabled network infrastructure
CN105933184A (en) * 2016-06-17 2016-09-07 中国人民解放军国防科学技术大学 SDN (Software Defined Network) link delay measuring method based on LLDP (Link Layer Discovery Protocol)
CN106341330A (en) * 2016-08-30 2017-01-18 广州西麦科技股份有限公司 Topology discovery method and system of SDN controller
WO2017123254A1 (en) * 2016-01-15 2017-07-20 Hewlett Packard Enterprise Development Lp Storage area network management packets
US9742663B2 (en) * 2012-04-04 2017-08-22 Dell Products L.P. System and method for reducing information loss in an aggregated information handling system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756189A (en) * 2004-09-30 2006-04-05 北京航空航天大学 IP network topology discovering method based on SNMP
CN101345655A (en) * 2008-08-15 2009-01-14 中兴通讯股份有限公司 Method for discovering protocol and acquiring network connection information by utilization of link layer
CN101383772A (en) * 2008-09-26 2009-03-11 中兴通讯股份有限公司 Method and device for automatically discovering and establishing MAC route information table
CN101621414A (en) * 2009-08-21 2010-01-06 杭州华三通信技术有限公司 Method and apparatus for discovering network resource and topology
US9742663B2 (en) * 2012-04-04 2017-08-22 Dell Products L.P. System and method for reducing information loss in an aggregated information handling system
CN102821009A (en) * 2012-08-08 2012-12-12 中兴通讯股份有限公司 Method for monitoring ring network on basis of link layer discovery protocol and device
CN104604193A (en) * 2012-08-17 2015-05-06 思科技术公司 Auto management of a virtual device context enabled network infrastructure
CN102946327A (en) * 2012-11-30 2013-02-27 深圳市磊科实业有限公司 Topology generation method of switchboard management system
CN104283802A (en) * 2014-10-09 2015-01-14 杭州华三通信技术有限公司 Neighbor discovery method and device
WO2017123254A1 (en) * 2016-01-15 2017-07-20 Hewlett Packard Enterprise Development Lp Storage area network management packets
CN105933184A (en) * 2016-06-17 2016-09-07 中国人民解放军国防科学技术大学 SDN (Software Defined Network) link delay measuring method based on LLDP (Link Layer Discovery Protocol)
CN106341330A (en) * 2016-08-30 2017-01-18 广州西麦科技股份有限公司 Topology discovery method and system of SDN controller

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘庆: "以太网设备中的LLDP协议", 《中国新通信》 *
崔太祥等: "基于LLDP协议的OLT设备拓扑发现研究", 《光通信技术》 *
曾干: "基于链路层发现协议(LLDP)的物理网络拓扑发现", 《电脑知识与技术》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110061936A (en) * 2018-01-19 2019-07-26 美超微电脑股份有限公司 Automatic multiple cases link aggregation configuration
CN108616453A (en) * 2018-04-20 2018-10-02 联想(北京)有限公司 A kind of methods, devices and systems for the network equipment
CN108809767A (en) * 2018-06-28 2018-11-13 新华三技术有限公司 MAC Address processing method, equipment and cascading networking system
CN108809767B (en) * 2018-06-28 2020-09-15 新华三技术有限公司 MAC address processing method, equipment and cascade networking system
CN110401568A (en) * 2019-07-31 2019-11-01 普联技术有限公司 A kind of method for discovering network topology and equipment
CN110401568B (en) * 2019-07-31 2022-05-24 普联技术有限公司 Network topology discovery method and equipment
CN112532462A (en) * 2020-12-17 2021-03-19 安徽皖通邮电股份有限公司 Method for discovering information of OTN link of packet enhanced OTN equipment
CN116032770A (en) * 2022-12-28 2023-04-28 天翼云科技有限公司 LLDP-based topology link discovery method

Also Published As

Publication number Publication date
CN107465622B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN107465622A (en) A kind of method and system that discovering network topology is realized using LLDP
CN100382517C (en) Network QoS test method and system
CN103259728B (en) A kind of OFS in-band communications method and OFS
CN101132320B (en) Method for detecting interface trouble and network node equipment
CN102724118B (en) Label distribution method and device
US9712433B2 (en) Maintaining and communicating nodal neighboring information
Dubois-Ferriere et al. Efficient and practical query scoping in sensor networks
CN101548511A (en) System for providing both traditional and traffic engineering enabled services
CN102017780A (en) Apparatus and methods for transmitting data over a wireless mesh network
JP2004328752A (en) Inserting address for performing oam functions
CN104158867B (en) Information multi-hop forwarding method based on WAVE (wireless access in vehicular environments) protocol
CN102857377B (en) The online topological automatic generation method of a kind of train network
CN102821009A (en) Method for monitoring ring network on basis of link layer discovery protocol and device
CN104394082B (en) Neighbor discovery and link state detection method suitable for broadcast link
CN106922215A (en) Wi Fi signaling networks see clearly delivering
CN101207545B (en) Method and system for detection of repeat media access control address on elastic grouping ring
CN106255177A (en) The transmission method of a kind of equipment state and device
Heurtefeux et al. Experimental Evaluation of a Routing Protocol for WSNs: RPL robustness under study
EP2728797A1 (en) Message processing method, device and system
CN101729420B (en) Data processing method and data processing device
CN106571936A (en) Loop network protection data configuration method and device
CN104243319B (en) The method and device that a kind of neighbours have found
CN100448229C (en) Data transmission method based on domain-segmentation in elastic sectionalized loop network
JP6452834B2 (en) Information transmission method, managed system, and management system
CN104468386B (en) Flow equalization method and device in a kind of Ethernet virtualization internet network

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