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

Website access system, method and device Download PDF

Info

Publication number
CN114070818A
CN114070818A CN202111363588.3A CN202111363588A CN114070818A CN 114070818 A CN114070818 A CN 114070818A CN 202111363588 A CN202111363588 A CN 202111363588A CN 114070818 A CN114070818 A CN 114070818A
Authority
CN
China
Prior art keywords
client
access request
access
protocol stack
target website
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111363588.3A
Other languages
Chinese (zh)
Other versions
CN114070818B (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

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/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, method and device. The website access system includes: the client is in communication connection with the gateway and the server, and is used for sending an access request to a target website to the gateway, determining IP protocol stack information of the client by detecting a 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; and the server is in communication connection with the client and is used for performing domain name resolution on the public network which performs communication by adopting IPv4 and returning a domain name resolution result to the client. By the method and the device, the problems that when the IPv6 single-stack user and the dual-stack user can open the IPv4 website by adopting the NAT64 gateway, the gateway and the IPv4 website interact for many 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 application relates to the field of internet, in particular to a website access system, method and device.
Background
With the increasing number of Internet users, more and more IPv4(Internet Protocol version 4 Internet Protocol version four) addresses are needed, but the IPv4 addresses are fixed, so after the IPv4 addresses are exhausted, IPv6(Internet Protocol version 6 Internet Protocol version six) addresses need to be introduced to replace the IPv4 addresses, but when an IPv6 single-stack user accesses a website with an IPv6 address, the IPv4 external link website in the website cannot be opened, so the problems of access and rewriting of the IPv4 external link need 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 IPv6 single-stack users, and meanwhile, the access experience of dual-stack users is not considered, in the method, the dual-stack users also access the external link through the NAT64, and after a series of processing by the NAT64 gateway, the page is returned to the users, and compared with the case that the user directly accesses the external link, the slow page opening occurs, and the dual-stack user experience is affected.
In order to solve the above problem, a method for running an IPv4 probe service on a client also appears in the related art, and specifically, IP protocol stack information of the client is determined, and whether to perform outer-link rewriting on a request initiated by the client is determined according to the IP protocol stack information. However, in this method, the NAT64 gateway needs to interact with the server twice, and meanwhile, when the NAT64 processes the first request, the NAT64 also needs to process the page returned by the server, which reduces the performance of the NAT64 gateway. In addition, under the condition that the content of the first page is relatively complex, the loading and rendering time of the client is relatively long, and the user experience effect is reduced.
Aiming at the problems that in the prior art, when the NAT64 gateway is adopted to realize that both IPv6 single-stack users and dual-stack users can open IPv4 websites, the gateway and the IPv4 website interact for many times, so that the performance of gateway equipment is reduced and the access time of a client is increased, an effective solution is not provided at present.
Disclosure of Invention
The application provides a website access system, a website access method and a website access device, which are used for solving the problems that when an IPv6 single-stack user and a dual-stack user can open an IPv4 website by adopting an NAT64 gateway, the gateway and the IPv4 website interact for many 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 aiming at a target website to the gateway, sending a domain name resolution request to the server through the detection page under the condition of receiving a detection page returned by the gateway responding to the access request, 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 aiming at the target website to the gateway again, wherein the target website communicates by adopting IPv 4; the gateway is in communication connection with the client and is used for receiving an access request of the client for a target website, returning the detection page to the client 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; and the server is in communication connection with the client and is used for performing domain name resolution on the public network which performs communication by adopting the IPv4 under the condition of receiving a domain name resolution request sent by the client through the detection page, and returning a domain name resolution result to the client.
According to an aspect of the present application, there is provided a website access method. 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 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, 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 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 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: determining that the IP protocol stack information of the client is a double stack under the condition that the domain name resolution result is not empty; and under the condition that the domain name resolution result is empty, determining that the IP protocol stack information of the client is an IPv6 single stack.
Optionally, before sending a second access request to the target website to the gateway and acquiring the web page 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, when the IP protocol stack information carried in the second access request is a 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, adjusting the acquired link in the webpage of the target website to a link corresponding to IPv 6.
According to an 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 client determines the IP protocol stack information 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 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 trigger rule of the detection page, wherein the trigger 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 the webpage content of the target website.
Optionally, returning the web page 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 a double stack, returning the webpage content of the target website to the client; and when the IP protocol stack information is an IPv6 single stack, adjusting the link in the webpage in the target website to the link corresponding to the IPv6 to obtain an adjusted webpage, and returning the adjusted webpage to the client.
According to another aspect of the present application, there is provided a website access apparatus. The device includes: the first obtaining unit is used for sending a first access request to the gateway and obtaining a detection page returned by the gateway in response to the first access request, wherein the first access request is used for requesting to access a target website, the target website is communicated by adopting IPv4, 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 performing domain name resolution on a public network, and the public network adopts IPv4 for communication; and the third acquiring unit is used for 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 carries the IP protocol stack information of the client.
According to another aspect of the present application, another website access apparatus is provided. The device includes: 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 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 the second receiving unit is used for receiving a second access request sent by the client after the client determines the IP protocol stack information 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.
By this application, the following system is employed: the client is in communication connection with the gateway and the server, and is used for sending an access request aiming at a target website to the gateway, sending a domain name resolution request to the server through the detection page under the condition of receiving a detection page returned by the gateway responding to the access request, 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 aiming at the target website to the gateway again, wherein the target website communicates by adopting IPv4(Internet Protocol version 4 Internet Protocol fourth edition); the gateway is in communication connection with the client and is used for receiving an access request of the client for a target website, returning the detection page to the client 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 used for performing domain name resolution on a public network which communicates by adopting IPv4 under the condition that a domain name resolution request sent by the client through a detection page is received, and returning a domain name resolution result to the client, so that the problems that when an IPv4 website can be opened by a user who adopts an NAT64 gateway to realize IPv6 single stack and double stack, the gateway and the IPv4 website interact for many 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 quickly while improving the performance of gateway equipment is achieved by returning to the 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 incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a schematic diagram of a website access system provided in accordance with an embodiment of the present application;
FIG. 2 is a flowchart of a website access method provided according to an embodiment of the present application;
FIG. 3 is a flow chart of another website access method provided according to an embodiment of the application;
FIG. 4 is a flowchart 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 access apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of another website access device provided in an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. 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, some terms or expressions referred to in the embodiments of the present application are explained below:
IPv 4: internet Protocol version 4(Internet Protocol version 4).
IPv 6: internet Protocol version 4(Internet Protocol version 4) is a 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 enabling network access between IPv4 and IPv6 is typically used when an IPv6 host initiates communication to an IPv4 address.
Outer chain: the out link is a link for importing the own website to another website.
HTTP: request-response protocol.
According to an embodiment of the present 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:
and 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 further configured to send a domain name resolution request to the server through the probe page when receiving a 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 communicates with the gateway using IPv 4.
Specifically, the client 10 may use an IPv6 single stack protocol or an IPv4/IPv6 dual stack protocol, when the client 10 uses an IPv6 single stack protocol, and the client 10 accesses a target website, it needs to perform network access through the NAT64 gateway 20, at this time, the NAT64 gateway 20 cannot determine the IP protocol 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 the NAT64 gateway 20 does not 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, and the htpdns server 30 returns the domain name resolution result to the client 10 through the probe page, the IP protocol stack information of the client 10 can be determined according to the resolution result, for example, when the domain name resolution result is the domain name corresponding to the accessed public network, it is determined that the client 10 is the IPv4/IPv6 dual stack protocol, and if the returned resolution result is empty, that is, it cannot be resolved, it is determined that the client 10 is the IPv6 single stack protocol.
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 the identifier, and quickly 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 the Cookie may be used 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, determine the return mode of the website accessed by the client 10, and quickly access the target website by the client 10.
And 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 detection page to the client when the access request is analyzed to 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.
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 to an IPv4 address. The NAT64 gateway 20 will confirm whether there is an identifier corresponding to the IP protocol stack information in the client 10 when receiving an access request from the client 10 to a target website, if there is no identifier, return a preset probe web page to the client 10, determine the IP protocol stack information and add the identifier, and identify the identifier corresponding to the IP protocol stack information in the access request from the client 10 to the target website, and the NAT64 gateway 20 will quickly determine the IP protocol stack information of the client 10 according to the identifier of the client 10, determine the return mode of the website accessed by the client 10, and quickly access the target website by the client 10.
And the server 30 is in communication connection with the client, and is used for performing domain name resolution on the public network which performs communication by using the IPv4 under the condition of receiving a domain name resolution request sent by the client through the detection page, and returning a domain name resolution result to the client.
Specifically, the server 30 may be an httpdns server, where httpdns is a domain name resolution using HTTP protocol, 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 when the client 10 accesses a subsequent website, the NAT64 gateway 20 can quickly determine the IP protocol stack information of the client 10.
The website access system provided in the embodiment of the application is communicatively connected to a gateway and a server through a client 10, and is configured to send an access request for a target website to the gateway, and further configured to send a domain name resolution request to the server through a detection page under the condition that the detection page returned by the gateway in response to the access request is received, 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 communicates by using IPv4(Internet Protocol version 4 Internet Protocol fourth edition); the gateway 20 is in communication connection with the client, and is configured to receive an access request of the client for a target website, return a detection page to the client when the access request is analyzed to not carry IP protocol stack information of the client, and return 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 performing domain name resolution on the public network which performs communication by using the IPv4 under the condition of receiving a domain name resolution request sent by the client through the detection page, and returning a domain name resolution result to the client. The problems that when the NAT64 gateway is adopted to realize that both IPv6 single-stack users and dual-stack users can open IPv4 websites, 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. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more quickly while improving the performance of gateway equipment is achieved by returning to the 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 present application, there is provided a website access method. 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 obtained, wherein the first access request is used for requesting to access a target website, the target website is communicated by adopting IPv4, 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 an identifier corresponding to the IP protocol stack information of the client, and when the client access request has no identifier, the NAT64 returns a probe 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, the browser rendering is not required, the user does not need to perform interactive operation when the client uses the probe page, the probe page can enable the client to automatically initiate a request to the httpdns server, set cookies for identifying single and double stacks of the client according to a return result, and automatically initiate a second request to the NAT64 to complete the second access to the target website.
Step S203, 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 performing domain name resolution on a public network, and the public network adopts IPv4 for communication.
Specifically, the detection page automatically initiates a request to an httpdns server, performs domain name resolution on a public network of an IPv4 protocol, and returns a domain name resolution result, where the httpdns server is a server that performs domain name resolution using an HTTP protocol, instead of the existing UDP-based DNS protocol, the httpdns server returns the domain name resolution result to the client through the detection page, and can determine the IP protocol stack information of the client according to the resolution result, for example, when the domain name resolution result is a domain name corresponding to the accessed public network, it is determined that the client is an IPv4/IPv6 dual stack protocol, and if the returned resolution result is empty, that is, it is impossible to resolve, it is determined that the client is an IPv6 single stack protocol.
Step S205, sending a second access request to the target website to the gateway, and acquiring 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 to access the target website, and the second access request carries the 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, and when the client automatically accesses the target website for the second time through the detection page, the NAT64 gateway recognizes the identifier of the client and returns the target website according to the identifier, thereby achieving the effect of quickly accessing the target website by the client.
According to the website access method provided by the embodiment of the application, a first access request is sent through a gateway, and a detection page returned by the gateway in response to the first access request is obtained, wherein the first access request is used for requesting to access a target website, the target website is communicated by adopting IPv4, 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 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 the IP protocol stack information of the client. The problems that when the NAT64 gateway is adopted to realize that both IPv6 single-stack users and dual-stack users can open IPv4 websites, 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. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more quickly while improving the performance of gateway equipment is achieved by returning to the 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 the 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 the domain name resolution result includes: determining that the IP protocol stack information of the client is a double stack under the condition that the domain name resolution result is not empty; and under the condition that the domain name resolution result is empty, determining that the IP protocol stack information of the client is an IPv6 single stack.
Specifically, after receiving a domain name resolution result returned by the probe page, the client may determine, through the resolution result, the IP protocol stack information of the client according to the probe page, for example, when the domain name resolution result is a domain name corresponding to an accessed public network, it is determined that the client is an IPv4/IPv6 dual stack protocol, and if the returned resolution result is empty, that is, it cannot be resolved, it is determined that the client is an IPv6 single stack protocol.
After the IP protocol stack information of the client is judged, the identification addition can be carried out according to the judgment result, for example, when the client is an IPv4/IPv6 dual stack, the Cookie value of the client is set 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 determine the IP stack information of the client through the Cookie identifier.
Optionally, in order to store the IP protocol stack information of the client after the IP protocol stack information of the client is confirmed, in the website access method provided in this embodiment of the application, before sending a second access request to the target website to the gateway and acquiring the web page 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 a different IPv4 website is accessed next time, the determined identification is directly used to mark the IP protocol stack information of the client, and the probe page is not required to be used to determine the IP protocol stack information of the client again.
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 in the embodiment of the present application, the web page content of the target website is obtained as the original content when the IP protocol stack information carried in the second access request is a dual stack; and under the condition that the IP protocol stack information carried in the second access request is an IPv6 single stack, adjusting the acquired link in the webpage of the target website to a link corresponding to IPv 6.
Specifically, the client reflects the client IP protocol stack information by setting the Cookie identifier, and after the NAT64 gateway receives an access request from the client to the target website, the Cookie identifier in the request is analyzed to confirm the client IP protocol stack information. If the client is identified to be an IPv4/IPv6 dual-stack client, the client can directly access the target website through IPv6, even if the external link in the target website uses an IPv4 network, the client can still access through 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 to be the IPv6 single stack client, the client can only access the target website through the IPv6, and if the external link in the target website uses the IPv4 network, the client cannot normally access the website, so that the NAT64 gateway needs to rewrite the external link of the target website where the IPv6 single stack client initiates the access request, so that the client can access the external link in the target website through the IPv 6.
According to an embodiment of the present application, another website access method is provided. Fig. 3 is a flowchart of another website access method provided in an embodiment of the present application. As shown in fig. 3, the method includes:
step S301, 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 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.
Specifically, when receiving a first access request to a target website initiated by a client, the NAT64 gateway determines whether the client carries an identifier corresponding to IP protocol stack information, returns a preset detection webpage to the client if the client does not carry the identifier, and determines the IP protocol stack information of the client through the detection webpage.
Step S303, receiving a second access request sent by the client after determining the IP protocol stack information 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.
Specifically, after the detection page confirms the IP protocol stack information of the client, the identifier corresponding to the IP protocol stack information is added to a second access request of the client to the target website, the NAT64 gateway analyzes the second access request, when the identifier capable of identifying the IP protocol stack information of the client is analyzed, the NAT64 gateway determines the IP protocol stack information of the client quickly according to the identifier, determines the returning mode of the website accessed by the client, and performs quick access of the client to the target website.
According to the website access method provided by the embodiment of the application, 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 to access a target website, the target website is communicated by adopting IPv4, 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 client determines the IP protocol stack information 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 carries the IP protocol stack information of the client. The problems that when the NAT64 gateway is adopted to realize that both IPv6 single-stack users and dual-stack users can open IPv4 websites, 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. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more quickly while improving the performance of gateway equipment is achieved by returning to the 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 trigger rule of the detection page, wherein the trigger 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 needs 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 that is not recognized by the NAT64 gateway is used as the trigger rule, when the NAT64 gateway does not recognize the identifier corresponding to the IP protocol stack information of the client, the rule is triggered, the client is interrupted from accessing the target website, the probe page is returned to the client, the IP protocol stack information of the client is confirmed, and the 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 this embodiment of the 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 the webpage content of the target website.
Specifically, when the client uses the IPv6 network, if the target website is the IPv4 website, it is necessary to perform the conversion from IPv6 to IPv4 network access through the NAT64 gateway, so it is necessary to connect the NAT64 gateway to the target website to obtain the web page content of the target website, and rewrite the external 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 page 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 a double stack, returning the webpage content of the target website to the client; and when the IP protocol stack information is an IPv6 single stack, adjusting the link in the webpage in the target website to the link corresponding to the IPv6 to obtain an adjusted webpage, and returning the adjusted webpage to the client.
Specifically, the client reflects the client IP protocol stack information by setting the Cookie identifier, and after the NAT64 gateway receives an access request from the client to the target website, the Cookie identifier in the request is analyzed to confirm the client IP protocol stack information. If the client is identified to be an IPv 4/dual-stack client, the client can directly access the target website through IPv6, even if the external link in the target website uses an IPv4 network, the client can still access through 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 to be the IPv6 single stack client, the client can only access the target website through the IPv6, and if the external link in the target website uses the IPv4 network, the client cannot normally access the website, so that the NAT64 gateway needs to rewrite the external link of the target website where the IPv6 single stack client initiates the access request, so that the client can access the external link in the target website through the 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 a first access request to a target website to the NAT64, the NAT64 gateway analyzes the request sent by the client, and no identifier of IP protocol stack information of the client is found, so the NAT64 gateway returns a detection webpage to the client, the client automatically sends the access request to the httpdns server through the detection webpage, the httpdns server carries out domain name analysis on any IPv4 network and returns an analysis result of the client, the detection webpage judges the IP protocol stack information of the client through the returned result, a label corresponding to the IP protocol stack information is stored in a local terminal, and a representation is 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, even if the external link in the target website uses an IPv4 network, the client may still access through 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; when the client is an IPv6 single-stack client, the client can only access a target website requested by the NAT64 gateway through IPv6, when an external link in the target website has an IPv4 network, the NAT64 gateway needs to rewrite the external link of the target website of which the IPv6 single-stack client initiates an access request, and at the moment, the client can directly access the external link in the target website through IPv6, so that the aim of quickly accessing the external link in the target website by the client is fulfilled.
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 different than presented herein.
The embodiment of the present application further provides a website access device, and it should be noted that the website access device in the embodiment of the present application may be used to execute the website access method provided in the embodiment of the present application. The following describes a website access device provided in an embodiment of the present application.
Fig. 5 is a schematic diagram of a website access device 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 a 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 to access a target website, the target website communicates by using IPv4, the first access request does not carry IP protocol stack information of a client, and the probe page is used to probe the IP protocol stack information of the client;
a second obtaining unit 50, 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 a 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 communicates by using IPv 4;
a third obtaining unit 60, configured to send a second access request to the target website to the gateway, and obtain 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 to access the target website, and the second access request carries IP protocol stack information of the client.
The website access device provided by the embodiment of the application sends a first access request to a gateway through a first obtaining unit 40, and obtains a detection page returned by the gateway in response to the first access request, wherein the first access request is used for requesting to access a target website, the target website is communicated by using IPv4, 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; 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 the 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 target website to the gateway, and obtains the 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 the IP protocol stack information of the client, so as to solve the problems of reduced performance of gateway equipment and increased access time of the client due to multiple interactions between the gateway and the IPv4 website when the NAT64 gateway is adopted to enable IPv6 single-stack and dual-stack users to open the IPv4 website. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more quickly while improving the performance of gateway equipment is achieved by returning to the 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 this 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 a double stack under the condition that the domain name resolution result is not empty; 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 this 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, the website access device provided in this embodiment of the present application further includes a fourth obtaining unit, configured to obtain that the web page content of the target website is original content when the IP protocol stack information carried in the second access request is a dual stack; 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 obtained link in the web page of the target website to a link corresponding to IPv 6.
The website access device comprises a processor and a memory, wherein the first acquiring unit 40, the second acquiring unit 50, the third acquiring unit 60 and the like 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 present application further provides another website accessing apparatus, and it should be noted that the website accessing apparatus according to the embodiment of the present application may be used to execute the website accessing method according to the embodiment of the present application. The following describes a website access device provided in an embodiment of the present application.
Fig. 6 is a schematic diagram of another website access device provided in an embodiment of the present application. As shown in fig. 6, the apparatus includes:
a first receiving unit 70, configured to receive a first access request sent by a client, and return a probe page to the client, where the first access request is used to request to access a target website, the target website communicates by using IPv4, and the probe page is used to probe IP stack information of the client;
the second receiving unit 80 is configured to receive a second access request sent by the client after determining the IP protocol stack information by detecting the page, and return the web page content of the target website to the client, where the second access request is used to request to access the target website, and the second access request carries the IP protocol stack information of the client.
The website access device provided in the embodiment of the application receives, by using the first receiving unit 70, a first access request sent by a client, and returns a detection page to the client, where the first access request is used to request to access a target website, the target website communicates by using IPv4, and the detection page is used to detect IP protocol stack information of the client; the second receiving unit 80 receives a second access request sent by the client after the client determines the IP protocol stack information by detecting the page, and returns the web page 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, so as to solve the problems of reduced performance of gateway equipment and increased access time of the client due to multiple interactions between the gateway and the IPv4 website when the NAT64 gateway is adopted to realize that both IPv6 single-stack and dual-stack users can open the IPv4 website. When the client accesses the IPv4 website for the first time, the effect of enabling the client to access the target webpage more quickly while improving the performance of gateway equipment is achieved by returning to the 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 this 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 trigger rule of the detection page, wherein the trigger 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 this embodiment of the present application, the website access apparatus further includes: and the second connecting unit is used for establishing communication connection with the target website and acquiring the webpage content of the target website.
Optionally, in the website access apparatus provided in this embodiment of the 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 returning module is used for returning the webpage content of the target website to the client under the condition that the IP protocol stack information is double stack; and the second returning module is used for adjusting the link in the webpage in the target website to the link corresponding to the IPv6 to obtain the adjusted webpage and returning the adjusted webpage to the client under the condition that the IP protocol stack information is the IPv6 single stack.
The website access device comprises a processor and a memory, wherein the first receiving unit 70, the second receiving unit 80 and the like 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 comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problems of reduced gateway equipment performance and increased client access time caused by the fact that IPv6 single stack users and dual stack users can open IPv4 websites through the NAT64 gateway are solved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The embodiment of the application also provides a nonvolatile storage medium, wherein the nonvolatile storage medium comprises a stored program, and the program controls the 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 method for accessing a website. The electronic device herein may be a server, a PC, a PAD, a mobile phone, etc.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (11)

1. A website 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 a detection page under the condition that the 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 communicates by adopting IPv 4;
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 under the condition that the access request is analyzed to not carry the IP protocol stack information of 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;
and the server is in communication connection with the client, and is used for performing domain name resolution on a public network which is communicated by adopting IPv4 under the condition of receiving a domain name resolution request sent by the client through the detection page, and returning a domain name resolution result to the client.
2. A website access method applied to the website access system of claim 1, comprising:
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 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, 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 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 the IP protocol stack information of the client.
3. The method of claim 2, wherein determining the IP stack information of the client according to the domain name resolution result comprises:
determining that the IP protocol stack information of the client is a double stack under the condition that the domain name resolution result is not empty;
and under the condition that the domain name resolution result is empty, determining that the IP protocol stack information of the client is an IPv6 single stack.
4. The method of claim 2, wherein before sending the 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 according to claim 2, wherein the web page content of the target website is obtained as original content when the IP protocol stack information carried in the second access request is a dual stack;
and under the condition that the IP protocol stack information carried in the second access request is an IPv6 single stack, adjusting the acquired link in the webpage of the target website to a link corresponding to IPv 6.
6. A website access method applied to the website access system of claim 1, comprising:
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 client determines the IP protocol stack information 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 before 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 trigger rule of the detection page, wherein the trigger 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 the webpage content of the target website.
9. The method of claim 6, wherein returning the web page content of the target web site to the client comprises:
acquiring the IP protocol stack information carried in the second access request;
when the IP protocol stack information is a double stack, returning the webpage content of the target website to the client;
and when the IP protocol stack information is an IPv6 single stack, adjusting the link in the webpage in the target website to the link corresponding to the IPv6 to obtain an adjusted webpage, and returning the adjusted webpage to the client.
10. A website access apparatus, comprising:
a first obtaining unit, configured to send a first access request to a 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 communicates by using IPv4, the first access request does not carry IP protocol stack information of a client, and the probe page is used to probe the IP protocol stack information of the client;
a second obtaining unit, configured to send a domain name resolution request to a server through the 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 communicates by using IPv 4;
a third obtaining unit, configured to send a second access request to the target website to the gateway, 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 website access apparatus, comprising:
a first receiving unit, configured to receive a first access request sent by a 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 communicates by using IPv4, and the probe page is used to probe IP stack information of the client;
a second receiving unit, configured to receive a second access request sent by the client after determining the IP protocol stack information through the probe page, and return the web page 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.
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 true CN114070818A (en) 2022-02-18
CN114070818B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120110574A1 (en) * 2010-11-03 2012-05-03 Agarwal Sumit Kumar Methods and systems to clone a virtual machine instance
US20130254423A1 (en) * 2012-03-22 2013-09-26 Time Warner Cable Inc. Use of dns information as trigger for dynamic ipv4 address allocation
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120110574A1 (en) * 2010-11-03 2012-05-03 Agarwal Sumit Kumar Methods and systems to clone a virtual machine instance
US8861525B1 (en) * 2011-07-28 2014-10-14 Juniper Networks, Inc. Cloud-based network protocol translation data center
US20130254423A1 (en) * 2012-03-22 2013-09-26 Time Warner Cable Inc. Use of dns information as trigger for dynamic ipv4 address allocation
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
CN114070818B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN107613037B (en) Domain name redirection method and system
CN105245550A (en) Domain name hijacking judgment method and device
US8806001B2 (en) Method, device and gateway server for detecting proxy at the gateway
CN104683330A (en) Domain name hijacking resisting method and device
JP6666441B2 (en) IP address obtaining method and apparatus
CN109361574B (en) JavaScript script-based NAT detection method, system, medium and equipment
CN114465791B (en) Method and device for establishing white list in network management equipment, storage medium and processor
CN110868361A (en) Gateway load balancing method, device and equipment
CN110933193B (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
CN114448849B (en) Method for detecting supporting mode of IPv6 network of website and electronic equipment
CN113315848A (en) Access control method, device and equipment
CN115913597A (en) Method and device for determining lost host
CN111225038B (en) Server access 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
CN114070818B (en) Website access system, method and device
CN112822305B (en) Method, device, router and storage medium for processing DNS query request
CN112887163B (en) Connectivity test method, connectivity test device, electronic equipment and storage medium
CN110971578B (en) User identity confirmation method and device
KR20170137829A (en) METHOD, APPARATUS, PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM
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
CN113315849B (en) Data processing method, device, equipment and storage medium
CN116074386B (en) Service calling method and device, service registration method and device

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