CN105610737B - Hairpin interchanger implementation method and hairpin switch system based on OpenFlow - Google Patents
Hairpin interchanger implementation method and hairpin switch system based on OpenFlow Download PDFInfo
- Publication number
- CN105610737B CN105610737B CN201610048022.4A CN201610048022A CN105610737B CN 105610737 B CN105610737 B CN 105610737B CN 201610048022 A CN201610048022 A CN 201610048022A CN 105610737 B CN105610737 B CN 105610737B
- Authority
- CN
- China
- Prior art keywords
- message
- hairpin
- interchanger
- openflow
- matching
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
Abstract
The hairpin interchanger implementation method based on OpenFlow that present invention discloses a kind of, flow table is issued to interchanger including OpenFlow controller, message matching condition and matching message are provided in the flow table executes movement, message enters from the inbound port of interchanger, the first matching condition with the flow table matches, if matching, message is sent back to from former inbound port after the Vlan label value for changing message is acted according to corresponding execution.Present invention further teaches a kind of hairpin switch systems realized based on OpenFlow.The present invention is based on OpenFlow to realize the hairpin switching function that MEF is defined, to realize inside operator convenient for the communication across OVC of unified management.
Description
Technical field
The present invention relates to a kind of Hairpin switch technologies, hand over more particularly, to a kind of hairpin based on OpenFlow
Implementation method of changing planes and the hairpin switch system realized based on OpenFlow.
Background technique
Hairpin switching technology is that the VLAN ID in the S-tag for the ENNI Frame that will be specified is changed to other one
A VLAN ID and the switch-activity for being sent back to this ENNI, (seeing MEF26.1 in detail).ENNI refer to different operators it
Between interface, ENNI Frame is exactly the ether network packet by ENNI interface, if including a VLAN tag (virtual local area
Network mark label), then being exactly S-Tag;If outer layer is S-tag, the C-tag of internal layer comprising two layers of VLAN tag.
The scene of Hairpin Switching, in the industry at present can (User-Network Interface UNI-user network connects with VPWS
Mouthful UNI) or VPLS (UNI-UNI and mac-learning disable) realize.VPWS technology and VPLS technology belong to
In MPLS L2VPN network, MPLS L2VPN network is exactly the Layer 2 data of transparent transmitting user in MPLS network.From with
From the perspective of family, this MPLS network is exactly one two layers of exchange network, by this network, can different websites it
Between establish two layers of connection.
VPWS (Virtual Private Wire Service, virtual dedicated line service) refers in packet switching network
In PSN (Packet Switched Network, packet switching network) as far as possible truly imitate ATM, frame relay, Ethernet,
The basic act of the business such as low speed TDM circuit and the two layer service bearing technology of one kind of feature, one provided in common network
The L2VPN business of kind point-to-point.VPWS can allow the connection effect between two websites as directly with connection, it is not
The exchange of multi-point can be carried out directly at ISP.But Hairpin Switching is realized using traditional vpws
Function, needs to modify default behavior, is changed to UNI-UNI from UNI-NNI.
VPLS (Virtual Private Lan Service, virtual privately owned LAN service) is provided in common network
A kind of point-to-multipoint L2VPN business.VPLS technology is considered as on the basis of VPWS, and two layers extended in PE equipment are handed over
The function of changing.But Hairpin Switching function is realized using VPLS, act of revision is needed, from multi-UNI/NNI
It is changed to single-UNI, and needs to turn off mac learning code.
In addition, above two method, requires interchanger and supports L2VPN, and be local behavior, be unfavorable for the system of network management
One management.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of hairpin exchange based on OpenFlow is provided
Machine implementation method and the hairpin switch system of realization, the semanteme based on openflow and the remaining end using openflow
Mouthful IN_PORT, to realize hairpin switching function that MEF is defined.
To achieve the above object, the following technical solutions are proposed: a kind of hairpin interchanger based on OpenFlow by the present invention
Implementation method, comprising: OpenFlow controller issues flow table to interchanger, be provided in the flow table message matching condition and
Movement is executed with message, message enters from the inbound port of interchanger, first matches with the matching condition in the flow table, if
Match, then sends back to message from former inbound port after acting the Vlan label value of change message according to corresponding execution.
Preferably, the message matching condition are as follows: message be into port interchanger inbound port, and the Vlan of message
Label value is the setting value in flow table.
Preferably, the message matching condition are as follows: message be into port interchanger inbound port, and the Vlan of message
Label value is the setting value 10 in flow table.
Preferably, the matching message executes movement are as follows: first changes the Vlan label value of message, then message entered from original
Port is sent back to.
Preferably, the matching message executes movement are as follows: first changes the Vlan label value of message, then message entered from original
Port is sent back to.
The invention also provides a kind of hairpin switch systems realized based on OpenFlow, comprising: OpenFlow control
Device and hairpin interchanger processed,
The OpenFlow controller is used to issue flow table to hairpin interchanger, is provided with message in the flow table
Movement is executed with condition and matching message;
It include matching module and execution module in the hairpin interchanger, the matching module is used in message from friendship
After the inbound port changed planes enters, message and the matching condition in flow table are matched, if matching, message is sent into and executes mould
Block;The execution module is used to change message according to the execution movement in flow table the Vlan label value of message, later by message
It is sent back to from former inbound port.
The beneficial effects of the present invention are: the present invention is based on OpenFlow to realize the hairpin switching that MEF is defined
Function, to realize inside operator convenient for unified management across OVC (Operator Virtual Connection, operation
Quotient's virtual connections) communication.
Detailed description of the invention
Fig. 1 is the flow diagram of the hairpin interchanger implementation method the present invention is based on OpenFlow;
Fig. 2 is the schematic illustration of hairpin switch system of the present invention;
Fig. 3 is the schematic illustration of hairpin switch system of the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing of the invention, clear, complete description is carried out to the technical solution of the embodiment of the present invention.
The hairpin switching behavior that Metro Ethernet Forum (MEF) defines, can simply understand are as follows: band S-tag
Value is the ether network packet of x, into after interchanger, is transferred from entrance, and S-tag is modified to y, and other holdings are not
Become (in addition to CRC is recalculated).
Referring to figs. 1 and 2, the hairpin interchanger implementation method and reality based on OpenFlow that the present invention discloses
Existing hairpin switch system, the semanteme based on OpenFlow realize the hairpin switching function that MEF is defined,
It realizes inside operator convenient for the communication across OVC of unified management.
Specifically, as shown in Figure 1, the disclosed hairpin interchanger implementation method based on OpenFlow, packet
Include following steps:
Firstly, OpenFlow controller issues flow table to interchanger, message matching condition and matching report are provided in flow table
Text executes movement.
Technical key point of the present invention is concentrated mainly in the flow table that controller is issued to interchanger, and flow table (flow) is
The forwarding item that OpenFlow is defined, if matching domain (the match field, it can be understood as message that message matching flow is defined
Matching condition), message will be processed according to the behavior act (action) that it is defined.The hairpin defined according to MEF
Switching function, the message matching condition that the present invention is arranged are as follows:
The message for being hairpin switching needs while meeting two conditions: 1, the port that enters of message is exchange
The inbound port of machine, 2 and message S-tag vlan id (Vlan label value) be flow table in setting value.
The message of setting executes movement are as follows:
First, first change the Vlan label value of message,
Second, then message is sent back to from former inbound port, i.e., message enters from which port and sends out again from identical port.
Message first matches with the matching condition in flow table after the entrance of the inbound port of interchanger, if matching, i.e., full simultaneously
The message of the above-mentioned message matching condition of foot, can execute above-mentioned two movement in sequence.
Present invention further teaches a kind of hairpin switch systems realized based on OpenFlow, as shown in Fig. 2, mainly
Including OpenFlow controller and hairpin interchanger, OpenFlow controller is used to issue flow table to hairpin interchanger,
Message matching condition and matching message are provided in flow table executes movement, and the concrete configuration of flow table can refer to foregoing description, this
In repeat no more.
It include matching module (not shown) and execution module (not shown) in hairpin interchanger, matching module is used for
Message matches message and the matching condition in flow table after the entrance of the inbound port of interchanger, if matching, message is sent into
Execution module;Execution module is used to change message according to the execution movement in flow table the Vlan label value of message, later will report
Wen Congyuan inbound port is sent back to.
Lower the working principle of the invention is introduced with a specific embodiment below:
As shown in figure 3, the hairpin switching behavior defined by MEF it is found that i.e. the present embodiment be will be from port
Its S-tag is changed to 20 by hairpin switching by the message that the S-tag that portl enters is 10, and from port portl
It sends back to.
It is semantic that the present embodiment is based on OpenFlow, defines the message matching condition of flow table are as follows: IN_PORT=1, i.e. message from
Portl enters;Dl_vlan=10, i.e. the S-tag vlan id of message are 10.The message for defining flow table executes movement are as follows: set_
The vlan id of message is changed to 20 by field:20- > vlan_vid;Ouput:IN_PORT sends back to message, i.e., from reception
Portl to message is sent back to.Wherein IN_PORT indicates the reserved port that OpenFlow Specification is defined, and refers exclusively to report
The port that text enters can only be used as output port, message is sent back to from receiving port.
Therefore, the present invention is based on the semantemes of OpenFlow to have modified VLAN id, and the reserved port of OpenFlow is utilized
IN_PORT realizes the hairpin switching function that MEF is defined, realize inside operator convenient for unified management across
The communication of OVC.
Technology contents and technical characteristic of the invention have revealed that as above, however those skilled in the art still may base
Make various replacements and modification without departing substantially from spirit of that invention, therefore, the scope of the present invention in teachings of the present invention and announcement
It should be not limited to the revealed content of embodiment, and should include various without departing substantially from replacement and modification of the invention, and be this patent Shen
Please claim covered.
Claims (7)
1. a kind of hairpin interchanger implementation method based on OpenFlow characterized by comprising OpenFlow controller
Flow table is issued to interchanger, is provided with the movement that executes of message matching condition and matching message in the flow table, and message is from exchange
The inbound port of machine enters, and first matches with the matching condition in the flow table, if matching, acts and changes according to corresponding execution
Message is sent back to from former inbound port after the Vlan label value of message.
2. the hairpin interchanger implementation method according to claim 1 based on OpenFlow, which is characterized in that described
Message matching condition are as follows: message into port be interchanger inbound port, and the Vlan label value of message be flow table in setting
Definite value.
3. the hairpin interchanger implementation method according to claim 2 based on OpenFlow, which is characterized in that described
Message matching condition are as follows: message into port be interchanger inbound port, and the Vlan label value of message be flow table in setting
Definite value 10.
4. the hairpin interchanger implementation method according to claim 1 based on OpenFlow, which is characterized in that described
Matching message executes movement are as follows: first changes the Vlan label value of message, then message is sent back to from former inbound port.
5. a kind of hairpin switch system realized based on OpenFlow, comprising: OpenFlow controller and hairpin are handed over
It changes planes,
The OpenFlow controller is used to issue flow table to hairpin interchanger, is provided with message matching item in the flow table
Part and matching message execute movement;
It include matching module and execution module in the hairpin interchanger, the matching module is used in message from interchanger
Inbound port enter after, message and the matching condition in flow table are matched, if match, message is sent into execution module;Institute
Execution module is stated for message to be changed to the Vlan label value of message according to the execution movement in flow table, later enters message from original
Port is sent back to.
6. the hairpin switch system according to claim 5 realized based on OpenFlow, which is characterized in that described
Message matching condition are as follows: message into port be interchanger inbound port, and the Vlan label value of message be flow table in setting
Definite value.
7. the hairpin switch system according to claim 5 realized based on OpenFlow, which is characterized in that described
Matching message executes movement are as follows: first changes the Vlan label value of message, then message is sent back to from former inbound port.
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 CN105610737A (en) | 2016-05-25 |
CN105610737B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11271775B2 (en) * | 2018-06-29 | 2022-03-08 | Intel Corporation | Technologies for hairpinning network traffic |
CN111314498B (en) * | 2020-01-21 | 2022-05-24 | 浪潮云信息技术股份公司 | Network address translation method and NAT gateway |
Citations (5)
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 |
-
2016
- 2016-01-25 CN CN201610048022.4A patent/CN105610737B/en active Active
Patent Citations (5)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105610737A (en) | 2016-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103763146B (en) | Soft defined network controller and transmission information generating method of soft defined network controller | |
US9294305B2 (en) | Method for sending ethernet frames in ethernet tree service and provider edge device | |
CN101820392B (en) | A kind of method and network processing unit realizing multi-service forwarding | |
CN101848186B (en) | Three-layer plastic optical fiber Ethernet switch | |
US20120294193A1 (en) | Method and System for Increasing Forwarding Efficiency of Virtual Private LAN Service Network | |
EP2897328B1 (en) | Method, system and apparatus for establishing communication link | |
CN104092684B (en) | A kind of OpenFlow agreements support VPN method and apparatus | |
CN103067278B (en) | A kind of method for transmission processing of Frame, equipment and system | |
CN102404179B (en) | Method and device for processing message | |
CN104125128A (en) | Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge | |
CN104734953A (en) | Method and device for achieving message layer-2 isolation based on VLAN and interchanger | |
CN101656671A (en) | Packet sending method and device | |
CN105610737B (en) | Hairpin interchanger implementation method and hairpin switch system based on OpenFlow | |
CN104092554A (en) | Multicast distribution tree establishment method and device | |
Sajassi et al. | Requirements for ethernet vpn (evpn) | |
ATE467962T1 (en) | METHOD FOR CONNECTING VLAN SYSTEMS TO OTHER NETWORKS VIA A ROUTER | |
CN103944886B (en) | A kind of realization method and system of port security | |
CN101834804B (en) | Method and device for realizing speed limit for traffic of virtual private networks (VPN) | |
CN104994071B (en) | The backup method and device of broadband remote access server equipment | |
CN105376161B (en) | Multicast distribution tree switching method and device | |
CN101719857A (en) | Asymmetric PW-based VPLS network access method and asymmetric PW-based VPLS network access system | |
CN111683307B (en) | Method and system for accessing service under OLT (optical line terminal) multi-stage exchange | |
CN103888356A (en) | VPLS achieving method, system and provider edge device | |
CN201323591Y (en) | Three-layer plastic optical fiber Ethernet switch | |
CN107770028B (en) | Method for realizing point-to-multipoint virtual local area network service in China telecommunication scene |
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. |