CN109729026A - A kind of control method and SDN controller of SDN network - Google Patents

A kind of control method and SDN controller of SDN network Download PDF

Info

Publication number
CN109729026A
CN109729026A CN201711025688.9A CN201711025688A CN109729026A CN 109729026 A CN109729026 A CN 109729026A CN 201711025688 A CN201711025688 A CN 201711025688A CN 109729026 A CN109729026 A CN 109729026A
Authority
CN
China
Prior art keywords
interchanger
source terminal
information
terminal
access
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
CN201711025688.9A
Other languages
Chinese (zh)
Other versions
CN109729026B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201711025688.9A priority Critical patent/CN109729026B/en
Publication of CN109729026A publication Critical patent/CN109729026A/en
Application granted granted Critical
Publication of CN109729026B publication Critical patent/CN109729026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention discloses the control method and SDN controller of a kind of SDN network, is related to the communications field, can reasonably issue flow table, improves efficiency of the SDN network in processing communication terminal access procedure, while improving the utilization efficiency of interchanger flow table resource.It include: that all interchangers of the SDN controller into SDN network send initial flow table;The interchanger that source terminal is accessed to source terminal sends ARP message, and the characteristic information of ARP message includes: the address information of source terminal;The interchanger of source terminal access sends the information for the interchanger that ARP message and source terminal access according to initial flow table to SDN controller;The information for the interchanger that SDN controller is accessed according to source terminal and the address information of source terminal, the interchanger accessed to source terminal send predetermined flow table, and the predetermined message received is sent to source terminal by the interchanger that predetermined flow table is used to indicate source terminal access.

Description

A kind of control method and SDN controller of SDN network
Technical field
The embodiment of the present invention is related to the communications field more particularly to a kind of SDN (Software Defined Networking, software defined network) network-based control method and SDN controller.
Background technique
SDN network is separated with data plane by control plane, controls plane centralization, data plane Business Process Standard Change, reduce network equipment complexity in data communication, improve network service and update evolution speed, efficiently meets user to using industry The demand of business innovation.Existing SDN open source controller OpenDayLight (modularization based on SDN exploitation, it is expansible, can Upgrading, support multi-protocols controller frame) realize OpenFlow flow table management and issuing mechanism, for construct from source to The forward-path of destination communication terminal device, its implementation: SDN controller all OpenFlow exchanges into network Machine issues the corresponding OpenFlow flow table of each communication terminal device, all has in network on each OpenFlow interchanger The corresponding flow entry of each communication terminal device.Using this implementation, a communication terminal device has accessed SDN net Network, SDN controller are to construct the data forwarding paths for completing this terminal and other any terminal rooms.
However, there is locality in network communication, i.e., in the network of certain scale, seldom there is a communication The case where terminal device can be communicated with other all communication terminal devices, a usual communication terminal device only can in network There are communication requirements for small part communication terminal.Using above method management and flow table needed for communication path is established is issued, SDN control Device is that the communications device terminal for not needing to communicate issues flow table on all OpenFlow interchangers simultaneously, reduces controller and exists Efficiency in flow table issuance process flow, while these correspond to flow table there is no the terminal of communication requirement and occupy OpenFlow friendship The flow table resource for preciousness of changing planes is unfavorable for SDN network and accesses more communication terminals.
Summary of the invention
The embodiment of the present invention provides the control method and SDN controller of a kind of SDN network, can reasonably issue stream Table improves efficiency of the SDN network in processing communication terminal access procedure, while improving utilizing for interchanger flow table resource and imitating Rate.
In a first aspect, providing a kind of control method of SDN network, comprising:
All interchangers of the SDN controller into SDN network send initial flow table;
The interchanger that source terminal is accessed to the source terminal sends ARP message, and the characteristic information of the ARP message includes: The address information of the source terminal;
The interchanger of the source terminal access sends the ARP message to the SDN controller according to the initial flow table And the information of the interchanger of the source terminal access;
The information for the interchanger that the SDN controller is accessed according to the source terminal and the address letter of the source terminal Breath, the interchanger of Xiang Suoshu source terminal access send predetermined flow table, and the predetermined flow table is used to indicate the source terminal access The predetermined message received is sent to the source terminal by interchanger;
The SDN controller deposits the information for the interchanger that the address information of the source terminal and the source terminal access It stores up to database.
Second aspect provides a kind of SDN controller, comprising:
Flow table processing unit sends initial flow table for all interchangers into SDN network;
Receiving unit, the ARP message sent according to the initial flow table for receiving the interchanger of source terminal access and The information of the interchanger of source terminal access;Wherein the ARP message is sent by source terminal, and the feature letter of the ARP message Breath includes: the address information of the source terminal;
Flow table processing unit is also used to the information of the interchanger according to the received source terminal access of the receiving unit And the address information of source terminal, the interchanger of Xiang Suoshu source terminal access send predetermined flow table, the predetermined flow table is for referring to Show that the predetermined message received is sent to the source terminal by the interchanger of the source terminal access;
Storage unit, for depositing the information of the address information of the source terminal and the interchanger of source terminal access It stores up to database.
In the above scheme, all interchangers of the SDN controller into SDN network send initial flow table;Source terminal is to source The interchanger of terminal access sends ARP message, and the characteristic information of ARP message includes: the address information of source terminal;Source terminal access Interchanger the information of the interchanger that ARP message and source terminal access is sent to SDN controller according to initial flow table;SDN control The information for the interchanger that device processed is accessed according to source terminal and the address information of source terminal, the interchanger accessed to source terminal are sent The predetermined message received is sent to source terminal by predetermined flow table, the interchanger that predetermined flow table is used to indicate source terminal access;SDN Controller stores the information for the interchanger that the address information of source terminal and source terminal access to database;In the above process In, the address information that SDN controller is capable of source terminal generates corresponding flow table, and by the address information and source terminal of the source terminal The information of the interchanger of access is recorded in the database of SDN controller, while flow table being only issued to and is connect with the source terminal Access switch on, other unrelated interchangers not by this source terminal access network influenced, avoid SDN controller simultaneously Flow table is issued on all interchangers not need the terminal of communication, to improve SDN network in processing communication terminal access Efficiency in the process, while improving the utilization efficiency of OpenFlow interchanger flow table resource.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be in embodiment or description of the prior art Required attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the invention Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 provides a kind of structure chart of communication system for the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the control method of SDN network provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of SDN controller provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The system architecture and business scenario of description of the embodiment of the present invention are to more clearly illustrate implementation of the present invention The technical solution of example, does not constitute the restriction for technical solution provided in an embodiment of the present invention, those of ordinary skill in the art It is found that technical solution provided in an embodiment of the present invention is for similar with the differentiation of system architecture and the appearance of new business scene The technical issues of, it is equally applicable.
The above method is described in detail combined with specific embodiments below.Shown in referring to Fig.1, the embodiment of the present invention is answered For following communication system, comprising: SDN controller and three interchanger SW1-SW3, wherein the port P1-1 and SDN of SW1 Controller connection, the port P2-1 connection of the port P1-2 and SW2 of SW1, the port P3-1 connection of the port P1-3 and SW3 of SW1, The port P2-2 of SW2 is connect with terminal 1, and the port P2-3 of SW2 is connect with terminal 2, and the port P3-2 of SW3 is connect with terminal 3.When Right above system is only an example, wherein two terminals being in communication with each other in any SDN network can be limited to two In kind situation, i.e., two terminals connect an interchanger simultaneously, i.e., terminal 1 and terminal 2 are all connected with SW2 as shown in figure 1;Or two Terminal is separately connected different interchangers, i.e., terminal 1 as shown in figure 1 connects SW2, terminal 3 connects SW3, wherein shown in fig. 1 The topological structure of SDN network is only a kind of example, can be that the topological structure of existing any SDN network is suitable for this immediately Application.It in following scheme, is illustrated with following specific example, wherein the ID of SW1 is 0001, the ID of SW2 is 0002, SW3 ID is 0003.In a kind of scene, when two terminals connect an interchanger simultaneously, with terminal 1 be source terminal in following scheme, With terminal 2 for purpose terminal, wherein the IP of terminal 1 is 10.0.0.1, MAC 00:01:7a:00:00:01, and the IP of terminal 2 is 10.0.0.2, MAC 00:01:7a:00:00:02, the IP of terminal 3 are 10.0.0.3, MAC 00:01:7a:00:00:03.
In conjunction with above-mentioned communication system, the embodiment of the present invention provides a kind of control method of SDN network, referring to Fig. 2 institute Show, includes the following steps:
All interchangers of S101, SDN controller into SDN network send initial flow table.
Wherein, in step 101, SDN controller is by the control channel between respective switch, all friendships into network It changes planes and issues following initial flow table, access SDN network for subsequent communications device end and be ready, under related streams indicate for example:
Flow table 1-1:etherType=0x0806action=output to controller;Meaning is matching message Type is the Ethernet message of " 0x0806 ", submits SDN controller;Interchanger receives all ARP protocols to flow table 1-1 for identification These messages are submitted Switch control plane by message, submit SDN controller by control channel by interchanger.
Flow table 1-2:pktType=any action=drop;Meaning be and all unmatched message of remaining flow entry, hand over It changes planes and directly abandons this message.Flow table 1-2 is for handling exception message, to avoid these exception messages from controlling interchanger, SDN Device causes unnecessary burden, and interchanger is directly abandoned these messages.
The interchanger that S102, source terminal are accessed to source terminal sends ARP message, and the characteristic information of ARP message includes: source end The address information at end.
The interchanger that S103, source terminal access sends ARP message to SDN controller according to initial flow table and source terminal connects The information of the interchanger entered.
Interchanger receives the message issued by terminal, extracts the characteristic information of message, and searched using these characteristic informations, Match the machine flow table item.When the message that terminal issues is ARP message, on flow table 1-1, the ARP message of matching initial flow table Hand over SDN controller.
The information for the interchanger that S104, SDN controller are accessed according to source terminal and the address information of source terminal, to source end Terminate into interchanger send predetermined flow table, predetermined flow table is used to indicate the predetermined report that the interchanger of source terminal access will receive Text is sent to source terminal.
In step S104, SDN controller does following processing to ARP message:
The address information (sMAC, sIP) of the source terminal carried in ARP message is extracted, the corresponding reception of ARP message is extracted and hands over It changes planes the information of the interchanger of access (rcvSwitch, i.e. source terminal), wherein the information of the interchanger of source terminal access can wrap It includes: the receiving port (port that rcvPort, i.e. terminal are connect with rcvSwitch) of the ID and ARP message of rcvSwitch.Make Flow table needed for generating data forwarding with above- mentioned information, is issued to the access switch being directly connected to terminal (rcvSwitch), a kind of example of predetermined flow table is as follows:
Flow table 2-1:dst=sIP type=IPv4 action=output to rcvPort;It is controlled in flow table 2-1 Under, all IPv4 messages that the interchanger of source terminal receives are connected, if its purpose IP address is the IP address of source terminal (sIP) when, IPv4 message is directly sent to source terminal by the corresponding access interface rcvPort of source terminal by interchanger.
S105, SDN controller store the information for the interchanger that the address information of source terminal and source terminal access to number According to library.
Using the information of the interchanger of source terminal access in step S104 and the address information of source terminal, controlled in SDN Communications device terminal database such as following table 2-1 is locally created in device:
In the above scheme, all interchangers of the SDN controller into SDN network send initial flow table;Source terminal is to source The interchanger of terminal access sends ARP message, and the characteristic information of ARP message includes: the address information of source terminal;Source terminal access Interchanger the information of the interchanger that ARP message and source terminal access is sent to SDN controller according to initial flow table;SDN control The information for the interchanger that device processed is accessed according to source terminal and the address information of source terminal, the interchanger accessed to source terminal are sent The predetermined message received is sent to source terminal by predetermined flow table, the interchanger that predetermined flow table is used to indicate source terminal access;SDN Controller stores the information for the interchanger that the address information of source terminal and source terminal access to database;In the above process In, the address information that SDN controller is capable of source terminal generates corresponding flow table, and by the address information and source terminal of the source terminal The information of the interchanger of access is recorded in the database of SDN controller, while flow table being only issued to and is connect with the source terminal Access switch on, other unrelated interchangers not by this source terminal access network influenced, avoid SDN controller simultaneously Flow table is issued on all interchangers not need the terminal of communication, to improve SDN network in processing communication terminal access Efficiency in the process, while improving the utilization efficiency of OpenFlow interchanger flow table resource.
In another enforceable scheme, the characteristic information of the ARP message includes: the address information of purpose terminal. Further include following steps referring to shown in Fig. 3:
S106, SDN controller inquire the exchange of purpose terminal access according to the address information of purpose terminal in the database The information of machine.
S107, when SDN controller inquire purpose terminal access interchanger information when, by ARP message and purpose The information of the interchanger of terminal access is sent to the interchanger of purpose terminal access.
The information for the interchanger that the interchanger that S108, purpose terminal access is accessed according to purpose terminal sends ARP message To purpose terminal.
When wherein ARP message is ARP request message, mesh can be sent to for ARP request message by executing step S101-S108 Terminal, later purpose terminal according to ARP request message generate arp response message, and be sent to purpose terminal access exchange Machine, executing S101-S108 for arp response message later can be completed ARP request and response.
In addition, ARP message is ARP request message;When information of the SDN controller inquiry less than purpose terminal, SDN control Device sends the information of the interchanger of ARP request message and the access of purpose terminal to all interchangers.ARP message is arp response Message, when information of the SDN controller inquiry less than the interchanger that purpose terminal accesses, SDN controller abandons arp response report Text.
In addition, in one embodiment, the information and purpose terminal of the interchanger that SDN controller is accessed according to source terminal When the information of the interchanger of access determines the interchanger of the non-source terminal access of the interchanger of purpose terminal access, SDN controller root It is generated between purpose terminal and source terminal according to the topological structure of the interchanger of the interchanger and source terminal access of purpose terminal access Communication path, interchanger on communication path sends the forwarding flow table between source terminal and purpose terminal.
When terminal is initiated to arrive the communication of another terminal by ARP request message or arp response message, SDN controller By inquiring this table 2-1, judge whether the interchanger of the corresponding access of two terminals is same interchanger, for example distinct device, then Enter bridge into switch communication path establish state, the groundwork of SDN controller is as follows: according to purpose terminal access Interchanger and source terminal access connection relationship of the interchanger in topological structure, generation bridges into switch communication path, All transmission switching mechanisms on the path are positioned, issue source terminal forwarding flow table corresponding with purpose terminal for transmission switching mechanism. Source terminal forwarding corresponding with purpose terminal is issued respectively for the interchanger of purpose terminal access and the interchanger of source terminal access Flow table, wherein the terminal that a correspondence locally accesses, another corresponds to the terminal of distance connection.
Illustratively, SDN controller is the interchanger of purpose terminal access, the interchanger of source terminal access and two friendships Transmission switching mechanism between changing planes issues source terminal respectively and communicates required forwarding flow table with purpose terminal, and completion is bridged into exchange Machine communication path is established.By taking n-th in table 2-1 is purpose terminal as an example, the interchanger sw-0032 of purpose terminal access, source are whole Terminate into interchanger sw-1 final flow table is as follows after this period:
The interchanger of source terminal access:
Dst=sIP type=IPv4 action=output to rcvPort
Dst=sIPn type=IPv4 action=output to sw-0032
EthType=ARP action=trap to controller
OtherPkts action=drop.
The interchanger of purpose terminal access:
Dst=sIPn type=IPv4 action=output to port01
Dst=sIP type=IPv4 action=output to sw-1
EthType=ARP action=trap to controller
OtherPkts action=drop.
Specifically, communication system shown in referring to Fig.1, provides and controlled between a kind of terminal 1 and terminal 2 by SW and SDN Device processed establishes the detailed process of OpenFlow session:
S201, SDN controller issue identical initial flow table to SW1-3.
Wherein, initial flow table includes the following:
Flow table 3-1:etherType=0x0806action=output to controller
Flow table 3-2:pktType=any action=drop
Wherein, flow table 3-1 and flow table 3-2 is identical as the principle of flow table 2-1 and 2-2, specifically repeats no more.
By taking terminal 1 initiates communication request to terminal 2 as an example:
S202, terminal 1 send ARP request message to SW2.
Message content is as follows:
S203, SW2 receive ARP request message by port P2-2.
S204, SW2 match input traffic using initial flow table (flow table 3-1), will be sent to SW2 on this ARP request message Switch control plane;The control plane of SW2 by ARP request message, message desampler SW2 ID (0002), receive Port (P2-2), is encapsulated as OpenFlow message, submits SDN controller by control channel.
S205, SDN controller receive the OpenFlow message that SW2 is issued by control channel, and parse this OpenFlow Message obtains ARP request message, the ID (0002) of message desampler SW2, receiving port (P2-2), and from ARP request report Hardware address (MAC:00:01:7a:00:00:01), the IP address (10.0.0.1) of terminal 1 are obtained in text.
S206, SDN controller issue predetermined flow table to SW2.
Illustrative predetermined flow table are as follows: flow table 4-1:dst IP=10.0.0.1 type=0x0800 action= output port:P2-2。
S207, SDN controller store the information of the address information of terminal 1 and source SW2 to database.
Illustratively, SDN controller is that terminal 1 creates terminal database list item -1
S208, SDN controller obtain the IP address (10.0.0.2) of terminal 2, and using terminal 2 from ARP request message IP address inquire database, handled respectively according to query result difference as follows.
If S209, SDN controller obtain ID (0002), the receiving port of the interchanger SW2 of the access of terminal 2 from database ID (P2-3), thens follow the steps S210.
S210, SDN controller Reseal ARP request message using OpenFlow agreement, generate OpenFlow message.Its It may include: the ID (0002) of the interchanger (SW2) of ARP request message and the access of terminal 2 in middle OpenFlow message, receive Port id (P2-3).
S211, SDN controller are sent to interchanger SW2 by the control channel between SW2, by OpenFlow message.
S212, SW2 parse received OpenFlow message, ARP request message therein are extracted, by receiving port ID (P2- 3) it is sent to terminal 2.
In this example, if terminal 2 is not yet online, in the database without corresponding table item.If therefore, S208 inquiry failure, then Execute step S213.
S213, SDN controller Reseal ARP request message using OpenFlow agreement, generate OpenFlow message, and It is sent from the interchanger of control channel all access terminals into network.
After step S213, after the OpenFlow message that each interchanger parsing receives, ARP request report therein is extracted Text is sent to the terminal of its access by receiving port (receiving port for wherein receiving this ARP request message does not retransmit).Its It may include: the ID (0002) of the interchanger (SW2) of ARP request message and the access of terminal 2 in middle OpenFlow message, receive Port id (P2-2).In the present embodiment, access switch SW2 sends this OpenFlow message by receiving port P2-3;Access is handed over The SW3 that changes planes by receiving port P3-2 sends this OpenFlow message.
The ARP request message that terminal 2 responds terminal 1 specifically comprises the following steps:
S301, terminal 2 generate arp response message according to ARP protocol specification.Arp response message format is as follows:
S302, SW2 are received the arp response message that terminal 2 issues by receiving port P2-3.
S303, SW2 match input traffic using initial flow table (flow table 3-1), will be sent to SW2 on this arp response message Switch control plane, control plane is by the arp response message submitted, ID (0002), the receiving port (P2- of message SW2 3) it, is encapsulated into OpenFlow message, SDN controller is submitted by control channel.
S303, SDN controller receive the OpenFlow message that SW2 is sent by control channel, this OpenFlow message obtains Arp response message, the ID (0002) of message desampler SW2, receiving port (P2-2) are taken, and is obtained from arp response message Obtain hardware address (MAC:00:01:7a:00:00:02), the IP address (10.0.0.2) of terminal 2.
S304, SDN controller issue predetermined flow table to SW2.
Illustrative predetermined flow table are as follows: flow table 4-2:dst IP=10.0.0.2 type=0x0800 action= Output port=P2-3
S305, SDN controller store the information of the address information of terminal 2 and SW2 to database.
Illustratively, SDN controller is that terminal 2 creates terminal database list item -2
S306, SDN controller obtain the IP address (10.0.0.1) of terminal 1, and using terminal 1 from arp response message IP address inquire database, handled respectively according to query result difference as follows.
If S307, SDN controller obtain ID (0002), the receiving port of the interchanger SW2 of the access of terminal 1 from database ID (P2-2), thens follow the steps S308.
S308, SDN controller Reseal arp response message using OpenFlow agreement, generate OpenFlow message.Its It may include: the ID (0002) of the interchanger (SW2) of arp response message and the access of terminal 1 in middle OpenFlow message, receive Port id (P2-2).
S309, SDN controller are sent to interchanger SW2 by the control channel between SW2, by OpenFlow message.
S310, SW2 parse received OpenFlow message, arp response message therein are extracted, by receiving port ID (P2- 2) it is sent to terminal 2.If S306 inquiry failure, abandons this OpenFlow message, no longer progress subsequent processing.
So far, the ARP between terminal 1 and terminal 2 is interacted to accuse and be completed.SDN controller judges source terminal with mesh terminal Corresponding access switch, the two are same interchanger (SW2), are not further processed.
If the non-same interchanger of interchanger of the interchanger of source terminal access with mesh terminal access, also needs to execute access Interchanger between communication path establishment process, be illustrated so that terminal 1 establishes communication channel with terminal 3 as an example:
S401, terminal 1 send ARP request message to terminal 3.
The process is initiated communication request process flow to terminal 2 with terminal 1 in step S201-S213 and is completed unanimously.Processing After the completion, it is written into SW2 such as downstream table:
Flow table 5-1:dst IP=10.0.0.1 type=0x0800 action=output port=P2-2
Terminal database list item -1 also is created for terminal 1 in SDN controller
Wherein, in S401, the process of step S211 and S212 could alternatively be: SDN controller passes through between SW3 OpenFlow message is sent to interchanger SW3 by control channel.SW3 parses received OpenFlow message, extracts therein ARP request message is sent to terminal 3 by receiving port ID (P3-2).Step S213 could alternatively be the use of SDN controller OpenFlow agreement Reseals ARP request message, generates OpenFlow message, and all accesses into network from control channel The interchanger of terminal is sent.Later, after the OpenFlow message that each interchanger parsing receives, ARP request report therein is extracted Text is sent to the terminal of its access by receiving port (receiving port for wherein receiving this ARP request message does not retransmit).Its It may include: the ID (0003) of the interchanger (SW3) of ARP request message and the access of terminal 3 in middle OpenFlow message, receive Port id (P3-2).In the present embodiment, access switch SW2 sends this OpenFlow message by receiving port P2-3;Access is handed over The SW3 that changes planes by receiving port P3-2 sends this OpenFlow message.
S402, terminal 3 send arp response message to terminal 1.
The process flow of the step is consistent with the arp response message that access switch switch2 receives the transmission of terminal 2, Step S301-S310 can be referred to.
The wherein ID (0003) of message SW3, receiving port (P3-2), arp response message in OpenFlow message in S303 The hardware address (00:01:7a:00:00:03) of the terminal 3 of middle acquisition, IP address (10.0.0.3).SDN controller is to SW3 It is as follows that terminal 3 issues forwarding flow table:
Flow table 5-2:dst IP=10.0.0.3 type=0x0800 action=output port=P3-2
SDN controller is that terminal 3 creates terminal database list item -3
The target ip address of the arp response message, that is, address terminal 1IP (10.0.0.1), the IP address inquiry of using terminal 1 Database obtains ID (0002), the receiving port ID (P2-2) of the corresponding interchanger SW2 of terminal 2 from database.SDN control Device Reseals arp response message using OpenFlow agreement and generates OpenFlow message, and by control channel, after encapsulation OpenFlow message be sent to target access switch SW2, after the OpenFlow message that SW2 parsing receives, extract wherein Arp response message, terminal 1 is sent to by receiving port P2-2.
When S503, SDN controller determine SW2 and SW3 non-same interchanger according to the information of SW2 and the information of SW3, SDN Controller generates the communication path between terminal 1 and terminal 3, the exchange on communication path according to the topological structure of SW2 and SW3 Machine (SW1, SW2 and SW3) sends the forwarding flow table between terminal 1 and terminal 3.
Illustratively, terminal 3 is issued such as downstream table to SW2:
Flow table 5-3:dst IP=10.0.0.3 type=0x0800 action=output port=P2-1
Terminal 1 is issued such as downstream table to SW2:
Flow table 5-4:dst IP=10.0.0.1 type=0x0800 action=output port=P3-1
To SW1, terminal 1, terminal 3 are issued respectively such as downstream table:
Flow table 5-5:dst IP=10.0.0.1 type=0x0800 action=output port=P1-2
Flow table 5-6:dst IP=10.0.0.3 type=0x0800 action=output port=P1-3
So far, terminal 1 and terminal 3 realize bridge into the communication channel of interchanger establish.
The embodiment of the present invention referring to shown in Fig. 3 provides a kind of SDN controller, comprising:
Flow table processing unit 31 sends initial flow table for all interchangers into SDN network;
Receiving unit 32, for receive the interchanger of source terminal access according to the ARP message that the initial flow table is sent with And the information of the interchanger of source terminal access;Wherein the ARP message is sent by source terminal, and the feature of the ARP message Information includes: the address information of the source terminal;
Flow table processing unit 31, the interchanger for being also used to be accessed according to the received source terminal of the receiving unit 32 The address information of information and source terminal, the interchanger of Xiang Suoshu source terminal access send predetermined flow table, and the predetermined flow table is used The predetermined message received is sent to the source terminal in the interchanger for indicating the source terminal access;
Storage unit 33, the information of the interchanger for accessing the address information of the source terminal and the source terminal It stores to database.
Optionally, the characteristic information of the ARP request includes: the address information of the purpose terminal;Further include:
Query unit 34, it is whole for inquiring the purpose in the database according to the address information of the purpose terminal Terminate into interchanger information;
Transmission unit 35 is also used to inquire the information of the interchanger of the purpose terminal access when the query unit 34 When, the information for the interchanger that the ARP message and the purpose terminal access is sent to the friendship of the purpose terminal access It changes planes, the information of the interchanger accessed according to the purpose terminal so as to the interchanger of purpose terminal access is by the ARP Message is sent to the purpose terminal.
Optionally, the ARP message is ARP request message;The transmission unit 35 is also used to when the query unit 34 When inquiring the information less than the purpose terminal, Xiang Suoyou interchanger sends the ARP request message and the purpose terminal The information of the interchanger of access.
Optionally, the ARP message is arp response message, and the transmission unit 35 is also used to when the query unit 34 When inquiring the information of the interchanger accessed less than the source terminal, the arp response message is abandoned.
Optionally, the flow table processing unit 31 is also used to be accessed according to the source terminal the information of interchanger and described The information of the interchanger of purpose terminal access determines the exchange of the non-source terminal access of the interchanger of the purpose terminal access When machine, the mesh is generated according to the topological structure of the interchanger of purpose terminal access and the interchanger of source terminal access Terminal and source terminal between communication path, the interchanger on Xiang Suoshu communication path sends the source terminal and the purpose Forwarding flow table between terminal.
In the above scheme, all interchangers of the SDN controller into SDN network send initial flow table;Source terminal is to source The interchanger of terminal access sends ARP message, and the characteristic information of ARP message includes: the address information of source terminal;Source terminal access Interchanger the information of the interchanger that ARP message and source terminal access is sent to SDN controller according to initial flow table;SDN control The information for the interchanger that device processed is accessed according to source terminal and the address information of source terminal, the interchanger accessed to source terminal are sent The predetermined message received is sent to source terminal by predetermined flow table, the interchanger that predetermined flow table is used to indicate source terminal access;SDN Controller stores the information for the interchanger that the address information of source terminal and source terminal access to database;In the above process In, the address information that SDN controller is capable of source terminal generates corresponding flow table, and by the address information and source terminal of the source terminal The information of the interchanger of access is recorded in the database of SDN controller, while flow table being only issued to and is connect with the source terminal Access switch on, other unrelated interchangers not by this source terminal access network influenced, avoid SDN controller simultaneously Flow table is issued on all interchangers not need the terminal of communication, to improve SDN network in processing communication terminal access Efficiency in the process, while improving the utilization efficiency of OpenFlow interchanger flow table resource.
In addition, a kind of calculating readable media (or medium) is also provided, including carrying out in above-described embodiment when executed The computer-readable instruction of the operation of method.
In addition, also providing a kind of computer program product, including above-mentioned computer-readable media (or medium).
It should be understood that in various embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to execute suitable Sequence it is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention Process constitutes any restriction.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, it can be with It realizes by another way.For example, apparatus embodiments described above are merely indicative, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of equipment or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: read-only memory, English letter Claim: ROM), random access memory (full name in English: random access memory, English abbreviation: RAM), magnetic disk or light The various media that can store program code such as disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of control method of SDN network characterized by comprising
All interchangers of the SDN controller into SDN network send initial flow table;
The interchanger that source terminal is accessed to the source terminal sends ARP message, and the characteristic information of the ARP message includes: described The address information of source terminal;
The interchanger of source terminal access according to the initial flow table to the SDN controller send the ARP message and The information of the interchanger of the source terminal access;
The information for the interchanger that the SDN controller is accessed according to the source terminal and the address information of the source terminal, to The interchanger of the source terminal access sends predetermined flow table, and the predetermined flow table is used to indicate the interchanger of the source terminal access The predetermined message received is sent to the source terminal;
The SDN controller by the information for the interchanger that the address information of the source terminal and the source terminal access store to Database.
2. the method according to claim 1, wherein the characteristic information of the ARP message includes: that the purpose is whole The address information at end;The method also includes:
The SDN controller is inquired the purpose terminal according to the address information of the purpose terminal in the database and is accessed Interchanger information;
When the SDN controller inquires the information of the interchanger of the purpose terminal access, by the ARP message and institute The information for stating the interchanger of purpose terminal access is sent to the interchanger of the purpose terminal access;
The information for the interchanger that the interchanger of the purpose terminal access is accessed according to the purpose terminal sends out the ARP message It send to the purpose terminal.
3. according to the method described in claim 2, it is characterized in that, the ARP message is ARP request message;When the SDN is controlled When device processed inquires the information less than the purpose terminal, the method also includes:
The SDN controller sends the ARP request message to the interchanger of all access terminals and the purpose terminal connects The information of the interchanger entered.
4. according to the method described in claim 2, it is characterized in that, the ARP message is arp response message, when the SDN is controlled When device processed inquires the information of the interchanger accessed less than the purpose terminal, the SDN controller abandons the arp response report Text.
5. according to the method described in claim 2, it is characterized in that, the method also includes:
The interchanger that the information for the interchanger that the SDN controller is accessed according to the source terminal and the purpose terminal access When information determines the interchanger of the non-source terminal access of the interchanger of purpose terminal access, the SDN controller according to The topological structure of the interchanger of the interchanger and source terminal access of purpose terminal access generate the purpose terminal and Communication path between source terminal, the interchanger on Xiang Suoshu communication path are sent between the source terminal and the purpose terminal Forwarding flow table.
6. a kind of SDN controller characterized by comprising
Flow table processing unit sends initial flow table for all interchangers into SDN network;
Receiving unit, the interchanger for receiving source terminal access are whole according to the ARP message of the initial flow table transmission and source Terminate into interchanger information;Wherein the ARP message is sent by source terminal, and the characteristic information packet of the ARP message It includes: the address information of the source terminal;
Flow table processing unit, be also used to according to the information of the interchanger of the received source terminal access of the receiving unit and The interchanger of the address information of source terminal, the access of Xiang Suoshu source terminal sends predetermined flow table, and the predetermined flow table is used to indicate institute The predetermined message received is sent to the source terminal by the interchanger for stating source terminal access;
Storage unit, for by the address information of the source terminal and the source terminal access interchanger information store to Database.
7. SDN controller according to claim 6, which is characterized in that the characteristic information of the ARP request includes: described The address information of purpose terminal;Further include:
Query unit is accessed for inquiring the purpose terminal in the database according to the address information of the purpose terminal Interchanger information;
Transmission unit is also used to when the query unit inquires the information of the interchanger of the purpose terminal access, by institute The information for stating the interchanger of ARP message and purpose terminal access is sent to the interchanger of the purpose terminal access, with The information for the interchanger that the interchanger that toilet states the access of purpose terminal is accessed according to the purpose terminal sends the ARP message To the purpose terminal.
8. SDN controller according to claim 7, which is characterized in that the ARP message is ARP request message;The hair Unit is sent to be also used to when the query unit inquires the information less than the purpose terminal, described in the transmission of Xiang Suoyou interchanger The information of ARP request message and the interchanger of purpose terminal access.
9. SDN controller according to claim 7, which is characterized in that the ARP message is arp response message, the hair Unit is sent to be also used to abandon the ARP when the query unit inquires the information of the interchanger accessed less than the source terminal Response message.
10. SDN controller according to claim 7, which is characterized in that the flow table processing unit is also used to according to The information of the interchanger of the information and purpose terminal access of the interchanger of source terminal access determines the purpose terminal access The non-source terminal access of interchanger interchanger when, connect according to the interchanger of purpose terminal access and the source terminal The topological structure of the interchanger entered generates the communication path between the purpose terminal and source terminal, on Xiang Suoshu communication path Interchanger sends the forwarding flow table between the source terminal and the purpose terminal.
CN201711025688.9A 2017-10-27 2017-10-27 SDN network control method and SDN controller Active CN109729026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711025688.9A CN109729026B (en) 2017-10-27 2017-10-27 SDN network control method and SDN controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711025688.9A CN109729026B (en) 2017-10-27 2017-10-27 SDN network control method and SDN controller

Publications (2)

Publication Number Publication Date
CN109729026A true CN109729026A (en) 2019-05-07
CN109729026B CN109729026B (en) 2020-12-01

Family

ID=66291061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711025688.9A Active CN109729026B (en) 2017-10-27 2017-10-27 SDN network control method and SDN controller

Country Status (1)

Country Link
CN (1) CN109729026B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938794A (en) * 2012-11-14 2013-02-20 华为技术有限公司 Address resolution protocol (ARP) message forwarding method, exchanger and controller
CN103825954A (en) * 2014-03-10 2014-05-28 中国联合网络通信集团有限公司 OpenFlow control method and corresponding insert, platform and network thereof
CN103905577A (en) * 2012-12-28 2014-07-02 中兴通讯股份有限公司 Address resolution protocol message processing method and system
CN103905317A (en) * 2012-12-28 2014-07-02 中兴通讯股份有限公司 Message processing method and system for software-defined network
CN104301238A (en) * 2014-10-17 2015-01-21 福建星网锐捷网络有限公司 Message processing method, device and system
US20150071289A1 (en) * 2013-09-11 2015-03-12 Electronics And Telecommunications Research Institute System and method for address resolution
CN105340227A (en) * 2014-06-03 2016-02-17 华为技术有限公司 Method, controller, switch and system for transmitting information between openflow tables
US20160337231A1 (en) * 2013-08-07 2016-11-17 International Business Machines Corporation Software defined network (sdn) switch clusters having layer-3 distributed router functionality

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938794A (en) * 2012-11-14 2013-02-20 华为技术有限公司 Address resolution protocol (ARP) message forwarding method, exchanger and controller
CN103905577A (en) * 2012-12-28 2014-07-02 中兴通讯股份有限公司 Address resolution protocol message processing method and system
CN103905317A (en) * 2012-12-28 2014-07-02 中兴通讯股份有限公司 Message processing method and system for software-defined network
US20160337231A1 (en) * 2013-08-07 2016-11-17 International Business Machines Corporation Software defined network (sdn) switch clusters having layer-3 distributed router functionality
US20150071289A1 (en) * 2013-09-11 2015-03-12 Electronics And Telecommunications Research Institute System and method for address resolution
CN103825954A (en) * 2014-03-10 2014-05-28 中国联合网络通信集团有限公司 OpenFlow control method and corresponding insert, platform and network thereof
CN105340227A (en) * 2014-06-03 2016-02-17 华为技术有限公司 Method, controller, switch and system for transmitting information between openflow tables
CN104301238A (en) * 2014-10-17 2015-01-21 福建星网锐捷网络有限公司 Message processing method, device and system

Also Published As

Publication number Publication date
CN109729026B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN104272684B (en) Dynamic Service insertion in Fabric interchangers
CN111835565A (en) Communication network optimization method, device and system based on digital twin
CN103051629B (en) Software defined network-based data processing system, method and node
CN105553849B (en) A kind of traditional IP and SPTN network intercommunication method and system
CN103391296B (en) A kind of controller, transponder and Path Setup method and system
CN105262683A (en) Network system and method of controlling path
CN107801249A (en) The resource allocation methods and its equipment and system of wireless communication system
CN104618244A (en) SDN network and traditional IP network intercommunicating method and system
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
CN103347013A (en) OpenFlow network system and method for enhancing programmable capability
CN101640645B (en) Message transmission method and system
CN104936254B (en) Wireless network seamless handoff method and its device based on software defined network
CN106487837B (en) The method and apparatus for being sent into network and obtaining target data from network
JP5858147B2 (en) COMMUNICATION SYSTEM, UPPER LAYER SWITCH, CONTROL DEVICE, SWITCH CONTROL METHOD, AND PROGRAM
CN105516025B (en) Path clustering and data transmission method, OpenFlow controller and interchanger end to end
JP2005167435A (en) Vrrp technology sustaining confidentiality of vr
CN105634923B (en) Ethernet based on SDN controllers broadcasts optimized treatment method
JP2020510342A (en) Method and apparatus for modular routing of AVB streams
CN108989273A (en) A kind of method and apparatus obtaining video flowing
CN105637806B (en) Network topology determines method and apparatus, centralized network status information storage equipment
CN109788369A (en) Terminal control method and device
CN101110780A (en) Method, device and system for transmitting control data flow
CN108833284B (en) Communication method and device for cloud platform and IDC network
CN113965470B (en) Aviation information network experiment simulation system
CN100359893C (en) Method for realizing address translation application gateway by host mode

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
CP02 Change in the address of a patent holder

Address after: 610041 nine Xing Xing Road 16, hi tech Zone, Sichuan, Chengdu

Patentee after: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 610041, 17 floor, maple building, 1 building, 288 Tianfu street, Chengdu, Sichuan.

Patentee before: MAIPU COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder