Check patentability & draft patents in minutes with Patsnap Eureka AI!

Internet protocol version 4 (IPv4) address and port section pool maintenance method facing IPv6 based on hash algorithm

A hash algorithm, ipv4 address technology, applied in the Internet field, can solve problems such as maintenance of unfavorable port segment information, errors, and reduction of system query efficiency, and achieve efficient and accurate maintenance and avoid collisions.

Active Publication Date: 2015-05-20
TSINGHUA UNIV
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, after the port section mechanism is introduced, this method has obvious disadvantages
A large amount of port segment information must be stored under each IP address index. Only using IP addresses as indexes will greatly reduce the query efficiency of the system, which is not conducive to the system's maintenance of port segment information.
At the same time, due to the inability to provide sufficient index information, an error occurs when the system operates the port segment

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
  • Internet protocol version 4 (IPv4) address and port section pool maintenance method facing IPv6 based on hash algorithm
  • Internet protocol version 4 (IPv4) address and port section pool maintenance method facing IPv6 based on hash algorithm
  • Internet protocol version 4 (IPv4) address and port section pool maintenance method facing IPv6 based on hash algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The implementation of the present invention will be described in detail below in conjunction with the drawings and examples.

[0021] The present invention first defines a new hash function, which accepts the port segment mask length, IPv4 address, and port segment index as input parameters respectively, and according to figure 2 The structure shown combines it. Get a 64-bit integer, and take the modulo of the hash table size n as the result. The output of the hash function is an integer in [0,n-1], where n is the size of the hash table.

[0022] This function can be expressed as follows:

[0023] H(IP,L,IDX)=(L×2 L+32 +IP×2 L +IDX×2 L-16 )modn

[0024] Among them, IP represents an IPv4 address, and 0≤IP32 , L indicates the length of the port segment mask, that is, the number of 1s in the binary representation of the port segment mask, 0≤L≤16, IDX indicates the port segment index, 0≤IDX16 , n is the size of the hash table; in order to avoid conflicts, n usually t...

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 relates to an internet protocol version 4 (IPv4) address and port section pool maintenance method facing IPv6 based on the hash algorithm. According to the method, a new hash function is defined first, the hash function respectively accepts the port section mask length, the IPv4 address and the port section index as input parameters to carry out hash mapping, then a 64-bit integer is obtained, the modulus of the size n of a hash table is calculated to obtain the result, an integer of [0, n-1] is output, and the IPv4 port section address pool maintenance is achieved. Through the ingenious design of the hash process, not only does the method achieve that the address and the port section information of the IPv4 are both used as indexes to carry out the hash mapping, but also the algorithm can ensure that continuous port sections in the same IPv4 address are still mapped to a continuous result and the mapped result corresponding to the continuous IPv4 address is also kept continuous.

Description

technical field [0001] The invention belongs to the technical field of the Internet, in particular to an IPv4 address and port segment pool maintenance method for IPv6 transition based on a hash algorithm. Background technique [0002] With the rapid development of the Internet in recent years, the scale of IPv4 networks continues to expand, and IPv4 address resources are increasingly scarce. At present, the Internet is in the transition period from IPv4 to IPv6, but due to the mutual incompatibility between IPv6 and IPv4, it is difficult to complete the overall transition from IPv4 to IPv6 in the short term. In order to cope with the scarcity of IPv4 addresses, the transition technology needs to improve the allocation mechanism of IPv4 addresses so that multiple users can share the same IPv4 address. [0003] An effective solution is to implement IPv4 address sharing by dividing port segments. A complete IPv4 address has 65535 transport layer ports, except for the port se...

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 TSINGHUA UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More