CN104283814B - The method and logical switch of control data forwarding - Google Patents
The method and logical switch of control data forwarding Download PDFInfo
- Publication number
- CN104283814B CN104283814B CN201310282435.5A CN201310282435A CN104283814B CN 104283814 B CN104283814 B CN 104283814B CN 201310282435 A CN201310282435 A CN 201310282435A CN 104283814 B CN104283814 B CN 104283814B
- Authority
- CN
- China
- Prior art keywords
- logical switch
- interface
- bridge
- packet
- flow table
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/64—Hybrid switching systems
- H04L12/6418—Hybrid transport
Abstract
The invention discloses the method and logical switch of a kind of control data forwarding, the present invention according to the bridge joint attribute of default bridge interface by the packet for completing respective streams table handling by being sent to the second logical switch, realize the matching of the packet of reception to the flow table item of same type of flow table, and complete to operate corresponding to the operational order that corresponding flow table item matches, the flow table popularization brought by refinement flow table is effectively prevent, the problem of complicated is safeguarded and updated to flow table.
Description
Technical field
The present invention relates to the data forwarding field under OpenFlow agreements, is related specifically to a kind of control data forwarding
Method and logical switch.
Background technology
OpenFlow interchangers by originally completely by switch/router control packet repeating process be converted into by
OpenFlow interchangers(OpenFlow Switch)And controller(Controller)To complete jointly, it is achieved thereby that data
Forwarding and the separation of route test.Controller can be controlled in OpenFlow interchangers by the interface operation provided in advance
Flow table, so as to reach control data forwarding purpose.Flow table is made up of many flow table items, and each flow table item is exactly one and turned
Hair rule.Packet into interchanger obtains the destination interface of forwarding by inquiring about flow table.
According to the description of OpenFlow pipelines and flow table, for the packet by encapsulating and decapsulating, it is necessary to front and rear more
The flow table of secondary inquiry same type, it can just get the destination interface of forwarding.But OpenFlow line treatment provides, pipeline
The flow table of middle same type only has one and can only inquired about once, and the flow table in pipeline can not jump to matched it is similar
The flow table of type(Small sequence number flow table can not be jumped to)On handle again.For the problem, the solution of existing OpenFlow agreements support
Certainly method is to decompose tunnel as far as possible, refinement description stream, such as every tunnel expansion flow table item per user.But such mode causes
Flow table item is excessive, flow table popularization so that the maintenance and renewal of flow table complicate.
The content of the invention
The main object of the present invention is a kind of method of control data forwarding of offer, it is intended to realizes the packet of reception to same
The matching of the flow table item of the flow table of one type, while the flow table popularization brought by refinement flow table is effectively avoided, flow table is safeguarded
With update it is complicated the problem of.
The present invention also proposes a kind of logical switch of control data forwarding, it is intended to realizes the packet of reception to same class
The matching of the flow table item of the flow table of type, while effectively avoid because of the flow table popularization that brings of refinement flow table, flow table are safeguarded and more
The problem of new complicated.
The present invention proposes a kind of method of control data forwarding, and this method includes:
Upon reception of the data packet, the flow table item that the first logical switch matches according to the flow table on flow table pipeline is corresponding
Operational order packet is operated accordingly and outgoing interface corresponding to determining;
First logical switch judges whether the outgoing interface of the determination is bridge interface;
When the outgoing interface of the determination is bridge interface, the first logical switch presses the packet for completing corresponding operating
The second logical switch is sent to according to the bridge joint attribute of default bridge interface.
Preferably, first logical switch judge the step of whether outgoing interface of the determination is bridge interface it
Afterwards, this method also includes:
When the outgoing interface of the determination is not bridge interface, then the first logical switch will complete corresponding operating after
The sending method that packet matches according to the flow table on flow table pipeline is sent.
Preferably, the bridge joint attribute of the default bridge interface includes identity and data of the second logical switch
Wrap the identity of the incoming interface in the second described logical switch.
Preferably, first logical switch will complete the packet of corresponding operating according to the bridge joint of default bridge interface
Attribute, which is sent to the step of the second logical switch, to be included:
When it is determined that outgoing interface be bridge interface when, filling metadata give the second logical switch, the metadata includes
Bridge token number, the first logical switch by complete corresponding operating packet and metadata according to default bridge interface bridge joint
Attribute is sent to the second logical switch.
Preferably, it is described when it is determined that outgoing interface be bridge interface when, the first logical switch will complete corresponding operating
Packet the step of being sent to the second logical switch according to the bridge joint attribute of default bridge interface after, this method is also wrapped
Include:
Second logical switch obtains the metadata of described the first logical switch filling, and determines in metadata
The bridge joint token number of carrying, whether the bridge joint token number for judging the determination is 0;
If the bridge joint token number of the determination is 0, second logical switch by the data packet discarding received or
Send to controller.
Preferably, after the step of whether the bridge joint token number for judging the determination is 0, this method also includes:
If the bridge joint token number of the determination is not 0, the second logical switch matches according to the flow table on flow table pipeline
The packet sent is operated operational order corresponding to the flow table item gone out accordingly and outgoing interface corresponding to determining;
Whether the outgoing interface that the second logical switch judges to determine is bridge interface;
When it is determined that outgoing interface be bridge interface when, the bridge joint token number in metadata is subtracted one, then will be completed corresponding
Operation packet and bridge joint token number subtract one after metadata be sent to the 3rd according to the bridge joint attribute of default bridge interface
Logical switch.
A kind of logical switch of control data forwarding, the logical switch include:
Data processing module, for upon reception of the data packet, the flow table item matched according to the flow table on flow table pipeline
Packet is operated corresponding operational order accordingly and outgoing interface corresponding to determining;
Analysis module, for judging whether the outgoing interface of the determination is bridge interface;
Data forwarding module, for when the outgoing interface of the determination is bridge interface, the data of corresponding operating will to be completed
Bag is sent to the second logical switch according to the bridge joint attribute of default bridge interface.
Preferably, the data forwarding module, it is additionally operable to, when the outgoing interface of the determination is not bridge interface, to complete
The sending method that the packet of corresponding operating matches according to the flow table on flow table pipeline is sent.
Preferably, the bridge joint attribute of the default bridge interface includes identity and data of the second logical switch
Wrap the identity of the incoming interface in second logical switch.
Preferably, the data processing module, be additionally operable to when it is determined that outgoing interface be bridge interface when, filling metadata give
Second logical switch, the metadata include bridge joint token number;
The data forwarding module, the packet by corresponding operating is completed is additionally operable to according to the bridge joint category of default bridge interface
Property is sent to the second logical switch.
Preferably, the data processing module, it is additionally operable to obtain the metadata of described the first logical switch filling, and
Determine the bridge joint token number carried in metadata;
The analysis module, whether the bridge joint token number for being additionally operable to judge the determination is 0;
The data forwarding module, if the bridge joint token number for being additionally operable to the determination is 0, the packet received is lost
Abandon or send to controller.
Preferably, the data processing module, if the bridge joint token number for being additionally operable to the determination is not 0, according to flow table pipe
Operational order corresponding to the flow table item that flow table on road matches is operated and determined pair accordingly to the packet sent
The outgoing interface answered;
The analysis module, whether the outgoing interface for being additionally operable to judge the determination is bridge interface;
The data processing module, it is additionally operable to when the outgoing interface of the determination is bridge interface, by the bridge in metadata
Connect token number and subtract one;
The data forwarding module, it is additionally operable to that the packet of corresponding operating will be completed and bridges first number after token number subtracts one
The 3rd logical switch is sent to according to according to the bridge joint attribute of default bridge interface.
Compared with the prior art, the present invention passes through the bridge joint category by the packet of completion corresponding operating according to default bridge interface
Property is sent to the second logical switch, realizes the matching of the packet of reception to the flow table item of same type of flow table, and complete
Operation corresponding to the operational order matched into corresponding flow table item, it effectively prevent because the flow table scale that refinement flow table is brought expands
Greatly, the problem of complicated, is safeguarded and updated to flow table.
Brief description of the drawings
Fig. 1 is the particular flow sheet of the first embodiment of the method for control data of the present invention forwarding;
Fig. 2 is the schematic diagram of the embodiment of bridging structure one of logical switch in the method that control data of the present invention forwards;
Fig. 3 is the particular flow sheet of the second embodiment of the method for control data of the present invention forwarding;
Fig. 4 is mobile IP in Fig. 3(Internet protocol)Act on behalf of the specific Organization Chart of the flow table of the logical switch in scene;
Fig. 5 is L2VPN in Fig. 3(2 layers of virtual private net)And L3VPN(3 layers of virtual private net)Bridge in scene
The specific Organization Chart of the flow table of logical switch;
Fig. 6 is the specific Organization Chart of the preferred embodiment of the logical switch of control data of the present invention forwarding;
Fig. 7 is the specific Organization Chart of the flow table of the logical switch in mobile IP agent scene in Fig. 6;
Fig. 8 is the specific Organization Chart of the flow table of the logical switch in L2VPN and L3VPN bridge joints scene in Fig. 6.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As depicted in figs. 1 and 2, Fig. 1 is the particular flow sheet of the first embodiment of the method for control data of the present invention forwarding;
Fig. 2 is the schematic diagram of the embodiment of bridging structure one of logical switch in the method that control data of the present invention forwards.
It is emphasized that:Flow chart shown in Fig. 1 is only a preferred embodiment, and those skilled in the art appoints when knowing
What should not all depart from the scope covered in following technical scheme around the embodiment of inventive concept structure:
Upon reception of the data packet, the flow table item that the first logical switch matches according to the flow table on flow table pipeline is corresponding
Operational order packet is operated accordingly and outgoing interface corresponding to determining;First logical switch judges the determination
Outgoing interface whether be bridge interface;When the outgoing interface of the determination is bridge interface, the first logical switch will complete phase
The packet that should be operated is sent to the second logical switch according to the bridge joint attribute of default bridge interface.
It is the specific steps that control data forwarding is done step-by-step in the present embodiment below:
Step S11, upon reception of the data packet, the stream that the first logical switch matches according to the flow table on flow table pipeline
Packet is operated operational order corresponding to list item accordingly and outgoing interface corresponding to determining.
Specifically, first logical switch, which is safeguarded, multiple flow tables for being used to match the packet received, the stream
Table includes multiple flow table items for being used to match operational order, and by the matching of packet and flow table item, it is corresponding right to match
Outgoing interface corresponding to the instruction and determination that packet is operated, for example, it may be modifying, forwarding or group table to packet
The operational orders such as processing.The forwarding instruction for forward the packet to next flow table carry out flow table item matching or by packet by
Sent according to default mode.The default mode can be by default port deliver a packet to controller or
It is sent to purpose equipment.The packet:For ethernet frame, including header and payload.When according to behaviour corresponding to flow table item
Instruct after operation corresponding with the operational order is completed to packet, the first logical switch judges the outgoing interface determined
Whether it is bridge interface.
Step S12, the first logical switch judge whether the outgoing interface of the determination is bridge interface.
Specifically, the packet received by the matching with the flow table item in flow table, match packet is modified,
Outgoing interface corresponding to the operational order such as forwarding or group list processing and determination, whether the outgoing interface for judging the determination is to connect
Mouthful, when the outgoing interface of the determination is bridge interface, filling metadata gives the second logical switch, between the logical switch
The metadata of transmission includes but is not limited to:Bridge token number.The bridge joint token number represents that the logic that can currently continue bridge joint is handed over
Change planes quantity, be invalid value by bridge joint token number of first logical switch in receiving packet and finding metadata(Such as-
1)When according to system configuration(Such as controller sets the bridge joint token of logical switch to refer to initial value)Initial value is set, for working as
For the processing of preceding packet, when the first logical switch is bridged to the second logical switch, present bridge token number is subtracted one
Table 0 of the metadata to the flow table pipeline of the second logical switch is filled afterwards.Current packet is in the first described logic
When being disposed in interchanger, the first logical switch resets the metadata of its table 0, after replacement, is bridged in the metadata
Token number is invalid value, when having new business demand, further according to business configuration metadata.First logical switch will complete phase
The packet and metadata that should be operated are sent to the second logical switch according to the bridge joint attribute of default bridge interface;Or when described
When the outgoing interface of determination is not bridge interface, sending method that the packet of reception is matched according to the flow table on flow table pipeline
Send, the sending method that the flow table according on flow table pipeline matches can need to exchange to logic according to business
The physical port of machine configuration, is forwarded the packet in corresponding equipment by the physical port, also can also be and pass through other
Any default port forwards the packet to corresponding equipment or controller.The logic port that interchanger defines, it is possible to specify
Link aggregation group, tunnel or loopback interface.
Step S13, when the outgoing interface of the determination is bridge interface, the first logical switch will complete corresponding operating
Packet is sent to the second logical switch according to the bridge joint attribute of default bridge interface.
Specifically, identity and the packet of the attribute of the bridge interface including second level logical switch
The identity of the incoming interface of second logical switch, the bridge joint attribute of the default bridge interface can be controller or configuration
Point issues when creating the bridge interface according to business demand or when updating the bridge interface according to business need
Ask dynamic creation or renewal.Second logical switch and the first logical switch belong to same physics forwarding unit, institute
It can be same logical switch to state the second logical switch and the first logical switch.If bridge joint is that same logic exchanges
Machine, second logical switch are same logical switch with the first logical switch, and logical switch is preset bridge joint and connect
The effect of mouth is the looping back data bag at bridge interface, is again introduced into the logical switch and the flow table item progress in flow table
Match somebody with somebody, match the instruction of the operation carried out accordingly to the packet, that is, realize itself at outgoing interface of logical switch
Loopback, the default bridge data ID of trace route path of outgoing interface be into the first logical switch data path, data path
The mark for being identified as the first logical switch entrance of interface.Pass through the data path into the first logical switch and first
The packet for completing corresponding operating is sent to the first logical switch and flowed in flow table by the mark of the entrance of logical switch
The matching of list item, to obtain the destination interface for the packet being operated and/or being got accordingly forwarding.By will be complete
Packet into corresponding operating is sent to the second logical switch according to the bridge joint attribute of default bridge interface, realizes reception
Matching of the packet to the flow table item of same type of flow table, and complete corresponding to the operational order that corresponding flow table item matches
Operation, effectively prevent the flow table popularization brought by refinement flow table, and the problem of complicated is safeguarded and updated to flow table.
Reference picture 2, if bridge joint is not same logical switch, second logical switch is to be exchanged with the first logic
Different another logical switch in same physics forwarding unit of machine.Default bridge interface between logical switch
Effect is to turn the packet after logical switch completion corresponding operating according to the bridge joint attribute of default bridge interface
It is sent to the second logical switch.By setting bridge interface between different logical switch, and according to default bridge interface
Bridge joint attribute by complete corresponding operating after packet send to the second logical switch, packet as needed to enter
Enter the matching that other logical switch carry out the flow table item in flow table so that packet can obtain after the matching of flow table item
It is forwarded to the destination interface of forwarding, and by the packet after completion corresponding operating according to the destination interface of the forwarding got
Purpose equipment corresponding with the destination interface of forwarding.
Further, second logical switch obtains the metadata of the first logical switch filling, and determines
The bridge joint token number carried in metadata, whether the bridge joint token number for judging the determination is 0;If the bridge joint token of the determination
Number is 0, then second logical switch by the data packet discarding received or is sent to controller.If the bridge joint of the determination
Token number is not 0, then operational order corresponding to the flow table item that the second logical switch is matched according to the flow table on flow table pipeline
The packet sent is operated accordingly and outgoing interface corresponding to determining;Second logical switch judges that what is determined goes out to connect
Whether mouth is bridge interface;When it is determined that outgoing interface be bridge interface when, the bridge joint token number in metadata is subtracted one, then will
Metadata after the packet and bridge joint token number that completion operates accordingly subtract one is sent out according to the bridge joint attribute of default bridge interface
The 3rd logical switch is sent to, likewise, the 3rd logical switch can be patrolled with the first logical switch or second
It is same logical switch to collect interchanger.Metadata is filled by the logical switch to packet, the metadata includes bridge
Token number is connect, and when the bridge joint token number of packet is 0, packet does not enter back into logical switch and carries out matching treatment, keeps away
Abnormal circulation of the packet between logical switch, blocking data path are exempted from.
As shown in Fig. 3, Fig. 4, Fig. 5, Fig. 3 is the idiographic flow of the second embodiment of control data retransmission method of the present invention
Figure, Fig. 4 are mobile IP in Fig. 3(Internet protocol)The specific Organization Chart of the flow table of the logical switch in scene is acted on behalf of, Fig. 5 is
L2VPN in Fig. 3(2 layers of virtual private net)And L3VPN(3 layers of virtual private net)Bridge the stream of the logical switch in scene
The specific Organization Chart of table.
Based on above-mentioned first embodiment, also include after step s 12:
Step S14, when it is determined that outgoing interface be not bridge interface when, then first logical switch will complete corresponding operating
The sending method that packet matches according to the flow table on flow table pipeline is sent.
The sending method that flow table on the flow table pipeline matches can need to match somebody with somebody to logical switch according to business
The physical port put, is forwarded the packet in corresponding equipment by the physical port, also can also be any by other
Default port will forward the packet to corresponding equipment or controller.By by complete corresponding operating packet send to
Corresponding equipment or controller, by matching determination destination interface with the flow table item in flow table and forwarding the data to and determine
Equipment corresponding to destination interface.
Reference picture 4, by taking mobile IP agent as an example, corresponding to the table 0 in logical switch 10 gets incoming interface
Flow table item, corresponding operational order is extracted, the table 1 jumped in query logic interchanger 10, the IP in packet enters
Row matching, the outgoing interface for determining flow table is GRE(Generic route encapsulation)Bridge interface corresponding to tunnel, according to gre tunneling information
Gre tunneling encapsulation, and the bridge joint token number in the metadata of updated data package filling are done to packet.The GRE heads that encapsulate and
Packet after the IP heads of outer layer carrying enters people's logical switch 20 from gre tunnel interface and carries out matching treatment.Handed over according to logic
The table 0 in 20 of changing planes gets the corresponding flow table item of incoming interface, extracts corresponding operational order, is mounted according to the flow table item
Measurement table clause do CAR speed limits, the table 1 jumped in logical switch 20, according to the purpose IP of IP heads(Set for Foreign Agent
Standby IP address)Matched, redirect the table 2 in logical switch 20, fill outgoing interface and next-hop device IP continuation
Match somebody with somebody, it is determined that two layers of information of corresponding next-hop device, are pressed into the VLAN tag of needs, fill MAC header, jump to logic exchange
Table 3 in machine 20, the control business based on outgoing interface and/or VLAN is done, such as can be CAR speed limits, and pass through the outgoing interface
Data on flows after matching is forwarded on agent equipment.By the bridge interface of setting, by inquiring about same type of route
Table carries out GRE encapsulation to packet, obtains purpose agent equipment IP, realizes that network backhaul flow is forwarded on Foreign Agent.
Reference picture 5, with L2VPN(Two-layer virtual private network, Virtual Private Network)And L3VPN(Three layers
Virtual private net, Virtual Private Network)Exemplified by the scene of bridge joint, L3VPN number is passed through from L2VPN bridge joints
Enter logical switch 30 according to bag and carry out matching treatment, first according to incoming interface(Physical interface)Table in logical switch 30
Matched in 0, get the corresponding flow table item of incoming interface, extract corresponding operational order, jump in logical switch 30
Table 1 do label lookup, match and determine that outgoing interface is logic interfacing A after flow table entry, at the matching of current logic interchanger 30
Reason terminates, and ejects outer layer label, and the bridge joint token number in the metadata of updated data package filling.
Packet is bridged to logic interfacing B with logic interfacing A, reenters logical switch 40 and carries out matching treatment, root
According to incoming interface(Logic interfacing B)Table 0 in logical switch 40 matches, after matching flow table entry, according in the entry
Redirect regular Compass 1 and continue to look into route and understand that the interface be L3 interfaces, the flow table items for information according to acquisition is in the packet
VPN ID are set, purpose IP and the VPN ID that table 1 continues in packet is jumped to and continues under matching route acquisition reality
One hop-information, including outgoing interface, next-hop device IP, outgoing label etc., the label of needs is pressed into, fills outgoing interface and next-hop
IP, table 3 is then branched to, continue to match according to the outgoing interface of filling and next-hop device IP, it is determined that corresponding next-hop device
Two layers of information, the VLAN tag of needs is pressed into, fills MAC header, then proceed to jump to table 4, do based on outgoing interface or/and VLAN
Control business, such as CAR speed limits, and bag is transferred from the outgoing interface.
In the present embodiment, by the way that logic interfacing A and logic interfacing B are bridged, interface configuration requirement is realized not
Bridge joint between same L2VPN and L3VPN, and then cause matching of the same packet to same type of routing table, match
Destination interface forwards the packet to purpose equipment.
As shown in Fig. 6, Fig. 7, Fig. 8, Fig. 6 is the tool of the preferred embodiment of the logical switch of control data of the present invention forwarding
Body Organization Chart, Fig. 7 are the specific Organization Chart of the flow table of the logical switch in mobile IP agent scene in Fig. 6;Fig. 8 is in Fig. 6
The specific Organization Chart of the flow table of logical switch in L2VPN and L3VPN bridge joint scenes.The logical switch includes:At data
Manage module 100, analysis module 200 and data forwarding module 300.
Data processing module 100, for upon reception of the data packet, the flow table matched according to the flow table on flow table pipeline
Outgoing interface corresponding to being operated and being determined accordingly to packet is operated corresponding to.
Specifically, the data processing module 100, which is safeguarded, multiple flow tables for being used to match the packet received, the stream
Table includes multiple flow table items for being used to match operational order, and by the matching of packet and flow table item, it is corresponding right to match
Outgoing interface corresponding to the instruction and determination that packet is operated, for example, it may be modifying, forwarding or group table to packet
The operational orders such as processing.The forwarding instruction forwards the packet to next flow table for data forwarding module 300 and carries out flow table item
Matching sends packet according to default mode.The default mode can be that data forwarding module 300 passes through
Default port sends data packets to controller or is sent to purpose equipment.The packet:For ethernet frame, including header
And payload.When completing operate corresponding with the operational order to packet according to operational order corresponding to flow table item,
Whether the outgoing interface that analysis module 200 judges to determine is bridge interface.
Analysis module 200, for judging whether the outgoing interface of the determination is bridge interface.
Specifically, data processing module 100 by the packet of reception by the matching with the flow table item in flow table, match
Outgoing interface corresponding to the operational orders such as list processing and determination is modified, forwards or organized to packet, and analysis module 200 judges institute
Whether state the outgoing interface of determination is whether bridge interface is bridge interface, when the outgoing interface of the determination is bridge interface, number
Fill metadata according to processing module 100 and give the second logical switch, the metadata transmitted between described logical switch include but
It is not limited to:Token number is bridged, the bridge joint token number represents currently continue the logical switch quantity of bridge joint, by the first logic
Bridge joint token number of the interchanger in receiving packet and finding metadata is invalid value(Such as -1)When according to system configuration(Example
As controller sets the bridge joint token of logical switch to refer to initial value)Initial value is set, for the processing of current data packet,
When first logical switch is bridged to the second logical switch, data processing module 100 is filled out after subtracting one by present bridge token number
Fill table 0 of the metadata to the second logical switch flow table pipeline.Current packet is in the first described logical switch
In when being disposed, data processing module 100 resets the metadata of its table 0, and after replacement, token number is bridged in the metadata
For invalid value, when having new business demand, further according to business configuration metadata.Data forwarding module 300 will complete corresponding behaviour
The packet and metadata of work are sent to the second logical switch according to the bridge joint attribute of default bridge interface;Or when the determination
Outgoing interface when not being bridge interface, data forwarding module 300 matches the packet of reception according to the flow table on flow table pipeline
The sending method gone out is sent, the sending method that the flow table on the flow table pipeline matches can be according to business need to
The physical port of logical switch configuration, forwards the packet to corresponding equipment by the physical port, also can also be logical
Corresponding equipment will be forwarded the packet to by crossing other any default ports.The logic port that interchanger defines, it is possible to specify
Link aggregation group, tunnel or loopback interface.
Data forwarding module 300, for when the outgoing interface of the determination is bridge interface, the number of corresponding operating will to be completed
According to bag next logical switch is sent to according to the bridge joint attribute of default bridge interface.
Specifically, identity and the packet of the attribute of the bridge interface including second level logical switch
The identity of the incoming interface of second logical switch, the bridge joint attribute of the default bridge interface can be that controller is creating
Issued, also can also be when updating the logic interfacing according to business demand dynamic according to business demand during the logic interfacing
Create or update.Second logical switch and the first logical switch belong to same physics forwarding unit, and described second
Logical switch and the first logical switch can be same logical switch.If bridge joint is same logical switch, described
Second logical switch is same logical switch with the first logical switch, and the effect for presetting bridge interface is connect in bridge joint
Looping back data bag at mouthful, is again introduced into the logical switch and is matched with the flow table item in flow table, matched accordingly to institute
The instruction of the operation of packet progress is stated, that is, realizes itself loopback of the logical switch at outgoing interface, the outgoing interface is preset
Bridge data ID of trace route path be into the logical switch data path, data path interface be identified as the logic exchange
The mark of machine entrance.Turned by the mark data of the data path into the logical switch and the entrance of the logical switch
Hair module 300 sends the packet for completing corresponding operating to the logical switch matching for carrying out flow table item in flow table, with logical
Cross data processing module 100 and obtain the destination interface for the packet being operated and/or being got accordingly forwarding.Pass through
The packet for completing corresponding operating is sent to the second logic by data forwarding module 300 according to the bridge joint attribute of default bridge interface
Interchanger, the matching of the packet of reception to the flow table item of same type of flow table is realized, and complete corresponding flow table item
Operated corresponding to the operational order allotted, effectively prevent the flow table popularization brought by refinement flow table, flow table is safeguarded and more
The problem of new complicated.
In other embodiments of the present invention, if bridge joint is not same logical switch, second logical switch is
Another logical switch in same physics forwarding unit different from the first logical switch.It is pre- between logical switch
If bridge interface effect be will by the logical switch complete corresponding operating packet according to default bridge interface
Bridge joint attribute is forwarded to another logical switch.By setting bridge interface between different logical switch, and according to
The bridge joint attribute of default bridge interface sends the packet of completion corresponding operating to another logical switch, and packet can be with
Enter the matching that other logical switch carry out the flow table item in flow table as needed so that data processing module 100 can be through
Cross after the matching of flow table item and get the destination interface of forwarding, and the number of corresponding operating will be completed by data forwarding module 300
Purpose equipment corresponding with the destination interface of the forwarding of acquisition is forwarded to according to bag.
Further, data processing module 100 obtains the metadata of the first logical switch filling, and determines first number
According to the bridge joint token number of middle carrying, analysis module 200 judges whether the bridge joint token number of the determination is 0.If the determination
It is 0 to bridge token number, and data forwarding module 300 is by the data packet discarding received or sends to controller;If the determination
It is not 0 to bridge token number, operates and refers to corresponding to the flow table item that data processing module 100 matches according to the flow table on flow table pipeline
Make outgoing interface corresponding to being operated and being determined accordingly to the packet sent;Analysis module 200 judges the determination
Whether outgoing interface is bridge interface;When the outgoing interface of the determination is bridge interface, the bridge joint token number in metadata is subtracted
One, the packet and bridge the metadata after token number subtracts one according to default that data forwarding module 300 operates completion accordingly
The bridge joint attribute of bridge interface is sent to the 3rd logical switch, likewise, the 3rd logical switch can be and first
Logical switch or the second logical switch are same logical switch.First number is filled by the logical switch to packet
According to the metadata includes bridge joint token number, and when the bridge joint token number of packet is 0, packet does not enter back into logic friendship
Change planes and carry out matching treatment, avoid abnormal circulation of the packet between logical switch, blocking data path.
Reference picture 7, by taking mobile IP agent as an example, table 0 of the data processing module 100 in logical switch 10 obtain into
The corresponding flow table item of interface, and corresponding operational order is extracted, the table 1 jumped in inquiry 10, according in packet
IP is matched, and the outgoing interface for determining flow table is bridge interface corresponding to gre tunneling, and packet is done according to gre tunneling information
Gre tunneling encapsulates, and the bridge joint token number in the metadata of updated data package filling.GRE heads and the outer layer carrying encapsulated
Packet after IP heads carries out logical switch 20 from gre tunnel interface and carries out matching treatment.Data processing module 100 is according to patrolling
The corresponding flow table item that the table 0 in interchanger 20 gets incoming interface is collected, corresponding operational order is extracted, according to the flow table item
The measurement table clause of mounting does CAR speed limits, the table 1 jumped in logical switch 10, according to the purpose IP of IP heads(For nonlocal generation
Manage the IP address of equipment)Matched, redirect the table 2 in logical switch 20, fill outgoing interface and next-hop device IP after
Continuous matching, it is determined that two layers of information of corresponding next-hop device, are pressed into the VLAN tag of needs, fill MAC header, jump to table 3,
The control business based on outgoing interface and/or VLAN is done, such as can be CAR speed limits, data forwarding module 300 passes through the outgoing interface
Data on flows after matching is forwarded on agent equipment.By the bridge interface of setting, data processing module 100 passes through inquiry
Same type of routing table carries out GRE encapsulation to packet, obtains purpose agent equipment IP, realizes that network backhaul flow is forwarded to
On Foreign Agent.
Reference picture 8, with L2VPN(The virtual private net of standard 2, Virtual Private Network)And L3VPN
(The virtual private net of standard 3, Virtual Private Network)Exemplified by the scene of bridge joint, passed through from L2VPN bridge joints
L3VPN packet enters logical switch 30 and carries out matching treatment, and data processing module 100 is according to incoming interface(Physical interface)
Matched in table 0 in logical switch 30, get the corresponding flow table item of incoming interface, extract corresponding operational order,
The table 1 jumped in 30 does label lookup, determines that outgoing interface is logic interfacing A after matching flow table entry, current matching is handled
Terminate, eject outer layer label, and the bridge joint token number in the metadata of updated data package filling.
Packet is bridged to logic interfacing B with logic interfacing A, transmits to logical switch 40 and carries out matching treatment, data
Processing module 100 is according to incoming interface(Logic interfacing B)Matched in table 0, after matching flow table entry, according to the jump in the entry
Turn regular Compass 1 and continue to look into route to understand that the interface be L3 interfaces, the flow table items for information according to acquisition is set in the packet
VPN ID are put, purpose IP and the VPN ID that table 1 continues in packet is jumped to and continues the next of matching route acquisition reality
Hop-information, including outgoing interface, next-hop device IP, outgoing label etc., the label of needs is pressed into, fills outgoing interface and next-hop IP,
Table 3 is then branched to, continues to match according to the outgoing interface and next-hop device IP filled in metadata, it is determined that corresponding next-hop is set
Two layers of standby information, the VLAN tag of needs is pressed into, fills MAC header, then proceed to jump to table 4, be based on out connecing after hit
Packet is transferred bag by the control business of mouth or/and VLAN, such as CAR speed limits, data forwarding module 300 from the outgoing interface.
In the present embodiment, by the way that logic interfacing A and logic interfacing B are bridged, interface configuration requirement is realized not
Bridge joint between same L2VPN and L3VPN, and then cause matching of the same packet to same type of routing table, match
Destination interface forwards the packet to purpose equipment.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, every utilization
The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.
Claims (10)
- A kind of 1. method of control data forwarding, it is characterised in that this method includes:Upon reception of the data packet, grasped corresponding to the flow table item that the first logical switch matches according to the flow table on flow table pipeline Instruct outgoing interface corresponding to being operated and being determined accordingly to packet;First logical switch judges whether the outgoing interface of the determination is bridge interface;When the outgoing interface of the determination is bridge interface, the first logical switch will complete the packet of corresponding operating according to pre- If the bridge joint attribute of bridge interface is sent to the second logical switch;The identity of the bridge joint attribute including the second logical switch of the default bridge interface and the packet are described the The identity of incoming interface in two logical switch.
- 2. the method for control data forwarding according to claim 1, it is characterised in that sentence in first logical switch After the step of whether outgoing interface of the disconnected determination is bridge interface, this method also includes:When the outgoing interface of the determination is not bridge interface, then the first logical switch by complete corresponding operating after data The sending method matched according to the flow table on flow table pipeline is wrapped to send.
- 3. the method for control data forwarding according to claim 1, it is characterised in that first logical switch will be complete The step of being sent to the second logical switch according to the bridge joint attribute of default bridge interface into the packet of corresponding operating includes:When it is determined that outgoing interface be bridge interface when, filling metadata give the second logical switch, and the metadata includes bridging Token number;First logical switch sends out the packet for completing corresponding operating and metadata according to the bridge joint attribute of default bridge interface It is sent to the second logical switch.
- 4. the method for control data forwarding according to claim 3, it is characterised in that will in first logical switch The packet and metadata for completing corresponding operating are sent to the second logical switch according to the bridge joint attribute of default bridge interface After step, this method also includes:Second logical switch obtains the metadata of the first logical switch filling, and determines what is carried in metadata Token number is bridged, whether the bridge joint token number for judging the determination is 0;If the bridge joint token number of the determination is 0, second logical switch is by the data packet discarding received or transmission To controller.
- 5. the method for control data forwarding according to claim 4, it is characterised in that in the bridge for judging the determination After connecing the step of whether token number is 0, this method also includes:If the bridge joint token number of the determination is not 0, the second logical switch matches according to the flow table on flow table pipeline The packet sent is operated operational order corresponding to flow table item accordingly and outgoing interface corresponding to determining;Whether the outgoing interface that the second logical switch judges to determine is bridge interface;When it is determined that outgoing interface be bridge interface when, the bridge joint token number in metadata is subtracted one, then will complete corresponding behaviour Metadata after the packet and bridge joint token number of work subtract one is sent to the 3rd logic according to the bridge joint attribute of default bridge interface Interchanger.
- 6. a kind of logical switch of control data forwarding, it is characterised in that the logical switch includes:Data processing module, for upon reception of the data packet, the flow table item matched according to the flow table on flow table pipeline to be corresponding Operational order packet is operated accordingly and outgoing interface corresponding to determining;Analysis module, for judging whether the outgoing interface of the determination is bridge interface;Data forwarding module, for when the outgoing interface of the determination is bridge interface, the packet for completing corresponding operating to be pressed The second logical switch is sent to according to the bridge joint attribute of default bridge interface;The identity of the bridge joint attribute including the second logical switch of the default bridge interface and the packet are described the The identity of incoming interface in two logical switch.
- 7. the logical switch of control data forwarding according to claim 6, it is characterised in thatThe data forwarding module, it is additionally operable to when the outgoing interface of the determination is not bridge interface, corresponding operating will be completed The sending method that packet matches according to the flow table on flow table pipeline is sent.
- 8. the logical switch of control data forwarding according to claim 6, it is characterised in thatThe data processing module, be additionally operable to when it is determined that outgoing interface be bridge interface when, filling metadata to the second logic friendship Change planes, the metadata includes bridge joint token number;The data forwarding module, it is additionally operable to send out the packet for completing corresponding operating according to the bridge joint attribute of default bridge interface It is sent to the second logical switch.
- 9. the logical switch of control data forwarding according to claim 8, it is characterised in thatThe data processing module, is additionally operable to obtain the metadata of the first logical switch filling, and determines to carry in metadata Bridge joint token number;The analysis module, whether the bridge joint token number for being additionally operable to judge the determination is 0;The data forwarding module, if the bridge joint token number for being additionally operable to the determination is 0, by the data packet discarding received or hair Deliver to controller.
- 10. the logical switch of control data forwarding according to claim 9, it is characterised in thatThe data processing module, if the bridge joint token number for being additionally operable to the determination is not 0, according to the flow table on flow table pipeline The packet sent is operated operational order corresponding to the flow table item allotted accordingly and outgoing interface corresponding to determining;The analysis module, whether the outgoing interface for being additionally operable to judge to determine is bridge interface;The data processing module, be additionally operable to when it is determined that outgoing interface be bridge interface when, by the bridge joint token number in metadata Subtract one;The data forwarding module, be additionally operable to will complete corresponding operating packet and bridge joint token number subtract one after metadata by The 3rd logical switch is sent to according to the bridge joint attribute of default bridge interface.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310282435.5A CN104283814B (en) | 2013-07-05 | 2013-07-05 | The method and logical switch of control data forwarding |
PCT/CN2014/076908 WO2014183579A1 (en) | 2013-07-05 | 2014-05-06 | Data forwarding control method and logic switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310282435.5A CN104283814B (en) | 2013-07-05 | 2013-07-05 | The method and logical switch of control data forwarding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104283814A CN104283814A (en) | 2015-01-14 |
CN104283814B true CN104283814B (en) | 2018-03-30 |
Family
ID=51897701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310282435.5A Active CN104283814B (en) | 2013-07-05 | 2013-07-05 | The method and logical switch of control data forwarding |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104283814B (en) |
WO (1) | WO2014183579A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105227896B (en) * | 2015-08-27 | 2020-10-16 | 北京华夏创新科技有限公司 | Video conference optimization technical method and system in transparent mode |
WO2017092009A1 (en) * | 2015-12-03 | 2017-06-08 | 华为技术有限公司 | Configuration processing method and device for switch |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102349268A (en) * | 2009-03-09 | 2012-02-08 | 日本电气株式会社 | Openflow communication system and openflow communication method |
CN102595358A (en) * | 2011-11-25 | 2012-07-18 | 中兴通讯股份有限公司 | Processing method and device for preventing short message from circulating |
WO2012120990A1 (en) * | 2011-03-09 | 2012-09-13 | 日本電気株式会社 | Computer system, server, openflow controller, and communication method |
CN102843299A (en) * | 2012-09-12 | 2012-12-26 | 盛科网络(苏州)有限公司 | Method and system for realizing Openflow multi-stage flow tables on basis of ternary content addressable memory (TCAM) |
CN102957603A (en) * | 2012-11-09 | 2013-03-06 | 盛科网络(苏州)有限公司 | Multilevel flow table-based Openflow message forwarding method and system |
CN103095583A (en) * | 2012-11-09 | 2013-05-08 | 盛科网络(苏州)有限公司 | Method achieving Open flow two-stage flow table through chip loopback and system thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101478475B1 (en) * | 2010-09-09 | 2014-12-31 | 닛본 덴끼 가부시끼가이샤 | Computer system and communication method in computer system |
-
2013
- 2013-07-05 CN CN201310282435.5A patent/CN104283814B/en active Active
-
2014
- 2014-05-06 WO PCT/CN2014/076908 patent/WO2014183579A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102349268A (en) * | 2009-03-09 | 2012-02-08 | 日本电气株式会社 | Openflow communication system and openflow communication method |
WO2012120990A1 (en) * | 2011-03-09 | 2012-09-13 | 日本電気株式会社 | Computer system, server, openflow controller, and communication method |
CN102595358A (en) * | 2011-11-25 | 2012-07-18 | 中兴通讯股份有限公司 | Processing method and device for preventing short message from circulating |
CN102843299A (en) * | 2012-09-12 | 2012-12-26 | 盛科网络(苏州)有限公司 | Method and system for realizing Openflow multi-stage flow tables on basis of ternary content addressable memory (TCAM) |
CN102957603A (en) * | 2012-11-09 | 2013-03-06 | 盛科网络(苏州)有限公司 | Multilevel flow table-based Openflow message forwarding method and system |
CN103095583A (en) * | 2012-11-09 | 2013-05-08 | 盛科网络(苏州)有限公司 | Method achieving Open flow two-stage flow table through chip loopback and system thereof |
Also Published As
Publication number | Publication date |
---|---|
WO2014183579A1 (en) | 2014-11-20 |
CN104283814A (en) | 2015-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109873760B (en) | Method and device for processing route, and method and device for data transmission | |
CN105009544B (en) | Tunnel processing method, switching equipment and the control device of message | |
CN104135420B (en) | A kind of method, equipment and the system of message forwarding | |
CN105376154B (en) | Gradual MAC address learning | |
CN103548376B (en) | EPC is realized in cloud computer by OPENFLOW data planes | |
CN101394361B (en) | Packet transmission method, device and system | |
CN104092595B (en) | Message processing method and device in virtualization system based on 802.1BR | |
CN104702479B (en) | The method and apparatus that tunnel is established in SDN network | |
CN107181663A (en) | A kind of message processing method, relevant device and computer-readable recording medium | |
CN102571426B (en) | Double-homing protection method and device | |
US20120099602A1 (en) | End-to-end virtualization | |
CN107637031A (en) | Path-calculating element central controller (PCECC) for Network | |
CN100403735C (en) | Method and system for realizing binding interface edge-to-edge pseudo wire simulation service | |
CN104702438B (en) | PE device management methods and device | |
CN104243270A (en) | Tunnel setup method and tunnel setup device | |
CN100555999C (en) | A kind of method and apparatus of realizing edge-to-edge pseudo-line simulation | |
CN104243362B (en) | A kind of message forwarding method and device | |
WO2008092357A1 (en) | A method and device for establishing a pseudo wire tunnel and transmitting message using it | |
CN103905284B (en) | A kind of flow load sharing method and apparatus based on EVI networks | |
CN104639440B (en) | A kind of method and apparatus for realizing three layers of forwarding and tunneling information in a network | |
CN103747502B (en) | The processing method and system of a kind of GTP tunnel | |
CN108040135A (en) | A kind of VPWS messages pass through the method and device of three layers of IP network | |
CN101926132B (en) | Circuit emulation over ip interworking vll | |
CN104521188A (en) | Method, apparatus and system for establishing optical bypass | |
CN105933235B (en) | Data communications method and device |
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 |