CN110392130B - Information processing method based on network, electronic equipment and network system - Google Patents

Information processing method based on network, electronic equipment and network system Download PDF

Info

Publication number
CN110392130B
CN110392130B CN201910783421.9A CN201910783421A CN110392130B CN 110392130 B CN110392130 B CN 110392130B CN 201910783421 A CN201910783421 A CN 201910783421A CN 110392130 B CN110392130 B CN 110392130B
Authority
CN
China
Prior art keywords
access request
communication protocol
external link
client
server
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
CN201910783421.9A
Other languages
Chinese (zh)
Other versions
CN110392130A (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.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software 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 Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN201910783421.9A priority Critical patent/CN110392130B/en
Publication of CN110392130A publication Critical patent/CN110392130A/en
Application granted granted Critical
Publication of CN110392130B publication Critical patent/CN110392130B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • H04L61/2528Translation at a proxy

Landscapes

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

Abstract

The application discloses an information processing method based on a network, an electronic device and a network system, wherein the method comprises the following steps: receiving a first access request sent by a client based on a first communication protocol, determining a target website corresponding to the first access request, and sending the first access request to the target website; receiving first response information generated after the target website responds to the first access request, and modifying a uniform resource identifier of an external link in the first response information according to a preset modification rule so that the client can process the modified external link based on a first communication protocol, wherein the external link is associated with a first server which communicates based on a second communication protocol; and when a second access request which requires the client to process the modified external link is received, acquiring the corresponding resource from the first server based on the second access request. The method can simply and quickly enable the client to obtain the resources corresponding to the external link, has high process efficiency and is not easy to generate errors.

Description

Information processing method based on network, electronic equipment and network system
Technical Field
The present application relates to the field of network communications, and in particular, to an information processing method for a network, an electronic device, and a network system.
Background
In 2011, IANA (he Internet Assigned Numbers Authority) Assigned a last pool of remaining Internet protocol version 4 (IPv4) addresses to a regional registry. The lack of the address space of the IPv4 limits the development of the internet, and the use of the next generation internet protocol version 6 (IPv6) has become a trend. However, the network modification based on the IPv6 involves a plurality of links such as a network layer, an equipment layer, a service system layer, a code layer, and the like, and is directly and completely modified at a huge cost, and considering the scale of the existing network, it is almost impossible to upgrade all the networks based on the IPv4 all around the world to the networks based on the IPv6 at a certain moment, so that a transition period of using the IPv4 and the IPv6 together will occur, and a "skylight problem" will inevitably occur during the transition period. "skylight problem" is to be understood as: when a client accesses network information (e.g. web page) on a target website based on a first communication protocol (e.g. IPv6 as described above), the network information includes resources (e.g. resources represented by external links) of other external websites, and if the referenced external website is communicated based on a second communication protocol (e.g. IPv4 as described above), the client based on the first communication protocol cannot obtain the resources on the external website, thereby causing serious problems such as data loss.
Disclosure of Invention
An object of the embodiments of the present application is to provide an information processing method of a network, an electronic device, and a network system. According to the method, when the page contains the external link and the communication protocol of the first server (such as the external link server) corresponding to the external link is different from the communication protocol used by the client in the process that the client accesses the target website, the resources stored in the first server corresponding to the external link can be simply and quickly obtained, the processing efficiency is high, and errors are not prone to occurring.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a network-based information processing method includes:
receiving a first access request sent by a client based on a first communication protocol, determining a target website corresponding to the first access request, and sending the first access request to the target website;
receiving first response information generated after the target website responds to the first access request, and modifying a uniform resource identifier of an external link in the first response information according to a preset modification rule so that the client can process the modified external link based on the first communication protocol, wherein the external link is associated with a first server which communicates based on a second communication protocol;
and when a second access request of the modified external link required to be processed by the client is received, acquiring a corresponding resource from the first server based on the second access request so as to send the resource to the client.
Preferably, after receiving a second access request that the client requires to process the modified external link, acquiring, based on the second access request, a corresponding resource from the first server includes:
after receiving the second access request, performing recovery operation on the modified uniform resource identifier of the external link;
and determining the first server corresponding to the external link according to the restored uniform resource identifier of the external link so as to acquire the resource corresponding to the external link from the first server.
Preferably, the determining, according to the restored uniform resource identifier of the external link, the first server corresponding to the external link, so as to obtain the resource corresponding to the external link from the first server includes:
acquiring the IP address of the first server through the restored uniform resource identifier of the external link to determine the first server;
and sending a third access request corresponding to the second access request to the first server based on a second communication protocol, and receiving the resource returned after the first server responds based on the second communication protocol.
Preferably, the sending the resource to the client includes:
and after receiving the resource, sending the resource to the client based on the first communication protocol.
Preferably, the first access request is characterized by an access request sent by the client after the DNS query is performed on the target website and the IP address of the target website is obtained.
Preferably, the determining, by the receiving client, a target website corresponding to a first access request based on the first access request sent by a first communication protocol, so as to send the first access request to the target website includes:
judging a communication protocol used by the target website;
and when the communication protocol used by the target website is determined to be a second communication protocol, sending the first access request to the target website based on the second communication protocol.
Preferably, the modifying the uniform resource identifier of the external link in the first response message according to a preset modification rule includes:
adding specific content in front of the uniform resource locator of the external link so that the client identifies the modified external resource corresponding to the external link as data on the target website.
Preferably, the first communication protocol is internet protocol version 6, and the second communication protocol is internet protocol version 4.
An embodiment of the present application further provides an electronic device, including a processor and a memory, where an executable program is stored in the memory, and the processor executes the executable program to implement the following steps:
receiving a first access request sent by a client based on a first communication protocol, determining a target website corresponding to the first access request, and sending the first access request to the target website;
receiving first response information generated after the target website responds to the first access request, and modifying a uniform resource identifier of an external link in the first response information according to a preset modification rule so that the client can process the modified external link based on the first communication protocol, wherein the external link is associated with a first server which communicates based on a second communication protocol;
and when a second access request of the modified external link required to be processed by the client is received, acquiring a corresponding resource from the first server based on the second access request so as to send the resource to the client.
The embodiment of the present application further provides a network system, including the client, the target website, the first server and the electronic device as described above, where the client, the target website and the first server are respectively connected to the electronic device, and the client acquires the resource through the electronic device, where the electronic device includes a gateway.
The beneficial effects of the embodiment of the application are that: the method can simply and quickly enable the client to obtain the resources corresponding to the external link when the first page contains the external link and the communication protocol of the first server (such as the external link server) corresponding to the external link is different from the communication protocol used by the client (such as IPv4 and IPv6) in the process of accessing the target website by the client, and the information processing process is high in efficiency and is not easy to generate errors.
Drawings
FIG. 1 is a flow chart of an information processing method according to an embodiment of the present application;
FIG. 2 is a flowchart of step S3 in FIG. 1 according to an embodiment of the present application;
FIG. 3 is a flowchart of step S32 in FIG. 2 according to an embodiment of the present application;
FIG. 4 is a flowchart of step S1 in FIG. 1 according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a connection structure between a gateway and a client, a DNS server, and a target website in a network system according to an embodiment of the present application;
fig. 7 is a schematic diagram of connection structures between a gateway and a client, a DNS server, and a first server in a network system according to an embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The description may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
Fig. 1 is a flowchart of an information processing method according to an embodiment of the present application, and the method for processing information based on a network according to the embodiment of the present application may be applied to an electronic device (for example, may be applied to a gateway and other devices), and the electronic device (for example, a dual stack application proxy gateway) may perform conversion of different communication protocols on data communication, for example, convert data transmitted based on a first communication protocol into data transmitted based on a second communication protocol, or convert data transmitted based on the second communication protocol into data transmitted based on the first communication protocol. The electronic equipment can be respectively in communication connection with the client, the target website, the DNS proxy server and the first server, and then processes the circulated information. As shown in fig. 1, the method comprises the steps of:
s1, receiving a first access request sent by the client based on the first communication protocol, determining a target website corresponding to the first access request, and sending the first access request to the target website.
A user accesses a target website through a client, the client sends a first access request to electronic equipment such as a gateway, and the first access request can include a related request of a resource to be acquired, such as domain name information of the resource; and may also include relevant information of the target website, such as the IP address of the target website. After receiving the first access request, the electronic device such as the gateway may determine the target website according to the first access request, and forward the content of the first access request to the target website according to the related information of the target website recorded in the first access request. The client communicates with the electronic device (such as the gateway described above) based on the first communication protocol (e.g., version 6 of the internet protocol, i.e., IPv6), and the target website may communicate with the electronic device (such as the gateway) based on the first communication protocol, or communicate with the electronic device (such as the gateway) based on the second communication protocol (e.g., version 4 of the internet protocol, i.e., IPv 4). When the communication protocol used by the target device is different from the communication protocol used by the client, the electronic device may convert the communication protocol in the process of transmitting the first access request, for example, may convert the first target request originally transmitted by the first communication protocol into the second communication protocol for transmission, so that the target website performing communication based on the second communication protocol acquires the specific content of the first target request.
And S2, receiving first response information generated after the target website responds to the first access request, and modifying the uniform resource identifier of the external link in the first response information according to a preset modification rule so as to enable the client to process the modified external link based on the first communication protocol, wherein the external link is associated with the first server which communicates based on the second communication protocol.
After receiving the first target request, the target website responds according to specific request content included in the first target request, generates first response information, and sends the first response information to the electronic device such as the gateway, where for example, the first access request is a first webpage specifically accessing the target website, and the electronic device may receive the first response information in the form of the first webpage. The first response message (e.g., the first web page) has an external link associated with a first server different from the target web site that communicates based on the second communication protocol, e.g., a uniform resource identifier of the external link points to the first server. After receiving the first response message, the electronic device may modify the uniform resource identifier of the external link in the first response message according to a preset modification rule. A Uniform Resource Identifier (URI), which is a sequence of characters that identifies a logical or physical resource, may be a string of characters in the form of a representation that also allows uniform identification of the resource by using location information and/or name information to identify the resource on a network, such as the Internet. In this embodiment, the electronic device may modify the uniform resource identifier of the external link in the first response message according to a preset modification rule, so that the modified uniform resource identifier of the external link can be recognized by the client, and the client can process the external connection on the basis of the first communication protocol, where the specific preset modification rule may be set according to actual needs of the user, for example, the entire content of the uniform resource identifier of the external link needs to be modified, or only a part of the content of the uniform resource identifier of the external link needs to be modified, or a part of the content may be added to the uniform resource identifier of the external link. For example, the uniform resource identifier of the external link is modified from http:// www.example.com/image/232.png to/__ topsec _ v6v4_ convert _/http/www.example.com/image/232. png. This allows the client using the first communication protocol to assume (actually not) that the resource corresponding to the external link is on the target website rather than on another first server (e.g., an out-link server) using the second communication protocol, and the client can obtain the corresponding resource based on the uniform resource identifier of the external link based on the first communication protocol.
And S3, when a second access request that the client requires to process the modified external link is received, acquiring the corresponding resource from the first server based on the second access request, so as to send the resource to the client.
Specifically, the electronic device sends first response information of the uniform resource identifier of the modified external link to the client, the client sends a second access request to the electronic device such as the gateway according to the first response information, where the second access request is that the client requires to process the modified external link, for example, the client clicks the external link and requires to access a resource (such as sound, image, text, and the like) corresponding to the external link, the client performs communication based on the first communication protocol, and the first server performs communication based on the second communication protocol, so that the electronic device needs to convert the communication protocol (such as converting the communication protocol using the dual stack application proxy gateway), so as to convert the second access request based on the first communication protocol into transmission based on the second communication protocol. The second access request includes a resource corresponding to the external link, and may further include related information of the first server, such as an IP address of the first server. The electronic device may obtain the resource corresponding to the external link from the first server based on the second access request, and send the resource to the client after the resource is obtained, so that the user can obtain the resource through the client.
The method can simply and quickly enable the client to obtain the resources corresponding to the external link when the first page contains the external link and the communication protocol of the first server (such as the external link server) corresponding to the external link is different from the communication protocol used by the client (such as IPv4 and IPv6) in the process of accessing the target website by the client, and the information processing process is high in efficiency and is not easy to generate errors.
As shown in fig. 2 and in conjunction with fig. 7, in an embodiment of the present application, after receiving a second access request that the client requires to process the modified external link, acquiring, based on the second access request, a corresponding resource from the first server includes:
s31, when receiving the second access request, restoring the modified uniform resource identifier of the external link;
and S32, determining a first server corresponding to the external link according to the restored uniform resource identifier of the external link, so as to acquire the resource corresponding to the external link from the first server.
In particular, the client needs to access the external link whose uniform resource identifier is not in the original expression form, e.g., the uniform resource identifier of the external link has been modified by http:// www.example.com/image/232.png to/__ topsec _ v6v4_ convert _/http/www.example.com/image/232. png. Therefore, after the electronic device receives the second access request, the electronic device needs to perform a recovery operation on the uniform resource identifier of the external link, that is, the expression form of the uniform resource identifier is recovered to the original state, for example, the expression form of/__ topsec _ v6v4_ convert _/http/www.example.com/image/232.png is recovered to http:// www.example.com/image/232. png. The restored uniform resource identifier of the external link can correctly represent related information of the first server (such as an external link server, on which resources corresponding to the external link are stored), so that the electronic device can accurately determine the first server by using the related information to establish contact with the first server, and perform data interaction, for example, an IP address of the first server can be obtained through the uniform resource identifier, and the first server is accurately found through the IP address, so that the resources corresponding to the external link are obtained from the first server.
As shown in fig. 3 and combined with fig. 7, in an embodiment of the present application, the determining, according to the uniform resource identifier of the restored external link, a first server corresponding to the external link, so as to obtain a resource corresponding to the external link from the first server includes the following steps:
s321, acquiring the IP address of the first server through the restored uniform resource identifier of the external link to determine the first server;
s322, a third access request corresponding to the second access request is sent to the first server based on the second communication protocol, and the resource returned after the response of the first server is received based on the second communication protocol.
Specifically, after the uniform resource identifier of the external link is restored, the DNS server is used to analyze the uniform resource identifier, and the IP address of the first server is obtained according to the uniform resource identifier of the external link, for example, the IP address of the first server is obtained according to an association relationship between the uniform resource identifier (domain name) and the corresponding IP address, so as to determine the first server. Since the communication protocol corresponding to the first server is the second communication protocol, and is different from the first communication protocol of the client (for example, using IPV6), the electronic device may send, to the first server, a third access request corresponding to the second access request based on the second communication protocol, to request the first server to return a resource corresponding to the external link, for example, send, to the first server, the third access request based on IPV4, and the first server also responds to the electronic device, such as a gateway, based on IPV4, and returns a corresponding resource to the electronic device, such as a gateway, based on the second communication protocol.
In an embodiment of the present application, said sending the resource to the client includes: and after receiving the resource, sending the resource to the client based on the first communication protocol. Specifically, because the client communicates by using the first communication protocol, after the electronic device such as the gateway acquires the resource corresponding to the external link from the first server, the resource originally transmitted based on the second communication protocol is converted into the resource transmitted by using the first communication protocol, and then the resource is sent to the client based on the first communication protocol.
In an embodiment of the present application, the first access request is characterized by an access request sent by a client after performing DNS query on a target website and obtaining an IP address of the target website. The uniform resource identifier (domain name) of the target website may be recorded in the first access request. The DNS server can acquire the IP address of the target website according to the incidence relation between the uniform resource identifier (domain name) of the target website and the corresponding IP address, the client performs DNS query on the DNS server to obtain the IP address of the target website, then sends a first access request to the electronic equipment, and after receiving the first access request sent by the client, the electronic equipment forwards the first access request to the target website according to the IP address of the target website.
As shown in fig. 4, in an embodiment of the present application, the determining, by the receiving client, a target website corresponding to a first access request based on the first access request sent by the first communication protocol, so as to send the first access request to the target website includes the following steps:
s11, judging the communication protocol used by the target website;
and S12, when the communication protocol used by the target website is determined to be the second communication protocol, sending the first access request to the target website based on the second communication protocol.
Specifically, the communication protocol used by the target website may be the same as the communication protocol used by the client, such as the first communication protocol; or may be different, e.g., both second communication protocols. When the communication protocol used by the target website is judged to be the second communication protocol, the electronic device needs to convert the communication protocol to send the first access request, namely, the first access request is sent to the target website based on the second communication protocol, so that the first access request is accurately sent to the target website.
In an embodiment of the application, the modifying the uniform resource identifier of the external link in the first response message according to the preset modification specification includes the following steps: and adding specific content in front of the uniform resource locator of the external link so that the client identifies the external resource corresponding to the modified external link as data on the target website.
The specific content may be pre-selected and set by a user according to experience and common practice, for example, a specific character string is added before the uniform resource locator of the external link, and the form of the character string is fixed, so that the uniform resource locator of the external link can be accurately restored to an original state in the restoring process. For example, the uniform resource identifier of the external link is modified by http:// www.example.com/image/232.png to/__ topsec _ v6v4_ convert _/http/www.example.com/image/232. png; wherein/__ topsec _ v6v4_ convert _/is the specific content, after modification, although the resource corresponding to the external link is on the first server, the client will recognize the resource corresponding to the external link as the content on the target website, so as to process the external connection.
In one embodiment of the present application, the first communication protocol is internet protocol version 6 and the second communication protocol is internet protocol version 4.
The above-mentioned information processing method of the present application is further described below with reference to a specific embodiment. With reference to fig. 6 and 7, the first website now communicates based on IPv4, which needs to be enabled to provide IPv6 service, and thus an application proxy gateway is used, which changes the AAAA DNS record of the first website domain name to the IPv6 address used by the application proxy gateway, and the a DNS record to the IPv4 address of the application proxy gateway; the application proxy gateway is configured to a reverse proxy mode; configuring an application proxy gateway to deeply detect a responded page file, replacing an IPv4 address with a proxy address of the application proxy gateway (certainly using IPv4 or IPv6, which is determined according to the type of the proxy address), and then modifying a URI of an external link in the responded page file according to preset modification rules by using the method; for example, a certain picture (animal.png) of the first service is linked in a certain page file of the first website, and the first server provides the IPv4 service, so that when an IPv6 user requests a page of the first website, the external link www.baidu.com/picture/animal _33.png in the responding page file is modified to be/__ topsec _ v6v4_ convert _/www.baidu.com/picture/animal _33. png; the browser of the client using the IPv6 sends a request for accessing the external link after receiving the responded page file, the application proxy gateway restores the URI of the external link to the original link, requests to acquire the resource corresponding to the external link, the application proxy gateway analyzes www.baidu.com/picture/animal _33.png, inquires the IP address of the first server according to the www.baidu.com domain name, returns an IPv4 address, acquires the resource by using the returned IP address and the URI (/ picture/animal _33.png), and returns the acquired resource (such as a picture) to the browser of the client using the IPv6, so that the resource (such as a picture) corresponding to the external link on the page of the browser can be normally displayed.
The embodiment of the present application further provides an electronic device, where the electronic device (such as a dual stack application proxy gateway) may perform conversion of different communication protocols on communication of data, for example, convert data transmitted based on a first communication protocol into data transmitted based on a second communication protocol, or convert data transmitted based on the second communication protocol into data transmitted based on the first communication protocol. As shown in fig. 6 and 7, the electronic device may be communicatively connected to the client, the target website, the DNS proxy server, and the first server, respectively, to process the information flowing through the electronic device. As shown in fig. 5, the electronic device includes a processor and a memory, the memory stores an executable program, and the processor executes the executable program to implement the following steps:
s1, receiving a first access request sent by the client based on the first communication protocol, determining a target website corresponding to the first access request, and sending the first access request to the target website.
A user accesses a target website through a client, the client sends a first access request to electronic equipment such as a gateway, and the first access request can include a related request of a resource to be acquired, such as domain name information of the resource; and may also include relevant information of the target website, such as the IP address of the target website. After receiving the first access request, the electronic device such as the gateway may determine the target website according to the first access request, and forward the content of the first access request to the target website according to the related information of the target website recorded in the first access request. The client communicates with the electronic device (such as the gateway described above) based on the first communication protocol (e.g., version 6 of the internet protocol, i.e., IPv6), and the target website may communicate with the electronic device (such as the gateway) based on the first communication protocol, or communicate with the electronic device (such as the gateway) based on the second communication protocol (e.g., version 4 of the internet protocol, i.e., IPv 4). When the communication protocol used by the target device is different from the communication protocol used by the client, the electronic device may convert the communication protocol in the process of transmitting the first access request, for example, the first target request originally transmitted by the first communication protocol may be converted by the second communication protocol for transmission, so that the target website performing communication based on the second communication protocol acquires specific content of the first target request.
And S2, receiving first response information generated after the target website responds to the first access request, and modifying the uniform resource identifier of the external link in the first response information according to a preset modification rule so as to enable the client to process the modified external link based on the first communication protocol, wherein the external link is associated with the first server which communicates based on the second communication protocol.
After receiving the first target request, the target website responds according to specific request content included in the first target request, generates first response information, and sends the first response information to the electronic device such as the gateway, where for example, the first access request is a first webpage specifically accessing the target website, and the electronic device may receive the first response information in the form of the first webpage. The first response message (e.g., the first web page) has an external link associated with a first server different from the target web site that communicates based on the second communication protocol, e.g., a uniform resource identifier of the external link points to the first server. After receiving the first response message, the electronic device may modify the uniform resource identifier of the external link in the first response message according to a preset modification rule. A Uniform Resource Identifier (URI), which is a sequence of characters that identifies a logical or physical resource, may be a string of characters in the form of a representation that also allows uniform identification of the resource by using location information and/or name information to identify the resource on a network, such as the Internet. In this embodiment, the electronic device may modify the uniform resource identifier of the external link in the first response message according to a preset modification rule, so that the modified uniform resource identifier of the external link can be recognized by the client, and the client can process the external connection on the basis of the first communication protocol, where the specific preset modification rule may be set according to actual needs of the user, for example, the entire content of the uniform resource identifier of the external link needs to be modified, or only a part of the content of the uniform resource identifier of the external link needs to be modified, or a part of the content may be added to the uniform resource identifier of the external link. For example, the uniform resource identifier of the external link is modified from http:// www.example.com/image/232.png to/__ topsec _ v6v4_ convert _/http/www.example.com/image/232. png. This allows the client using the first communication protocol to assume (actually not) that the resource corresponding to the external link is on the target website rather than on another first server (e.g., an out-link server) using the second communication protocol, and the client can obtain the corresponding resource based on the uniform resource identifier of the external link based on the first communication protocol.
And S3, when a second access request that the client requires to process the modified external link is received, acquiring the corresponding resource from the first server based on the second access request, so as to send the resource to the client.
Specifically, the electronic device sends first response information of the uniform resource identifier of the modified external link to the client, the client sends a second access request to the electronic device such as the gateway according to the first response information, where the second access request is that the client requires to process the modified external link, for example, the client clicks the external link and requires to access a resource (such as sound, image, text, and the like) corresponding to the external link, the client performs communication based on the first communication protocol, and the first server performs communication based on the second communication protocol, so that the electronic device needs to convert the communication protocol (such as converting the communication protocol using the dual stack application proxy gateway), so as to convert the second access request based on the first communication protocol into transmission based on the second communication protocol. The second access request includes a resource corresponding to the external link, and may further include related information of the first server, such as an IP address of the first server. The electronic device may obtain the resource corresponding to the external link from the first server based on the second access request, and send the resource to the client after the resource is obtained, so that the user can obtain the resource through the client.
When the first page contains the external link and the communication protocol of the first server (such as the external link server) corresponding to the external link is different from the communication protocol used by the client (such as the IPv4 and the IPv6), the electronic device can simply and quickly enable the client to obtain the resource corresponding to the external link, and the information processing process is efficient and is not prone to errors.
In one embodiment of the present application, in conjunction with fig. 7, the processor executes the executable program to further implement the following steps: after receiving the second access request, carrying out reduction operation on the modified uniform resource identifier of the external link; and determining a first server corresponding to the external link according to the restored uniform resource identifier of the external link so as to acquire the resource corresponding to the external link from the first server.
Specifically, the client needs to access the external link whose uniform resource identifier is not in the original expression form, e.g., the uniform resource identifier of the external link has been modified by http:// www.example.com/image/232.png to/__ topsec _ v6v4_ convert _/http/www.example.com/image/232. png. Therefore, after the electronic device receives the second access request, the electronic device needs to perform a recovery operation on the uniform resource identifier of the external link, that is, the expression form of the uniform resource identifier is recovered to the original state, for example, the expression form of/__ topsec _ v6v4_ convert _/http/www.example.com/image/232.png is recovered to http:// www.example.com/image/232. png. The restored uniform resource identifier of the external link can correctly represent related information of the first server (such as an external link server, on which resources corresponding to the external link are stored), so that the electronic device can accurately determine the first server by using the related information to establish contact with the first server, and perform data interaction, for example, an IP address of the first server can be obtained through the uniform resource identifier, and the first server is accurately found through the IP address, so that the resources corresponding to the external link are obtained from the first server.
In one embodiment of the present application, in conjunction with fig. 7, the processor executes the executable program to further implement the following steps: acquiring the IP address of the first server through the restored uniform resource identifier of the external link to determine the first server; and sending a third access request corresponding to the second access request to the first server based on the second communication protocol, and receiving the resource returned after the first server responds based on the second communication protocol.
Specifically, after the uniform resource identifier of the external link is restored, the DNS server is used to analyze the uniform resource identifier, and the IP address of the first server is obtained according to the uniform resource identifier of the external link, for example, the IP address of the first server is obtained according to an association relationship between the uniform resource identifier (domain name) and the corresponding IP address, so as to determine the first server. Since the communication protocol corresponding to the first server is the second communication protocol, and is different from the first communication protocol of the client (for example, using IPV6), the electronic device may send, to the first server, a third access request corresponding to the second access request based on the second communication protocol, to request the first server to return a resource corresponding to the external link, for example, send, to the first server, the third access request based on IPV4, and the first server also responds to the electronic device, such as a gateway, based on IPV4, and returns a corresponding resource to the electronic device, such as a gateway, based on the second communication protocol.
In one embodiment of the application, the processor executes the executable program to further implement the steps of: and after receiving the resource, sending the resource to the client based on the first communication protocol. Specifically, because the client communicates by using the first communication protocol, after the electronic device such as the gateway acquires the resource corresponding to the external link from the first server, the resource originally transmitted based on the second communication protocol is converted into the resource transmitted by using the first communication protocol, and then the resource is sent to the client based on the first communication protocol.
In an embodiment of the present application, the first access request is characterized by an access request sent by a client after performing DNS query on a target website and obtaining an IP address of the target website. The uniform resource identifier (domain name) of the target website may be recorded in the first access request. The DNS server can acquire the IP address of the target website according to the incidence relation between the uniform resource identifier (domain name) of the target website and the corresponding IP address, the client performs DNS query on the DNS server to obtain the IP address of the target website, then sends a first access request to the electronic equipment, and after receiving the first access request sent by the client, the electronic equipment forwards the first access request to the target website according to the IP address of the target website.
In one embodiment of the application, the processor executes the executable program to further implement the steps of: judging a communication protocol used by a target website; and when the communication protocol used by the target website is determined to be the second communication protocol, sending the first access request to the target website based on the second communication protocol. Specifically, the communication protocol used by the target website may be the same as the communication protocol used by the client, such as the first communication protocol; or may be different, e.g., both second communication protocols. When the communication protocol used by the target website is judged to be the second communication protocol, the electronic device needs to convert the communication protocol to send the first access request, namely, the first access request is sent to the target website based on the second communication protocol, so that the first access request is accurately sent to the target website.
In one embodiment of the application, the processor executes the executable program to further implement the steps of: and adding specific content in front of the uniform resource locator of the external link so that the client identifies the external resource corresponding to the modified external link as data on the target website. The specific content may be pre-selected and set by a user according to experience and common practice, for example, a specific character string is added before the uniform resource locator of the external link, and the form of the character string is fixed, so that the uniform resource locator of the external link can be accurately restored to an original state in the restoring process. For example, the uniform resource identifier of the external link is modified by http:// www.example.com/image/232.png to/__ topsec _ v6v4_ convert _/http/www.example.com/image/232. png; wherein/__ topsec _ v6v4_ convert _/is the specific content, after modification, although the resource corresponding to the external link is on the first server, the client will recognize the resource corresponding to the external link as the content on the target website, so as to process the external connection.
In one embodiment of the present application, the first communication protocol is internet protocol version 6 and the second communication protocol is internet protocol version 4.
An embodiment of the present application further provides a network system, which includes the client, the target website, the first server, and the electronic device described above. With reference to fig. 6 and 7, the client, the target website and the first server are respectively connected to the electronic device, and the client obtains resources through the electronic device, where the electronic device includes a gateway.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made to the disclosure by those skilled in the art within the spirit and scope of the disclosure, and such modifications and equivalents should also be considered as falling within the scope of the disclosure.

Claims (8)

1. A network-based information processing method, comprising:
receiving a first access request sent by a client based on a first communication protocol, determining a target website corresponding to the first access request, and sending the first access request to the target website;
receiving first response information generated after the target website responds to the first access request, adding specific content in front of a uniform resource identifier of an external link in the first response information to enable the client to identify the external resource corresponding to the modified external link as data on the target website according to the specific content, so that the client can process the modified external link based on the first communication protocol, wherein the external link is associated with a first server which communicates based on a second communication protocol; the specific content comprises a specific character string added before a uniform resource locator of an external link;
when a second access request of the modified external link required to be processed by the client is received, acquiring a corresponding resource from the first server based on the second access request so as to send the resource to the client;
in a case where the first communication protocol is internet protocol version 6 and the second communication protocol is internet protocol version 4, the method further comprises:
the IPv4 address of the modification response file is an IPv6 address used by the application proxy gateway or an IPv6 address used by the new IPv6 service.
2. The method of claim 1, wherein the obtaining the corresponding resource from the first server based on the second access request after receiving the second access request that the client requires to process the modified external link comprises:
after receiving the second access request, performing recovery operation on the modified uniform resource identifier of the external link;
and determining the first server corresponding to the external link according to the restored uniform resource identifier of the external link so as to acquire the resource corresponding to the external link from the first server.
3. The method of claim 2, wherein the determining the first server corresponding to the external link according to the restored uniform resource identifier of the external link, so as to obtain the resource corresponding to the external link from the first server comprises:
acquiring the IP address of the first server through the restored uniform resource identifier of the external link to determine the first server;
and sending a third access request corresponding to the second access request to the first server based on a second communication protocol, and receiving the resource returned after the first server responds based on the second communication protocol.
4. The method of claim 3, wherein sending the resource to the client comprises:
and after receiving the resource, sending the resource to the client based on the first communication protocol.
5. The method of claim 1, wherein the first access request is characterized by an access request sent by the client after performing a DNS query on the target website and obtaining the IP address of the target website.
6. The method of claim 1, wherein the receiving client determines a target website corresponding to a first access request based on the first access request sent by a first communication protocol, so as to send the first access request to the target website comprises:
judging a communication protocol used by the target website;
and when the communication protocol used by the target website is determined to be a second communication protocol, sending the first access request to the target website based on the second communication protocol.
7. An electronic device comprising a processor and a memory, the memory having stored therein an executable program, the processor executing the executable program to implement the steps of the network-based information processing method as claimed in claim 1.
8. A network system comprising the electronic device of claim 7; the client, the target website and the first server are respectively connected with the electronic equipment, and the client acquires the resources through the electronic equipment, wherein the electronic equipment comprises a gateway.
CN201910783421.9A 2019-08-23 2019-08-23 Information processing method based on network, electronic equipment and network system Active CN110392130B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910783421.9A CN110392130B (en) 2019-08-23 2019-08-23 Information processing method based on network, electronic equipment and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910783421.9A CN110392130B (en) 2019-08-23 2019-08-23 Information processing method based on network, electronic equipment and network system

Publications (2)

Publication Number Publication Date
CN110392130A CN110392130A (en) 2019-10-29
CN110392130B true CN110392130B (en) 2022-09-23

Family

ID=68289264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910783421.9A Active CN110392130B (en) 2019-08-23 2019-08-23 Information processing method based on network, electronic equipment and network system

Country Status (1)

Country Link
CN (1) CN110392130B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855766A (en) * 2019-11-06 2020-02-28 北京天融信网络安全技术有限公司 Method and device for accessing Web resources and proxy server
CN111107056A (en) * 2019-11-22 2020-05-05 睿哲科技股份有限公司 Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server
CN110839046B (en) * 2019-12-03 2022-04-22 睿哲科技股份有限公司 Multi-protocol intercommunication method and system
CN111064823A (en) * 2019-12-27 2020-04-24 深信服科技股份有限公司 Data processing method, terminal, device and storage medium
CN111416885B (en) * 2020-03-20 2021-04-06 福建万物易联网络科技有限公司 Outer chain rewriting distributed system with fixed-length domain name
CN112153753B (en) * 2020-09-24 2022-09-16 维沃移动通信有限公司 Network connection method and device
CN114006789A (en) * 2021-09-22 2022-02-01 鸬鹚科技(深圳)有限公司 Web information system access method, multi-cloud application gateway, computer device and medium
CN114024728B (en) * 2021-10-28 2024-04-02 杭州默安科技有限公司 Honeypot building method and application method
CN114157485A (en) * 2021-12-03 2022-03-08 北京天融信网络安全技术有限公司 Resource access method and device and electronic equipment
CN114448849B (en) * 2021-12-17 2023-12-05 北京邮电大学 Method for detecting supporting mode of IPv6 network of website and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547553A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Method, system and device for accessing service based on wireless application protocol (WAP)
CN106790503A (en) * 2016-12-16 2017-05-31 广东睿哲科技股份有限公司 It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys
CN107835256A (en) * 2017-12-08 2018-03-23 福建润哲网络科技有限公司 A kind of double stack cache resources sharing methods of IPv4 IPv6 based on http protocol and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MY167136A (en) * 2012-12-19 2018-08-13 Mimos Berhad Server-based URL management method and system
CN109561078B (en) * 2018-11-09 2022-04-12 深圳万物云联科技有限公司 External link url resource calling method and device
CN110225148A (en) * 2019-01-02 2019-09-10 北京宏图佳都通信设备有限公司 IPv4/IPv6 address conversion system
CN109639741A (en) * 2019-01-31 2019-04-16 安宇云联(广州)科技有限责任公司 The two-way method and apparatus across stack addressing are realized based on http protocol conversion
CN109862130B (en) * 2019-02-18 2022-08-09 深信服科技股份有限公司 Method, device, equipment and computer medium for accessing IPv4 external link

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547553A (en) * 2010-12-30 2012-07-04 中国移动通信集团公司 Method, system and device for accessing service based on wireless application protocol (WAP)
CN106790503A (en) * 2016-12-16 2017-05-31 广东睿哲科技股份有限公司 It is a kind of to realize the IPv4 websites without skylight using the device upgraded to IPv6 based on HTTP reverse proxys
CN107835256A (en) * 2017-12-08 2018-03-23 福建润哲网络科技有限公司 A kind of double stack cache resources sharing methods of IPv4 IPv6 based on http protocol and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
通过睿哲6aaS实现数据中心应用服务IPv6快速升级;李伟波等;《科研信息化技术与应用》;20180120(第01期);全文 *

Also Published As

Publication number Publication date
CN110392130A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN110392130B (en) Information processing method based on network, electronic equipment and network system
JP4965559B2 (en) Resource address request management method and related gateway device
US8331263B2 (en) Discovery of network nodes and routable addresses
US9648033B2 (en) System for detecting the presence of rogue domain name service providers through passive monitoring
CN111917900B (en) Domain name agent request processing method and device
CN104158919A (en) Webpage access implementation method, server and client
US20130275595A1 (en) Network element failure detection
CN105337961A (en) Method for communication with client side and server
CN102884764A (en) Message receiving method, deep packet inspection device, and system
CN109218457B (en) Network data processing method, device and system
CN110855766A (en) Method and device for accessing Web resources and proxy server
CN112866432B (en) Domain name resolution method, system, electronic equipment and storage medium
CN110392069B (en) CDN service scheduling processing method and CDN server
WO2020088170A1 (en) Domain name system configuration method and related apparatus
CN114666245A (en) IPv6 single stack support degree determining method of B/S system and related equipment
CN114374669A (en) VPN client proxy DNS analysis method and system
CN106411978B (en) Resource caching method and device
CN106899456B (en) Method for realizing link detection and repair
CN111225038A (en) Server access method and device
CN116566945A (en) Access method and device for decentralised application, electronic equipment and storage medium
CN107483294B (en) Method and device for monitoring network request
CN114338630A (en) Domain name access method, device, electronic equipment, storage medium and program product
KR101670699B1 (en) Method and system for communicating between web pages
CN104869182A (en) Domain name resolution method and device
CN112073548B (en) Method and apparatus for solving skylight problems

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