CN105610737A - Method for implementing hairpin switch based on OpenFlow and hairpin switch system - Google Patents

Method for implementing hairpin switch based on OpenFlow and hairpin switch system Download PDF

Info

Publication number
CN105610737A
CN105610737A CN201610048022.4A CN201610048022A CN105610737A CN 105610737 A CN105610737 A CN 105610737A CN 201610048022 A CN201610048022 A CN 201610048022A CN 105610737 A CN105610737 A CN 105610737A
Authority
CN
China
Prior art keywords
message
switch
openflow
hairpin
inbound port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610048022.4A
Other languages
Chinese (zh)
Other versions
CN105610737B (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.)
Suzhou Centec Communications Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201610048022.4A priority Critical patent/CN105610737B/en
Publication of CN105610737A publication Critical patent/CN105610737A/en
Application granted granted Critical
Publication of CN105610737B publication Critical patent/CN105610737B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction

Landscapes

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

Abstract

The invention discloses a method for implementing a hairpin switch based on OpenFlow. The method comprises the following steps that an OpenFlow controller sends a flow table to the switch; a message matching condition and an execution action matched with a message are set in the flow table; the message enters through an inlet port of the switch; the message is matched with the matching condition in the flow table at first; and, if the message is matched with the matching condition in the flow table, the message is sent back through the original inlet port after a Vlan tag value of the message is changed according to the corresponding execution action. The invention further discloses a hairpin switch system based on OpenFlow. According to the invention, the MEF-defined hairpin switching function is realized based on OpenFlow; and thus, cross-OVC (Operator Virtual Connection) communication convenient to manage in a unified manner in an operator can be realized.

Description

Hairpin switch implementation method based on OpenFlow and hairpin switch system
Technical field
The present invention relates to a kind of Hairpin switch technology, especially relate to a kind of based on OpenFlowHairpin switch implementation method and based on OpenFlow realize hairpin switch system.
Background technology
Hairpinswitching technology is by the VLANID in the S-tag of the ENNIFrame specifyingMake another one VLANID into and be sent back to the switch-activity of this ENNI, (can consult in detailMEF26.1). ENNI refers to the interface between different operators, and ENNIFrame passes through ENNI exactlyThe Ethernet message of interface, if comprise a VLANtag (virtual local area network tags), so justS-Tag; If comprise two-layer VLANtag, so outer field is S-tag, the C-tag of internal layer.
The scene of HairpinSwitching, can use at present in the industry VPWS (User-Network Interface UNI-User-Network Interface UNI), or VPLS (UNI-UNI and mac-learningdisable) comes realExisting. VPWS technology and VPLS technology all belong to MPLSL2VPN network, MPLSL2VPN netNetwork is exactly transmission user's transparent on MPLS network Layer 2 data. From user's angle,This MPLS network is exactly the exchange network of two layers, by this network, can stand in differenceBetween point, set up the connection of two layers.
VPWS (VirtualPrivateWireService, virtual dedicated line service) refers in grouping and hands overTrue as far as possible topotype in switching network PSN (PacketSwitchedNetwork, packet switching network)One of the basic act of the business such as imitative ATM, frame relay, Ethernet, low speed TDM circuit and featurePlant two layer service bearing technologies, the L2VPN business of a kind of point-to-point providing in common network.VPWS can allow connection effect between two websites as directly with connection, it can not be straightBe connected on ISP place and carry out the exchange of multi-point. But, utilize traditional vpws to realize HairpinSwitching function, need to revise default behavior, changes UNI-UNI into from UNI-NNI.
VPLS (VirtualPrivateLanService, virtual privately owned LAN service) is at common networkA kind of point-to-multipoint L2VPN business providing in network. VPLS technology is considered to be in VPWSBasis on, the function of two layers of exchange expanding on PE equipment. But, utilize VPLS to realizeHairpinSwitching function, needs act of revision, changes single-UNI into from multi-UNI/NNI,And need to turn off maclearning code.
In addition, above-mentioned two kinds of methods, all need switch to support L2VPN, and are local behaviors,Be unfavorable for the unified management of webmaster.
Summary of the invention
The object of the invention is to overcome the defect of prior art, provide a kind of based on OpenFlow'sThe hairpin switch system of hairpin switch implementation method and realization, based on the semanteme of openflowAnd utilize the reserved port IN_PORT of openflow, to realize the hairpinswitching of MEF definitionFunction.
For achieving the above object, the present invention proposes following technical scheme: a kind of based on OpenFlow'sHairpin switch implementation method, comprising: OpenFlow controller issues stream table to switch, described inIn stream table, be provided with performing an action of message matching condition and matching message, message is from the end that enters of switchMouth enters, and the matching condition first and in described stream table matches, if coupling, according to corresponding executionAfter the Vlan label value of action change message, message is beamed back from former inbound port.
Preferably, described message matching condition is: the inbound port that the entry port of message is switch,And the Vlan label value of message is the setting value in stream table.
Preferably, described message matching condition is: the inbound port that the entry port of message is switch,And the Vlan label value of message is the setting value 10 in stream table.
Preferably, described matching message perform an action for: first change the Vlan label value of message, thenMessage is beamed back from former inbound port.
Preferably, described matching message perform an action for: first change the Vlan label value of message, thenMessage is beamed back from former inbound port.
The invention allows for a kind of hairpin switch system of realizing based on OpenFlow, comprising:OpenFlow controller and hairpin switch,
Described OpenFlow controller, for issuing stream table to hairpin switch, is established in described stream tablePut performing an action of message matching condition and matching message;
In described hairpin switch, comprise matching module and Executive Module, described matching module is used forMessage, from the inbound port of switch enters, matches the matching condition in message and stream table, ifJoin, message is sent into Executive Module; The execution of described Executive Module for message is shown according to streamAction changes the Vlan label value of message, afterwards message is beamed back from former inbound port.
The invention has the beneficial effects as follows: the present invention is based on OpenFlow and realized MEF definitionHairpinswitching function, thus realized operator inside be convenient to unified management across OVCThe communication of (OperatorVirtualConnection, operator's virtual connections).
Brief description of the drawings
Fig. 1 is the schematic flow sheet that the present invention is based on the hairpin switch implementation method of OpenFlow;
Fig. 2 is the principle schematic of hairpin switch system of the present invention;
Fig. 3 is the principle schematic of embodiment of the present invention hairpin switch system.
Detailed description of the invention
Below in conjunction with accompanying drawing of the present invention, the technical scheme of the embodiment of the present invention is carried out clear, completeWhole description.
The hairpinswitching behavior of Metro Ethernet Forum (MEF) definition, can simply understandFor: the Ethernet message that is x with S-tag value, enter after switch, forwarded out from entrance, andAnd S-tag is modified to y, other remain unchanged (except CRC recalculates).
Shown in Fig. 1 and Fig. 2, the hairpin switch based on OpenFlow that the present invention disclosesThe hairpin switch system of implementation method and realization, MEF realized in the semanteme based on OpenFlowThe hairpinswitching function of definition, realized operator inside be convenient to unified management across OVCCommunication.
Particularly, as shown in Figure 1, the disclosed exchange of the hairpin based on OpenFlowMachine implementation method, comprises the following steps:
First, OpenFlow controller issues stream table to switch, is provided with message coupling bar in stream tablePerforming an action of part and matching message.
Technical essential of the present invention mainly concentrates on the stream table that controller issues to switch, stream table(flow) be the forwarding item of OpenFlow definition, if the matching domain of message coupling flow definition(matchfield can be understood as message matching condition), will be according to the behavior act of its definition(action) message is processed. According to the hairpinswitching function of MEF definition, the present inventionThe message matching condition arranging is:
The message that is hairpinswitching need to meet two conditions simultaneously: 1, the upstream end of messageMouthful be the inbound port of switch, 2 and the S-tagvlanid (Vlan label value) of message for during stream showsSetting value.
Arrange message perform an action into:
The first, first change the Vlan label value of message,
The second, then message is beamed back from former inbound port, message from which port enters again from identicalPort is sent.
Message is from the inbound port of switch enters, and the matching condition first and in stream table matches, ifJoin, meet the message of above-mentioned message matching condition simultaneously, can carry out in order above-mentioned two actions.
The present invention has also disclosed a kind of hairpin switch system of realizing based on OpenFlow, as figureShown in 2, mainly comprise OpenFlow controller and hairpin switch, OpenFlow controller is usedIn issuing stream table to hairpin switch, in stream table, be provided with holding of message matching condition and matching messageAction is done, and the concrete configuration of stream table can, with reference to foregoing description, repeat no more here.
In hairpin switch, comprise matching module (not shown) and Executive Module (not shown), couplingModule is used at message from the inbound port of switch enters, by the matching condition phase in message and stream tableCoupling, if coupling is sent message into Executive Module; Executive Module is for showing message according to streamPerform an action and change the Vlan label value of message, afterwards message is beamed back from former inbound port.
Introduce lower operation principle of the present invention with a specific embodiment below:
As shown in Figure 3, the hairpinswitching behavior being defined from MEF, i.e. the present embodimentThe message that is 10 by the S-tag entering from port portl, by hairpinswitching by its S-tagChange 20 into, and beam back from port portl.
The present embodiment is based on OpenFlow semanteme, and the message matching condition of definition stream table is: IN_PORT=1, message enters from portl; Dl_vlan=10, the S-tagvlanid of message is 10. DefinitionThe message of stream table perform an action into: set_field:20-> vlan_vid, changes 20 into by the vlanid of message;Ouput:IN_PORT, beams back message, beams back from the portl that receives message. Wherein IN_PORTThe reserved port that represents OpenFlowSpecification definition, specially refers to the port that message enters, can onlyAs outputport, message is beamed back from receiving port.
Therefore, VLANid revised in the semanteme that the present invention is based on OpenFlow, and utilizedThe reserved port IN_PORT of OpenFlow, has realized the hairpinswitching merit that MEF definesCan, realize operator inside and be convenient to the communication across OVC of unified management.
Technology contents of the present invention and technical characterictic disclose as above, but are familiar with the technology people of this areaMember still may do based on teaching of the present invention and announcement allly do not deviate from the replacement of spirit of the present invention and repairDecorations, therefore, protection domain of the present invention should be not limited to the content that embodiment discloses, and should comprise variousDo not deviate from replacement of the present invention and modification, and contained by present patent application claim.

Claims (8)

1. the hairpin switch implementation method based on OpenFlow, is characterized in that, comprising:OpenFlow controller issues stream table to switch, in described stream table, be provided with message matching condition andDeliver newspapers the performing an action of literary composition, message enters from the inbound port of switch, first and mating in described stream tableCondition matches, if coupling, according to inciting somebody to action after the Vlan label value of the change message that performs an action accordinglyMessage is beamed back from former inbound port.
2. the hairpin switch implementation method based on OpenFlow according to claim 1, itsBe characterised in that, described message matching condition is: the inbound port that the entry port of message is switch, andThe Vlan label value of message is the setting value in stream table.
3. the hairpin switch implementation method based on OpenFlow according to claim 2, itsBe characterised in that, described message matching condition is: the inbound port that the entry port of message is switch, andThe Vlan label value of message is the setting value 10 in stream table.
4. the hairpin switch implementation method based on OpenFlow according to claim 1, itsBe characterised in that, described matching message perform an action for: first change the Vlan label value of message, then willMessage is beamed back from former inbound port.
5. the hairpin switch implementation method based on OpenFlow according to claim 1, itsBe characterised in that, described matching message perform an action for: first change the Vlan label value of message, then willMessage is beamed back from former inbound port.
6. a hairpin switch system of realizing based on OpenFlow, comprising: OpenFlow controlDevice processed and hairpin switch,
Described OpenFlow controller, for issuing stream table to hairpin switch, is established in described stream tablePut performing an action of message matching condition and matching message;
In described hairpin switch, comprise matching module and Executive Module, described matching module is used forMessage, from the inbound port of switch enters, matches the matching condition in message and stream table, ifJoin, message is sent into Executive Module; The execution of described Executive Module for message is shown according to streamAction changes the Vlan label value of message, afterwards message is beamed back from former inbound port.
7. the hairpin switch system of realizing based on OpenFlow according to claim 6,It is characterized in that, described message matching condition is: the inbound port that the entry port of message is switch,And the Vlan label value of message is the setting value in stream table.
8. the hairpin switch system of realizing based on OpenFlow according to claim 6,It is characterized in that, described matching message perform an action for: first change the Vlan label value of message, thenMessage is beamed back from former inbound port.
CN201610048022.4A 2016-01-25 2016-01-25 Hairpin interchanger implementation method and hairpin switch system based on OpenFlow Active CN105610737B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610048022.4A CN105610737B (en) 2016-01-25 2016-01-25 Hairpin interchanger implementation method and hairpin switch system based on OpenFlow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610048022.4A CN105610737B (en) 2016-01-25 2016-01-25 Hairpin interchanger implementation method and hairpin switch system based on OpenFlow

Publications (2)

Publication Number Publication Date
CN105610737A true CN105610737A (en) 2016-05-25
CN105610737B CN105610737B (en) 2019-02-15

Family

ID=55990279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610048022.4A Active CN105610737B (en) 2016-01-25 2016-01-25 Hairpin interchanger implementation method and hairpin switch system based on OpenFlow

Country Status (1)

Country Link
CN (1) CN105610737B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314498A (en) * 2020-01-21 2020-06-19 山东汇贸电子口岸有限公司 Network address translation method and NAT gateway
US11271775B2 (en) * 2018-06-29 2022-03-08 Intel Corporation Technologies for hairpinning network traffic

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860551A (en) * 2010-06-25 2010-10-13 神州数码网络(北京)有限公司 Multi-user authentication method and system under single access port
CN201947294U (en) * 2011-02-22 2011-08-24 杭州盈高科技有限公司 System for realizing communication between terminal equipment with same subnet but different virtual local area networks (VLAN)
CN102934400A (en) * 2010-06-09 2013-02-13 日本电气株式会社 Communication system, logic channel control device, control device, communication method and program
CN104486227A (en) * 2014-12-11 2015-04-01 武汉绿色网络信息服务有限责任公司 System and method for achieving IPv6 flexible arrangement through VxLAN technique
US9197443B2 (en) * 2009-11-13 2015-11-24 Telefonaktiebolaget L M Ericsson (Publ) Provider edge bridge with remote customer service interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9197443B2 (en) * 2009-11-13 2015-11-24 Telefonaktiebolaget L M Ericsson (Publ) Provider edge bridge with remote customer service interface
CN102934400A (en) * 2010-06-09 2013-02-13 日本电气株式会社 Communication system, logic channel control device, control device, communication method and program
CN101860551A (en) * 2010-06-25 2010-10-13 神州数码网络(北京)有限公司 Multi-user authentication method and system under single access port
CN201947294U (en) * 2011-02-22 2011-08-24 杭州盈高科技有限公司 System for realizing communication between terminal equipment with same subnet but different virtual local area networks (VLAN)
CN104486227A (en) * 2014-12-11 2015-04-01 武汉绿色网络信息服务有限责任公司 System and method for achieving IPv6 flexible arrangement through VxLAN technique

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11271775B2 (en) * 2018-06-29 2022-03-08 Intel Corporation Technologies for hairpinning network traffic
CN111314498A (en) * 2020-01-21 2020-06-19 山东汇贸电子口岸有限公司 Network address translation method and NAT gateway
CN111314498B (en) * 2020-01-21 2022-05-24 浪潮云信息技术股份公司 Network address translation method and NAT gateway

Also Published As

Publication number Publication date
CN105610737B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US9240894B2 (en) Multicast snooping on layer 2 virtual private network
Lasserre et al. Virtual private LAN service (VPLS) using label distribution protocol (LDP) signaling
US9294305B2 (en) Method for sending ethernet frames in ethernet tree service and provider edge device
US8619788B1 (en) Performing scalable L2 wholesale services in computer networks
CN101820392B (en) A kind of method and network processing unit realizing multi-service forwarding
EP2753022A1 (en) Virtual private network implementation method and system based on traffic engineering tunnel
CN100512148C (en) Convergence method and device based on VPLS dual home full connection network
US20070253432A1 (en) Network device providing access to both layer 2 and layer 3 services on a single physical interface
CN103368775B (en) flow backup method and core switching device
CN102098202B (en) Virtual private topology control method, device and system
Fedyk et al. Generalized multiprotocol label switching (GMPLS) control of Ethernet provider backbone traffic engineering (PBB-TE)
EP2897328B1 (en) Method, system and apparatus for establishing communication link
CN102333024B (en) The retransmission method of the Frame of VPLS VPLS, equipment and system
WO2011038646A1 (en) Two-layer forwarding method for a pseudo wire (pw) service and system thereof
CN101345686A (en) Processing method, apparatus and system of virtual special local area network service loop
CN105610737A (en) Method for implementing hairpin switch based on OpenFlow and hairpin switch system
CN104113513B (en) A kind of detecting host method, apparatus and system
CN102970224A (en) Method compatible with ATM (asynchronous transfer mode) system and based on IP (Internet protocol) switched network for realizing MPLS (multi-protocol label switching) message forwarding
US9137153B2 (en) Interworking between ethernet and MPLS
CN104717119A (en) Method and system for realizing bridge connection between L2 VPN and L3 VPN
CN101834804B (en) Method and device for realizing speed limit for traffic of virtual private networks (VPN)
CN111683307B (en) Method and system for accessing service under OLT (optical line terminal) multi-stage exchange
CN106961412B (en) Message conversion method, device and system
CN107770028B (en) Method for realizing point-to-multipoint virtual local area network service in China telecommunication scene
CN102315999A (en) Two-layer virtual private network internetworking method and provider edge (PE) equipment

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 215101 unit 13 / 16, 4th floor, building B, No. 5, Xinghan street, Suzhou Industrial Park, Jiangsu Province

Patentee after: Suzhou Shengke Communication Co.,Ltd.

Address before: 215021 unit 13 / 16, floor 4, building B, No. 5, Xinghan street, industrial park, Suzhou, Jiangsu Province

Patentee before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd.