CN104052687A - Method and device for controlling SDN switch - Google Patents
Method and device for controlling SDN switch Download PDFInfo
- Publication number
- CN104052687A CN104052687A CN201410283293.9A CN201410283293A CN104052687A CN 104052687 A CN104052687 A CN 104052687A CN 201410283293 A CN201410283293 A CN 201410283293A CN 104052687 A CN104052687 A CN 104052687A
- Authority
- CN
- China
- Prior art keywords
- order
- numbering
- message
- termination
- sdn controller
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and device for controlling an SDN switch. The method comprises the steps that a command termination message issued by an SDN controller is received, wherein a command serial number is carried in the command termination message; whether the execution of a command is completed or not is inquired according to the command serial number; when the execution of the command is not completed, the command is terminated, and a termination success message is returned to the SDN controller, wherein the command serial number is carried in the termination success message. According to the technical scheme, the processing efficiency of the SDN switch to the command is improved.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of SDN Switch control method and apparatus.
Background technology
Along with the development of Internet service, Internet service is shorter and shorter for the time requirement of disposing on the internet, such as a service deployment several years ago often needs the time of some months, but also will spend a large amount of manpowers.And a present Internet service may require, in the situation that dropping into a small amount of manpower, to complete deployment in several days.How Internet service of rapid deployment, this just relates to some new technology, such as SDN (Software Defined Network, software defined network) technology, under the model of SDN definition, can realize the deployment to business by the mode of software, thereby reduce human input, reduction of erection time.
SDN is a kind of new network innovation framework, adopt brand-new design concept, control plane is separated with datum plane, and the control plane being solidificated in the past in the network equipment is transferred in addressable computing equipment, thereby realize the flexible control to network traffics, for the innovation of core network and application provides good platform.
Summary of the invention
In view of this, the invention provides a kind of SDN Switch control method and apparatus.
Particularly, the present invention is achieved through the following technical solutions:
A kind of SDN Switch control method, is applied on SDN switch, and described method comprises:
Receive the order termination message that SDN controller issues, described order stops carrying order in message and numbers;
Whether be finished according to the described order of described order numbering inquiry;
In the time that described order is not finished, stop described order, and return to the successful message of termination to SDN controller, in described termination success message, carry described order numbering.
Further, described method also comprises:
In the time that described order has been finished, returns and stop error message to SDN controller.
Further, described method also comprises:
In the time not inquiring corresponding order according to described order numbering, order numbering described in buffer memory in termination list;
Before fill order, check the order numbering that whether is cached with pending order in described termination list;
If so, stop described pending order.
Further, stopping after described pending order, returning and stop successful message to SDN controller, and in described termination list, removing the order numbering of described pending order.
Further, in the time that described order numbering arrives buffer memory ageing time, return and stop error message to SDN controller for described order numbering, and in described termination list, remove described order numbering.
A kind of SDN Switch control device, is applied on SDN switch, and described device comprises:
Receiving element, the order termination message issuing for receiving SDN controller, described order stops carrying order in message and numbers;
Whether query unit, for being finished according to the described order of described order numbering inquiry;
Processing unit, in the time that described order is not finished, stops described order, and returns to the successful message of termination to SDN controller, in described termination success message, carries described order numbering.
Further, described processing unit, also in the time that described order has been finished, returns and stops error message to SDN controller.
Further, described device also comprises:
Buffer unit, in the time not inquiring corresponding order according to described order numbering, order numbering described in buffer memory in termination list;
Performance element, for before fill order, checks the order numbering that whether is cached with pending order in described termination list, if be cached with the order numbering of pending order in described termination list, stops described pending order.
Further, described processing unit, also, for stopping after described pending order, returns and stops successful message to SDN controller, and in described termination list, removes the order numbering of described pending order.
Further, described processing unit, also, in the time that described order numbering arrives buffer memory ageing time, returns and stops error message to SDN controller for described order numbering, and in described termination list, removes described order numbering.
Can be found out by above description, in the present invention, SDN controller is in the time that needs cancellation is handed down to the order of SDN switch, and transmitting order to lower levels stops message, and the order numbering that makes SDN switch to stop carrying in message according to described order stops corresponding order.Stop in time the unwanted order of SDN controller, improved the treatment effeciency of SDN switch to order, reduced order feedback unnecessary in Open Flow channel simultaneously, improved the interactive performance of Open Flow channel.
Brief description of the drawings
Fig. 1 is the flow chart of SDN Switch control method in an embodiment of the present invention.
Fig. 2 is the logical construction schematic diagram of SDN Switch control device in an embodiment of the present invention.
Embodiment
In the typical SDN network architecture, include SDN switch and SDN controller.SDN controller can pass through proprietary protocol, such as Open Flow agreement, directly accessed and manipulated the SDN switch of Forwarding plane by Open Flow channel.Open Flow channel provides more rigorous TCP (Transmission Control Protocol, transmission control protocol) interface channel, and the major part order that SDN controller issues can require opposite end SDN switch to return to execution result.
Current Open Flow channel is not supported the cancellation mechanism of order.Such as: SDN controller issues the order of a stream table inquiry to SDN switch, and SDN switch is carried out query manipulation after receiving this order, and Query Result is returned to SDN controller.In the time that SDN controller issues multiple order, SDN switch is carried out each order successively, before previous order is not finished, can not carry out Next Command.If SDN controller has issued three orders, be followed successively by: stream table inquiry, the amendment of stream table, the inquiry of stream table, what be understandable that so that SDN controller will obtain is the result of inquiry after the amendment of stream table, namely the result of stream table inquiry for the second time.But SDN switch can this inquiry of active termination before being finished at stream table querying command for the first time, the time delay that causes flowing for the second time table inquiry is very long, there will be wait timeout and the inquiry failure that causes in serious situation.Meanwhile, SDN switch also can active termination not return to stream table Query Result to SDN controller, has had a strong impact on the interactive performance of Open Flow channel.
In view of this, the invention provides a kind of SDN Switch control scheme, by Open Flow channel massage type is expanded, to realize the cancellation mechanism of order.
Be embodied as example with software below, describe specific implementation of the present invention in detail.SDN Switch control method provided by the invention, is applied on SDN switch.Please refer to Fig. 1, said method comprising the steps of:
Step 101, receives the order termination message that SDN controller issues, and described order stops carrying order in message and numbers.
Whether step 102, be finished according to the described order of described order numbering inquiry.If not, go to step 103, if so, go to step 104.
Step 103, in the time that described order is not finished, stops described order, and returns to the successful message of termination to SDN controller, in described termination success message, carries described order numbering.
Step 104, in the time that described order has been finished, returns and stops error message to SDN controller.
Can be found out by above step, in the present invention, SDN controller is in the time that needs cancellation is handed down to the order of SDN switch, and transmitting order to lower levels stops message, and the order numbering that makes SDN switch to stop carrying in message according to described order stops corresponding order.Stop in time the unwanted order of SDN controller, improved the treatment effeciency of SDN switch to order, reduced order feedback unnecessary in Open Flow channel simultaneously, improved the interactive performance of Open Flow channel.
Particularly, in SDN network, SDN controller may issue various command to SDN switch, such as: the inquiry of stream table, stream are shown amendment, stream table adds, flows list deletion etc.Issuing of described order can be that SDN controller issues automatically according to administrative staff's configuration, such as: issue once stream table querying command every predetermined time, also can be that SDN controller carrys out transmitting order to lower levels according to the interim operation of administrative staff, such as: need interim amendment stream table.
SDN controller is after transmitting order to lower levels, if no longer need SDN switch to return to the execution result of this order, can stop message by the order issuing to described SDN switch, and stop carrying and needing the order of the order stopping numbering in message in described order.Whether SDN switch, receiving after described order termination message, can be finished according to the described order of described order numbering inquiry, if be not finished, stops described order.
Wherein, on SDN switch, inquire about described order and be not finished and can include following two kinds of situations: one is that this order is carried out, but is not yet finished.Such as: described order is stream table querying command, SDN switch conventionally need to travel through all stream tables of the machine and carry out this querying command, because stream table quantity is very huge, so whole query script will expend a lot of time, so in the time that SDN switch receives described order termination message, it may be carried out the order of carrying in described order termination message and number corresponding order, and in this case, SDN switch stops the execution of described order according to described order numbering.
Another kind is that this order is not also carried out.For SDN switch, may receive multiple orders that SDN controller issues, SDN switch can be safeguarded a command queue, then carry out one by one according to the order of described command queue the order receiving, so in the time that SDN switch receives order termination message, the order that described order stops carrying in message is numbered corresponding order and may also be come in described command queue, is not performed.In this case, SDN switch can directly be removed described order in described command queue, stops described order to realize.
SDN switch is stopping, after described order, just not needing to return to SDN controller the execution result of described order.For stream table, inquiry waits order, the quantity of Query Result is very huge, SDN switch often needs, by multiple messages, Query Result is fed back to SDN controller, therefore SDN switch stops described order, in reducing the machine useless operation, also reduce a large amount of unnecessary order feedbacks in Open Flow channel, improved the interactive performance of Open Flow channel.SDN switch also can return and stop successful message to SDN controller, and in the successful message of described termination, carries the order numbering of described order.SDN controller is receiving after the successful message of described termination, just can in the machine, finish described order and stop process corresponding to message.
Further, if when order has been finished described in SDN switch query, returns and stop error message to SDN controller, and in described termination error message, carry equally the order numbering of described order.
For realizing the present invention, need to expand the type of message of Open Flow channel, increase a SDN controller and notify SDN switch to cancel the type of message of certain subcommand.In the present invention, can use interception Barrier message, increase a Barrier type of message, such as:
OFPT_BARRIER_CANCEL=30,/*Controller/switch?message*/
OFPT_BARRIER_TERMINATED=31,/*Controller/switch?message*/
Wherein, OFPT_BARRIER_CANCEL type of message stops order for SDN controller notice SDN switch, and OFPT_BARRIER_TERMINATED type of message stops successful result to SDN controller feedback for SDN switch after successfully stopping order.
For instance, SDN controller issues after stream table querying command 1 to SDN switch, stream table amendment order 2 and stream table querying command 3 are issued to SDN switch again, SDN switch is receiving after above-mentioned three orders, first carry out in order stream table querying command 1, then stream table amendment order 2 and stream table querying command 3 are buffered in command queue.For SDN controller, it has no longer needed the result of SDN switch feedback flow table querying command 1, and then SDN controller can stop message to SDN switch transmitting order to lower levels by OFPT_BARRIER_CANCEL type of message, and stop carrying in message order numbering 1 (the Transaction ID) of stream table querying command 1 in this order.SDN switch is receiving after described order termination message, whether inquiry stream table querying command 1 is finished, if stream table querying command 1 is not finished, stop described stream table querying command 1, start the stream table amendment order 2 in fill order queue, and return and stop successful message to SDN controller by OFPT_BARRIER_TERMINATED type of message, in described termination success message, carry the order numbering 1 of stream table querying command 1.If stream table querying command 1 has been finished, SDN switch can be sent and be stopped error message to SDN controller by OFPT_ERROR_MSG type of message, wherein, ERROR TYPE is for stopping mistake, and the order numbering 1 of carrying stream table querying command 1 in described termination error message.
Further, in the time that SDN controller needs SDN switch to stop multiple order, the order numbering of described multiple orders can be carried to an order and stop being handed down to SDN switch in message.SDN switch, in the time receiving described order termination message, is inquired about one by one according to order numbering.Then the order numbering of all orders that are not finished can be carried to one stops feeding back to SDN controller in successful message, the order numbering of all orders that have been finished is carried to one and stops feeding back to SDN controller in error message, to reduce taking Open Flow channel.
Generally, SDN exchange opportunity is first received the order that SDN controller issues, and then just can receive for the order of this order and stop message.But, under extreme case, such as, network concussion, SDN switch, in the time receiving order termination message, may also not receive the order of wherein carrying and numbers corresponding order.At this moment, SDN switch just cannot inquire corresponding order according to described order numbering in the command queue of the machine.For this situation, the present invention designs SDN switch and safeguards that stops a list, and in the time not inquiring corresponding order according to described order numbering, order numbering described in buffer memory in termination list.And then before the order of SDN switch in fill order queue, first check the order numbering that whether is cached with pending order in described termination list, if, stop described pending order, and return to the successful message of termination to SDN controller, in described termination success message, carry the order numbering of described pending order.Then, in described termination list, remove the order numbering of described pending order.
Further, each is buffered in the order numbering stopping in list cache-time, in the time that described order numbering reaches buffer memory ageing time, illustrates that SDN switch does not also receive the described order that SDN controller issues and numbers corresponding order.Occur that this situation has a lot of reasons, stop message such as: SDN controller has issued wrong order, or network failure causes SDN switch not receive order that SDN controller issues etc.At this moment, SDN exchange opportunity is returned and is stopped error message to SDN controller for described order numbering, and in described termination list, removes described order numbering.
Can be found out by above description, in the present invention, SDN controller is in the time that needs cancellation is handed down to the order of SDN switch, and transmitting order to lower levels stops message, and the order numbering that makes SDN switch to stop carrying in message according to described order stops corresponding order.Stop in time the unwanted order of SDN controller, improved the treatment effeciency of SDN switch to order, reduced order feedback unnecessary in Open Flow channel simultaneously, improved the interactive performance of Open Flow channel.
Corresponding said method, the present invention also provides a kind of SDN Switch control device, and it operates on SDN switch.As the operation carrier of apparatus of the present invention, described SDN switch at least includes CPU, internal memory and nonvolatile memory conventionally, certainly also may comprise the hardware such as various forwarding chips and I/O interface.Please refer to Fig. 2, described device includes: receiving element, query unit, processing unit, buffer unit and performance element.
Wherein, described receiving element, the order termination message issuing for receiving SDN controller, described order stops carrying order in message and numbers.
Whether described query unit, for being finished according to the described order of described order numbering inquiry.
Described processing unit, in the time that described order is not finished, stops described order, and returns to the successful message of termination to SDN controller, in described termination success message, carries described order numbering.
Further, described processing unit, in the time that described order has been finished, returns and stops error message to SDN controller.
Further, described device also comprises:
Buffer unit, in the time not inquiring corresponding order according to described order numbering, order numbering described in buffer memory in termination list.
Performance element, for before fill order, checks the order numbering that whether is cached with pending order in described termination list, if be cached with the order numbering of pending order in described termination list, stops described pending order.
Further, described processing unit, for stopping after described pending order, returns and stops successful message to SDN controller, and in described termination list, removes the order numbering of described pending order.
Further, described processing unit, in the time that described order numbering arrives buffer memory ageing time, returns and stops error message to SDN controller for described order numbering, and in described termination list, removes described order numbering.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.
Claims (10)
1. a software defined network SDN Switch control method, is applied on SDN switch, it is characterized in that, described method comprises:
Receive the order termination message that SDN controller issues, described order stops carrying order in message and numbers;
Whether be finished according to the described order of described order numbering inquiry;
In the time that described order is not finished, stop described order, and return to the successful message of termination to SDN controller, in described termination success message, carry described order numbering.
2. method according to claim 1, is characterized in that, described method also comprises:
In the time that described order has been finished, returns and stop error message to SDN controller.
3. method according to claim 1, is characterized in that, described method also comprises:
In the time not inquiring corresponding order according to described order numbering, order numbering described in buffer memory in termination list;
Before fill order, check the order numbering that whether is cached with pending order in described termination list;
If so, stop described pending order.
4. method according to claim 3, is characterized in that,
Stopping after described pending order, returning and stop successful message to SDN controller, and in described termination list, removing the order numbering of described pending order.
5. method according to claim 3, is characterized in that,
In the time that described order numbering arrives buffer memory ageing time, return and stop error message to SDN controller for described order numbering, and in described termination list, remove described order numbering.
6. a SDN Switch control device, is applied on SDN switch, it is characterized in that, described device comprises:
Receiving element, the order termination message issuing for receiving SDN controller, described order stops carrying order in message and numbers;
Whether query unit, for being finished according to the described order of described order numbering inquiry;
Processing unit, in the time that described order is not finished, stops described order, and returns to the successful message of termination to SDN controller, in described termination success message, carries described order numbering.
7. device according to claim 6, is characterized in that,
Described processing unit, is further used in the time that described order has been finished, and returns and stops error message to SDN controller.
8. device according to claim 6, is characterized in that, described device also comprises:
Buffer unit, in the time not inquiring corresponding order according to described order numbering, order numbering described in buffer memory in termination list;
Performance element, for before fill order, checks the order numbering that whether is cached with pending order in described termination list, if be cached with the order numbering of pending order in described termination list, stops described pending order.
9. device according to claim 8, is characterized in that,
Described processing unit, is further used for stopping after described pending order, returns and stops successful message to SDN controller, and in described termination list, remove the order numbering of described pending order.
10. device according to claim 8, is characterized in that,
Described processing unit, is further used for, in the time that described order numbering arrives buffer memory ageing time, returning and stopping error message to SDN controller for described order numbering, and in described termination list, removes described order numbering.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410283293.9A CN104052687B (en) | 2014-06-23 | 2014-06-23 | A kind of SDN switch control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410283293.9A CN104052687B (en) | 2014-06-23 | 2014-06-23 | A kind of SDN switch control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104052687A true CN104052687A (en) | 2014-09-17 |
CN104052687B CN104052687B (en) | 2017-12-08 |
Family
ID=51505068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410283293.9A Active CN104052687B (en) | 2014-06-23 | 2014-06-23 | A kind of SDN switch control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104052687B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105721337A (en) * | 2014-12-04 | 2016-06-29 | 中国移动通信集团公司 | Distributed transaction processing method and device in software definition network |
CN105791160A (en) * | 2014-12-25 | 2016-07-20 | 中国移动通信集团公司 | Event processing method, device and system in software defined network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4985889A (en) * | 1988-02-04 | 1991-01-15 | Sprint International Communications Corporation | Data packet switching |
CN1458770A (en) * | 2002-05-16 | 2003-11-26 | 华为技术有限公司 | Method for AAA server control access device on Internet protocol network |
CN101060559A (en) * | 2007-05-29 | 2007-10-24 | 中兴通讯股份有限公司 | A man-machine command queue management system and method |
-
2014
- 2014-06-23 CN CN201410283293.9A patent/CN104052687B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4985889A (en) * | 1988-02-04 | 1991-01-15 | Sprint International Communications Corporation | Data packet switching |
CN1458770A (en) * | 2002-05-16 | 2003-11-26 | 华为技术有限公司 | Method for AAA server control access device on Internet protocol network |
CN101060559A (en) * | 2007-05-29 | 2007-10-24 | 中兴通讯股份有限公司 | A man-machine command queue management system and method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105721337A (en) * | 2014-12-04 | 2016-06-29 | 中国移动通信集团公司 | Distributed transaction processing method and device in software definition network |
CN105791160A (en) * | 2014-12-25 | 2016-07-20 | 中国移动通信集团公司 | Event processing method, device and system in software defined network |
CN105791160B (en) * | 2014-12-25 | 2019-03-05 | 中国移动通信集团公司 | The processing method of affairs, equipment and system in software defined network |
Also Published As
Publication number | Publication date |
---|---|
CN104052687B (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE112020002495T5 (en) | SYSTEM AND METHODS TO FACILITATE OPERATIONAL MANAGEMENT IN A NETWORK INTERFACE CONTROLLER (NIC) FOR ACCELERATORS | |
CN104426815B (en) | Method and system, OF controller and the OF interchanger of flow table issuance in a kind of SDN | |
CN104780080B (en) | Deep message detection method and system | |
CN102197627B (en) | The improvement of flux of multicast convergence | |
US20080123672A1 (en) | Multiple context single logic virtual host channel adapter | |
JP2011523915A5 (en) | ||
CN105933253A (en) | Switch configuration recovery method under SDN network | |
CN105007308B (en) | A kind of document transmission method under database isolating device environment | |
CN107181635A (en) | A kind of method and system of upgrade server external equipment | |
CN106533871A (en) | Release subscription method and system based on AFDX bus | |
CN104811403B (en) | Group list processing method, apparatus and group table configuration unit based on open flows | |
CN110535811A (en) | Remote memory management method and system, server-side, client, storage medium | |
CN104052687A (en) | Method and device for controlling SDN switch | |
CN108063653A (en) | A kind of delay control method, apparatus and system | |
CN102118361A (en) | Method and device for controlling data transmission based on network protocol | |
CN106936630A (en) | A kind of whole bag upgrade method of many card insert type equipment and upgrade-system | |
CN106161249B (en) | The processing method and processing device of PPPoE message | |
CN103890750B (en) | There is the high-performance virtual fusion enhanced ethernet of permanent state flow control | |
CN103428305A (en) | Network equipment batch upgrading method | |
CN110381143A (en) | Operation, which is submitted, executes method, apparatus, equipment and computer storage medium | |
CN103346961A (en) | Method and system for data packaging exchanging | |
CN107682198A (en) | A kind of network communication equipment | |
CN106059724B (en) | A kind of message transmitting method and device | |
CN101616080B (en) | Packet order preserving method of resilient packet ring, device and network equipment | |
CN105335217A (en) | Server quiescing method and system |
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 |
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. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |