CN112152862A - Topology acquisition method of hybrid network, SDN controller and SDN switch - Google Patents

Topology acquisition method of hybrid network, SDN controller and SDN switch Download PDF

Info

Publication number
CN112152862A
CN112152862A CN202011110787.9A CN202011110787A CN112152862A CN 112152862 A CN112152862 A CN 112152862A CN 202011110787 A CN202011110787 A CN 202011110787A CN 112152862 A CN112152862 A CN 112152862A
Authority
CN
China
Prior art keywords
topology
sdn
sdn switch
switch
current
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
CN202011110787.9A
Other languages
Chinese (zh)
Other versions
CN112152862B (en
Inventor
侯乐
贾宝军
徐雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011110787.9A priority Critical patent/CN112152862B/en
Publication of CN112152862A publication Critical patent/CN112152862A/en
Application granted granted Critical
Publication of CN112152862B publication Critical patent/CN112152862B/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
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
    • 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 provides a topology acquisition method of a hybrid network, an SDN controller and an SDN switch, wherein the method comprises the following steps: selecting a current SDN switch from all SDN switches in the hybrid network; pre-installing flow table forwarding rules to other SDN switches except the current SDN switch; sending a topology detection message to the current SDN switch; receiving the topology detection message forwarded by a neighboring SDN switch of the current SDN switch; acquiring topology information of the current SDN switch according to the received topology detection message; repeating the steps until topology information of all SDN switches in the hybrid network is obtained; and acquiring the topology information of the whole hybrid network according to the topology information of all the SDN switches. The method, the SDN controller and the SDN switch can solve the problem that two messages and two detections are needed in the network topology acquisition method in the existing hybrid network scene, so that network resources are wasted.

Description

Topology acquisition method of hybrid network, SDN controller and SDN switch
Technical Field
The invention relates to the technical field of networks, in particular to a topology acquisition method of a hybrid network, an SDN controller and an SDN switch.
Background
At present, the SDN is widely applied to many aspects such as a campus network, a data center, and a wide area network, and with popularization of the SDN, a network scenario in which an SDN switch and a conventional switch are mixedly deployed exists in a certain network topology, and for the scenario, an SDN controller generally performs network topology detection in a Link Layer Discovery Protocol (LLDP) + BDDP (Broadcast Domain Discovery Protocol) manner. The method comprises the steps of firstly sending an LDDP message to detect SDN switches directly connected with each other, and then sending a BDDP message to detect the situation that traditional switches exist among the SDN switches. In order to obtain the network topology in the hybrid network scenario, two messages and two detections are required, which causes the waste of network resources.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a topology obtaining method of a hybrid network, an SDN controller and an SDN switch, aiming at the above deficiencies in the prior art, so as to solve the problem that network resources are wasted due to two messages and two detections in the network topology obtaining method in the prior hybrid network scenario.
In a first aspect, an embodiment of the present invention provides a topology obtaining method for a hybrid network, which is applied to an SDN controller in the hybrid network, where the hybrid network further includes an SDN switch and a non-SDN switch, and the method includes:
s1, selecting the current SDN switch from all SDN switches in the hybrid network;
s2, pre-installing flow table forwarding rules to SDN switches except the current SDN switch;
s3, sending a topology detection message to the current SDN switch;
s4, receiving the topology detection packet forwarded by an adjacent SDN switch of the current SDN switch;
s5, acquiring the topology information of the current SDN switch according to the received topology detection message;
s6, repeating the steps S1-S5 until topology information of all SDN switches in the hybrid network is obtained;
and S7, acquiring the topology information of the whole hybrid network according to the topology information of all the SDN switches.
Preferably, before the step S2, the method further includes:
generating the topology detection message, wherein the topology detection message comprises a destination MAC address, a source MAC address, a protocol type and a data path identifier Dpid;
the destination MAC address is a broadcast address, the source MAC address is a MAC address of the current SDN switch, the value corresponding to the protocol type is a value other than 0x8100, and the Dpid is a Dpid of the current SDN switch.
Preferably, the protocol type corresponds to a value of 0x 8899.
Preferably, the step S5 includes:
sequentially judging whether the corresponding numerical value of the protocol type of the received topology detection message is 0x8100 or not;
if yes, judging that a non-direct connection link containing the non-SDN switch exists between the current SDN switch and an adjacent SDN switch for forwarding the topology detection message;
if not, judging that a direct link exists between the current SDN switch and an adjacent SDN switch for forwarding the topology detection message;
and analogizing in sequence until all the received topology detection messages are judged, so that the topology information of the current SDN switch is obtained.
In a second aspect, an embodiment of the present invention provides a topology obtaining method for a hybrid network, which is applied to an SDN switch in the hybrid network, where the hybrid network further includes an SDN controller and a non-SDN switch, and the method includes:
receiving topology detection messages sent by the SDN controller, and forwarding the topology detection messages from all ports; alternatively, the first and second electrodes may be,
receiving the topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to the SDN controller according to a pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
In a third aspect, an embodiment of the present invention provides an SDN controller, including:
a selection module, configured to select a current SDN switch from all SDN switches in a hybrid network;
the pre-installation module is connected with the selection module and used for pre-installing flow table forwarding rules to other SDN switches except the current SDN switch;
a sending module, connected to the selecting module, configured to send a topology detection packet to the current SDN switch;
a receiving module, connected to the sending module and the pre-installation module, configured to receive the topology detection packet forwarded by an adjacent SDN switch of the current SDN switch;
a switch topology obtaining module connected to the receiving module, and configured to obtain topology information of the current SDN switch according to the received topology detection packet;
and the network topology acquisition module is connected with the switch topology acquisition module and used for acquiring the topology information of the whole hybrid network according to the topology information of all the SDN switches.
Preferably, the method further comprises the following steps:
a generating module, configured to generate the topology detection packet, where the topology detection packet includes a destination MAC address, a source MAC address, a protocol type, and a data path identifier Dpid;
the destination MAC address is a broadcast address, the source MAC address is a MAC address of the current SDN switch, the value corresponding to the protocol type is a value other than 0x8100, and the Dpid is a Dpid of the current SDN switch.
Preferably, the protocol type corresponds to a value of 0x 8899.
Preferably, the switch topology obtaining module includes:
the first judging unit is connected with the receiving module and is used for sequentially judging whether the protocol type corresponding numerical value of the received topology detection message is 0x8100 or not;
a second determining unit, configured to determine that a non-direct link including the non-SDN switch exists between the current SDN switch and an adjacent SDN switch that forwards the topology detection packet, when a determination result of the first determining unit is yes;
a third determining unit, configured to determine that a direct link exists between the current SDN switch and an adjacent SDN switch that forwards the topology detection packet when the determination result of the first determining unit is negative.
In a fourth aspect, an embodiment of the present invention provides an SDN switch, including:
a receiving and sending module, configured to receive a topology detection packet sent by the SDN controller, and forward the topology detection packet from all ports; alternatively, the first and second electrodes may be,
the network topology detection device is used for receiving the topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to the SDN controller according to the pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
According to the topology obtaining method of the hybrid network, the SDN controller and the SDN switch provided by the embodiment of the invention, by utilizing the characteristics of SDN programmability and default VLAN packaging of a traditional switch, a topology detection message is designed for detecting the network topology in a mode that the SDN controller pre-installs a forwarding rule on the SDN switch in the hybrid network, a discovery mechanism of the SDN controller on the network topology in a pure SDN switch environment and a hybrid network environment can be realized, and the problem of network resource waste caused by two messages and two detections in the existing network topology obtaining method in a hybrid network scene is solved.
Drawings
FIG. 1: a flow chart of a topology acquisition method of a hybrid network according to embodiment 1 of the present invention;
FIG. 2: is a schematic structural diagram of a hybrid network according to an embodiment of the present invention;
FIG. 3: a structure diagram of an SDN controller in embodiment 3 of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example 1:
the embodiment provides a topology obtaining method for a hybrid Network, which is applied to an SDN (Software Defined Network) controller in the hybrid Network, where the hybrid Network further includes an SDN switch and a non-SDN switch, as shown in fig. 1, the method includes:
step S1, selecting a current SDN switch from all SDN switches in the hybrid network.
In this embodiment, the hybrid network includes an SDN controller, one or more SDN switches, and a non-SDN switch, where the non-SDN switch is a legacy switch, and the non-SDN switch defaults to have VLAN encapsulation, and the SDN switch establishes a connection with the SDN controller when the SDN switch is initialized to be online.
Step S2, pre-installing flow table forwarding rules to SDN switches other than the current SDN switch.
Optionally, before step S2, the method may further include:
generating a topology detection message, wherein the topology detection message comprises a destination MAC address, a source MAC address, a protocol type and a data path identifier Dpid;
the target MAC address is a broadcast address, the source MAC address is the MAC address of the current SDN switch, the corresponding value of the protocol type is a value except 0x8100, and the Dpid is the Dpid of the current SDN switch.
In this embodiment, the format of the generated topology detection packet may be as follows:
Figure BDA0002728521240000051
the value of the destination MAC address is fixed to a broadcast address, that is, 0 xfffffffffffff, the protocol type field is used to indicate that the packet is a topology detection packet, the corresponding value may be a value other than 0x8100, that is, a value different from the conventional packet protocol type is used as an identifier, and the preferred value is fixed to 0x 8899. Dpid (Datapath ID) is a data path ID of the SDN switch in the hybrid network, and is an identifier of the SDN switch. When a topology detection message constructed by the invention passes through a network with traditional switches, as the traditional switches have default VLAN division, default VLAN labels are marked on the message and the message is forwarded, and at the moment, the protocol type of the message is changed into 0x8100, so that the judgment on whether the traditional switches exist among SDN switches can be realized. 0x8100 is the default VLAN message protocol number.
In this embodiment, the flow table forwarding rule is: if the topology detection message is matched, namely the message with the destination MAC address being a broadcast address and the protocol type field being 0x8899 or 0x8100, the action of the flow table is to upload the message to the SDN controller.
Step S3, sending a topology detection packet to the current SDN switch.
Step S4, receiving a topology detection packet forwarded by an adjacent SDN switch of the current SDN switch.
In this embodiment, after receiving a topology detection message, a current SDN switch forwards the topology detection message from all ports, so that after receiving the topology detection message, an adjacent SDN switch of the current SDN switch sends the forwarded topology detection message to the SDN controller according to a pre-installed flow table forwarding rule.
Step S5, acquiring topology information of the current SDN switch according to the received topology detection packet.
Alternatively, step S5 may include:
sequentially judging whether the corresponding numerical value of the protocol type of the received topology detection message is 0x8100 or not;
if yes, judging that a non-direct connection link containing a non-SDN switch exists between the current SDN switch and an adjacent SDN switch for forwarding the topology detection message;
if not, judging that a direct link exists between the current SDN switch and an adjacent SDN switch for forwarding the topology detection message;
and analogizing in sequence until the judgment of all the received topology detection messages is completed, so as to obtain the topology information of the current SDN switch.
In this embodiment, topology detection is initiated by an administrator at an SDN controller, and the SDN controller implements detection of adjacent links of SDN switches by issuing topology detection messages to SDN switches in a hybrid network and pre-installing flow table forwarding rules in sequence, so as to complete discovery of the entire hybrid network topology, as shown in fig. 2, a current SDN switch sw1 adjacent link detection process is as follows:
step A: the SDN controller generates a topology detection message, wherein a destination MAC address is 0xFFFFFFFFFF, a source MAC address is an MAC address (MAC-1) of sw1, a protocol type field is 0x8899, and Dpid is a Dpid value (Dpid-1) of sw 1;
and B: the SDN controller pre-installs Flow table forwarding rules to other SDN switches except sw1 in the hybrid network through Flow _ mod, namely pre-installs Flow table forwarding rules to sw2, sw3 and sw4, wherein matching items of the Flow tables are destination MAC addresses and protocol type fields are 0x8899 or 0x 8100. And after the relevant messages are matched, the flow table acts as an SDN controller uploading. In order to realize automatic expiration clearing, the hard _ timeout of the flow table is set to 10, that is, after the flow table is issued, the flow table is deleted by the SDN switch after 10s no matter whether there is a matched data flow or not, and if the value is not set, the flow table can also be deleted by the controller;
and C: the SDN controller sends the topology detection message generated in the step A to a current SDN switch sw1 through a Packet-out message, and forwards the topology detection message from all ports of the sw 1;
step D: the SDN controller receives topology detection messages sent by adjacent SDN switches sw2 and sw3 of a current SDN switch sw 1;
step E: and the SDN controller acquires the topology information of the current SDN switch sw1 according to the received topology detection message.
In the embodiment, the SDN switch sw2 receives the detection message sent by the sw1, the detection message matches with the flow table entry in the sw2, that is, the destination MAC address is a broadcast address and the protocol type field is 0x8899, and the detection message is sent to the SDN controller by the sw2 through a Packet-in message. The SDN controller receives the detection message forwarded by the sw2, analyzes the detection message to obtain a protocol type field of 0x8899 and a Dpid field of the sw1, and judges that a direct link exists between the sw1 and the sw 2.
In the embodiment, the SDN switch sw3 receives the detection message sent by the sw1, the detection message matches with the flow table entry in the sw2, that is, the destination MAC address is a broadcast address and the protocol type field is 0x8100, and the detection message is sent to the SDN controller by the sw3 through a Packet-in message. And the SDN controller receives the detection message sent by the sw3, analyzes the detection message to obtain a protocol type field of 0x8100, and strips the VLAN encapsulation, wherein the obtained protocol type field is 0x8899 and the Dpid field is Dpid of the sw1, namely, the fact that a traditional switch exists between the sw1 and the sw3 is judged.
In this embodiment, through steps a to E, topology information of the current SDN switch sw1 may be finally obtained, that is, there is a direct link between sw1 and sw2, and there is a legacy switch between sw3 and sw.
And step S6, repeating the steps S1-S5 until topology information of all SDN switches in the hybrid network is obtained.
And step S7, acquiring topology information of the whole hybrid network according to the topology information of all SDN switches.
In this embodiment, as shown in fig. 2, after the topology information of the sw1 is obtained, the sw2, the sw3 and the sw4 are sequentially used as current SDN switches, and then the above steps a to E are performed, that is, the interconnection relationships of all SDN switches in the hybrid network can be obtained, so that the complete topology information of the entire hybrid network is obtained.
According to the topology obtaining method of the hybrid network, provided by the embodiment of the invention, by utilizing the characteristics of SDN programmability and traditional switch default VLAN packaging, a topology detection message is designed for detecting the network topology in a mode that an SDN controller pre-installs a forwarding rule on an SDN switch in the hybrid network, a discovery mechanism of the SDN controller on the network topology in a pure SDN switch environment and a hybrid network environment can be realized, and the problem of network resource waste caused by two messages and two detections in the network topology obtaining method in the existing hybrid network scene is solved.
Example 2:
the embodiment provides a topology obtaining method for a hybrid network, which is applied to an SDN switch in the hybrid network, where the hybrid network further includes an SDN controller and a non-SDN switch, and the method includes:
receiving a topology detection message sent by an SDN controller, and forwarding the topology detection message from all ports; alternatively, the first and second electrodes may be,
receiving a topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to the SDN controller according to a pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
In this embodiment, when the SDN switch is used as a current SDN switch, a topology detection message sent by an SDN controller is received, and the topology detection message is forwarded from all ports. If the SDN switch serves as an adjacent SDN switch of the current SDN switch, receiving a topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to an SDN controller according to a pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
Example 3:
as shown in fig. 3, the present embodiment provides an SDN controller, including:
a selecting module 30, configured to select a current SDN switch from all SDN switches in the hybrid network;
the pre-installation module 31 is connected to the selection module 30, and is configured to pre-install the flow table forwarding rule to another SDN switch except the current SDN switch;
a sending module 32, connected to the selecting module 30, configured to send a topology detection packet to the current SDN switch;
a receiving module 33, connected to the sending module 32 and the pre-installation module 31, configured to receive a topology detection packet forwarded by an adjacent SDN switch of a current SDN switch;
the switch topology obtaining module 34 is connected to the receiving module 33, and configured to obtain topology information of the current SDN switch according to the received topology detection packet;
and the network topology obtaining module 35 is connected to the switch topology obtaining module 34, and is configured to obtain topology information of the entire hybrid network according to the topology information of all SDN switches.
Optionally, the method may further include:
the generating module is used for generating a topology detection message, and the topology detection message comprises a destination MAC address, a source MAC address, a protocol type and a data path identifier Dpid;
the target MAC address is a broadcast address, the source MAC address is the MAC address of the current SDN switch, the corresponding value of the protocol type is a value except 0x8100, and the Dpid is the Dpid of the current SDN switch.
Optionally, the protocol type corresponds to a value of 0x 8899.
Alternatively, the switch topology obtaining module 34 may include:
the first judging unit is connected with the receiving module 33 and is used for sequentially judging whether the value corresponding to the protocol type of the received topology detection message is 0x8100 or not;
the second judging unit is used for judging that a non-direct connection link containing a non-SDN switch exists between the current SDN switch and an adjacent SDN switch for forwarding the topology detection message when the judging result of the first judging unit is yes;
and the third judging unit is used for judging that a direct link exists between the current SDN switch and an adjacent SDN switch forwarding the topology detection message when the judging result of the first judging unit is negative.
Example 4:
the present embodiment provides an SDN switch, including:
the receiving and sending module is used for receiving the topology detection messages sent by the SDN controller and forwarding the topology detection messages from all ports; alternatively, the first and second electrodes may be,
the device is used for receiving the topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to the SDN controller according to the pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
In this embodiment, when the SDN switch is used as a current SDN switch, a topology detection message sent by an SDN controller is received, and the topology detection message is forwarded from all ports. If the SDN switch serves as an adjacent SDN switch of the current SDN switch, receiving a topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to an SDN controller according to a pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
Embodiments 2 to 4 provide a topology acquisition method for a hybrid network, an SDN controller, and an SDN switch, which utilize characteristics of SDN programmable and default VLAN encapsulation of a conventional switch, and design a topology detection packet for detecting a network topology in a manner that a forwarding rule is pre-installed in the SDN switch in the hybrid network by the SDN controller, so that a discovery mechanism of the SDN controller on the network topology in a pure SDN switch environment and a hybrid network environment can be implemented, and a problem of network resource waste caused by two packets and two detections required in a network topology acquisition method in an existing hybrid network scenario is solved.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. A topology acquisition method for a hybrid network, wherein the topology acquisition method is applied to an SDN controller in the hybrid network, the hybrid network further comprises an SDN switch and a non-SDN switch, and the method comprises the following steps:
s1, selecting the current SDN switch from all SDN switches in the hybrid network;
s2, pre-installing flow table forwarding rules to SDN switches except the current SDN switch;
s3, sending a topology detection message to the current SDN switch;
s4, receiving the topology detection packet forwarded by an adjacent SDN switch of the current SDN switch;
s5, acquiring the topology information of the current SDN switch according to the received topology detection message;
s6, repeating the steps S1-S5 until topology information of all SDN switches in the hybrid network is obtained;
and S7, acquiring the topology information of the whole hybrid network according to the topology information of all the SDN switches.
2. The topology acquisition method of a hybrid network according to claim 1, wherein before the step S2, the method further comprises:
generating the topology detection message, wherein the topology detection message comprises a destination MAC address, a source MAC address, a protocol type and a data path identifier Dpid;
the destination MAC address is a broadcast address, the source MAC address is a MAC address of the current SDN switch, the value corresponding to the protocol type is a value other than 0x8100, and the Dpid is a Dpid of the current SDN switch.
3. The topology acquisition method of a hybrid network according to claim 2, wherein the protocol type correspondence value is 0x 8899.
4. The topology acquisition method of a hybrid network according to claim 2 or 3, wherein the step S5 includes:
sequentially judging whether the corresponding numerical value of the protocol type of the received topology detection message is 0x8100 or not;
if yes, judging that a non-direct connection link containing the non-SDN switch exists between the current SDN switch and an adjacent SDN switch for forwarding the topology detection message;
if not, judging that a direct link exists between the current SDN switch and an adjacent SDN switch for forwarding the topology detection message;
and analogizing in sequence until all the received topology detection messages are judged, so that the topology information of the current SDN switch is obtained.
5. A topology acquisition method for a hybrid network, wherein the topology acquisition method is applied to an SDN switch in the hybrid network, the hybrid network further comprises an SDN controller and a non-SDN switch, and the method comprises the following steps:
receiving topology detection messages sent by the SDN controller, and forwarding the topology detection messages from all ports; alternatively, the first and second electrodes may be,
receiving the topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to the SDN controller according to a pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
6. An SDN controller, comprising:
a selection module, configured to select a current SDN switch from all SDN switches in a hybrid network;
the pre-installation module is connected with the selection module and used for pre-installing flow table forwarding rules to other SDN switches except the current SDN switch;
a sending module, connected to the selecting module, configured to send a topology detection packet to the current SDN switch;
a receiving module, connected to the sending module and the pre-installation module, configured to receive the topology detection packet forwarded by an adjacent SDN switch of the current SDN switch;
a switch topology obtaining module connected to the receiving module, and configured to obtain topology information of the current SDN switch according to the received topology detection packet;
and the network topology acquisition module is connected with the switch topology acquisition module and used for acquiring the topology information of the whole hybrid network according to the topology information of all the SDN switches.
7. The SDN controller of claim 6, further comprising:
a generating module, configured to generate the topology detection packet, where the topology detection packet includes a destination MAC address, a source MAC address, a protocol type, and a data path identifier Dpid;
the destination MAC address is a broadcast address, the source MAC address is a MAC address of the current SDN switch, the value corresponding to the protocol type is a value other than 0x8100, and the Dpid is a Dpid of the current SDN switch.
8. The SDN controller of claim 7, wherein the protocol type correspondence value is 0x 8899.
9. The SDN controller of claim 7 or 8, wherein the switch topology acquisition module comprises:
the first judging unit is connected with the receiving module and is used for sequentially judging whether the protocol type corresponding numerical value of the received topology detection message is 0x8100 or not;
a second determining unit, configured to determine that a non-direct link including the non-SDN switch exists between the current SDN switch and an adjacent SDN switch that forwards the topology detection packet, when a determination result of the first determining unit is yes;
a third determining unit, configured to determine that a direct link exists between the current SDN switch and an adjacent SDN switch that forwards the topology detection packet when the determination result of the first determining unit is negative.
10. An SDN switch, comprising:
a receiving and sending module, configured to receive a topology detection packet sent by the SDN controller, and forward the topology detection packet from all ports; alternatively, the first and second electrodes may be,
the network topology detection device is used for receiving the topology detection message forwarded by the current SDN switch, sending the forwarded topology detection message to the SDN controller according to the pre-installed flow table forwarding rule, and deleting the pre-installed flow table forwarding rule after a preset time.
CN202011110787.9A 2020-10-16 2020-10-16 Topology acquisition method of hybrid network, SDN controller and SDN switch Active CN112152862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011110787.9A CN112152862B (en) 2020-10-16 2020-10-16 Topology acquisition method of hybrid network, SDN controller and SDN switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011110787.9A CN112152862B (en) 2020-10-16 2020-10-16 Topology acquisition method of hybrid network, SDN controller and SDN switch

Publications (2)

Publication Number Publication Date
CN112152862A true CN112152862A (en) 2020-12-29
CN112152862B CN112152862B (en) 2023-04-07

Family

ID=73951253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011110787.9A Active CN112152862B (en) 2020-10-16 2020-10-16 Topology acquisition method of hybrid network, SDN controller and SDN switch

Country Status (1)

Country Link
CN (1) CN112152862B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910682A (en) * 2021-01-04 2021-06-04 中国联合网络通信集团有限公司 Link detection method and switch controller

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015096409A1 (en) * 2013-12-24 2015-07-02 中兴通讯股份有限公司 Method, device and system for discovering link in software-defined network
WO2016165463A1 (en) * 2015-09-17 2016-10-20 中兴通讯股份有限公司 Software defined network-based link failure reporting method and forwarding device
CN106302173A (en) * 2015-05-26 2017-01-04 南宁富桂精密工业有限公司 Control equipment and the method for topology learning thereof
CN106341330A (en) * 2016-08-30 2017-01-18 广州西麦科技股份有限公司 Topology discovery method and system of SDN controller
WO2017142516A1 (en) * 2016-02-16 2017-08-24 Hewlett Packard Enterprise Development Lp Software defined networking for hybrid networks
CN108156004A (en) * 2016-12-02 2018-06-12 中国移动通信有限公司研究院 SDN controllers and switch management method
CN108337111A (en) * 2018-01-05 2018-07-27 新华三技术有限公司 Obtain the method and device of network node topology
CN110380973A (en) * 2019-06-18 2019-10-25 南京理工大学 Software defined network topological detecting method
CN111698122A (en) * 2020-06-12 2020-09-22 南京北星极网络科技有限公司 Network topology discovery method based on SDN

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015096409A1 (en) * 2013-12-24 2015-07-02 中兴通讯股份有限公司 Method, device and system for discovering link in software-defined network
CN106302173A (en) * 2015-05-26 2017-01-04 南宁富桂精密工业有限公司 Control equipment and the method for topology learning thereof
WO2016165463A1 (en) * 2015-09-17 2016-10-20 中兴通讯股份有限公司 Software defined network-based link failure reporting method and forwarding device
WO2017142516A1 (en) * 2016-02-16 2017-08-24 Hewlett Packard Enterprise Development Lp Software defined networking for hybrid networks
CN106341330A (en) * 2016-08-30 2017-01-18 广州西麦科技股份有限公司 Topology discovery method and system of SDN controller
CN108156004A (en) * 2016-12-02 2018-06-12 中国移动通信有限公司研究院 SDN controllers and switch management method
CN108337111A (en) * 2018-01-05 2018-07-27 新华三技术有限公司 Obtain the method and device of network node topology
CN110380973A (en) * 2019-06-18 2019-10-25 南京理工大学 Software defined network topological detecting method
CN111698122A (en) * 2020-06-12 2020-09-22 南京北星极网络科技有限公司 Network topology discovery method based on SDN

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910682A (en) * 2021-01-04 2021-06-04 中国联合网络通信集团有限公司 Link detection method and switch controller

Also Published As

Publication number Publication date
CN112152862B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US6178171B1 (en) Route switching mechanisms for source-routed ATM networks
US6512768B1 (en) Discovery and tag space identifiers in a tag distribution protocol (TDP)
US7733812B2 (en) Method for enabling multipoint network services over a ring topology network
US5752003A (en) Architecture for managing traffic in a virtual LAN environment
US6952397B2 (en) Communication in a bidirectional ring network with single-direction receiving
US6041166A (en) Virtual network architecture for connectionless LAN backbone
CN106921579B (en) Communication method and device based on Service Function Chain (SFC)
US6337863B1 (en) Seamless communication service with intelligent edge devices
US20050053006A1 (en) Obtaining path information related to a bridged network
JP2004534431A (en) Network tunneling
JP2000341327A (en) Vpn constitution system, inter-work router device, packet communicating method, data communicating device, and packet repeater device
US9876718B2 (en) Forwarding packets
CN112491729A (en) Data processing method and device, storage medium and electronic device
US8964749B2 (en) Method, device and system for establishing a pseudo wire
CN104852826A (en) Loop detecting method and device
CN112152862B (en) Topology acquisition method of hybrid network, SDN controller and SDN switch
EP1434394B1 (en) Multiprotocol label switching label distribution method
US20050201372A1 (en) Systems and methods for virtual broadcast subnetworks
WO2006036463A2 (en) A communication network, communication elements and methods of communicating data packets therefor
Cisco Glossary of Terms
Cisco Glossary of Terms
Cisco Glossary of Terms
Cisco Glossary of Terms
CN114079629B (en) Maximum Transmission Unit (MTU) determining method, device, equipment and storage medium
CN112910682A (en) Link detection method and switch controller

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