[go: up one dir, main page]

CN110691150A - SDN-based IPv4 and IPv6 interconnection method and system - Google Patents

SDN-based IPv4 and IPv6 interconnection method and system Download PDF

Info

Publication number
CN110691150A
CN110691150A CN201910934293.3A CN201910934293A CN110691150A CN 110691150 A CN110691150 A CN 110691150A CN 201910934293 A CN201910934293 A CN 201910934293A CN 110691150 A CN110691150 A CN 110691150A
Authority
CN
China
Prior art keywords
ipv4
ipv6
address
sdn
data packet
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.)
Pending
Application number
CN201910934293.3A
Other languages
Chinese (zh)
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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN201910934293.3A priority Critical patent/CN110691150A/en
Publication of CN110691150A publication Critical patent/CN110691150A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

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

Abstract

本发明公开了一种基于SDN的IPv4与IPv6互联方法及系统,所述方法步骤为:当IPv6/IPv4客户端使用IPv4/IPv6网络的域名对IPv4/IPv6网络发起访问时,通过SDN查询、中转请求数据和转化控制记录查询请求,IPv4/IPv6接收转化后的记录查询请求并查询得出域名为其网络中域名后回复携带IPv4/IPv6地址的记录查询应答,通过SDN再次中转、翻译并回复后,IPv6/IPv4客户端以收到的翻译后地址作为目的地址发送第一数据包,通过SDN中转、翻译后发往IPv4/IPv6网络并接收IPv4/IPv6网络的回复数据包,再翻译为第四数据包并发往IPv6/IPv4客户端,IPv6/IPv4客户端接收第四数据包。本发明可实现在对传统网络基础上只添加一条SDN网络的SDN控制器的路由表项,完成IPv4与IPv6互联。

The invention discloses an SDN-based IPv4 and IPv6 interconnection method and system. The method steps are: when an IPv6/IPv4 client initiates access to an IPv4/IPv6 network using the domain name of the IPv4/IPv6 network, query and transfer through the SDN Request data and conversion control record query request, IPv4/IPv6 receives the converted record query request and finds that the domain name is the domain name in the network, and then replies with the record query response carrying the IPv4/IPv6 address, and transfers, translates and replies again through SDN , the IPv6/IPv4 client sends the first data packet with the received translated address as the destination address, transits through the SDN, sends it to the IPv4/IPv6 network after translation, and receives the reply data packet from the IPv4/IPv6 network, and then translates it into the fourth The data packet is sent to the IPv6/IPv4 client, and the IPv6/IPv4 client receives the fourth data packet. The invention can realize that only one routing table entry of the SDN controller of the SDN network is added on the basis of the traditional network to complete the interconnection of IPv4 and IPv6.

Description

一种基于SDN的IPv4与IPv6互联方法及系统An SDN-based IPv4 and IPv6 interconnection method and system

技术领域technical field

本发明涉及网络通信领域,尤其涉及一种基于SDN的IPv4与IPv6互联方法及系统。The invention relates to the field of network communication, in particular to an SDN-based IPv4 and IPv6 interconnection method and system.

背景技术Background technique

随着网络规模的扩大和各种各样新应用的产生,IPv4网络暴露出来越来越多的问题,而要将当前的IPv4网络完全升级为IPv6网络需要付出巨大的成本,因此在未来一段漫长的时间内IPv4与IPv6会同时存在。为保证网络业务的连续性,在IPv4与IPv6共存阶段必须引入IPv6过渡技术。当前使用的每种过渡技术都只针对某一种特定应用需求而不具有普适性。因此在实际部署中根据具体应用需求在网络中添加具有相应功能的设备,这不但会增加网络功能的复杂性,而且配置复杂易造成资源浪费。With the expansion of the network scale and the emergence of various new applications, more and more problems are exposed in the IPv4 network, and a huge cost is required to completely upgrade the current IPv4 network to the IPv6 network, so it will be a long time in the future. IPv4 and IPv6 will coexist within the time period. To ensure the continuity of network services, IPv6 transition technology must be introduced in the coexistence stage of IPv4 and IPv6. Each transition technology currently in use is specific to a specific application and is not universal. Therefore, in actual deployment, devices with corresponding functions are added to the network according to specific application requirements, which not only increases the complexity of network functions, but also leads to a waste of resources due to complex configuration.

将当前的IPv4网络全部升级到IPv6网络不仅需要设备的支持,而且需要将当前的网络应用全部用IPv6协议重写,这将要付出难以估计的代价。因此,从IPv4升级到IPv6不是短时间内就能够完成的,而是一个渐进而漫长的过程,在这过程中IPv4与IPv6会共同存在。在IPv4升级为IPv6的过程中必须保证原有的网络业务不能中断,因此在IPv4与IPv6共存阶段必须引入IPv6过渡技术,一方面在IPv4与IPv6共存阶段实现IPv4地址的复用,从而减缓IPv4公网地址的消耗;另一方面通过IPv4与IPv6间的翻译转换实现他们之间的互联互通,从而保证当前网络业务的连续性。目前,针对不同的需求已经发展出现了多种过渡技术,包括双栈技术、隧道技术、翻译技术等,每种过渡技术都是只针对某一种特定应用需求而不具有普适性,因此在实际部署中需要根据具体应用需求在网络中添加具有相应功能的设备,这无疑增加了网络的复杂性。另外,由于网络应用需求的变化,需要根据需求的改变而改变网络的部署,这不但增加了网络部署配置的复杂性而且会造成网络资源的浪费。随着一种被称为软件定义网络(SDN,Software Defined Networking)的新网络体系架构的出现,这些在传统IPv6过渡技术中所遇到的困难可以找到一种新的解决方法。Upgrading the current IPv4 network to IPv6 network not only requires the support of the equipment, but also needs to rewrite all the current network applications with the IPv6 protocol, which will cost incalculable. Therefore, upgrading from IPv4 to IPv6 is not a short period of time, but a gradual and long process, during which IPv4 and IPv6 will coexist. In the process of upgrading from IPv4 to IPv6, it is necessary to ensure that the original network services cannot be interrupted. Therefore, IPv6 transition technology must be introduced in the coexistence stage of IPv4 and IPv6. Consumption of network addresses; on the other hand, through the translation and conversion between IPv4 and IPv6, the interconnection between them is realized, thereby ensuring the continuity of current network services. At present, a variety of transition technologies have been developed for different needs, including dual-stack technology, tunnel technology, translation technology, etc. Each transition technology is only for a specific application requirement and is not universal. Therefore, in the In actual deployment, devices with corresponding functions need to be added to the network according to specific application requirements, which undoubtedly increases the complexity of the network. In addition, due to changes in network application requirements, network deployment needs to be changed according to changes in requirements, which not only increases the complexity of network deployment and configuration, but also causes waste of network resources. With the emergence of a new network architecture called Software Defined Networking (SDN, Software Defined Networking), these difficulties encountered in the traditional IPv6 transition technology can find a new solution.

SDN是由斯坦福大学Clean Slat研究组提出的一种新型网络架构,其独创之处是将传统网络中的网络控制与网络转发解耦分离成一个控制面和一个数据面,控制面对外界开放标准控制接口,网络管理员可以使用这些控制接口编写具体的网络应用程序从而达到对网络具体需求的控制。而数据面仅根据来自控制面的命令对网络中数据通信进行转发等处理。在SDN网络中,作为控制面的SDN控制器感知全网、维护全网拓扑、制定网络策略、策略的下发等,而作为数据面SDN交换机则按照控制器制定下发的策略完成数据包转发等。SDN一经问世,便以其开放、灵活以及细粒度的网络管理控制方式而广受学术界和企业界的关注,无论是世界著名的网络设备提供商和网络运营商如思科、华为、AT&T等,还是著名IT产业巨头如微软、谷歌、IBM等都表现出了对SDN的高度重视,因此SDN很可能会成为下一代互联网体系架构的方向。SDN is a new type of network architecture proposed by the Clean Slat research group of Stanford University. Its originality is to decouple the network control and network forwarding in the traditional network into a control plane and a data plane. The control plane is open to the outside world. Control interfaces, network administrators can use these control interfaces to write specific network applications to control specific network requirements. The data plane only performs processing such as forwarding the data communication in the network according to the commands from the control plane. In an SDN network, the SDN controller as the control plane perceives the entire network, maintains the topology of the entire network, formulates network policies, and distributes policies, etc., while the SDN switch as the data plane completes packet forwarding according to the policies formulated and distributed by the controller. Wait. Once SDN came out, it has attracted wide attention from academia and business circles for its open, flexible and fine-grained network management and control methods. Or well-known IT industry giants such as Microsoft, Google, IBM, etc. have shown great importance to SDN, so SDN is likely to become the direction of the next generation of Internet architecture.

SDN出现后已经在很多方面得到关注和应用,如网络安全、QoS保障、流量控制等,但是如何在传统IPv6过渡技术中引入结合SDN技术,从而解决IPv4与IPv6共存阶段网络的复杂性和业务的可持续性,目前还没有过多深入的研究。本专利在SDN框架基础上做的IPv4与IPv6互联技术的研究具有一定的理论和实践意义。After the emergence of SDN, it has been concerned and applied in many aspects, such as network security, QoS guarantee, flow control, etc., but how to introduce the combined SDN technology in the traditional IPv6 transition technology, so as to solve the network complexity and business problems in the coexistence stage of IPv4 and IPv6. Sustainability, there is not much in-depth research. The research on IPv4 and IPv6 interconnection technology based on the SDN framework in this patent has certain theoretical and practical significance.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于克服现有技术的缺点与不足,提供一种基于SDN的IPv4与IPv6互联方法及系统,此方法及系统可实现在对传统网络基础上只添加一条SDN网络的SDN控制器的路由表项,完成IPv4与IPv6互联。The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and to provide a method and system for interconnecting IPv4 and IPv6 based on SDN, which can realize an SDN controller that only adds an SDN network on the basis of a traditional network. Routing table entry to complete IPv4 and IPv6 interconnection.

本发明的目的通过以下的技术方案实现:一种基于SDN的IPv4与IPv6互联方法,包括步骤:The object of the present invention is achieved through the following technical solutions: a kind of SDN-based IPv4 and IPv6 interconnection method, comprising steps:

当IPv6/IPv4客户端使用IPv4/IPv6服务器的域名对IPv4/IPv6网络发起访问时,向SDN控制器发起域名第一记录查询请求,第一记录查询请求资源类型与DNS6/DNS4资源类型匹配;When the IPv6/IPv4 client initiates access to the IPv4/IPv6 network using the domain name of the IPv4/IPv6 server, it initiates a domain name first record query request to the SDN controller, and the resource type of the first record query request matches the DNS6/DNS4 resource type;

通过SDN控制器调用域名解析管理模块,若域名解析管理模块查询不到对应的资源记录,则将第一记录查询请求转为第二记录查询请求,第二记录查询请求类型与DNS4/DNS6资源类型匹配,将第二记录查询请求发送给IPv4/IPv6网络中的域名服务器DNS4/DNS6;The domain name resolution management module is called through the SDN controller. If the domain name resolution management module cannot query the corresponding resource record, the first record query request is converted into a second record query request, and the second record query request type is the same as the DNS4/DNS6 resource type. match, send the second record query request to the domain name server DNS4/DNS6 in the IPv4/IPv6 network;

当DNS4/DNS6收到第二记录查询请求时,发现查询的域名是自己网络中的域名,通过DNS4/DNS6生成携带IPv4/IPv6地址的第二记录查询应答,并将第二记录查询应答回复给SDN控制器;When DNS4/DNS6 receives the second record query request, it finds that the queried domain name is the domain name in its own network, generates the second record query response carrying the IPv4/IPv6 address through DNS4/DNS6, and replies the second record query response to SDN controller;

通过SDN控制器,将收到的第二记录查询应答翻译成相应的第一记录查询应答,并将其中携带的IPv4/IPv6地址翻译成为对应的IPv6/IPv4地址返回给DNS6/DNS4;Through the SDN controller, the received second record query response is translated into a corresponding first record query response, and the IPv4/IPv6 address carried therein is translated into a corresponding IPv6/IPv4 address and returned to DNS6/DNS4;

DNS6/DNS4收到SDN控制器的回复后,将收到的查询应答回复给IPv6/IPv4客户端;After DNS6/DNS4 receives the reply from the SDN controller, it replies the received query response to the IPv6/IPv4 client;

通过IPv6/IPv4客户端,以收到的IPv6/IPv4地址作为目的地址向SDN发送IPv6/IPv4格式第一数据包(第一数据包通过边界路由器到达SDN);Through the IPv6/IPv4 client, use the received IPv6/IPv4 address as the destination address to send the first data packet in IPv6/IPv4 format to the SDN (the first data packet reaches the SDN through the border router);

通过SDN调用网络层协议转换模块,将IPv6/IPv4格式第一数据包翻译成IPv4/IPv6格式第一数据包,发往IPv4/IPv6网络;The network layer protocol conversion module is invoked through SDN to translate the first data packet in IPv6/IPv4 format into the first data packet in IPv4/IPv6 format, and send it to the IPv4/IPv6 network;

IPv4/IPv6网络收到第一数据包后,回复IPv4/IPv6格式第二数据包至IPv6/IPv4客户端;After receiving the first data packet, the IPv4/IPv6 network replies the second data packet in IPv4/IPv6 format to the IPv6/IPv4 client;

通过SDN调用网络层协议转换模块,将IPv4/IPv6格式第二数据包翻译成IPv6/IPv4第二数据包,发往IPv6/IPv4网络;The network layer protocol conversion module is invoked through SDN to translate the second data packet in IPv4/IPv6 format into the second data packet in IPv6/IPv4 and send it to the IPv6/IPv4 network;

IPv6/IPv4客户端收到第二数据包。The IPv6/IPv4 client receives the second packet.

优选的,所述翻译行为遵循RFC6145标准中定义的IP/ICMP翻译算法;具体而言,所述将IPv4地址依据RFC6052中定义的算法被翻译IPv6地址;通过SDN调用网络层协议转换模块,将IPv6/IPv4格式数据包翻译成IPv4/IPv6格式数据包则符合一般NAPT映射规则RFC3022。Preferably, the translation behavior follows the IP/ICMP translation algorithm defined in the RFC6145 standard; specifically, the IPv4 address is translated into the IPv6 address according to the algorithm defined in the RFC6052; the network layer protocol conversion module is invoked through SDN, and the IPv6 The translation of /IPv4 format packets into IPv4/IPv6 format packets conforms to the general NAPT mapping rule RFC3022.

优选的,所述将IPv6地址翻译成为对应的IPv4地址的步骤为:Preferably, the step of translating an IPv6 address into a corresponding IPv4 address is:

通过域名解析管理模块发送地址申请请求到地址管理与映射模块;Send the address application request to the address management and mapping module through the domain name resolution management module;

通过地址管理与映射模块从地址池选取一个可用的IPv4地址返回给域名解析管理模块,并建立地址绑定关系;Select an available IPv4 address from the address pool through the address management and mapping module and return it to the domain name resolution management module, and establish an address binding relationship;

通过域名解析管理模块根据返回的地址将收到的第二记录查询应答合成相应的第一查询应答返回给DNS4。The domain name resolution management module synthesizes the received second record query response into a corresponding first query response according to the returned address and returns it to DNS4.

优选的,通过SDN调用网络层协议转换模块,将IPv6格式数据包翻译成IPv4格式数据包,发往IPv4网络的具体步骤为:Preferably, the network layer protocol conversion module is invoked through SDN to translate the IPv6 format data packet into the IPv4 format data packet, and the specific steps for sending it to the IPv4 network are as follows:

通过SDN交换机收到IPv6客户端到IPv4服务器的通信数据包,发现其目的地址是一个IPv4映射地址,SDN控制器调用地址管理和映射模块,在地址转换表中查询源IPv6地址是否存在映射关系;The SDN switch receives the communication data packet from the IPv6 client to the IPv4 server, and finds that the destination address is an IPv4 mapped address. The SDN controller calls the address management and mapping module to check whether the source IPv6 address has a mapping relationship in the address translation table;

如果没有,从IPv4地址池中选取一个空闲地址给源IPv6地址,转换成一个IPv4地址作为新的源地址,并建立映射关系,目的地址按照相应规则转换为IPv4地址;If not, select a free address from the IPv4 address pool to the source IPv6 address, convert it into an IPv4 address as a new source address, and establish a mapping relationship, and the destination address is converted to an IPv4 address according to the corresponding rules;

通过网络层协议转换模块将IPv6格式数据包翻译成IPv4格式数据包发送给IPv4服务器。The IPv6 format data packet is translated into the IPv4 format data packet by the network layer protocol conversion module and sent to the IPv4 server.

优选的,通过SDN调用网络层协议转换模块,将IPv4格式数据包翻译成IPv6格式数据包,发往IPv6网络的具体步骤为:Preferably, the network layer protocol conversion module is invoked through SDN to translate the IPv4 format data packet into the IPv6 format data packet, and the specific steps for sending it to the IPv6 network are as follows:

通过SDN交换机收到IPv4客户端到IPv6服务器的通信IPv4格式数据包,发现其目的地址是一个IPv6映射地址,SDN控制器调用地址管理与映射模块,在地址转换表中查询源IPv4地址是否存在映射关系;The SDN switch receives the communication IPv4 format data packet from the IPv4 client to the IPv6 server, and finds that the destination address is an IPv6 mapped address. The SDN controller calls the address management and mapping module to check whether the source IPv4 address has a mapping in the address translation table. relation;

如果没有,从IPv6地址池中选取一个空闲地址给源IPv4地址,网络层协议转换模块转换成一个IPv6地址作为新的源地址,并在地址转换表中建立映射关系,目的地址按照相应规则转换为IPv6地址;If not, select a free address from the IPv6 address pool to give the source IPv4 address, the network layer protocol conversion module converts it into an IPv6 address as a new source address, and establishes a mapping relationship in the address conversion table, and the destination address is converted according to the corresponding rules to IPv6 address;

通过网络层协议转换模块将IPv4格式数据包翻译成IPv6格式数据包发送给IPv6服务器。The IPv4 format data packet is translated into the IPv6 format data packet by the network layer protocol conversion module and sent to the IPv6 server.

一种基于SDN的IPv4与IPv6互联系统,包括SDN控制器、SDN交换机、路由模块和互联模块;An SDN-based IPv4 and IPv6 interconnection system, comprising an SDN controller, an SDN switch, a routing module and an interconnection module;

所述路由模块安装于SDN控制器中,用于网络之间通信数据包的网络路由;具体包括路由配置子模块、路由探测子模块和路由管理子模块;The routing module is installed in the SDN controller and is used for network routing of communication data packets between networks; it specifically includes a routing configuration submodule, a routing detection submodule and a routing management submodule;

所述路由配置子模块用于边界路由网关设备的配置;The routing configuration submodule is used for the configuration of the border routing gateway device;

所述路由探测子模块用于边界路由网关设备探测;The routing detection sub-module is used for border routing gateway device detection;

所述路由管理子模块用于路由表等信息的维护管理;The routing management submodule is used for the maintenance and management of information such as routing tables;

所述互联模块用于IP地址的获取、IPv4地址与IPv6地址的管理、映射、转换以及IPv4格式数据包与IPv6格式数据包的协议翻译;所述互联模块具体包括域名解析管理子模块、网络层协议转换子模块、地址管理和映射子模块;Described interconnection module is used for the acquisition of IP address, the management of IPv4 address and IPv6 address, mapping, conversion and the protocol translation of IPv4 format data packet and IPv6 format data packet; Described interconnection module specifically includes domain name resolution management submodule, network layer Protocol conversion sub-module, address management and mapping sub-module;

所述域名解析管理子模块,安装于SDN控制器中,用于代理查询和结果转换,帮助客户端获得嵌入目的地址的地址;The domain name resolution management submodule is installed in the SDN controller and is used for proxy query and result conversion to help the client obtain the address embedded in the destination address;

所述网络层协议转换子模块,安装于SDN交换机中,用于数据通信过程中IPv4数据包与IPv6数据包间的协议翻译和地址转换;The network layer protocol conversion submodule is installed in the SDN switch and is used for protocol translation and address conversion between the IPv4 data packet and the IPv6 data packet in the data communication process;

所述地址管理和映射子模块,安装于SDN控制器中,用于DNS解析阶段中IPv4地址与IPv6地址的动态管理和建立IPv4地址与IPv6地址映射关系。The address management and mapping sub-module is installed in the SDN controller and is used for dynamic management of IPv4 addresses and IPv6 addresses in the DNS resolution phase and establishment of the mapping relationship between IPv4 addresses and IPv6 addresses.

优选的,所述路由模块、域名解析管理子模块和地址管理和映射子模块以插件的形式安装添加到SDN控制器中。Preferably, the routing module, the domain name resolution management sub-module and the address management and mapping sub-module are installed and added to the SDN controller in the form of plug-ins.

本发明与现有技术相比,具有如下优点和有益效果:Compared with the prior art, the present invention has the following advantages and beneficial effects:

1.本发明仅需要在DNS服务器上添加一条到SDN网络的SDN控制器的路由表项,即通过安装在SDN控制器的地址管理和映射子模块,建立IPv4地址与IPv6地址映射关系,本发明对传统网络较少改动。1. The present invention only needs to add a routing table entry to the SDN controller of the SDN network on the DNS server, that is, through the address management and mapping sub-module installed in the SDN controller, to establish the IPv4 address and IPv6 address mapping relationship, the present invention Less changes to traditional networks.

2.本发明中IPv4或者IPv6网络的客户端无需关心域名对应的地址是IPv4还是IPv6,只需输入域名就可以访问服务,所以本发明有很强的透明性。2. The client of the IPv4 or IPv6 network in the present invention does not need to care whether the address corresponding to the domain name is IPv4 or IPv6, and only needs to input the domain name to access the service, so the present invention has strong transparency.

3.本发明使用控制平面对上提供的标准控制接口编写实现IPv4与IPv6互联功能的应用程序,然后将其以插件的形式安装添加到SDN控制器和交换机中,以后不再需要某些网络应用功能,只需将相关应用模块从控制器和交换机中移除即可。所以本发明灵活方便。3. The present invention uses the standard control interface provided on the control plane to write the application program that realizes the interconnection function of IPv4 and IPv6, and then installs it in the form of a plug-in and adds it to the SDN controller and the switch, and some network applications are no longer required in the future. function, simply remove the relevant application module from the controller and switch. Therefore, the present invention is flexible and convenient.

4.本发明网络层协议转换子模块以插件的形式安装添加到SDN交换机中,所以可以有效地避免SDN控制器的拥塞。4. The network layer protocol conversion sub-module of the present invention is installed and added to the SDN switch in the form of a plug-in, so the congestion of the SDN controller can be effectively avoided.

附图说明Description of drawings

图1为本发明实施例3基于SDN的IPv4与IPv6互联系统模型示意图;1 is a schematic diagram of a SDN-based IPv4 and IPv6 interconnection system model according to Embodiment 3 of the present invention;

图2为本发明IPv6客户端与IPv4服务器的过程通信示意图;Fig. 2 is the process communication schematic diagram of IPv6 client of the present invention and IPv4 server;

图3为本发明实施例1提供的一种IPv6客户端访问IPv4服务器的流程图;3 is a flowchart of an IPv6 client accessing an IPv4 server according to Embodiment 1 of the present invention;

图4为本发明实施例2提供的一种IPv4客户端访问IPv6服务器的流程图。FIG. 4 is a flowchart of an IPv4 client accessing an IPv6 server according to Embodiment 2 of the present invention.

具体实施方式Detailed ways

为了更好的理解本发明的技术方案,下面结合附图详细描述本发明提供的实施例,但本发明的实施方式不限于此。In order to better understand the technical solutions of the present invention, the embodiments provided by the present invention are described in detail below with reference to the accompanying drawings, but the embodiments of the present invention are not limited thereto.

实施例1Example 1

如图3所示,本实施例公开了一种以IPv6网络中的客户端作为发起主机访问IPv4网络中的服务器(IPv6客户端访问IPv4客户端的步骤原理类似,在此不再赘述,实施例2同理)的通信方法,其中IPv6客户端的域名为“www.IPv6.com”,IPv4服务器的域名是“www.IPv4.com”。整个通信过程如下:As shown in FIG. 3 , this embodiment discloses a method of using a client in an IPv6 network as an initiating host to access a server in an IPv4 network (the steps of an IPv6 client accessing an IPv4 client are similar in principle, and will not be repeated here, Embodiment 2 Similarly), the domain name of the IPv6 client is "www.IPv6.com", and the domain name of the IPv4 server is "www.IPv4.com". The whole communication process is as follows:

步骤S301:IPv6客户端使用IPv4服务器的域名www.IPv4.com对其发起访问,IPv6客户端首先发送RR类型(资源类型)为“AAAA”记录查询到DNS6域名服务器,查询域名www.IPv4.com。Step S301: The IPv6 client initiates access to the IPv4 server by using the domain name www.IPv4.com of the IPv4 server. The IPv6 client first sends an RR type (resource type) record of "AAAA" to query the DNS6 domain name server, and queries the domain name www.IPv4.com .

步骤S302:域名服务器DNS6没有域名www.IPv4.com对应的资源记录,于是向SDN控制器发起RR类型为“AAAA”记录查询请求。Step S302: The domain name server DNS6 does not have a resource record corresponding to the domain name www.IPv4.com, so it initiates a record query request with an RR type of "AAAA" to the SDN controller.

步骤S303:SDN控制器调用域名解析管理模块,域名解析管理模块将发来的记录查询也没有对应的资源记录。Step S303: The SDN controller invokes the domain name resolution management module, and the record query sent by the domain name resolution management module does not have a corresponding resource record.

步骤S304:域名解析管理模块于是将发来的“AAAA”转换成“A”记录查询请求,然后发送给IPv4网络中的域名服务器DNS4。Step S304: The domain name resolution management module then converts the sent "AAAA" into an "A" record query request, and then sends it to the domain name server DNS4 in the IPv4 network.

步骤S305:DNS4收到来自SDN控制器记录查询请求请求,发现www.IPv4.com是自己网络中的服务器,于是将其生成的携带IPv4地址的“A”记录查询应答回复给SDN控制器。Step S305: DNS4 receives the record query request from the SDN controller, finds that www.IPv4.com is a server in its own network, and replies the generated "A" record query response carrying the IPv4 address to the SDN controller.

步骤S306:SDN控制器收到来自DNS4的回复后,将收到的“A”记录查询应答翻译成相应的“AAAA”查询应答,并将其中携带的IPv4地址按照相应规则翻译成为对应的IPv6地址返回给DNS6(IPv4的地址转换成IPv6的地址可以直接按照现有的规则转换,故在此不再赘述)。Step S306: After receiving the reply from DNS4, the SDN controller translates the received "A" record query response into a corresponding "AAAA" query response, and translates the IPv4 address carried in it into a corresponding IPv6 address according to corresponding rules Return to DNS6 (the IPv4 address can be converted into an IPv6 address directly according to the existing rules, so it is not repeated here).

步骤S307:DNS6收到SDN控制器的回复后,将收到的查询应答回复给IPv6客户端。Step S307: After receiving the reply from the SDN controller, the DNS6 replies the received query response to the IPv6 client.

步骤S308:IPv6客户端收到DNS6的回复后,使用应答报文中的IPv6地址作为目的地址向IPv4服务器发送IPv6格式第一数据包。Step S308: After receiving the reply from DNS6, the IPv6 client sends the first data packet in IPv6 format to the IPv4 server using the IPv6 address in the reply message as the destination address.

步骤S309:SDN交换机收到IPv6客户端到IPv4服务器的通信IPv6格式第一数据包,发现其目的地址是一个IPv4映射地址,SDN控制器调用地址管理和映射模块,在地址转换表中查询源IPv6地址是否存在映射关系,如果没有,从IPv4地址池中选取一个空闲地址给源IPv6地址,转换成一个IPv4地址作为新的源地址,并建立映射关系,目的地址按照相应规则转换为IPv4地址。最后由网络层协议转换模块将IPv6格式第一数据包翻译成IPv4格式第一数据包发送给IPv4服务器。Step S309: The SDN switch receives the first data packet in IPv6 format from the IPv6 client to the IPv4 server, and finds that the destination address is an IPv4 mapped address, and the SDN controller calls the address management and mapping module to query the source IPv6 in the address translation table Whether the address has a mapping relationship, if not, select a free address from the IPv4 address pool to the source IPv6 address, convert it into an IPv4 address as a new source address, and establish a mapping relationship. The destination address is converted to an IPv4 address according to the corresponding rules. Finally, the first data packet in IPv6 format is translated into the first data packet in IPv4 format by the network layer protocol conversion module and sent to the IPv4 server.

步骤S310:IPv4服务器收到第一数据包后,回复IPv4格式第二数据包至IPv6客户端。Step S310: After receiving the first data packet, the IPv4 server replies the second data packet in IPv4 format to the IPv6 client.

步骤S311:SDN交换机收到IPv4服务器的回复IPv4格式第二数据包后,发现其目的地址是一个IPv6映射地址,于是SDN交换机调用网络层协议转换模块,按照地址映射关系转换成IPv6地址,同时使用源IPv4地址在地址转换表中查询其对应的IPv6地址。Step S311: After the SDN switch receives the second data packet in IPv4 format from the IPv4 server, it finds that its destination address is an IPv6 mapped address, so the SDN switch calls the network layer protocol conversion module, converts it into an IPv6 address according to the address mapping relationship, and uses The source IPv4 address queries its corresponding IPv6 address in the address translation table.

步骤S312:最后由网络层协议转换模块将IPv4格式第二数据包翻译成IPv6格式第二数据包,将这个翻译转换完成后的IPv6格式第二数据包发送给IPv6客户端。Step S312: Finally, the network layer protocol conversion module translates the second data packet in IPv4 format into the second data packet in IPv6 format, and sends the second data packet in IPv6 format after translation and conversion to the IPv6 client.

实施例2Example 2

如图4所示,本实施例公开了一种以IPv6网络中的客户端作为发起主机访问IPv4网络中的服务器的通信方法,其中IPv4客户端的域名为“www.IPv4.com”,IPv4服务器的域名是“www.IPv6.com”。整个通信过程如下:As shown in FIG. 4 , this embodiment discloses a communication method for using a client in an IPv6 network as an initiating host to access a server in an IPv4 network, wherein the domain name of the IPv4 client is “www.IPv4.com”, and the domain name of the IPv4 server is “www.IPv4.com”. The domain name is "www.IPv6.com". The whole communication process is as follows:

步骤S401:IPv4客户端使用IPv6服务器的域名www.IPv6.com对其发起访问,IPv4客户端首先发送RR类型为“A”记录查询到DNS4域名服务器,查询域名www.IPv6.com。Step S401: The IPv4 client initiates access to the IPv6 server by using the domain name www.IPv6.com of the IPv6 server, and the IPv4 client first sends an RR type "A" record to query the DNS4 domain name server to query the domain name www.IPv6.com.

步骤S402:域名服务器DNS4没有域名www.IPv6.com对应的资源记录,于是向SDN控制器发起RR类型为“A”记录查询请求。Step S402: The domain name server DNS4 does not have a resource record corresponding to the domain name www.IPv6.com, so it initiates a query request for a record with an RR type of "A" to the SDN controller.

步骤S403:SDN控制器调用域名解析管理模块,域名解析管理模块将发来的记录查询也没有对应的资源记录。Step S403: The SDN controller invokes the domain name resolution management module, and the record query sent by the domain name resolution management module does not have a corresponding resource record.

步骤S404:域名解析管理模块于是将发来的“A”转换成“AAAA”记录查询请求,然后发送给IPv6网络中的域名服务器DNS6。Step S404: The domain name resolution management module then converts the sent "A" into an "AAAA" record query request, and then sends it to the domain name server DNS6 in the IPv6 network.

步骤S405:DNS6收到来自SDN控制器记录查询请求请求,发现www.IPv6.com是自己网络中的服务器,于是将其生成的携带IPv6地址的“AAAA”记录查询应答回复给SDN控制器。Step S405: DNS6 receives the record query request from the SDN controller, finds that www.IPv6.com is a server in its own network, and replies the generated "AAAA" record query response carrying the IPv6 address to the SDN controller.

步骤S406:SDN控制器收到来自DNS6的回复后,为了将IPv6地址映射到IPv4地址空间,域名解析管理模块发送地址申请请求到地址管理与映射模块,地址管理与映射模块从地址池选取一个可用的IPv4地址返回给域名解析管理模块,并建立地址绑定关系,域名解析管理模块根据返回的地址将收到的“AAAA”记录查询应答合成相应的“A”查询应答返回给DNS4。Step S406: After the SDN controller receives the reply from DNS6, in order to map the IPv6 address to the IPv4 address space, the domain name resolution management module sends an address application request to the address management and mapping module, and the address management and mapping module selects an available address from the address pool. The IPv4 address returned is returned to the domain name resolution management module, and the address binding relationship is established. The domain name resolution management module synthesizes the received "AAAA" record query response according to the returned address and returns the corresponding "A" query response to DNS4.

步骤S407:DNS4收到SDN控制器的回复后,将收到的查询应答回复给IPv4客户端。Step S407: After receiving the reply from the SDN controller, the DNS4 replies the received query response to the IPv4 client.

步骤S408:IPv4客户端收到DNS4的回复后,使用应答报文中的IPv4地址作为目的地址向IPv6服务器发送IPv4格式第一数据包。Step S408: After receiving the reply from DNS4, the IPv4 client sends the first data packet in IPv4 format to the IPv6 server using the IPv4 address in the reply message as the destination address.

步骤S409:SDN交换机收到IPv4客户端到IPv6服务器的通信IPv4格式第一数据包,发现其目的地址是一个IPv6映射地址,SDN控制器调用地址管理与映射模块,由于IPv6地址转换为IPv4地址时,无法把长地址唯一翻译成短地址,所以在地址转换表中查询源IPv4地址是否存在映射关系,如果没有,从IPv6地址池中选取一个空闲地址给源IPv4地址,网络层协议转换模块转换成一个IPv6地址作为新的源地址,并在地址转换表中建立映射关系,目的地址按照相应规则转换为IPv6地址。最后由网络层协议转换模块将IPv4格式第一数据包翻译成IPv6格式第一数据包发送给IPv6服务器。Step S409: The SDN switch receives the first data packet in IPv4 format from the IPv4 client to the IPv6 server, and finds that the destination address is an IPv6 mapped address, and the SDN controller invokes the address management and mapping module, because when the IPv6 address is converted to an IPv4 address , the long address cannot be uniquely translated into a short address, so check whether the source IPv4 address has a mapping relationship in the address translation table. If not, select a free address from the IPv6 address pool to the source IPv4 address, and the network layer protocol conversion module converts it into An IPv6 address is used as a new source address, and a mapping relationship is established in the address translation table, and the destination address is converted into an IPv6 address according to corresponding rules. Finally, the first data packet in IPv4 format is translated into the first data packet in IPv6 format by the network layer protocol conversion module and sent to the IPv6 server.

步骤S410:IPv6服务器收到IPv6格式第一数据包后,回复IPv6格式第二数据包至IPv4客户端。Step S410: After receiving the first data packet in IPv6 format, the IPv6 server replies the second data packet in IPv6 format to the IPv4 client.

步骤S411:SDN交换机收到IPv6服务器的回复第二数据包后,发现其目的地址是一个IPv4映射地址,于是SDN交换机调用网络层协议转换模块,按照地址转换表映射关系转换成IPv4地址,同时使用源IPv6地址在地址转换表中查询其对应的IPv4地址。Step S411: After the SDN switch receives the reply second data packet from the IPv6 server, it finds that its destination address is an IPv4 mapped address, so the SDN switch invokes the network layer protocol conversion module, converts it into an IPv4 address according to the mapping relationship of the address conversion table, and uses The source IPv6 address queries its corresponding IPv4 address in the address translation table.

步骤S412:最后由网络层协议转换模块将IPv6格式第二数据包翻译成IPv4格式第二数据包,将这个翻译转换完成后的IPv4格式第二数据包发送给IPv4客户端。Step S412: Finally, the network layer protocol conversion module translates the second data packet in IPv6 format into the second data packet in IPv4 format, and sends the second data packet in IPv4 format after translation and conversion to the IPv4 client.

实施例3Example 3

如图1所示,本实施例提供的一种基于SDN的IPv4与IPv6互联系统,包括:As shown in Figure 1, an SDN-based IPv4 and IPv6 interconnection system provided by this embodiment includes:

路由配置子模块101实现边界路由网关设备的配置;主要是网络管理员在网络运行过程中动态地对网络间的路由可达信息进行配置,主要配置指定与边缘交换机直连的边界路由网关设备所能够达到的网络,网络管理员根据网络间的实际拓扑的变化增删边界路由网关所能到达的网络,而配置的网络间的路由可达信息仅指网络层面上的逻辑信息;The routing configuration sub-module 101 realizes the configuration of the border routing gateway device; it is mainly that the network administrator dynamically configures the routing reachability information between the networks during the network operation process, and mainly configures the border routing gateway device that is directly connected to the edge switch. The network that can be reached, the network administrator adds or deletes the network that can be reached by the border routing gateway according to the change of the actual topology between the networks, and the routing reachability information between the configured networks only refers to the logical information at the network level;

路由探测子模块102实现边界路由网关设备探测;在网络管理员配置边界路由网关的网络可达信息时,控制器同时会主动探测该边界路由网关的存在性和其在SDN网络中的物理信息,该工作由边界路由探测模块完成,该模块会根据管理员指定的边界路由网关在SDN网络中IP地址信息构建一个探测消息,然后在所有边缘交换机上广播,若存在这样一个边界路由网关设备便会对该探测消息回应,控制器收到回应后登记注册该设备;The routing detection sub-module 102 realizes the detection of the border routing gateway device; when the network administrator configures the network reachability information of the border routing gateway, the controller will also actively detect the existence of the border routing gateway and its physical information in the SDN network, This work is completed by the border routing detection module, which constructs a probe message based on the IP address information of the border routing gateway specified by the administrator in the SDN network, and then broadcasts it on all edge switches. If there is such a border routing gateway device, it will Respond to the detection message, and the controller registers the device after receiving the response;

路由管理子模块103实现路由表等信息的维护管理;由配置子模块和路由探测子模块分别完成了配置与探测后,路由管理子模块将网络可达信息加入到路由转发表中进行维护管理,整个系统涉及IPv4和IPv6两种IP地址类型,建立两张路由转发表,对两种地址类型分开进行管理,之后根据路由转发表为跨网的数据包查询到相应的出口边界路由网关设备,控制器根据以出入口网关设备连接到的交换机为两个端点在SDN网络中选择一条路径下发转发规则,数据包通过该路径达到目的网络。The routing management sub-module 103 implements maintenance and management of information such as routing tables; after the configuration and detection are completed by the configuration sub-module and the routing detection sub-module, the routing management sub-module adds the network reachability information to the routing forwarding table for maintenance and management, The whole system involves two types of IP addresses, IPv4 and IPv6. Two routing forwarding tables are established to manage the two address types separately. Then, according to the routing forwarding table, the cross-network data packets are queried to the corresponding egress border routing gateway device, and the control The controller selects a path in the SDN network to issue forwarding rules according to the switch to which the ingress gateway device is connected as the two endpoints, and the data packet reaches the destination network through this path.

域名解析管理子模块104实现代理查询和结果转换,帮助客户端获得嵌入目的地址的地址;能够进行代理查询和结果转换,帮助客户端获得嵌入目的地址的地址,IPv6用户请求的资源服务器包括IPv4服务器和IPv6服务器。用户客户端访问IPv6服务器的将发出DNS“AAAA”记录查询请求,DNS64服务器会直接返回IPv6地址;访问IPv4服务器也会发出DNS“AAAA”记录查询请求,但DNS6服务器没有记录,需要先将“AAAA”记录的请求转换为“A”记录的请求转发到DNS4进行解析,然后添加指定前缀转换为“AAAA”记录的形式返回给用户客户端,用户客户端在发起DNS解析请求后将会收到IPv6地址,IPv6地址是由IPv4地址和分配给NAT64设备的IPv6前缀计算得到的,翻译行为遵循RFC6145标准中定义的IP/ICMP翻译算法。IPv4用户请求的资源服务器包括IPv4服务器和IPv6服务器。用户客户端访问IPv4服务器的将发出DNS“A”记录查询请求,DNS64服务器会直接返回IPv4地址;访问IPv6服务器也会发出DNS“A”记录查询请求,但DNS4服务器没有记录,需要先将“A”记录的请求转换为“AAAA”记录的请求转发到DNS6进行解析,然后请求网络层协议转换模块分配一个可用的IPv4地址,并在地址转换表中建立绑定关系,并将“AAAA”记录转换为“A”记录的形式返回给用户客户端,用户客户端在发起DNS解析请求后将会收到IPv4地址,IPv4地址是由通过NAT或NAPT的方式动态分配的,符合一般NAPT映射规则RFC3022。The domain name resolution management sub-module 104 realizes proxy query and result conversion, and helps the client to obtain the address of the embedded destination address; can perform proxy query and result conversion to help the client obtain the address of the embedded destination address, and the resource server requested by the IPv6 user includes an IPv4 server and IPv6 server. When the user client accesses the IPv6 server, it will send a DNS "AAAA" record query request, and the DNS64 server will directly return the IPv6 address; when accessing the IPv4 server, it will also send a DNS "AAAA" record query request, but the DNS6 server has no record. ” records are converted into “A” records and forwarded to DNS4 for parsing, and then the specified prefix is added and converted into “AAAA” records and returned to the user client. The user client will receive IPv6 after initiating a DNS resolution request. Address, IPv6 address is calculated from the IPv4 address and the IPv6 prefix assigned to the NAT64 device, and the translation behavior follows the IP/ICMP translation algorithm defined in the RFC6145 standard. The resource servers requested by IPv4 users include IPv4 servers and IPv6 servers. When the user client accesses the IPv4 server, it will send a DNS "A" record query request, and the DNS64 server will directly return the IPv4 address; when accessing the IPv6 server, it will also send a DNS "A" record query request, but the DNS4 server has no record. ” record request is converted into “AAAA” record request and forwarded to DNS6 for parsing, and then request the network layer protocol conversion module to assign an available IPv4 address, establish a binding relationship in the address translation table, and convert the “AAAA” record It is returned to the user client in the form of an "A" record. The user client will receive an IPv4 address after initiating a DNS resolution request. The IPv4 address is dynamically allocated by NAT or NAPT, which conforms to the general NAPT mapping rule RFC3022.

地址管理和映射子模块105实现DNS解析阶段中IPv4地址与IPv6地址的动态管理映射关系的建立;The address management and mapping submodule 105 realizes the establishment of the dynamic management mapping relationship between IPv4 addresses and IPv6 addresses in the DNS resolution stage;

网络层协议转换子模块106实现数据通信过程中IPv4格式数据包与IPv6格式数据包间的协议翻译和地址转换;主要负责IPv4和IPv6格式数据包头部的相互转换、翻译第四层的TCP、UDP和ICMP协议,转化过程中IP地址和端口都发生了改变。翻译行为遵循RFC6145标准中定义的IP/ICMP翻译算法。IPv4服务器的IPv4地址依据RFC6052中定义的算法被翻译IPv6地址,而IPv6主机的IPv6地址到IPv4地址之间的相互翻译则符合一般NAPT映射规则RFC3022。如果是ICMPv6/4报文,对报文中的Type、Code和Param字段进行翻译,得到ICMPv4/6报文,对内嵌的报文头部进行翻译,并计算ICMPv4/6报文校验和;如果是TCP、UDP报文,只需要直接计算TCP、UDP的校验和。The network layer protocol conversion sub-module 106 realizes the protocol translation and address conversion between the IPv4 format data packet and the IPv6 format data packet in the data communication process; it is mainly responsible for the mutual conversion of the IPv4 and IPv6 format data packet headers, and the translation of TCP, UDP and IPv6 in the fourth layer. ICMP protocol, the IP address and port are changed during the conversion process. The translation behavior follows the IP/ICMP translation algorithm defined in the RFC6145 standard. The IPv4 address of the IPv4 server is translated to the IPv6 address according to the algorithm defined in RFC6052, and the mutual translation between the IPv6 address of the IPv6 host and the IPv4 address conforms to the general NAPT mapping rule RFC3022. If it is an ICMPv6/4 packet, translate the Type, Code and Param fields in the packet to obtain an ICMPv4/6 packet, translate the embedded packet header, and calculate the ICMPv4/6 packet checksum ; If it is a TCP or UDP packet, you only need to directly calculate the checksum of TCP and UDP.

本发明利用SDN的技术手段,以软件的形式在控制面和数据面实现IPv4与IPv6的互联功能,这种方式不需要改动现有IPv4和IPv6的网络设备,不但降低了网络的复杂性而且配置简单方便。当不需要IPv4与IPv6互联的需求时,只需从控制面和数据面中移除IPv4与IPv6互联模块即可,对网络造成的影响也是微乎其微。The present invention utilizes the technical means of SDN to realize the interconnection function of IPv4 and IPv6 in the control plane and data plane in the form of software. This method does not need to change the existing IPv4 and IPv6 network equipment, which not only reduces the complexity of the network, but also reduces the configuration of the network. easy and convenient. When there is no need for IPv4 and IPv6 interconnection, it is only necessary to remove the IPv4 and IPv6 interconnection modules from the control plane and data plane, and the impact on the network is minimal.

上述实施例为本发明较佳的实施方式,但本发明的实施方式并不受上述实施例的限制,其他的任何未背离本发明的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本发明的保护范围之内。The above-mentioned embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited by the above-mentioned embodiments, and any other changes, modifications, substitutions, combinations, The simplification should be equivalent replacement manners, which are all included in the protection scope of the present invention.

Claims (7)

1. An SDN-based IPv4 and IPv6 interconnection method is characterized by comprising the following steps:
when an IPv6/IPv4 client accesses an IPv4/IPv6 network by using the domain name of an IPv4/IPv6 server, a domain name first record query request is initiated to an SDN controller, and the resource type of the first record query request is matched with the resource type of DNS6/DNS 4;
calling a domain name resolution management module through an SDN controller, if the domain name resolution management module cannot query the corresponding resource record, converting the first record query request into a second record query request, wherein the type of the second record query request is matched with the DNS4/DNS6 resource type, and sending the second record query request to a domain name server DNS4/DNS6 in an IPv4/IPv6 network;
when the DNS4/DNS6 receives the second record query request, the queried domain name is found to be the domain name in the network of the DNS, a second record query response carrying an IPv4/IPv6 address is generated through the DNS4/DNS6, and the second record query response is replied to the SDN controller;
translating the received second record query response into a corresponding first record query response through an SDN controller, translating the carried IPv4/IPv6 address into a corresponding IPv6/IPv4 address, and returning the corresponding IPv6/IPv4 address to the DNS6/DNS 4;
after receiving the reply of the SDN controller, the DNS6/DNS4 replies the received query response to the IPv6/IPv4 client;
sending a first data packet in an IPv6/IPv4 format to the SDN by using the received IPv6/IPv4 address as a destination address through the IPv6/IPv4 client;
calling a network layer protocol conversion module through the SDN, translating the first data packet in the IPv6/IPv4 format into the first data packet in the IPv4/IPv6 format, and sending the first data packet to the IPv4/IPv6 network;
after the IPv4/IPv6 network receives the first data packet, replying the second data packet in the IPv4/IPv6 format to the IPv6/IPv4 client;
calling a network layer protocol conversion module through the SDN, translating the second data packet in the IPv4/IPv6 format into an IPv6/IPv4 second data packet, and sending the second data packet to the IPv6/IPv4 network;
the IPv6/IPv4 client receives the second data packet.
2. The SDN-based IPv4 and IPv6 interworking method of claim 1, wherein the translation behavior complies with an IP/ICMP translation algorithm defined in RFC6145 standard; specifically, the IPv4 address is translated into the IPv6 address according to the algorithm defined in RFC 6052; the SDN calls a network layer protocol conversion module, and the IPv6/IPv4 format data packets are translated into IPv4/IPv6 format data packets, so that the general NAPT mapping rule RFC3022 is met.
3. The SDN-based IPv4 and IPv6 interworking method of claim 1, wherein the step of translating an IPv6 address into a corresponding IPv4 address is:
sending an address application request to an address management and mapping module through a domain name resolution management module;
selecting an available IPv4 address from the address pool through the address management and mapping module, returning the address to the domain name resolution management module, and establishing an address binding relationship;
and synthesizing the received second record query response into a corresponding first query response according to the returned address by the domain name resolution management module, and returning the corresponding first query response to the DNS 4.
4. The SDN-based IPv4 and IPv6 interconnection method of claim 1, wherein a network layer protocol conversion module is invoked by the SDN to translate IPv6 format packets into IPv4 format packets, and the specific steps for sending to the IPv4 network are as follows:
the SDN controller calls an address management and mapping module to inquire whether a source IPv6 address has a mapping relation in an address translation table or not after receiving a communication data packet from an IPv6 client to an IPv4 server through the SDN switch and finding that the destination address is an IPv4 mapping address;
if not, selecting an idle address from the IPv4 address pool to the source IPv6 address, converting the idle address into an IPv4 address serving as a new source address, establishing a mapping relation, and converting the destination address into an IPv4 address according to a corresponding rule;
and translating the IPv6 format data packet into an IPv4 format data packet by a network layer protocol conversion module, and sending the IPv4 format data packet to the IPv4 server.
5. The SDN-based IPv4 and IPv6 interconnection method of claim 1, wherein a network layer protocol conversion module is invoked by the SDN to translate IPv4 format packets into IPv6 format packets, and the specific steps for sending to the IPv6 network are as follows:
receiving a communication IPv4 format data packet from an IPv4 client to an IPv6 server through an SDN switch, finding that a destination address is an IPv6 mapping address, calling an address management and mapping module by the SDN controller, and inquiring whether a source IPv4 address has a mapping relation in an address translation table;
if not, selecting a free address from the IPv6 address pool to the source IPv4 address, converting the free address into an IPv6 address by the network layer protocol conversion module to serve as a new source address, establishing a mapping relation in an address conversion table, and converting the destination address into an IPv6 address according to a corresponding rule;
and translating the IPv4 format data packet into an IPv6 format data packet by a network layer protocol conversion module, and sending the IPv6 format data packet to the IPv6 server.
6. An IPv4 and IPv6 interconnection system based on an SDN is characterized by comprising an SDN controller, an SDN switch, a routing module and an interconnection module;
the routing module is installed in the SDN controller and used for network routing of communication data packets between networks; the system specifically comprises a route configuration submodule, a route detection submodule and a route management submodule;
the routing configuration submodule is used for configuring the border routing gateway equipment;
the route detection submodule is used for detecting the border route gateway equipment;
the routing management submodule is used for maintaining and managing information such as a routing table and the like;
the interconnection module is used for acquiring IP addresses, managing, mapping and converting IPv4 addresses and IPv6 addresses and translating protocols of IPv4 format data packets and IPv6 format data packets; the interconnection module specifically comprises a domain name resolution management submodule, a network layer protocol conversion submodule and an address management and mapping submodule;
the domain name resolution management submodule is arranged in the SDN controller and used for agent query and result conversion and helping a client to obtain an address embedded with a destination address;
the network layer protocol conversion submodule is installed in an SDN switch and is used for protocol translation and address conversion between an IPv4 data packet and an IPv6 data packet in the data communication process;
the address management and mapping submodule is installed in the SDN controller and used for dynamically managing the IPv4 address and the IPv6 address in the DNS analysis stage and establishing the mapping relation between the IPv4 address and the IPv6 address.
7. The SDN-based IPv4 and IPv6 interconnection system of claim 6, wherein the routing module, domain name resolution management submodule and address management and mapping submodule are installed and added to an SDN controller in a plug-in manner.
CN201910934293.3A 2019-09-29 2019-09-29 SDN-based IPv4 and IPv6 interconnection method and system Pending CN110691150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910934293.3A CN110691150A (en) 2019-09-29 2019-09-29 SDN-based IPv4 and IPv6 interconnection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910934293.3A CN110691150A (en) 2019-09-29 2019-09-29 SDN-based IPv4 and IPv6 interconnection method and system

Publications (1)

Publication Number Publication Date
CN110691150A true CN110691150A (en) 2020-01-14

Family

ID=69111033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910934293.3A Pending CN110691150A (en) 2019-09-29 2019-09-29 SDN-based IPv4 and IPv6 interconnection method and system

Country Status (1)

Country Link
CN (1) CN110691150A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491724A (en) * 2020-12-09 2021-03-12 福建农林大学 Management system and method of IPv4 and IPv6 based on SDN
CN113746929A (en) * 2021-09-08 2021-12-03 北京天融信网络安全技术有限公司 Access request processing method, device, equipment, system and storage medium
CN113923187A (en) * 2020-06-22 2022-01-11 中移(苏州)软件技术有限公司 A network access method and device, electronic device, and storage medium
CN114070817A (en) * 2020-07-29 2022-02-18 小鱼视讯(北京)科技有限公司 IPv4 and IPv6 bidirectional translation method and device applied to SDN network Overlay layer
CN114268669A (en) * 2022-03-01 2022-04-01 阿里云计算有限公司 Access processing method and system
CN115225606A (en) * 2022-07-11 2022-10-21 上海道客网络科技有限公司 Domain name access method and system of cross-network protocol of container cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153230A1 (en) * 2005-01-13 2006-07-13 Yokogawa Electric Corporation IPv6 / IPv4 translator
CN104734963A (en) * 2015-03-24 2015-06-24 电子科技大学 IPv4 and IPv6 network interconnection method based on SDN
CN106790759A (en) * 2016-12-29 2017-05-31 赛尔网络有限公司 IPv4/IPv6 converting systems and method based on SDN

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153230A1 (en) * 2005-01-13 2006-07-13 Yokogawa Electric Corporation IPv6 / IPv4 translator
CN104734963A (en) * 2015-03-24 2015-06-24 电子科技大学 IPv4 and IPv6 network interconnection method based on SDN
CN106790759A (en) * 2016-12-29 2017-05-31 赛尔网络有限公司 IPv4/IPv6 converting systems and method based on SDN

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张永涛: "基于SDN的IPv4与IPv6互联技术的研究", 《中国优秀硕士学位论文信息科技辑,2017年》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923187A (en) * 2020-06-22 2022-01-11 中移(苏州)软件技术有限公司 A network access method and device, electronic device, and storage medium
CN113923187B (en) * 2020-06-22 2024-04-09 中移(苏州)软件技术有限公司 Network access method and device, electronic equipment and storage medium
CN114070817A (en) * 2020-07-29 2022-02-18 小鱼视讯(北京)科技有限公司 IPv4 and IPv6 bidirectional translation method and device applied to SDN network Overlay layer
CN112491724A (en) * 2020-12-09 2021-03-12 福建农林大学 Management system and method of IPv4 and IPv6 based on SDN
CN112491724B (en) * 2020-12-09 2022-12-09 福建农林大学 SDN-based IPv4 and IPv6 management system and method
CN113746929A (en) * 2021-09-08 2021-12-03 北京天融信网络安全技术有限公司 Access request processing method, device, equipment, system and storage medium
CN113746929B (en) * 2021-09-08 2022-11-29 北京天融信网络安全技术有限公司 Access request processing method, device, equipment, system and storage medium
CN114268669A (en) * 2022-03-01 2022-04-01 阿里云计算有限公司 Access processing method and system
CN115225606A (en) * 2022-07-11 2022-10-21 上海道客网络科技有限公司 Domain name access method and system of cross-network protocol of container cloud platform
CN115225606B (en) * 2022-07-11 2023-09-08 上海道客网络科技有限公司 Domain name access method and system of cross-network protocol of container cloud platform

Similar Documents

Publication Publication Date Title
CN110691150A (en) SDN-based IPv4 and IPv6 interconnection method and system
JP4234482B2 (en) Dynamic DNS registration method, domain name resolution method, proxy server, and address translation device
JP4186446B2 (en) Address translation method
CN104734963B (en) A kind of IPv4 and IPv6 network interconnecting methods based on SDN
US8805977B2 (en) Method and system for address conflict resolution
TWI441493B (en) System and method for connection of hosts behind nats
US7639686B2 (en) Access network clusterhead for providing local mobility management of a roaming IPv4 node
US20040233916A1 (en) Apparatus and method for data communication on packet-switching network
US20060095585A1 (en) System and method for establishing communication between a client and a server in a heterogenous ip network
WO2010139194A1 (en) Method and device of host with ipv4 application for performing communication
CN103338151B (en) Public network client accesses the method and router of private network server
KR101501963B1 (en) Method and system for implementing interconnection between internet protocol version 4 network and new network
JP2003249942A (en) Apparatus for converting internet protocol address, home network system using the same and communication method thereof
JP2008301024A (en) Virtual network connection system and apparatus
EP2553909A1 (en) Method and apparatus for processing packets in ipv6 network
US7573903B2 (en) IPv6/IPv4 translator
BRPI0414361B1 (en) MAINTAINING THE EXEQUIBILITY OF A MOBILE NETWORK BASED ON TEMPORARY NAME IDENTIFIERS
CN101931658A (en) Method and device for communicating with IPv6 host with IPv4 application
CN111711705B (en) Method and device for realizing network connection based on bidirectional NAT (network Address translation) by proxy node
JP4572938B2 (en) Address translation method
CN103888554B (en) IPv4 and the domain name analytic method and system of IPv6 intercommunications
JPH11252172A (en) Packet generation method, information processing apparatus having the function, and recording medium recording packet generation program
CN111404821A (en) IPv4 and IPv6 interconnection system based on SDN
JP3646936B2 (en) IPv4 management method and management apparatus in IPv6 wireless LAN environment
CN1529480B (en) A method of IP network protocol conversion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200114