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

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

Info

Publication number
CN111698295A
CN111698295A CN202010458621.XA CN202010458621A CN111698295A CN 111698295 A CN111698295 A CN 111698295A CN 202010458621 A CN202010458621 A CN 202010458621A CN 111698295 A CN111698295 A CN 111698295A
Authority
CN
China
Prior art keywords
terminal
access request
generating
response
response data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010458621.XA
Other languages
Chinese (zh)
Other versions
CN111698295B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a communication method, which comprises the following steps: under the condition of receiving a first access request of a first terminal, generating response information according to the first access request, wherein the response information comprises first response data corresponding to the first access request and a second 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, and the active indirect communication between the local terminal and the second terminal is realized, so that the configuration of the equipment is automatically updated under the condition of ensuring the security of the network limited equipment, the manual update of a user is not needed, and the update 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 communication technologies, and in particular, to a communication method, apparatus, device, and computer storage medium.
Background
In order to make devices such as servers and the like safer, many devices are provided with firewalls, so that networks of the devices are limited and cannot directly access external networks, and the external networks cannot be connected to the devices so as to ensure the safety of the devices.
Due to the network limitations of the device, the device cannot connect to the external network for updating. Maintenance personnel need to manually acquire the update file from the corresponding external network address and manually upload the update file to the equipment, so that the updating process is complicated, and the updating efficiency is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a communication method, a communication device, communication equipment and a computer storage medium, and aims to realize 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 a network limited device.
To achieve the above object, the present invention provides a communication method, including the steps of:
under the condition of receiving a first access request of a first terminal, generating response information according to the first access request, wherein the response information comprises first response data corresponding to the first access request and a second 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 the second access request according to the address information of the 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 message to the first terminal, the method further includes:
and receiving second response data corresponding to the second access request 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 local 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 message to the first terminal, the method further includes:
and receiving second response data corresponding to the second access request fed back by the first terminal, and updating the software of the local terminal according to the second response data.
Optionally, the step of generating response information according to the first access request when the first access request of the first terminal is received includes:
acquiring a software updating period of a local terminal under the condition of receiving a first access request of the first terminal;
acquiring the software version information of the local terminal under the condition that the updating time point corresponding to the software updating period is reached;
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 local terminal;
generating the second access request according to the current operation parameters 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.
Further, to achieve the above object, the present invention also provides a communication apparatus comprising:
the terminal comprises a generating module, a sending module and a receiving module, wherein the generating 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 is received, and the response information comprises first response data corresponding to the first access request and a second 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.
Further, to achieve the above object, the present invention also provides a communication apparatus comprising: a memory, a processor and a communication program stored on the memory and executable on the processor, the communication program when executed by the processor implementing the steps of the communication method as described in any one of the above.
Furthermore, to achieve the above object, the present invention also provides a computer storage medium having a communication program stored thereon, the communication program implementing the steps of the communication method as described in any one of the above when executed by a processor.
According to the communication method, the communication device, the communication equipment and the computer storage medium provided by the embodiment of the invention, 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 corresponding to the first access request and a second access request, and the response information is sent to the first terminal so that the first terminal can access a second terminal according to the second access request. According to the method and the device, the cross-domain access request is actively initiated to the first terminal through the device, 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 safety of the network limited device is ensured, manual updating by a user is not needed, and the updating efficiency of the device is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a first embodiment of the communication method of the present invention;
fig. 3 is a flowchart illustrating a second embodiment of the communication method of the present invention;
fig. 4 is a flowchart illustrating a communication method according to a third embodiment of the present invention;
FIG. 5 is a schematic diagram of the network topology of the present invention;
FIG. 6 is a diagram of an application scenario of the communication method of the present invention;
fig. 7 is a schematic diagram of a feedback process of the second terminal according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a solution, which actively initiates a cross-domain access request to a first terminal through equipment so that the first terminal can access a second terminal according to the cross-domain access request, and the active indirect communication between the local terminal and the second terminal is realized, so that the configuration of the equipment is automatically updated under the condition of ensuring the security of network-limited equipment, manual update of a user is not needed, and the update efficiency of the equipment is improved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating 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 a communication bus 1002 is used to enable connective 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 non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1003 as a kind of computer storage medium may include a network communication module and a communication program of a server.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; and the processor 1001 may be configured to call the communication program stored in the memory 1003 and perform the following operations:
under the condition of receiving a first access request of a first terminal, generating response information according to the first access request, wherein the response information comprises first response data corresponding to the first access request and a second 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 the communication program stored in the memory 1003, and further perform the following operations:
acquiring first response data corresponding to the first access request;
generating the second access request according to the address information of the 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 the communication program stored in the memory 1003, and further perform the following operations:
and receiving second response data corresponding to the second access request fed back by the first terminal.
Further, the processor 1001 may call the communication program stored in the memory 1003, and further perform the following operations:
acquiring first response data corresponding to the first access request;
acquiring software version information of a local 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 the communication program stored in the memory 1003, and further perform the following operations:
and receiving second response data corresponding to the second access request 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 the communication program stored in the memory 1003, and further perform the following operations:
acquiring a software updating period of a local terminal under the condition of receiving a first access request of the first terminal;
acquiring the software version information of the local terminal under the condition that the updating time point corresponding to the software updating period is reached;
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 the communication program stored in the memory 1003, and further perform the following operations:
acquiring first response data corresponding to the first access request;
acquiring current operation parameters of a local terminal;
generating the second access request according to the current operation parameters 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 an embodiment, the communication method includes the following steps:
step S10, in a case that a first access request of a first terminal is received, generating response information according to the first access request, where the response information includes first response data and a second access request corresponding to the first access request;
in this embodiment, when 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 the local 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 requesting a web page, or may be an access request transmitting specific data (the specific data may be determined according to a specific application scenario, such as transmitting a message transmitted between two terminals, etc.), and as long as a response message to the first access request may further include a second access request, the request type of the first access request is not limited.
The second access request may also include an access request for requesting a web page, or an access request for transmitting specific data, similar to the first request, and is not limited herein.
Step S20, sending the response message to the first terminal, so that the first terminal accesses the second terminal according to the second access request.
Specifically, in the case where response information for the first access request is generated, 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 first terminal receives the response information, the first terminal analyzes the response information according to a protocol standard followed when data is transmitted 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.
And the first terminal accesses the second terminal according to the analyzed 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 may be applied to the network topology relationship shown in fig. 5.
As shown in fig. 5, the local terminal (which may be regarded as an execution main body of the communication method in this embodiment) cannot directly access the second terminal through the network, for example, the local terminal and the second terminal have a network firewall, the network firewall protects the network security of the local terminal, and restricts the network access of the local terminal to the second terminal. In fig. 5, the first terminal may communicate with the home terminal and also communicate with the second terminal, so that the home terminal may access 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, the home terminal and the first terminal and the second terminal in the embodiment of the present invention may be a server, a router, a client, a security device (firewall), and the like. 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 that can satisfy the network topology relationship shown in fig. 5 can be all used as the home terminal, the first terminal, and the second terminal.
As an example, when the first terminal is a client, the home terminal is a network-limited server (for example, a terminal with a higher requirement on security is usually prohibited to connect to an external network), and the second terminal is an external network server, because the network of the server of the home terminal is limited and cannot connect to the internet, the network-limited server cannot directly access to the external network server, the network-limited server and the client are both located in an internal network and are connected through the internal network, the network-limited server is responsible for managing data and allowing the client to access to the data in the network-limited server, and the client is responsible for completing an interaction task with the client. And the client usually has low network connection requirement, and can interact data with an extranet server through the internet. Therefore, in the case that the network-constrained server needs to perform data interaction with the extranet server (such as upgrading, rule updating and the like), the data interaction between the network-constrained server and the extranet server can be realized by taking the network-unconstrained client as a proxy.
Based on the network topology relationship in fig. 5, as shown in fig. 6, when the local terminal (network restricted server) receives the first access request of the first terminal (client), the network restricted server generates response information according to the first access request, where the response information includes first response data and a second access request corresponding to the first access request, where the first response data includes a server resource that the client wants to access, and the second access request includes data that the network restricted server wants to communicate with the second terminal (extranet server).
Optionally, the second access request generated by the home terminal may include address information, request content, a type of a network transmission protocol, and the like that require cross-domain access, 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), and the like. In order to ensure the security of the local terminal, the local terminal itself cannot directly access the pre-stored network address.
Optionally, the address of the local terminal is pre-stored in the first terminal, so that, when the user wants to access the local terminal resource, the first terminal may directly send the first access request to the address of the local terminal to request the required resource. Similarly, the maintenance personnel can also send the first access request to the home terminal through the first terminal, so that the home terminal executes the steps of generating response information according to the first access request and the subsequent steps of generating the response information, and the purpose that the home terminal actively communicates with the second terminal is achieved.
The home terminal sends response information including the first access request to the first terminal, so that the first terminal receives first response data corresponding to the first access request to respond to the access of the home terminal by the first terminal, and the first terminal accesses the second terminal according to the second access request. And the first terminal acquires the second access request in the response data under the condition of receiving the response information, and replaces the home terminal to access the second terminal according to the data of the second access request, thereby achieving the purpose of proxy communication. 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, and therefore the safety of the network limited server can be guaranteed under the condition that the network limitation of the network limited server is relieved.
Optionally, in the case of accessing the extranet server across domains, the home terminal may be implemented by window, postmessage, json, Cross-source Resource Sharing (CORS), and the like, where json with mapping is a "usage pattern" of json, and may be used to solve the problem of accessing data across domains of the mainstream browser. For example, in the case of forwarding through a window.postmessage, proxy communication may be implemented through a browser in a first terminal, specifically, the browser of the first terminal includes a first window and a second window belonging to different sources, and the second window continuously monitors a message of the first window, and in the case that the first terminal sends a first access request to a server through the first window of the browser, if 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 an extranet server according to a 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 local terminal, so as to implement software update of the local terminal. Of course, the request content in the second access request may also be other resource data in the second terminal, so as to supplement or update the data stored in the local terminal.
Alternatively, the local terminal may perform only one-way communication with the second terminal. And the local terminal acquires the current operation parameters of the local terminal in the process of generating the second access request, wherein the current operation parameters comprise the CPU occupancy rate, the CPU temperature, the operated time length, the residual capacity of the storage space and the like. The home terminal generates a second access request according to the current operation parameters and the pre-stored address information of the second terminal, and the second access request does not contain the requested resources, so that the second terminal can monitor the operation state of the home terminal according to the current operation parameters in the second access request under the condition that 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. And the second terminal can also display the current operation parameters under the condition of acquiring the current operation parameters so as to be checked and managed by a user of the second terminal.
In the technical scheme disclosed in this embodiment, a cross-domain access request is actively initiated to a first terminal by a device, so that the first terminal can access a second terminal according to the cross-domain access request, and active indirect communication between the local terminal and the second terminal is realized, so that the configuration of the device is automatically updated under the condition that the security of a network-limited device is ensured, manual update by a user is not required, and the update efficiency of the device is improved.
In another embodiment, as shown in fig. 3, on the basis of the embodiment shown in fig. 2, after step S20, the method further includes:
step S30, receiving second response data corresponding to the second access request 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 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 the target address in the external network access request is consistent with the address information of the second terminal or not under the condition that the external network access request sent by the first terminal is received, if so, second response data are generated according to the request content in the external network access request and are fed back to the first terminal, and the second response data correspond 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 local terminal. If the local terminal receives the second response data fed back by the first terminal within the preset time after the second access request is sent to the first terminal, the successful bidirectional communication between the local terminal and the second terminal is indicated. In the case of a bidirectional communication process, data transmission can be performed among the home terminal, the first terminal, and the second terminal by using an encryption method of a hypertext transfer Protocol over secure token Layer (HTTPS), so that the security of network communication is further increased.
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, at this time, the first response data is a response page corresponding to the first access request, and the response page is the web page. For another example, when the home terminal web accesses the second terminal through the first terminal agent, the home terminal obtains the web page of the second terminal through the second access request, at this time, the second response data is a response page corresponding to the second access request, and the response page is also a web page.
Optionally, because the first terminal sends the extranet access request to the extranet server through the second window, when the extranet server feeds back the second response data to the first terminal, the second window receives the second response data, and determines whether a source address in the second response data is consistent with a 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 obtain the second response data by monitoring the second window and feed back the second response data to the home terminal, so that the home terminal may obtain the second response data.
Optionally, when the local terminal needs to perform software upgrade, the local terminal may obtain first response data corresponding to the first access request and obtain software version information of the local terminal under the condition that the local terminal generates response information according to the first access request, 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 to request the second terminal for an update file corresponding to the software version information. The software version information comprises the model of the local terminal and the current software version number. Correspondingly, under the condition that the local terminal receives second response data corresponding to the second access request fed back by the first terminal, updating the local terminal software according to the second response data, and realizing automatic updating of the local terminal software version.
Optionally, when the local terminal needs to perform rule updating, the local terminal may obtain first response data corresponding to the first access request and obtain rule information of the local terminal under the condition that the local terminal generates response information according to the first access request, 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 to request the second terminal for an update file corresponding to the rule information. The rule information includes the specific content of the rule of the local terminal. Correspondingly, the local terminal updates the rule of the local terminal according to the second response data under the condition that the local terminal receives the second response data corresponding to the second access request fed back by the first terminal, so that the automatic updating of the local terminal rule is realized. The rule can be a safety rule, and the safety of the local terminal is improved by updating the rule.
Optionally, the local terminal, when receiving second response data fed back by the first terminal, further detects whether the type of the second response data matches a file type corresponding to the update file, and/or detects whether a name format of the second response data matches a name corresponding to the update file. 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 or not according to the detection result.
In the technical solution disclosed in this embodiment, the home terminal receives second response data corresponding to the second access request, which is fed back by the first terminal, when sending response information including the second access request to the first terminal, and realizes 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, the step S10 includes:
step S11, acquiring the software updating period of the local terminal under the condition of receiving the first access request of the first terminal;
step S12, acquiring the software version information of the local terminal under the condition that the update time point corresponding to the software update cycle is reached;
step S13, generating the second access request according to the software version information and the address information of the second terminal;
step S14, generating the response information according to the first response data and the second access request.
In this embodiment, the local terminal may trigger the software updating action of the local terminal when receiving the first access request of the first terminal. Specifically, the home terminal acquires a software updating period of the home terminal, judges whether an updating time point corresponding to the software updating period is reached, generates a second access request corresponding to software updating according to the software version information and the address information of the second terminal if the updating 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 the situation that indirect communication between the local terminal and the second terminal is too frequent is avoided. For example, when the update cycle is 7 days, if the local terminal receives a first access request from the first terminal, the local terminal obtains a time interval between a time point at which a second access request was generated last and a current time point, if the time interval is greater than 7 days, the local terminal 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, only first response data corresponding to the first access request is sent to the first terminal as response information.
In the technical scheme disclosed in this embodiment, a software update period of the home terminal is obtained when a first access request of the first terminal is received, and response information is generated according to the first response data and the second access request when an update time point corresponding to the software update period arrives, so that periodic automatic update of the home terminal is realized, frequent communication of the home terminal is avoided, and the risk of being exposed to the home terminal is reduced, thereby improving the security of the home terminal.
In addition, an embodiment of the present invention further provides a communication apparatus, where the communication apparatus includes:
the terminal comprises a generating module, a sending module and a receiving module, wherein the generating 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 is received, and the response information comprises first response data corresponding to the first access request and a second 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 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, and active indirect communication between the local terminal and the second terminal is realized, so that the configuration of the device is automatically updated under the condition of ensuring the security of the network-limited device, manual update by a user is not needed, and the update efficiency of the device is improved.
In addition, an embodiment of the present invention further provides a communication device, where the communication device includes: a memory, a processor and a communication program stored on the memory and executable on the processor, the communication program, when executed by the processor, implementing the steps of the communication method as described in the various embodiments above.
Furthermore, an embodiment of the present invention further provides a computer storage medium, where a communication program is stored, and the communication program, when executed by a processor, implements the steps of the communication method according to 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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A communication method, characterized in that the communication method comprises the steps of:
under the condition of receiving a first access request of a first terminal, generating response information according to the first access request, wherein the response information comprises first response data corresponding to the first access request and a second 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.
2. The communication method according to claim 1, wherein the step of generating response information according to the access request includes:
acquiring first response data corresponding to the first access request;
generating the second access request according to the address information of the 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 of claim 1, wherein the step of transmitting the response message to the first terminal further comprises, after the step of:
and receiving second response data corresponding to the second access request fed back by the first terminal.
4. The communication method according to claim 1, wherein 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 local 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 the step of transmitting the response message to the first terminal further comprises, after the step of:
and receiving second response data corresponding to the second access request 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 a first access request of a first terminal in case of receiving the first access request comprises:
acquiring a software updating period of a local terminal under the condition of receiving a first access request of the first terminal;
acquiring the software version information of the local terminal under the condition that the updating time point corresponding to the software updating period is reached;
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 according to claim 1, wherein 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 local terminal;
generating the second access request according to the current operation parameters 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 apparatus, characterized in that the communication apparatus comprises:
the terminal comprises a generating module, a sending module and a receiving module, wherein the generating 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 is received, and the response information comprises first response data corresponding to the first access request and a second 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.
9. A communication device, characterized in that the communication device comprises: memory, processor and a communication program stored on the memory and executable on the processor, the communication program, when executed by the processor, implementing 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 one 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 true CN111698295A (en) 2020-09-22
CN111698295B 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 (5)

* 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
US20140082140A1 (en) * 2012-09-17 2014-03-20 Alex Toussaint Cross domain in-browser proxy
CN104618400A (en) * 2015-03-09 2015-05-13 深圳市茁壮网络股份有限公司 Local area network access method and device
CN108964975A (en) * 2018-05-30 2018-12-07 北京五八信息技术有限公司 Cross-domain access processing method and device
CN108965203A (en) * 2017-05-18 2018-12-07 腾讯科技(深圳)有限公司 A kind of resource access method and server

Patent Citations (5)

* 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
US20140082140A1 (en) * 2012-09-17 2014-03-20 Alex Toussaint Cross domain in-browser proxy
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
CN111698295B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US10802906B2 (en) Monitoring method and apparatus of server, and storage medium
US10609181B2 (en) Method and apparatus for controlling service chain of service flow
EP1635256A1 (en) Communication system and method for upgrade of user terminal software and user terminal upgraded by same
EP2899938B1 (en) Service download acceleration method and system, service state maintenance method and device
WO2021057802A1 (en) Das system management method and device, electronic device, and storage medium
US11240202B2 (en) Message processing method, electronic device, and readable storage medium
CN115134105A (en) Resource configuration method and device of private network, electronic equipment and storage medium
KR101704319B1 (en) Parameter configuration system, program management device, and information process device
JP5610654B2 (en) Apparatus for providing terminal management package and method for receiving terminal management package
US11153106B2 (en) System for improved traffic handling in a network
JP6074550B2 (en) Web page push method and apparatus, and terminal
CN103138961B (en) server control method, controlled server and central control server
CN111698295B (en) Communication method, device, equipment and computer storage medium
CN112565458B (en) Platform remote control method and device, storage medium and electronic equipment
US11804986B2 (en) Method for the remote management of a device connected to a residential gateway
EP3451602A1 (en) Registration management method and device
US10491654B2 (en) Communicating with a remote service through a hypertext transfer protocol (HTTP) session
CN107547615B (en) Remote management method and device
KR102009643B1 (en) Multipath transmission system and method
JP2018501572A (en) Data communication method and apparatus
US9219618B2 (en) Information processing system, information processing device, management terminal device, and computer readable medium
CN111953793B (en) Application distribution method, device, terminal and storage medium
CN113207123B (en) Wireless network access method and device based on browser, storage medium and terminal
JP6828863B2 (en) Device server, network system, information processing method and control program
JP2008217376A (en) Content sharing method and system

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