CN111698295B - Communication method, device, equipment and computer storage medium - Google Patents

Communication method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN111698295B
CN111698295B CN202010458621.XA CN202010458621A CN111698295B CN 111698295 B CN111698295 B CN 111698295B CN 202010458621 A CN202010458621 A CN 202010458621A CN 111698295 B CN111698295 B CN 111698295B
Authority
CN
China
Prior art keywords
terminal
access request
response
response data
response information
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
CN202010458621.XA
Other languages
Chinese (zh)
Other versions
CN111698295A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202010458621.XA priority Critical patent/CN111698295B/en
Publication of CN111698295A publication Critical patent/CN111698295A/en
Application granted granted Critical
Publication of CN111698295B publication Critical patent/CN111698295B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The invention discloses a communication method, which comprises the following steps: under the condition that a first access request of a first terminal is received, response information is generated according to the first access request, wherein the response information comprises first response data and a second access request corresponding to the first access request; and sending the response information to the first terminal so that the first terminal accesses a second terminal according to the second access request. The invention also discloses a communication device, equipment and a computer storage medium, wherein the equipment actively initiates a cross-domain access request to the first terminal, so that the first terminal can access the second terminal according to the cross-domain access request, active indirect communication between the local terminal and the second terminal is realized, the configuration of the equipment is automatically updated under the condition of ensuring the security of the network limited equipment, manual updating of the user is not needed, and the updating efficiency of the equipment is improved.

Description

Communication method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a communications method, apparatus, device, and computer storage medium.
Background
In order to make devices such as a server and the like safer, many devices are provided with firewalls, so that the networks of the devices are limited, external networks cannot be directly accessed, and the external networks cannot be connected to the devices, thereby ensuring the safety of the devices.
The device cannot connect to the external network for updates due to the device's network limitations. Maintenance personnel need to manually acquire an update file from a corresponding external network address and manually upload the update file to the equipment, so that the update process is complicated and the update efficiency is low.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a communication method, a device, equipment and a computer storage medium, aiming at realizing communication between a network limited server and an external network by accessing the external network through a first terminal according to a cross-domain access request initiated by the network limited equipment.
To achieve the above object, the present invention provides a communication method including the steps of:
under the condition that a first access request of a first terminal is received, response information is generated according to the first access request, wherein the response information comprises first response data and a second access request corresponding to the first access request;
and sending the response information to the first terminal so that the first terminal accesses a second terminal according to the second access request.
Optionally, the step of generating response information according to the access request includes:
acquiring first response data corresponding to the first access request;
generating a second access request according to the address information of a second terminal needing cross-domain access;
and generating the response information according to the first response data and the second access request.
Optionally, after the step of sending the response information to the first terminal, the method further includes:
and receiving second response data corresponding to the second access request and fed back by the first terminal.
Optionally, the step of generating response information according to the first access request includes:
acquiring first response data corresponding to the first access request;
acquiring software version information of a home terminal;
generating the second access request according to the software version information and the address information of the second terminal;
and generating the response information according to the first response data and the second access request.
Optionally, after the step of sending the response information to the first terminal, the method further includes:
and receiving second response data corresponding to the second access request and fed back by the first terminal, and updating the software of the local terminal according to the second response data.
Optionally, in the case of receiving a first access request of the first terminal, the step of generating response information according to the first access request includes:
under the condition that a first access request of the first terminal is received, acquiring a software update period of a local terminal;
acquiring software version information of the home terminal under the condition that an update time point corresponding to the software update period arrives;
generating the second access request according to the software version information and the address information of the second terminal;
and generating the response information according to the first response data and the second access request.
Optionally, the step of generating response information according to the first access request includes:
acquiring first response data corresponding to the first access request;
acquiring current operation parameters of a home terminal;
generating the second access request according to the current operation parameter and the address information of the second terminal;
and generating the response information according to the first response data and the second access request, so that the second terminal displays the current operation parameters under the condition that the first terminal accesses the second terminal according to the second access request.
In addition, to achieve the above object, the present invention also provides a communication apparatus including:
the generating module is used for generating response information according to the first access request under the condition that the first access request of the first terminal is received, wherein the response information comprises first response data and second access requests corresponding to the first access request;
and the sending module is used for sending the response information to the first terminal so that the first terminal accesses the second terminal according to the second access request.
In addition, to achieve the above object, the present invention also provides a communication apparatus including: a memory, a processor and a communication program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the communication method as described in any one of the above.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium having stored thereon a communication program which, when executed by a processor, implements the steps of the communication method as described above.
The communication method, the device, the equipment and the computer storage medium provided by the embodiment of the invention generate response information according to the first access request under the condition that the first access request of the first terminal is received, wherein the response information comprises first response data and second access request corresponding to the first access request, and the response information is sent to the first terminal so that the first terminal accesses the second terminal according to the second access request. According to the invention, the device actively initiates the cross-domain access request to the first terminal, so that the first terminal can access the second terminal according to the cross-domain access request, active indirect communication between the local terminal and the second terminal is realized, the configuration of the device is automatically updated under the condition that the security of the network limited device is ensured, manual updating of a user is not required, and the updating efficiency of the device is improved.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the communication method of the present invention;
FIG. 3 is a flow chart of a second embodiment of the communication method of the present invention;
FIG. 4 is a flow chart of a third embodiment of the communication method of the present invention;
FIG. 5 is a schematic diagram of a network topology according to the present invention;
FIG. 6 is an application scenario diagram of the communication method of the present invention;
fig. 7 is a schematic diagram of a feedback process of the second terminal of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a solution, wherein a cross-domain access request is actively initiated to a first terminal through equipment, so that the first terminal can access a second terminal according to the cross-domain access request, active indirect communication between a local terminal and the second terminal is realized, the configuration of the equipment is automatically updated under the condition that the security of network limited equipment is ensured, manual updating of a user is not needed, and the updating efficiency of the equipment is improved.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a communication bus 1002, a memory 1003, and a network interface 1004. Wherein the communication bus 1002 is used to enable connected communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1003 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1003 may alternatively be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a communication program of a network communication module and a server may be included in a memory 1003 as one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; and the processor 1001 may be configured to call a communication program stored in the memory 1003 and perform the following operations:
under the condition that a first access request of a first terminal is received, response information is generated according to the first access request, wherein the response information comprises first response data and a second access request corresponding to the first access request;
and sending the response information to the first terminal so that the first terminal accesses a second terminal according to the second access request.
Further, the processor 1001 may call a communication program stored in the memory 1003, and also perform the following operations:
acquiring first response data corresponding to the first access request;
generating a second access request according to the address information of a second terminal needing cross-domain access;
and generating the response information according to the first response data and the second access request.
Further, the processor 1001 may call a communication program stored in the memory 1003, and also perform the following operations:
and receiving second response data corresponding to the second access request and fed back by the first terminal.
Further, the processor 1001 may call a communication program stored in the memory 1003, and also perform the following operations:
acquiring first response data corresponding to the first access request;
acquiring software version information of a home terminal;
generating the second access request according to the software version information and the address information of the second terminal;
and generating the response information according to the first response data and the second access request.
Further, the processor 1001 may call a communication program stored in the memory 1003, and also perform the following operations:
and receiving second response data corresponding to the second access request and fed back by the first terminal, and updating the software of the local terminal according to the second response data.
Further, the processor 1001 may call a communication program stored in the memory 1003, and also perform the following operations:
under the condition that a first access request of the first terminal is received, acquiring a software update period of a local terminal;
acquiring software version information of the home terminal under the condition that an update time point corresponding to the software update period arrives;
generating the second access request according to the software version information and the address information of the second terminal;
and generating the response information according to the first response data and the second access request.
Further, the processor 1001 may call a communication program stored in the memory 1003, and also perform the following operations:
acquiring first response data corresponding to the first access request;
acquiring current operation parameters of a home terminal;
generating the second access request according to the current operation parameter and the address information of the second terminal;
and generating the response information according to the first response data and the second access request, so that the second terminal displays the current operation parameters under the condition that the first terminal accesses the second terminal according to the second access request.
Referring to fig. 2, in one embodiment, the communication method includes the steps of:
step S10, under the condition that a first access request of a first terminal is received, response information is generated according to the first access request, wherein the response information comprises first response data and a second access request corresponding to the first access request;
in this embodiment, under the condition that a first access request sent by a first terminal is received, first response data corresponding to the first access request is obtained, a second access request is generated according to a second terminal to be accessed by a home terminal, and response data is generated according to the first response data and the second access request.
It should be noted that the first access request may include an access request for requesting a web page, or may be an access request for transmitting specific data (the specific data may be determined according to a specific application scenario, for example, a message transmitted between two terminals is transmitted, etc.), so long as the request type of the first access request is not limited in the case that the response message for the first access request may further include the second access request.
The second access request is similar to the first request, and may also include an access request for requesting a web page, or may be an access request for transmitting specific data, which is not limited herein.
And step S20, the response information is sent to the first terminal, so that the first terminal accesses a second terminal according to the second access request.
Specifically, in the case of generating response information for the first access request, the response information is transmitted to the first terminal in accordance with the transmission path of the first access request. And under the condition that the response information is received by the first terminal, analyzing the response information according to protocol standards followed by data transmission between the first terminal and the second terminal to obtain first response data corresponding to the first access request and a second access request aiming at the second terminal.
The first terminal accesses the second terminal according to the parsed second access request so as to realize the communication between the local terminal and the second terminal by means of the network access of the first terminal.
As an example, the communication method of the present embodiment can be applied to the network topology as shown in fig. 5.
As shown in fig. 5, the home terminal (which may be regarded as an execution subject of the communication method in the present embodiment) cannot directly access the second terminal through the network, for example, the home terminal and the second terminal have a network firewall, and the network security of the home terminal is protected through the network firewall and the network access of the home terminal to the second terminal is limited. In fig. 5, the first terminal may communicate with the home terminal or may communicate with the second terminal, so that the home terminal may access the second terminal by accessing the first terminal to enable the first terminal to access the second terminal, thereby implementing indirect communication between the home terminal and the second terminal.
Optionally, in the embodiment of the present invention, the home terminal and the first terminal and the second terminal may be a server, a router, a client, a security device (firewall), and so on. It should be noted that, specific types of the home terminal, the first terminal, and the second terminal are not limited herein, and a plurality of terminal devices capable of satisfying the network topology shown in fig. 5 may be used as the home terminal, the first terminal, and the second terminal.
As an example, when the first terminal is a client, the local terminal is a network limited server (for example, a terminal with a relatively high security requirement is usually prohibited from being connected to an external network), and the second terminal is an external network server, the network limited server cannot directly access the external network server because the network of the local terminal is limited, the network limited server and the client are both in an internal network and are communicated through the internal network, the network limited server is responsible for data management, the client can access the data in the network limited server, and the client is responsible for completing interaction tasks with the client. While clients typically have low network connection requirements, they can interact with external network servers via the internet. Thus, in the case where the network limited server needs to interact with the external network server (e.g., upgrade, update rules, etc.), the data interaction between the network limited server and the external network server may be implemented by means of the network unrestricted client as a proxy.
Based on the network topology in fig. 5, as shown in fig. 6, when the home terminal (network limited server) receives a first access request of a first terminal (client), the network limited server generates response information according to the first access request, where the response information includes first response data corresponding to the first access request and second access request, the first response data includes server resources that the client wants to access, and the second access request includes data that the network limited server wants to communicate with a second terminal (external network server).
Optionally, the second access request generated by the home terminal may include address information, request content, type of network transmission protocol, etc. that need to be accessed across domains, where the address information is generally a pre-stored network address, and the pre-stored network address corresponds to the second terminal, that is, the home terminal stores the address information of the second terminal in advance. The pre-stored network address may include a protocol type, a hostname port number, a uniform resource locator (URL, uniform Resource Locator), etc. In order to ensure the security of the home terminal, the home terminal itself cannot directly access the pre-stored network address.
Optionally, the address of the home terminal is pre-stored in the first terminal, so that in the case that the user wants to access the resource of the home terminal, the first terminal can directly send the first access request to the address of the home terminal to request the required resource. Similarly, the maintainer can also send the first access request to the local terminal through the first terminal, so that the local terminal executes the steps of generating response information and the subsequent steps according to the first access request, and the purpose of actively communicating with the second terminal by the local terminal is achieved.
The home terminal sends response information comprising the first access request to the first terminal, so that the first terminal receives first response data corresponding to the first access request, the first terminal responds to the access of the first terminal to the home terminal, and the first terminal accesses the second terminal according to the second access request. Under the condition that the first terminal receives the response information, the first terminal acquires a second access request in the response data, and replaces the home terminal to access the second terminal according to the data of the second access request, so that the purpose of proxy communication is achieved. Because the network limited server is not directly communicated with the external network server, the external network server cannot determine the address of the network limited server to carry out network connection, so that the safety of the network limited server can be ensured under the condition of releasing the network limitation of the network limited server.
Optionally, the home terminal may be implemented in a manner of window, postmessage, jsonp, cross source resource sharing (CORS, cross-Origin Resource Sharing), etc. under the condition of accessing the external network server in a Cross-domain manner, where jsonp (JSON with Padding) is a "usage mode" of json, and may be used to solve the problem of Cross-domain data access of the main stream browser. For example, in the case of forwarding through a window, postmessage, proxy communication may be implemented through a browser in the first terminal, specifically, the browser of the first terminal includes a first window and a second window that belong to different sources, and the second window continuously listens to a message of the first window, where if the first terminal sends a first access request to the server through the first window of the browser, the first window receives response information fed back by the server, the response information may also be acquired by the second window, and the second window accesses the external network server according to the second access request in the response information.
Optionally, the request content in the cross-domain access request may be software version information corresponding to the home terminal, so as to implement software update of the home terminal. Of course, the request content in the second access request may also be other resource data in the second terminal, for supplementing or updating the data stored in the local terminal.
Alternatively, the home terminal may perform unidirectional communication only with the second terminal. The local terminal obtains current operation parameters of the local terminal in the process of generating the second access request, including CPU occupancy rate, CPU temperature, operated time length, storage space residual capacity and the like. The local terminal generates a second access request according to the current operation parameters and the pre-stored address information of the second terminal, wherein the second access request does not contain the requested resources, so that the second terminal can monitor the operation state of the local terminal according to the current operation parameters in the second access request when the first terminal accesses the second terminal according to the second access request, and the second terminal cannot feed back second response data to the first terminal because the second terminal cannot acquire the requested resources. The second terminal can also display the current operation parameters under the condition that the current operation parameters are acquired, so that a user of the second terminal can check and manage the current operation parameters.
In the technical scheme disclosed by the embodiment, the cross-domain access request is actively initiated to the first terminal through the equipment, so that the first terminal can access the second terminal according to the cross-domain access request, active indirect communication between the local terminal and the second terminal is realized, the configuration of the equipment is automatically updated under the condition that the security of the network limited equipment is ensured, manual updating of the user is not needed, and the updating efficiency of the equipment is improved.
In another embodiment, as shown in fig. 3, after step S20, on the basis of the embodiment shown in fig. 2, the method further includes:
step S30, receiving second response data corresponding to the second access request, which is fed back by the first terminal.
In this embodiment, when the first terminal accesses the second terminal according to the second access request, the first terminal generates an external network access request according to the content correspondence in the second access request, and sends the external network access request to the second terminal. And under the condition that the second terminal receives the external network access request sent by the first terminal, firstly judging whether the target address in the external network access request is consistent with the address information of the second terminal, if so, generating second response data according to the request content in the external network access request, and feeding back the second response data to the first terminal, wherein the second response data corresponds to the second access request.
As shown in fig. 7, when receiving the second response data, the first terminal feeds back the second response data to the home terminal. If the second access request is sent to the first terminal within the preset time, the local terminal receives the second response data fed back by the first terminal, and the two-way communication between the local terminal and the second terminal is successful. Under the condition of a bidirectional communication process, data transmission can be performed among the local terminal, the first terminal and the second terminal in an encryption mode of a hypertext transfer security protocol (HTTPS, hyper Text Transfer Protocol over SecureSocket Layer), so that the security of network communication is further improved.
Optionally, when the first terminal accesses the home terminal, the first terminal obtains the web page of the home terminal through the first access request, and at this time, the first response data is a response page corresponding to the first access request, where the response page is the web page. For another example, when the home terminal web accesses the second terminal through the first terminal proxy, the home terminal obtains the web page of the second terminal through the second access request, and at this time, the second response data is a response page corresponding to the second access request, and the response page is also the web page.
Optionally, since the first terminal sends the external network access request to the external network server through the second window, in the case that the external network server feeds back the second response data to the first terminal, the second window receives the second response data and determines whether the source address in the second response data is consistent with the target address in the second access request, if so, it indicates that the second response data corresponds to the second access request, and the first window may also acquire the second response data by monitoring the second window and feed back the second response data to the local terminal, so that the local terminal may acquire the second response data.
Optionally, when the local terminal needs to perform software upgrading, the local terminal may obtain first response data corresponding to the first access request under the condition that response information is generated according to the first access request, obtain software version information of the local terminal, generate a second access request according to the software version information and address information of the second terminal, and generate response information according to the first response data and the second access request, so as to request an update file corresponding to the software version information to the second terminal. The software version information comprises the model number of the local terminal and the current software version number. Correspondingly, when receiving second response data corresponding to the second access request and fed back by the first terminal, the local terminal updates the software of the local terminal according to the second response data, thereby realizing automatic update of the software version of the local terminal.
Optionally, when the local terminal needs to perform rule updating, the local terminal may obtain first response data corresponding to the first access request under the condition that response information is generated according to the first access request, obtain rule information of the local terminal, generate a second access request according to the rule information and address information of the second terminal, and generate response information according to the first response data and the second access request, so as to request an update file corresponding to the rule information to the second terminal. Wherein the rule information comprises specific content of the rule of the home terminal. Correspondingly, when the local terminal receives second response data corresponding to the second access request and fed back by the first terminal, the local terminal updates the rules of the local terminal according to the second response data, so that the rules of the local terminal are automatically updated. The rule may be a security rule, and the security of the local terminal is improved by updating the rule.
Optionally, the home terminal further detects whether the type of the second response data matches the file type corresponding to the update file and/or whether the name format of the second response data matches the name corresponding to the update file when receiving the second response data fed back by the first terminal. And under the condition that the detection is finished, the local terminal determines whether to update the software version according to the second response data according to the detection result.
In the technical scheme disclosed in the embodiment, when the home terminal sends the response information including the second access request to the first terminal, the home terminal receives second response data corresponding to the second access request and fed back by the first terminal, so as to realize bidirectional communication between the home terminal and the second terminal.
In yet another embodiment, as shown in fig. 4, on the basis of the embodiment shown in any one of fig. 2 to 3, step S10 includes:
step S11, under the condition that a first access request of the first terminal is received, acquiring a software update period of a local terminal;
step S12, acquiring software version information of the local terminal under the condition that an update time point corresponding to the software update period arrives;
step S13, generating the second access request according to the software version information and the address information of the second terminal;
and step S14, generating the response information according to the first response data and the second access request.
In this embodiment, the home terminal may trigger a software update action of the home terminal when receiving the first access request of the first terminal. Specifically, the home terminal acquires a software update period of the home terminal, judges whether an update time point corresponding to the software update period is reached, generates a second access request corresponding to the software update according to the software version information and the address information of the second terminal if the update time point is reached, and sends response information containing the second access request to the first terminal. If the update time point does not arrive, the second access request is not generated, and only the first response data corresponding to the first access request is sent to the first terminal as response information, so that indirect communication between the local terminal and the second terminal is avoided too frequently. For example, when the update period is 7 days, if the home terminal receives the first access request of the first terminal, the home terminal obtains a time interval between a time point when the second access request was generated last time and a current time point, if the time interval is greater than 7 days, generates the second access request, and sends response information including the second access request to the first terminal, and if the time interval is less than 7 days, sends only first response data corresponding to the first access request as response information to the first terminal.
In the technical scheme disclosed in the embodiment, under the condition that a first access request of a first terminal is received, a software update period of a local terminal is acquired, and under the condition that an update time point corresponding to the software update period arrives, response information is generated according to first response data and a second access request, so that periodic automatic update of the local terminal is realized, frequent communication of the local terminal is avoided, the risk that the local terminal is exposed is reduced, and the safety of the local terminal is improved.
In addition, an embodiment of the present invention further provides a communication device, where the communication device includes:
the generating module is used for generating response information according to the first access request under the condition that the first access request of the first terminal is received, wherein the response information comprises first response data and second access requests corresponding to the first access request;
and the sending module is used for sending the response information to the first terminal so that the first terminal accesses the second terminal according to the second access request.
According to the embodiment, the device actively initiates the cross-domain access request to the first terminal, so that the first terminal can access the second terminal according to the cross-domain access request, active indirect communication between the local terminal and the second terminal is realized, the configuration of the device is automatically updated under the condition that the security of the network limited device is ensured, manual updating of a user is not needed, and the updating efficiency of the device is improved.
In addition, the embodiment of the invention also provides a communication device, which comprises: the communication device comprises a memory, a processor and a communication program stored on the memory and capable of running on the processor, wherein the communication program realizes the steps of the communication method according to the various embodiments when being executed by the processor.
Furthermore, the embodiments of the present invention also provide a computer storage medium having a communication program stored thereon, which when executed by a processor, implements the steps of the communication method described in the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A communication method, characterized in that the communication method comprises the steps of:
generating response information according to a first access request of a first terminal under the condition that the first access request is received, wherein the response information comprises first response data and a second access request corresponding to the first access request, the first response data comprises server resources which the first terminal wants to access, the second access request comprises data which want to communicate with a second terminal, and the data comprises address information which needs to be accessed in a cross-domain mode, request content and the type of network transmission protocol;
the response information is sent to the first terminal, so that the first terminal accesses a second terminal according to the second access request;
the step of sending the response information to the first terminal so that the first terminal accesses a second terminal according to the second access request comprises the following steps:
the response information is sent to the first terminal, a browser of the first terminal comprises a first window and a second window which belong to different sources, and the second window continuously monitors information of the first window, so that if the first terminal sends the first access request to a local terminal through the first window of the browser, the second window accesses the second terminal according to a second access request in the response information if the first window or the second window receives the response information fed back by the local terminal;
after the step of sending the response information to the first terminal, the method further includes:
when the first terminal accesses the second terminal according to the second access request, the first terminal correspondingly generates an external network access request according to the content in the second access request, and sends the external network access request to the second terminal;
the second terminal judges whether a target address in the external network access request is consistent with address information of the second terminal under the condition that the second terminal receives the external network access request sent by the first terminal;
and if the request content is consistent with the request content in the external network access request, the second terminal generates second response data according to the request content in the external network access request, and feeds the second response data back to the first terminal, wherein the second response data corresponds to the second access request.
2. The communication method of claim 1, wherein the step of generating response information from the access request comprises:
acquiring first response data corresponding to the first access request;
generating a second access request according to the address information of a second terminal needing cross-domain access;
and generating the response information according to the first response data and the second access request.
3. The communication method according to claim 1, wherein after the step of transmitting the response information to the first terminal, further comprising:
and receiving second response data corresponding to the second access request and fed back by the first terminal.
4. The communication method of claim 1, wherein the step of generating response information from the first access request comprises:
acquiring first response data corresponding to the first access request;
acquiring software version information of a home terminal;
generating the second access request according to the software version information and the address information of the second terminal;
and generating the response information according to the first response data and the second access request.
5. The communication method of claim 4, wherein after the step of transmitting the response information to the first terminal, further comprising:
and receiving second response data corresponding to the second access request and fed back by the first terminal, and updating the software of the local terminal according to the second response data.
6. The communication method according to claim 1, wherein the step of generating response information according to the first access request in the case where the first access request of the first terminal is received includes:
under the condition that a first access request of the first terminal is received, acquiring a software update period of a local terminal;
acquiring software version information of the home terminal under the condition that an update time point corresponding to the software update period arrives;
generating the second access request according to the software version information and the address information of the second terminal;
and generating the response information according to the first response data and the second access request.
7. The communication method of claim 1, wherein the step of generating response information from the first access request comprises:
acquiring first response data corresponding to the first access request;
acquiring current operation parameters of a home terminal;
generating the second access request according to the current operation parameter and the address information of the second terminal;
and generating the response information according to the first response data and the second access request, so that the second terminal displays the current operation parameters under the condition that the first terminal accesses the second terminal according to the second access request.
8. A communication device, the communication device comprising:
the generation module is used for generating response information according to a first access request of a first terminal under the condition that the first access request of the first terminal is received, wherein the response information comprises first response data and a second access request corresponding to the first access request, the first response data comprises server resources which the first terminal wants to access, the second access request comprises data which want to communicate with a second terminal, and the data comprises address information which needs to be accessed in a cross-domain mode, request content and types of network transmission protocols;
the sending module is used for sending the response information to the first terminal so that the first terminal accesses a second terminal according to the second access request;
the sending module is further configured to send the response information to the first terminal, where the browser of the first terminal includes a first window and a second window that belong to different sources, and the second window continuously monitors a message of the first window, so that if the first terminal sends the first access request to the local terminal through the first window of the browser, the first window or the second window receives the response information fed back by the local terminal, and the second window accesses the second terminal according to a second access request in the response information;
the sending module is further configured to, when the first terminal accesses the second terminal according to the second access request, correspondingly generate an external network access request according to content in the second access request, and send the external network access request to the second terminal; the second terminal judges whether a target address in the external network access request is consistent with address information of the second terminal under the condition that the second terminal receives the external network access request sent by the first terminal; and if the request content is consistent with the request content in the external network access request, the second terminal generates second response data according to the request content in the external network access request, and feeds the second response data back to the first terminal, wherein the second response data corresponds to the second access request.
9. A communication device, the communication device comprising: memory, a processor and a communication program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the communication method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a communication program which, when executed by a processor, implements the steps of the communication method according to any of claims 1 to 7.
CN202010458621.XA 2020-05-26 2020-05-26 Communication method, device, equipment and computer storage medium Active CN111698295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010458621.XA CN111698295B (en) 2020-05-26 2020-05-26 Communication method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010458621.XA CN111698295B (en) 2020-05-26 2020-05-26 Communication method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111698295A CN111698295A (en) 2020-09-22
CN111698295B true CN111698295B (en) 2023-05-12

Family

ID=72478423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010458621.XA Active CN111698295B (en) 2020-05-26 2020-05-26 Communication method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111698295B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581265A (en) * 2012-08-07 2014-02-12 深圳市傲冠软件股份有限公司 Remote access method and system
CN104618400A (en) * 2015-03-09 2015-05-13 深圳市茁壮网络股份有限公司 Local area network access method and device
CN108965203A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 A kind of resource access method and server
CN108964975A (en) * 2018-05-30 2018-12-07 北京五八信息技术有限公司 Cross-domain access processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9503501B2 (en) * 2012-09-17 2016-11-22 Salesforce.Com, Inc. Cross domain in-browser proxy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581265A (en) * 2012-08-07 2014-02-12 深圳市傲冠软件股份有限公司 Remote access method and system
CN104618400A (en) * 2015-03-09 2015-05-13 深圳市茁壮网络股份有限公司 Local area network access method and device
CN108965203A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 A kind of resource access method and server
CN108964975A (en) * 2018-05-30 2018-12-07 北京五八信息技术有限公司 Cross-domain access processing method and device

Also Published As

Publication number Publication date
CN111698295A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
US10609181B2 (en) Method and apparatus for controlling service chain of service flow
US7746824B2 (en) Method and apparatus for establishing multiple bandwidth-limited connections for a communication device
EP3142306B1 (en) Openflow communication method, system, controller, and service gateway
CN112399130B (en) Processing method and device of cloud video conference information, storage medium and communication equipment
US10154007B1 (en) Enterprise cloud access control and network access control policy using risk based blocking
US20130268578A1 (en) Method And Apparatus For Facilitating Communications With A Managed Client Device
CN115134105A (en) Resource configuration method and device of private network, electronic equipment and storage medium
CN109561010B (en) Message processing method, electronic equipment and readable storage medium
US20070130312A1 (en) Web service provision apparatus and method and web service request apparatus and method
CN111698295B (en) Communication method, device, equipment and computer storage medium
CN106789993B (en) TCP agent method and device
CN107087011B (en) Method, device and system for realizing remote access
CN112019622A (en) Flow control method, system, equipment and readable storage medium
CN103634289A (en) Communication block apparatus and communication block method
CN113746851B (en) Proxy system and method supporting real-time analysis of GRPC request
CN107231567B (en) Message transmission method, device and system
US20160381147A1 (en) Information transmission method and apparatus
US20200396105A1 (en) Method for the remote management of a device connected to a residential gateway
CN113422716B (en) Mail security control method and system
CN114338633B (en) Method and system for remotely connecting Linux server
US9219618B2 (en) Information processing system, information processing device, management terminal device, and computer readable medium
CN113407234B (en) Cross-platform and cross-browser operation and maintenance access method, system and storage medium
US11546291B1 (en) FQDN (Fully Qualified Domain Name) routes optimization in SDWAN (Software-Defined Wide Area Networking)
JP2017212572A (en) Remote access service system, information processing device, gateway device, and program
JP2007272717A (en) Information management apparatus and its method

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