CN105340227B - Method, controller, interchanger and the system that information is transmitted between open flows flow table - Google Patents

Method, controller, interchanger and the system that information is transmitted between open flows flow table Download PDF

Info

Publication number
CN105340227B
CN105340227B CN201480033902.3A CN201480033902A CN105340227B CN 105340227 B CN105340227 B CN 105340227B CN 201480033902 A CN201480033902 A CN 201480033902A CN 105340227 B CN105340227 B CN 105340227B
Authority
CN
China
Prior art keywords
information
flow table
data source
open flows
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201480033902.3A
Other languages
Chinese (zh)
Other versions
CN105340227A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105340227A publication Critical patent/CN105340227A/en
Application granted granted Critical
Publication of CN105340227B publication Critical patent/CN105340227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

An embodiment of the present invention provides method, controller, interchanger and systems that information between a kind of open flows flow table is transmitted, are related to wireless communication technology field, the method includes:Flow table item is generated, flow table item includes instruction information, and instruction information is used to indicate the method for obtaining and transmitting information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to open flows switch, so that open flows switch are that subordinate's flow table obtains transmission information according to instruction information.The present invention includes the flow table item for indicating information by generating, and instruction information is used to indicate the method for obtaining and transmitting information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to open flows switch, so that open flows switch are that subordinate's flow table obtains transmission information according to instruction information, reduce the quantity of flow table item, and then reduce the resource for storing and processing flow table item, improves the efficiency of processing data message.

Description

Method, controller, interchanger and the system that information is transmitted between open flows flow table
Technical field
The present invention relates to wireless communication technology field, more particularly to the method for information transmission, control between a kind of open flows flow table Device, interchanger and system processed.
Background technology
With the development of wireless communication technique, SDN (Software Defined Networking, software defined network) Since the advantages such as customized network capabilities are increasingly becoming the developing direction of mobile network.SDN processing data message mode be: Open flows controller controls open flows switch by each flow table item of flow table at different levels in open flows switch and passes through by different levels The pipeline processes data message of flow table composition.Wherein, each flow table item of any level flow table describes this grade of flow table processing A kind of processing logic of data message.Data message is transferred to if generating between the flow table of subordinate's flow table when being handled by flow table Information, open flows controller can in the flow table item of this grade of flow table comprising information between flow table, so as to control open flows switch into Information is transferred to information transmission between the open flows flow table of subordinate's flow table between being about to the flow table for including in flow table item.Therefore, open flows How controller is transmitted by information between the flow table item control open flows switch progress open flows flow table comprising information between flow table, As the key of processing data message.
Currently, since the particular content of information between flow table changes with the difference of the data message of processing, it is open Stream controller previously according to need transmit flow table between information flow tables at different levels generate flow table between information various particular contents generate Multiple flow table items for including information between flow table, wherein the flow table item each comprising information between flow table includes one kind of information between flow table Particular content, and each flow table item comprising information between flow table is sent to open flows switch.Open flows switch obtain number After message, so that data message is passed sequentially through flow tables at different levels, and when by any level flow table, obtains open flows controller and send This grade of flow table all flow table items, according to each flow table item handle data message.In each flow table item according to certain grade of flow table When handling data message, if generating a kind of particular content of information between flow table, from the multiple comprising believing between flow table of this grade of flow table The flow table item for including information between flow table of information matches between the flow table for the particular content for determining and generating in the flow table item of breath, according to The particular content of generation is written in metadata the matched flow table item comprising information between flow table, and metadata is transferred to subordinate Flow table, information is transmitted between completing open flows flow table.
Since each flow table item comprising information between flow table includes a kind of particular content of information between flow table so that open flows The quantity comprising the flow table item of information between flow table that controller is sent is identical as the quantity of the particular content of information between flow table.Example Such as:Information is the VLAN ID of 12 bits between flow table, and particular content can have 212Kind, then open flows controller is sent The quantity comprising the flow table item of information between flow table be 212It is a.Big quantity includes that the transmission of the flow table item of information between flow table is not only The interface that open flows switch are connect with open flows controller brings heavy signaling burden, and can consume open flows switch In a large amount of resource storage and processing include the flow table item of information between flow table, and then reduce open flows switch and handle data message Efficiency.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides the sides that information between a kind of open flows flow table is transmitted Method, controller, interchanger and system.The technical solution is as follows:
In a first aspect, a kind of method that information is transmitted between open flows flow table is provided, the method includes:
Open flows controller generates flow table item, and the flow table item includes instruction information, and the instruction information, which is used to indicate, to be obtained Take the method for transmitting information;Wherein, the transmission information is that need to be transferred to the information of subordinate's flow table;
The flow table item is sent to open flows switch by the open flows controller, so that the open flows switch root It is that subordinate's flow table obtains the transmission information according to the instruction information.
With reference to first aspect, in the first possible realization method of first aspect, the instruction information includes data Source information and data source location information, the data source information are used to indicate including the data source for transmitting information, the number It is used to indicate position of the transmission information in the data source according to source location information, the instruction information is used to indicate basis The position that information is transmitted in the data source obtains the transmission information from the data source.
With reference to first aspect, in second of possible realization method of first aspect, the instruction information includes data Source information and data source operation information, the data source information are used to indicate including the data source for transmitting information, the number It is used to indicate from the data source according to source operation information and obtains the operational order for transmitting information, the instruction information is for referring to Show and obtain the operational order for transmitting information according to from the data source, the transmission information is obtained from the data source.
Second aspect, provides a kind of open flows controller, and the open flows controller includes:
Generation module, for generating flow table item, the flow table item includes instruction information, and the instruction information, which is used to indicate, to be obtained Take the method for transmitting information;Wherein, the transmission information is that need to be transferred to the information of subordinate's flow table;
Sending module, the flow table item for generating the generation module is sent to open flows switch, so that described open It is that subordinate's flow table obtains the transmission information that interchanger, which is released, according to the instruction information.
In conjunction with second aspect, in the first possible realization method of second aspect, the stream of the generation module generation The instruction information that list item includes includes data source information and data source location information, the data source information be used to indicate including The data source for transmitting information, the data source location information are used to indicate position of the transmission information in the data source It sets, the instruction information is used to indicate the position in the data source according to the transmission information, is obtained from the data source The transmission information.
In conjunction with second aspect, in second of possible realization method of second aspect, the stream of the generation module generation The instruction information that list item includes includes data source information and data source operation information, the data source information be used to indicate including The data source for transmitting information, the data source operation information are used to indicate from the data source and obtain the transmission information Operational order, the instruction information is used to indicate obtains the operational order for transmitting information according to from the data source, from institute It states data source and obtains the transmission information.
The third aspect provides the method that information between a kind of open flows flow table is transmitted, the method includes:
Open flows switch receive data message;
The open flows switch obtain and the matched flow table item of the data message according to the data message;Wherein, The flow table item includes instruction information, and the instruction information is used to indicate the method for obtaining and transmitting information, and the transmission information is The information of subordinate's flow table need to be transferred to;
The open flows switch are that subordinate's flow table obtains the transmission information according to the instruction information.
In conjunction with the third aspect, in the first possible realization method of the third aspect, the open flows switch according to The instruction information is that subordinate's flow table acquisition transmission information includes:
The open flows switch are carried the information to according to transmitting information described in the instruction acquisition of information, and described in transmitting Subordinate's flow table;Alternatively,
The open flows switch transmit the instruction information to subordinate's flow table, and when handling subordinate's flow table Information is transmitted according to described in the instruction acquisition of information.
In conjunction with the possible realization method of the first of the third aspect or the third aspect, second in the third aspect is possible In realization method, the instruction information includes data source information and data source location information, and the data source information is used to indicate Including the data source for transmitting information, the data source location information is used to indicate the transmission information in the data source Position;
The open flows switch according to described in the instruction acquisition of information transmit information include:
Position of the open flows switch according to the transmission information in the data source, obtains from the data source The transmission information.
In conjunction with the possible realization method of the first of the third aspect or the third aspect, the third in the third aspect is possible In realization method, the instruction information includes data source information and data source operation information, and the data source information is used to indicate Including the data source for transmitting information, the data source operation information is used to indicate from the data source and obtains the transmission letter The operational order of breath;
The open flows switch according to described in the instruction acquisition of information transmit information include:
The open flows switch obtain the operational order for transmitting information according to from the data source, from the data Source obtains the transmission information.
Fourth aspect, provides a kind of open flows switch, and the open flows switch include:
Receiving module, for receiving data message;
First acquisition module, the data message for being received according to the receiving module obtain and the data message Matched flow table item;Wherein, the flow table item includes instruction information, and the instruction information is used to indicate the side for obtaining and transmitting information Method, the transmission information is that need to be transferred to the information of subordinate's flow table;
Second acquisition module, the instruction information in flow table item for being got according to first acquisition module is described Subordinate's flow table obtains the transmission information.
In conjunction with fourth aspect, in the first possible realization method of fourth aspect, second acquisition module is used for Information is transmitted according to described in the instruction acquisition of information;Subordinate's flow table is carried the information to described in transmission;
Alternatively, second acquisition module, for transmitting the instruction information to subordinate's flow table;In the case where processing is described When grade flow table information is transmitted according to described in the instruction acquisition of information.
In conjunction with the possible realization method of the first of fourth aspect or fourth aspect, second in fourth aspect is possible In realization method, second acquisition module, for transmitting information according to described in the instruction acquisition of information;Transmit the transmission Information is to subordinate's flow table;
Alternatively, second acquisition module, for transmitting the instruction information to subordinate's flow table;In the case where processing is described When grade flow table information is transmitted according to described in the instruction acquisition of information.
In conjunction with the possible realization method of the first of fourth aspect or fourth aspect, the third in fourth aspect is possible In realization method, the instruction information in the flow table item that first acquisition module is got includes data source information and data source behaviour Make information, the data source information is used to indicate including the data source for transmitting information, and the data source operation information is used for It indicates to obtain the operational order for transmitting information from the data source;
Second acquisition module, for obtaining the operational order for transmitting information according to from the data source, from institute It states data source and obtains the transmission information.
5th aspect provides the system that information between a kind of open flows flow table is transmitted, the system comprises:Open flow control Device and open flows switch;
The open flows controller, the open flows controller that such as above-mentioned second aspect provides;The open flows switch, such as The open flows switch that above-mentioned fourth aspect provides.
The advantageous effect of technical solution provided in an embodiment of the present invention is:
Include the flow table item for indicating information by generating, instruction information is used to indicate the method for obtaining and transmitting information;Wherein, It is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to open flows switch, so that open flows switch It is that subordinate's flow table obtains transmission information according to instruction information, reduces the quantity of flow table item, and then reduce for storing and locating The resource for managing flow table item improves the efficiency of processing data message.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is that the implementation environment structure for the method that information is transmitted between a kind of open flows flow table provided in an embodiment of the present invention is shown It is intended to;
Fig. 2 is the schematic diagram that a kind of data message provided in an embodiment of the present invention passes sequentially through flow tables at different levels;
Fig. 3 is the method flow diagram of information transmission between the first open flows flow table that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram of information transmission between second of open flows flow table that another embodiment of the present invention provides;
Fig. 5 is the method flow diagram of information transmission between the third open flows flow table that another embodiment of the present invention provides;
Fig. 6 is the method flow diagram of information transmission between the 4th kind of open flows flow table that another embodiment of the present invention provides;
Fig. 7 is a kind of structural schematic diagram for open flows controller that another embodiment of the present invention provides;
Fig. 8 is a kind of structural schematic diagram for open flows switch that another embodiment of the present invention provides;
Fig. 9 be another embodiment of the present invention provide a kind of open flows flow table between information transmit system structural representation Figure.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
An embodiment of the present invention provides the methods that information between a kind of open flows flow table is transmitted, referring to FIG. 1, it is illustrated The structural schematic diagram for the implementation environment involved by method that information is transmitted between open flows flow table provided in an embodiment of the present invention.The reality It includes open flows controller 101 and open flows switch 102 to apply environment.
Wherein, the open flows controller as described in the following Examples of open flows controller 101, open flows switch 102 are such as Open flows switch described in following embodiments.
It includes the flow table item for indicating information that open flows controller 101, which generates, and flow table item is sent to open flows switch 102, so that open flows switch 102 are that subordinate's flow table obtains transmission information according to instruction information.
After open flows switch 102 receive data message, data message is made to pass sequentially through flow tables at different levels as shown in Figure 2, Wherein, after data message enters open flows switch 102, it can first be sent to 0 grade of flow table and be handled, be redirected again after the completion of processing Continue to handle to the n1 grades of flow tables of next stage flow table indicated in 0 grade of flow table handling result, the n1 grades of flow table can be 1 grade of stream Table can also be other grade of flow table;Jumped to again in n1 grades of flow table handling results after the completion of the processing of n1 grades of flow tables indicate it is next Grade flow table continues to handle;And so on, until processing data message is sent to the afterbody stream for handling the data message Output treated data message after nn grades of flow tables of table are handled, the nn grades of flow table can be in open flows switch 102 most Rear stage flow table can also be other grade of flow table in open flows switch 102.
By need transmit open flows flow table between information any flow table when, obtain with the matched flow table of data message , it is that subordinate's flow table obtains transmission information according to the instruction information that flow table item includes.
In conjunction with above-mentioned implementation environment, one embodiment of the invention provides the method that information between a kind of open flows flow table is transmitted, Referring to Fig. 3, method flow provided in this embodiment is specific as follows:
301:Open flows controller generates flow table item, and flow table item includes instruction information, and instruction information is used to indicate acquisition and passes The method for passing information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;
302:Flow table item is sent to open flows switch by open flows controller, so that open flows switch are believed according to instruction Breath is that subordinate's flow table obtains transmission information.
Optionally, instruction information includes data source information and data source location information, data source information be used to indicate including The data source of information is transmitted, data source location information is used to indicate the position for transmitting information in data source, and instruction information is used for It indicates, according to the position for transmitting information in data source, to obtain from data source and transmit information.
Optionally, instruction information includes data source information and data source operation information, data source information be used to indicate including The data source of information is transmitted, data source operation information is used to indicate the operational order for being obtained from data source and transmitting information, instruction letter Breath is used to indicate according to the operational order for transmitting information is obtained from data source, is obtained from data source and is transmitted information.
It is provided in this embodiment referring to Fig. 4 this embodiment offers the method that information between another open flows flow table is transmitted Method flow is specific as follows:
401:Open flows switch receive data message;
402:Open flows switch obtain and the matched flow table item of data message according to data message;Wherein, flow table item packet Instruction information is included, instruction information is used to indicate the method for obtaining and transmitting information, and it is that need to be transferred to the letter of subordinate's flow table to transmit information Breath;
403:Open flows switch are that subordinate's flow table obtains transmission information according to instruction information.
Optionally, open flows switch are that subordinate's flow table acquisition transmission information includes according to instruction information:
Open flows switch transmit information according to instruction acquisition of information, and carry the information to subordinate's flow table;Alternatively,
Open flows switch transmit instruction information to subordinate's flow table, and under treatment grade flow table when according to instruction acquisition of information Transmit information.
Optionally, instruction information includes data source information and data source location information, data source information be used to indicate including The data source of information is transmitted, data source location information is used to indicate the position for transmitting information in data source;
Open flows switch transmit information according to instruction acquisition of information:
Open flows switch obtain from data source according to position of the information in data source is transmitted and transmit information.
Optionally, instruction information includes data source information and data source operation information, data source information be used to indicate including The data source of information is transmitted, data source operation information is used to indicate the operational order for being obtained from data source and transmitting information;
Open flows switch transmit information according to instruction acquisition of information:
Open flows switch transmit the operational order of information according to being obtained from data source, are obtained from data source and transmit information.
Method provided in an embodiment of the present invention, includes the flow table item for indicating information by generating, and instruction information is used to indicate Obtain the method for transmitting information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to open flows Interchanger reduces the quantity of flow table item so that open flows switch are that subordinate's flow table obtains transmission information according to instruction information, Reduce the resource for storing and processing flow table item in turn, improves the efficiency of processing data message.
The method that information is transmitted between a kind of open flows flow table in order to clearly illustrate above-described embodiment offer, in conjunction with The content of above-mentioned Fig. 3 or shown in Fig. 4 embodiments and backgrounds, with following examples, the information between a kind of open flows flow table The method of transmission is described in detail, and sees below embodiment:
Another embodiment of the present invention additionally provides the method that information between a kind of open flows flow table is transmitted, in conjunction with above-mentioned Fig. 3 or The content of embodiment shown in Fig. 4 and backgrounds illustrates method provided in this embodiment.Referring to Fig. 5, the present embodiment The method flow of offer includes:
501:Open flows controller generates flow table item;
Wherein, flow table item includes instruction information, and instruction information is used to indicate the method for obtaining and transmitting information, transmits information and is The information of subordinate's flow table need to be transferred to.
In addition, instruction information may include data source information and data source location information, data source information is used to indicate packet The data source for transmitting information is included, data source location information is used to indicate the position for transmitting information in data source, and instruction information is used In instruction according to position of the information in data source is transmitted, is obtained from data source and transmit information.Indicate that information can also include number According to source information and data source operation information, data source information is used to indicate the data source including transmitting information, data source operation letter Breath is used to indicate the operational order that information is transmitted from data source acquisition, and instruction information is used to indicate obtains transmission according to from data source The operational order of information obtains from data source and transmits information.The particular content that the present embodiment does not include to instruction information limits It is fixed.
In addition, the present embodiment is not defined the specific method for generating flow table item.Including but not limited to:Determine streams at different levels The source type of the particular content of information between the flow table of table extraction, and determine information between the flow table of flow tables at different levels extraction it is specific in The position attribution of appearance, information is at least one between flow table, and information corresponds to a kind of particular content between each flow table;According to flow tables at different levels The source type of the particular content of information and position attribution generate information pair between the flow table that flow tables at different levels are extracted between the flow table of extraction The one or two tuple answered, and using the one or two tuple as instruction information.
502:Flow table item is sent to open flows switch by open flows controller;
503:Open flows switch receive data message, are obtained and the matched flow table item of data message according to data message;
The present embodiment is not defined to being obtained according to data message with the specific method of the matched flow table item of data message. Such as:If the instruction information that the flow table item that open flows switch receive includes is the one or two tuple, open flows switch It is obtained and matched one or two tuple of data message according to data message.
504:Open flows switch are that subordinate's flow table obtains transmission information according to instruction information.
The present embodiment is not to open flows switch according to the specific method that instruction information is subordinate's flow table acquisition transmission information It is defined.Such as:Open flows switch transmit information according to instruction acquisition of information, and carry the information to subordinate's flow table; Alternatively, open flows switch transmit instruction information to subordinate's flow table, and under treatment grade flow table when according to instruction acquisition of information pass Pass information.
Wherein, if instruction information includes data source information and data source location information, data source information be used to indicate including The data source of information is transmitted, data source location information is used to indicate the position for transmitting information in data source, then open flows exchange Machine according to instruction acquisition of information transmit information specific implementation method can be:Open flows switch are according to transmission information in data Position in source obtains from data source and transmits information.If indicating, information includes data source information and data source operation information, data Source information is used to indicate the data source including transmitting information, and data source operation information, which is used to indicate to obtain from data source, transmits information Operational order, then open flows switch according to instruction acquisition of information transmit information specific implementation method can be:Open flows Interchanger transmits the operational order of information according to being obtained from data source, is obtained from data source and transmits information.The present embodiment is not split Interchanger is released to be defined according to the specific method of instruction acquisition of information transmission information.
Another embodiment of the present invention additionally provides the method that information between a kind of open flows flow table is transmitted, in conjunction with above-mentioned Fig. 5 institutes The embodiment shown, to need to transmit the flow table of information between flow table in open flows switch for the 0th grade of flow table, and the 0th grade of flow table needs Information between 5 flow tables is transmitted, information 4 and stream between information 3, flow table between information 2, flow table between information 1, flow table respectively between flow table Between table for information 5, method provided in this embodiment is illustrated.Referring to Fig. 6, method flow packet provided in this embodiment It includes:
601:Open flows controller determines the source type of the particular content of information between the flow table of flow tables at different levels extraction;
Wherein, information is at least one between flow table, and information corresponds to a kind of particular content between each flow table.
The specific source type of the particular content of information is not defined the present embodiment between the flow table of flow tables at different levels extraction, Including but not limited to following four kinds of source types.
The first source type:The header field of data message or the regions payload of data message;
Second of source type:Data area;
Wherein, data area is region of memory either buffer zone or other regions, and the present embodiment is not to representing number It is defined according to the specific region in region.
The third source type:Database;
4th kind of source type:Except the regions payload, data area and the data of the header field of data message, data message Type outside library.
In addition, due to the corresponding various processing logics of flow table at different levels in open flows controller control open flows switch, because This, open flows controller knows which grade flow table needs information between transmission flow table in all flow tables of open flows switch in advance, together When open flows controller also know in advance needed in open flows switch transmit flow table between information flow tables at different levels extraction flow table between The storage region of the particular content of information.Therefore, open flows controller can need to transmit according in known open flows switch The storage region of the particular content of information determines the flow table of flow table extractions at different levels between the flow tables at different levels extraction flow table of information between flow table Between information particular content source type.Believe the flow table that the present embodiment does not determine flow table extractions at different levels to open flows controller The specific method of the source type of the particular content of breath is defined.
For example, open flows controller knows that the 0th grade of flow table needs to transmit 5 streams in 2 grades of flow tables of open flows switch in advance Information between table, and the storage region of information 1 is the header field of current data message between flow table, the storage region of information 2 is between flow table Region of memory, the storage region of information 3 is buffer zone between flow table, and the storage region of information 4 is database between flow table, between flow table The storage region of information 5 is the areas A of the header field of non-data message, the regions payload of data message, data area and database Domain.Then open flows controller determines the source type of information 1 between flow table according to the header field of the data message of information between storage flow table 1 For the first source type:The header field of data message or the regions payload of data message;Open flows controller is according to storage The region of memory of information 2 determines that the source type of information 2 between flow table is second of source type between flow table:Data area;It is open Stream controller determines that the source type of information 3 between flow table is second of source class according to the buffer zone of information between storage flow table 3 Type:Data area;Open flows controller determines the source type of information 4 between flow table according to the database of information between storage flow table 4 For the third source type:Database;Open flows controller is according to header field, the number of the non-data message of information between storage flow table 5 Determine that the source type of information 5 between flow table is the 4th kind of source class according to the regions payload of message and the a-quadrant of data area Type:Type in addition to the header field of data message, the regions payload of data message, data area and database.
Certainly, the storage region of information can also be other regions between each flow table, and the present embodiment is not between each flow table The specific storage region of information is defined.
602:Open flows controller determines the position attribution of the particular content of information between the flow table of flow tables at different levels extraction;
If open flows controller predefines the corresponding position attribution of each source type, and stores each source type Correspondence between position attribution, then open flows controller root determine information between the flow table of flow tables at different levels extraction it is specific in The specific method of the position attribution of appearance includes but not limited to:Open flows controller is according to pre-stored each source type and position Set the corresponding position of source type that the correspondence between attribute determines the particular content of information between the flow table of flow tables at different levels extraction Set attribute, and between the flow table that flow tables at different levels are extracted the particular content of information the corresponding position attribution of source type as at different levels The position attribution of the particular content of information between the flow table of flow table extraction.
Wherein, the present embodiment does not determine open flows controller the specific method of the corresponding position attribution of each source type It is defined.Such as:If any source type is the header field of data message or the regions payload of data message, it is determined that The corresponding position attribution of the source type includes:Offset, continuous value length and value mask.In another example:If any source Type is data area, it is determined that the corresponding position attribution of the source type includes:Start address, continuous value length and value Mask.Alternatively, determining that the corresponding position attribution of the source type includes:Start address, offset, continuous value length and value Mask.In another example:If any source type is database, it is determined that the corresponding position attribution of any source type includes value language Sentence and value mask.Again for example:If any source type is except the header field of data message, the regions payload of data message, number According to the type outside region and database, it is determined that the corresponding position attribution of the source type includes the value of information.
In addition, after determining the corresponding position attribution of each source type, the present embodiment does not store open flows controller The specific method of correspondence between each source type and position attribution is defined.Such as it deposits in the manner as shown in table 1 Store up the correspondence between each source type and position attribution.
Table 1
Using the source type of information between flow table 1 as the regions payload of the header field of data message or data message;Flow table Between information 2 source type be data area;The source type of information 3 is data area between flow table;The source of information 4 between flow table Type is database;Between flow table the source type of information 5 be except the header field of data message, the regions payload of data message and Type outside data area, for the correspondence between each source type and position attribution of form storage shown in table 1, Then open flows controller is according to the corresponding position attribution of source type of information 1 between the determination flow table of table 1:Offset continuously takes It is worth length and value mask, and using offset, continuous value length and value mask as the position attribution of information between flow table 1. Determine that the corresponding position attribution of source type of information 2 between flow table is:Start address, continuous value length and value mask, and Using start address, continuous value length and value mask as the position attribution of information between flow table 2.Determine information 3 between flow table The corresponding position attribution of source type is:Start address, offset, continuous value length and value mask, and by start address, The position attribution of offset, continuous value length and value mask as information between flow table 3.Determine the source of information 4 between flow table The corresponding position attribution of type is:Value sentence and value mask, and using value sentence and value mask as information 4 between flow table Position attribution.Determine that the corresponding position attribution of source type of information 5 between flow table is:The value of information, and using the value of information as stream The position attribution of information 5 between table.
Certainly, between flow table the corresponding position attribution of the source type of information 2 can also be start address, it is offset, continuous Value length and value mask, the corresponding position attribution of source type of information 3 can also be start address, continuously take between flow table It is worth length and value mask, between the corresponding specific location attribute of source type and flow table of the present embodiment information 2 not between flow table The corresponding specific location attribute of source type of information 3 is defined.
In addition to this, open flows controller can also determine information between the flow table of flow tables at different levels extraction by other methods The position attribution of particular content, information is specific the present embodiment does not determine the flow table that flow tables at different levels are extracted to open flows controller The specific method of the position attribution of content is defined.
603:The source type of the particular content of information and position between the flow table that open flows controller is extracted according to flow tables at different levels It sets attribute and generates corresponding one or two tuple of information between the flow table that flow tables at different levels are extracted;
Wherein, each one or two tuple includes the source type and position attribution of the particular content of information between flow table.
Such as:Between flow table the source type of information 1 be data message header field or data message the regions payload, The position attribution of information 1 is offset, continuous value length and value mask between flow table, then information 1 is corresponding between generating flow table One or two tuple 1 is [Packet, [offset, length, mask]].Wherein, Packet represents source type as data message Header field or data message the regions payload, offset represents offset, and length represents continuous value length, mask Represent value mask.
The source type of information 2 is data area between flow table, between flow table the position attribution of information 2 be start address, it is continuous Value length and value mask, then since the data area of information 2 between flow table is specially region of memory, between generation flow table 2 corresponding one or two tuple 2 of information is [Data_area 1, [start, length, mask]].Wherein, 1 generations of Data_area Table source type is data area, and specially region of memory, start represent start address.
The source type of information 3 is data area between flow table, and the position attribution of information 3 is start address, offset between flow table Amount, continuous value length and value mask, then since the data area of information 3 between flow table is specially buffer zone, generate 3 corresponding one or two tuple 3 of information is [Data_area 3, [start, offset, length, mask]] between flow table.Wherein, Data_area 3 represents source type as data area, and specially buffer zone.
The source type of information 4 is database between flow table, and the position attribution of information 4 is that value sentence and value are covered between flow table Code, then since the data area of information 4 between flow table is specially database, generate 4 corresponding first binary of information between flow table Group 4 is [Data_area 2, [SelectCommand, mask]].Wherein, Data_area 2 represents source type as database, SelectCommand represents value sentence.
The source type of information 5 is the regions payload, the data field except the header field of data message, data message between flow table Type outside domain and database, the position attribution of information 5 is the value of information between flow table, and the value of information is 1, then generates information between flow table 5 corresponding one or two tuples 5 are [Constant, 1].Wherein, Constant represent source type as except data message header field, Type outside the regions payload of data message, data area and database.
Certainly, the value of information can also be other numerical value, and the present embodiment is not defined the occurrence of the value of information.604:It opens Corresponding one or two tuple of information generates packet corresponding with flow tables at different levels between releasing the flow table that controller is extracted according to flow tables at different levels Flow table item containing general information, and the corresponding flow table item comprising general information of flow tables at different levels is sent to open flows switch;
Wherein, each the flow table item comprising general information includes at least one one or two tuple.
Corresponding one or two tuple of information the flow table that the present embodiment does not extract open flows controller according to flow tables at different levels The specific method for generating the flow table item comprising general information corresponding with flow tables at different levels is defined, including but not limited to according to each Corresponding one or two tuple of information between flow table that flow tables at different levels are extracted is put into comprising between flow table by information usage scenario between a flow table Corresponding position in the flow table item template of information generates the flow table item for including general information corresponding with flow tables at different levels.
For example, the flow table item template comprising information between flow table is shown in table 2, if information 1 and stream between the flow table of the 0th grade of flow table The usage scenario of information 2 is between table:Data message to inputting flow table 0 uses when matching, then by information 1 between flow table 2 corresponding one or two tuple 2 of information is put into matching domain between corresponding one or two tuple 1 and flow table;If information 3, stream between flow table The usage scenario of information 5 is between information 4 and flow table between table:Data message to inputting flow table 0 executes corresponding behaviour after matching Use when work then puts 4 corresponding one or two tuple 4 of information between 3 corresponding one or two tuple 3 of information between flow table and flow table Enter in domain of instruction;Generate the flow table item for including general information corresponding with the 0th grade of flow table as shown in table 3.
Table 2
Matching domain Priority It counts Domain of instruction Time-out Cookie
Table 3
Certainly, information 5 makes between information 4 and flow table between information 3, flow table between information 2, flow table between information 1, flow table between flow table Can also be other usage scenarios with scene, the present embodiment information 3 information 2, flow table, stream information 1, flow table not between flow table The specifically used scene of information 5 is defined between information 4 and flow table between table.Including the flow table item template of information can be between flow table For other patterns, the present embodiment is not defined the specific pattern of flow table item template comprising information flow table.The 0th grade generated Except including information 3 between information 2, flow table, stream between information between flow table 1, flow table in the corresponding flow table item comprising general information of flow table Can also be comprising other content except 5 corresponding one or two tuple of information between information 4 and flow table between table, the present embodiment is not to generating The corresponding flow table item comprising general information of the 0th grade of flow table in include particular content be defined.
It should be noted that when executing method provided in this embodiment, open flows controller is in order to preferably control opening Interchanger is released, open flows controller executes after step 601 to step 604, however, it is determined that needs to transmit in open flows switch The flow tables at different levels of information change between flow table, or need transmit flow table between information flow tables at different levels extraction flow table between information Particular content change, or every preset time, step 601 can be re-executed to step 604, with flow tables pair at different levels The flow table item comprising general information answered is updated.Preset time can be random time length, and the present embodiment is not to default The occurrence of time is defined, the present embodiment equally not to triggering re-execute step 601 to step 604 actual conditions into Row limits.
605:Open flows switch receive need to transmit flow table between information flow tables at different levels it is corresponding comprising general information Flow table item, and determined according to each one or two tuple that the corresponding flow table item comprising general information of flow tables at different levels includes at different levels The particular content of information between the corresponding each flow table of flow table;
Wherein, each the flow table item comprising general information includes at least one one or two tuple, each one or two tuple packet Include the source type and position attribution of the particular content of information between flow table;
The present embodiment not to include according to the corresponding flow table item comprising general information of flow tables at different levels each 1st Tuple determines that the specific method of the particular content of information between the corresponding each flow table of flow tables at different levels is defined.Such as:It obtains each In each one or two tuple that the corresponding flow table item comprising general information of grade flow table includes between flow table information particular content Source type and position attribution;Include according to the corresponding flow table item comprising general information of flow tables at different levels each 1st The source type of the particular content of information and position attribution extract corresponding each first binary of flow tables at different levels between flow table in tuple In group between flow table information particular content.
In the specific implementation, the present embodiment to not including according to the corresponding flow table item comprising general information of flow tables at different levels Each one or two tuple in extract flow tables at different levels corresponding for the source type of the particular content of information and position attribution between flow table The specific method of the particular content of information is defined between flow table in each one or two tuple, including but not limited to passes through following four A kind of realization in kind realization method.
The first realization method:It is wrapped when in the corresponding flow table item comprising general information of any level flow table in flow tables at different levels The source type of the particular content of information is the header field or datagram of data message between flow table in any one or two tuple included The regions payload of text, and any one or two tuple that the corresponding flow table item comprising general information of any level flow table includes When the position attribution of the particular content of information includes offset, continuous value length and value mask between middle flow table, according to any In any one or two tuple that the corresponding flow table item comprising general information of grade flow table includes between flow table information particular content Source type, determine that any level flow table extracts the storage region of the particular content of information between flow table in any one or two tuple; The front end address that the storage region of the particular content of information between flow table in any one or two tuple is extracted from any level flow table is inclined The address moved after offset starts to extract the content that length is continuous value length, and using the content of continuous value length as the One content;The second content in first content is obtained according to value mask, and the second content is determined as any level flow table and is corresponded to Any one or two tuple between flow table information particular content.
For obtaining specific implementation the present embodiment of the second content step in first content according to value mask not It is defined, including but not limited to:Sub- content is obtained from first content according to value mask;After sub- content logic is shifted Content is determined as the second content.
The one or two tuple 1 for including with the corresponding flow table item comprising general information of the 0th grade of flow table be [Packet, [offset, length, mask]] for, include according to the corresponding flow table item comprising general information of the 0th grade of flow table first In two tuples 1 between flow table information 1 source type Packet, determine that the 0th grade of flow table extracts in the one or two tuple 1 information between flow table 1 storage region is the header field of data message or the regions payload of data message;From the header field or data of data message Address after the front end address offset offset in the regions payload of message starts to extract the content that length is length: 10110, wherein it be the 0, the 2nd bit be the 1, the 3rd bit be the 1, the 4th bit is 0 that the 0th bit, which is the 1, the 1st bit, And the 0th bit be lowest bit position, and by 10110 be used as first content;If being obtained in first content 10110 according to mask Sub- content is the 0 of the 1 and the 4th bit of the 1, the 3rd bit of the 2nd bit, and by the 1 of the 1 of the 2nd bit, the 3rd bit 0 logical shift with the 4th bit is to lowest bit position, i.e., by 1 logical shift of the 2nd bit to the 0th bit, the 3rd ratio 1 logical shift of special position is to the 1st bit, by 0 logical shift of the 4th bit to the 2nd bit, after obtaining logical shift Content 110 is determined as the second content by 110, and the second content 110 is determined as in corresponding one or two tuple 1 of the 0th grade of flow table The particular content of information 1 between flow table.
Certainly, from the front end address offset offset in the regions payload of the header field of data message or data message Address afterwards starts to extract the content that length is length be other content, can be with according to the mask contents obtained For other content, the present embodiment is not to the front end address in the regions payload of header field or data message from data message Address after offset offset starts to extract the particular content and the specific sub- content obtained according to mask that length is length It is defined.
It should be noted that it is effective in order to ensure to obtain the second content in first content according to value mask, optionally, After obtaining the second content in first content according to value mask, the validity of the second content can also be verified, if The check results verified to the second content are to pass through, then execute the second content being determined as any flow table corresponding any the In one or two tuples between flow table the step of the particular content of information.If the check results verified to the second content are not pass through, It does not execute then and the second content is determined as in corresponding any one or two tuple of any flow table the particular content of information between flow table Step, and it is not by corresponding operation to execute other with the check results verified to the second content.
The particular content the present embodiment verified to the validity of the second content is without specifically limiting.Such as:Verification Whether the second content legal, either verify second hold whether meet constraints or not only verify the second content it is whether legal but also Verify whether the second content meets constraints.
Also whether illegal to the second content specific criterion is defined the present embodiment.Such as:If the second content Uniquely, then it is assumed that the second content legality.Whether the present embodiment does not also meet the second content the specific criterion of constraints It is defined.Such as:Second content is located at some rational Value space, then it is assumed that the second content meets constraints.
In addition, the check results verified to the second content are obstructed out-of-date, the present embodiment is not to the check results pair The operation answered specifically is limited.Such as:When check results are obstructed out-of-date, the operation that can be taken is to abandon the second content, The check results for being either preset value by the second content setting or the second content being verified to open flows controller transmission For not by report.
Second of realization method:It is wrapped when in the corresponding flow table item comprising general information of any level flow table in flow tables at different levels The source type of the particular content of information is data area between flow table in any one or two tuple included, and any level flow table corresponds to The flow table item comprising general information include any one or two tuple between flow table the particular content of information position attribution When including start address, continuous value length and value mask, according to the corresponding flow table for including general information of any level flow table In any one or two tuple for including between flow table the particular content of information source type, determine that the extraction of any level flow table is appointed In one the 1st tuple between flow table the particular content of information storage region;Determine that the extraction of any level flow table is appointed according to start address In one the 1st tuple between flow table the storage region of the particular content of information value initial address, from any level flow table extraction appoint The value initial address of the storage region of the particular content of information starts to extract length to be continuous between flow table in one the 1st tuple The content of value length, and using the content of the continuous value length as first content;It is obtained in first according to value mask The second content in appearance, and the second content is determined as in corresponding any one or two tuple of any level flow table information between flow table Particular content.
Determine that any level flow table extracts in any one or two tuple the particular content of information between flow table according to start address The specific implementation mode of the value initial address of storage region in the corresponding flow table item comprising general information of any flow table with wrapping Whether the position attribution of the particular content of information further includes offset and changes between flow table in any one or two tuple included.Specifically , if in any one or two tuple that the corresponding flow table item comprising general information of any flow table includes between flow table information tool The position attribution held in vivo does not include offset, then is determined as flowing in any one or two tuple of any flow table extraction by start address The value initial address of the storage region of the particular content of information between table;If the corresponding flow table for including general information of any flow table The position attribution of the particular content of information further includes offset between flow table in any one or two tuple that item includes, then will be any After flow table extracts the start address offset offset of the storage region of the particular content of information between flow table in any one or two tuple Address be determined as the value that any flow table extracts the storage region of the particular content of information between flow table in any one or two tuple Initial address.
For obtaining specific implementation the present embodiment of the second content step in first content according to value mask not It is defined, including but not limited to:Sub- content is obtained from first content according to value mask;After sub- content logic is shifted Content is determined as the second content.
The one or two tuple 2 for including with the corresponding flow table item comprising general information of the 0th grade of flow table is [Data_area 1, [start, length, mask]] for, include according to the corresponding flow table item comprising general information of the 0th grade of flow table In one or two tuples 2 between flow table information 2 source type Data_area 1, determine that the 0th grade of flow table is extracted and flowed in the one or two tuple 2 The storage region of information 2 is region of memory between table;Start is determined as in the 0th grade of flow table the one or two tuple 2 of extraction believing between flow table The value initial address of the region of memory of breath 2 extracts the region of memory of information 2 between flow table in the one or two tuple 2 from the 0th grade of flow table Start start extract length be length content:10110, and it is used as first content by 10110;If being obtained according to mask Sub- content in first content 10110 is the 0 of the 1 and the 4th bit of the 1, the 3rd bit of the 2nd bit, and by the 2nd bit 0 logical shift of the 1 and the 4th bit of the 1, the 3rd bit of position is to lowest bit position, i.e., by 1 logical shift of the 2nd bit To the 0th bit, 1 logical shift to the 1st bit of the 3rd bit, by 0 logical shift of the 4th bit to the 2nd bit Position, obtains the content after logical shift 110, is determined as the second content by 110, and the second content 110 is determined as the 0th grade of flow table In corresponding one or two tuple 2 between flow table information 2 particular content.
The one or two tuple 3 for including with the corresponding flow table item comprising general information of the 0th grade of flow table again is [Data_ Area 3, [start, offset, length, mask]] for, include according to the corresponding general flow list item of the 0th grade of flow table In one or two tuple 3 between flow table information 3 source type Data_area 3, determine that the 0th grade of flow table is extracted in the one or two tuple 3 The storage region of information 3 is buffer zone between flow table;0th grade of flow table is extracted to the caching of information 3 between flow table in the one or two tuple 3 Address after the start offsets start in region is determined as the caching that the 0th grade of flow table extracts information 3 between flow table in the one or two tuple 3 The value initial address in region, the start that the buffer zone of information 3 between flow table in the one or two tuple 3 is extracted from the 0th grade of flow table are inclined The address moved after start starts to extract the content that length is length:10110, and it is used as first content by 10110;If according to Mask obtains the 0 of the 1 and the 4th bit of the 1, the 3rd bit that the sub- content in first content 10110 is the 2nd bit, and will The 1 of 2nd bit, 0 logical shift of the 1 and the 4th bit of the 3rd bit is to lowest bit position, i.e., by the 1 of the 2nd bit Logical shift is to the 0th bit, 1 logical shift to the 1st bit of the 3rd bit, extremely by 0 logical shift of the 4th bit 2nd bit obtains the content after logical shift 110, is determined as the second content by 110, and the second content 110 is determined as In corresponding one or two tuple 3 of 0 grade of flow table between flow table information 3 particular content.
Certainly, it extracts in the one or two tuple 2 since the 0th grade of flow table and is extracted the start of the region of memory of information 2 between flow table The content that length is length can also be other content, from information 3 between flow table in the 0th grade of flow table the one or two tuple 3 of extraction Address after the start offsets start of buffer zone starts to extract the content that length is length be other content, this Embodiment is not grown between extracting to extract the start of the region of memory of information 2 flow table in the one or two tuple 2 since the 0th grade of flow table Degree is that the particular content of length is defined, and the present embodiment from the 0th grade of flow table also between not extracting in the one or two tuple 3 flow table Address after the start offsets start of the buffer zone of information 3 starts the particular content that extraction length is length and is limited It is fixed.
It should be noted that it is effective in order to ensure to obtain the second content in first content according to value mask, optionally, After obtaining the second content in first content according to value mask, the validity of the second content can also be verified, if The check results verified to the second content are to pass through, then execute the second content being determined as any flow table corresponding any the In one or two tuples between flow table the step of the particular content of information.If the check results verified to the second content are not pass through, It does not execute then and the second content is determined as in corresponding any one or two tuple of any flow table the particular content of information between flow table Step, and it is not by corresponding operation to execute other with the check results verified to the second content.
The third realization method:It is wrapped when in the corresponding flow table item comprising general information of any level flow table in flow tables at different levels The source type of the particular content of information is database between flow table in any one or two tuple included, and any level flow table is corresponding Including in any one or two tuple that the flow table item of general information includes between flow table the particular content of information position attribution packet When including value sentence and value mask, include according to the corresponding flow table item comprising general information of any level flow table any In one or two tuples between flow table the particular content of information source type, determine that any level flow table is extracted and flowed in any one or two tuple The storage region of the particular content of information between table;Extract the corresponding content of value sentence from storage region, and by value sentence Corresponding content is as first content;The second content in first content is obtained according to value mask, and the second content is determined The particular content of information between flow table in corresponding any one or two tuple of any level flow table.
For obtaining specific implementation the present embodiment of the second content step in first content according to value mask not It is defined, including but not limited to:Sub- content is obtained from first content according to value mask;After sub- content logic is shifted Content is determined as the second content.
The one or two tuple 4 for including with the corresponding flow table item comprising general information of the 0th grade of flow table is [Data_area 2, [SelectCommand, mask]] for, include according to the corresponding flow table item comprising general information of the 0th grade of flow table In one or two tuples 4 between flow table information 4 source type Data_area 2, determine that the 0th grade of flow table is extracted and flowed in the one or two tuple 4 The storage region of information 4 is database between table;It is if extracting the corresponding content of value sentence from database:10110, then will 10110 are used as first content;If obtaining the 1, the 3rd bit that the sub- content in first content 10110 is the 2nd bit according to mask The 0 of 1 and the 4th bit of position, and by 0 logical shift of the 1 and the 4th bit of the 1 of the 2nd bit, the 3rd bit to minimum Bit, i.e., by 1 logical shift of the 2nd bit to the 0th bit, 1 logical shift to the 1st bit of the 3rd bit will 0 logical shift of the 4th bit obtains the content after logical shift 110 to the 2nd bit, is determined as the second content by 110, And the second content 110 is determined as to the particular content of information 4 between flow table in corresponding one or two tuple 4 of the 0th grade of flow table.
Certainly, it can also be other content that the corresponding content of value sentence is extracted from database, the present embodiment not to from The corresponding particular content of value sentence is extracted in database to be defined.
It should be noted that it is effective in order to ensure to obtain the second content in first content according to value mask, optionally, After obtaining the second content in first content according to value mask, the validity of the second content can also be verified, if The check results verified to the second content are to pass through, then execute the second content being determined as any flow table corresponding any the In one or two tuples between flow table the step of the particular content of information.If the check results verified to the second content are not pass through, It does not execute then and the second content is determined as in corresponding any one or two tuple of any flow table the particular content of information between flow table Step, and it is not by corresponding operation to execute other with the check results verified to the second content.
4th kind of realization method:It is wrapped when in the corresponding flow table item comprising general information of any level flow table in flow tables at different levels The source type of the particular content of information is header field, the data message except data message between flow table in any one or two tuple included The regions payload, the type outside data area and database, and the corresponding flow table item for including general information of any level flow table When the position attribution of the particular content of information includes the value of information between flow table in any one or two tuple for including, any level is extracted In any one or two tuple that the corresponding flow table item comprising general information of flow table includes between flow table information particular content The value of information that position attribution includes, and the value of information extracted is determined as in corresponding any one or two tuple of any level flow table The particular content of information between flow table.
The one or two tuple 5 for including with the corresponding flow table item comprising general information of the 0th grade of flow table be [Constant, 1] for, in the one or two tuple 5 for including according to the corresponding general flow list item of the 0th grade of flow table between flow table information 5 source class Type Constant determines that the storage region that the 0th grade of flow table extracts information 5 between flow table in the one or two tuple 5 is except data message Type outside header field, the regions payload of data message, data area and database;It is corresponding comprising logical to extract the 0th grade of flow table The position attribution of information 5 includes between flow table in the one or two tuple 5 for including with the flow table item of information 1, and 1 will extracted It is determined as the particular content of information 5 between flow table in corresponding one or two tuple 5 of the 0th grade of flow table.
It should be noted that in order to ensure that the value of information extracted is effective, optionally, the corresponding packet of extraction any level flow table The position attribution of the particular content of information includes between flow table in any one or two tuple that flow table item containing general information includes The value of information after, the validity of the value of information extracted can also be verified, if carrying out school to the value of information extracted The check results tested are to pass through, then execute the value of information extracted being determined as corresponding any one or two tuple of any level flow table Between middle flow table the step of the particular content of information.If the check results verified to the value of information extracted are not pass through, The value of information that will be extracted is not executed is determined as in corresponding any one or two tuple of any level flow table the specific of information between flow table The step of content, and it is not by corresponding behaviour to execute other with the check results verified to the value of information extracted Make.606:Open flows switch to next stage flow table transmit the corresponding flow table of each flow table between information particular content related letter Breath.
The tool of information the present embodiment does not transmit the corresponding flow table of each flow table to open flows switch to next stage flow table The specific method for the relevant information held in vivo is defined.Including but not limited to, for believing between the corresponding flow table of any one flow table The particular content of breath transmits the particular content of information between the corresponding flow table of any one flow table to next stage flow table;Alternatively, to next Grade flow table transmits the one or two tuple for determining the particular content of information between the corresponding flow table of any one flow table.
Specifically, by the relevant information of the particular content of information between the corresponding flow table of each flow table (for any flow table pair The relevant information of the particular content of information is between the flow table answered:The particular content of information between flow table, alternatively, for determining the flow table Between information particular content the one or two tuple) be put into metadata, by metadata to next stage flow table transmit flow table between believe The relevant information of the particular content of breath.
The present embodiment by the relevant information of the particular content of information the corresponding flow table of each flow table also between not being put into first number Specific method in is defined.Including but not limited to, if it includes logical that it is corresponding, which to send each flow table, for open flows controller With in the flow table item of information also include for indicate how by information particular content between the corresponding any flow table of any level flow table Relevant information is put into the write masks of metadata, then is corresponded to each flow table according to the corresponding write masks of information between each flow table Flow table between the relevant information of particular content of information be put into metadata.
The present embodiment according to the corresponding write masks of information each flow table the corresponding flow table of each flow table between will not believe The relevant information of the particular content of breath is put into the specific method in metadata and is defined.Including but not limited in the following way The relevant information of the particular content of information between the corresponding flow table of each flow table is put into metadata.
((information is specifically interior between flow table for newer metadata=(the corresponding write masks of information between metadata &~flow table) & The relevant information of appearance<<M) the corresponding write masks of information between & flow tables.
Wherein, it is that logical AND operates ,~it is logic not operation,<<For logical shift operation, m information between flow table corresponds to Write masks in numerical value be 1 extreme lower position.
With open flows switch to next stage flow table transmit the corresponding flow table of each flow table between information particular content phase Close information specific method be:To next stage flow table transmit for determine information between the corresponding flow table of any one flow table it is specific in It, will be for determining the specific of information 1 between flow table according to 1 corresponding write masks 1 of information between flow table for the one or two tuple held One or two tuple 1 of content is put into subregion 1, will be used to determine between flow table according to 2 corresponding write masks 2 of information between flow table One or two tuple 2 of the particular content of information 2 is put into subregion 2, will be used according to 3 corresponding write masks 3 of information between flow table The one or two tuple 3 of the particular content of information 3 is put into subregion 3 between determining flow table, is write according to information between flow table 4 is corresponding Enter mask 4 by for determining that the one or two tuple 4 of the particular content of information 4 between flow table is put into subregion 4, believes according between flow table Cease 5 corresponding write masks 5 by for determining that the one or two tuple 5 of the particular content of information 5 between flow table is put into subregion 5, Refer to table 4.
Table 4
With open flows switch to next stage flow table transmit the corresponding flow table of each flow table between information particular content phase Close information specific method be:To next stage flow table transmit the corresponding flow table of any one flow table between information particular content for, The particular content of information 1 between the 0th grade of corresponding flow table of flow table is put into sub-district according to 1 corresponding write masks 1 of information between flow table In domain 1, the particular content of information 2 between the 0th grade of corresponding flow table of flow table is put according to 2 corresponding write masks 2 of information between flow table Enter in subregion 2, according to 3 corresponding write masks 3 of information between flow table by between the 0th grade of corresponding flow table of flow table information 3 it is specific Content is put into subregion 3, according to 4 corresponding write masks 4 of information between flow table by information 4 between the 0th grade of corresponding flow table of flow table Particular content be put into subregion 4, will be between the 0th grade of corresponding flow table of flow table according to 5 corresponding write masks 5 of information between flow table The particular content of information 5 is put into subregion 5, refers to table 5.
Table 5
Subregion 5 Subregion 4 Subregion 3 Subregion 2 Subregion 1
0 0 110 110 110 110 110
With open flows switch to next stage flow table transmit the corresponding flow table of each flow table between information particular content phase Close information specific method be:For the particular content of information 2 between information between flow table 1 and flow table, transmits and flow to next stage flow table Between table between information 1 and flow table information 2 particular content;For between information between flow table 3, flow table between information 4 and flow table information 5 tool Hold in vivo, the particular content for determining between flow table information 5 between information 4 and flow table between information 3, flow table is transmitted to next stage flow table The one or two tuple for, according to 1 corresponding write masks 1 of information between flow table by information 1 between the 0th grade of corresponding flow table of flow table Particular content is put into subregion 1, will be believed between the 0th grade of corresponding flow table of flow table according to 2 corresponding write masks 2 of information between flow table The particular content of breath 2 is put into subregion 2, will be used to determine information between flow table according to 3 corresponding write masks 3 of information between flow table One or two tuple 3 of 3 particular content is put into subregion 3, will be used for really according to 4 corresponding write masks 4 of information between flow table The one or two tuple 4 of the particular content of information 4 is put into subregion 4 between constant current table, is covered according to the corresponding write-in of information between flow table 5 Code 5 refers to table 6 by for determining that the one or two tuple 5 of the particular content of information 5 between flow table is put into subregion 5.
Table 6
It should be noted that the one or two tuple represents a numerical value, and the number after nonnumeric deformation, such as displacement Value.In order to ensure that the corresponding flow table item comprising general information of the flow tables at different levels sent by open flows controller included appoints Any first binary that the source type of the particular content of information and position attribution extract between flow table in one the one or two tuple Information is unique between flow table in group, can also corresponding to the flow tables at different levels sent by open flows controller include general information Flow table item either one or two of includes the source type of the particular content of information and position attribution extraction between flow table in the one or two tuple Information is uniquely changed between flow table in any one or two tuple gone out.For example, passing through SQL (Structured Query Language, structured query language) in the correlative that is constrained for uniqueness to any first binary for extracting Information is handled between flow table in group, obtains information between only one flow table.
In addition, open flows switch are held before handling data message by certain level-one flow table if receiving upper level flow table The relevant information of the particular content of information between at least one flow table that row step 606 is transmitted, if believing between any one flow table transmitted The relevant information of breath particular content is that upper level flow table is used to determine the 2nd 2 of the particular content of information between any one flow table Tuple, at this time certain level-one flow table can obtain the particular content of information between the corresponding flow table of the two or two tuple in the following way: Determined according to the two or two tuple information between the flow table of the relevant information description of the particular content of information between any flow table it is specific in Hold, the two or two tuple includes the source type and position attribution of the particular content of information between flow table.
Between the flow table of relevant information description for determining the particular content of information between any flow table according to the two or two tuple Specific implementation the present embodiment of the particular content of information is without limiting.Such as:It obtains in the two or two tuple and believes between flow table The source type and position attribution of the particular content of breath;According to the source class of the particular content of information between flow table in the two or two tuple Type and position attribution extract it is any description flow table between information particular content information description flow table between information particular content.
The present embodiment is not between the source type and position attribution according to the particular content of information flow table in the two or two tuple Extract it is any description flow table between information particular content information description flow table between information particular content concrete mode carry out It limits.
Such as the first extracting mode:If the source type of the particular content of information is data between flow table in the two or two tuple The header field of message or the regions payload of data message, and in the two or two tuple between flow table the particular content of information position Attribute includes offset, continuous value length and value mask, then according to the particular content of information between flow table in the two or two tuple Source type, determine the storage region of the particular content of information between flow table in the two or two tuple of extraction;From extracting the second binary Address in group between flow table after the front end address offset offset of the storage region of the particular content of information starts to extract length For the content of continuous value length, and using the content of continuous value length as third content;Third is obtained according to value mask The 4th content in content, and by the 4th content be determined as it is any description flow table between information particular content information description flow table Between information particular content.
The present embodiment is not defined the method that the 4th content in third content is obtained according to value mask, such as: Sub- content is obtained from third content according to value mask;Content after sub- content logic is shifted is determined as the 4th content.
In addition, it is effective in order to ensure to obtain the 4th content in third content according to value mask, optionally, according to value After mask obtains the 4th content in third content, the validity of the 4th content can also be verified, if in the 4th It is to pass through to hold the check results that are verified, then executes the 4th content being determined as information particular content between any description flow table Between the flow table of information description the step of the particular content of information.If the check results verified to the 4th content are not pass through, Do not execute then by the 4th content be determined as it is any description flow table between information particular content information description flow table between information tool The step of holding in vivo, and it is not by corresponding operation to execute other with the check results verified to the 4th content.
The particular content the present embodiment verified to the validity of the 4th content is without specifically limiting.Such as:Verification Whether the 4th content legal, either verify the 4th hold whether meet constraints or not only verify the 4th content it is whether legal but also Verify whether the 4th content meets constraints.
Also whether illegal to the 4th content specific criterion is defined the present embodiment.Such as:If the 4th content Uniquely, then it is assumed that the 4th content legality.Whether the present embodiment does not also meet the 4th content the specific criterion of constraints It is defined.Such as:4th content is located at some rational Value space, then it is assumed that the 4th content meets constraints.
In addition, the check results verified to the 4th content are obstructed out-of-date, the present embodiment is not to the check results pair The operation answered specifically is limited.Such as:When check results are obstructed out-of-date, the operation that can be taken is to abandon the 4th content, The check results for being either preset value by the 4th content setting or the 4th content being verified to open flows controller transmission For not by report.
It is extracted according to the source type of the particular content of information between flow table in the two or two tuple and position attribution in addition to above-mentioned Between any description flow table information particular content information description flow table between information particular content the first extracting mode it Outside, according between the source type of the particular content of information between flow table in the two or two tuple and any description flow table of position attribution extraction The extracting mode of the particular content of information can also be following second extractions between the flow table of the information description of information particular content Mode:If the source type of the particular content of information is data area between flow table in the two or two tuple, and is flowed in the two or two tuple The position attribution of the particular content of information includes start address, continuous value length and value mask between table, then according to the two or two In tuple between flow table the particular content of information source type, determine the particular content of information between flow table in the two or two tuple of extraction Storage region;Taking for the storage region of the particular content of information between flow table is determined in the two or two tuple of extraction according to start address It is worth initial address, since extracting in the two or two tuple between flow table the value initial address of the storage region of the particular content of information The content that length is continuous value length is extracted, and using the content of continuous value length as third content;According to value mask Obtain the 4th content in third content, and by the 4th content be determined as any description flow table between the information of information particular content retouch The particular content of information between the flow table stated.
For according to the storage region of the particular content of information between flow table in start address determination the two or two tuple of extraction Specific implementation mode the present embodiment of value initial address is without limiting, including but not limited to:Start address is determined as carrying Take the value initial address of the storage region of the particular content of information between flow table in the two or two tuple.Alternatively, when the two or two tuple When the position attribution of the particular content of information further includes offset between middle flow table, information between flow table will be extracted in the two or two tuple Address after the start address offset offset of the storage region of particular content is determined as extracting in the two or two tuple believes between flow table The value initial address of the storage region of the particular content of breath.
The present embodiment is not defined the method that the 4th content in third content is obtained according to value mask, such as: Sub- content is obtained from third content according to value mask;Content after sub- content logic is shifted is determined as the 4th content.
In addition, it is effective in order to ensure to obtain the 4th content in third content according to value mask, optionally, according to value After mask obtains the 4th content in third content, the validity of the 4th content can also be verified, if in the 4th It is to pass through to hold the check results that are verified, then executes the 4th content being determined as information particular content between any description flow table Between the flow table of information description the step of the particular content of information.If the check results verified to the 4th content are not pass through, Do not execute then by the 4th content be determined as it is any description flow table between information particular content information description flow table between information tool The step of holding in vivo, and it is not by corresponding operation to execute other with the check results verified to the 4th content.
It is extracted according to the source type of the particular content of information between flow table in the two or two tuple and position attribution in addition to above-mentioned Between any description flow table information particular content information description flow table between information particular content the first, second extraction Except mode, any description is extracted according to the source type of the particular content of information between flow table in the two or two tuple and position attribution The extracting mode of the particular content of information can also be following thirds between the flow table of the information description of information particular content between flow table Kind extracting mode:If the source type of the particular content of information is database, and the two or two tuple between flow table in the two or two tuple The position attribution of the particular content of information includes value sentence and value mask between middle flow table, then according to flow table in the two or two tuple Between information particular content source type, determine the memory block of the particular content of information between flow table in the two or two tuple of extraction Domain;The corresponding content of value sentence is extracted from storage region, and using the corresponding content of value sentence as third content;According to Value mask obtains the 4th content in third content, and the 4th content is determined as information particular content between any description flow table Information description flow table between information particular content.
The present embodiment is not defined the method that the 4th content in third content is obtained according to value mask, such as: Sub- content is obtained from third content according to value mask;Content after sub- content logic is shifted is determined as the 4th content.
In addition, it is effective in order to ensure to obtain the 4th content in third content according to value mask, optionally, according to value After mask obtains the 4th content in third content, the validity of the 4th content can also be verified, if in the 4th It is to pass through to hold the check results that are verified, then executes the 4th content being determined as information particular content between any description flow table Between the flow table of information description the step of the particular content of information.If the check results verified to the 4th content are not pass through, Do not execute then by the 4th content be determined as it is any description flow table between information particular content information description flow table between information tool The step of holding in vivo, and it is not by corresponding operation to execute other with the check results verified to the 4th content.
It is extracted according to the source type of the particular content of information between flow table in the two or two tuple and position attribution in addition to above-mentioned Between any description flow table between the flow table of the information description of information particular content the particular content of information the first, second, the Except three kinds of extracting modes, extracted according to the source type of the particular content of information between flow table in the two or two tuple and position attribution The extracting mode of the particular content of information can also be between the flow table of the information description of information particular content between any description flow table Following 4th kind of extracting modes:If the source type of the particular content of information is except data message between flow table in the two or two tuple Type outside header field, the regions payload of data message, data area and database, and information between flow table in the two or two tuple The position attribution of particular content include the value of information, then the position for extracting the particular content of information between flow table in the two or two tuple belongs to Property include the value of information, and by the value of information extracted be determined as it is any description flow table between information particular content information description The particular content of information between flow table.
In order to ensure that the value of information extracted is effective, optionally, extract in the two or two tuple information between flow table it is specific in After the value of information that the position attribution of appearance includes, the validity of the value of information extracted can also be verified, if to extraction The check results that the value of information gone out is verified are to pass through, then execute and the value of information extracted is determined as between any description flow table Between the flow table of the information description of information particular content the step of the particular content of information.If being verified to the value of information extracted Check results be not pass through, then do not execute the value of information that will be extracted and be determined as information particular content between any description flow table Between the flow table of information description the step of the particular content of information, and execute other and the school that is verified to the value of information extracted It is not by corresponding operation to test result.
In addition, in order to more clearly embody method provided in this embodiment reduce flow table item quantitative aspects advantage, The present embodiment is by taking information between the flow table for needing to transmit is the mark of 1 bit as an example, by the prior art and side provided in this embodiment Method is compared.
In the prior art, since there are two types of the particular contents of the mark of 1 bit, one kind is 0, one kind is 1, open flow control Device generates the flow table item 1 comprising information between flow table for two kinds of particular contents of the mark of 1 bit and includes information between flow table Flow table item 2, and the flow table item 1 comprising information between flow table, the flow table item 2 comprising information between flow table are sent to open flows and exchanged Metadata is written comprising the flow table item 1 of information describes when being identified as 0 of 1 bit of generation between flow table, by 0 in machine, and Metadata is transferred to the processing logic of subordinate's flow table;Including the flow table item 2 of information describes the mark of 1 bit of generation between flow table When knowledge is 1, metadata is written by 1, and metadata is transferred to the processing logic of subordinate's flow table.If interaction machine is produced as 11 ratio After special mark, the flow table item 1 comprising information between flow table sent from open flows controller and the flow table for including information between flow table The matched flow table item 2 for including information between flow table is determined in item 2, and according to the flow table item 2 comprising information between flow table that 1 write-in is first In data, metadata is transferred to next stage flow table;If after being produced as 0 mark of 1 bit, being sent from open flows controller Including being determined in the flow table item 1 of information and flow table item 2 comprising information between flow table between flow table matched comprising information between flow table Flow table item 1, and be written 1 in metadata according to the flow table item 1 comprising information between flow table, metadata is transferred to next stage stream Table, to realize no matter practical 1 bit identification for generating which kind of particular content of open flows switch, the particular content can be passed It is handed to subordinate's flow table.
Method provided in this embodiment determines the mark of 1 bit according to the storage region of the particular content of the mark of 1 bit Particular content source type, and determine according to the source type of the particular content of the mark of 1 bit the tool of the mark of 1 bit The position attribution held in vivo;The mark of 1 bit is generated according to the source type of the particular content of the mark of 1 bit and position attribution Corresponding one or two tuple, and a flow table for including general information is generated according to corresponding one or two tuple of mark of 1 bit ?;The flow table item for by this including general information is sent to open flows switch.Open flows switch generate the tool of the mark of 1 bit After holding in vivo, since the particular content of 1 bit identification is stored in storage region, at this time according to the flow table that should include general information The one or two tuple that item includes can determine the storage region of the particular content of 1 bit identification, and 1 is obtained from storage region The particular content of the mark of bit transmits the relevant information of the mark particular content of 1 bit to next stage flow table.If being produced as 1 1 bit identification, the particular content got according to flow table item the one or two tuple for including that this includes general information is 1, and 1 is obtained from storage region, transmit the relevant information that the mark particular content of 1 bit is 1 to next stage flow table;If generating For 01 bit identification, the particular content that the one or two tuple that the flow table item for according to this including general information includes is got is i.e. It is 0, and obtains 0 from storage region, the relevant information that the mark particular content of 1 bit is 0 is transmitted to next stage flow table, to Realize no matter practical 1 bit identification for generating which kind of particular content of open flows switch, the particular content can be transferred to down Grade flow table.
It can be seen that method provided in this embodiment realizes the prior art by a flow table item comprising general information In the function just realized of 2 flow table items comprising information between flow table, reduce the quantity for including the flow table item of information between flow table.
Method provided in an embodiment of the present invention, includes the flow table item for indicating information by generating, and instruction information is used to indicate Obtain the method for transmitting information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to open flows Interchanger reduces the quantity of flow table item so that open flows switch are that subordinate's flow table obtains transmission information according to instruction information, Reduce the resource for storing and processing flow table item in turn, improves the efficiency of processing data message.
Another embodiment of the present invention provides a kind of open flows controller, and the open flows controller is for executing above-mentioned Fig. 5 Function in the method that information is transmitted between the open flows flow table that illustrated embodiment is provided performed by open flows controller.Referring to figure 7, which includes:
Generation module 701, for generating flow table item, flow table item includes instruction information, and instruction information is used to indicate acquisition and passes The method for passing information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;
Sending module 702, the flow table item for generating generation module 701 are sent to open flows switch, so that open It is that subordinate's flow table obtains transmission information to flow interchanger according to instruction information.
Optionally, the instruction information that the flow table item that generation module 701 generates includes includes data source information and data source Location information, data source information are used to indicate the data source including transmitting information, and data source location information is used to indicate transmission letter The position in data source is ceased, instruction information is used to indicate according to the position for transmitting information in data source, is obtained from data source Transmit information.
Optionally, the instruction information that the flow table item that generation module 701 generates includes includes data source information and data source Operation information, data source information are used to indicate the data source including transmitting information, and data source operation information is used to indicate from data Source obtains the operational order for transmitting information, and instruction information is used to indicate according to the operational order for transmitting information from data source acquisition, It is obtained from data source and transmits information.
Open flows controller provided in this embodiment, includes the flow table item for indicating information by generating, and instruction information is used for It indicates to obtain the method for transmitting information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to out Interchanger is released, so that open flows switch are that subordinate's flow table obtains transmission information according to instruction information, reduces flow table item Quantity, and then reduce the resource for storing and processing flow table item, improve the efficiency of processing data message.
Another embodiment of the present invention provides the equipment that information between a kind of open flows flow table is transmitted, which includes:Processing Device and transmitter;
Wherein, controller, for generating flow table item, flow table item includes instruction information, and instruction information is used to indicate acquisition and passes The method for passing information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;
Wherein, transmitter is used to flow table item being sent to open flows switch, so that open flows switch are believed according to instruction Breath is that subordinate's flow table obtains transmission information.
Wherein, the instruction information that controller generates includes data source information and data source location information, and data source information is used Include transmitting the data source of information in instruction, data source location information is used to indicate the position for transmitting information in data source, refers to Show that information is used to indicate according to the position for transmitting information in data source, is obtained from data source and transmit information.
Wherein, the instruction information that controller generates includes data source information and data source operation information, and data source information is used Include transmitting the data source of information in instruction, data source operation information, which is used to indicate from the operation of data source acquisition transmission information, to be referred to It enables, instruction information is used to indicate according to the operational order for transmitting information is obtained from data source, is obtained from data source and is transmitted information.
Equipment provided in this embodiment, includes the flow table item for indicating information by generating, and instruction information is used to indicate acquisition The method for transmitting information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to open flows to exchange Machine reduces the quantity of flow table item, in turn so that open flows switch are that subordinate's flow table obtains transmission information according to instruction information Reduce the resource for storing and processing flow table item, improves the efficiency of processing data message.
Another embodiment of the present invention provides a kind of open flows switch, and the open flows switch are for executing above-mentioned Fig. 5 Function in the method that information is transmitted between the open flows flow table that illustrated embodiment is provided performed by open flows switch.Referring to figure 8, which includes:
Receiving module 801, for receiving data message;
First acquisition module 802, the data message for being received according to receiving module 801 obtain and data message The flow table item matched;Wherein, flow table item includes instruction information, and instruction information is used to indicate the method for obtaining and transmitting information, transmits letter Breath is the information that need to be transferred to subordinate's flow table;
Second acquisition module 803, under the instruction information in flow table item for being got according to the first acquisition module 802 is Grade flow table, which obtains, transmits information.
Wherein, the second acquisition module 803, for transmitting information according to instruction acquisition of information;Transmission carries the information to subordinate Flow table;
Alternatively, the second acquisition module 803, for transmitting instruction information to subordinate's flow table;Under treatment grade flow table when according to Indicate that acquisition of information transmits information.
Optionally, the instruction information in the flow table item that the first acquisition module 802 is got includes data source information and data Source location information, data source information are used to indicate the data source including transmitting information, and data source location information is used to indicate transmission Position of the information in data source;
Second acquisition module 803, for according to position of the information in data source is transmitted, being obtained from data source and transmitting letter Breath.
Optionally, the instruction information in the flow table item that the first acquisition module 802 is got includes data source information and data Source operation information, data source information are used to indicate the data source including transmitting information, and data source operation information is used to indicate from number The operational order for transmitting information is obtained according to source;
Second acquisition module 803, for according to the operational order for transmitting information is obtained from data source, obtaining and passing from data source Pass information.
Open flows switch provided in this embodiment, by the way that according to data message, acquisition is matched with data message to include Indicate the flow table item of information;Wherein instruction information is used to indicate the method for obtaining and transmitting information, and it is that need to be transferred to down to transmit information The information of grade flow table;It is that subordinate's flow table obtains transmission information according to instruction information, reduces the quantity of the flow table item received, into And reduce the resource for storing and processing flow table item, improve the efficiency of processing data message.
Another embodiment of the present invention provides the equipment that information between a kind of open flows flow table is transmitted, which includes:It receives Device and processor;
Wherein, receiver, for receiving data message;
Wherein, processor, for according to data message, obtaining and the matched flow table item of data message;Wherein, flow table item packet Instruction information is included, instruction information is used to indicate the method for obtaining and transmitting information, and it is that need to be transferred to the letter of subordinate's flow table to transmit information Breath;
Wherein, processor, for being that subordinate's flow table obtains transmission information according to instruction information.
Wherein, processor for transmitting information according to instruction acquisition of information, and carries the information to subordinate's flow table;Or Person, transmit instruction information to subordinate's flow table, and under treatment grade flow table when according to instruction acquisition of information transmit information.
Wherein, instruction information includes data source information and data source location information, and data source information is used to indicate including passing The data source of information is passed, data source location information is used to indicate the position for transmitting information in data source;Processor, for opening Interchanger is flowed according to position of the information in data source is transmitted, and is obtained from data source and is transmitted information.
Wherein, instruction information includes data source information and data source operation information, and data source information is used to indicate including passing The data source of information is passed, data source operation information is used to indicate the operational order for being obtained from data source and transmitting information;Wherein, it handles Device, for according to the operational order for transmitting information is obtained from data source, being obtained from data source and transmitting information.
Equipment provided in this embodiment includes instruction information by according to data message, obtaining matched with data message Flow table item;Wherein instruction information is used to indicate the method for obtaining and transmitting information, and it is that need to be transferred to subordinate's flow table to transmit information Information;It is that subordinate's flow table obtains transmission information according to instruction information, reduces the quantity of the flow table item received, and then reduce Resource for storing and processing flow table item improves the efficiency of processing data message.
Another embodiment of the present invention provides the system that information between a kind of open flows flow table is transmitted, and the system is for executing State the method that information is transmitted between the open flows flow table that embodiment illustrated in fig. 5 is provided.Referring to Fig. 9, which includes:
Open flows controller 901 and open flows switch 902;
Wherein, the open flows controller that 901 embodiment as shown in Figure 7 above of open flows controller provides, refers to above-mentioned reality Apply example;
The open flows switch that 902 embodiment as shown in Figure 8 above of open flows switch provides, refer to above-described embodiment.
In conclusion system provided in this embodiment, includes the flow table item for indicating information by generating, instruction information is used for It indicates to obtain the method for transmitting information;Wherein, it is that need to be transferred to the information of subordinate's flow table to transmit information;Flow table item is sent to out Interchanger is released, so that open flows switch are that subordinate's flow table obtains transmission information according to instruction information, reduces flow table item Quantity, and then reduce the resource for storing and processing flow table item, improve the efficiency of processing data message.
It should be noted that open flows controller and open flows switch that above-described embodiment provides are between open flows flow table In information exchanging process, only the example of the division of the above functional modules, in practical application, can as needed and Above-mentioned function distribution is completed by different function modules, i.e., is drawn the internal structure of open flows controller and open flows switch It is divided into different function modules, to complete all or part of the functions described above.In addition, the opening that above-described embodiment provides The embodiment of the method that information is transmitted between stream controller and open flows switch and open flows flow table belongs to same design, specific real Existing process refers to embodiment of the method, and which is not described herein again.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (15)

1. a kind of method that information is transmitted between open flows flow table, which is characterized in that the method includes:
Open flows controller generates flow table item, and the flow table item includes instruction information, and the instruction information is used to indicate acquisition and passes The method for passing information;Wherein, the transmission information is that need to be transferred to the information of subordinate's flow table;
The flow table item is sent to open flows switch by the open flows controller, so that the open flows switch are according to institute It is that subordinate's flow table obtains the transmission information to state instruction information.
2. according to the method described in claim 1, it is characterized in that, the instruction information includes data source information and data source position Confidence ceases, and the data source information is used to indicate including the data source for transmitting information, and the data source location information is used for Indicate that position of the transmission information in the data source, the instruction information are used to indicate according to the transmission information in institute The position in data source is stated, the transmission information is obtained from the data source.
3. according to the method described in claim 1, it is characterized in that, the instruction information includes data source information and data source behaviour Make information, the data source information is used to indicate including the data source for transmitting information, and the data source operation information is used for It indicates to obtain the operational order for transmitting information from the data source, the instruction information is used to indicate basis from the data Source obtains the operational order for transmitting information, and the transmission information is obtained from the data source.
4. a kind of open flows controller, which is characterized in that the open flows controller includes:
Generation module, for generating flow table item, the flow table item includes instruction information, and the instruction information is used to indicate acquisition and passes The method for passing information;Wherein, the transmission information is that need to be transferred to the information of subordinate's flow table;
Sending module, the flow table item for generating the generation module are sent to open flows switch, so that the open flows Interchanger is that subordinate's flow table obtains the transmission information according to the instruction information.
5. open flows controller according to claim 4, which is characterized in that wrapped in the flow table item that the generation module generates The instruction information included includes data source information and data source location information, and the data source information is used to indicate including the transmission The data source of information, the data source location information is used to indicate position of the transmission information in the data source, described It indicates that information is used to indicate the position in the data source according to the transmission information, the transmission is obtained from the data source Information.
6. open flows controller according to claim 4, which is characterized in that wrapped in the flow table item that the generation module generates The instruction information included includes data source information and data source operation information, and the data source information is used to indicate including the transmission The data source of information, the data source operation information be used to indicate from the data source obtain it is described transmit information operation refer to It enables, the instruction information is used to indicate obtains the operational order for transmitting information according to from the data source, from the data Source obtains the transmission information.
7. a kind of method that information is transmitted between open flows flow table, which is characterized in that the method includes:
Open flows switch receive data message;
The open flows switch obtain and the matched flow table item of the data message according to the data message;Wherein, described Flow table item includes instruction information, and the instruction information is used to indicate the method for obtaining and transmitting information, and the transmission information is to need to pass It is handed to the information of subordinate's flow table;
The open flows switch are that subordinate's flow table obtains the transmission information according to the instruction information.
8. the method according to the description of claim 7 is characterized in that the open flows switch are institute according to the instruction information Stating subordinate's flow table acquisition transmission information includes:
The open flows switch carry the information to described according to transmitting information described in the instruction acquisition of information, and described in transmitting Subordinate's flow table;Alternatively,
The open flows switch transmit the instruction information to subordinate's flow table, and when handling subordinate's flow table according to Information is transmitted described in the instruction acquisition of information.
9. method according to claim 7 or 8, which is characterized in that the instruction information includes data source information and data Source location information, the data source information are used to indicate including the data source for transmitting information, the data source location information It is used to indicate position of the transmission information in the data source;
The open flows switch according to described in the instruction acquisition of information transmit information include:
Position of the open flows switch according to the transmission information in the data source, described in data source acquisition Transmit information.
10. method according to claim 7 or 8, which is characterized in that the instruction information includes data source information and data Source operation information, the data source information are used to indicate including the data source for transmitting information, the data source operation information It is used to indicate from the data source and obtains the operational order for transmitting information;
The open flows switch according to described in the instruction acquisition of information transmit information include:
The open flows switch obtain the operational order for transmitting information according to from the data source, are obtained from the data source Take the transmission information.
11. a kind of open flows switch, which is characterized in that the open flows switch include:
Receiving module, for receiving data message;
First acquisition module, the data message for being received according to the receiving module, acquisition are matched with the data message Flow table item;Wherein, the flow table item includes instruction information, and the instruction information is used to indicate the method for obtaining and transmitting information, The transmission information is that need to be transferred to the information of subordinate's flow table;
Second acquisition module, the instruction information in flow table item for being got according to first acquisition module are the subordinate Flow table obtains the transmission information.
12. open flows switch according to claim 11, which is characterized in that second acquisition module is used for basis Information is transmitted described in the instruction acquisition of information;Subordinate's flow table is carried the information to described in transmission;
Alternatively, second acquisition module, for transmitting the instruction information to subordinate's flow table;Handling subordinate's stream When table information is transmitted according to described in the instruction acquisition of information.
13. open flows switch according to claim 11 or 12, which is characterized in that first acquisition module is got Flow table item in instruction information include data source information and data source location information, the data source information be used to indicate including The data source for transmitting information, the data source location information are used to indicate position of the transmission information in the data source It sets;
Second acquisition module is obtained for the position according to the transmission information in the data source from the data source Take the transmission information.
14. open flows switch according to claim 11 or 12, which is characterized in that first acquisition module is got Flow table item in instruction information include data source information and data source operation information, the data source information be used to indicate including The data source for transmitting information, the data source operation information are used to indicate from the data source and obtain the transmission information Operational order;
Second acquisition module, for obtaining the operational order for transmitting information according to from the data source, from the number The transmission information is obtained according to source.
15. the system that information is transmitted between a kind of open flows flow table, which is characterized in that the system comprises:Open flows controller and Open flows switch;
The open flows controller, the open flows controller as described in any claim in claim 4 to 6;
The open flows switch, the open flows switch as described in any claim in claim 11 to 14.
CN201480033902.3A 2014-06-03 2014-06-03 Method, controller, interchanger and the system that information is transmitted between open flows flow table Active CN105340227B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079082 WO2015184584A1 (en) 2014-06-03 2014-06-03 Method, controller, switch and system for transmitting information between openflow tables

Publications (2)

Publication Number Publication Date
CN105340227A CN105340227A (en) 2016-02-17
CN105340227B true CN105340227B (en) 2018-11-13

Family

ID=54765927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480033902.3A Active CN105340227B (en) 2014-06-03 2014-06-03 Method, controller, interchanger and the system that information is transmitted between open flows flow table

Country Status (2)

Country Link
CN (1) CN105340227B (en)
WO (1) WO2015184584A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729026B (en) * 2017-10-27 2020-12-01 迈普通信技术股份有限公司 SDN network control method and SDN controller
CN112565090B (en) * 2020-11-09 2022-04-15 烽火通信科技股份有限公司 High-speed forwarding method and device
CN114760249B (en) * 2021-01-08 2023-08-04 大唐移动通信设备有限公司 SDN network-based data processing method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428094A (en) * 2013-08-12 2013-12-04 杭州华三通信技术有限公司 Method and device for packet transmitting in Open Flow system
WO2014019205A1 (en) * 2012-08-02 2014-02-06 华为技术有限公司 Method, apparatus, and system for processing data packet

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2700206A4 (en) * 2011-04-18 2014-12-17 Nec Corp Terminal, control device, communication method, communication system, communication module,program, and information processing device
CN103067534B (en) * 2012-12-26 2016-09-28 中兴通讯股份有限公司 A kind of NAT realizes system, method and Openflow switch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014019205A1 (en) * 2012-08-02 2014-02-06 华为技术有限公司 Method, apparatus, and system for processing data packet
CN103428094A (en) * 2013-08-12 2013-12-04 杭州华三通信技术有限公司 Method and device for packet transmitting in Open Flow system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"OpenFlow Switch Specification Version 1.3.4 (Protocol version 0x04)";Openflow;《Open Networking Foundation》;20140327;全文 *

Also Published As

Publication number Publication date
CN105340227A (en) 2016-02-17
WO2015184584A1 (en) 2015-12-10

Similar Documents

Publication Publication Date Title
Fiterău-Broştean et al. Combining model learning and model checking to analyze TCP implementations
CN105608088B (en) A kind of database based on configuration file automatically creates and data dynamic recording method
CN104144156B (en) Message processing method and device
CN102694801B (en) Method for detecting virus, device and firewall box
CN105340227B (en) Method, controller, interchanger and the system that information is transmitted between open flows flow table
CN106874247A (en) A kind of report form generation method and device
CN105868169B (en) A kind of data acquisition device, collecting method and system
CN105939284B (en) The matching process and device of message control strategy
CN105939324A (en) Message forwarding method and device
CN103942083B (en) A kind of compiling implementation method towards variable ginseng function
CN107133243A (en) A kind of data processing method and server
CN109474691A (en) A kind of method and device of internet of things equipment identification
Cerone et al. Modelling probabilistic wireless networks
CN103457957B (en) A kind of network penetration test macro and method with adaptation function
CN104243243A (en) Method for generating protocol testing sequence
US9858324B2 (en) Trusted download toolkit
CN103973581B (en) Method, device and system for processing message data
CN106411923A (en) Ontology modeling based network risk assessment method
CN108664623A (en) A kind of date storage method, device, equipment and medium
CN105703964A (en) Online application system test method and equipment
CN108733425A (en) Business change method for sending information, device, electronic equipment and storage medium
CN106934045A (en) A kind of system and method for database migration assessment
CN107483508A (en) Message filtering method, device, equipment and storage medium
CN107544901A (en) The data format method of inspection and device
CN104932982B (en) A kind of Compilation Method and relevant apparatus of message memory access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant