CN111988441B - IPv 6-based networking access method and system - Google Patents

IPv 6-based networking access method and system Download PDF

Info

Publication number
CN111988441B
CN111988441B CN202010721219.6A CN202010721219A CN111988441B CN 111988441 B CN111988441 B CN 111988441B CN 202010721219 A CN202010721219 A CN 202010721219A CN 111988441 B CN111988441 B CN 111988441B
Authority
CN
China
Prior art keywords
address
gateway
operator network
access
network
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
CN202010721219.6A
Other languages
Chinese (zh)
Other versions
CN111988441A (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.)
Netgen Nanjing Network Center Co ltd
Next Generation Internet Key Technology And Co ltd Of Erc Of Evaluation And Test Beijing
Original Assignee
Netgen Nanjing Network Center Co ltd
Next Generation Internet Key Technology And Co ltd Of Erc Of Evaluation And Test Beijing
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Netgen Nanjing Network Center Co ltd, Next Generation Internet Key Technology And Co ltd Of Erc Of Evaluation And Test Beijing filed Critical Netgen Nanjing Network Center Co ltd
Priority to CN202010721219.6A priority Critical patent/CN111988441B/en
Publication of CN111988441A publication Critical patent/CN111988441A/en
Application granted granted Critical
Publication of CN111988441B publication Critical patent/CN111988441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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 a selected visited operator network; 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 matched second IP address and gateway address according to the operator network to which the first IP address belongs, and sending the encapsulation message to the corresponding gateway by utilizing the second IP address. The invention can freely select the network access mode according to the user demand, has strong flexibility and better Internet surfing experience.

Description

IPv 6-based networking access method and system
Technical Field
The present invention relates to the field of computer network communication technologies, and in particular, to an IPv 6-based networking access method and system.
Background
When private networks such as campus networks and enterprise networks access the internet, a plurality of operator networks are often accessed to the outside in order to meet different internet surfing requirements of users in the private networks or line backup requirements. Taking campus network as an example, not only educational network but also mobile, communication, telecom and other operators' networks can be accessed at the same time. There is a problem in that when different network accesses are accessed, it is necessary to use an IP address of a corresponding network allocation address range as a source address to achieve transmission. In the era of IPv4 (Internet Protocol Version, version 4 of the internet protocol), NAT (Network Address Translation ) mechanisms are generally adopted, and private IP addresses are allocated to specific private network internal hosts, so that when a message arrives at a gateway responsible for the NAT function, NAT software converts the corresponding private IP addresses into public IP addresses for accessing the corresponding operator network.
IPv6 (Internet Protocol Version, internet protocol version 6) is a next generation IP protocol replacing IPv4, designed by IETF (The Internet Engineering Task Force, internet engineering task force) initiative. The IPv6 has the address length of 128 bits, so that the method 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, when solving the multi-outlet network access problem based on IPv4 due to the lack of address resources of IPv4, only the NAT mechanism can be used restrictively. However, simply relying on NAT to achieve access places a burden on the gateway device, and may also reduce the speed of access. On the premise that the IPv6 provides a large amount of address resources, a technical scheme needs to be proposed, and the running mechanism of the existing network can be improved by utilizing the advantages of the IPv6 so as to improve the access efficiency.
Disclosure of Invention
The invention aims to provide a networking access method and 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 problems, the networking access method based on IPv6 of the invention comprises the following steps:
the user host initiates a first query specifying a domain name to a locally deployed recursive DNS server, the first query comprising a selected visited operator network;
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 gateway address according to the operator network to which the first IP address belongs, and encapsulating 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 network access method based on IPv6 of the present invention, before the user host accesses the network, at least an IPv6 address of the first home operator and an IPv6 address of the second home operator are allocated to the user host.
As a further improvement of the above-mentioned IPv 6-based networking access method of the present invention, 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.
As a further improvement of the above-mentioned IPv 6-based networking access method of the present invention, a corresponding operator network is determined by the corresponding address field of the first IP address, and a corresponding gateway and a second IP address as a source address are determined.
As a further improvement of the networking access method based on IPv6, when the user host receives the redirection message of the corresponding gateway, the user host forwards the corresponding first message to the redirected gateway and modifies the target cache of the gateway to which the corresponding address segment belongs.
In order to solve the above technical problems, the present invention provides an IPv 6-based networking access system, comprising:
a query unit, configured to initiate, by a user host, a first query specifying a domain name to a locally deployed recursive DNS server, where the first query includes an operator network selected for access;
the acquiring unit is used for acquiring a first IP address returned by the recursive DNS server, wherein the first IP address is a corresponding access IP address which is determined by the recursive DNS server according to the operator network selection of 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, and packaging the first message by using the second IP address and sending the first message to the corresponding gateway.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, the subscriber host is assigned at least an IPv6 address of the home first operator and an IPv6 address of the home second operator before accessing the network.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, the subscriber 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.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, 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.
As a further improvement of the above-mentioned IPv 6-based networking access system of the present invention, when the user host receives the redirection message of the corresponding gateway, the sending unit forwards the corresponding first message to the redirected gateway, and modifies the target cache of the gateway to which the corresponding address segment belongs.
Compared with the prior art, the user host can realize flexible access under the condition of multi-operator network access 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 demand, has strong flexibility and better Internet surfing experience.
Other features and advantages of the present invention will become more apparent from the following detailed description of embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments described in the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an IPv 6-based networking access method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an IPv 6-based networking access structure according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of an IPv 6-based networking access system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the embodiments shown in the drawings. However, these embodiments are not intended to limit the present invention, and variations in structure, method, or function that would occur to one skilled in the art based on these embodiments are included in the scope of the present invention.
It should be noted that in different embodiments, the same reference numerals or signs may be used, but these do not represent absolute relationships in structure or function. Also, reference to "first" and "second" in the embodiments does not represent an absolute distinction in structure or function, and these are merely for convenience of description.
The IPv6 is the next generation internet core technology, and has two basic changes relative to the IPv4, namely, the IPv6 is upgraded from the 32bit address length to the 128bit address length, so that the address space is greatly expanded, the flexible playing space is provided for planning and deployment of a network, the IPv6 expanded message header mechanism is increased, the programmability is improved, and the expanded support capability is provided for SRv, BIERv6 and the like. In the embodiment of the invention, the redundancy of the IPv6 address is fully utilized, a plurality of IP addresses are allocated to the user host in the private network, and different IP addresses can be generated from prefix network segments allocated by different operator networks, namely, the IP addresses are 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 for message encapsulation according to different requirements, thereby realizing the access of different operator networks.
As shown in fig. 1, in an embodiment of the present invention, a flow chart of an IPv 6-based networking access method is shown. The networking access method based on IPv6 specifically comprises the following steps:
step S1, 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 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, the user host computer is required to access the web server corresponding to the domain name, and first, the user host computer will inquire whether the local cache has an access IP address corresponding to the web server corresponding to the domain name, preferably, the local cache may have access IP addresses corresponding to the web servers in different operator networks under the same domain name, and the user host computer may select according to the access requirement of the actual operator network, for example, the user host computer selects the operator network with sufficient tariff. Further, if the user host does not find the 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 used to make a corresponding domain name resolution response for a user host in the private network, where the process specifically begins by querying a local cache of the recursive DNS server, and if no corresponding resource record exists, the recursive DNS server initiates a query to an external authoritative DNS server, and in a preferred embodiment, the recursive DNS server also performs a pre-query to the authoritative DNS server for a commonly used domain name periodically, so as to improve the hit rate of the local cache. In order to meet the access requirements of different operator networks, it is necessary to obtain as many access IP addresses as possible corresponding to domain names, in particular access IP addresses deployed on different operator networks, when obtaining corresponding access IP addresses returned from the authoritative DNS server. 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 the user host needs to initiate access to the corresponding domain name but does not have the cached resource record of the corresponding domain name, the user host initiates a first query for specifying the domain name to the recursive DNS server, where the first query is used to tell the corresponding recursive DNS server that the domain name of the resource record needs to be queried, and further, the first query further includes an operator network for selecting access, 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 the optimal web server according to its own network access requirement. The query information for selecting the access operator network is initiated 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 message of the first query is encapsulated by using the IP address of which operator network. In more embodiments, the user host and the recursive DNS server are in the same link, sometimes when the user host does not initiate access to the outside, the user host is temporarily not configured to allocate an IP address to the corresponding operator network, if the user host adopts a link local address, the user host cannot directly reflect the operator network selected for access, and at this time, the corresponding query information can be directly embedded into the DNS query message. In a specific embodiment, a DNS extension mechanism may be embedded in the standard DNS packet format, i.e. a pseudo resource record is embedded in the additional resource record area, where the pseudo resource record fixed part includes a NAME field (which may be currently empty), a TYPE field (which may be allocated as 41,2 bytes), a CLASS field (UDP payload size of the sender, 2 bytes), a TTL field (an extended DNS message header, and an 8-bit extension of the return status code flag of the standard DNS packet header to indicate more return TYPEs, and further includes a version field and a Z flag, 4 bytes in total), and an RDLEN field (length of the flag variable part, 2 bytes). The variable part is an RDATA field (for storing specific content of the pseudo resource record), and the internal format of the variable part includes an operation-CODE field (an extension protocol CODE for distinguishing different extension protocols, 2 bytes in total), an operation-LENGTH field (LENGTH of an operation-DATA field is marked, 2 bytes), and an operation-DATA field (for storing information of extension query interaction), where specific operator networks selected for access are stored in the operation-DATA, such as respectively numbering different operators, and the corresponding numbers are filled into the required operator networks. Accordingly, the recursive DNS server also needs to support a corresponding DNS extension mechanism, and when a DNS query message is received, the recursive DNS server not only extracts and analyzes the query content of standard fields such as a query problem area, but also extracts and analyzes the 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 the response is performed.
And S2, 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 operator network selection of the recursive DNS server in response to the first query. After the query is initiated to the recursive DNS server in step S1, a DNS response of the recursive DNS server is obtained under normal conditions, where the DNS response includes an access IP address of the specified domain name, i.e. the first IP address, through which the user host may access a web server in the network. It should be noted that, the first IP address returned by the recursive DNS server should return the server access IP address corresponding to the selected operator network according to the query requirement. In a specific embodiment, however, there are two types of access IP addresses that may cause the first IP address to not be the access IP address of the selected carrier network, one of which may be that the selection information of the carrier network is not recognized by the corresponding recursive DNS server, and the recursive DNS server returns the access IP address in a default reply manner; the second possibility is that there is no web server corresponding to the domain name in the selected operator network, and the recursive DNS server returns the server option or the default access IP address that is the best for the selected operator network to access the services in the other operator networks, so the first IP address is not directly used in step S3, which will be described in detail below.
And step S3, determining a matched second IP address and gateway address according to the operator network to which the first IP address belongs, and 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 may be performed to the server where the first IP address is located. Specifically, an address segment of the prefix corresponding to the number of bits of the first IP address needs to be analyzed to determine to which operator network the first IP address belongs to, so that a corresponding access manner can be configured. Since the number of the IPv6 addresses is huge and the early planning is reasonable, the distribution of the IPv6 addresses is not as loose as that of the IPv4 addresses, and therefore the IPv6 addresses can be formed into operators or organizations of address segments reflecting attribution. Correspondingly, the prefix network segment or the address segment with more accurate digits of the first IP address is analyzed, the attribution operator is determined by analyzing the matching and mapping relation between the address segment and the comparison address segment, the comparison address segment can be a dynamic result of IP address aggregation of historical access, for example, a plurality of IP addresses are determined to attribution corresponding operators and are accessed, the corresponding comparison address segment is obtained by aggregating prefixes with the same digits, and the comparison address segment database of different operator networks can be maintained in advance.
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 the subscriber host 30 is connected to the external network, it can 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 the third gateway 232. Which gateway to go into which network is therefore dependent on the network the user host chooses to access and/or the network to which the first IP address belongs. 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 user host may be allocated with IPv6 addresses belonging to different operators, that is, the user host may have IPv6 addresses of the first operator, the second operator, and the third operator networks 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 network segment issued by the operator network to the direct gateway and stored, which may be implemented by DHCP (Dynamic Host Configuration Protocol ), or generated by combining the prefix network segment with the EUI-64 address, and further may be a temporary address that is randomly processed with the interface identifier.
In a specific embodiment, a routing table of a target cache is set in the user host, and the target cache includes different address segments of different operator networks and corresponding next hop addresses, namely corresponding gateways. When the user host needs to access according to the first IP address, for example, the first message is sent to the server where the first IP address is located, and before sending, the source IP address of the first message is set to a corresponding second IP address, where the second IP address is determined according to the operator network to which the first IP address belongs, as described above, and meanwhile, a corresponding gateway can be determined in the target cache, that is, a next hop gateway to which the first message is forwarded after being packaged.
In the above embodiment, the case where the operator network to which the first IP address obtained by the query belongs coincides with the selected operator network is mainly described, and as described above, there may be an 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 based on the selected operator network. The above embodiment can be adopted by taking the operator network to which the first IP address belongs as a reference, directly configuring the second IP address corresponding to the operator network, and forwarding according to the queried gateway address. However, when the selected operator network has to be used for access under the condition that part of the cost constraint exists, 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 of the forced closing redirection function can be embedded by using an extended message header mechanism of the IPv6, so that the corresponding gateway does not send out a redirection message according to the information of the forced closing redirection function even if it finds that an available gateway closer to the target exists on the local link. In summary, the subscriber host may determine to implement messaging with the operator network to which the first IP address belongs or messaging with the operator network to which the access is selected by setting a policy.
In more embodiments, there may be an operator network to which the first IP address obtained by the query belongs and the selected operator network are consistent, but no corresponding access operator network or no corresponding next-hop gateway address in the target cache. Correspondingly, a default gateway or a gateway in a local link can be selected for transmission, a second IP address is determined according to the network directly connected with the selected gateway, and the determined second IP address is used for packaging the first message and transmitting the first message to the corresponding gateway. In an ideal case, the first message may be forwarded to the corresponding network by the corresponding gateway, but the network to which the first IP address belongs may have a direct connection between the gateway and the network to which the gateway is connected or a better connection between the gateway and the network, and at this time, the gateway receiving the first message may send a redirection message based on its own judgment to tell the corresponding user that the host has the best forwarding mode. When receiving the redirection message of the corresponding gateway, the user host forwards the corresponding first message 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 user host directly connects the network according to the redirected gateway to determine the second IP address again, and modifies the next-hop gateway information in the target cache, so that the next-hop gateway address without redirection can be determined from the target cache when the corresponding first IP address is accessed again.
Regarding the redirection function, not limited to the above embodiment, the support of the redirection function may also occur that a certain gateway in the target cache has changed in a link or the connected external network state has changed, and the first message may be sent to a more reasonable gateway through redirection, so as to be sent to the external network, so as to achieve 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 destination cache is the third gateway 231, the first message is sent to the third gateway 231. When the third gateway 231 receives the first message, it finds that the best first hop address of the first message should be the third gateway 232, and then sends a redirection message to the originating host, and the originating host may resend the first message to the third gateway 232 according to the redirection message and update the local target cache. When the corresponding user host sends the first message again and inquires that the next-hop gateway in the target cache is the third gateway 232, the first message is directly sent to the third gateway 232.
As shown in fig. 3, in an embodiment of the present invention, an IPv 6-based networking access system is schematically shown. The networking access system based on IPv6 specifically comprises a query unit U1, an acquisition unit U2 and a sending unit U3, wherein the units cooperate with a network to which an IP address corresponding to a specified domain name belongs to send out corresponding first messages, so that further access operation can be realized.
And the query unit U1 is used for initiating a first query of the specified domain name to the locally deployed recursive DNS server by the user host, wherein the first query comprises the operator network selected to be accessed. The user host computer is used as a terminal for realizing internet surfing, and a series of access processes are required to be performed through the domain name. It is generally necessary to obtain the access IP address corresponding to the domain name by means of a recursive DNS server, since the IP address is a numerical address identifying the site on the network. For a private network accessing multiple operator networks, there may also be a requirement for accessing a particular network, so when a first query specifying a domain name is initiated to the recursive DNS server, the first query also includes the operator network that the user host chooses to access, and the user host may choose the operator network that needs to be accessed based on its own access requirements. The operator network information selected for access may be discriminated by the source IP address of the subscriber host, or the corresponding first query information may be embedded with reference to a DNS extension mechanism in the IPv 6-based networking access method.
And the acquiring unit U2 is used for acquiring a first IP address returned by the recursive DNS server, wherein the first IP address is a corresponding access IP address determined by the operator network selection of the recursive DNS server in response to the first query. The recursive DNS server may make a corresponding feedback according to the content of the first query, and the obtaining unit U2 obtains, by listening, a first IP address returned by the recursive DNS server, 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 an address of a server corresponding to a domain name to which the corresponding operator network belongs according to a requirement of the operator network selected for access. However, there may be an operator network to which the returned first IP address belongs, which is inconsistent with the operator network selected for access in the first query, so the sending unit U3 may perform a corresponding determination on the obtained first IP address.
And the sending unit U3 is used for determining a matched second IP address and gateway address according to the operator network to which the first IP address belongs, and packaging the first message by using the second IP address and sending the first message to a corresponding gateway. The sending unit U3 determines the corresponding operator network by analyzing the corresponding address segment of the first IP address, which may be a prefix segment in general, so as to determine that the user host adopts the source IP address of the corresponding operator network, i.e. the second IP address, because the source IP address generally needs to use the address range allocated by the actual access network, so as to adapt to the set unicast reverse path forwarding. 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.
According to the fact that the second IP address determined by 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 first operator and an IPv6 address of the second operator, and the obtaining unit U3 determines the corresponding second IP address according to the network that actually needs to be accessed. Further, when the user host accesses different operator networks, the user host searches a first gateway directly connected with the first operator network according to the target cache, directly connects with a second gateway of the second operator network, accesses the first operator network through the first gateway, and accesses the second operator network through the second gateway.
In more embodiments, after determining how to determine the corresponding gateway address and sending the first message to the corresponding gateway, the sending unit U3 further monitors whether a corresponding redirection message exists, where the redirection message is used to tell the user that the gateway address determined by the host is not the optimal first hop address. Correspondingly, when receiving the redirection message of the corresponding gateway, the sending unit U3 forwards the corresponding first message to the redirected gateway, and modifies the target cache of the gateway to which the address segment corresponding to the first IP address belongs. The operator network to which the redirect gateway is directly connected is also changed, and the first IP address as the source address of the subscriber host is also adaptively modified before the first message is sent. The embodiment of the IPv 6-based networking access system may refer to the embodiment of the IPv 6-based networking access method.
In connection with the technical solutions disclosed herein, it may be directly embodied as hardware, as a software module executed by a control unit, or as a combination of both, i.e. one or more steps and/or a combination of one or more steps, corresponding to either the respective software module of a computer program flow or the respective hardware module, e.g. an ASIC (Application Specific Integrated Circuit ), an FPGA (Field-Programmable Gate Array, 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 apparatus is described as being functionally divided into various modules, and of course, the functions of each module may be implemented in one or more pieces of software and/or hardware when implementing the present application.
From the description of the above embodiments, it will be apparent to those skilled in the art that the present application may also be implemented by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the present application may also be embodied in the form of a software product, in essence or in part contributing 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, including but not limited to a microcontroller, DSP (Digital Signal Processor, digital signal control unit), or any combination thereof, depending on the desired configuration. 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 multi-operator network access through cooperation with the recursive DNS server and forwarding mechanisms of gateways corresponding to different operator networks. The invention can freely select the network access mode according to the user demand, has strong flexibility and better Internet surfing experience.
It should be understood that although the present disclosure describes embodiments, not every embodiment is described in terms of a single embodiment, and that this description is for clarity only, and that the skilled artisan should recognize that the embodiments may be combined in any suitable manner to form other embodiments that will be understood by those skilled in the art.
The above list of detailed descriptions is only specific to practical embodiments of the present invention, and they are not intended to limit the scope of the present invention, and all equivalent embodiments or modifications that do not depart from the spirit of the present invention should be included in the scope of the present invention.

Claims (2)

1. An IPv 6-based networking access method, comprising the following steps: the user host initiates a first query specifying a domain name to a locally deployed recursive DNS server, the first query comprising a selected visited operator network; 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; the method is characterized in that a matched second IP address and gateway address are determined according to an operator network to which the first IP address belongs, and a first message is packaged by the second IP address and sent to a corresponding gateway; the corresponding address segment of the first IP address determines a corresponding operator network, and determines a corresponding gateway and a second IP address serving as a source address;
before the user host accesses the network, at least distributing an IPv6 address of a first home operator and an IPv6 address of a second home operator;
when the user host accesses different operator networks, the user host accesses the first operator network through a first gateway and accesses the second operator network through a second gateway;
when receiving the redirection message of the corresponding gateway, the user host forwards the corresponding first message to the redirected gateway and modifies the target cache of the gateway to which the corresponding address segment belongs.
2. An access system for implementing the IPv6 based networking access method of claim 1, comprising:
a query unit, configured to initiate, by a user host, a first query specifying a domain name to a locally deployed recursive DNS server, where the first query includes an operator network selected for access;
the acquiring unit is used for acquiring a first IP address returned by the recursive DNS server, wherein the first IP address is a corresponding access IP address which is determined by the recursive DNS server according to the operator network selection of 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, and packaging the first message by using the second IP address and sending the first message to the corresponding gateway.
CN202010721219.6A 2020-07-24 2020-07-24 IPv 6-based networking access method and system Active CN111988441B (en)

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 CN111988441A (en) 2020-11-24
CN111988441B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583952B (en) * 2020-12-09 2023-01-24 北京金山云网络技术有限公司 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107580079A (en) * 2017-08-31 2018-01-12 新华三技术有限公司 A kind of message transmitting method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
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
CN106878135B (en) * 2016-12-21 2020-09-18 新华三技术有限公司 Connection method and device
CN106953805A (en) * 2017-03-17 2017-07-14 广州爱九游信息技术有限公司 Network line control method, device and service terminal
CN107197059B (en) * 2017-07-27 2019-12-06 杭州迪普科技股份有限公司 DNS (Domain name Server) analysis method and device
CN107547687B (en) * 2017-08-31 2021-02-26 新华三技术有限公司 Message transmission method and device
CN109413227B (en) * 2018-12-04 2020-05-19 睿哲科技股份有限公司 IPv4 user access IPv6 network intercommunication device and equipment based on multi-IPv 6 network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107580079A (en) * 2017-08-31 2018-01-12 新华三技术有限公司 A kind of message transmitting method and device

Also Published As

Publication number Publication date
CN111988441A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
US6480508B1 (en) Router-based domain name system proxy agent using address translation
US7533164B2 (en) Method and system for enabling connections into networks with local address realms
EP2671367B1 (en) Routing traffic towards a mobile node
US20050015507A1 (en) Invoking protocol translation in a multicast network
CN101325552B (en) Triangle forwarding method for access request and GLB server
CN101321111A (en) Communication method and device, server, and computer readable recording medium
US11425086B2 (en) Using DNS to communicate MC-TCP capability of server devices
US8843588B2 (en) Methods, apparatuses, related computer program product and data structure for distributed storage of service provision-related information
CN111988441B (en) IPv 6-based networking access method and system
CN114258667A (en) Method and device for obtaining IP address
CN104519097A (en) Port block resource acquisition method, port block resource allocation method and devices
US20230083671A1 (en) Domain Name System Services for Variable-Length Address Networks
CN111711706B (en) DNS recursive request method and system
CN111698341B (en) DNS authority response method and system
EP1046271A1 (en) Internet access by telephone
CN111970179B (en) Networking access method and system based on IPv6
CN115150312B (en) Routing method and device
WO2009012992A2 (en) Requester-aware domain name system
EP1360846B1 (en) Portability of a subscriber id
Shang et al. IVI-based locator/ID separation architecture for IPv4/IPv6 transition
CN104488250A (en) Message transmission method, device and server
Krishnan et al. Privacy Considerations for DHCPv6
CN114390021A (en) IPv6 single stack-based IDC service providing system and method
CN116800718A (en) Domain name query method and device, nonvolatile storage medium and electronic equipment
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