CN106357535A - Issuing method, system and controller of SDN flow table - Google Patents

Issuing method, system and controller of SDN flow table Download PDF

Info

Publication number
CN106357535A
CN106357535A CN201610749407.3A CN201610749407A CN106357535A CN 106357535 A CN106357535 A CN 106357535A CN 201610749407 A CN201610749407 A CN 201610749407A CN 106357535 A CN106357535 A CN 106357535A
Authority
CN
China
Prior art keywords
flow table
sdn
packet
data base
local data
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.)
Pending
Application number
CN201610749407.3A
Other languages
Chinese (zh)
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.)
Guangzhou Vcmy Technology Co Ltd
Original Assignee
Guangzhou Vcmy 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 Guangzhou Vcmy Technology Co Ltd filed Critical Guangzhou Vcmy Technology Co Ltd
Priority to CN201610749407.3A priority Critical patent/CN106357535A/en
Publication of CN106357535A publication Critical patent/CN106357535A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

The invention discloses an issuing method, system and controller of SDN flow table, comprising the following steps: calculating the flow table in advance, and storing in the local database; getting the data packet sent by the switch, and matching the data packet with the flow table in the local database; when matching the flow table corresponding to the data packet, invoking the flow table corresponding to the data packet from the local database and issuing to the switch. The embodiment of invention further provides an issuing device and controller of SDN flow table. Adopting the embodiment of the issuing method, system and controller of SDN flow table not just optimizes flow table storage resources of the switch, but improves issuing efficiency of the flow table.

Description

A kind of sdn flow table issuance method, system and controller
Technical field
The present invention relates to communication technical field, more particularly, to a kind of sdn flow table issuance method, system and controller.
Background technology
Software defined network (software-defined networking, sdn) is a kind of new network architectural framework. The packet repeating process that sdn framework will originally be completed by switch, router completely, be converted into by openflow switch and The self-contained process that controller is respectively completed, realizes separating network device control plane with datum plane, have can simultaneously The characteristic of programming, makes underlying infrastructure be conceptualized as application program and network service, it is achieved thereby that network traffics is flexible Control.
Sdn controller, as a kind of operating system of network, is responsible for, policy development etc., guarantees network intelligence with this Change, and switch is only responsible for expeditiously forwarding data, the foundation of its data forwarding is exactly flow table.Under the flow table of sdn controller Sending out has actively and passively both of which, and they have respective feature.The flow table issuance pattern of active utilizes pre-set Rule calculates substantial amounts of flow table issuance to switch;After packet reaches switch, switch first carries out flow table Join, further according to corresponding flow table item, packet is made with corresponding process action;Passive flow table issuance pattern then be for by Each packet setting work that switch uploads, formulates and issues flow table.
Content of the invention
From the foregoing, in the flow table issuance pattern of existing sdn controller, the flow table issuance pattern of active considers number According to the multiformity of stream, some flow table items are to configure in order to some specific questions occur, and its utilization rate ratio is relatively low, generally idle On switches, consume the storage resource of switch;And though passive flow table issuance pattern can more effectively utilize switch On flow table storage resource, but in processing procedure, the extra flow table setting time can be increased, the efficiency of its flow table issuance is not High.
For the problems referred to above, it is an object of the invention to provide a kind of sdn flow table issuance method, system and controller, no Only optimize the flow table storage resource of switch, also improve flow table issues efficiency.
The present invention provides a kind of sdn flow table issuance method, comprises the steps:
Precalculate flow table, and store in local data base;
Obtain the packet that switch sends, and the flow table in described packet and described local data base is carried out Join;
When matching flow table corresponding with described packet, call from described local data base and described packet phase The flow table answered simultaneously is handed down to described switch.
In technique scheme, by precalculating flow table, and store in the local database;When sdn network starts to transport When making, obtain the packet that switch sends, and described packet is mated with the flow table in described local data base;? When the match is successful, call the flow table of coupling from described local data base and be handed down to described switch;Not only optimize exchange The flow table storage resource of machine, also improve flow table issues efficiency.
Preferably, when not matching flow table corresponding with described packet, it is that described packet configures new flow table simultaneously It is handed down to described switch.
Preferably, described new flow table is sent in described local data base and is stored.
Preferably, described local data base adopts mysql data base.
The present invention also provides a kind of sdn flow table issuance device, comprising:
Flow table management module, is used for precalculating flow table, and stores in local data base;
Flow table matching module, for obtaining the packet of switch transmission, and by described packet and described local data Flow table in storehouse is mated;
Flow table sending module, for when matching flow table corresponding with described packet, from described local data base Call flow table corresponding with described packet and be handed down to described switch.
In technique scheme, described flow table management module precalculates flow table, and stores in the local database;When When sdn network comes into operation, described flow table matching module obtains the packet that switch sends, and by described packet with described Flow table in local data base is mated;When the match is successful, described flow table sending module is adjusted from described local data base With coupling flow table and be handed down to described switch;Not only optimize the flow table storage resource of switch, also improve flow table Issue efficiency.
Preferably, described sdn flow table issuance device also includes:
Flow table configuration module, for when not matching flow table corresponding with described packet, being described packet configuration New flow table, and be sent to described flow table sending module so that described flow table sending module by described new flow table issuance to institute State switch.
Preferably, described flow table configuration module, is additionally operable to be sent in described local data base by described new flow table Row storage.
Preferably, described sdn flow table issuance device carries out data interaction using openflow agreement and described switch.
The present invention also provides a kind of controller, and described controller comprises sdn flow table issuance device described above.
Sdn flow table issuance method, system and controller that the present invention provides, have the advantages that by counting in advance Calculate flow table, and store in the local database;When sdn network comes into operation, obtain the packet that switch sends, and by institute State packet to be mated with the flow table in described local data base;When the match is successful, call from described local data base The flow table of coupling is simultaneously handed down to described switch.The technical scheme being provided using the present invention, not only optimizes the flow table of switch Storage resource, also improve flow table issues efficiency.
Brief description
In order to be illustrated more clearly that technical scheme, below by the accompanying drawing work to use required in embodiment Simply introduce it should be apparent that, drawings in the following description are only some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the embodiment of sdn flow table issuance method that the present invention provides.
Fig. 2 is the structural representation of the embodiment of sdn flow table issuance device that the present invention provides.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, the present invention provides an a kind of embodiment of sdn flow table issuance method, including step s11~s13, Specific as follows:
S11, precalculates flow table, and stores in local data base.
Specifically, calculate flow table using pre-set rule, and store in local data base.Preferably, Described local data base adopts mysql data base.Mysql is a kind of Relational DBMS of open source code, can Have cost to substantially reduce.Mysql can either apply in client server network ring as a single application program In border;Can be used as a storehouse and be embedded in other softwares and multilingual support is provided, such as c#, java, python, Perl, tcl etc.;The operating system of windows/linux/unix etc. main flow can also be supported.It is because its inquiry quickly Speed, high reliability and adaptability, become a preferable selection for managing, checking, optimizing database manipulation.Certainly, Described local data base may also be employed other data bases, and, all within protection scope of the present invention, here is not limited for these.
S12, obtains the packet that switch sends, and described packet is carried out with the flow table in described local data base Coupling.
Specifically, first, the packet that desampler sends, and obtain the matching field of described packet;Wherein, institute State matching field comprise source/destination mac (media access control, media access control) address, ethernet type, Vlan (virtual local area network, VLAN) id, source/destination ip address, ip agreement, ip tos (type-of-service, COS) and source/destination tcp/udp port;Then, classified according to described matching field Distinguish;Finally, flow table coupling is carried out to packet described in each class using pipeline processes technology;Wherein, at described streamline Reason technology is that well known to those skilled in the art, the present invention does not repeat.
It is understood that this step can also carry out flow table coupling using additive method, these are all the present invention's Within protection domain, the present invention is not particularly limited.
S13, when matching flow table corresponding with described packet, calls and described data from described local data base Wrap corresponding flow table and be handed down to described switch.
Preferably, described switch supports openflow agreement.
In one embodiment of the invention, described sdn flow table issuance method also includes: when not matching and described data When wrapping corresponding flow table, it is that described packet configures new flow table and is handed down to described switch.
In another embodiment of the present invention, described sdn flow table issuance method also includes: when not matching and described number During according to wrapping corresponding flow table, it is that described packet is formulated new flow table and is handed down to described switch;And by described new flow table It is sent in described local data base and stored.
To sum up, sdn flow table issuance method provided in an embodiment of the present invention, by precalculating flow table, and is stored in local In data base;When sdn network comes into operation, obtain the packet that switch sends, and described packet is local with described Flow table in data base is mated;When the match is successful, call the flow table of coupling from described local data base and be handed down to Described switch;Not only optimize the flow table storage resource of switch, also improve flow table issues efficiency.
Further, the embodiment of the present invention also provides a kind of sdn flow table issuance device, and executable above-described embodiment provides All flow processs of sdn flow table issuance method.
Refer to Fig. 2, be the structural representation of the embodiment of sdn flow table issuance device that the present invention provides.
The embodiment of the present invention provides a kind of sdn flow table issuance device 20, including flow table management module 21, flow table matching module 22 and flow table sending module 23, specific as follows:
Described flow table management module 21, is used for precalculating flow table, and stores in local data base.
Preferably, described local data base adopts mysql data base.
Described flow table matching module 22, for obtain switch transmission packet, and by described packet with described Flow table in ground data base is mated.
Described flow table sending module 23, for when matching flow table corresponding with described packet, from described local number According to calling flow table corresponding with described packet in storehouse and be handed down to described switch.
Preferably, described sdn flow table issuance device carries out data interaction using openflow agreement and described switch.
In one embodiment of the invention, described sdn flow table issuance device 20 also includes:
Flow table configuration module 24, for when not matching flow table corresponding with described packet, being that described packet is joined Put new flow table, and be sent to described flow table sending module, so that described new flow table issuance is given by described flow table sending module Described switch.
In another embodiment of the present invention, described flow table configuration module 24, is additionally operable to send described new flow table Stored in described local data base.
It is understood that the function of each functional module of sdn flow table issuance device 20 in the embodiment of the present invention can root Implement according to the method in said method embodiment, it implements process and is referred to the correlation of said method embodiment retouches State, here is omitted.
Additionally, the embodiment of the present invention also provides a kind of controller.Described controller comprises sdn flow table issuance dress described above Put 20.
Sdn flow table issuance method provided in an embodiment of the present invention, device and controller, have the advantages that and pass through Precalculate flow table, and store in the local database;When sdn network comes into operation, obtain the packet that switch sends, And described packet is mated with the flow table in described local data base;When the match is successful, from described local data base In call the flow table of coupling and be handed down to described switch.The technical scheme being provided using the present invention, not only optimizes switch Flow table storage resource, also improve flow table issues efficiency.
Above disclosed be only a kind of preferred embodiment of the present invention, certainly the power of the present invention can not be limited with this Sharp scope, one of ordinary skill in the art will appreciate that realize all or part of flow process of above-described embodiment, and according to present invention power Profit requires made equivalent variations, still falls within the scope that invention is covered.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, it is permissible Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium In, this program is upon execution, it may include as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (read-only memory, rom) or random access memory (random access Memory, ram) etc..

Claims (9)

1. a kind of sdn flow table issuance method is it is characterised in that comprise the steps:
Precalculate flow table, and store in local data base;
Obtain the packet that switch sends, and described packet is mated with the flow table in described local data base;
When matching flow table corresponding with described packet, call corresponding with described packet from described local data base Flow table is simultaneously handed down to described switch.
2. sdn flow table issuance method as claimed in claim 1 is not it is characterised in that ought match corresponding to described packet Flow table when, be the new flow table of described packet configuration and be handed down to described switch.
3. sdn flow table issuance method as claimed in claim 2 is it is characterised in that also include:
Described new flow table is sent in described local data base and is stored.
4. sdn flow table issuance method as claimed in claim 1 is it is characterised in that described local data base adopts mysql data Storehouse.
5. a kind of sdn flow table issuance device is it is characterised in that include:
Flow table management module, is used for precalculating flow table, and stores in local data base;
Flow table matching module, for obtaining the packet of switch transmission, and by described packet and described local data base Flow table mated;
Flow table sending module, for when matching flow table corresponding with described packet, calling from described local data base Flow table corresponding with described packet is simultaneously handed down to described switch.
6. sdn flow table issuance device as claimed in claim 5 is it is characterised in that described sdn flow table issuance device also includes:
Flow table configuration module is new for when not matching flow table corresponding with described packet, being described packet configuration Flow table, and it is sent to described flow table sending module, so that described new flow table issuance is given described friendship by described flow table sending module Change planes.
7. sdn flow table issuance device as claimed in claim 6 is it is characterised in that described flow table configuration module is additionally operable to:
Described new flow table is sent in described local data base and is stored.
8. the sdn flow table issuance device as described in any one of claim 5~7 is it is characterised in that described sdn flow table issuance fills Put and data interaction is carried out using openflow agreement and described switch.
9. a kind of controller is it is characterised in that described controller comprises under the sdn flow table as described in any one of claim 5~8 Transmitting apparatus.
CN201610749407.3A 2016-08-29 2016-08-29 Issuing method, system and controller of SDN flow table Pending CN106357535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610749407.3A CN106357535A (en) 2016-08-29 2016-08-29 Issuing method, system and controller of SDN flow table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610749407.3A CN106357535A (en) 2016-08-29 2016-08-29 Issuing method, system and controller of SDN flow table

Publications (1)

Publication Number Publication Date
CN106357535A true CN106357535A (en) 2017-01-25

Family

ID=57855692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610749407.3A Pending CN106357535A (en) 2016-08-29 2016-08-29 Issuing method, system and controller of SDN flow table

Country Status (1)

Country Link
CN (1) CN106357535A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395510A (en) * 2017-08-29 2017-11-24 迈普通信技术股份有限公司 Improve the method, apparatus and the network equipment of circulation volatility

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283785A (en) * 2014-10-29 2015-01-14 杭州华三通信技术有限公司 Method and device for processing flow table rapidly
CN104348716A (en) * 2013-07-23 2015-02-11 杭州华三通信技术有限公司 Message processing method and equipment
CN104506511A (en) * 2014-12-15 2015-04-08 蓝盾信息安全技术股份有限公司 Moving target defense system and moving target defense method for SDN (self-defending network)
CN105187325A (en) * 2015-10-27 2015-12-23 上海斐讯数据通信技术有限公司 SDN flow table management method, SDN flow table management system and switchboard

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348716A (en) * 2013-07-23 2015-02-11 杭州华三通信技术有限公司 Message processing method and equipment
CN104283785A (en) * 2014-10-29 2015-01-14 杭州华三通信技术有限公司 Method and device for processing flow table rapidly
CN104506511A (en) * 2014-12-15 2015-04-08 蓝盾信息安全技术股份有限公司 Moving target defense system and moving target defense method for SDN (self-defending network)
CN105187325A (en) * 2015-10-27 2015-12-23 上海斐讯数据通信技术有限公司 SDN flow table management method, SDN flow table management system and switchboard

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395510A (en) * 2017-08-29 2017-11-24 迈普通信技术股份有限公司 Improve the method, apparatus and the network equipment of circulation volatility

Similar Documents

Publication Publication Date Title
CN105634956B (en) A kind of message forwarding method, device and system
CN102882758B (en) Method, network side equipment and the data center apparatus of virtual private cloud access network
EP2562973B1 (en) Virtual machine migration method, switch, virtual machine system
US7593352B2 (en) Discovering MPLS VPN services in a network
CN107786613A (en) Broadband Remote Access Server BRAS forwards implementation method and device
CN109417517A (en) Data plane service is provided for application
US20150003296A1 (en) System and method for providing p2p based reconfigurable computing and structured data distribution
CN103026660A (en) Network policy configuration method, management device and network management centre device
CN105099898B (en) A kind of PPPOE message forwarding methods and BRAS servers
EP3731466A1 (en) Inter-data center software-defined network controller network
CN103703722A (en) Bootstrapping fault detection sessions over a p2mp tunnel
CN116980271A (en) Vendor-independent profile-based modeling of service access endpoints in a multi-tenant environment
CN104301230A (en) Message forwarding method and device
CN104580029B (en) Address distribution method and device
CN105791175A (en) Method and equipment for controlling transmission resources in software defined network SDN
CN104133776B (en) Storage array automatic configuration method, device and storage system
CN104919762B (en) Control method in software defined network, controls equipment and processor
WO2020125320A1 (en) Vdc-based route configuration method and apparatus, and device and readable storage medium
CN104135446A (en) System and method of implementing transition from IPv4 (Internet Protocol Version4) to IPv6 (Internet Protocol Version6) based on SDN (Software Defined Network)
CN104980355A (en) Source controllable multicast data transmission method and system thereof under SDN Environment
CN109743244A (en) A kind of system and method for realizing that high speed interconnects based on SDN and NFV technology
CN108833232A (en) A kind of pppoe client implementation method and pppoe client based on VPP
CN106105098A (en) Switch and the processing method of service request message
CN104780229A (en) Method of setting cloud server IP address through cloud terminal, system and cloud system
CN106161249B (en) The processing method and processing device of PPPoE message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170125

RJ01 Rejection of invention patent application after publication