CN114070818B - Website access system, method and device - Google Patents

Website access system, method and device Download PDF

Info

Publication number
CN114070818B
CN114070818B CN202111363588.3A CN202111363588A CN114070818B CN 114070818 B CN114070818 B CN 114070818B CN 202111363588 A CN202111363588 A CN 202111363588A CN 114070818 B CN114070818 B CN 114070818B
Authority
CN
China
Prior art keywords
client
access request
gateway
target website
protocol stack
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
CN202111363588.3A
Other languages
Chinese (zh)
Other versions
CN114070818A (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.)
Hillstone Networks Co Ltd
Original Assignee
Hillstone Networks Co Ltd
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 Hillstone Networks Co Ltd filed Critical Hillstone Networks Co Ltd
Priority to CN202111363588.3A priority Critical patent/CN114070818B/en
Publication of CN114070818A publication Critical patent/CN114070818A/en
Application granted granted Critical
Publication of CN114070818B publication Critical patent/CN114070818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/251Translation of Internet protocol [IP] addresses between different IP versions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a website access system, a website access method and a website access device. The website access system comprises: the client is in communication connection with the gateway and the server and is used for sending an access request to the target website to the gateway, determining IP protocol stack information of the client through the detection page and sending the access request to the target website to the gateway again; the gateway is in communication connection with the client and is used for returning the detection page to the client, and returning the webpage content of the target website to the client under the condition that the access request carries the IP protocol stack information of the client; the server is in communication connection with the client and is used for carrying out domain name resolution on the public network adopting IPv4 for communication and returning a domain name resolution result to the client. Through the method and the device, the problems that when the NAT64 gateway is adopted to realize that an IPv6 single-stack user and a dual-stack user can open an IPv4 website, the gateway interacts with the IPv4 website for multiple times, so that the performance of gateway equipment is reduced and the access time of a client is increased are solved.

Description

Website access system, method and device
Technical Field
The present application relates to the field of internet, and in particular, to a website access system, method and apparatus.
Background
With the increasing number of internet users, the required IPv4 (Internet Protocol version internet protocol version four) addresses are also increasing, but the IPv4 addresses are of a fixed number, so that after the IPv4 addresses are exhausted, the IPv6 (Internet Protocol version internet protocol version six) addresses need to be introduced to replace the IPv4 addresses, but since the IPv6 single stack users cannot open the IPv4 outbound website in the website with the IPv6 addresses when accessing the website with the IPv6 addresses, the problems of accessing and rewriting the IPv4 outbound are required to be solved.
In order to solve the above problems, a method for accessing an IPv4 external link through a NAT64 gateway appears in the related art, but the method is effective for an IPv6 single-stack user, and meanwhile, the access experience of a dual-stack user is not considered.
In order to solve the above-mentioned problems, there is also a method for running an IPv4 probe service at a client in the related art, specifically, determining IP protocol stack information of the client, and determining whether to perform outgoing link rewriting on a request initiated by the client according to the IP protocol stack information. In this method, however, the NAT64 gateway needs to interact with the server twice, and when the NAT64 processes the first request, the NAT64 gateway needs to process the page returned by the server, which reduces the performance of the NAT64 gateway. In addition, under the condition that the first page content is complex, the loading and rendering time of the client is long, and the user experience effect is reduced.
Aiming at the problems of reduced performance of gateway equipment and increased access time of a client caused by multiple interactions between a gateway and an IPv4 website when an NAT64 gateway is adopted to realize that an IPv6 single-stack user and a dual-stack user can both open the IPv4 website in the related art, no effective solution is proposed at present.
Disclosure of Invention
The application provides a website access system, a method and a device, which are used for solving the problems that when an IPv6 single-stack and double-stack user can open an IPv4 website by adopting an NAT64 gateway, the gateway interacts with the IPv4 website for a plurality of times, so that the performance of gateway equipment is reduced and the access time of a client is increased.
According to one aspect of the present application, a website access system is provided. The system comprises: the client is in communication connection with the gateway and the server, and is used for sending an access request for a target website to the gateway, sending a domain name resolution request to the server through the detection page under the condition that a detection page returned by the gateway responding to the access request is received, determining IP protocol stack information of the client according to a domain name resolution result returned by the server, and sending the access request carrying the IP protocol stack information for the target website to the gateway again, wherein the target website adopts IPv4 for communication; the gateway is in communication connection with the client and is used for receiving an access request of the client for the target website, returning the detection page to the client when the IP protocol stack information of the client is not carried in the access request is analyzed, and returning the webpage content of the target website to the client when the IP protocol stack information of the client is carried in the access request; the server is in communication connection with the client and is used for carrying out domain name resolution on the public network adopting IPv4 for communication under the condition that the domain name resolution request sent by the client through the probe page is received, and returning a domain name resolution result to the client.
According to one aspect of the application, a website access method is provided. The method comprises the following steps: sending a first access request to a gateway, and acquiring a detection page returned by the gateway in response to the first access request, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, the first access request does not carry IP protocol stack information of a client, and the detection page is used for detecting the IP protocol stack information of the client; sending a domain name resolution request to a server through a detection page, acquiring a domain name resolution result returned by the server in response to the domain name resolution request, and determining IP protocol stack information of a client according to the domain name resolution result, wherein the server is used for carrying out domain name resolution on a public network, and the public network adopts IPv4 for communication; and sending a second access request to the target website to the gateway, and acquiring the webpage content of the target website returned by the gateway in response to the second access request, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client.
Optionally, determining the IP protocol stack information of the client according to the domain name resolution result includes: under the condition that the domain name resolution result is not null, determining that the IP protocol stack information of the client is double stacks; and under the condition that the domain name resolution result is null, determining the IP protocol stack information of the client to be an IPv6 single stack.
Optionally, before sending the second access request to the target website to the gateway and acquiring the webpage content of the target website returned by the gateway according to the second access request, the method further includes: and storing the IP protocol stack information of the client in a local terminal of the client.
Optionally, under the condition that the IP protocol stack information carried in the second access request is dual stack, acquiring the webpage content of the target website as the original content; and under the condition that the IP protocol stack information carried in the second access request is an IPv6 single stack, the obtained links in the webpage of the target website are adjusted to links corresponding to the IPv 6.
According to one aspect of the present application, another website access method is provided. The method comprises the following steps: receiving a first access request sent by a client and returning a detection page to the client, wherein the first access request is used for requesting to access a target website, the target website adopts IPv4 for communication, and the detection page is used for detecting IP protocol stack information of the client; and receiving a second access request sent by the client after the IP protocol stack information is determined through the probe page, and returning the webpage content of the target website to the client, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client.
Optionally, before receiving the first access request sent by the client and returning the probe page to the client, the method further includes: establishing communication connection with the detection page, and setting a triggering rule of the detection page, wherein the triggering rule is as follows: and under the condition that the access request of the client does not carry the IP protocol stack information of the client, interrupting the access request and returning a detection page to the client.
Optionally, after receiving the second access request sent by the client, the method further includes: and establishing communication connection with the target website and acquiring webpage content of the target website.
Optionally, returning the web content of the target website to the client includes: acquiring IP protocol stack information carried in the second access request; when the IP protocol stack information is double stack, returning the webpage content of the target website to the client; when the IP protocol stack information is an IPv6 single stack, links in the web pages in the target website are adjusted to links corresponding to the IPv6, adjusted web pages are obtained, and the adjusted web pages are returned to the client.
According to another aspect of the present application, a website accessing apparatus is provided. The device comprises: the first acquisition unit is used for sending a first access request to the gateway and acquiring a detection page returned by the gateway in response to the first access request, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, the first access request does not carry IP protocol stack information of the client, and the detection page is used for detecting the IP protocol stack information of the client; the second acquisition unit is used for sending a domain name resolution request to the server through the detection page, acquiring a domain name resolution result returned by the server in response to the domain name resolution request, and determining IP protocol stack information of the client according to the domain name resolution result, wherein the server is used for carrying out domain name resolution on a public network, and the public network adopts IPv4 for communication; the third obtaining unit is configured to send a second access request to the gateway for the target website, and obtain the web page content of the target website returned by the gateway in response to the second access request, where the second access request is used to request access to the target website, and the second access request carries IP protocol stack information of the client.
According to another aspect of the present application, another website accessing apparatus is provided. The device comprises: the first receiving unit is used for receiving a first access request sent by the client and returning a detection page to the client, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, and the detection page is used for detecting IP protocol stack information of the client; the second receiving unit is used for receiving a second access request sent by the client after the IP protocol stack information is determined by the detection page, and returning the webpage content of the target website to the client, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client.
Through the application, the following systems are employed: the client is in communication connection with the gateway and the server, and is used for sending an access request for a target website to the gateway, sending a domain name resolution request to the server through the detection page under the condition that a detection page returned by the gateway responding to the access request is received, determining IP protocol stack information of the client according to a domain name resolution result returned by the server, and sending the access request carrying the IP protocol stack information for the target website to the gateway again, wherein the target website adopts IPv4 (Internet Protocol version Internet protocol fourth edition) for communication; the gateway is in communication connection with the client and is used for receiving an access request of the client for the target website, returning the detection page to the client when the IP protocol stack information of the client is not carried in the access request is analyzed, and returning the webpage content of the target website to the client when the IP protocol stack information of the client is carried in the access request; the server is in communication connection with the client and is used for carrying out domain name resolution on the public network adopting IPv4 for communication under the condition that the domain name resolution request sent by the client through the probe page is received and returning a domain name resolution result to the client, so that the problems that when the NAT64 gateway is adopted to realize that IPv6 single stack and double stack users can open an IPv4 website, the gateway and the IPv4 website interact for a plurality of times, the performance of gateway equipment is reduced, and the access time of the client is increased are solved. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more rapidly while improving the performance of gateway equipment is achieved by returning a preset detection page in the NAT64 gateway and judging the IP protocol stack information of the client through the detection page.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
FIG. 1 is a schematic diagram of a website access system provided according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of website access provided in accordance with an embodiment of the present application;
FIG. 3 is a flow chart of another method of website access provided in accordance with an embodiment of the present application;
FIG. 4 is a flow chart of an alternative website access method provided in accordance with an embodiment of the present application;
FIG. 5 is a schematic diagram of a website accessing apparatus provided according to an embodiment of the present application;
fig. 6 is a schematic diagram of another website accessing apparatus according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, the following will describe some terms or terms related to the embodiments of the present application:
IPv4: internet Protocol version 4 (internet protocol version 4).
IPv6: internet Protocol version 4 (Internet protocol version 4), is the next-generation IP protocol designed by the Internet Engineering Task Force (IETF) to replace IPv 4.
NAT64 gateway: a stateful network address and protocol translation technique for implementing network access between IPv4 and IPv6 is typically used when an IPv6 host initiates communication to an IPv4 address.
Outer chain: the outer link refers to a link for importing own website at other websites.
HTTP: request-response protocol.
According to an embodiment of the application, a website access system is provided.
Fig. 1 is a schematic diagram of a website access system according to an embodiment of the present application. As shown in fig. 1, the system includes:
the client 10 is in communication connection with the gateway and the server, and is configured to send an access request for a target website to the gateway, and send a domain name resolution request to the server through the probe page when receiving the probe page returned by the gateway in response to the access request, determine IP protocol stack information of the client according to a domain name resolution result returned by the server, and send an access request carrying the IP protocol stack information for the target website to the gateway again, where the target website uses IPv4 for communication.
Specifically, the client 10 may use an IPv6 single stack protocol or an IPv4/IPv6 dual stack protocol, when the client 10 uses the IPv6 single stack protocol, when the client 10 accesses a target website, network access needs to be performed through the NAT64 gateway 20, at this time, the NAT64 gateway 20 cannot determine that the client is the IP stack information of the client 10, that is, cannot confirm that the client is the IPv6 single stack protocol or the IPv4/IPv6 dual stack protocol, so that the NAT64 gateway 20 cannot directly access the target website, but returns a preset probe page to the client 10, and automatically initiates a request to the htpdns server 30 through the probe page, performs domain name resolution on a public network of a certain IPv4 protocol, and returns a domain name resolution result, where the htpdns server 30 is a server that performs domain name resolution using the HTTP protocol, instead of the existing UDP-based DNS protocol, the htpdns server 30 returns the domain name resolution result to the client 10 through the probe page, and can determine that the IP stack information of the client 10 through the result, for example, when the domain name resolution is the public domain name server is accessed, if the corresponding to the IPv6 is the client is determined that the client is the single stack, that the domain name resolution is not able to be determined as the client 6, and the domain name resolution is not possible.
It should be noted that, after the IP protocol stack information of the client 10 is confirmed through the probe page, the NAT64 gateway 20 may identify the IP protocol stack information of the client 10 when the client 10 accesses the website next time by setting an identifier, and directly determine whether the client 10 is an IPv4/IPv6 dual stack or an IPv6 single stack according to the identifier of the client 10, where a Cookie may be set as the identifier for distinguishing the IP protocol stack information of the client 10. For example, when the client 10 is an IPv4/IPv6 dual stack, the Cookie value of the client 10 is set to 1; when the client 10 is an IPv6 single stack, the Cookie value of the client 10 is set to 0. By setting the Cookie value, it can be ensured that the Cookie identifier is carried when the client 10 accesses all websites before the client 10 closes the browser, and the NAT64 gateway 20 can quickly determine the IP protocol stack information of the client 10 according to the Cookie identifier of the client 10, and determine the return mode of the website accessed by the client 10, so as to quickly access the target website by the client 10.
The gateway 20 is in communication connection with the client, and is configured to receive an access request of the client for the target website, return the probe page to the client when the access request is analyzed that the IP protocol stack information of the client is not carried, and return the web page content of the target website to the client when the access request carries the IP protocol stack information of the client.
Specifically, the gateway 20 may be a NAT64 gateway, which is used to implement network access between IPv4 and IPv6, and is generally used when an IPv6 host initiates communication with an IPv4 address. When receiving an access request of the client 10 to the target website, the NAT64 gateway 20 confirms whether the client 10 has an identifier corresponding to the IP protocol stack information, if not, returns a preset probe web page to the client 10, determines the IP protocol stack information and adds the identifier, the NAT64 gateway 20 can identify the identifier corresponding to the IP protocol stack information in the access request of the client 10 to the target website, and then quickly determines the IP protocol stack information of the client 10 according to the identifier of the client 10, determines a return mode of the website accessed by the client 10, and quickly accesses the target website by the client 10.
And the server 30 is in communication connection with the client, and is used for carrying out domain name resolution on the public network adopting IPv4 for communication and returning a domain name resolution result to the client under the condition that the domain name resolution request sent by the client through the probe page is received.
Specifically, the server 30 may be an httpdns server, where httpdns uses the HTTP protocol to perform domain name resolution, instead of the existing UDP-based DNS protocol. The client 10 directly sends the domain name resolution request to the httpdns server 30 through the probe page, and the httpdns server performs domain name resolution on the public network of any IPv4 protocol, returns the domain name resolution result to the client 10, and confirms the IP protocol stack information of the client 10. After confirming the IP protocol stack information of the client 10, an identifier is set for the client 10, so that the NAT64 gateway 20 can quickly determine the IP protocol stack information of the client 10 when the client 10 accesses a subsequent website.
The website access system provided by the embodiment of the application is in communication connection with a gateway and a server through a client 10, and is used for sending an access request for a target website to the gateway, sending a domain name resolution request to the server through the detection page under the condition that a detection page returned by the gateway responding to the access request is received, determining IP protocol stack information of the client according to a domain name resolution result returned by the server, and sending the access request carrying the IP protocol stack information for the target website to the gateway again, wherein the target website adopts IPv4 (Internet Protocol version Internet protocol fourth edition) for communication; the gateway 20 is in communication connection with the client, and is configured to receive an access request of the client for the target website, return the probe page to the client when the access request is analyzed that the access request does not carry the IP protocol stack information of the client, and return the web page content of the target website to the client when the access request carries the IP protocol stack information of the client; and the server 30 is in communication connection with the client, and is used for carrying out domain name resolution on the public network adopting IPv4 for communication and returning a domain name resolution result to the client under the condition that the domain name resolution request sent by the client through the probe page is received. The method solves the problems that when the NAT64 gateway is adopted to realize that the IPv6 single stack and double stack users can open the IPv4 website, the gateway interacts with the IPv4 website for a plurality of times, so that the performance of gateway equipment is reduced and the access time of a client is increased. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more rapidly while improving the performance of gateway equipment is achieved by returning a preset detection page in the NAT64 gateway and judging the IP protocol stack information of the client through the detection page.
According to an embodiment of the application, a website access method is provided. Fig. 2 is a flowchart of a website access method according to an embodiment of the present application. As shown in fig. 2, the method includes:
step S201, a first access request is sent to a gateway, and a detection page returned by the gateway in response to the first access request is acquired, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, the first access request does not carry IP protocol stack information of a client, and the detection page is used for detecting the IP protocol stack information of the client.
Specifically, the gateway may be a NAT64 gateway, which is used to implement network access between IPv4 and IPv6, and is generally used when an IPv6 host initiates communication to an IPv4 address. When the client accesses the target website for the first time, the NAT64 gateway detects whether the client access request has the identifier corresponding to the IP protocol stack information of the client, and when the client access request does not have the identifier, the NAT64 returns a detection page to the client for acquiring the IP protocol stack information of the client and adding the identifier corresponding to the IP protocol stack information to the client.
It should be noted that, the probe page is simple, the content to be loaded is less, and the browser rendering is not needed, the client does not need to perform interactive operation when using the probe page, the probe page can enable the client to automatically initiate a request to the httpdns server, set a cookie for identifying the single stack and the double stack of the client according to the returned result, and automatically initiate a second request to the NAT64, so as to complete the secondary access to the target website.
Step S203, a domain name resolution request is sent to a server through a detection page, a domain name resolution result returned by the server in response to the domain name resolution request is obtained, and IP protocol stack information of the client is determined according to the domain name resolution result, wherein the server is used for performing domain name resolution on a public network, and the public network adopts IPv4 for communication.
Specifically, the probe page automatically initiates a request to the httpdns server, performs domain name resolution on a public network of an IPv4 protocol, and returns a domain name resolution result, wherein the httpdns server is a server which performs domain name resolution by using an HTTP protocol, replaces the conventional DNS protocol based on UDP, returns the domain name resolution result to the client through the probe page, and can judge IP protocol stack information of the client through the resolution result, for example, when the domain name resolution result is a domain name corresponding to the accessed public network, the client is judged to be an IPv4/IPv6 dual stack protocol, and if the returned resolution result is empty, that is, the client is judged to be an IPv6 single stack protocol.
Step S205, a second access request for the target website is sent to the gateway, and the webpage content of the target website returned by the gateway in response to the second access request is obtained, wherein the second access request is used for requesting access to the target website, and the second access request carries IP protocol stack information of the client.
Specifically, after the IP protocol stack information of the client is confirmed, the detection page adds an identifier to the client, when the client automatically accesses the target website for the second time through the detection page, the NAT64 gateway identifies the identifier of the client, returns the target website according to the identifier, and achieves the effect of the client rapidly accessing the target website.
According to the website access method provided by the embodiment of the application, the first access request is sent through the gateway, and the detection page returned by the gateway in response to the first access request is obtained, wherein the first access request is used for requesting access to the target website, the target website adopts IPv4 for communication, the first access request does not carry IP protocol stack information of the client, and the detection page is used for detecting the IP protocol stack information of the client; sending a domain name resolution request to a server through a detection page, acquiring a domain name resolution result returned by the server in response to the domain name resolution request, and determining IP protocol stack information of a client according to the domain name resolution result, wherein the server is used for carrying out domain name resolution on a public network, and the public network adopts IPv4 for communication; and sending a second access request to the target website to the gateway, and acquiring the webpage content of the target website returned by the gateway in response to the second access request, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client. The method solves the problems that when the NAT64 gateway is adopted to realize that the IPv6 single stack and double stack users can open the IPv4 website, the gateway interacts with the IPv4 website for a plurality of times, so that the performance of gateway equipment is reduced and the access time of a client is increased. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more rapidly while improving the performance of gateway equipment is achieved by returning a preset detection page in the NAT64 gateway and judging the IP protocol stack information of the client through the detection page.
Optionally, in order to determine IP protocol stack information of the client, in the website access method provided in the embodiment of the present application, determining the IP protocol stack information of the client according to a domain name resolution result includes: under the condition that the domain name resolution result is not null, determining that the IP protocol stack information of the client is double stacks; and under the condition that the domain name resolution result is null, determining the IP protocol stack information of the client to be an IPv6 single stack.
Specifically, after receiving a domain name resolution result returned by the detection page, the detection page can judge the IP protocol stack information of the client through the resolution result, for example, when the domain name resolution result is a domain name corresponding to the accessed public network, the client is judged to be an IPv4/IPv6 dual stack protocol, and if the returned resolution result is null, that is, the resolution is impossible, the client is judged to be an IPv6 single stack protocol.
After judging the IP protocol stack information of the client, performing identification addition according to the judging result, for example, when the client is in an IPv4/IPv6 dual stack, setting the Cookie value of the client to be 1; when the client is an IPv6 single stack, the Cookie value of the client is set to 0. The NAT64 gateway can judge the IP protocol stack information of the client through the Cookie identification.
Optionally, in order to store the IP protocol stack information of the client after confirming the IP protocol stack information of the client, in the website access method provided in the embodiment of the present application, before sending a second access request to the gateway to the target website and acquiring the web content of the target website returned by the gateway according to the second access request, the method further includes: and storing the IP protocol stack information of the client in a local terminal of the client.
Specifically, after the client determines the IP protocol stack information of the client through the probe page, the IP protocol stack information of the client may be stored in the local terminal in an identification manner, and when accessing to different IPv4 websites next time, the determined identification is directly used to mark the IP protocol stack information of the client, so that the determination of the IP protocol stack information of the client is not required to be performed again by using the probe page.
Optionally, in order to enable the client to quickly access the target website and the external link in the target website, in the website access method provided by the embodiment of the present application, in the case that the IP protocol stack information carried in the second access request is dual-stack, the web page content of the target website is obtained as the original content; and under the condition that the IP protocol stack information carried in the second access request is an IPv6 single stack, the obtained links in the webpage of the target website are adjusted to links corresponding to the IPv 6.
Specifically, the client reflects the IP protocol stack information of the client by setting the Cookie identification, and when the NAT64 gateway receives the access request from the client to the target website, the Cookie identification in the request is analyzed to confirm the IP protocol stack information of the client. If the client is identified as an IPv4/IPv6 dual stack client, the client can directly access the target website through IPv6, even if the external link of the target website uses an IPv4 network, the client can still access the IPv4 network in the dual stack, and the NAT64 gateway does not need to rewrite the external link of the request initiated by the client. If the client is identified as an IPv6 single stack client, the client can only access the target website through IPv6, and if the external link in the target website uses an IPv4 network, the client cannot normally access the website, so that the NAT64 gateway needs to rewrite the external link of the target website of the access request initiated by the IPv6 single stack client, and the client can access the external link in the target website through IPv 6.
According to an embodiment of the application, another website access method is provided. Fig. 3 is a flowchart of another website access method according to an embodiment of the present application. As shown in fig. 3, the method includes:
Step S301, a first access request sent by a client is received, and a detection page is returned to the client, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, and the detection page is used for detecting IP protocol stack information of the client.
Specifically, when the NAT64 gateway receives a first access request initiated by the client to the target website, it first confirms whether the client carries an identifier corresponding to the IP protocol stack information, if not, a preset probe webpage is returned to the client, and the IP protocol stack information of the client is confirmed through the probe webpage.
Step S303, receiving a second access request sent by the client after determining the IP protocol stack information through the probe page, and returning the webpage content of the target website to the client, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client.
Specifically, after the probe page confirms the IP protocol stack information of the client, the identifier corresponding to the IP protocol stack information is added to the second access request of the client to the target website, the NAT64 gateway analyzes the second access request, and when the identifier capable of identifying the IP protocol stack information of the client is analyzed, the NAT64 gateway rapidly determines the IP protocol stack information of the client according to the identifier, determines the return mode of the website accessed by the client, and rapidly accesses the target website by the client.
According to the website access method, the first access request sent by the client is received, and the detection page is returned to the client, wherein the first access request is used for requesting access to the target website, the target website adopts IPv4 for communication, and the detection page is used for detecting IP protocol stack information of the client; and receiving a second access request sent by the client after the IP protocol stack information is determined through the probe page, and returning the webpage content of the target website to the client, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client. The method solves the problems that when the NAT64 gateway is adopted to realize that the IPv6 single stack and double stack users can open the IPv4 website, the gateway interacts with the IPv4 website for a plurality of times, so that the performance of gateway equipment is reduced and the access time of a client is increased. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more rapidly while improving the performance of gateway equipment is achieved by returning a preset detection page in the NAT64 gateway and judging the IP protocol stack information of the client through the detection page.
Optionally, in order to quickly confirm the IP protocol stack information of the client, in the website access method provided in the embodiment of the present application, before receiving the first access request sent by the client and returning the probe page to the client, the method further includes: establishing communication connection with the detection page, and setting a triggering rule of the detection page, wherein the triggering rule is as follows: and under the condition that the access request of the client does not carry the IP protocol stack information of the client, interrupting the access request and returning a detection page to the client.
Specifically, before the client accesses the target website, a preset probe page is required to be connected with the NAT64 gateway, and a trigger rule of the probe page is set, for example, an identifier corresponding to the IP protocol stack information of the client is not identified by the NAT64 gateway as the trigger rule, when the identifier corresponding to the IP protocol stack information of the client is not identified by the NAT64 gateway, the trigger rule is used to interrupt the access of the client to the target website, and the probe page is returned to the client to confirm the IP protocol stack information of the client, and an identifier corresponding to the IP protocol stack information of the client is set.
Optionally, in order to access the target website through the NAT64 gateway, in the website access method provided in the embodiment of the present application, after receiving the second access request sent by the client, the method further includes: and establishing communication connection with the target website and acquiring webpage content of the target website.
Specifically, when the client uses the IPv6 network, if the target website is an IPv4 website, the conversion from IPv6 to IPv4 access needs to be performed through the NAT64 gateway, so that the NAT64 gateway needs to be connected to the target website, thereby obtaining the web page content of the target website, and performing the rewriting of the outer link in the target website according to the IP protocol stack information of the client.
Optionally, in order to quickly confirm the IP protocol stack information of the client, in the website access method provided in the embodiment of the present application, returning the web content of the target website to the client includes: acquiring IP protocol stack information carried in the second access request; when the IP protocol stack information is double stack, returning the webpage content of the target website to the client; when the IP protocol stack information is an IPv6 single stack, links in the web pages in the target website are adjusted to links corresponding to the IPv6, adjusted web pages are obtained, and the adjusted web pages are returned to the client.
Specifically, the client reflects the IP protocol stack information of the client by setting the Cookie identification, and when the NAT64 gateway receives the access request from the client to the target website, the Cookie identification in the request is analyzed to confirm the IP protocol stack information of the client. If the client is identified as an IPv 4/dual stack client, the client can directly access the target website through IPv6, even if the IPv4 network is used as an external link in the target website, the client can still access the IPv4 network in the dual stack, and the NAT64 gateway does not need to rewrite the external link of the request initiated by the client. If the client is identified as an IPv6 single stack client, the client can only access the target website through IPv6, and if the external link in the target website uses an IPv4 network, the client cannot normally access the website, so that the NAT64 gateway needs to rewrite the external link of the target website of the access request initiated by the IPv6 single stack client, and the client can access the external link in the target website through IPv 6.
An embodiment of an alternative website access method is provided below, and fig. 4 is a flowchart of an alternative website access method provided according to an embodiment of the present application, as shown in fig. 4:
the client initiates an access request to the target website for the first time to the NAT64, the NAT64 gateway analyzes the request sent by the client, and does not find the identification of the IP protocol stack information of the client, so the NAT64 gateway returns the probe webpage to the client, the client automatically sends the access request to the httpdns server through the probe webpage, the httpdns server carries out domain name analysis on any IPv4 network and returns the analysis result of the client, the probe webpage judges the IP protocol stack information of the client through the return result, the tag corresponding to the IP protocol stack information is stored in the local terminal, and the tag is indicated to be added in the access request and sent to the NAT64 gateway when the client accesses the website.
It should be noted that, when the client is an IPv4/IPv6 dual-stack client, the client may directly access the target website through the NAT64 gateway, and even if the IPv4 network is used as the external link in the target website, the client may still access the IPv4 network in the dual-stack, so that the NAT64 gateway does not need to rewrite the external link of the request initiated by the client; when the client is an IPv6 single-stack client, the client can only request the NAT64 gateway to access the target website through IPv6, when the IPv4 network exists in the external link in the target website, the NAT64 gateway needs to rewrite the external link of the target website of the access request initiated by the IPv6 single-stack client, and at the moment, the client can directly access the external link in the target website through IPv6, so that the purpose of the client to quickly access the external link in the target website is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a website access device, and the website access device can be used for executing the website access method provided by the embodiment of the application. The website access device provided in the embodiment of the present application is described below.
Fig. 5 is a schematic diagram of a website access apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:
a first obtaining unit 40, configured to send a first access request to the gateway, and obtain a probe page returned by the gateway in response to the first access request, where the first access request is used to request access to a target website, the target website uses IPv4 to communicate, the first access request does not carry IP protocol stack information of the client, and the probe page is used to probe the IP protocol stack information of the client;
the second obtaining unit 50 is configured to send a domain name resolution request to a server through a probe page, obtain a domain name resolution result returned by the server in response to the domain name resolution request, and determine IP protocol stack information of the client according to the domain name resolution result, where the server is configured to perform domain name resolution on a public network, and the public network uses IPv4 for communication;
And a third obtaining unit 60, configured to send a second access request to the gateway for requesting access to the target website, where the second access request carries IP protocol stack information of the client, and obtain the web page content of the target website returned by the gateway in response to the second access request.
According to the website access device provided by the embodiment of the application, the first access request is sent to the gateway through the first acquisition unit 40, and the detection page returned by the gateway in response to the first access request is acquired, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, the first access request does not carry IP protocol stack information of the client, and the detection page is used for detecting the IP protocol stack information of the client; the second obtaining unit 50 sends a domain name resolution request to the server through the detection page, obtains a domain name resolution result returned by the server in response to the domain name resolution request, and determines IP protocol stack information of the client according to the domain name resolution result, wherein the server is used for performing domain name resolution on a public network, and the public network adopts IPv4 for communication; the third obtaining unit 60 sends a second access request to the gateway to the target website, and obtains the webpage content of the target website returned by the gateway in response to the second access request, where the second access request is used to request access to the target website, and the second access request carries the IP protocol stack information of the client, which solves the problems that when the NAT64 gateway is adopted to realize that both the IPv6 single-stack and dual-stack users can open the IPv4 website, the gateway interacts with the IPv4 website for multiple times, resulting in reduced performance of the gateway device and increased access time of the client. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more rapidly while improving the performance of gateway equipment is achieved by returning a preset detection page in the NAT64 gateway and judging the IP protocol stack information of the client through the detection page.
Optionally, in the website accessing apparatus provided in the embodiment of the present application, the second obtaining unit includes 50: the first determining module is used for determining that the IP protocol stack information of the client is double stacks under the condition that the domain name resolution result is not null; and the second determining module is used for determining that the IP protocol stack information of the client is an IPv6 single stack under the condition that the domain name resolution result is null.
Optionally, in the website access apparatus provided in the embodiment of the present application, the website access apparatus further includes: and the storage unit is used for storing the IP protocol stack information of the client in the local terminal of the client.
Optionally, in the website access device provided in the embodiment of the present application, the website access device further includes a fourth obtaining unit, configured to obtain, when the IP protocol stack information carried in the second access request is dual stack, that the webpage content of the target website is an original content; and a fifth obtaining unit, configured to, when the IP protocol stack information carried in the second access request is an IPv6 single stack, adjust the link in the obtained web page of the target website to a link corresponding to IPv 6.
The website accessing apparatus includes a processor and a memory, the first, second, third, etc. obtaining units 40, 50, 60 are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The embodiment of the application also provides another website access device, and it should be noted that the website access device of the embodiment of the application can be used for executing the website access method provided by the embodiment of the application. The website access device provided in the embodiment of the present application is described below.
Fig. 6 is a schematic diagram of another website accessing apparatus according to an embodiment of the present application. As shown in fig. 6, the apparatus includes:
the first receiving unit 70 is configured to receive a first access request sent by the client, and return a probe page to the client, where the first access request is used to request access to a target website, the target website uses IPv4 to communicate, and the probe page is used to probe IP protocol stack information of the client;
and the second receiving unit 80 is configured to receive a second access request sent by the client after the IP protocol stack information is determined by the probe page, and return the web page content of the target website to the client, where the second access request is used for requesting access to the target website, and the second access request carries the IP protocol stack information of the client.
The website access device provided by the embodiment of the application receives the first access request sent by the client through the first receiving unit 70, and returns the detection page to the client, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, and the detection page is used for detecting IP protocol stack information of the client; the second receiving unit 80 receives a second access request sent by the client after determining the IP protocol stack information through the probe page, and returns the webpage content of the target website to the client, where the second access request is used to request access to the target website, and the second access request carries the IP protocol stack information of the client, which solves the problems that when the NAT64 gateway is adopted to realize that both the IPv6 single-stack and dual-stack users can open the IPv4 website, the gateway interacts with the IPv4 website for multiple times, resulting in reduced performance of the gateway device and increased access time of the client. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more rapidly while improving the performance of gateway equipment is achieved by returning a preset detection page in the NAT64 gateway and judging the IP protocol stack information of the client through the detection page.
Optionally, in the website access apparatus provided in the embodiment of the present application, the website access apparatus further includes: the first connection unit is used for establishing communication connection with the detection page and setting a triggering rule of the detection page, wherein the triggering rule is as follows: and under the condition that the access request of the client does not carry the IP protocol stack information of the client, interrupting the access request and returning a detection page to the client.
Optionally, in the website access apparatus provided in the embodiment of the present application, the website access apparatus further includes: the second connection unit is used for establishing communication connection with the target website and acquiring webpage content of the target website.
Optionally, in the website accessing apparatus provided in the embodiment of the present application, the second receiving unit 80 includes: the acquisition module is used for acquiring the IP protocol stack information carried in the second access request; the first return module is used for returning the webpage content of the target website to the client when the IP protocol stack information is double-stack; and the second return module is used for adjusting the links in the webpage in the target website to the links corresponding to the IPv6 when the IP protocol stack information is the IPv6 single stack, obtaining the adjusted webpage, and returning the adjusted webpage to the client.
The website accessing apparatus includes a processor and a memory, the first receiving unit 70, the second receiving unit 80, etc. are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the problems of reduced gateway equipment performance and increased client access time caused by the fact that an IPv6 single-stack user and a double-stack user can open an IPv4 website through the NAT64 gateway are solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the application also provides a nonvolatile storage medium, which comprises a stored program, wherein the program is used for controlling equipment where the nonvolatile storage medium is located to execute a website access method when running.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory; the memory has stored therein computer readable instructions, and the processor is configured to execute the computer readable instructions, wherein the computer readable instructions when executed perform a website access method. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (11)

1. A web site access system, comprising:
the client is in communication connection with the gateway and the server, and is used for sending an access request for a target website to the gateway, sending a domain name resolution request to the server through the detection page under the condition that the gateway receives a preset detection page returned by the gateway in response to the access request of the client for accessing the target website for the first time, determining IP protocol stack information of the client according to a domain name resolution result returned by the server, and sending the access request carrying the IP protocol stack information for the target website to the gateway again, wherein the target website adopts IPv4 for communication;
the gateway is in communication connection with the client and is used for receiving an access request of the client for the target website, and returning a preset detection page to the client instead of directly accessing the target website under the condition that the IP protocol stack information of the client is not carried in the access request, and returning the webpage content of the target website to the client under the condition that the IP protocol stack information of the client is carried in the access request;
The server is in communication connection with the client, and is configured to perform domain name resolution on a public network that uses IPv4 to communicate, and return a domain name resolution result to the client when receiving a domain name resolution request sent by the client through the probe page.
2. A method for accessing a website, wherein the method is applied to the website accessing system as set forth in claim 1, and comprises:
sending a first access request to a gateway, and acquiring a detection page returned by the gateway in response to the first access request, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, the first access request does not carry IP protocol stack information of a client, the detection page is used for detecting the IP protocol stack information of the client, and the gateway does not directly access the target website but returns a preset detection page to the client; the gateway responds to an access request of the client for accessing the target website for the first time and returns a preset detection page in the gateway to the client;
sending a domain name resolution request to a server through the detection page, acquiring a domain name resolution result returned by the server in response to the domain name resolution request, and determining IP protocol stack information of the client according to the domain name resolution result, wherein the server is used for performing domain name resolution on a public network, and the public network adopts IPv4 for communication;
And sending a second access request to the target website to the gateway, and acquiring webpage content of the target website returned by the gateway in response to the second access request, wherein the second access request is used for requesting to access the target website, and the second access request carries IP protocol stack information of the client.
3. The method of claim 2, wherein determining the IP protocol stack information of the client according to the domain name resolution result comprises:
under the condition that the domain name resolution result is not null, determining that the IP protocol stack information of the client is double stacks;
and under the condition that the domain name resolution result is null, determining the IP protocol stack information of the client to be an IPv6 single stack.
4. The method of claim 2, wherein before sending a second access request to the gateway for the target website and obtaining the web content of the target website returned by the gateway according to the second access request, the method further comprises:
and storing the IP protocol stack information of the client in a local terminal of the client.
5. The method of claim 2, wherein, in the case that the IP protocol stack information carried in the second access request is dual stack, acquiring the web page content of the target website as the original content;
And under the condition that the IP protocol stack information carried in the second access request is an IPv6 single stack, the acquired links in the webpage of the target website are adjusted to links corresponding to IPv 6.
6. A method for accessing a website, wherein the method is applied to the website accessing system as set forth in claim 1, and comprises:
the gateway receives a first access request sent by a client and returns a detection page to the client, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, the detection page is used for detecting IP protocol stack information of the client, and the gateway does not directly access the target website but returns a preset detection page to the client; the gateway responds to an access request of the client for accessing the target website for the first time and returns a preset detection page in the gateway to the client;
and receiving a second access request sent by the client after the IP protocol stack information is determined through the detection page, and returning the webpage content of the target website to the client, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client.
7. The method of claim 6, wherein prior to receiving the first access request sent by the client and returning the probe page to the client, the method further comprises:
establishing communication connection with the detection page, and setting a triggering rule of the detection page, wherein the triggering rule is as follows: and under the condition that the access request of the client does not carry the IP protocol stack information of the client, interrupting the access request and returning the detection page to the client.
8. The method of claim 6, wherein after receiving the second access request sent by the client, the method further comprises:
and establishing communication connection with the target website and acquiring webpage content of the target website.
9. The method of claim 6, wherein returning the web content of the target web site to the client comprises:
acquiring the IP protocol stack information carried in the second access request;
returning the webpage content of the target website to the client when the IP protocol stack information is double-stack;
and when the IP protocol stack information is an IPv6 single stack, adjusting links in the webpage in the target website to links corresponding to the IPv6, obtaining an adjusted webpage, and returning the adjusted webpage to the client.
10. A web site access device, comprising:
the gateway is used for responding to the first access request, and sending a first access request to the gateway, wherein the first access request is used for requesting to access a target website, the target website adopts IPv4 for communication, the first access request does not carry IP protocol stack information of a client, the probe page is used for probing the IP protocol stack information of the client, and the gateway does not directly access the target website but returns a preset probe page to the client; the gateway responds to an access request of the client for accessing the target website for the first time and returns a preset detection page in the gateway to the client;
the second obtaining unit is used for sending a domain name resolution request to a server through the detection page, obtaining a domain name resolution result returned by the server in response to the domain name resolution request, and determining IP protocol stack information of the client according to the domain name resolution result, wherein the server is used for carrying out domain name resolution on a public network, and the public network adopts IPv4 for communication;
The third obtaining unit is configured to send a second access request to the gateway to the target website, and obtain web content of the target website returned by the gateway in response to the second access request, where the second access request is used to request access to the target website, and the second access request carries IP protocol stack information of the client.
11. A web site access device, comprising:
the gateway is used for receiving a first access request sent by a client and returning a detection page to the client, wherein the first access request is used for requesting access to a target website, the target website adopts IPv4 for communication, the detection page is used for detecting IP protocol stack information of the client, and the gateway does not directly access the target website but returns a preset detection page to the client; the gateway responds to an access request of the client for accessing the target website for the first time and returns a preset detection page in the gateway to the client;
the second receiving unit is used for receiving a second access request sent by the client after the IP protocol stack information is determined by the detection page, and returning the webpage content of the target website to the client, wherein the second access request is used for requesting to access the target website, and the second access request carries the IP protocol stack information of the client.
CN202111363588.3A 2021-11-17 2021-11-17 Website access system, method and device Active CN114070818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111363588.3A CN114070818B (en) 2021-11-17 2021-11-17 Website access system, method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111363588.3A CN114070818B (en) 2021-11-17 2021-11-17 Website access system, method and device

Publications (2)

Publication Number Publication Date
CN114070818A CN114070818A (en) 2022-02-18
CN114070818B true CN114070818B (en) 2024-04-02

Family

ID=80277369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111363588.3A Active CN114070818B (en) 2021-11-17 2021-11-17 Website access system, method and device

Country Status (1)

Country Link
CN (1) CN114070818B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8861525B1 (en) * 2011-07-28 2014-10-14 Juniper Networks, Inc. Cloud-based network protocol translation data center
CN109862130A (en) * 2019-02-18 2019-06-07 深信服科技股份有限公司 A kind of access IPv4 exterior chain method, apparatus, equipment and computer media
WO2020140433A1 (en) * 2019-01-02 2020-07-09 北京宏图佳都通信设备有限公司 Ipv4/ipv6 address translation system
CN111600972A (en) * 2020-05-15 2020-08-28 咪咕视讯科技有限公司 Configuration method of double-stack address, server and readable storage medium
CN112771835A (en) * 2020-12-25 2021-05-07 山石网科通信技术股份有限公司 Processing method and device for outer chain rewriting

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8443365B2 (en) * 2010-11-03 2013-05-14 Hewlett-Packard Development Company, L.P. Methods and systems to clone a virtual machine instance
US10003565B2 (en) * 2012-03-22 2018-06-19 Time Warner Cable Enterprises Llc Use of DNS information as trigger for dynamic IPV4 address allocation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8861525B1 (en) * 2011-07-28 2014-10-14 Juniper Networks, Inc. Cloud-based network protocol translation data center
WO2020140433A1 (en) * 2019-01-02 2020-07-09 北京宏图佳都通信设备有限公司 Ipv4/ipv6 address translation system
CN109862130A (en) * 2019-02-18 2019-06-07 深信服科技股份有限公司 A kind of access IPv4 exterior chain method, apparatus, equipment and computer media
CN111600972A (en) * 2020-05-15 2020-08-28 咪咕视讯科技有限公司 Configuration method of double-stack address, server and readable storage medium
CN112771835A (en) * 2020-12-25 2021-05-07 山石网科通信技术股份有限公司 Processing method and device for outer chain rewriting

Also Published As

Publication number Publication date
CN114070818A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN110830458A (en) Domain name access method, system and equipment
CN107613037B (en) Domain name redirection method and system
CN108769189B (en) Cross-network-domain resource access method and device
CN109327559B (en) Domain name resolution method and device based on hybrid cloud platform
JP6666441B2 (en) IP address obtaining method and apparatus
CN110868361A (en) Gateway load balancing method, device and equipment
CN110933193B (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
CN114465791B (en) Method and device for establishing white list in network management equipment, storage medium and processor
CN114448849B (en) Method for detecting supporting mode of IPv6 network of website and electronic equipment
CN110061888B (en) Network protocol type judgment method and device, computer equipment and storage medium
CN108541000B (en) Method, medium and device for detecting network connection
CN112671574B (en) Front-end and back-end joint debugging method and device, proxy equipment and storage medium
CN114070818B (en) Website access system, method and device
CN112771835B (en) Method and device for processing outer link rewriting
CN109951549B (en) Network page access method and device and computer readable storage medium
US10375141B2 (en) Method for processing URL and associated server and non-transitory computer readable storage medium
CN111225038A (en) Server access method and device
CN114285856B (en) IPV4 external link access method and device
CN114143230B (en) Dual-stack user DNS analysis duration calculation method and device
CN115243248B (en) Method and device for identifying traffic sharing type of terminal and electronic equipment
CN116074386B (en) Service calling method and device, service registration method and device
CN116319664A (en) Point-to-point network penetration method, system, electronic equipment and storage medium
CN113315849B (en) Data processing method, device, equipment and storage medium
CN111835778B (en) Method and equipment for realizing cross-domain access of first-level domain name
CN114697380B (en) Redirection method, system, device and storage medium for access request

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