CN109687989A - A kind of networking method for acquiring topology and system - Google Patents

A kind of networking method for acquiring topology and system Download PDF

Info

Publication number
CN109687989A
CN109687989A CN201710989852.1A CN201710989852A CN109687989A CN 109687989 A CN109687989 A CN 109687989A CN 201710989852 A CN201710989852 A CN 201710989852A CN 109687989 A CN109687989 A CN 109687989A
Authority
CN
China
Prior art keywords
network element
element device
port
information
network
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
CN201710989852.1A
Other languages
Chinese (zh)
Other versions
CN109687989B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710989852.1A priority Critical patent/CN109687989B/en
Publication of CN109687989A publication Critical patent/CN109687989A/en
Application granted granted Critical
Publication of CN109687989B publication Critical patent/CN109687989B/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
    • 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
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric

Abstract

The invention discloses a kind of physical layer switch port method for obtaining topology location and systems, by the way that physics layer switch first port and the first port to be checked are established connection;The first network element device being connected with the first port receives the equipment topology information that the second network element device being connected with the described first port to be checked is sent;Using the protocol interaction or overhead field of equipment room, the Topology Discovery of physics layer switch is completed indirectly by the intersection poll of physics layer switch.It solves the problems, such as not finding the topological connection relation with equipment by physics layer switch in the related technology.

Description

A kind of networking method for acquiring topology and system
Technical field
The present invention relates to the communications fields, in particular to networking method for acquiring topology and system.
Background technique
Physics layer switch (L1Switch) or physical switches, are the switching equipment based on physical layer, it can be remote Journey, flexible configuration and maintenance network topology, do not need artificial execute-in-place, are able to achieve DYNAMIC COMPLEX networking or logical topology To the mapping of physical topology.
Physics layer switch is a kind of one layer of equipment, is worked in physical layer, and what itself was done is physical intersection, can't be with The equipment of connection does protocol interaction.Therefore, the topological connection relation with equipment can not be found by physics layer switch at present, It cannot achieve the topological automatic discovering of physical layer switchboard unit network.
Summary of the invention
The embodiment of the invention provides a kind of networking method for acquiring topology and systems, at least to solve in the related technology can not The problem of topological connection relation with equipment is found by physics layer switch.
According to one embodiment of present invention, a kind of reason layer switch method for acquiring topology is provided, comprising: pre- meeting If when condition, by the interaction of the first network element device and the second network element device, obtaining physics layer switch second port in network In topology location;
Wherein, the preset condition includes: that the first port of the physics layer switch and the second port intersect company It connects, the first port is connect with first network element device, and the second port is connect with second network element device, described Known to the topology location of first port in a network.
Further, the interaction for passing through the first network element device and the second network element device obtains physics layer switch the The topology location of Two-port netwerk in a network further include:
The facility information of second network element device is obtained by first network element device;
According to the topology location of second port in a network described in the apparatus information acquiring of second network element device.
Further, the facility information includes: the IP address information of second network element device, id information, MAC Address At least one of information information;And the interface IP address information that second network element device is connect with the second port.
Preferably, described before the facility information for obtaining second network element device by first network element device Method further include: second network element device sends second net to first network element device by communication between devices agreement The facility information of element device.
Preferably, described before the facility information for obtaining second network element device by first network element device Method further include: believe the equipment that the overhead field sending value of second network element device is set as second network element device Breath.
According to another embodiment of the invention, a kind of acquisition system of topology location is additionally provided, comprising:
Physics layer switch, including first port and second port, wherein the first port and the second end oral sex Fork connects, known to the topology location of the first port in a network;
Network element device, including the first network element device and the second network element device, wherein first network element device and described the Single port connection, second network element device are connect with the second port;
First network element device obtains the second port in network for interacting with second network element device In topology location.
Further, first network element device is also used to: obtaining the facility information of second network element device;
Further, the facility information includes: the IP address information of second network element device, id information, MAC Address At least one of information information;
And the interface IP address information that second network element device is connect with the second port.
Preferably, second network element device is also used to passing through communication between devices agreement to first network element device Send the facility information of second network element device.
Preferably, second network element device, is also used to for overhead field being sent to and is set as second network element device Facility information.
Through the invention, due to the protocol interaction (such as link discovery protocols) or overhead field using equipment room, pass through object The intersection poll for managing layer switch completes the Topology Discovery of physics layer switch indirectly, independent of the attached of physics layer switch Add function.Therefore, the topological connection relation with equipment can be found by physics layer switch, calculating speed is fast, can be effective Simplify environmental structure and maintenance work.This method is very suitable for being deployed with physics layer switch, and equipment room possesses agreement friendship The laboratory of mutual or expense transmitting or computer room use.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram according to an embodiment of the present invention for realizing physical layer port automatic discovery to be checked;
Fig. 2 be it is according to an embodiment of the present invention using protocol communication interaction between network element device realize physical layer port to be checked from The method flow diagram of dynamic discovery;
Fig. 3 is to realize that physical layer port to be checked is automatic using overhead field setting between network element device according to embodiments of the present invention It was found that method flow diagram;
Fig. 4 is according to physics layer switch typical case's networking structure figure;
Fig. 5 is the first step connection structure diagram of alternative embodiment according to the present invention.
Fig. 6 is the second step connection structure diagram of alternative embodiment according to the present invention.
Fig. 7 is the third step connection structure diagram of alternative embodiment according to the present invention.
Fig. 8 is the 4th step connection structure diagram of alternative embodiment according to the present invention.
Fig. 9 is the 5th step connection structure diagram of alternative embodiment according to the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
By taking full mpsi layer interchanger as an example, equipment is using PTN (Packet Transport Network, grouping transmission Net) equipment, interface selects 1G ethernet link, there is topological port, 3 unknown topologies ports known to 1 on physics layer switch. The present embodiment is obtained by LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) between PTN device To the topological address of physical port, the specific steps are as follows:
S101: the first PTN that physical layer switch port 1 (switch_port1) is 192.192.192.1 with IP address Equipment connection, the connectivity port address (dut1_port1) is it is known that be gei-1/1/0/1;
S102: physical layer switch port 1 (switch_port1) and physical layer switch port 2 (switch_port2) Connection is established, physical layer switch port 2 is connected with the second PTN device, and the address connectivity port (dut1_port1) is unknown;
It is communicated between S103: the first PTN device and the second PTN device with LLDP (link discovery protocols), the 2nd PTN is set Standby port (dut1_port1) is sent to the first equipment sending device information being attached thereto by LLDP agreement, wraps in facility information Include the interface IP address that the second PTN device is connected with physics layer switch, while including can the 2nd PTN port device of unique identification Information, this can the information of the 2nd PTN port device of unique identification can be IP address, MAC Address or id information.
It can thus be concluded that the second PTN device IP address: 192.192.192.2, the interface IP address with physical layer switch port 2 Gei-1/8/0/4, at this point, learning that the address (switch_port2) of physical layer switch port 2 is gei-1/8/0/4;
S104: efficiency is found to improve unknown port topology, two known ports of physics layer switch are intersected to two A unknown port, i.e. port 1 (switch_port1) are connected to port 3 (switch_port3), port 2 (switch_port2) It is connected to port 4 (switch_port4);
S105: after establishing connection, it is that opposite end is found by LLDP agreement in the port (dut1_port1) of the first PTN device The connectivity port (dut3_port1) (equipment 192.192.192.3 port gei-1/2/0/1) of three PTN devices;
The port (dut2_port1) of second PTN device opposite end (dut4_port1) (equipment is found by LLPD agreement 192.192.192.4 port gei-1/7/0/3);
It can thus be concluded that physical layer switch port 3 (switch_port3) connects third PTN device, IP address are as follows: 192.192.192.3 connectivity port address is gei-1/2/0/1;
Physical layer switch port 4 (switch_port4) connects (equipment 192.192.192.4 port gei-1/7/0/ 3);
Because can indicate the topological structure of the port with the address information that port connects equipment, at this time 3 unknown ports Topological relation all discovery finishes, it is as shown in the table:
Physical switch Topological relation
switch_port1 Connect equipment 192.192.192.1, connectivity port gei-1/1/0/1
switch_port2 Connect equipment 192.192.192.2, connectivity port gei-1/8/0/4
switch_port3 Connect equipment 192.192.192.3, connectivity port gei-1/2/0/1
switch_port4 Connect equipment 192.192.192.4, connectivity port gei-1/7/0/3
Embodiment 2
By taking full mpsi layer interchanger as an example, equipment uses PTN device, and interface selects stm1 interface, physics layer switch On have known to 1 a topological port, 3 unknown topologies ports, this implementations passes through the overhead field that sends between PTN device, acquisition The topological address of physical port.
S201: the first PTN that physical layer switch port 1 (switch_port1) is 192.192.192.1 with IP address Equipment connection, the connectivity port address (dut1_port1) is it is known that be stm1-2/1;
S202: physical layer switch port 1 (switch_port1) and physical layer switch port 2 (switch_port2) Connection is established, physical layer switch port 2 is connected with the second PTN device, and the address connectivity port (dut1_port1) is unknown;
S203: under the interface of all PTN devices, setting J0 sending value is device address mark and interface identifier.Such as Equipment 192.192.192.2 interface stm1-1/1, then settable J0 sending value is ip:192.192.192.2, interface: stm1-1/1;
The Overhead that the second PTN device is sent is received from the first PTN device, obtained J0 reception value, is second The topology information of PTN device;
S204: efficiency is found to improve unknown port topology, two known ports of physics layer switch are intersected to two A unknown port, i.e. port 1 (switch_port1) are connected to port 3 (switch_port3), port 2 (switch_port2) It is connected to port 4 (switch_port4);
S205: after establishing connection, it is that opposite end is found by overhead byte in the port (dut1_port1) of the first PTN device The connectivity port (dut3_port1) (equipment 192.192.192.3 port stm1-3/1) of three PTN devices.
The port (dut2_port1) of second PTN device opposite end (dut4_port1) (equipment is found by LLPD agreement 192.192.192.4 port stm1-4/1).
It can thus be concluded that physical layer switch port 3 (switch_port3) connects third PTN device, IP address are as follows: 192.192.192.3 connectivity port address is stm1-3/1;
Physical layer switch port 4 (switch_port4) connects (equipment 192.192.192.4 port stm1-4/1);
Because can indicate the topological structure of the port with the address information that port connects equipment, at this time 3 it is unknown All discovery finishes the topological relation of port, as shown in the table:
Physical switch Topological relation
switch_port1 Connect equipment 192.192.192.1, connectivity port stm1-2/1
switch_port2 Connect equipment 192.192.192.2, connectivity port stm1-1/1
switch_port3 Connect equipment 192.192.192.3, connectivity port stm1-3/1
switch_port4 Connect equipment 192.192.192.4, connectivity port stm1-4/1
By above embodiments it is found that due to the protocol interaction (such as link discovery protocols) or expense word using equipment room Section completes the Topology Discovery of physics layer switch by the intersection poll of physics layer switch, independent of physical layer indirectly The additional function of interchanger.Therefore, the topological connection relation with equipment, calculating speed can be found by physics layer switch Fastly, environmental structure and maintenance work can effectively be simplified.This method is very suitable for being deployed with physics layer switch, and equipment room is gathered around The laboratory or computer room for having protocol interaction or expense transmitting use.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, above-mentioned program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, above-mentioned storage medium can be magnetic Dish, light camphor tree, read-only memory (mono- On1y Memory of RUM:Read) or random access memory (RAM: RandomAccess Memory) etc..
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of physical layer switch-layer topology acquisition methods characterized by comprising
When meeting preset condition, by the interaction of the first network element device and the second network element device, physics layer switch the is obtained The topology location of Two-port netwerk in a network;
Wherein, the preset condition includes: the first port and the second port interconnection of the physics layer switch, institute First port to be stated to connect with first network element device, the second port is connect with second network element device, and described first Known to the topology location of port in a network.
2. as right wants 1 the method, which is characterized in that the interaction for passing through the first network element device and the second network element device, Obtain the topology location of physics layer switch second port in a network, comprising:
The facility information of second network element device is obtained by first network element device;
According to the topology location of second port in a network described in the apparatus information acquiring of second network element device.
3. method as claimed in claim 2, which is characterized in that the facility information includes:
At least one of the IP address information of second network element device, id information, mac address information information;
And the interface IP address information that second network element device is connect with the second port.
4. method as described in claim 1, which is characterized in that set obtaining second network element by first network element device Before standby facility information, the method also includes:
Second network element device sends second network element device to first network element device by communication between devices agreement Facility information.
5. method as described in claim 1, which is characterized in that set obtaining second network element by first network element device Before standby facility information, the method also includes:
Set the overhead field sending value of second network element device to the facility information of second network element device.
6. a kind of acquisition system of topology location characterized by comprising
Physics layer switch, including first port and second port, wherein the first port and the second port intersect company It connects, known to the topology location of the first port in a network;
Network element device, including the first network element device and the second network element device, wherein first network element device and the first end Mouth connection, second network element device are connect with the second port;
First network element device obtains the second port in a network for interacting with second network element device Topology location.
7. system as claimed in claim 6, which is characterized in that first network element device is also used to:
Obtain the facility information of second network element device.
8. system as claimed in claim 7, which is characterized in that the facility information includes:
At least one of the IP address information of second network element device, id information, mac address information information;
And the interface IP address information that second network element device is connect with the second port.
9. system as claimed in claim 7, which is characterized in that second network element device is also used to passing through communication between devices Agreement sends the facility information of second network element device to first network element device.
10. system as claimed in claim 7, which is characterized in that second network element device is also used to for overhead field being sent to It is set as the facility information of second network element device.
CN201710989852.1A 2017-10-19 2017-10-19 Networking topology obtaining method and system Active CN109687989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710989852.1A CN109687989B (en) 2017-10-19 2017-10-19 Networking topology obtaining method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710989852.1A CN109687989B (en) 2017-10-19 2017-10-19 Networking topology obtaining method and system

Publications (2)

Publication Number Publication Date
CN109687989A true CN109687989A (en) 2019-04-26
CN109687989B CN109687989B (en) 2021-11-23

Family

ID=66184236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710989852.1A Active CN109687989B (en) 2017-10-19 2017-10-19 Networking topology obtaining method and system

Country Status (1)

Country Link
CN (1) CN109687989B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1639606A (en) * 2002-02-27 2005-07-13 沃比乌姆公司 Method and arrangement for signaling in a networkcomprising nodes with optical ports
US20140185613A1 (en) * 2012-12-28 2014-07-03 Fujitsu Limited Multiple path control for multicast communication
CN104468365A (en) * 2014-07-09 2015-03-25 北京东土科技股份有限公司 Method, system and device for obtaining topology connection relationship between devices
CN104753695A (en) * 2013-12-25 2015-07-01 上海宽带技术及应用工程研究中心 Discovery and real-time display system and method for SDN (Software Defined Network) network topology
CN106161103A (en) * 2016-08-18 2016-11-23 上海帝联信息科技股份有限公司 Switch-layer topology construction method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1639606A (en) * 2002-02-27 2005-07-13 沃比乌姆公司 Method and arrangement for signaling in a networkcomprising nodes with optical ports
US20140185613A1 (en) * 2012-12-28 2014-07-03 Fujitsu Limited Multiple path control for multicast communication
CN104753695A (en) * 2013-12-25 2015-07-01 上海宽带技术及应用工程研究中心 Discovery and real-time display system and method for SDN (Software Defined Network) network topology
CN104468365A (en) * 2014-07-09 2015-03-25 北京东土科技股份有限公司 Method, system and device for obtaining topology connection relationship between devices
CN106161103A (en) * 2016-08-18 2016-11-23 上海帝联信息科技股份有限公司 Switch-layer topology construction method and device

Also Published As

Publication number Publication date
CN109687989B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN103476023B (en) The collocation method of access point apparatus, access controller and communication system
CN102594711B (en) Message forwarding method and edge device therefor
US5297138A (en) Determining physical topology across repeaters and bridges in a computer network
CN106487837B (en) The method and apparatus for being sent into network and obtaining target data from network
CN105827439B (en) The method for realizing wireless device ad hoc network
CN103763187B (en) IP gateway of EnOcean and KNX and communication network and method
CN105490957A (en) Load sharing method and device
WO2012159553A1 (en) Providing a layer-3 interface
CN104320502B (en) Terminating gateway IP address distribution method, the method for data transfer, MME and system
CN108429680A (en) A kind of method for configuring route, system, medium and equipment based on virtual private cloud
EP4274368A3 (en) Method and system for communicating between private mesh network and public network
CN104202398B (en) The method of remote control, apparatus and system
CN105635335B (en) Social resources cut-in method, apparatus and system
CN105389278A (en) CAN bus based serial communication method for master and slave machines
CN109327361B (en) Lora terminal networking method
CN109936490A (en) Virtual home network share method and system based on VXLAN and OpenFlow
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN108696370B (en) Method, device and system for binding and unbinding server and service
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
CN107888711B (en) Cross-network-segment equipment searching and communication method
CN104486217A (en) Cross network message transmitting method and equipment
CN105376197B (en) The method and system of implementation level network abstraction
CN105591956B (en) Flow control methods and equipment based on User-Network Interface UNI
CN109687989A (en) A kind of networking method for acquiring topology and system
CN109688071A (en) A kind of flexible Ethernet message forwarding method and device

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