CN104486227A - System and method for achieving IPv6 flexible arrangement through VxLAN technique - Google Patents

System and method for achieving IPv6 flexible arrangement through VxLAN technique Download PDF

Info

Publication number
CN104486227A
CN104486227A CN201410766973.6A CN201410766973A CN104486227A CN 104486227 A CN104486227 A CN 104486227A CN 201410766973 A CN201410766973 A CN 201410766973A CN 104486227 A CN104486227 A CN 104486227A
Authority
CN
China
Prior art keywords
vxlan
vlan
address
current
module
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
CN201410766973.6A
Other languages
Chinese (zh)
Other versions
CN104486227B (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.)
Wuhan Greenet Information Service Co Ltd
Original Assignee
Wuhan Greenet Information Service 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 Wuhan Greenet Information Service Co Ltd filed Critical Wuhan Greenet Information Service Co Ltd
Priority to CN201410766973.6A priority Critical patent/CN104486227B/en
Publication of CN104486227A publication Critical patent/CN104486227A/en
Application granted granted Critical
Publication of CN104486227B publication Critical patent/CN104486227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a system and a method for achieving IPv6 flexible arrangement through VxLAN techniques based on an SDN frame, and relates to the field of VxLAN used in a data center. The SDN controller of the system comprises an SDN OpenFlow interface module, an inter-communication domain management module, a topology management module and ARP/NS/NA processing module and an IPV4/IPv6 processing module; VxLANGateway comprises a configuration management module, a VxLAN OpenFlow interface module, a flow table management module, an IPv4/Iv6 tunnel encapsulation module, an IPv4/IPv6 tunnel decapsulation module and a VxLAN receiving and transmitting packet module; a VLAN switch comprises an LAN receiving and transmitting packet module and a VLAN ID module. By the adoption of the system and the method, different network services can be respectively arranged on different pieces of equipment, not only is the service flexibility ensured, but also the requirements on the property of the equipment are relatively low, the delay is relatively small, and the configuration and the maintenance are relatively simple.

Description

The system and method for IPv6 flexible deployment is realized by VxLAN technology
Technical field
The present invention relates to VxLAN (the Virtual extensible LAN that data center adopts, virtual easily extensible local area network (LAN)) field, be specifically related to a kind of based on SDN (Software DefinedNetwork, software definition gateway) framework realizes the system and method for IPv6 (InternetProtocol Version 6, IPv 6) flexible deployment by VxLan technology.
Background technology
SDN is a kind of new network innovation of Emulex network framework, network data flow process can be separated by SDN efficiently from the logic Sum fanction of control data stream, and then make operator and enterprise can the data of control and management oneself, realize the route (such as determining that the data of the data of which type in local, which type are in teleprocessing) of Different Rule.In essence, SDN organization can be seen subtly and controls the access to network and resource, and allowing IT manager be solved affects the particular problem of network.Along with the development of society, SDN has been widely used among society.
Along with the progress of the communication technology, the deployment of IPv6 progressively expands, during service in the original IPv4 of the node visit in IPv6 network (Internet protocol the 4th edition) network, be generally connected to original IPv4 network by IPv4-over_IPv6 (IPv4 is encapsulated in IPv6) tunneling technique.IPv4-over_IPv6 tunneling technique mainly adopts LAFT6 (Lightweight AddressFamily Transition for IPv6, lightweight transitional technology) and DS-Lite (DualStack-Lite, two stack is simplified).
IPv6 network by DS-Lite and LAFT6 technology, although can realize, to the application of existing IPv4 business, there is following defect:
(1) LAFT6 and DS-Lite all needs to dispose in user side and network side respectively, arbitrarily can not change, and then cause the deployment immobilization of IPv6, be not easy to user and use after deployment facility.
(2) NAT (NetworkAddress Translation is all needed when using in DS-lite and LAFT6 technology, network address translation) technology, NAT technology is used to cause end to end transparency, equipment is also needed to adopt Large Copacity stream table to carry out, not only higher to the performance requirement of equipment, and postpone comparatively large, configure and maintenance more complicated.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of system and method being realized IPv6 flexible deployment by VxLAN technology, the present invention can dispose different network service respectively on same equipment, the continuity of business can not only be ensured, more flexible, and lower to the performance requirement of equipment, postpone less, configure and maintenance is fairly simple.
For reaching above object, provided by the invention: a kind of system being realized IPv6 flexible deployment by VxLAN technology, comprise SDN controller, some easily extensible LAN gateway VxLANGateway and some VLAN switches; SDN controller is connected with all VxLAN Gateway by network exchange OpenFlow agreement, and every platform VxLAN Gateway is connected with some VLAN switches;
Described SDN controller comprises SDN OpenFlow interface module, intercommunication area administration module, Topology Management module, address resolution protocol/neighbor request/neighbor advertise ARP/NS/NA processing module and IPV4/IPv6 processing module;
Described SDN OpenFlow interface module is used for: receive and process the stream that VxLAN Gateway reports to SDN controller; Issue the handle packet of SDN controller to VxLANGateway;
Described intercommunication area administration module is used for: receive and the communication of reading between SDN controller and all VxLAN Gateway configures, and forwards communication configuration to Topology Management module;
Described Topology Management module comprises VxLAN Gateway and manages submodule, VLAN switch management submodule and user management submodule;
Described VxLAN Gateway manages submodule and is used for: according to the VxLAN communication information of all VxLAN Gateway of communication Set up-conservancy;
Described VLAN switch management submodule is used for: the vlan communication information of preserving all VLAN switches;
Described user management submodule is used for: preserve the user profile under all VLAN switches;
Described ARP/NS/NA processing module comprises ARP process submodule and NS/NA process submodule;
Described ARP process submodule is used for: be SDN controller proxy requests ARP message, by ARP request in the salty new broadcast agent inquiry of the LAN of source VxLAN Gateway; For SDN controller proxy response ARP message;
Described NS/NA process submodule is used for: be SDN controller proxy requests NS message, by NS message in the salty new broadcast agent inquiry of the LAN of source VxLAN Gateway; For SDN controller proxy response NA message;
Described IPV4/IPv6 processing module is used for: the handling process obtaining ARP data type that all VxLanGateway report, IPv4 and IPv6 data type stream outside NS/NA type according to communication configuration;
Described VxLAN Gateway comprises Configuration Manager, VxLAN OpenFlow interface module, stream table administration module, IPv4/IPv6 tunnel encapsulation module, IPv4/IPv6 tunnel decapsulation module and VxLAN and receives and dispatches bag module;
Described Configuration Manager is used for: read the postrun parameter information of VxLAN Gateway program, obtains SDN controller IP address and the SDN OpenFlow interface of the connection of VxLAN Gateway needs according to parameter information;
Described VxLAN OpenFlow interface module adopts OpenFlow consensus standard, its for: connect between VxLAN Gateway and SDN controller; What report VxLANGateway not find in stream table administration module flow to SDN controller; Receive the handle packet that also treatment S DN controller issues;
Described stream table administration module is used for: preserve SDN controller to the handling process of the stream that VxLAN Gateway reports;
Described IPv4/IPv6 tunnel encapsulation module is used for: after VxLAN Gateway receives upstream, the handling process of current upstream is obtained by stream table administration module, according to the handling process of upstream be current upstream add VxLAN tunnel, formed encapsulated data packet;
Described IPv4/IPv6 tunnel decapsulation module is used for: after VxLAN Gateway receives downstream, the handling process of current downlink stream is obtained by stream table administration module, be current downlink diffluence except VxLAN tunnel according to the handling process of downstream and revise VLAN ID, form deblocking packet;
Described VxLAN receives and dispatches bag module and comprises VxLAN packet receiving submodule and VxLAN and to give out a contract for a project submodule;
Described VxLAN packet receiving submodule is used for: the packet receiving all network interfaces of VxLAN Gateway;
Described VxLAN give out a contract for a project submodule for: the network interface that encapsulated data packet and deblocking packet are required by SDN controller is forwarded;
Described VLAN switch comprises VLAN and receives and dispatches bag module and VLAN ID module;
Described VLAN receives and dispatches bag module and comprises VLAN packet receiving submodule and VLAN and to give out a contract for a project submodule;
Described VLAN packet receiving submodule is used for: the packet receiving all network interfaces of VLAN switch, and packet comprises upstream data bag and downlink data packet;
Described VLAN give out a contract for a project submodule for: by VLAN packet receiving submodule receive upstream data bag be sent to VxLAN Gateway; The downlink data packet that VLAN packet receiving submodule receives is sent to the user of belonging VLAN;
Described VLAN ID module comprises VLAN ID and adds submodule and VLAN ID deletion submodule;
Described VLAN ID adds submodule and is used for: the upstream data bag received for VLAN switch adds VLAN head, and VLAN head comprises VLAN id information;
Described VLAN ID deletes submodule and is used for: the downlink data packet received for VLAN switch removes VLAN head.
On the basis of technique scheme, the communication between described SDN controller and all VxLANGateway is configured and is configured by web interface or configuration file; Communication configuration comprises the IP address of VxLAN Gateway, local network LAN mouth value, the MAC Address of LAN mouth, wide area network WAN mouth value, the MAC Address of WAN mouth, WAN mouth IPv4 address, WAN mouth IPv6 address, WAN mouth down hop routing IP v4 address, WAN mouth down hop routing IP v6 address and down hop route MAC Address.
On the basis of technique scheme, described vlan communication information comprises the WAN mouth IP address of the VLAN ID of VLAN switch, intercommunication area VNI value and the VxLANGateway belonging to VLAN switch; User profile under described all VLAN switches comprises the WAN mouth IP address of VxLAN Gateway belonging to the IP address of user, MAC Address, user; The handling process of described IPv4 and IPv6 data type stream comprises the decapsulation in the amendment of VLAN ID, the encapsulation in tunnel and tunnel;
Described stream table administration module is preserved SDN controller and is reported the handling process of stream to comprise the following steps to VxLAN Gateway: when VxLAN Gateway receives upstream or downstream, stream table administration module searches current upstream or whether downstream exists, if, determine that current upstream or downstream are not send first, send current upstream or downstream according to current upstream or the process of downstream handling process; Otherwise determine that current upstream or downstream are for send first, current upstream or downstream are sent to SDN controller OpenFlow interface module by VxLAN OpenFlow interface module.
The method being realized IPv6 flexible deployment by VxLAN technology based on said system provided by the invention, is comprised the following steps:
S1: the communication configuration presetting all VxLAN Gateway at the intercommunication area administration module of SDN controller, forwards step S2 to;
S2: definition sends the user of network control message protocol ICMP request for request user HostA, and the VLAN switch that HostA uses is VLAN A, and the VxLAN Gateway belonging to VLAN A is VxLAN Gateway A; VLAN different from HostA and the VxLAN Gateway that the VLAN switch that for the purpose of the user sending icmp reply request bag for HostA, user HostB, HostB use is VLAN B, VLAN B is VxLANGateway B;
When HostA sends ICMP request to HostB, HostA sends ICMP request bag to the packet receiving submodule of VLAN A, and it is that current I CMP request bag adds VLAN head that the VLAN ID of VLAN A adds submodule, forwards step S3 to;
The VxLAN that current I CMP request bag is sent to VxLAN Gateway A is received and dispatched bag module by the VLAN of S3:VLAN A submodule of giving out a contract for a project, and VxLAN receives and dispatches bag module and forms a stream by the five-tuple of current I CMP request bag;
The stream table administration module of VxLAN GatewayA checks whether current stream exists, and if so, according to the handling process process of current stream, terminates; Otherwise current I CMP request bag is reported to SDN OpenFlow interface module by VxLAN OpenFlow interface module, forwards step S4 to;
S4:SDN OpenFlow interface module determination current I CMP asks the type of bag: if the type of current I CMP request bag is ARP or NS/NA type, asks Packet forwarding to ARP/NS/NA process submodule current I CMP, forward step S5 to; If the type of current I CMP request bag is IPv4 or IPv6 type, asks Packet forwarding to IPV4/IPv6 processing module current I CMP, forward step S6 to;
S5:ARP/NS/NA process submodule asks bag to process according to existing flow process to current I CMP, terminates;
S6:IPV4/IPv6 processing module informs whether the user profile of the user management submodule inquiry HostA of Topology Management module exists, and if so, forwards step S8 to, otherwise forwards step S7 to;
S7: user management submodule obtains HostA user profile according to current I CMP request bag, and the Topology Management module in controller preserves the user profile of HostA, forwards step S8 to;
S8: whether user management submodule inquiry HostB exists, and if so, forwards step S9 to;
Otherwise determine the Access Network that HostB uses, if the Access Network that HostB uses builds the ARP request data package in ARP type for IPv4, SDN controller, ask bag to go to obtain Host party B-subscriber's information as ICMP current ARP request data package, forward step S5 to; If the Access Network that HostB uses builds the NS request data package in NS/NA type for IPv6, SDN controller, ask bag to go to obtain Host party B-subscriber's information as ICMP current NS request data package and forward step S5 to;
The Topology Management module of S9:SDN controller obtains the VxLAN Gateway A configuration information of current I CMP request bag, learns value and this WAN mouth value reporting ICMP data to go out of packaging V xLAN head; SDN controller issues OFPT_FLOW_MOD information in OpenFlow agreement and OFPT_PACKET_OUT information to VxLANGatewayA, forwards step S10 to;
The VxLAN OpenFlow interface module of S10:VxLAN GatewayA receives the OFPT_FLOW_MOD message and OFPT_PACKET_OUT message that SDN controller issues; The stream table administration module of VxLAN GatewayA asks stream and this stream handling process of bag by the newly-built current I CMP of OFPT_FLOW_MOD message; VxLAN GatewayA is the stream packaging V xLAN head of newly-built current I CMP request bag by OFPT_PACKET_OUT message, forms encapsulated data packet; VxLAN GatewayA according to OFPT_PACKET_OUT message by current encapsulation Packet Generation to VxLANGatewayB, forward step S11 to;
After the VxLAN packet receiving submodule of S11:VxLAN GatewayB receives the encapsulated data packet in packaging V xLAN tunnel, in stream table administration module, search current encapsulation packet whether exist, if, form downlink data packet according to the stream list processing flow processing current encapsulation packet in stream table administration module, forward step S14 to; Otherwise by the OFPT_PACKET_IN message of OpenFlow agreement in VxLAN OpenFlow interface module, current encapsulation packet is reported to SDN OpenFlow interface module, forward step S12 to;
S12:SDN OpenFlow interface module is resolved current encapsulation packet, obtains the VNI value of current encapsulation packet; Whether the information of searching HostB in the Topology Management module of SDN controller exists, if not, abandon current encapsulation packet, terminate; If so, SDN controller is revised and the stream of newly-built current encapsulation packet and handling process according to the information notification VxLAN Gateway B of HostB, forms downlink data packet, forwards step S13 to;
Current downlink packet is forwarded to VLAN B by the VxLAN of S13:VxLAN Gateway B submodule of giving out a contract for a project, and forwards step S14 to;
Current downlink packet is forwarded to VLAN ID and deletes submodule by the VLAN packet receiving submodule of S14:VLAN B, and VLAN ID deletes after submodule deletes the VLAN ID of current downlink packet, is sent to HostB, forwards step S15 to by VLAN submodule of giving out a contract for a project;
S15:HostB replys according to the request type of current downlink packet, terminates.
On the basis of technique scheme, whether the user profile of the user management submodule inquiry HostA of the module of Topology Management described in step S6 exists, specifically comprise the following steps: whether the inquiry of user management submodule exists MAC Address and the IP address of HostA, if, the user profile of HostA exists, forward step S8 to, otherwise the user profile of HostA does not exist, and forwards step S7 to.
On the basis of technique scheme, the submodule of user management described in step S7 obtains HostA user profile according to current I CMP request bag, specifically comprise the following steps: user management submodule, according to the VxLAN Gateway IP address in current I CMP request bag, determines the VxLAN Gateway belonging to HostA; User management submodule, according to the VLAN ID in current I CMP request bag VLAN head, determines the VLAN that HostA uses and this VNI value belonging to VLAN.
On the basis of technique scheme, for the stream packaging V xLAN head of newly-built current I CMP request bag specifically comprises the following steps described in step S10: ask the source MAC of the stream packaging V xLAN head of bag, target MAC (Media Access Control) address, ethernet type, source IP address, object IP address, next type of IP layer, VNI value for current I CMP and export integer to hardware OUTPORT port;
When the source MAC of packaging V xLAN head, target MAC (Media Access Control) address, next type of IP layer, VNI value and OUTPORT port, using the source MAC of the WAN mouth MAC Address of the VxLANGatewayA in Topology Management module as packaging V xLAN head; Using the target MAC (Media Access Control) address of the down hop route MAC Address of the VxLAN GatewayA in Topology Management module as packaging V xLAN head; Next type of IP layer is UDP, UDP source port and destination interface is 4789; VNI value is the VNI value under the VLAN switch searched by the VLAN ID of VLAN A; OUTPORT is VxLAN GatewayAWAN mouth value;
The ethernet type of packaging V xLAN head, source IP address and object IP address time:
If the WAN port address of VxLAN GatewayA is IPv6 type, ethernet type IP; Source IP address is the WAN mouth IPv6 address of VxLAN GatewayA; Object IPv6 address is the down hop routing IP v6 address of VxLAN GatewayA;
If the WAN port address of VxLAN GatewayA is IPv4 type: ethernet type is IP, source IP address is the WAN mouth IP address of VxLAN GatewayA, and object IP address is the down hop routed ip address of VxLAN GatewayA.
On the basis of technique scheme, the Gateway of VxLAN described in step S12 B revises and the stream of newly-built current encapsulation packet and handling process, specifically comprises the following steps: VxLAN Gateway B is according to the VLAN ID of the acquisition of information VLAN B of HostB; According to OFPT_PACKET_OUT, SDN controller informs that VxLAN Gateway B removes the VxLAN tunnel of current encapsulation packet; The VLAN ID of current encapsulation packet is revised as the VLAN ID that value is VLAN B by VxLAN Gateway B; The OUTPORT value of current encapsulation packet is revised as the LAN mouth value of VxLAN Gateway B by VxLAN Gateway B.
On the basis of technique scheme, communication configuration described in step S1 is drawn together the WAN port address of VxLANGateway, WAN mouth down hop routed ip address, is belonged to the VxLAN Gateway information of same intercommunication area;
When the Access Network of VxLAN Gateway is IPv6, WAN port address and WAN mouth down hop routed ip address are IPv6 address; When the Access Network of VxLAN Gateway is IPv4, WAN port address and WAN mouth down hop routed ip address are IPv4 address;
When the Access Network adopted as HostA, HostB in step S2 is IPv4, ICMP request bag is ICMP v4 request bag, and icmp reply request bag is that ICMPv4 replys request bag; When the Access Network that HostA, HostB adopt is IPv6, ICMP request bag is ICMPv6 request bag, and icmp reply request bag is that ICMPv6 replys request bag;
ICMP described in step S3 asks the five-tuple of bag to comprise the source IP address of ICMP request bag, object IP address, source MAC, target MAC (Media Access Control) address and data type;
ICMP described in step S9 asks the five-tuple of bag to comprise the source IP address of ICMP request bag, object IP address, source MAC, target MAC (Media Access Control) address and data type.
On the basis of technique scheme, step S15 specifically comprises the following steps: if current downlink packet is ARP request, HostB replys ARP Reply, terminates; If current downlink packet is ICMP request, HostB replys ICMP reply, terminates; If current downlink packet is NS request, HostB replys NA, terminates; If current downlink packet is ICMPv6 request, HostB replys ICMPv6reply, terminates.
Compared with prior art, the invention has the advantages that:
(1) the present invention realizes the flexible deployment of IPv6 under SDN framework according to VxLAN, VxLAN is a kind of extendible VLAN, VxLAN is applied to data center inside, VxLAN makes virtual machine not needing to change IP address and MAC (Media AccessControl, media interviews control) under the condition of address, move within the scope of the three-layer network interconnected, and then the continuity of the business of guarantee.
Dispose compared with different equipment with environmentally fixing in prior art, intercommunication area administration module of the present invention has communication configuration, when the present invention uses, user can be configured (when such as access port is IPv6 network according to network design situation in reality, configuration VxLANGatewayWAN port address is IPv6 type, when access port is IPv4 network, configuration VxLANGateway WAN port address is IPv4 type).Therefore, the present invention can dispose different network service respectively on same equipment, more flexibly.
(2) compare with LAFT6 with DS_Lite technology of the prior art, the present invention can realize IPv4 user through IPv6 access port access IPv4 user when not using NAT technology.Therefore, the present invention is not only lower to the performance requirement of equipment, postpone less, and configure and maintenance is fairly simple.
Accompanying drawing explanation
Fig. 1 is the structural representation of the IPv6 network design of SDN framework in the embodiment of the present invention;
Fig. 2 is the structural representation of the IPv4 network design of SDN framework in the embodiment of the present invention;
Fig. 3 is the structured flowchart of SDN controller in the embodiment of the present invention;
Fig. 4 is the structured flowchart of VxLAN Gateway in the embodiment of the present invention;
Fig. 5 is the flow chart of the method being realized IPv6 flexible deployment in the embodiment of the present invention by VxLAN technology.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Shown in Fig. 1, Fig. 2, the system being realized IPv6 flexible deployment by VxLAN technology in the embodiment of the present invention, comprise software definition gateway SDN framework, SDN framework comprises SDN controller, some VxLAN Gateway (easily extensible LAN gateway) and some VLAN switches.SDN controller is connected with all VxLAN Gateway by OpenFlow (network exchange) agreement, and every platform VxLAN Gateway is connected with some VLAN switches.
VxLAN Gateway in the present embodiment is 2: VxLAN GatewayA and VxLAN Gateway B.VxLAN GatewayA is connected with 1 VLAN switch (VLAN switch A), and the user of VLAN switch A is HostA; VxLAN GatewayB is connected with 1 VLAN switch (VLAN switch b), and the user of VLAN switch b is HostB.
Shown in Figure 3, SDN controller comprises the SDN OpenFlow interface module, intercommunication area administration module, Topology Management module, ARP/NS/NA processing module (the Address Resolution Protocol that are connected in turn, address resolution protocol/Neighbor Solicitation, neighbor request/Neighbor Advertisement, neighbor advertise) and IPV4/IPv6 processing module.
SDN OpenFlow interface module is used for: receive and process the stream that VxLAN Gateway reports to SDN controller; Issue the handle packet of SDN controller to VxLANGateway.
Intercommunication area administration module is used for: receive and the communication of reading between SDN controller and all VxLANGateway configures, and forwards communication configuration to Topology Management module.
Communication configuration can by web interface or configuration file configuration.Communication configuration comprises IP address, LAN (the Local Area Network of VxLAN Gateway, local area network (LAN)) mouth value, the MAC Address of LAN mouth, WAN (Wide Area Network, wide area network) mouth value, the MAC Address of WAN mouth, WAN mouth IPv4 address, WAN mouth IPv6 address, WAN mouth down hop routing IP v4 address, WAN mouth down hop routing IP v6 address and down hop route MAC Address.Can realize specifying the intercommunication between VxLAN Gateway by the WAN mouth IPv4 address and down hop routing IP v4 address configuring VxLAN Gateway.Can realize specifying the intercommunication between VxLAN Gateway by the WAN mouth IPv6 address and down hop routing IP v6 address configuring VxLAN Gateway.
Topology Management module comprises VxLAN Gateway and manages submodule, VLAN switch management submodule and user management submodule; It is interrelated by a chained list (have VLAN switch architecture body under VxLAN Gateway structure, have user's structure under VLAN switch architecture body) that VxLAN Gateway manages submodule, VLAN switch management submodule and user management submodule.VxLAN Gateway is managed submodule, VLAN switch management submodule and user management submodule and can be searched mutually by chained list.
VxLAN Gateway manages submodule and is used for: according to the VxLAN communication information of all VxLAN Gateway of communication Set up-conservancy.
VLAN switch management submodule is used for: the vlan communication information of preserving all VLAN switches, vlan communication information comprises the WAN mouth IP address of VLAN ID, VNI (Vxlan Network Identifier, intercommunication area) value of VLAN switch and the VxLAN Gateway belonging to VLAN switch.
User management submodule is used for: preserve the user profile under all VLAN switches, user profile comprises: the WAN mouth IP address of VxLAN Gateway belonging to the IP address of user, MAC Address, user.
ARP/NS/NA processing module comprises ARP process submodule and NS/NA process submodule.
ARP process submodule is used for: be SDN controller proxy requests ARP message, by ARP request in the salty new broadcast agent inquiry of the LAN of source VxLAN Gateway; For SDN controller proxy response ARP message.SDN controller can obtain the topology information of IPv4 user by ARP process submodule.
NS/NA process submodule is used for: be SDN controller proxy requests NS message, by NS message in the salty new broadcast agent inquiry of the LAN of source VxLAN Gateway; For SDN controller proxy response NA message.SDN controller can obtain the topology information of IPv6 user by NS/NA process submodule.
IPV4/IPv6 processing module is used for: the handling process obtaining ARP data type that all VxLan Gateway report, IPv4 and IPv6 data type stream outside NS/NA type according to communication configuration, and handling process comprises the decapsulation in the amendment of VLAN ID, the encapsulation in tunnel and tunnel.
Shown in Figure 4, VxLAN Gateway comprises the Configuration Manager, VxLAN OpenFlow interface module, stream table administration module, IPv4/IPv6 tunnel encapsulation module, IPv4/IPv6 tunnel decapsulation module and the VxLAN that are connected in turn and receives and dispatches bag module.
Configuration Manager is used for: read the postrun parameter information of VxLAN Gateway program, obtains SDN controller IP address and the SDN OpenFlow interface of the connection of VxLAN Gateway needs according to parameter information.
VxLAN OpenFlow interface module adopts OpenFlow consensus standard, its for: connect between VxLAN Gateway and SDN controller; What report VxLANGateway not find in stream table administration module flow to SDN controller; Receive the handle packet that also treatment S DN controller issues.
Stream table administration module is used for: preserve SDN controller to the handling process of the stream that VxLAN Gateway reports.
Stream table administration module is preserved SDN controller and is reported the handling process of stream to comprise the following steps to VxLAN Gateway: when VxLAN Gateway receives upstream or downstream, stream table administration module searches current upstream or whether downstream exists, if, determine that current upstream or downstream are not send first, send current upstream or downstream according to current upstream or the process of downstream handling process; Otherwise determine that current upstream or downstream are for send first, current upstream or downstream are sent to SDN controller OpenFlow interface module by VxLAN OpenFlow interface module.
IPv4/IPv6 tunnel encapsulation module is used for: after VxLAN Gateway receives upstream, the handling process of current upstream is obtained by stream table administration module, according to the handling process of upstream be current upstream add VxLAN tunnel, form encapsulated data packet, to make current upstream can communication in three-layer network.
IPv4/IPv6 tunnel decapsulation module is used for: after VxLAN Gateway receives downstream, the handling process of current downlink stream is obtained by stream table administration module, be current downlink diffluence except VxLAN tunnel according to the handling process of downstream and revise VLAN ID, form deblocking packet, to make current downlink stream can communication in double layer network.
VxLAN receives and dispatches bag module and comprises VxLAN packet receiving submodule and VxLAN and to give out a contract for a project submodule.
VxLAN packet receiving submodule is used for: the packet receiving all network interfaces of VxLAN Gateway.
VxLAN give out a contract for a project submodule for: the network interface that encapsulated data packet and deblocking packet are required by SDN controller is forwarded (encapsulated data packet is forwarded by the WAN mouth of VxLAN Gateway, and deblocking packet is forwarded by the LAN mouth of VxLAN Gateway).
VLAN switch comprises VLAN and receives and dispatches bag module and VLAN ID module.
VLAN receives and dispatches bag module and comprises VLAN packet receiving submodule and VLAN and to give out a contract for a project submodule.
VLAN packet receiving submodule is used for: the packet receiving all network interfaces of VLAN switch, packet comprises upstream data bag and downlink data packet.
VLAN give out a contract for a project submodule for: by VLAN packet receiving submodule receive upstream data bag be sent to VxLAN Gateway; The downlink data packet that VLAN packet receiving submodule receives is sent to the user of belonging VLAN.
VLAN ID module comprises VLAN ID and adds submodule and VLAN ID deletion submodule.
VLAN ID adds submodule and is used for: the upstream data bag received for VLAN switch adds VLAN head, and VLAN head comprises VLAN id information.
VLAN ID deletes submodule and is used for: the downlink data packet received for VLAN switch removes VLAN head.
Shown in Figure 5, the method being realized IPv6 flexible deployment by VxLAN technology based on said system provided by the invention, is comprised the following steps:
S1: the communication configuration presetting all VxLAN Gateway at the intercommunication area administration module of SDN controller.Communication configuration is drawn together the WAN port address of VxLAN Gateway, WAN mouth down hop routed ip address, is belonged to the VxLAN Gateway information (in this example, VxLAN GatewayA and VxLAN GatewayB is in same intercommunication area) of same intercommunication area, forwards step S2 to.
S2: definition sends ICMP (Internet Control Message Protocol, network control message protocol) user that asks is request user HostA, the VxLAN Gateway of VLAN switch belonging to VLAN A, VLAN A that HostA uses is VxLANGateway A; VLAN different from HostA and the VxLAN Gateway that the VLAN switch that for the purpose of the user sending icmp reply request bag for HostA, user HostB, HostB use is VLAN B, VLAN B is VxLAN Gateway B.
When HostA sends ICMP request to HostB, HostA sends ICMP request bag to the VLAN packet receiving submodule of VLAN A, and it is that current I CMP request bag adds VLAN head that the VLAN ID of VLAN A adds submodule, forwards step S3 to.
The VxLAN that current I CMP request bag is sent to VxLAN Gateway A is received and dispatched bag module by the VLAN of S3:VLAN A submodule of giving out a contract for a project, and VxLAN receives and dispatches bag module and forms a stream by the five-tuple of current I CMP request bag (source IP address of current I CMP request bag, object IP address, source MAC, target MAC (Media Access Control) address and data type).
The stream table administration module of VxLAN GatewayA checks whether current stream exists, and if so, according to the handling process process of current stream, terminates; Otherwise current I CMP request bag is reported to SDN OpenFlow interface module by VxLAN OpenFlow interface module, forwards step S4 to.
S4:SDN OpenFlow interface module determination current I CMP asks the type of bag: if the type of current I CMP request bag is ARP or NS/NA type, asks Packet forwarding to ARP/NS/NA process submodule current I CMP, forward step S5 to; If the type of current I CMP request bag is IPv4 or IPv6 type, asks Packet forwarding to IPV4/IPv6 processing module current I CMP, forward step S6 to.
S5:ARP/NS/NA process submodule asks bag to process according to existing flow process to current I CMP, terminates.
S6:IPV4/IPv6 processing module informs whether the user profile of the user management submodule inquiry HostA of Topology Management module exists, and if so, forwards step S8 to, otherwise forwards step S7 to.
S7: user management submodule obtains HostA user profile according to current I CMP request bag, and the Topology Management module in controller preserves the user profile of HostA, forwards step S8 to.
S8: whether user management submodule inquiry HostB exists, and if so, forwards step S9 to;
Otherwise determine the Access Network that HostB uses, if the Access Network that HostB uses builds the ARP request data package in ARP type for IPv4, SDN controller, ask bag to go to obtain Host party B-subscriber's information as ICMP current ARP request data package, forward step S5 to.If the Access Network that HostB uses builds the NS request data package in NS/NA type for IPv6, SDN controller, ask bag to go to obtain Host party B-subscriber's information as ICMP current NS request data package and forward step S5 to.
The Topology Management module of S9:SDN controller obtains the VxLAN Gateway A configuration information of current I CMP request bag, learns value and this port value reporting ICMP data to go out (i.e. WAN mouth value) of packaging V xLAN head.SDN controller issues OFPT_FLOW_MOD information in OpenFlow agreement to VxLAN GatewayA, to inform stream and this stream handling process of the stream table administration module of VxLAN GatewayA newly-built current I CMP request bag.SDN controller issues OFPT_PACKET_OUT information in OpenFlow agreement to VxLAN GatewayA, to inform the handling process of VxLANGatewayA current I CMP packet.Forward step S10 to.
The VxLAN OpenFlow interface module of S10:VxLAN GatewayA receives the OFPT_FLOW_MOD message and OFPT_PACKET_OUT message that SDN controller issues.The stream table administration module of VxLAN GatewayA asks stream and this stream handling process of bag by the newly-built current I CMP of OFPT_FLOW_MOD message.VxLAN GatewayA is by the ACTION operation in OFPT_PACKET_OUT message, for newly-built current I CMP asks the stream packaging V xLAN head of bag, form encapsulated data packet, according to the OUTPORT value in OFPT_PACKET_OUT message, by current encapsulation Packet Generation to VxLAN GatewayB, forward step S11 to.
After the VxLAN packet receiving submodule of S11:VxLAN GatewayB receives the encapsulated data packet in packaging V xLAN tunnel, in stream table administration module, search current encapsulation packet whether exist, if, downlink data packet is formed according to the stream list processing flow processing current encapsulation packet in stream table administration module, forward step S14 to, otherwise by the OFPT_PACKET_IN message in VxLAN OpenFlow interface module, current encapsulation packet is reported to SDN OpenFlow interface module, forward step S12 to.
S12:SDN OpenFlow interface module is resolved current encapsulation packet, obtains the VNI value (namely current encapsulation data flow needs decapsulation) of current encapsulation packet.Whether the information of searching HostB in the Topology Management module of SDN controller exists, if not, abandon current encapsulation packet, terminate; If so, SDN controller is revised and the stream of newly-built current encapsulation packet and handling process according to the information notification VxLAN Gateway B of HostB, forms downlink data packet, forwards step S13 to.
Current downlink packet is forwarded to VLAN B by the VxLAN of S13:VxLAN Gateway B submodule of giving out a contract for a project, and forwards step S14 to.
Current downlink packet is forwarded to VLAN ID and deletes submodule by the VLAN packet receiving submodule of S14:VLAN B, and VLAN ID deletes after submodule deletes the VLAN ID of current downlink packet, is sent to HostB, forwards step S15 to by VLAN submodule of giving out a contract for a project.
S15:HostB replys according to the request type of current downlink packet, terminates.
Below the part steps of the method being realized IPv6 flexible deployment in the embodiment of the present invention by VxLAN technology is specifically described.
In step S1 when the Access Network of VxLAN Gateway is IPv6, WAN port address and WAN mouth down hop routed ip address are IPv6 address; When the Access Network of VxLAN Gateway is IPv4, WAN port address and WAN mouth down hop routed ip address are IPv4 address.
When the Access Network adopted as HostA, HostB in step S2 is IPv4, ICMP request bag is ICMP v4 request bag, and icmp reply request bag is that ICMPv4 replys request bag; When the Access Network that HostA, HostB adopt is IPv6, ICMP request bag is ICMPv6 request bag, and icmp reply request bag is that ICMPv6 replys request bag.
Whether the user profile of the user management submodule inquiry HostA of the Topology Management module in step S6 exists, specifically comprise the following steps: whether the inquiry of user management submodule exists MAC Address and IP address (IPv4 or the IPv6 address) of HostA, if, the user profile of HostA exists, forward step S8 to, otherwise the user profile of HostA does not exist, and forwards step S7 to.
In step S7, user management submodule obtains HostA user profile according to current I CMP request bag, specifically comprise the following steps: user management submodule, according to the VxLAN Gateway IP address in current I CMP request bag, determines the VxLAN Gateway belonging to HostA; User management submodule, according to the VLAN ID in current I CMP request bag VLAN head, determines the VLAN that HostA uses and this VNI value belonging to VLAN.
In step S9, the five-tuple of ICMP request bag comprises the source IP address of ICMP request bag, object IP address, source MAC, target MAC (Media Access Control) address and data type.
For the stream packaging V xLAN head of newly-built current I CMP request bag specifically comprises the following steps in step S10: for current I CMP asks the source MAC of the stream packaging V xLAN head of bag, target MAC (Media Access Control) address, ethernet type, source IP address, object IP address, next type of IP layer, VNI value and OUTPORT (exporting integer to hardware) port.
The ethernet type of packaging V xLAN head in step S10, source IP address and object IP address time:
If the WAN port address of VxLAN GatewayA is IPv6 type, ethernet type IP (0x86dd); Source IP address is the WAN mouth IPv6 address of VxLAN GatewayA; Object IPv6 address is the down hop routing IP v6 address of VxLAN GatewayA.
If the WAN port address of VxLAN GatewayA is IPv4 type: ethernet type is IP (0x0800), source IP address is the WAN mouth IP address of VxLAN GatewayA, and object IP address is the down hop routed ip address of VxLAN GatewayA.
In step S10 when the source MAC of packaging V xLAN head, target MAC (Media Access Control) address, next type of IP layer, VNI value and OUTPORT port, using the source MAC of the WAN mouth MAC Address of the VxLAN GatewayA in Topology Management module as packaging V xLAN head; Using the target MAC (Media Access Control) address of the down hop route MAC Address of the VxLAN GatewayA in Topology Management module as packaging V xLAN head; Next type of IP layer is UDP, UDP source port and destination interface is 4789; VNI value is the VNI value under the VLAN switch searched by the VLAN ID of VLAN A; OUTPORT is VxLANGatewayA WAN mouth value.
In step S12, VxLAN Gateway B revises and the stream of newly-built current encapsulation packet and handling process, specifically comprises the following steps: VxLAN Gateway B is according to the VLAN ID of the acquisition of information VLAN B of HostB; According to OFPT_PACKET_OUT, SDN controller informs that VxLAN Gateway B removes the VxLAN tunnel of current encapsulation packet; The VLAN ID of current encapsulation packet is revised as the VLAN ID that value is VLAN B by VxLAN Gateway B; The OUTPORT value of current encapsulation packet is revised as the LAN mouth value into VxLAN Gateway B by VxLAN Gateway B.
Step S15 specifically comprises the following steps: if current downlink packet is ARP request, HostB replys ARP Reply, terminates; If current downlink packet is ICMP request, HostB replys ICMP reply, terminates; If current downlink packet is NS request, HostB replys NA, terminates; If current downlink packet is ICMPv6 request, HostB replys ICMPv6reply, terminates.
Following preparation process is comprised during the actual use of the present invention:
A, preparation five operating systems are the hardware device (such as computer, virtual machine etc.) of linux, and in five equipment, one is SDN controller, and two is VxLAN Gateway, and two is VLAN switch.Be respectively five equipment and arrange corresponding IP address, the WAN mouth IPv6 address of VxLANGateway and down hop routing IP v6 address need to configure, and VxLAN Gateway WAN data bag can be sent in IPv6 public network.
B, write the Configuration Manager of VxLAN Gateway, writing Configuration Manager is mainly the VxLAN OpenFlow interface module service in VxLAN Gateway, VxLAN Gateway is connected to SDN controller by OpenFlow agreement, and VxLANGateway needs IP address and the OpenFlow port of knowing SDN controller.In order to increase project flexibility in reality, the SDN controller IP address of connection can not be write extremely in a program, can be configured by the postrun parameter of program, and Configuration Manager can parameter, obtains SDN controller IP address and OpenFlow port.
The VxLAN OpenFlow interface module of C, the SDN OpenFlow interface module of writing SDN controller and VxLANGateway, OpenFlow interface can be separated the ability of switch processes data and forwarding data, realizes SDN environment.
D, write the intercommunication area administration module of SDN controller, because the VLAN ID under a VLAN switch has 4096 values, need to realize a VxLANGateway and another VxLAN Gateway communication in reality, in order to isolate the communication of each group, need to distinguish with VNI, user needs to configure intercommunication area.
The configuration of intercommunication area can by the interface configurations intercommunication area of application layer, then the database of this configuration write SDN controller or send intercommunication area communication by Applied layer interface and configure and create intercommunication area configuration file to SDN controller or on SDN controller.
E, write the Topology Management module of SDN controller, Topology Management module realizes the topology information that SDN controller has the overall situation, and Topology Management module preserves topology information by the mode of Hash chained list.
F, write the ARP/NS/NA processing module of SDN controller, ARP/NS/NA processing module comprises ARP process submodule and NS/NA process submodule.ARP process submodule mainly realizes the essential information obtaining object IPv4 user, and NS/NA process submodule mainly realizes the essential information obtaining object IPv6 user.
G, write the IPV4/IPv6 processing module of SDN controller, IPV4/IPv6 processing module mainly obtains the handling process of ARP data type that all VxLan Gateway report, IPv4 and IPv6 data type stream outside NS/NA type according to communication configuration, handling process comprises the decapsulation in the amendment of VLAN ID, the encapsulation in tunnel and tunnel.
H, the VxLAN Gateway stream table administration module write in VxLAN Gateway.By 5 tuples, the uplink traffic of user determines whether stream exists, the situation according to oneself can oneself be determined, and such as OpenFlow agreement 1.0 version is 11 tuples.
I, the IPv4/IPv6 tunnel encapsulation module of writing in VxLAN Gateway, IPv4/IPv6 tunnel decapsulation module mainly realizes by double layer network (IPv4 double layer network or IPv6 double layer network) Packet Generation in three-layer network (IPv4 three-layer network or IPv6 three-layer network), and another mistake is sent in double layer network to three-layer network.
J, the transmitting-receiving bag module of writing in VxLAN Gateway, transmitting-receiving bag module mainly realizes the uplink and downlink packet that can capture user, delivers packet and processes to other modules.
The present invention is not limited to above-mentioned execution mode, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (10)

1. realized a system for IPv6 flexible deployment by VxLAN technology, comprise SDN controller, some easily extensible LAN gateway VxLAN Gateway and some VLAN switches; SDN controller is connected with all VxLAN Gateway by network exchange OpenFlow agreement, and every platform VxLAN Gateway is connected with some VLAN switches;
It is characterized in that: described SDN controller comprises SDN OpenFlow interface module, intercommunication area administration module, Topology Management module, address resolution protocol/neighbor request/neighbor advertise ARP/NS/NA processing module and IPV4/IPv6 processing module;
Described SDN OpenFlow interface module is used for: receive and process the stream that VxLAN Gateway reports to SDN controller; Issue the handle packet of SDN controller to VxLANGateway;
Described intercommunication area administration module is used for: receive and the communication of reading between SDN controller and all VxLAN Gateway configures, and forwards communication configuration to Topology Management module;
Described Topology Management module comprises VxLAN Gateway and manages submodule, VLAN switch management submodule and user management submodule;
Described VxLAN Gateway manages submodule and is used for: according to the VxLAN communication information of all VxLAN Gateway of communication Set up-conservancy;
Described VLAN switch management submodule is used for: the vlan communication information of preserving all VLAN switches;
Described user management submodule is used for: preserve the user profile under all VLAN switches;
Described ARP/NS/NA processing module comprises ARP process submodule and NS/NA process submodule;
Described ARP process submodule is used for: be SDN controller proxy requests ARP message, by ARP request in the salty new broadcast agent inquiry of the LAN of source VxLAN Gateway; For SDN controller proxy response ARP message;
Described NS/NA process submodule is used for: be SDN controller proxy requests NS message, by NS message in the salty new broadcast agent inquiry of the LAN of source VxLAN Gateway; For SDN controller proxy response NA message;
Described IPV4/IPv6 processing module is used for: the handling process obtaining ARP data type that all VxLanGateway report, IPv4 and IPv6 data type stream outside NS/NA type according to communication configuration;
Described VxLAN Gateway comprises Configuration Manager, VxLAN OpenFlow interface module, stream table administration module, IPv4/IPv6 tunnel encapsulation module, IPv4/IPv6 tunnel decapsulation module and VxLAN and receives and dispatches bag module;
Described Configuration Manager is used for: read the postrun parameter information of VxLAN Gateway program, obtains SDN controller IP address and the SDN OpenFlow interface of the connection of VxLAN Gateway needs according to parameter information;
Described VxLAN OpenFlow interface module adopts OpenFlow consensus standard, its for: connect between VxLAN Gateway and SDN controller; What report VxLANGateway not find in stream table administration module flow to SDN controller; Receive the handle packet that also treatment S DN controller issues;
Described stream table administration module is used for: preserve SDN controller to the handling process of the stream that VxLAN Gateway reports;
Described IPv4/IPv6 tunnel encapsulation module is used for: after VxLAN Gateway receives upstream, the handling process of current upstream is obtained by stream table administration module, according to the handling process of upstream be current upstream add VxLAN tunnel, formed encapsulated data packet;
Described IPv4/IPv6 tunnel decapsulation module is used for: after VxLAN Gateway receives downstream, the handling process of current downlink stream is obtained by stream table administration module, be current downlink diffluence except VxLAN tunnel according to the handling process of downstream and revise VLAN ID, form deblocking packet;
Described VxLAN receives and dispatches bag module and comprises VxLAN packet receiving submodule and VxLAN and to give out a contract for a project submodule;
Described VxLAN packet receiving submodule is used for: the packet receiving all network interfaces of VxLAN Gateway;
Described VxLAN give out a contract for a project submodule for: the network interface that encapsulated data packet and deblocking packet are required by SDN controller is forwarded;
Described VLAN switch comprises VLAN and receives and dispatches bag module and VLAN ID module;
Described VLAN receives and dispatches bag module and comprises VLAN packet receiving submodule and VLAN and to give out a contract for a project submodule;
Described VLAN packet receiving submodule is used for: the packet receiving all network interfaces of VLAN switch, and packet comprises upstream data bag and downlink data packet;
Described VLAN give out a contract for a project submodule for: by VLAN packet receiving submodule receive upstream data bag be sent to VxLAN Gateway; The downlink data packet that VLAN packet receiving submodule receives is sent to the user of belonging VLAN;
Described VLAN ID module comprises VLAN ID and adds submodule and VLAN ID deletion submodule;
Described VLAN ID adds submodule and is used for: the upstream data bag received for VLAN switch adds VLAN head, and VLAN head comprises VLAN id information;
Described VLAN ID deletes submodule and is used for: the downlink data packet received for VLAN switch removes VLAN head.
2. the system being realized IPv6 flexible deployment by VxLAN technology as claimed in claim 1, be is characterized in that: the communication between described SDN controller and all VxLAN Gateway is configured and configured by web interface or configuration file; Communication configuration comprises the IP address of VxLANGateway, local network LAN mouth value, the MAC Address of LAN mouth, wide area network WAN mouth value, the MAC Address of WAN mouth, WAN mouth IPv4 address, WAN mouth IPv6 address, WAN mouth down hop routing IP v4 address, WAN mouth down hop routing IP v6 address and down hop route MAC Address.
3. the as claimed in claim 1 or 2 system being realized IPv6 flexible deployment by VxLAN technology, be is characterized in that: described vlan communication information comprises the WAN mouth IP address of the VLAN ID of VLAN switch, intercommunication area VNI value and the VxLAN Gateway belonging to VLAN switch; User profile under described all VLAN switches comprises the WAN mouth IP address of VxLAN Gateway belonging to the IP address of user, MAC Address, user; The handling process of described IPv4 and IPv6 data type stream comprises the decapsulation in the amendment of VLAN ID, the encapsulation in tunnel and tunnel;
Described stream table administration module is preserved SDN controller and is reported the handling process of stream to comprise the following steps to VxLAN Gateway: when VxLAN Gateway receives upstream or downstream, stream table administration module searches current upstream or whether downstream exists, if, determine that current upstream or downstream are not send first, send current upstream or downstream according to current upstream or the process of downstream handling process; Otherwise determine that current upstream or downstream are for send first, current upstream or downstream are sent to SDN controller OpenFlow interface module by VxLAN OpenFlow interface module.
4., based on the method being realized IPv6 flexible deployment by VxLAN technology of system described in any one of claims 1 to 3, it is characterized in that, comprise the following steps:
S1: the communication configuration presetting all VxLAN Gateway at the intercommunication area administration module of SDN controller, forwards step S2 to;
S2: definition sends the user of network control message protocol ICMP request for request user HostA, and the VLAN switch that HostA uses is VLAN A, and the VxLAN Gateway belonging to VLAN A is VxLAN Gateway A; VLAN different from HostA and the VxLAN Gateway that the VLAN switch that for the purpose of the user sending icmp reply request bag for HostA, user HostB, HostB use is VLAN B, VLAN B is VxLANGateway B;
When HostA sends ICMP request to HostB, HostA sends ICMP request bag to the packet receiving submodule of VLAN A, and it is that current I CMP request bag adds VLAN head that the VLAN ID of VLAN A adds submodule, forwards step S3 to;
The VxLAN that current I CMP request bag is sent to VxLAN Gateway A is received and dispatched bag module by the VLAN of S3:VLAN A submodule of giving out a contract for a project, and VxLAN receives and dispatches bag module and forms a stream by the five-tuple of current I CMP request bag;
The stream table administration module of VxLAN GatewayA checks whether current stream exists, and if so, according to the handling process process of current stream, terminates; Otherwise current I CMP request bag is reported to SDN OpenFlow interface module by VxLAN OpenFlow interface module, forwards step S4 to;
S4:SDN OpenFlow interface module determination current I CMP asks the type of bag: if the type of current I CMP request bag is ARP or NS/NA type, asks Packet forwarding to ARP/NS/NA process submodule current I CMP, forward step S5 to; If the type of current I CMP request bag is IPv4 or IPv6 type, asks Packet forwarding to IPV4/IPv6 processing module current I CMP, forward step S6 to;
S5:ARP/NS/NA process submodule asks bag to process according to existing flow process to current I CMP, terminates;
S6:IPV4/IPv6 processing module informs whether the user profile of the user management submodule inquiry HostA of Topology Management module exists, and if so, forwards step S8 to, otherwise forwards step S7 to;
S7: user management submodule obtains HostA user profile according to current I CMP request bag, and the Topology Management module in controller preserves the user profile of HostA, forwards step S8 to;
S8: whether user management submodule inquiry HostB exists, and if so, forwards step S9 to;
Otherwise determine the Access Network that HostB uses, if the Access Network that HostB uses builds the ARP request data package in ARP type for IPv4, SDN controller, ask bag to go to obtain Host party B-subscriber's information as ICMP current ARP request data package, forward step S5 to; If the Access Network that HostB uses builds the NS request data package in NS/NA type for IPv6, SDN controller, ask bag to go to obtain Host party B-subscriber's information as ICMP current NS request data package and forward step S5 to;
The Topology Management module of S9:SDN controller obtains the VxLAN Gateway A configuration information of current I CMP request bag, learns value and this WAN mouth value reporting ICMP data to go out of packaging V xLAN head; SDN controller issues OFPT_FLOW_MOD information in OpenFlow agreement and OFPT_PACKET_OUT information to VxLANGatewayA, forwards step S10 to;
The VxLAN OpenFlow interface module of S10:VxLAN GatewayA receives the OFPT_FLOW_MOD message and OFPT_PACKET_OUT message that SDN controller issues; The stream table administration module of VxLAN GatewayA asks stream and this stream handling process of bag by the newly-built current I CMP of OFPT_FLOW_MOD message; VxLAN GatewayA is the stream packaging V xLAN head of newly-built current I CMP request bag by OFPT_PACKET_OUT message, forms encapsulated data packet; VxLAN GatewayA according to OFPT_PACKET_OUT message by current encapsulation Packet Generation to VxLANGatewayB, forward step S11 to;
After the VxLAN packet receiving submodule of S11:VxLAN GatewayB receives the encapsulated data packet in packaging V xLAN tunnel, in stream table administration module, search current encapsulation packet whether exist, if, form downlink data packet according to the stream list processing flow processing current encapsulation packet in stream table administration module, forward step S14 to; Otherwise by the OFPT_PACKET_IN message of OpenFlow agreement in VxLAN OpenFlow interface module, current encapsulation packet is reported to SDN OpenFlow interface module, forward step S12 to;
S12:SDN OpenFlow interface module is resolved current encapsulation packet, obtains the VNI value of current encapsulation packet; Whether the information of searching HostB in the Topology Management module of SDN controller exists, if not, abandon current encapsulation packet, terminate; If so, SDN controller is revised and the stream of newly-built current encapsulation packet and handling process according to the information notification VxLAN Gateway B of HostB, forms downlink data packet, forwards step S13 to;
Current downlink packet is forwarded to VLAN B by the VxLAN of S13:VxLAN Gateway B submodule of giving out a contract for a project, and forwards step S14 to;
Current downlink packet is forwarded to VLAN ID and deletes submodule by the VLAN packet receiving submodule of S14:VLAN B, and VLAN ID deletes after submodule deletes the VLAN ID of current downlink packet, is sent to HostB, forwards step S15 to by VLAN submodule of giving out a contract for a project;
S15:HostB replys according to the request type of current downlink packet, terminates.
5. the method being realized IPv6 flexible deployment by VxLAN technology as claimed in claim 4, it is characterized in that: whether the user profile of the user management submodule inquiry HostA of the module of Topology Management described in step S6 exists, specifically comprise the following steps: whether the inquiry of user management submodule exists MAC Address and the IP address of HostA, if, the user profile of HostA exists, forward step S8 to, otherwise the user profile of HostA does not exist, and forwards step S7 to.
6. the method being realized IPv6 flexible deployment by VxLAN technology as claimed in claim 4, it is characterized in that: the submodule of user management described in step S7 obtains HostA user profile according to current I CMP request bag, specifically comprise the following steps: user management submodule, according to the VxLAN Gateway IP address in current I CMP request bag, determines the VxLAN Gateway belonging to HostA; User management submodule, according to the VLAN ID in current I CMP request bag VLAN head, determines the VLAN that HostA uses and this VNI value belonging to VLAN.
7. the method being realized IPv6 flexible deployment by VxLAN technology as claimed in claim 4, be is characterized in that: for the stream packaging V xLAN head of newly-built current I CMP request bag specifically comprises the following steps described in step S10: ask the source MAC of the stream packaging V xLAN head of bag, target MAC (Media Access Control) address, ethernet type, source IP address, object IP address, next type of IP layer, VNI value for current I CMP and export integer to hardware OUTPORT port;
When the source MAC of packaging V xLAN head, target MAC (Media Access Control) address, next type of IP layer, VNI value and OUTPORT port, using the source MAC of the WAN mouth MAC Address of the VxLANGatewayA in Topology Management module as packaging V xLAN head; Using the target MAC (Media Access Control) address of the down hop route MAC Address of the VxLAN GatewayA in Topology Management module as packaging V xLAN head; Next type of IP layer is UDP, UDP source port and destination interface is 4789; VNI value is the VNI value under the VLAN switch searched by the VLAN ID of VLAN A; OUTPORT is VxLAN GatewayAWAN mouth value;
The ethernet type of packaging V xLAN head, source IP address and object IP address time:
If the WAN port address of VxLAN GatewayA is IPv6 type, ethernet type IP; Source IP address is the WAN mouth IPv6 address of VxLAN GatewayA; Object IPv6 address is the down hop routing IP v6 address of VxLAN GatewayA;
If the WAN port address of VxLAN GatewayA is IPv4 type: ethernet type is IP, source IP address is the WAN mouth IP address of VxLAN GatewayA, and object IP address is the down hop routed ip address of VxLAN GatewayA.
8. the method being realized IPv6 flexible deployment by VxLAN technology as claimed in claim 4, it is characterized in that: the Gateway of VxLAN described in step S12 B revises and the stream of newly-built current encapsulation packet and handling process, specifically comprises the following steps: VxLANGateway B is according to the VLAN ID of the acquisition of information VLAN B of HostB; According to OFPT_PACKET_OUT, SDN controller informs that VxLAN Gateway B removes the VxLAN tunnel of current encapsulation packet; The VLAN ID of current encapsulation packet is revised as the VLAN ID that value is VLAN B by VxLAN Gateway B; The OUTPORT value of current encapsulation packet is revised as the LAN mouth value of VxLAN Gateway B by VxLAN Gateway B.
9. the method being realized IPv6 flexible deployment by VxLAN technology as described in any one of claim 4 to 8, be is characterized in that: communication configuration described in step S1 is drawn together the WAN port address of VxLANGateway, WAN mouth down hop routed ip address, belonged to the VxLAN Gateway information of same intercommunication area;
When the Access Network of VxLAN Gateway is IPv6, WAN port address and WAN mouth down hop routed ip address are IPv6 address; When the Access Network of VxLAN Gateway is IPv4, WAN port address and WAN mouth down hop routed ip address are IPv4 address;
When the Access Network adopted as HostA, HostB in step S2 is IPv4, ICMP request bag is ICMP v4 request bag, and icmp reply request bag is that ICMPv4 replys request bag; When the Access Network that HostA, HostB adopt is IPv6, ICMP request bag is ICMPv6 request bag, and icmp reply request bag is that ICMPv6 replys request bag;
ICMP described in step S3 asks the five-tuple of bag to comprise the source IP address of ICMP request bag, object IP address, source MAC, target MAC (Media Access Control) address and data type;
ICMP described in step S9 asks the five-tuple of bag to comprise the source IP address of ICMP request bag, object IP address, source MAC, target MAC (Media Access Control) address and data type.
10. the method being realized IPv6 flexible deployment by VxLAN technology as described in any one of claim 4 to 8, be is characterized in that: step S15 specifically comprises the following steps: if current downlink packet is ARP request, HostB replys ARP Reply, terminates; If current downlink packet is ICMP request, HostB replys ICMP reply, terminates; If current downlink packet is NS request, HostB replys NA, terminates; If current downlink packet is ICMPv6 request, HostB replys ICMPv6 reply, terminates.
CN201410766973.6A 2014-12-11 2014-12-11 The system and method for IPv6 flexible deployments is realized by VxLAN technologies Active CN104486227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410766973.6A CN104486227B (en) 2014-12-11 2014-12-11 The system and method for IPv6 flexible deployments is realized by VxLAN technologies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410766973.6A CN104486227B (en) 2014-12-11 2014-12-11 The system and method for IPv6 flexible deployments is realized by VxLAN technologies

Publications (2)

Publication Number Publication Date
CN104486227A true CN104486227A (en) 2015-04-01
CN104486227B CN104486227B (en) 2017-10-13

Family

ID=52760733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410766973.6A Active CN104486227B (en) 2014-12-11 2014-12-11 The system and method for IPv6 flexible deployments is realized by VxLAN technologies

Country Status (1)

Country Link
CN (1) CN104486227B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610737A (en) * 2016-01-25 2016-05-25 盛科网络(苏州)有限公司 Method for implementing hairpin switch based on OpenFlow and hairpin switch system
CN106100959A (en) * 2016-06-07 2016-11-09 北京邮电大学 Data transmission method and system
CN107911258A (en) * 2017-12-29 2018-04-13 深信服科技股份有限公司 A kind of realization method and system in the secure resources pond based on SDN network
CN109962989A (en) * 2017-12-25 2019-07-02 中国电信股份有限公司 The methods, devices and systems of based traversal network address gateway
CN112688984A (en) * 2019-10-18 2021-04-20 中国移动通信有限公司研究院 Method, device and medium for issuing and executing instruction to network node
CN115277553B (en) * 2022-06-24 2023-11-21 深圳星云智联科技有限公司 Stream table storage method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938736A (en) * 2012-11-20 2013-02-20 杭州迪普科技有限公司 Method and device for realizing IPv6 (Internet Protocol Version 6) network traversing of IPv4 message
WO2013104375A1 (en) * 2012-01-09 2013-07-18 Telefonaktiebolaget L M Ericsson (Publ) Network device control in a software defined network
CN103347013A (en) * 2013-06-21 2013-10-09 北京邮电大学 OpenFlow network system and method for enhancing programmable capability

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013104375A1 (en) * 2012-01-09 2013-07-18 Telefonaktiebolaget L M Ericsson (Publ) Network device control in a software defined network
CN102938736A (en) * 2012-11-20 2013-02-20 杭州迪普科技有限公司 Method and device for realizing IPv6 (Internet Protocol Version 6) network traversing of IPv4 message
CN103347013A (en) * 2013-06-21 2013-10-09 北京邮电大学 OpenFlow network system and method for enhancing programmable capability

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ONF: "OpenFlow Switch Specification Version1.1.0 Implemented", 《OPENFLOW SWITCH SPECIFICATION》 *
卢志刚等: "一种基于VXLAN的虚拟网络访问控制方法", 《计算机工程》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105610737A (en) * 2016-01-25 2016-05-25 盛科网络(苏州)有限公司 Method for implementing hairpin switch based on OpenFlow and hairpin switch system
CN105610737B (en) * 2016-01-25 2019-02-15 盛科网络(苏州)有限公司 Hairpin interchanger implementation method and hairpin switch system based on OpenFlow
CN106100959A (en) * 2016-06-07 2016-11-09 北京邮电大学 Data transmission method and system
CN106100959B (en) * 2016-06-07 2019-04-09 北京邮电大学 Data transmission method and system
CN109962989A (en) * 2017-12-25 2019-07-02 中国电信股份有限公司 The methods, devices and systems of based traversal network address gateway
CN109962989B (en) * 2017-12-25 2022-03-01 中国电信股份有限公司 Method, device and system for traversing network address gateway
CN107911258A (en) * 2017-12-29 2018-04-13 深信服科技股份有限公司 A kind of realization method and system in the secure resources pond based on SDN network
CN112688984A (en) * 2019-10-18 2021-04-20 中国移动通信有限公司研究院 Method, device and medium for issuing and executing instruction to network node
CN112688984B (en) * 2019-10-18 2023-11-24 中国移动通信有限公司研究院 Method, equipment and medium for issuing and executing instructions to network node
CN115277553B (en) * 2022-06-24 2023-11-21 深圳星云智联科技有限公司 Stream table storage method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN104486227B (en) 2017-10-13

Similar Documents

Publication Publication Date Title
US10320664B2 (en) Cloud overlay for operations administration and management
CN108476160B (en) switch interconnect based on layered overlay tunneling
US9448821B2 (en) Method and system for realizing virtual machine mobility
US9281955B2 (en) Interoperability of data plane based overlays and control plane based overlays in a network environment
US9667541B2 (en) Virtual MAC address, mask-based, packet forwarding
EP2600573B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
CN104320267A (en) ARP broadcast restraining system and method for achieving VxLAN based on SDN framework
US8750288B2 (en) Physical path determination for virtual network packet flows
CN108574616A (en) A kind of method, equipment and the system of processing routing
CN102025591B (en) Method and system for implementing virtual private network
CN104486227A (en) System and method for achieving IPv6 flexible arrangement through VxLAN technique
CN107113241B (en) Route determining method, network configuration method and related device
WO2016055027A1 (en) Table entry in software defined network
CN104468384A (en) System and method for achieving multi-service priorities
US10020954B2 (en) Generic packet encapsulation for virtual networking
WO2021143279A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
US11522792B2 (en) Method for discovering forwarding path and related device thereof
CN107733930B (en) Method and system for forwarding Internet Protocol (IP) packets at multiple WAN network gateways
Yamanaka et al. AutoVFlow: Autonomous virtualization for wide-area OpenFlow networks
WO2020182085A1 (en) Transmission method and device for message
US20240039846A1 (en) Asymmetric Addressing For Limited Domains and Internet
WO2017036384A1 (en) Provider edge device and data forwarding method
JP7273125B2 (en) Method and first network device for transmitting BIERv6 packets
WO2021077991A1 (en) Message detection method, connectivity negotiation relationship establishment method, and related device
CN115242699A (en) Message transmission method, slice generation method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: System and method for realizing flexible deployment of IPv6 through vxlan Technology

Effective date of registration: 20220307

Granted publication date: 20171013

Pledgee: Industrial Bank Limited by Share Ltd. Wuhan branch

Pledgor: WUHAN GREENET INFORMATION SERVICE Co.,Ltd.

Registration number: Y2022420000052

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230717

Granted publication date: 20171013

Pledgee: Industrial Bank Limited by Share Ltd. Wuhan branch

Pledgor: WUHAN GREENET INFORMATION SERVICE Co.,Ltd.

Registration number: Y2022420000052