IPv4 and IPv6 network interconnection method based on SDN

The invention discloses an IPv4 and IPv6 network interconnection method based on an SDN. A domain name resolution module, an address switch module, a translation module, a map module, a topology management module, and a temporary address pool management module are referred in the process of executing the method; the domain name resolution module is a core module and used for processing a DNS request; the address switch module switches an IPv4 address to an IPv6 address and is used for being called by the domain name resolution module; the translation module is used for mutually translating an IPv4 message and an IPv6 message and comprises an IP masthead, an ICMP message and the translation of TCP/UDP messages; the map module is used for maintaining a mapping table of domain names and IP address and storing the mapping relation between the domain names and an IPv4 address and an IPv6 address; the topology management module is used for maintaining global topology of the internet; the temporary address pool management module is used for distributing and recycling the IPv4 address temporarily. By means of the method, the problems of protocol switching and address mapping are solved, and the interconnection and interworking of the internet is achieved.