CN111988441A - Networking access method and system based on IPv6 - Google Patents
Networking access method and system based on IPv6 Download PDFInfo
- Publication number
- CN111988441A CN111988441A CN202010721219.6A CN202010721219A CN111988441A CN 111988441 A CN111988441 A CN 111988441A CN 202010721219 A CN202010721219 A CN 202010721219A CN 111988441 A CN111988441 A CN 111988441A
- Authority
- CN
- China
- Prior art keywords
- address
- gateway
- network
- operator
- query
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/659—Internet protocol version 6 [IPv6] addresses
Abstract
The invention discloses a networking access method and a networking access system based on IPv6, wherein the method comprises the following steps: initiating a first query specifying a domain name to a locally deployed recursive DNS server, the first query comprising an operator network selected for access; obtaining a first IP address returned by the recursive DNS server, wherein the first IP address is a corresponding IP address determined by the recursive DNS server in response to the operator network selection of the first query; and selecting a second IP address and a gateway address which are matched according to the operator network to which the first IP address belongs, and packaging a message by using the second IP address to send the message to a corresponding gateway. The invention can freely select the network access mode according to the user requirement, has strong flexibility and better internet experience.
Description
Technical Field
The invention relates to the technical field of computer network communication, in particular to a networking access method and a networking access system based on IPv 6.
Background
When a private network such as a campus network and an enterprise network is accessed to the internet, a plurality of operator networks are accessed to the outside in order to meet different internet access requirements of users in the private network or the requirement of line backup. Taking campus network as an example, not only education network but also network of mobile, communication, telecommunication and other operators may be accessed at the same time. There is a problem in that when accessing different network accesses, it is necessary to use the IP address corresponding to the network-allocated address range as a source address to enable the transmission. In the IPv4 (Internet Protocol Version 4, Version 4 of the Internet Protocol), a Network Address Translation (NAT) mechanism is generally used, and specifically, private IP addresses are allocated to hosts within a private Network, and when a packet arrives at a gateway responsible for NAT functions, NAT software converts corresponding private IP addresses into public IP addresses for accessing a Network of a corresponding operator.
IPv6 (Internet Protocol Version 6, Version 6 of The Internet Protocol) is a next-generation IP Protocol that replaces IPv4, and is designed by The IETF (The Internet Engineering Task Force) initiative. The address length of the IPv6 is 128 bits, so that the IPv6 has massive address resources, has the characteristics of high speed, high efficiency, safety and controllability, and greatly expands the number of addresses. As described above, due to the lack of address resources of IPv4, when solving the multi-egress network access problem based on IPv4, the NAT mechanism can only be adopted in a limited manner. However, the access is realized by solely relying on NAT, which imposes a burden on the gateway device and may also reduce the access speed. On the premise that IPv6 provides a large amount of address resources, a technical solution is urgently needed to be proposed, which can improve the operation mechanism of the existing network by using the advantages of IPv6, so as to improve the access efficiency.
Disclosure of Invention
The invention aims to provide a networking access method and a networking access system based on IPv6, which solve the technical problems of low access efficiency and insufficient flexibility when a plurality of operator networks are accessed in the private network networking in the prior art.
In order to solve the technical problem, the networking access method based on the IPv6 comprises the following steps:
a user host initiates a first query of a specified domain name to a locally deployed recursive DNS server, wherein the first query comprises an operator network selected to be accessed;
obtaining a first IP address returned by the recursive DNS server, wherein the first IP address is a corresponding access IP address determined by the recursive DNS server in response to the operator network selection of the first query;
and determining a matched second IP address and a gateway address according to the operator network to which the first IP address belongs, packaging the first message by using the second IP address, and sending the first message to a corresponding gateway.
As a further improvement of the above-mentioned networking access method based on IPv6 of the present invention, before accessing the network, the subscriber host is allocated with at least an IPv6 address of a home first operator and an IPv6 address of a home second operator.
As a further improvement of the above-mentioned networking access method based on IPv6 of the present invention, when the user host accesses different operator networks, the user host accesses the first operator network through the first gateway, and accesses the second operator network through the second gateway.
As a further improvement of the above-mentioned networking access method based on IPv6 of the present invention, the corresponding operator network is determined by the corresponding address field of the first IP address, and the corresponding gateway and the second IP address as the source address are determined.
As a further improvement of the above-mentioned networking access method based on IPv6 of the present invention, when the subscriber host receives a redirection message corresponding to the gateway, the subscriber host forwards the corresponding first packet to the redirected gateway, and modifies the target cache of the gateway to which the corresponding address field belongs.
In order to solve the above technical problem, the present invention provides a networking access system based on IPv6, including:
the system comprises a query unit, a query unit and a query unit, wherein the query unit is used for a user host to initiate a first query of a specified domain name to a locally deployed recursive DNS server, and the first query comprises an operator network selected to be accessed;
an obtaining unit, configured to obtain a first IP address returned by the recursive DNS server, where the first IP address is a corresponding access IP address selected and determined by the recursive DNS server in response to the first query;
and the sending unit is used for determining a matched second IP address and gateway address according to the operator network to which the first IP address belongs, packaging the first message by using the second IP address and sending the first message to a corresponding gateway.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, before accessing the network, the subscriber host is allocated with at least an IPv6 address of a home first operator and an IPv6 address of a home second operator.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, when accessing different operator networks, the user host accesses the first operator network through the first gateway and accesses the second operator network through the second gateway.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, the sending unit determines the corresponding operator network through the corresponding address field of the first IP address, and determines the corresponding gateway and the second IP address as the source address.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, when the subscriber host receives a redirection message corresponding to the gateway, the sending unit forwards the corresponding first packet to the redirected gateway, and modifies the target cache of the gateway to which the corresponding address field belongs.
Compared with the prior art, the user host can realize flexible access under the condition of network access of multiple operators through the cooperation with the recursive DNS server and the forwarding mechanism of the gateway corresponding to different operator networks. The invention can freely select the network access mode according to the user requirement, has strong flexibility and better internet experience.
Other features and advantages of the present invention will become more apparent from the detailed description of the embodiments of the present invention when taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a networking access method based on IPv6 in an embodiment of the present invention.
Fig. 2 is a schematic diagram of a networking access structure based on IPv6 in an embodiment of the present invention.
Fig. 3 is a schematic diagram of a networking access system based on IPv6 in an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to embodiments shown in the drawings. These embodiments are not intended to limit the present invention, and variations in structure, method, or function that may be affected by one of ordinary skill in the art based on these embodiments are within the scope of the present invention.
It should be noted that the same reference numbers or symbols may be used in different embodiments, but these do not represent an absolute relationship in structure or function. Further, the references to "first" and "second" in the embodiments do not represent an absolutely distinct relationship in structure or function, and these are merely for convenience of description.
The IPv6 is a core technology of the next generation internet, and has two basic changes relative to IPv4, on one hand, the address length is upgraded to 128bit address length from 32bit address length, so that the address space is greatly expanded, and an elastic play space is provided for planning and deploying the network, on the other hand, an IPv6 expansion message header mechanism is added, so that the programmability is improved, and the expansion support capability is provided for SRv6, BIERv6 and the like. In the embodiment of the invention, the latitude of the IPv6 address is fully utilized to allocate a plurality of IP addresses for the user host in the private network, and different IP addresses can be generated from prefix network segments allocated by different operator networks, namely in the address range allocated by the operator networks. The user host with a plurality of configurable IP addresses can adopt different IP addresses as source addresses to carry out message encapsulation according to different requirements, thereby realizing the access of different operator networks.
As shown in fig. 1, a flowchart of a networking access method based on IPv6 in an embodiment of the present invention is shown. The networking access method based on the IPv6 specifically comprises the following steps:
step S1, the user host initiates a first query specifying a domain name to the locally deployed recursive DNS server, where the first query includes an operator network selected for access. Specifically, as shown in fig. 2, for the user host 30 within the private network, a web server or the like in the first operator network 11, the second operator network 12, or the third operator network 13 can be accessed as needed. Before the corresponding web server needs to be accessed, domain name query is often started, so that a user host firstly queries whether an access IP address of the web server corresponding to the domain name exists in a local cache when the user host needs to access the web server corresponding to the domain name, preferably, the local cache may have access IP addresses corresponding to web servers in different operator networks under the same domain name, and the user host can select according to the actual access requirement of the operator network, for example, the user host selects the operator network with sufficient tariff. Further, if the subscriber host does not find a corresponding domain name match in the local cache, a query needs to be initiated to recursive DNS server 40. The recursive DNS server 40 may be a DNS server deployed in a private network, and is configured to make a corresponding domain name resolution response for a user host in the private network, where the process specifically starts to query from a local cache of the recursive DNS server, and if there is no corresponding resource record, initiates a query to an external authoritative DNS server. In order to meet the access requirements of different operator networks, when acquiring a corresponding access IP address returned from an authoritative DNS server, it is necessary to acquire access IP addresses corresponding to domain names as much as possible, particularly access IP addresses deployed in different operator networks. Therefore, the recursive DNS server also initiates a query to the authoritative DNS server using the IP addresses allocated by the different operator networks, and the authoritative DNS server feeds back the corresponding network IP addresses suitable for the different operator networks to access according to the IP address of the query node.
As described above, when a user host needs to initiate access to a corresponding domain name but does not have a cached resource record of the corresponding domain name, a first query specifying the domain name is initiated to the recursive DNS server, the first query is used for telling the corresponding recursive DNS server that the domain name of the resource record needs to be queried, further, the first query further includes selecting an operator network to be accessed, that is, telling the recursive DNS server to return an access IP address of the corresponding operator network, so that the user host can access an optimal web server according to its own network access requirement. The query information for selecting to access the operator network is sent to the recursive DNS server, and may be directly reflected from the source address adopted by the user host, for example, the user host has IP addresses of different operator networks, and when selecting which operator network, the IP address of which operator network is adopted to encapsulate the message of the first query. In more embodiments, the user host and the recursive DNS server are in the same link, and sometimes the user host does not configure the corresponding operator network to allocate an IP address when the user host does not initiate access to the outside, and if the user host uses a link local address or the like, the operator network selected for access cannot be directly reflected, and at this time, the corresponding query information may be directly embedded in the DNS query message. In a specific embodiment, a DNS extension mechanism may be embedded in a standard DNS packet format, that is, a dummy resource record is embedded in an additional resource record region, where a fixed part of the dummy resource record includes a NAME field (which may be null currently), a TYPE field (a TYPE number of the dummy resource record, which may be allocated as 41, 2 bytes), a CLASS field (UDP payload size of a sender, 2 bytes), a TTL field (an extended DNS message header, which extends 8 bits to a return status code flag of the standard DNS packet header to indicate more return TYPEs, and includes a version field and a Z flag, which total 4 bytes), and an RDLEN field (a length of a flag variable part, 2 bytes). The variable part is an RDATA field (for storing the specific content of the pseudo resource record), and the internal format of the variable part comprises an OPTION-CODE field (extended protocol CODE, which is used for distinguishing different extended protocols, and has 2 bytes), an OPTION-LENGTH field (marking the LENGTH of the OPTION-DATA field, and has 2 bytes), and an OPTION-DATA field (for storing information of extended query interaction), wherein specific operator networks selected for access are stored in the OPTION-DATA, for example, different operators are respectively numbered, and the corresponding numbers are filled in the operator networks according to needs. Correspondingly, the recursive DNS server also needs to support a corresponding DNS extension mechanism, and when receiving a DNS query packet, it is necessary to extract and analyze query contents of standard fields such as a query problem area, and also extract and analyze operator network selection information in the embedded pseudo resource record in the additional resource record area, so that a directional response is performed according to the selected operator network when responding.
Step S2, obtaining a first IP address returned by the recursive DNS server, where the first IP address is a corresponding access IP address determined by the recursive DNS server in response to the operator network selection of the first query. After the query is issued to the recursive DNS server in step S1, a DNS reply of the recursive DNS server is normally obtained, where the DNS reply includes an access IP address of the specified domain name, i.e. the first IP address, and the user host can access the web server in the network through the first IP address. It should be noted that, according to the query requirement, the first IP address returned by the recursive DNS server should return the server access IP address corresponding to the selected operator network. However, in a specific embodiment, there are two access IP addresses that may cause the first IP address not to be the selected operator network, for one reason that the selection information of the operator network is not identified by the corresponding recursive DNS server, and the recursive DNS server returns the access IP address in a default response manner; the second possibility is that the selected operator network does not have a web server corresponding to the domain name, and the recursive DNS server returns the best server option or default access IP address for the selected operator network to access other operator networks, so that the first IP address is not directly used in step S3, which will be described in detail below.
Step S3, determining a second IP address and a gateway address matched with the operator network to which the first IP address belongs, packaging the first message by using the second IP address, and sending the first message to a corresponding gateway. After the first IP address corresponding to the domain name is obtained in step S2, access can be performed to the server where the first IP address is located. Specifically, the address field of the prefix corresponding bit of the first IP address needs to be analyzed to determine to which operator network the first IP address belongs, so that the corresponding access mode can be configured. Because the number of the IPv6 addresses is huge and the prophase planning is reasonable, the distribution of the IPv6 addresses is not as loose as the IPv4 addresses, and therefore the IPv6 addresses can be the operators or organizations which reflect the attribution of the address segments. Correspondingly, a prefix network segment of the first IP address or an address segment with a more precise bit number is analyzed, the operator to which the first IP address belongs is determined by analyzing the matching and mapping relationship between the address segment and the comparison address segment, the comparison address segment can be a dynamic result of aggregating the IP addresses accessed historically, for example, a plurality of IP addresses are all determined to belong to the corresponding operator and accessed, the corresponding comparison address segment is obtained by aggregating the prefixes with the same bit number, or the comparison address segment database of different operator networks maintained in advance can be used.
When the operator network to which the first IP address belongs is determined, the manner of forwarding to the foreign network may be selected. As shown in fig. 2, when connecting to the external network, the user host 30 may access the first operator network 11 through the first gateway 21, the second operator network 12 through the second gateway 22, and the third operator network 13 through the third gateway 231 or 232. Thus, which gateway to walk into which network depends on the network the user host chooses to visit and/or the network the first IP address belongs to. Specifically, when the first IP address belongs to the first operator network, the IP address of the first operator network may be used as the source address, and the gateway address of the next hop may be determined. It should be added that, in order to make the user host access different operator networks at any time, the IPv6 addresses belonging to different operators may be allocated to the user host, that is, the user host may have the IPv6 addresses of the first operator, the second operator, and the third operator network at the same time, and which IPv6 address is adopted is completely determined by the network to be accessed. The allocation of the IPv6 address is determined by a prefix segment that is sent to the direct connection gateway by the operator network and stored, and may be allocated by a Dynamic Host Configuration Protocol (DHCP), or generated by combining the prefix segment with the EUI-64 address, and further may be a temporary address with an interface identifier that is randomly processed.
In a specific embodiment, a routing table of a target cache is set in a user host, and the target cache includes different address segments of different operator networks and corresponding next hop addresses, that is, corresponding gateways. When the user host needs to access according to the first IP address, for example, the first packet is sent to the server where the first IP address is located, and the source IP address of the first packet is set to the corresponding second IP address before sending, as described above, the second IP address is determined according to the operator network to which the first IP address belongs, and meanwhile, the corresponding gateway may also be determined in the target cache, that is, the next hop gateway to which the first packet is forwarded after being encapsulated.
In the above embodiment, the case where the operator network to which the first IP address obtained by query belongs is consistent with the selected operator network is mainly described, and as described above, there may be a case where there is inconsistency, and at this time, there may be a case where the actually visited network is based on the network to which the first IP address belongs or the selected operator network. The operator network to which the first IP address belongs may be used, that is, the above-described embodiment may be adopted to directly configure the second IP address corresponding to the operator network, and then forward the second IP address according to the queried gateway address. However, under the condition that part of the messages has tariff constraint, when the selected operator network is required to be used for access, the second IP address and the gateway address are determined according to the selected operator network, and the obtained second IP address is used for encapsulating the first message and sending the first message to the corresponding gateway. Preferably, the information for forcibly turning off the redirection function may be embedded by using an extended header mechanism of IPv6, so that the corresponding gateway does not send out a redirection message according to the information for forcibly turning off the redirection function even if an available gateway closer to the target is found to exist on the local link. In summary, the user host may determine to implement the message transmission with the operator network to which the first IP address belongs or to implement the message transmission with the operator network selected for access by setting a policy.
In further embodiments, there may be a case where the carrier network to which the first IP address obtained by querying belongs and the selected carrier network are consistent, but there is no corresponding accessed carrier network or no corresponding next hop gateway address can be found in the target cache. Correspondingly, a default gateway can be selected or a gateway in a local link can be randomly selected for sending, a second IP address is determined according to a network directly connected with the selected gateway, and the determined second IP address is used for packaging the first message and sending the first message to the corresponding gateway. In an ideal situation, the first packet may be forwarded to the corresponding network by the corresponding gateway, but the network to which the first IP address belongs may have a gateway direct connection or a better gateway connection related network in the link, and at this time, the gateway receiving the first packet may send a redirection message based on its own judgment to tell the corresponding user host the best forwarding manner. When a user host receives a redirection message corresponding to a gateway, the corresponding first message is forwarded to the redirected gateway, if the determined prefix network segment of the second IP address is inconsistent with the prefix network segment corresponding to the redirected gateway, the second IP address is re-determined according to a direct connection network of the redirected gateway, and next hop gateway information is modified in a target cache, so that when the corresponding first IP address is accessed again, the next hop gateway address which does not need to be redirected is determined from the target cache.
As to the redirection function, the above embodiment is not limited, and the support of the redirection function may also occur that a certain gateway in the target cache has changed in a link or a connected external network state has changed, and the first packet may be sent to a more reasonable gateway through redirection, so as to be sent to an external network, so as to implement access of a corresponding server. Taking fig. 2 as an example, for the third gateway 231 and the third gateway 232 directly connected to the third operator network 13, there may be a server a in the third operator network, and if the routing metric from the third gateway 232 to the server a is smaller, and the next hop stored in the target cache is the third gateway 231, the first packet is sent to the third gateway 231. When the third gateway 231 receives the first packet, it finds that the best first-hop address of the first packet should be the third gateway 232, and then sends a redirection message to the originating host, and the originating host can resend the first packet to the third gateway 232 according to the redirection message and update the local target cache. When the corresponding user host sends the first packet again and inquires that the next hop gateway in the target cache is the third gateway 232, the first packet is directly sent to the third gateway 232.
Fig. 3 is a schematic diagram of a networking access system based on IPv6 in an embodiment of the present invention. The networking access system based on the IPv6 specifically comprises a query unit U1, an acquisition unit U2 and a sending unit U3, wherein the units are matched with a network to which an IP address corresponding to a designated domain name belongs, and the corresponding first message is sent out, so that further access operation can be realized.
A query unit U1, configured to initiate, by the user host, a first query specifying a domain name to the locally deployed recursive DNS server, where the first query includes the operator network selected for access. The user host is used as a terminal for realizing internet surfing and needs to perform a series of access processes through a domain name. It is generally necessary to obtain the visited IP address corresponding to the domain name via a recursive DNS server, because the IP address is the numeric address on the network that identifies the site. There may also be a requirement for access to a specific network for a private network that has access to multiple operator networks, so that when a first query specifying a domain name is issued to the recursive DNS server, the first query also includes the operator network that the user host chooses to access, and the user host can select the operator network that needs to be accessed based on its own access requirements. The operator network information selected for access can be distinguished by the source IP address of the user host, or the corresponding first query information can be embedded by referring to the DNS extension mechanism in the IPv 6-based networking access method.
An obtaining unit U2, configured to obtain a first IP address returned by the recursive DNS server, where the first IP address is a corresponding access IP address determined by the recursive DNS server in response to the operator network selection of the first query. The recursive DNS server may make corresponding feedback according to the content of the first query, and the obtaining unit U2 obtains the first IP address returned by the recursive DNS server by monitoring, where the first IP address is an access IP address of a server corresponding to a domain name specified in the first query, and the first IP address responds to the address of the server corresponding to the domain name to which the corresponding operator network belongs according to the requirement of the operator network selected for access. However, since the operator network to which the returned first IP address belongs may be inconsistent with the operator network selected for access in the first query, the sending unit U3 may correspondingly determine the acquired first IP address.
And the sending unit U3 is configured to determine a second IP address and a gateway address that are matched according to the operator network to which the first IP address belongs, and package the first packet by using the second IP address and send the first packet to a corresponding gateway. The sending unit U3 determines the operator network to which the first IP address belongs by analyzing the address field corresponding to the first IP address, which may be a prefix network segment in general, to determine that the user host uses the source IP address corresponding to the operator network, that is, the second IP address, because the source IP address usually uses the address range allocated by the actual access network, the unicast reverse path forwarding can be adapted to the setting. And encapsulating the first message by using the second IP address determined by the corresponding operator network and sending the first message to a gateway directly connected with the corresponding operator network, wherein the corresponding gateway address is determined by the target cache.
The second IP address determined according to the operator network is an IP address allocated in advance to the corresponding user host, for the user host that can access multiple operator networks, multiple IPv6 addresses are allocated in advance, including at least an IPv6 address of the home first operator and an IPv6 address of the home second operator, and the obtaining unit U3 determines the corresponding second IP address according to the network that needs to be accessed actually. Further, when the user host accesses different operator networks, a first gateway directly connected with the first operator network and a second gateway directly connected with the second operator network are searched according to the target cache, the first operator network is accessed through the first gateway, and the second operator network is accessed through the second gateway.
In further embodiments, after determining the corresponding gateway address in which manner and sending the first message to the corresponding gateway, the sending unit U3 further listens for whether a corresponding redirection message exists, where the redirection message is used to inform the user host that the determined gateway address is not the optimal first hop address. Correspondingly, when the user host receives the redirection message of the corresponding gateway, the sending unit U3 forwards the corresponding first packet to the redirected gateway, and modifies the target cache of the gateway to which the address field corresponding to the first IP address belongs. The operator network directly connected with the redirection gateway is also changed, and before the first message is sent, the first IP address serving as the source address of the user host is also modified adaptively. It should be noted that, the specific implementation of the networking access system based on IPv6 may also refer to the specific implementation of the networking access method based on IPv 6.
In connection with the technical solutions disclosed in the present Application, the present invention may be directly embodied as hardware, a software module executed by a control unit, or a combination of the two, that is, one or more steps and/or one or more combinations of steps, and may correspond to each software module of a computer program flow, or may correspond to each hardware module, for example, an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other Programmable logic device, a discrete Gate or crystal logic device, a discrete hardware component, or any suitable combination thereof. For convenience of description, the above-mentioned apparatuses are described as being divided into various modules by functions, and of course, the functions of the modules may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can also be implemented by software plus necessary general hardware platform. Based on this understanding, the technical solutions of the present application may also be embodied in the form of software products, which essentially or partially contribute to the prior art. The software may be executed by a micro-control unit, and may include one or more micro-control units of any type, depending on the desired configuration, including but not limited to a microcontroller, a DSP (Digital Signal Processor), or any combination thereof. The software is stored in a memory, such as a volatile memory (e.g., random access memory, etc.), a non-volatile memory (e.g., read-only memory, flash memory, etc.), or any combination thereof.
In summary, the user host of the present invention can implement flexible access under the condition of network access of multiple operators through cooperation with the recursive DNS server and the forwarding mechanism of the gateway corresponding to different operator networks. The invention can freely select the network access mode according to the user requirement, has strong flexibility and better internet experience.
It should be understood that although the present description refers to embodiments, not every embodiment contains only a single technical solution, and such description is for clarity only, and those skilled in the art should make the description as a whole, and the technical solutions in the embodiments can be appropriately combined to form other embodiments understood by those skilled in the art.
The above-listed detailed description is only a specific description of a possible embodiment of the present invention, and they are not intended to limit the scope of the present invention, and equivalent embodiments or modifications made without departing from the technical spirit of the present invention should be included in the scope of the present invention.
Claims (10)
1. A networking access method based on IPv6 is characterized by comprising the following steps:
a user host initiates a first query of a specified domain name to a locally deployed recursive DNS server, wherein the first query comprises an operator network selected to be accessed;
obtaining a first IP address returned by the recursive DNS server, wherein the first IP address is a corresponding access IP address determined by the recursive DNS server in response to the operator network selection of the first query;
and determining a matched second IP address and a gateway address according to the operator network to which the first IP address belongs, packaging the first message by using the second IP address, and sending the first message to a corresponding gateway.
2. The IPv 6-based networking access method of claim 1, wherein the subscriber host is assigned at least an IPv6 address of a home first operator and an IPv6 address of a home second operator before accessing the network.
3. The IPv 6-based networking access method of claim 1, wherein the user host accesses a first operator network through a first gateway and accesses a second operator network through a second gateway when accessing different operator networks.
4. The IPv 6-based networking access method of claim 1, wherein the corresponding operator network is determined by a corresponding address field of the first IP address, and a corresponding gateway and a second IP address as a source address are determined.
5. The IPv 6-based networking access method according to claim 1, wherein the subscriber host forwards the corresponding first packet to the redirected gateway and modifies a target cache of the gateway to which the corresponding address segment belongs, when receiving a redirection message of the corresponding gateway.
6. A networking access system based on IPv6, characterized by comprising:
the system comprises a query unit, a query unit and a query unit, wherein the query unit is used for a user host to initiate a first query of a specified domain name to a locally deployed recursive DNS server, and the first query comprises an operator network selected to be accessed;
an obtaining unit, configured to obtain a first IP address returned by the recursive DNS server, where the first IP address is a corresponding access IP address selected and determined by the recursive DNS server in response to the first query;
and the sending unit is used for determining a matched second IP address and gateway address according to the operator network to which the first IP address belongs, packaging the first message by using the second IP address and sending the first message to a corresponding gateway.
7. The IPv6 based networking access system of claim 6, wherein the user host is assigned at least an IPv6 address of a home first operator and an IPv6 address of a home second operator before accessing the network.
8. The IPv 6-based networking access system of claim 6, wherein the user host accesses a first carrier network through a first gateway and a second carrier network through a second gateway when accessing different carrier networks.
9. The IPv 6-based networking access system of claim 6, wherein the sending unit determines a corresponding operator network through a corresponding address field of the first IP address, and determines a corresponding gateway and a second IP address as a source address.
10. The IPv 6-based networking access system of claim 6, wherein, when the subscriber host receives a redirection message of a corresponding gateway, the sending unit forwards the corresponding first packet to the redirected gateway and modifies a target cache of the gateway to which the corresponding address field belongs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010721219.6A CN111988441B (en) | 2020-07-24 | 2020-07-24 | IPv 6-based networking access method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010721219.6A CN111988441B (en) | 2020-07-24 | 2020-07-24 | IPv 6-based networking access method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111988441A true CN111988441A (en) | 2020-11-24 |
CN111988441B CN111988441B (en) | 2023-05-12 |
Family
ID=73438137
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010721219.6A Active CN111988441B (en) | 2020-07-24 | 2020-07-24 | IPv 6-based networking access method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111988441B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112583952A (en) * | 2020-12-09 | 2021-03-30 | 北京金山云网络技术有限公司 | Redirection scheduling processing method, device and system, related equipment and storage medium |
CN113873054A (en) * | 2021-09-13 | 2021-12-31 | 支付宝(杭州)信息技术有限公司 | DNS-based IPv6 drainage method, device and equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7720997B1 (en) * | 2001-12-19 | 2010-05-18 | Cisco Technology, Inc. | Path selection system |
CN102611763A (en) * | 2011-01-25 | 2012-07-25 | 中国移动通信集团公司 | DNS (Domain Name Server) inquiring method and equipment |
CN104821965A (en) * | 2015-04-14 | 2015-08-05 | 鹤壁西默通信技术有限公司 | DNS intelligent resolution method based on outlet network |
CN106131068A (en) * | 2016-08-26 | 2016-11-16 | 北京网瑞达科技有限公司 | User resolves the system and method for circuit from main separation domain name system DNS |
CN106878135A (en) * | 2016-12-21 | 2017-06-20 | 新华三技术有限公司 | A kind of connection method and device |
CN106953805A (en) * | 2017-03-17 | 2017-07-14 | 广州爱九游信息技术有限公司 | Network line control method, device and service terminal |
CN107197059A (en) * | 2017-07-27 | 2017-09-22 | 杭州迪普科技股份有限公司 | A kind of dns resolution method and device |
CN107547687A (en) * | 2017-08-31 | 2018-01-05 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN107580079A (en) * | 2017-08-31 | 2018-01-12 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN109413227A (en) * | 2018-12-04 | 2019-03-01 | 睿哲科技股份有限公司 | IPv4 user based on more IPv6 networks accesses IPv6 network interworking device and equipment |
-
2020
- 2020-07-24 CN CN202010721219.6A patent/CN111988441B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7720997B1 (en) * | 2001-12-19 | 2010-05-18 | Cisco Technology, Inc. | Path selection system |
CN102611763A (en) * | 2011-01-25 | 2012-07-25 | 中国移动通信集团公司 | DNS (Domain Name Server) inquiring method and equipment |
CN104821965A (en) * | 2015-04-14 | 2015-08-05 | 鹤壁西默通信技术有限公司 | DNS intelligent resolution method based on outlet network |
CN106131068A (en) * | 2016-08-26 | 2016-11-16 | 北京网瑞达科技有限公司 | User resolves the system and method for circuit from main separation domain name system DNS |
CN106878135A (en) * | 2016-12-21 | 2017-06-20 | 新华三技术有限公司 | A kind of connection method and device |
CN106953805A (en) * | 2017-03-17 | 2017-07-14 | 广州爱九游信息技术有限公司 | Network line control method, device and service terminal |
CN107197059A (en) * | 2017-07-27 | 2017-09-22 | 杭州迪普科技股份有限公司 | A kind of dns resolution method and device |
CN107547687A (en) * | 2017-08-31 | 2018-01-05 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN107580079A (en) * | 2017-08-31 | 2018-01-12 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN109413227A (en) * | 2018-12-04 | 2019-03-01 | 睿哲科技股份有限公司 | IPv4 user based on more IPv6 networks accesses IPv6 network interworking device and equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112583952A (en) * | 2020-12-09 | 2021-03-30 | 北京金山云网络技术有限公司 | Redirection scheduling processing method, device and system, related equipment and storage medium |
CN113873054A (en) * | 2021-09-13 | 2021-12-31 | 支付宝(杭州)信息技术有限公司 | DNS-based IPv6 drainage method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111988441B (en) | 2023-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7533164B2 (en) | Method and system for enabling connections into networks with local address realms | |
US6480508B1 (en) | Router-based domain name system proxy agent using address translation | |
US7467214B2 (en) | Invoking protocol translation in a multicast network | |
US8451845B2 (en) | Method of receiving a data packet in an IPv6 domain, an associated device and an associated home gateway | |
US8843588B2 (en) | Methods, apparatuses, related computer program product and data structure for distributed storage of service provision-related information | |
US20220311734A1 (en) | Method and Device for Obtaining an IP Address | |
KR20050086925A (en) | System and method for establishing communication between a client and a server in a heterogenous ip network | |
CN112654049B (en) | Method, system, node and medium for configuring a wireless communication coverage extension system | |
CN101325580B (en) | Method for implementing FTP application-layer gateway based on NAT-PT | |
US11425086B2 (en) | Using DNS to communicate MC-TCP capability of server devices | |
CN111988441B (en) | IPv 6-based networking access method and system | |
CN111711706B (en) | DNS recursive request method and system | |
CN114095474B (en) | Method and communication device for determining public network address of MPTCP (Multi-protocol Transmission control protocol) server | |
CN111698341B (en) | DNS authority response method and system | |
WO2004071052A1 (en) | Enhanced dns server | |
CN111970179B (en) | Networking access method and system based on IPv6 | |
EP2052514B1 (en) | Pervasive inter-domain dynamic host configuration | |
CN104488250A (en) | Message transmission method, device and server | |
Shang et al. | IVI-based locator/ID separation architecture for IPv4/IPv6 transition | |
CN115150312B (en) | Routing method and device | |
Krishnan et al. | Privacy Considerations for DHCPv6 | |
WO2004100499A1 (en) | A communication network, a network element and communication protocol and method of address auto-configuration therefor | |
CN114390021A (en) | IPv6 single stack-based IDC service providing system and method | |
Huawei Technologies Co., Ltd. | IPv6 | |
Hoffmann | The case of IPv6 LLU endpoint address support in DNS |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |