Method and device for ipv4 and ipv6 compatible processing

An IP address and ipv6 address technology, applied in the field of computer networks, can solve the problems of increasing storage occupancy, increasing operational complexity and difficulty, and reducing operational efficiency, reducing system storage space, realizing compatible processing, and improving system operation. The effect of efficiency

Active Publication Date: 2016-09-28
深圳市中兴通讯技术服务有限责任公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If an IP can be either IPv4 or IPv6, we store IPv4 and IPv6 in categories. For example, IPv4 uses integers, while IPv6 uses strings, which will increase the complexity and difficulty of operations, and the processing is also inconsistent; if Uniformly processing IPv4 and IPv6 as character strings will result in increased storage usage and reduced operational efficiency.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for ipv4 and ipv6 compatible processing
  • Method and device for ipv4 and ipv6 compatible processing
  • Method and device for ipv4 and ipv6 compatible processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0073] refer to figure 1 , figure 1 It is a schematic flowchart of the first embodiment of the method for compatible processing of IPv4 and IPv6 in the present invention. Such as figure 1 Shown, the method for IPv4 and IPv6 compatible processing of the present invention comprises:

[0074] Step S01, define the representation form of IP address as storage type and display type;

[0075] In daily applications, IPv6 addresses are usually represented by character strings; in subsequent operations, since operations such as IPv6 address comparison and IPv6 address range selection are involved, there are certain requirements for the storage format of IPv6 addresses. In ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for compatibility processing of IPv4 and IPv6. The method comprises the following steps of defining an IP address as a storage type or a display type, receiving IP address byte stream information and judging the version of the IP address, carrying out unique identification on an IPv4 address by using corresponding long integer data if the IP address is the IPv4 address, transforming expression forms of an IPv6 addresses from the display type to the storage type according to preset transformational rules if the IP address is the IPv6 address and carrying out valuation using the long integer data, building an IP mapping relational table according to the corresponding IP mapping relation of the preset IP addresses and the long integer data, and storing the IP mapping relation table. The invention further discloses a device for compatibility processing of the IPv4 and the IPv6. Through the method that unique long integers are used for expressing the IPv4 and the IPv6, the method and the device for compatibility processing of the IPv4 and the IPv6 have the advantages of achieving compatibility processing of the IPv4 and the IPv6, reducing system storage space and improving system operation efficiency.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a method and device for compatible processing of IPv4 and IPv6. Background technique [0002] At present, most of the IP (Internet Protocol, Internet Protocol) addresses we use are IPv4 (Version 4, the version number is 4). IPv4 addresses use 32-bit binary code, that is, 4 bytes, and each 8-bit is a group; In daily use, IPv4 addresses are expressed in dotted decimal notation, such as address: 10.40.183.7. The range of IPv4 address representation is: 0.0.0.0~255.255.255.255. [0003] Since IPv4 addresses can only use more than 4 billion IP addresses at most, which is far from meeting the needs of increasing global Internet users, the IPv6 (Version 6, version number 6) protocol was formulated. The length of an IPv6 address is four times the length of an IPv4 address. The IPv6 address uses 128-bit binary code, that is, 16 bytes. It is also more complicated to express tha...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/12
Inventor 唐兵兵范书田黄传冠丁柏刘万慧元绍华
Owner 深圳市中兴通讯技术服务有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products