CN117834582B - Addressing method, system and message sending method for expanding network IP address - Google Patents

Addressing method, system and message sending method for expanding network IP address Download PDF

Info

Publication number
CN117834582B
CN117834582B CN202410031684.5A CN202410031684A CN117834582B CN 117834582 B CN117834582 B CN 117834582B CN 202410031684 A CN202410031684 A CN 202410031684A CN 117834582 B CN117834582 B CN 117834582B
Authority
CN
China
Prior art keywords
address
message
destination
gateway
new
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.)
Active
Application number
CN202410031684.5A
Other languages
Chinese (zh)
Other versions
CN117834582A (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.)
Shenzhen Kuwei Technology Co ltd
Original Assignee
Shenzhen Kuwei Technology Co ltd
Filing date
Publication date
Application filed by Shenzhen Kuwei Technology Co ltd filed Critical Shenzhen Kuwei Technology Co ltd
Priority to CN202410031684.5A priority Critical patent/CN117834582B/en
Publication of CN117834582A publication Critical patent/CN117834582A/en
Application granted granted Critical
Publication of CN117834582B publication Critical patent/CN117834582B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the technical field of network communication, and provides an addressing method, an addressing system and a message sending method for expanding a network IP address, which simultaneously solve the problem of compatibility between an IP address of a new protocol and the existing IPv4/IPv6 protocol, the problem of compatibility between the IP address of the new protocol and the existing network communication equipment, and the technical problem of reducing the storage space of a gateway and routing equipment. The method involves the steps of: s1, according to the 4 bytes IP address of the existing IPv4 protocol, the IP address is expanded to 8 bytes or other byte numbers, such as 5-15 bytes; s2, a Root Route Info node is newly added on the public network, and query service from the new IP address OctetIp to the IPv4/IPv6 address is provided. The invention can avoid upgrading a large number of routers and hosts and the like in the prior art, and can realize IP address expansion only by upgrading the gateway node and the host at the edge node.

Description

Addressing method, system and message sending method for expanding network IP address
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to an addressing method, a system, and a message sending method for extending a network IP address.
Background
The rapid development of the internet and the rapid progress of network technology are naturally not separated from the success of the core technology, namely the IPv4 protocol, but after the development process of decades, the exhaustion of IPv4 address resources and the inherent limitation thereof cannot meet the requirement of network development, and also bring about problems, such as the lack of the existing IPv4 address, service guarantee and the like.
For the IPv6 protocol, the address is extended to 16 bytes; the IPv6 device can solve the problem of insufficient IP addresses of the whole network; however, in the gradual implementation process of the IPv6 protocol, many devices do not support IPv6 at present; in addition, if the device is upgraded with IPv6, after the IP address is enlarged to 16 bytes, the consumed storage space is larger, the protocol is modified greatly, the realization cost is higher, and the function is more complex. And, some problems exist in the implementation manner of the existing IPv6 protocol:
Compatibility problem: IPv6 is incompatible with IPv4, and part of network equipment needs to be updated and upgraded to support new IPv6; for the gateway equipment and the terminal equipment, the IP address is changed to 16 bytes, so that the terminal and the gateway equipment are changed greatly;
transparent cost problem: transmitting the IPv6 message through an IPv4 network, and completely repackaging the newly added field of the IPv6 into the existing IPv4 message; a field of about 28 bytes is added; the modification cost of gateway equipment is relatively large, and the configuration is relatively complex;
modification cost problems of protocols and applications: the modification of DHCP protocol, various app applications, etc. corresponding to the use of IPv6 is relatively large.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an addressing method, an addressing system and a message sending method for expanding a network IP address, which solve the problem of compatibility between the IP address of a new protocol and the existing IPv4/IPv6 protocol, the problem of compatibility between the IP address of the new protocol and the existing network communication equipment, and the technical problem of reducing the storage space of a gateway and routing equipment.
In order to solve the technical problems, the invention provides the following technical scheme: an addressing method for extending a network IP address, the method comprising the steps of:
S1, expanding a new IP address to 8 bytes or other byte numbers according to a 4 byte IP address of the existing IPv4 protocol;
S2, a Root Route Info node is newly added on the public network, and query services from the new IP address OctetIp to the IPv4/IPv6 address and query services from the IPv4/IPv6 address to the new IP address are provided;
s3, after the source gateway node receives the message, the source gateway node inquires the latest IPv4 gateway address GATEWAYIP supporting the new protocol to the Root Route Info node according to the destination IP address DstOctetIp;
if the message is inquired, an IPv4 gateway address GATEWAYIP corresponding to the destination IP address OctectIp is obtained from the Root Route Info response message;
If the inquiry is not received, the destination IP address DstOctetIp is not reachable;
S4, the source gateway node stores the source IP address SrcOctetIp and the destination IP address DstOctetIp of the existing IP message into an Option field of the current IP message, changes the destination IP address DstOctetIp into a destination gateway GATEWAYIP, and sends out the message;
s5, unpacking the message reaching the destination gateway GATEWAYIP, and if the message is a new protocol message, directly forwarding the message; if the Option field contains a new IP address OctetIp, the source IP address SrcOctetIp and the destination IP address DstOctetIp are restored, a protocol message of the new IP address is constructed, and the protocol message is sent to the destination IP address DstOctetIp host.
Further, in step S3, the method specifically includes the following steps:
S31, the source node sends an IPv4 protocol message to the Root Route Info node, wherein the IPv4 protocol message comprises a source node address, new protocol message information and other relevant information;
S32, after the Root Route Info node receives the IPv4 protocol message, corresponding processing is carried out according to the information in the IPv4 protocol message;
If the Root node supports the new protocol, the Root Route Info node will find a nearest gateway address GATEWAYIP, which can forward the message to the destination IP address DstOctetIp;
S33, the Root Route Info node returns the gateway address GATEWAYIP contained in the response message to the source node;
S34, after receiving the response message, the source node extracts the address of the gateway address GATEWAYIP from the response message and forwards the message of the destination IP address DstOctetIp to the IPv4 gateway address GATEWAYIP.
Further, in step S3, for the Route not included in the Root Route Info node, the Root Route Info node provides the Sub Root Route Info node capable of querying the corresponding information for iteration to continue to query.
Further, in step S4, the specific process includes the following steps:
S41, acquiring an Option field of the current IP message, wherein the Option field is used for storing additional routing or transmission information;
s42, encoding the source IP address SrcOctetIp and the destination IP address DstOctetIp into binary data and inserting the binary data into an Option field;
S43, modifying the destination IP address into a destination gateway address GATEWAYIP.
Further, in step S1, according to the 4-byte IP address of the existing IPv4 protocol, the new IP address is extended to 8 bytes or other byte numbers, specifically including:
Based on the original IPv4 protocol message, establishing a mapping relation between an IP address of the original IPv4 protocol message and a new IP address OctetIp;
Based on the mapping relation, when the Route is queried for the IP address of the new protocol, the latest IPv4 gateway address GATEWAYIP is searched for through the newly added Root Route Info node, and the message is sent to the destination address corresponding to the new protocol through the latest IPv4 gateway address GATEWAYIP.
The technical scheme also provides a method for sending the public network message, which comprises the following steps:
newly adding a root route server for providing route service;
a message with a new IP address protocol needs to be sent to a destination host node at a source host node;
The source host node firstly sends a message to a source gateway, and the source gateway supports IPv4 and new IP address protocol dual stack;
The source gateway checks whether a route to the destination IP address exists, if so, the source gateway directly packages the route and sends the route to the destination gateway; if no route of the destination IP address exists, inquiring a gateway routing node closest to the destination from a root routing node;
If the source gateway reaches the destination gateway, the new protocol path is completely reachable through detection, and the new protocol path is directly forwarded to the destination gateway;
if the source gateway only supports the IPv4 protocol to the destination gateway, the source IP address and the destination IP address are encapsulated into the Option field of the message, the source IPv4 address of the message is modified to be the source gateway IP, the destination IPv4 address is the destination gateway IP, and then the source gateway IP and the destination IP address are sent to the destination gateway node;
after receiving the message, the destination gateway resolves and restores the real source IP address and the destination IP address from the Option field and sends the real source IP address and the destination IP address to the destination host node.
The technical scheme also provides a sending method of the local area network message, which comprises the following steps:
the DHCP and routing gateway server of the local area network supports and is compatible with the IPv4 protocol and the new IP address protocol dual stack;
The new host joins and requests the DHCP and IP address, if the new IP address protocol is supported, the new IP address, gateway and compatible IPv4 address and gateway are returned;
For the message sent by IPv4 to IPv4 protocol and the message sent by new IP address protocol to new IP address protocol, directly sending and forwarding according to the existing or new protocol format;
For the new IP address protocol host to send to the IPv4 host, the remote end carries out encapsulation and sending according to the allocated IPv4 address; for the IPv4 host to send to the host of the new IP address protocol, the conversion processing is carried out at the destination host side.
By means of the technical scheme, the invention provides an addressing method, an addressing system and a message sending method for expanding network IP addresses, which at least have the following beneficial effects:
1. The invention adopts new IP address definition, is compatible with the prior IPv4 and IPv6 addresses, can avoid upgrading a large number of routers and hosts, and can realize IP address expansion by only upgrading the edge gateway node and the edge host node.
2. The IP address defined by the IPv6 protocol is 16 bytes; the invention can reduce the memory space of the host and the router for processing the IP address by expanding the byte length of the IP address to 8 bytes or other byte numbers, such as 5-15 bytes, and avoiding directly expanding the IP address to 16 bytes.
3. And the aggregation management of the IP address segments is carried out through the newly added root routing server and the sub routing servers, so that the size of a routing table of the public network gateway node can be reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of the addressing method of the present invention;
FIG. 2 is a schematic diagram of an IPv4 protocol extension of the present invention;
FIG. 3 is an exemplary diagram of version of the IP protocol and IP address extensions of the present invention;
FIG. 4 is an exemplary diagram of a new message format of the present invention;
FIG. 5 is an exemplary diagram of a new message format of the present invention;
FIG. 6 is an exemplary diagram of a new message format of the present invention;
FIG. 7 is a schematic block diagram of an addressing system of the present invention;
FIG. 8 is a flow chart of a method for sending a public network message according to the present invention;
fig. 9 is a flow chart of a method for sending a local area network message according to the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. Therefore, the realization process of how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented.
The existing IP address is 4 bytes; as various networking devices and terminals increase, 4 bytes of IP addresses. An IP address of 4 bytes can support about 43 billion connected devices; under the current networking scene of all devices, gradually starting to be insufficient;
For the IPv6 protocol, the address is extended to 16 bytes; the IPv6 device can solve the problem of insufficient IP addresses of the whole network; however, in the gradual implementation process of the IPv6 protocol, many devices do not support IPv6 at present; the invention mainly solves the problem of how to expand the IP address under the condition that IPv6 is not popular yet.
1) The technical scheme adopted in the prior art is as follows: an IP message address expansion mode of IPv6 is used, the IP protocol number bit 6 is modified, and the IP address is expanded to 128 bits; for an IP message, both the source IP address and the destination IP address are 16 bytes;
2) All hosts and gateway devices support the 128 byte IPv6 protocol; all messages and routes are forwarded hop-by-hop through the new IPv6 address.
However, some problems exist in the implementation of the existing IPv6 protocol:
Compatibility problem: IPv6 is incompatible with IPv4, and part of network equipment needs to be updated and upgraded to support new IPv6; for the gateway equipment and the terminal equipment, the IP address is changed to 16 bytes, so that the terminal and the gateway equipment are changed greatly;
transparent cost problem: transmitting the IPv6 message through an IPv4 network, and completely repackaging the newly added field of the IPv6 into the existing IPv4 message; a field of about 28 bytes is added; the modification cost of gateway equipment is relatively large, and the configuration is relatively complex;
modification cost problems of protocols and applications: the modification of DHCP protocol, various app applications, etc. corresponding to the use of IPv6 is relatively large.
In summary, the present invention addresses the technical problem of the implementation based on the IPv6 protocol by describing how to extend the IP address in the case where IPv6 has not been popular through the following embodiments.
Example 1
Referring to fig. 1-6, the present embodiment proposes an addressing method for expanding a network IP address, which expands an IP address space by expanding the IP address length to 5-15 bytes; the protocol can be modified to 5 or other values through the extension of the protocol number field of the IP message (IPv 4 is 4, IPv6 is 6), so as to achieve the purpose of extending and supporting a new 5-15 byte IP address; for a new IP byte length message, in order to utilize the existing network transmission, carrying new IP address information of a source and a destination through an IP message option field; the invention provides a new Root Route Info node, provides a mapping service from an IPv4 address to a new IP address to promote protocol compatibility, and concretely, the addressing method comprises the following steps:
s1, according to the 4-byte IP address of the existing IPv4 protocol, the new IP address is expanded to 8 bytes or other byte numbers, such as 5-15 bytes, and the cost performance is most improved by 8 bytes in the embodiment.
According to the 4 byte IP address of the existing IPv4 protocol, the new IP address is expanded to 8 bytes or other byte numbers, which concretely comprises: based on the original IPv4 protocol message, establishing a mapping relation between an IP address of the original IPv4 protocol message and a new IP address OctetIp; based on the mapping relation, when the Route is queried for the IP address of the new protocol, the latest IPv4 gateway address GATEWAYIP is searched for through the newly added Root Route Info node, and the message is sent to the destination address corresponding to the new protocol through the latest IPv4 gateway address GATEWAYIP. As shown in fig. 2, from the original 4 bytes of IPv4, to 8 bytes; the mapping relation between the IP address of the original IPv4 protocol message and the new IP address OctetIp is established based on the original IPv4 protocol message, for example, the high byte is filled with 0 completely, and the IP address of the original IPv4 is added, namely the IP address of the new protocol. For the IP address of the new protocol, if the high byte is 0, all the IP addresses are removed, and the IP address is the original IPv4 IP address.
When the IP address of the new protocol is queried for the Route, the latest public network IPv4 gateway address GATEWAYIP is found by the newly added Root Route Info node, the message is sent to the destination address corresponding to the new protocol by the latest IPv4 gateway address GATEWAYIP, and the expansion of the IP address space is achieved by expanding the IP address length to 5-15 bytes, in this embodiment, it is assumed that the source node has an 8-byte source IP address SrcOctetIp, which needs to be sent to the destination IP address DstOctetIp, as shown in fig. 3, for IPv5 expansion: extending version of the IP protocol to 5; extending the IP address to 8 bytes; the rest is the same as before.
S2, a Root Route Info node is newly added on the public network, query services of information such as a new IP address OctetIp to an IPv4/IPv6 address and query services of information such as the IPv4/IPv6 address to the new IP address are provided, and the query services need to provide a database from the new IP address OctetIp to the IPv4 address and a database from the IPv4 to the IPv6 network; the new Root Route Info node is: a database is arranged at the newly added Root Route Info node, and a new IP address OctetIp, an original IPv4 network protocol and a new protocol corresponding to the new IP address OctetIp are stored, wherein the original IPv4 network protocol corresponds to the new protocol according to a mapping relation. The Root Route Info node refers to a Root node or a start node related to the routing information. In network routing, the root or originating node is typically the source of routing information from which other nodes determine the best routing path.
Whereas for a database providing new IP addresses OctetIp to IPv4 addresses from 8 bytes, and a database of IPv4 to IPv6 networks, then: other information related to the new IP address OctetIp and IPv4 address may also be included in the database, such as address type (private or public), subnet mask, broadcast address, etc. To create such a database, it is necessary to collect and store information about the IPv4 addresses in the database. A relational database (e.g., mySQL, postgreSQL, etc.) or a non-relational database (e.g., mongoDB, redis, etc.) may be used in this embodiment to store this information. Tables may be used in the database to store the relationship between the new IP address OctetIp and the IPv4 address, as well as other relevant information.
S3, after the source gateway node receives the message, the source gateway node inquires the latest IPv4 gateway address GATEWAYIP supporting the new protocol to the Root Route Info node according to the destination IP address DstOctetIp; according to the destination new IP address, query information such as the latest IPv4 gateway address GATEWAYIP supporting the new protocol, including but not limited to public information such as gateway GATEWAYIP, affiliated institution, geographic location, etc. corresponding to the new IP address,
If the information is queried, an IPv4 gateway address GATEWAYIP corresponding to the destination IP address OctectIp is obtained from a Root Route Info response message, and the response message carries the corresponding information such as the IPv4 gateway address GATEWAYIP;
if the query is not found, it is indicated that the destination IP address DstOctetIp is not reachable. By extending the protocol number field of the IP message (IPv 4 is 4, IPv6 is 6, the protocol can be modified to be 5 or other values), the new 5-15 byte IP address is extended and supported.
In step S3, after the source gateway node receives the message, the source gateway node queries the latest IPv4 gateway address GATEWAYIP supporting the new protocol according to the destination IP address DstOctetIp to the Root Route Info node, and this process involves multiple steps and protocol interactions, and therefore specifically includes the following steps:
S31, the source node sends an IPv4 protocol message to the Root Route Info node, wherein the IPv4 protocol message comprises a source node address, new protocol message information and other relevant information;
S32, after the Root Route Info node receives the IPv4 protocol message, corresponding processing is carried out according to the information in the IPv4 protocol message;
If the Root node supports the new protocol, the Root Route Info node will find a nearest gateway address GATEWAYIP, which can forward the message to the destination IP address DstOctetIp;
S33, the Root Route Info node returns the gateway address GATEWAYIP contained in the response message to the source node;
S34, after receiving the response message, the source node extracts the address of the gateway address GATEWAYIP from the response message and forwards the message of the destination IP address DstOctetIp to the IPv4 gateway address GATEWAYIP.
For the routes which are not contained in the Root Route Info node, the Root Route Info node provides Sub Root Route Info nodes which can inquire corresponding information so as to be used for iteration to continue to inquire; this means that when the routing information that the source node needs to query is not in the Root Route Info node, more detailed routing information can be acquired by interacting with the Sub Root Route Info node.
This iterative query approach may be used to build a more complete routing table to support more complex network topologies and routing strategies. By continually querying and updating the Sub Root Route Info nodes' information, the source node can build up a complete routing path and determine the optimal transmission path.
S4, the source gateway node stores the source IP address SrcOctetIp and the destination IP address DstOctetIp of the existing IP message into an Option field of the current IP message, changes the destination IP address DstOctetIp into a destination gateway GATEWAYIP, and sends out the message; for the destination gateway supporting IPv4, the message is packaged into an IPv4 message format; for the destination gateway only supporting IPv6, the message is packaged into an IPv6 message format; for the gateway address supporting the new protocol message from end to end, the new protocol message is directly used for forwarding; for a new IP byte length message, in order to utilize the existing network transmission, carrying new IP address information of a source and a destination through an IP message Option field, as shown in fig. 4,5 and 6, expanding the Option field of the original IPv4 message; for a gateway and a host which are not compatible with New IP, the option field is directly discarded; for the gateway and the host compatible with New IP, the message format is analyzed and converted into a New protocol for processing; the maximum IP message head is 60 bytes; option is a maximum of 40 bytes.
Gateway address GATEWAYIP refers to an IP address that connects two different networks, connects to a network, and directs the flow of network data. In a computer network, a gateway is a device (the gateway may be a router, a switch, etc.) that connects to different networks, and a gateway IP is an IP address for connecting to this gateway. The existence of the gateway IP facilitates the data transmission between different networks and enhances the transmission efficiency of the networks.
The source IP address SrcOctetIp of the existing IP packet is the IP address of the source point of the sender packet, and has a length of 32 bits, and in the IPv4 protocol, the source IP address identifies the source point of the sender packet and is used to identify the sender of the packet. In an IP message, the source IP address is stored in a header checksum field for checking the integrity of the message. When the receiving party receives the datagram, the header is checked and calculated, and if the result is different from the value of the header checksum, the received datagram is discarded. In addition, the source IP address SrcOctetIp may also be added in the option field of the IP header to provide additional functionality such as security handling mechanisms, routing records, time stamps, strict and relaxed source routing, etc. Thus, in step S4, the specific process comprises the steps of:
S41, acquiring an Option field of the current IP message, wherein the Option field is generally used for storing additional routing or transmission information;
s42, the source IP address SrcOctetIp and the destination IP address DstOctetIp are saved in the Option field. This can be achieved here by encoding the two values as binary data in a suitable way and inserting them into the Option field, the specific encoding and insertion depending on the protocol used and the IP message format.
S43, modifying the destination IP address into a gateway address GATEWAYIP. In an IP message, the destination IP address field is used to identify the IP address of the target device, which is modified to the gateway address GATEWAYIP to forward the message to the correct next hop.
S5, unpacking the message reaching the destination gateway GATEWAYIP, and if the message is a new protocol message, directly forwarding the message; if the Option field contains a new IP address OctetIp, the source IP address SrcOctetIp and the destination IP address DstOctetIp are restored, a protocol message of the new IP address is constructed, and the protocol message is sent to the destination IP address DstOctetIp host; therefore, a new Root Route node can be provided, and a mapping service from an IPv4 address to a new IP address is provided, so that protocol compatibility is improved.
When the packet arrives at the gateway node closest to the gateway address GATEWAYIP, an unpacking operation is performed, and the new IP address OctetIp is found in the Option field, at this time, the source IP address SrcOctetIp and the destination IP address DstOctetIp may be restored through the unpacking operation, where the unpacking operation generally involves decoding and parsing the Option field to extract the OctetIp value therein, and the specific unpacking process depends on the protocol and coding mode used. Once the source IP address SrcOctetIp and destination IP address DstOctetIp are restored, they may be sent to the destination IP address DstOctetIp. This may be accomplished by using these two values as destination addresses and sending the message to the destination node using the appropriate protocol and transmission means.
And (3) the same principle: for the response message, the corresponding gateway address GATEWAYIP is found through the Root Route Info node, and the response message is transmitted according to the same flow as the steps S1-S5; when the response message needs to be returned from the target node to the source node, the corresponding gateway address GATEWAYIP can be queried through the Root Route Info node, and the message is forwarded back to the source node by using the address as the next hop.
In the transmission process, the response message may also include an Option field, which includes key information such as the source IP address SrcOctetIp and the destination IP address DstOctetIp. In this way, in the forwarding process, each node can correctly process and forward the message according to the information, so as to ensure the accuracy and consistency of the data.
In the process of acquiring the new IP address of 8 bytes, the embodiment directly discards the optional field for the first gateway and the first host of the public network which are not compatible with the new IP address based on the new IP address; and for the second gateway and the second host of the public network compatible with the new IP address, analyzing the message format, converting the message format into a new protocol for processing, and generating a gateway supporting the IP protocol address of the source node.
In the process of generating the new IP address of 8 bytes, the mapping relation between the original IPv4 protocol message and the new IP address of 8 bytes is established based on the original IPv4 protocol message of the public network. In the process of setting the root routing information node, setting a database in the root routing information node, and storing a new IP address of 8 bytes and IPv4 to IPv6 network protocols; matching the network protocol stored in the information node setting database with the protocol of the source node, traversing the public network according to the matching result, and obtaining the gateway.
In the process of acquiring the gateway, acquiring a first gateway supporting the IP protocol address of the source node based on a matching result of the IP protocol address of the source node and a network protocol stored in an information node setting database; based on the first gateway, the second gateway closest to the sending destination address of the source node is obtained and used as a gateway supporting the IP protocol address of the source node.
In the process of generating a new IP address through the root routing information node, the embodiment packages the IP protocol address and the sending destination address into optional fields of the new IP address of 8 bytes corresponding to the matching result based on the new IP address of 8 bytes stored in the root routing information node, and sets the destination address of the generated new IP address as the address of the gateway.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in a method of implementing an embodiment described above may be implemented by a program to instruct related hardware, and thus, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Example two
The system of the addressing method is also provided in this embodiment, and since the addressing system provided in this embodiment corresponds to the addressing method provided in the foregoing embodiment, the implementation of the foregoing addressing method is also applicable to the addressing system provided in this embodiment, which is not described in detail in this embodiment.
Referring to fig. 7, a block diagram of an addressing system provided in this embodiment is shown, where the addressing system includes a new IP address defining module, a root node module, a query module, a packet repacking and packaging module, and a packet unpacking and restoring module, and specifically includes:
the new IP address definition module is used for defining the byte number of the new IP address, including 8 bytes or other byte numbers, and the new IP address message format; new IP address message formats compatible with the original IPv4/IPv6 messages; the Root node module is used for adding a Root Route Info node on the public network and providing query service from the new IP address OctetIp to the IPv4/IPv6 address and query service from the IPv4/IPv6 address to the new IP address.
The query module is used for querying the latest IPv4 gateway address GATEWAYIP supporting the new protocol according to the destination IP address DstOctetIp from the Root Route Info node after the source gateway node receives the message; if the message is inquired, an IPv4 gateway address GATEWAYIP corresponding to the destination IP address OctectIp is obtained from the Root Route Info response message; if the query is not found, it is indicated that the destination IP address DstOctetIp is not reachable.
The message packet-changing module is used for the source gateway node to store the source IP address SrcOctetIp and the destination IP address DstOctetIp of the existing IP message into the Option field of the current IP message, change the destination IP address DstOctetIp into the destination gateway GATEWAYIP, and send the message.
The message unpacking and restoring module is used for unpacking the message reaching the destination gateway GATEWAYIP; if the Option field contains a new IP address OctetIp, the source IP address SrcOctetIp and the destination IP address DstOctetIp are restored, a protocol message of the new IP address is constructed, and the protocol message is sent to the destination IP address DstOctetIp host.
The system can avoid directly expanding the IP address byte length to 16 bytes by expanding the IP address byte length to 8 bytes, and can reduce the memory space occupied by a PC and a router in IP processing.
In the system, for ARP protocol, the value of the corresponding protocol type field of IPv4 protocol is 0x0800; the new IP protocol can be supported by expanding the protocol type to other values;
for the DHCP protocol, an option field in the message can be expanded to support a new IP address protocol;
For DNS protocols, the query type field may be extended to support new IP address protocols;
For ICMP, TCP, UDP, FTP, TFTP, SMTP, HTTP, SSH, QUIC, etc., the new IP address may be adapted and compatible by modifying the IP address length to which the software corresponds.
It should be noted that, in the system provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the system and method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the system and method embodiments are detailed in the method embodiments, which are not repeated herein.
Example III
Referring to fig. 8, a flowchart of a method for sending a public network message according to the present embodiment is shown, where the method for sending a public network message according to the first embodiment is implemented by using the addressing method disclosed in the first embodiment, and includes the following steps:
A root route server for providing route service is newly added, and as a technical extension, the embodiment can also provide a plurality of sub route servers to provide the same service for sharing the burden of the root route; the information of the sub-route is synchronized with the main route server and provides a certain timeout time.
A message with a new IP address protocol needs to be sent to a destination host node at a source host node;
The source host node firstly sends a message to a source gateway, and the source gateway supports IPv4 and new IP address protocol dual stack;
The source gateway checks whether a route to the destination IP address exists, if so, the source gateway directly packages the route and sends the route to the destination gateway; if no route of the destination IP address exists, inquiring a gateway routing node closest to the destination from a root routing node;
If the source gateway reaches the destination gateway, the new protocol path is completely reachable through detection, and the new protocol path is directly forwarded to the destination gateway;
if the source gateway only supports the IPv4 protocol to the destination gateway, the source IP address and the destination IP address are encapsulated into the Option field of the message, the source IPv4 address of the message is modified to be the source gateway IP, the destination IPv4 address is the destination gateway IP, and then the source gateway IP and the destination IP address are sent to the destination gateway node;
after receiving the message, the destination gateway resolves and restores the real source IP address and the destination IP address from the Option field and sends the real source IP address and the destination IP address to the destination host node.
In the embodiment, for the gateway and the host which are incompatible NewIP, the option field is directly discarded, and for the gateway and the host which are compatible NewIP, the message format is analyzed and converted into a new protocol for processing; the maximum IP message head is 60 bytes; the option is 40 bytes at maximum.
The embodiment supports a new message format by modifying the protocol field of the IP message; by enlarging the length of the IP address, the IP address space is enlarged; the method and the device have the advantages that the information in the new message format is carried through the option field of the IP message, so that the method and the device are compatible with the existing protocol and equipment.
Example IV
Referring to fig. 9, a flowchart of a method for sending a local area network message according to the present embodiment is shown, where the method for sending a local area network message according to the first embodiment is implemented by using the addressing method disclosed in the first embodiment, and includes the following steps:
The DHCP and routing gateway server of the local area network supports and is compatible with the dual stack of the IPv4 protocol and the new IP address protocol, and particularly, the local area network is newly added with the DHCP and gateway server supporting the new IP protocol, and is compatible with and supports the DHCP function and the routing forwarding function of the IPv4 protocol, the IPv6 protocol and the new 8-byte IP address protocol.
The new host joins and requests the DHCP and IP address, if the new IP address protocol is supported, the new IP address, gateway and compatible IPv4 address and gateway are returned, concretely: if only IPv4 is supported, returning IPv4 IP and gateway address; if IPv6 is supported, returning to the gateway address of IPv 6; if the IP address (8 bytes or 5-15 bytes) of the new protocol is supported, returning the IP address and the gateway address of the new protocol;
for the message that IPv4 sends to IPv4 protocol and the message that new IP address protocol sends to new IP address protocol, sending and forwarding are directly performed according to the existing or new protocol format, and the example IPv6 is: and for the messages sent by the IPv4 to the IPv4 and the messages sent by the IPv6 to the IPv6 address, forwarding the messages directly according to the existing or new message format.
For the new IP address protocol host to send to the IPv4 host, the remote end carries out encapsulation and sending according to the allocated IPv4 address; for the host with the IPv4 host sent to the new IP address protocol, the conversion processing is performed at the destination host side, namely: for the host of the new protocol to send to the IPv4 host, the host side performs encapsulation and sending according to the allocated IPv4 address; for the IPv4 host to send to the host of the new IP address protocol, the conversion processing is carried out at the destination host side.
The embodiment realizes the expansion of the IP address space by expanding the IP address length to 5-15 bytes; the protocol can be modified to 5 or other values through the extension of the protocol number field of the IP message (IPv 4 is 4, IPv6 is 6), so as to achieve the purpose of extending and supporting a new 5-15 byte IP address; for a new IP byte length message, in order to utilize the existing network transmission, carrying new IP address information of a source and a destination through an IP message option field; the invention provides a new Root Route Info node, and provides a mapping service from an IPv4 address to a new IP address so as to improve protocol compatibility.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For each of the above embodiments, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description of the method embodiment for relevant points.
The foregoing embodiments have been presented in a detail description of the invention, and are presented herein with a particular application to the understanding of the principles and embodiments of the invention, the foregoing embodiments being merely intended to facilitate an understanding of the method of the invention and its core concepts; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. A method for addressing an extended network IP address, the method comprising the steps of:
S1, expanding a new IP address to 8 bytes or other byte numbers according to a 4 byte IP address of the existing IPv4 protocol, wherein a mapping relation between the IP address of the original IPv4 protocol message and the new IP address OctetIp is established based on the original IPv4 protocol message;
Based on the mapping relation, when the Route is queried for the IP address of the new protocol, the latest IPv4 gateway address GATEWAYIP is searched through the newly added Root Route Info node, and the message is sent to the destination address corresponding to the new protocol through the latest IPv4 gateway address GATEWAYIP;
s2, adding a Root RouteInfo node on the public network to provide query service from the new IP address OctetIp to the IPv4/IPv6 address and query service from the IPv4/IPv6 address to the new IP address OctetIp;
s3, after the source gateway node receives the message, the source gateway node inquires the latest IPv4 gateway address GATEWAYIP supporting the new protocol to the Root Route Info node according to the destination IP address DstOctetIp;
if the message is inquired, an IPv4 gateway address GATEWAYIP corresponding to the destination IP address OctectIp is obtained from the Root Route Info response message;
If the inquiry is not received, the destination IP address DstOctetIp is not reachable;
In step S3, the method specifically includes the following steps:
S31, the source node sends an IPv4 protocol message to the Root Route Info node, wherein the IPv4 protocol message comprises a source node address, new protocol message information and other relevant information;
S32, after the Root Route Info node receives the IPv4 protocol message, corresponding processing is carried out according to the information in the IPv4 protocol message;
If the Root node supports the new protocol, the Root Route Info node will find a nearest gateway address GATEWAYIP, which can forward the message to the destination IP address DstOctetIp;
S33, the Root Route Info node returns the gateway address GATEWAYIP contained in the response message to the source node;
S34, after receiving the response message, the source node extracts the address of the gateway address GATEWAYIP from the response message and forwards the message of the destination IP address DstOctetIp to the IPv4 gateway address GATEWAYIP;
S4, the source gateway node stores the source IP address SrcOctetIp and the destination IP address DstOctetIp of the existing IP message into an Option field of the current IP message, changes the destination IP address DstOctetIp into a destination gateway GATEWAYIP, and sends out the message;
s5, unpacking the message reaching the destination gateway GATEWAYIP, and if the message is a new protocol message, directly forwarding the message; if the Option field contains a new IP address OctetIp, the source IP address SrcOctetIp and the destination IP address DstOctetIp are restored, a protocol message of the new IP address is constructed, and the protocol message is sent to the destination IP address DstOctetIp host.
2. The addressing method of claim 1, wherein in step S3, for routes not included in the Root Route Info node, the Root Route Info node provides Sub Root Route Info nodes capable of querying the corresponding information for iterative continued query.
3. The addressing method according to claim 1, characterized in that in step S4, the specific procedure comprises the steps of:
S41, acquiring an Option field of the current IP message, wherein the Option field is used for storing additional routing or transmission information;
s42, encoding the source IP address SrcOctetIp and the destination IP address DstOctetIp into binary data and inserting the binary data into an Option field;
S43, modifying the destination IP address into a destination gateway address GATEWAYIP.
4. A system for implementing the addressing method of claims 1-3, characterized by comprising:
the new IP address definition module is used for defining the byte number of the new IP address, including 8 bytes or other byte numbers and a new IP address message format; new IP address message formats compatible with the original IPv4/IPv6 messages;
The Root node module is used for adding a Root Route Info node on the public network, and providing query service from the new IP address OctetIp to the IPv4/IPv6 address and query service from the IPv4/IPv6 address to the new IP address;
The query module is configured to query, after the source gateway node receives the message, the Root Route Info node for a latest IPv4 gateway address GATEWAYIP supporting a new protocol according to the destination IP address DstOctetIp;
if the message is inquired, an IPv4 gateway address GATEWAYIP corresponding to the destination IP address OctectIp is obtained from the Root Route Info response message;
If the inquiry is not received, the destination IP address DstOctetIp is not reachable;
The message encapsulation module is used for storing a source IP address SrcOctetIp and a destination IP address DstOctetIp of the existing IP message into an Option field of the current IP message by the source gateway node, changing the destination IP address DstOctetIp into a destination gateway GATEWAYIP and sending the message;
The message unpacking and restoring module is used for unpacking the message reaching the destination gateway GATEWAYIP; if the Option field contains a new IP address OctetIp, the source IP address SrcOctetIp and the destination IP address DstOctetIp are restored, a protocol message of the new IP address is constructed, and the protocol message is sent to the destination IP address DstOctetIp host.
5. A message sending method implemented based on the addressing method of claims 1-3, characterized in that the addressing method of claims 1-3 is used to implement a sending method of public network or local area network messages.
6. The method for sending a packet according to claim 5, wherein the sending of the public network packet comprises the following steps:
newly adding a root route server for providing route service;
a message with a new IP address protocol needs to be sent to a destination host node at a source host node;
The source host node firstly sends a message to a source gateway, and the source gateway supports IPv4 and new IP address protocol dual stack;
The source gateway checks whether a route to the destination IP address exists, if so, the source gateway directly packages the route and sends the route to the destination gateway; if no route of the destination IP address exists, inquiring a gateway routing node closest to the destination from a root routing node;
If the source gateway reaches the destination gateway, the new protocol path is completely reachable through detection, and the new protocol path is directly forwarded to the destination gateway;
if the source gateway only supports the IPv4 protocol to the destination gateway, the source IP address and the destination IP address are encapsulated into the Option field of the message, the source IPv4 address of the message is modified to be the source gateway IP, the destination IPv4 address is the destination gateway IP, and then the source gateway IP and the destination IP address are sent to the destination gateway node;
after receiving the message, the destination gateway resolves and restores the real source IP address and the destination IP address from the Option field and sends the real source IP address and the destination IP address to the destination host node.
7. The method for sending a message according to claim 5, wherein the sending of the local area network message comprises the following steps:
the DHCP and routing gateway server of the local area network supports and is compatible with the IPv4 protocol and the new IP address protocol dual stack;
The new host joins and requests the DHCP and IP address, if the new IP address protocol is supported, the new IP address, gateway and compatible IPv4 address and gateway are returned;
for the message sent by IPv4 to IPv4 protocol and the message sent by new IP address protocol to new IP address protocol, directly sending and forwarding according to the existing or new protocol format;
For the new IP address protocol host to send to the IPv4 host, the remote end carries out encapsulation and sending according to the allocated IPv4 address; for the IPv4 host to send to the host of the new IP address protocol, the conversion processing is carried out at the destination host side.
CN202410031684.5A 2024-01-09 Addressing method, system and message sending method for expanding network IP address Active CN117834582B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410031684.5A CN117834582B (en) 2024-01-09 Addressing method, system and message sending method for expanding network IP address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410031684.5A CN117834582B (en) 2024-01-09 Addressing method, system and message sending method for expanding network IP address

Publications (2)

Publication Number Publication Date
CN117834582A CN117834582A (en) 2024-04-05
CN117834582B true CN117834582B (en) 2024-07-16

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127679A (en) * 2006-08-18 2008-02-20 冼剑光 Method for Internet address expansion
CN102404289A (en) * 2010-09-15 2012-04-04 武汉邮电科学研究院 Method for connecting wireless sensing network into internet protocol (IP) v4 network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127679A (en) * 2006-08-18 2008-02-20 冼剑光 Method for Internet address expansion
CN102404289A (en) * 2010-09-15 2012-04-04 武汉邮电科学研究院 Method for connecting wireless sensing network into internet protocol (IP) v4 network

Similar Documents

Publication Publication Date Title
US11736398B2 (en) Stateless protocol translation
JP4130962B2 (en) System and method for using a domain name to route data sent to a destination on a network
US8238336B2 (en) Method for forwarding data packet, system, and device
US20070147421A1 (en) ISATAP router for tunneling packets and method thereof
US20030193965A1 (en) Packet communication method and apparatus and a recording medium storing a packet communication program
US20020181500A1 (en) Packet communication method and apparatus and a recording medium storing a packet communication program
WO2011160367A1 (en) Forwarding method and device for network address translation
CN113726907B (en) Routing processing method, network element equipment, device and readable storage medium
US9819641B2 (en) Method of and a processing device handling a protocol address in a network
US20080240132A1 (en) Teredo connectivity between clients behind symmetric NATs
US7764686B1 (en) Migration to IPv6 using combination of globally significant and locally significant IPv4 addresses
US7356031B1 (en) Inter-v4 realm routing
CN117834582B (en) Addressing method, system and message sending method for expanding network IP address
CN102238084B (en) Method and device for forwarding cross-domain message, route equipment and client
CN107040616B (en) Conversion method and message receiving and transmitting method for TCP/DN/IP network compatible with TCP/IP network
CN117834582A (en) Addressing method, system and message sending method for expanding network IP address
WO2022221445A1 (en) Asymmetric addressing for limited domains and internet
Isa et al. Design and Comparison Migration Between IPv4 and IPv6 Transition Techniques
Shang et al. IVI-based locator/ID separation architecture for IPv4/IPv6 transition
CN115428415A (en) System and method for forwarding packets in a hierarchical network architecture using variable length addresses
KR100711163B1 (en) Address mapping apparatus and the method of the data packet repeater
Chimiak et al. Enhanced IP: IPv4 with 64-bit addresses
Isizoh et al. ANALYSES OF THE MIGRATION TO INTERNET PROTOCOL VERSION SIX (IPv6)
KR101522931B1 (en) 6LoWPAN gateway for supporting ethernet frame and communication method of 6LoWPAN gateway
KR100679014B1 (en) Method for communicating among hosts under mobile ad-hoc network

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant