CN104601380B - A kind of software defined network controller and its method for restoring host information - Google Patents

A kind of software defined network controller and its method for restoring host information Download PDF

Info

Publication number
CN104601380B
CN104601380B CN201510047507.7A CN201510047507A CN104601380B CN 104601380 B CN104601380 B CN 104601380B CN 201510047507 A CN201510047507 A CN 201510047507A CN 104601380 B CN104601380 B CN 104601380B
Authority
CN
China
Prior art keywords
information
host
port
sdn
sdn switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510047507.7A
Other languages
Chinese (zh)
Other versions
CN104601380A (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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510047507.7A priority Critical patent/CN104601380B/en
Publication of CN104601380A publication Critical patent/CN104601380A/en
Application granted granted Critical
Publication of CN104601380B publication Critical patent/CN104601380B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method that software defined network controller restores host information, this method carries out after the reparation of SDN controller failures and network topology are stablized, including:SDN network topology information is obtained, and the port information in each SDN switch being connect with the SDN controllers and flow table information;According in SDN switch port information and SDN network topology information in the relevant link information of the SDN switch, determine the host port information in the SDN switch;According to the host port information and flow table information in the SDN switch, host information corresponding with host port information is determined.The invention also discloses a kind of software defined network controllers.It can be obtained destination host information from the operation information of SDN network in the case where destination host does not transmit messages text, forward the packet to destination host using the present invention.

Description

A kind of software defined network controller and its method for restoring host information
Technical field
The present invention relates to network communication technology field, more particularly to a kind of software defined network controller and its recovery host The method of information.
Background technology
SDN (Software Defined Network, software defined network) is a kind of new network of Emulex network innovation framework, core Thought is want to detach the control plane of the network equipment with forwarding plane, is core to realize the flexible control to network flow The innovation of network and application provides good platform.
In SDN network, the standard agreement between controller and interchanger is Openflow agreements at present.Controller is collected Network topological information, calculates forward-path at study host information, is then forwarded service guidance flow by Openflow agreements Flow table issuance to forward-path in respective switch on.
SDN controllers (Controller) pass through LLDP (Link Layer Discovery Protocol, link layer hair Existing agreement) Receive message arrives network topology, learnt to each host information by the data message that host is sent;SDN controllers obtain After getting network topology and host information, if communicated between host, being calculated according to network topological information will lead to Then path between the host of letter issues flow table to each SDN switch on path so that the message that sends out of host by Flow table with each SDN switch on path realizes the communication between host.
If SDN controllers break down, for example power off, original operation has been lost on controller after fault restoration Data, if desired take over SDN network then needs to reacquire the operation information of current SDN network again, as SDN switch is believed Breath, topology information, host information etc., SDN switch and topology information can be obtained by Openflow agreements, but existing on network Some host informations but can not active obtaining, cause to send on new business stream in SDN network after SDN controllers because there is no purpose Host information leads to not forward.
Invention content
The purpose of the present invention is to provide a kind of methods of software defined network controller and its recovery host information, in mesh Host do not transmit messages in the case of text, destination host information is obtained from the operation information of SDN network, forwards the packet to purpose Host.
For achieving the above object, the present invention provides the sides that a kind of software defined network controller restores host information Method, this method carry out after the reparation of SDN controller failures and network topology are stablized, including:SDN network topology information is obtained, with And the port information in each SDN switch being connect with the SDN controllers and flow table information;According to the end in SDN switch With the relevant link information of the SDN switch in message breath and SDN network topology information, the master in the SDN switch is determined Machine port information;According to the host port information and flow table information in the SDN switch, determination is corresponding with host port information Host information.
For achieving the above object, the present invention also provides a kind of software defined network controllers, including:It obtains single Member, for after the reparation of SDN controller failures and network topology are stablized, obtaining SDN network topology information, and with the SDN Port information in each SDN switch of controller connection and flow table information;Host port information confirmation unit is used for basis With the relevant link information of the SDN switch in port information and SDN network topology information in SDN switch, determining should Host port information in SDN switch;Host information confirmation unit, for according to the host side message in the SDN switch Breath and flow table information determine host information corresponding with host port information.
In conclusion the SDN controllers of the embodiment of the present invention are in the case where destination host transmits messages text, it also can be actively Destination host information is obtained, forward-path is then directly generated according to network topological information and host information, so that source host is sent out The message gone out is forwarded to destination host.Moreover, the MAC Address in SDN controller active obtaining host informations, when other hosts pair When the host carries out address resolution protocol (ARP) request, it can realize that ARP generations are answered, directly reply to the MAC Address of the host The host of ARP request is sent out, need not be flooded in entire SDN network as the prior art.
Description of the drawings
Fig. 1 is the method flow schematic diagram that SDN controllers provided by the invention restore host information.
Fig. 2 embodiment of the present invention provides software defined network topology schematic diagram.
Fig. 3 is the structural schematic diagram of software defined network controller provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, develop simultaneously embodiment referring to the drawings, right The present invention program is described in further detail.
SDN controllers provided by the invention restore the method flow schematic diagram of host information as shown in Figure 1, including following step Suddenly:
Step 101 obtains SDN network topology information, and in each SDN switch being connect with the SDN controllers Port information and flow table information.
Wherein, SDN controllers are by each SDN switch sending port status query request message being attached thereto, It includes host port information and network to ask the port information in each SDN switch, the port information in each SDN switch Port information.
SDN controllers ask every SDN to hand over by sending flow table solicited message to each SDN switch being attached thereto Flow table information on changing planes.
Step 102, according in SDN switch port information and SDN network topology information in the SDN switch Relevant link information determines the host port information in the SDN switch.
Specific method is:The port for connecting other SDN switches in link information in the SDN switch is determined as network Port;It is according to the identified network port, other ports in the SDN switch upper port information in addition to the network port are true It is set to host port.
Step 103, according to the host port information and flow table information in the SDN switch, determine and host port information Corresponding host information.
Specific method is:By in the flow table occurrence found source address information and corresponding host port be determined as this Host information.
By method shown in FIG. 1, SDN controller failures can be from the operation data neutrality of current SDN network after repairing Restore host information.In this way, in the case where destination host does not transmit messages text, destination host information, SDN controls can be also obtained Device calculates the path of destination host according to network topological information, then issues flow table to each SDN switch on path, with So that the message that source host is sent out is passed through the flow table of each SDN switch in coupling path, is forwarded to destination host.
It is of the invention to clearly illustrate, concrete scene is set forth below and is described in detail.As shown in Fig. 2, in SDN network, branch It holds and establishes openflow connections between the SDN switch of openflow agreements and SDN controllers.Master is hung under SDN switch SW-1 Host equipment PC-3 and PC-4 are hung under machine equipment PC-1 and PC-2, SDN switch SW-2.
When SDN controllers work normally, SDN controllers pass through LLDP Receive messages to network topology, wherein link 1: SW-1-ID、port-1、port-2、SW-2-ID;Link 2:SW-2-ID、port-2、port-1、SW-1-ID.
SDN controllers learn the information to each host by the data message that each host equipment is sent, such as host is set Include for the information of PC-1:The IP address of host PC 1, the MAC Address of host PC -1, host PC -1 access the port port- of SW1 3, the SW ID that host PC -1 accesses:SW-1ID.The information of host equipment PC-2 includes:The IP address of host PC 2, host PC -2 MAC Address, host PC -2 access SW1 port port-4, host PC -2 access SW ID:SW-1ID.Host equipment PC-3 Information include:The IP address of host PC 3, the MAC Address of host PC -3, host PC -3 access the port port-5 of SW2, host The SW ID of PC-2 accesses:SW-2ID.The information of host equipment PC-4 includes:The IP address of host PC 4, the MAC of host PC -4 Location, host PC -4 access the port port-6 of SW2, the SW ID that host PC -4 accesses:SW-2ID.
After SDN controllers get network topology and host information, it is PC-3 to receive the destination address sent on PC-1 Data message calculates the forward-path between PC-1 and PC-3:Port3-SW-1-port-1-port-2-SW-2- Port-5, and flow table is issued to SW-1 and SW-2.
The flow table occurrence inbound port for being handed down to SW-1 is port-3, and source IP PC-1, source MAC are PC-1MAC, destination IP It is PC-3MAC, action item for PC-3, purpose MAC:Outgoing interface port-1;
The flow table occurrence inbound port for being handed down to SW-2 is port-2, and source IP PC-1, source MAC are PC-1MAC, destination IP It is PC-3MAC, action item for PC-3, purpose MAC:Outgoing interface port-5.
The data message that the destination address sent on PC-3 is PC-1 is received, the forwarding road between PC-3 and PC-1 is calculated Diameter:Port5-SW-2-port-2-port-1-SW-1-port-3, and flow table is issued to SW-1 and SW-2.
The flow table occurrence inbound port for being handed down to SW-2 is port-5, and source IP PC-3, source MAC are PC-3MAC, destination IP It is PC-1MAC, action item for PC-1, purpose MAC:Outgoing interface port-2;
The flow table occurrence inbound port for being handed down to SW-1 is port-1, and source IP PC-3, source MAC are PC-3MAC, destination IP It is PC-1MAC, action item for PC-1, purpose MAC:Outgoing interface port-3.
When the failure of SDN controllers, original operation data has been lost on controller after fault restoration, has needed weight Newly obtain the operation information of current SDN network, each host information wherein in SDN network, the feelings for text of not transmitting messages actively in host It can not be obtained under condition.The present invention utilizes the operation information of acquired current SDN network, can be with after network topology stabilization Recover immediately host information.
SDN controllers pass through LLDP Receive messages to network topology, wherein link 1:SW-1-ID、port-1、port-2、 SW-2-ID;Link 2:SW-2-ID、port-2、port-1、SW-1-ID.
SDN controllers are by SW-1 and SW-2 sending port status query request message, asking to the port on SW-1 Information includes:port-1、port-3、port-4;The port information onto SW-2 is asked to include:port-2、port-5、port- 6。
By sending flow table solicited message to SW-1 and SW-2, request includes SDN controllers to the flow table information on SW-1: Occurrence inbound port is port-3, and source IP PC-1, source MAC are PC-1MAC, and destination IP PC-3, purpose MAC are PC-3MAC, Action item:Outgoing interface port-1;Occurrence inbound port is port-1, and source IP PC-3, source MAC are PC-3MAC, and destination IP is PC-1, purpose MAC are PC-1MAC, action item:Outgoing interface port-3.The flow table information onto SW-2 is asked to include:Occurrence enters Port is port-2, and source IP PC-1, source MAC are PC-1MAC, and destination IP PC-3, purpose MAC are PC-3MAC, action item: Outgoing interface port-5;Occurrence inbound port is port-5, and source IP PC-3, source MAC are PC-3MAC, destination IP PC-1, purpose MAC is PC-1MAC, action item:Outgoing interface port-2.
The embodiment of the present invention is by taking the host information for the PC-1 for restoring to connect with SW-1 as an example, then,
SDN controllers according to the relevant links of SW-1 1:SW-1-ID, port-1, port-2, SW-2-ID, by SW-1 with The port port-1 that SW-2 is connected is determined as the network port.
SDN controllers are according to the port information on SW-1:Port-1, port-3, port-4, by its in addition to port-1 He is determined as host port in port.That is the host port on SW-1 includes port-3 and port-4.
For SDN controllers using host port port-3 as key assignments, the flow table occurrence inbound port for finding SW-1 is the port Flow table:Occurrence inbound port is port-3, and source IP PC-1, source MAC are PC-1MAC, and destination IP PC-3, purpose MAC are PC-3MAC, action item:Outgoing interface port-1.It is PC-1 by the source IP in the flow table, source MAC is PC-1MAC, and corresponding main Generator terminal mouth port-3 is determined as the host information of PC-1.SDN controllers have restored the host letter of PC-1 after fault restoration as a result, Breath:The IP address of host PC 1, the MAC Address of host PC -1, host PC -1 access the port port-3 of SW1, and host PC -1 accesses SW ID:SW-1ID.
Further, when receiving source host and being sent to the data message of destination host, wherein determined by host information be When destination host information, this method further comprises:According to SDN network topology information, source host and destination host information, generate Forward-path between source host and destination host.
In this way, if follow-up SDN controllers receive the data message that the destination address sent on PC-4 is PC-1, so that it may with Calculate the forward-path between PC-4 and PC-1 according to network topology and the host information of recovery, and issue flow table to SW-1 and SW-2, by data message forwarding to destination host PC-1.
It further, should when the ARP request message for receiving the host MAC address in host information determined by request Method further comprises:The MAC Address of the host is replied to the host for sending out ARP request;Realize that ARP generations are answered.
Assuming that the ARP of PC-2 requests PC-1, the ARP request message up sending that PC-2 is sent to SDN controllers, since SDN is controlled The host information of PC-1 is saved on device processed, then need not be flooded in entire SDN network as the prior art, but directly ARP is carried out for answering, the MAC Address of PC-1 is returned into PC-2.
As shown in figure 3, SDN controllers provided in an embodiment of the present invention include:
Acquiring unit 301, for after the reparation of SDN controller failures and network topology are stablized, obtaining SDN network topology Port information in information, and each SDN switch for being connect with the SDN controllers and flow table information;
Host port information confirmation unit 302, for according to the port information and SDN network topology in SDN switch With the relevant link information of the SDN switch in information, the host port information in the SDN switch is determined;
Host information confirmation unit 303 is used for according to the host port information and flow table information in the SDN switch, really Fixed host information corresponding with host port information.
The host port information confirmation unit 302, is specifically used for, and will connect it in the SDN switch in link information He is determined as the network port in the port of SDN switch;According to the identified network port, by the SDN switch upper port information In other ports in addition to the network port be determined as host port.
The host information confirmation unit 303, is specifically used for, and being searched from the flow table information in the SDN switch will lead Flow table of the generator terminal mouth as flow table occurrence inbound port;Source address information in the flow table occurrence found is led with corresponding Generator terminal mouth is determined as the host information.
The controller further comprises processing unit 304, for working as the data for receiving source host and being sent to destination host When message, wherein when identified host information is purpose host information, according to SDN network topology information, source host and purpose Host information generates the forward-path between source host and destination host.
Or the processing unit 304, receive the host MAC address in host information determined by request for working as When ARP request message, the MAC Address of the host is replied to the host for sending out ARP request.
More than, only presently preferred embodiments of the present invention is not intended to limit the scope of the present invention.It is all in this hair Within bright spirit and principle, any modification, equivalent replacement, improvement and so on should be included in protection scope of the present invention Within.

Claims (6)

1. a kind of method that software defined network controller restores host information, which is characterized in that this method is in the event of SDN controllers Barrier is repaired and is carried out after network topology stabilization, including:
SDN network topology information is obtained, and port information and stream in each SDN switch being connect with the SDN controllers Table information;
According in SDN switch port information and SDN network topology information in believe with the relevant link of the SDN switch Breath, determines the host port information in the SDN switch;
According to the host port information and flow table information in the SDN switch, host letter corresponding with host port information is determined Breath;
Wherein, related to the SDN switch in the port information and SDN network topology information according in SDN switch Link information, the method for determining the host port information in the SDN switch includes:By the SDN switch in link information The upper port for connecting other SDN switches is determined as the network port;It, will be in the SDN switch according to the identified network port Other ports in port information in addition to the network port are determined as host port;
The host port information and flow table information according in the SDN switch determines master corresponding with host port information The method of machine information includes:It is searched from the flow table information in the SDN switch and enters end using host port as flow table occurrence The flow table of mouth;By in the flow table occurrence found source address information and corresponding host port be determined as the host information.
2. the method as described in claim 1, which is characterized in that when the data message for receiving source host and being sent to destination host When, wherein when identified host information is purpose host information, this method further comprises:According to SDN network topology information, Source host and destination host information generate the forward-path between source host and destination host.
3. the method as described in claim 1, which is characterized in that when receiving the host determined by request in host information When the Address Resolution Protocol ARP request message of MAC Address, this method further comprises:The MAC Address of the host is replied into hair Go out the host of ARP request.
4. a kind of software defined network controller, which is characterized in that including:
Acquiring unit, for after the reparation of SDN controller failures and network topology are stablized, obtaining SDN network topology information, with And the port information in each SDN switch being connect with the SDN controllers and flow table information;
Host port information confirmation unit, for according in SDN switch port information and SDN network topology information in With the relevant link information of the SDN switch, the host port information in the SDN switch is determined;
Host information confirmation unit, for according to the host port information and flow table information in the SDN switch, determining and host The corresponding host information of port information;
Wherein, the host port information confirmation unit, is specifically used for, and will connect other in the SDN switch in link information The port of SDN switch is determined as the network port;It, will be in the SDN switch upper port information according to the identified network port Other ports in addition to the network port are determined as host port;
The host information confirmation unit, is specifically used for, and is searched from the flow table information in the SDN switch and makees host port For the flow table of flow table occurrence inbound port;By in the flow table occurrence found source address information and corresponding host port it is true It is set to the host information.
5. controller as claimed in claim 4, which is characterized in that the controller further comprises processing unit, for working as When receiving source host and being sent to the data message of destination host, wherein determined by host information when being purpose host information, root According to SDN network topology information, source host and destination host information, the forward-path between source host and destination host is generated.
6. controller as claimed in claim 4, which is characterized in that the controller further comprises processing unit, for working as When receiving the Address Resolution Protocol ARP request message of the host MAC address in host information determined by request, by the host MAC Address reply to the host for sending out ARP request.
CN201510047507.7A 2015-01-30 2015-01-30 A kind of software defined network controller and its method for restoring host information Active CN104601380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510047507.7A CN104601380B (en) 2015-01-30 2015-01-30 A kind of software defined network controller and its method for restoring host information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510047507.7A CN104601380B (en) 2015-01-30 2015-01-30 A kind of software defined network controller and its method for restoring host information

Publications (2)

Publication Number Publication Date
CN104601380A CN104601380A (en) 2015-05-06
CN104601380B true CN104601380B (en) 2018-10-12

Family

ID=53126905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510047507.7A Active CN104601380B (en) 2015-01-30 2015-01-30 A kind of software defined network controller and its method for restoring host information

Country Status (1)

Country Link
CN (1) CN104601380B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994065A (en) * 2015-05-20 2015-10-21 上海斐讯数据通信技术有限公司 Access control list operation system and method based on software-defined network
CN106453099B (en) * 2016-10-21 2021-05-14 新华三技术有限公司 Flow table information recovery method and device
CN106533751B (en) * 2016-11-07 2020-12-25 新华三技术有限公司 SDN controller cluster merging method and device
CN106878080B (en) * 2017-02-24 2021-03-12 新华三技术有限公司 Method and device for determining fault of software defined network controller
CN106992896B (en) * 2017-05-27 2019-07-23 迈普通信技术股份有限公司 SDN connection judgment method, apparatus and system
CN107465621B (en) * 2017-08-18 2020-08-11 迈普通信技术股份有限公司 Router discovery method, SDN controller, router and network system
US11243882B2 (en) 2020-04-15 2022-02-08 International Business Machines Corporation In-array linked list identifier pool scheme
CN114422280B (en) * 2021-12-31 2023-11-07 深信服科技股份有限公司 Network deployment method, device, node and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812779A (en) * 2012-11-08 2014-05-21 华为技术有限公司 Topology grading method and apparatus, and flooding processing method and apparatus
CN104243316A (en) * 2014-09-25 2014-12-24 杭州华三通信技术有限公司 Mainframe learning method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812779A (en) * 2012-11-08 2014-05-21 华为技术有限公司 Topology grading method and apparatus, and flooding processing method and apparatus
CN104243316A (en) * 2014-09-25 2014-12-24 杭州华三通信技术有限公司 Mainframe learning method and device

Also Published As

Publication number Publication date
CN104601380A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN104601380B (en) A kind of software defined network controller and its method for restoring host information
US10044830B2 (en) Information system, control apparatus, method of providing virtual network, and program
CN104104570B (en) Aggregation processing method in IRF systems and device
EP3082309B1 (en) Sdn controller, data centre system and router connection method
CN102904818B (en) A kind of ARP information entry updating method and device
CN104780070B (en) Network system and network management
CN105915400A (en) Data stream switching method and system
CN103944828A (en) Method and equipment for transmitting protocol messages
CN104243205A (en) Message processing method and device used during virtual switch fault
CN104506408A (en) Data transmission method and device based on SDN
RU2014128627A (en) METHOD AND DEVICE FOR SERVICE TRANSMISSION MANAGEMENT
US9503317B2 (en) Method and device for processing communication path
EP2696542A1 (en) Method, ToR switch, and system for implementing protection switchover based on TRILL network
CN104869057A (en) OpeFlow switch graceful restart processing method, device and OpeFlow controller
CN113542051B (en) Monitoring flow load balancing method based on software defined network
CN104639435A (en) Method and device for data stream forwarding in SDN (Software Defined Networking)
CN109088823B (en) Method and device for realizing terminal interconnection
JP2017041747A (en) Information processing device, information processing device control program, control method, and information processing system
CN105939215B (en) The method and device of VRRP backup group state switching
CN111224901A (en) Data association method, device and distributed system
KR101610031B1 (en) Method for controlling openflow switch embedded controller in software defined network and apparatus thereof
CN107733677B (en) Alarm generation method and device for overlay network
CN110445708A (en) Communication means and system in a kind of Convergence gateway
CN107294989B (en) Method and device for preventing ARP gateway spoofing
CN105391565A (en) Method for achieving synchronization of backup business configuration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant