Network communication method and system, electronic device and computer readable storage medium

Receiving communication requests from user terminals through cloud servers and establishing communication channels solves the problem of users remotely controlling devices in different networks, reducing costs and simplifying the connection process.

CN114726908BActive Publication Date: 2024-12-20ALIBABA CLOUD COMPUTING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210295979.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-23
Publication Date
2024-12-20
Estimated Expiration
2042-03-23

AI Technical Summary

Technical Problem

In the prior art, it is difficult for users to remotely control devices in different networks, and it is necessary to deploy a page terminal server in the network of the target device, which increases cost and complexity.

Method used

Receive communication requests from user terminals through cloud servers, determine the target network according to device identification, and establish a communication channel to communicate directly with the target device, eliminating the need to set up a page terminal server in each network.

Benefits of technology

Remote control of devices in different networks is realized, network communication costs are reduced, and the connection process between user terminals and target devices is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114726908B_ABST
    Figure CN114726908B_ABST
Patent Text Reader

Abstract

The present application discloses a network communication method and system, an electronic device, and a computer-readable storage medium. The method includes: receiving a communication request sent by a user terminal to communicate with a target device; determining the target network where the target device is located according to the device identifier; establishing a communication channel with the target network; and sending the communication data sent by the user terminal to the target device through the communication channel. The embodiment of the present application realizes remote control of target devices in different networks, so that a channel can be established with the target network through a cloud server that can receive communication requests from user terminals, so that the user's communication data can be sent to the target device in the target network through the channel between the cloud server and the target network, eliminating the need for additional configuration of a server in the target network to receive communication requests from user terminals, and greatly reducing the cost of realizing network communication from user terminals to target devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a network communication method and system, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the development of Internet technology, users can now connect to remote devices that are not in their physical location through the Internet to control the devices. Such remote control technology eliminates the obstacles of region and distance for users to use or control devices, greatly facilitating users' work and life. However, such remote control usually requires that the user's terminal device that accesses the Internet and the remote device to be controlled are in the same network, which increases the difficulty for users to perform remote control. Summary of the invention

[0003] Embodiments of the present application provide a network communication method and system, an electronic device, and a computer-readable storage medium to address the defect in the prior art that it is difficult for a user to control devices in different networks.

[0004] To achieve the above-mentioned purpose, an embodiment of the present application provides a network communication method, which is applied to a cloud server that provides a page terminal service to a user, and includes:

[0005] Receiving a communication request sent by a user terminal to communicate with a target device, wherein the communication request includes a device identifier of the target device;

[0006] Determine the target network where the target device is located according to the device identifier;

[0007] Establishing a communication channel with the target network, wherein the communication channel is a communication channel used for direct communication between the user terminal and the target device;

[0008] The communication data sent by the user terminal is sent to the target device through the communication channel.

[0009] The embodiment of the present application also provides a network communication device, including:

[0010] A receiving module, configured to receive a communication request sent by a user terminal to communicate with a target device, wherein the communication request includes a device identifier of the target device;

[0011] A determination module, used to determine a target network where the target device is located according to the device identifier;

[0012] An establishing module, used to establish a communication channel with the target network;

[0013] The sending module is used to send the communication data sent by the user terminal to the target device through the communication channel.

[0014] The embodiment of the present application also provides a network communication system, including: a branch management server, at least one branch controller, wherein the branch management server is used to manage at least one branch controller and provide a page terminal service to a user, and the at least one branch controller is used to control a network where the branch controller is located and there is at least one target device in the network, and

[0015] The branch management server is further used to: receive a communication request sent by a user terminal to communicate with a target device, wherein the communication request includes a device identification of the target device; determine the network where the target device is located based on the device identification; establish a communication channel with the network, wherein the communication channel is a communication channel used for direct communication between the user terminal and the target device; and send the communication data sent by the user terminal to the target device via the communication channel.

[0016] The present application also provides an electronic device, including:

[0017] Memory, used to store programs;

[0018] The processor is used to run the program stored in the memory, and the network communication method provided in the embodiment of the present application is executed when the program is run.

[0019] An embodiment of the present application further provides a computer-readable storage medium on which a computer program executable by a processor is stored, wherein the program, when executed by the processor, implements the network communication method provided in the embodiment of the present application.

[0020] The network communication method and system, electronic device and computer-readable storage medium provided in the embodiments of the present application receive a communication request from a user terminal to communicate with a target device, and determine the target network according to the device identifier in the communication request, thereby establishing a communication channel with the target network to send the communication data of the user terminal to the target device through the communication channel. Therefore, a communication channel that can directly communicate with the device can be established with the target network where the target device is located, so that the communication device of the user terminal can send communication data such as instructions to the target device through the communication channel, thereby realizing remote control of target devices in different networks, so that a communication channel for direct communication with the target network can be established through a cloud server that can receive the communication request of the user terminal, so that the user's communication data can be directly sent to the target device in the target network through the channel between the cloud server and the target network, eliminating the need for additional configuration of a server in the target network to receive the communication request of the user terminal, and greatly reducing the cost of realizing network communication from the user terminal to the target device.

[0021] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0023] Figure 1 A schematic diagram of an application scenario of the network communication solution provided in an embodiment of the present application;

[0024] Figure 2 A flowchart of an embodiment of the network communication method provided by the present application;

[0025] Figure 3 A flowchart of another embodiment of the network communication method provided by the present application;

[0026] Figure 4 A schematic diagram of the structure of an embodiment of a network communication device provided by the present application;

[0027] Figure 5 A schematic diagram of the structure of an embodiment of the network communication system provided by the present application;

[0028] Figure 6A schematic diagram of the structure of an electronic device embodiment provided in this application. DETAILED DESCRIPTION

[0029] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0030] Embodiment 1

[0031] The solution provided in the embodiments of the present application can be applied to any system with network communication capabilities, such as a server system including a chip with network communication functions and related components, etc. Figure 1 A schematic diagram of an application scenario of the network communication solution provided in an embodiment of the present application, Figure 1 The scenario shown is only one of the examples to which the technical solution of the present application can be applied.

[0032] Nowadays, as users are increasingly using the Internet to work, companies can have multiple office spaces in multiple locations, and networks can be provided in each office space so that multiple terminals in the office space can access the Internet. Therefore, users can connect to remote devices that are not with them through the Internet to control the devices. Such remote control technology eliminates the obstacles of region and distance for users to use or control devices, greatly facilitating users' work and life. However, such remote control usually requires that the terminal device that the user uses to access the Internet and the remote device to be controlled are in the same network, which increases the difficulty of remote control for users.

[0033] It has been proposed in the prior art to set a page terminal server in the network where the target device that the user wants to control is located, that is, to additionally set up a page terminal server in the network of the target device that the user wants to control to provide page terminal services to the user, or to install the page terminal service on an existing device in the target device network, so that the device deployed with the page terminal service can allow the user to enter control instructions for the target device on the page of the web page by accessing the web page provided by the server. Since the page terminal server is in the same network as the target device, the page terminal server can connect to the target device and forward the control instructions entered by the user on its page to the target device. Therefore, the user can still connect to the target device and enter control instructions to the target device even if he uses a terminal that is not in the same network as the target device.

[0034] In particular, in the prior art, the target device is often connected to through the communication protocol of Secure Shell (SSH) or Telnet, and these two communication protocols usually require that the terminal where the user logs in is in the same network as the target device. Therefore, in the prior art, a web terminal server is deployed in the network of the target device to provide a web page login service to users in another network, so that the user can access the web page provided by the page terminal server to log in to the target device in the same network as the page terminal server. Therefore, the user logs in to the remote management page provided by the page terminal server on his own terminal to connect to the target device, so that various commands can be input to the target device on the page to control the target device.

[0035] For example, currently most local terminals form a local area network in their location, such as an office, and each terminal is connected to the Internet through a switch device connected to the local area network. However, such a switch device is usually set up in a computer room, and network personnel usually log in to the switch through the local area network using their own terminals to perform operations such as network configuration or daily maintenance on the switch device. However, when network maintenance personnel need to maintain and configure networks in different locations, such as branches in different regions, they need to remotely log in to the switches of these local area networks to perform corresponding operations. For this reason, it is usually necessary to deploy page terminal services in these networks. For example, if the switching device itself supports it, the page terminal service can be installed on the switching device itself, or if the switching device itself does not support it or for security reasons, the page terminal service needs to be installed on other devices, then an additional page terminal server can be set up in the network managed by the switching device to provide such page terminal services. Therefore, network maintenance personnel can directly log in to the switching device by accessing the page provided by the page terminal service, or first log in to the page terminal server in the network where the switching device is located, and then connect to the switching device through the server, thereby using various remote service protocols such as SSH or TELNET to send various control instructions to the switching device.

[0036] However, the solution in the prior art requires that a page terminal server with a page service be deployed in the same network as the target device. For example, in the case where the above-mentioned user wants to remotely control the switching device of the office LAN, it is necessary to deploy a server that can provide page terminal services to the outside in the LAN in advance, or it is necessary to deploy the page terminal service on the switching device. However, under normal circumstances, since the switching device is the only device used to manage the entire office LAN, it is usually not allowed to install such auxiliary tools on the switching device for security reasons. In addition, as the dependence of enterprises on the Internet increases, an enterprise may have multiple office LANs, and therefore if a page terminal server is set up in each network, it will inevitably greatly increase the overhead of the enterprise network.

[0037] For example, Figure 1 As shown in Figure 1 Schematic diagram showing an application scenario of a network communication method according to an embodiment of the present application. Figure 1 In the scenario shown in , when a user wants to use his own terminal to control a target device 1 in a target network different from his own network, in the prior art, the terminal used by the user and the target device are not in the same network. For example, the target device is in a local area network 1, in which there may be multiple devices including the target device, and these devices may be connected to a public network through a switching device such as a switch. Therefore, in the prior art, when the user is not in the target network, it is impossible to establish a communication connection with the target device in the local area network 1. Therefore, in the prior art, it is usually necessary to set up a page terminal server in the local area network 1 so that a user using a terminal in another network can also enter the local area network 1 by accessing the page served by the page terminal, so that the user can send control instructions to the target device in the local area network 1 through the page.

[0038] However, as mentioned above, when there are multiple target devices in different local area networks, setting up a page terminal server in each network will greatly increase the user's expenses. Figure 1 The control devices in the local area networks 1 and 2 shown in the figure establish communication channels respectively, so that a user can establish a communication connection with a target device in the target network through the communication channel established between the cloud server and the target network by accessing the cloud server.

[0039] For example, in an embodiment of the present application, a branch controller may be deployed in each target network to control data communication between devices in the target network and an external network. For example, the branch controller may be used to control a switch device in the target network, so that each target device connected to the switch device can communicate with the cloud network where the branch manager is located and / or devices in other target networks controlled by other branch controllers. The cloud server may be a branch manager corresponding to each branch controller, which is used to manage each branch controller. In particular, the branch manager may establish a dedicated channel with each branch controller, such as an IPsec tunnel, to provide secure communication between the branch manager and the branch controller, and a terminal service may be deployed in the branch manager. Therefore, in a case such as Figure 1 In the scenario shown in , the user can use his own terminal device to send a control request to the cloud branch manager to control the target device. The control request may include information such as the device identification of the target device. The branch manager determines the network identification of the target device, such as local area network 1, based on the device identification included in the request, and can establish a connection channel with the local area network 1, so that the control instructions for controlling the target device sent by the user through his own terminal to the branch manager can enter the local area network 1 with the help of the connection channel, and therefore, due to the channel established with the help of the branch manager, it can be in the same network as the target device, so that a communication connection can be established with the target device.

[0040] Specifically, the branch manager and the branch controllers it manages are usually connected by means of a VPN (virtual private network) based on the Internet. Therefore, in the embodiment of the present application, by Figure 1The page terminal service is deployed in the branch management server shown in the figure, so that the user terminal can log in to the branch management server and issue a communication request for communicating with the target device 1 in the target network 1 where the branch controller 1 is located. At this time, the above-mentioned connection characteristics between the branch management server and the branch controller it manages can determine the corresponding branch controller 1 according to the target network where the target device is located, and thus can directly establish a communication channel with the branch controller 1, such as an IPsec (Internet Security Protocol) VPN encrypted tunnel, and the branch controller 1 as a controller managing the target network can directly establish a connection with the target device in the network, so that for the user terminal, the communication data sent to the branch management server can be sent to the branch controller 1 by means of the communication channel between the branch management server and the corresponding branch controller in the target network, and the branch controller 1 can send the communication device of the user terminal to the target device through the connection with the target device after receiving the communication data. Therefore, for the user terminal, it only needs to log in to the cloud server on the public network, and can send its own communication data to the target device to be controlled or managed by means of the exclusive communication channel between the server and the target network. Compared with the solution in the prior art that requires setting up a page terminal server for user access in each target network, the embodiment of the present application only needs to deploy the service in the cloud server for the user terminal to log in, so that the user can achieve communication connection with the target device in each target network. This greatly reduces the cost of achieving communication between the user terminal and the target device in each target network.

[0041] The network communication solution provided by the embodiment of the present application receives a communication request from a user terminal to communicate with a target device, and determines the target network according to the device identifier in the communication request, thereby establishing a communication channel with the target network to send the communication data of the user terminal to the target device through the communication channel. Therefore, by establishing a communication channel with the target network where the target device is located, the communication device of the user terminal can be sent to the target device through the communication channel, thereby realizing remote control of target devices in different networks, so that a channel can be established with the target network through a cloud server that can receive the communication request of the user terminal, so that the user's communication data can be sent to the target device in the target network through the channel between the cloud server and the target network, eliminating the need for additional configuration of a server in the target network to receive the communication request of the user terminal, thereby greatly reducing the cost of realizing network communication from the user terminal to the target device.

[0042] The above embodiments are illustrations of the technical principles and exemplary application frameworks of the embodiments of the present application. The specific technical solutions of the embodiments of the present application are further described in detail below through multiple embodiments.

[0043] Embodiment 2

[0044] Figure 2 This is a flowchart of an embodiment of the network communication method provided by the present application. The execution subject of the method can be various terminals or server devices with network communication capabilities, or it can be a device or chip integrated on these devices. Figure 2 As shown, the network communication method includes the following steps:

[0045] S201, receiving a communication request sent by a user terminal to communicate with a target device.

[0046] In step S201, a communication request sent by a user terminal may be received, and the communication request may be an operation instruction for a user to log in to, for example, a cloud server and specify in the cloud server to communicate with a target device. Therefore, the communication request received in step S201 may be a request sent by a user terminal received by a cloud server running on a public network, and may include a device identifier of a target device with which the user terminal wants to establish communication.

[0047] S202: Determine the target network where the target device is located according to the device identifier.

[0048] In step S202, the target network where the target device is located can be determined according to the device identifier of the target device included in the communication request received in step S201. For example, the communication request of the user can be received by a management server in the cloud in step S202, and therefore, since the management server in the cloud is responsible for managing each target network, a list of devices in each target network can exist in the management server, and therefore, in step S202, the device identifier in the communication request received in step S201 can be searched in such a list, and the target network to be connected can be determined according to the corresponding relationship between the device and the network.

[0049] S203, establishing a communication channel with the target network.

[0050] In step S203, a communication channel may be established with the target network according to the target network determined in step S202. In the embodiment of the present application, the communication channel may be a VPN encrypted tunnel or an Internet Security Protocol channel.

[0051] S204, sending the communication data sent by the user terminal to the target device through the communication channel.

[0052] In step S204, the communication data of the user terminal may be sent to the target device in the target network by means of the communication channel with the target network established in step S203.

[0053] The network communication method provided in the embodiment of the present application receives a communication request from a user terminal to communicate with a target device, and determines the target network according to the device identifier in the communication request, thereby establishing a communication channel with the target network to send the communication data of the user terminal to the target device through the communication channel. Therefore, by establishing a communication channel with the target network where the target device is located, the communication device of the user terminal can be sent to the target device through the communication channel, thereby realizing remote control of target devices in different networks, so that a communication channel for direct communication with the target network can be established through a cloud server that can receive the communication request of the user terminal, so that the user's communication data can be sent to the target device in the target network through the channel between the cloud server and the target network, eliminating the need for additional configuration of a server in the target network to receive the communication request of the user terminal, thereby greatly reducing the cost of realizing network communication from the user terminal to the target device.

[0054] Embodiment 3

[0055] Figure 3 This is a flowchart of another embodiment of the network communication method provided by the present application. The execution subject of the method can be various terminals or server devices that can provide page terminal services to users, or it can be a device or chip integrated on these devices. Figure 3 As shown in the above Figure 2 Based on the illustrated embodiment, the network communication method provided in the embodiment of the present application may include the following steps:

[0056] S301, receiving a communication request sent by a user terminal to communicate with a target device.

[0057] In step S301, a communication request sent by a user terminal may be received. The communication request may be an operation instruction for a user to log in to a branch management server, for example, in the cloud and specify in the branch management server to communicate with the target device. In an embodiment of the present application, the target device may be in each target network different from the cloud network where the branch management server is located, and a branch controller may be deployed in each target network to control data communication between the device in the target network and the external network. For example, the branch controller may be used to control the switch device in the target network, so that each target device connected to the switch device can communicate with the cloud network where the branch manager is located and / or other target networks controlled by other branch controllers. The branch management server in the cloud can manage each branch controller by establishing a channel with these branch controllers, and then manage the target network controlled by each branch controller.

[0058] In particular, a page terminal service, for example, may be deployed in the branch management server in the cloud, and therefore, the user can first log in to the branch management server to use the terminal service by accessing the page provided by the page terminal service of the branch management server in step S201, and therefore, on the page, a communication request can be sent to the branch management server by selecting a target device to communicate with, and therefore, the communication request received in step S301 may include the device identifier of the target device with which the user terminal wants to establish communication.

[0059] S302: Determine the target network where the target device is located according to the device identifier.

[0060] In step S302, the target network where the target device is located can be determined based on the device identifier of the target device included in the communication request received in step S301. For example, in step S301, the branch management server receives a communication request sent by a user by selecting a target device to communicate on a page, so the branch management server in the cloud can search for the device identifier of the target device in each target network it is responsible for managing. Alternatively, the branch management server can also distribute the device identifier to the branch controllers in each target network it manages to instruct the branch controllers to match the device identifier in the branch networks it controls. Therefore, when a matching target device is found, the corresponding target network can be determined as the target network to be connected.

[0061] S303, establishing a communication channel with a branch controller in the target network.

[0062] In step S303, a communication channel can be established with the branch controller in the target network according to the target network determined in step S302. The branch management server and the branch controllers it manages are usually connected by means of a VPN (virtual private network) based on the Internet. Therefore, in step S303, a VPN encryption tunnel or an Internet security protocol channel can be established between the branch management server logged in by the user and the branch controller in the target network determined in step S302. Thus, the branch management server can directly communicate data with the branch controller through the channel.

[0063] S304, instructing the branch controller in the target network to establish a connection with the target device.

[0064] In step S304, after or at the same time as establishing a communication channel with the branch controller in the target network determined in step S302, the branch management server may instruct the branch controller to establish a connection with the target device indicated by the communication request received in step S301. For example, when the target device is a switch device in the target network, in step S304, the branch management server may instruct the branch controller to establish an interactive connection with the switch device to receive the user's communication data.

[0065] S305: Send the communication data sent by the user terminal to the target device through the communication channel.

[0066] In step S305, the communication data of the user terminal can be sent to the target device in the target network by means of the communication channel with the branch controller established in step S303 and the connection between the branch controller and the target device established in step S304. For example, the user logs in to the branch management server through the page terminal service provided by the branch management server in step S301 and selects, for example, Figure 1 As the communication object, the branch management server establishes a communication channel with the branch controller through step S303. Therefore, in step S305, the user can send control commands of communication protocols such as Secure Shell Protocol (SSH) or Remote Login Service (TELNET) directly to the branch controller in the target network through the channel, and the branch controller sends the user's control commands received through the channel to the target device by means of the interactive connection established with the target device such as a switch device in step S304.

[0067] The network communication method provided in the embodiment of the present application receives a communication request from a user terminal to communicate with a target device, and determines the target network according to the device identifier in the communication request, thereby establishing a communication channel with the target network to send the communication data of the user terminal to the target device through the communication channel. Therefore, by establishing a communication channel with the target network where the target device is located, the communication device of the user terminal can be sent to the target device through the communication channel, thereby realizing remote control of target devices in different networks, so that a channel can be established with the target network through a cloud server that can receive the communication request of the user terminal, so that the user's communication data can be sent to the target device in the target network through the channel between the cloud server and the target network, eliminating the need for additional configuration of a server in the target network to receive the communication request of the user terminal, thereby greatly reducing the cost of realizing network communication from the user terminal to the target device.

[0068] Embodiment 4

[0069] Figure 4 The schematic diagram of the structure of the embodiment of the network communication device provided by the present application can be used to perform Figure 2 or Figure 3 The network communication method shown in Figure 4 As shown, the network communication device may include: a receiving module 41 , a determining module 42 , an establishing module 43 and a sending module 44 .

[0070] The receiving module 41 may be configured to receive a communication request sent by a user terminal to communicate with a target device.

[0071] The receiving module 41 may receive a communication request sent by a user terminal, and the communication request may be an operation instruction for a user to log in to, for example, a cloud server and specify in the cloud server to communicate with a target device. Therefore, the communication request received by the receiving module 41 may be a request sent by a user terminal received by a cloud server running on a public network, and may include a device identifier of a target device with which the user terminal wants to establish communication.

[0072] The determination module 42 may be configured to determine the target network where the target device is located according to the device identification.

[0073] The determination module 42 may determine the target network where the target device is located according to the device identifier of the target device included in the communication request received by the receiving module 41. For example, a management server in the cloud may be used as the determination module 42 to receive the user's communication request, and therefore, since the management server in the cloud is responsible for managing each target network, a list of devices in each target network may exist in the management server, and therefore, in step S202, the device identifier in the communication request received by the receiving module 41 may be searched in such a list, and the target network to be connected may be determined according to the correspondence between the device and the network.

[0074] The establishing module 43 may be used to establish a communication channel with the target network.

[0075] The establishing module 43 may establish a communication channel with the target network according to the target network determined by the determining module 42. In the embodiment of the present application, the communication channel may be a VPN encryption tunnel or an Internet security protocol channel.

[0076] For example, the branch management server as the receiving module 41 and the branch controllers it manages can usually be connected by means of a VPN (virtual private network) based on the Internet, so the establishing module 43 can establish a VPN encryption tunnel or an Internet security protocol channel between the branch management server logged in by the user and the branch controller in the target network determined by the determining module 42. Thus, the branch management server can directly communicate data with the branch controller through the channel.

[0077] In addition, after or at the same time as the establishment module 43 establishes the communication channel between the branch management server and the branch controller in the target network determined by the determination module 42, the establishment module 43 may instruct the branch controller to establish a connection with the target device indicated by the communication request received by the receiving module 41. For example, when the target device is a switch device in the target network, the establishment module 43 may instruct the branch controller to establish an interactive connection with the switch device to facilitate receiving the user's communication data.

[0078] The sending module 44 may be configured to send the communication data sent by the user terminal to the target device through the communication channel.

[0079] The sending module 44 can send the communication data of the user terminal to the target device in the target network by means of the communication channel with the target network established by the establishing module 43.

[0080] The network communication device provided in the embodiment of the present application receives a communication request from a user terminal to communicate with a target device, and determines the target network according to the device identifier in the communication request, thereby establishing a communication channel with the target network to send the communication data of the user terminal to the target device through the communication channel. Therefore, a communication channel that can directly communicate with the device can be established with the target network where the target device is located, so that the communication device of the user terminal can send communication data such as instructions to the target device through the communication channel, thereby realizing remote control of target devices in different networks, so that a communication channel for direct communication with the target network can be established through a cloud server that can receive the communication request of the user terminal, so that the user's communication data can be directly sent to the target device in the target network through the channel between the cloud server and the target network, eliminating the need for additional configuration of a server in the target network to receive the communication request of the user terminal, thereby greatly reducing the cost of realizing network communication from the user terminal to the target device.

[0081] Embodiment 5

[0082] Figure 5 This is a schematic diagram of the structure of an embodiment of the network communication system provided by the present application. Figure 2 or Figure 3 The network communication method shown in Figure 5 As shown in , the network communication system may include: a branch management server 51 and at least one branch controller 52. The branch management server 51 may be used to manage at least one branch controller 51 and provide page terminal services to users, and at least one branch controller 51 may be used to control the network where the branch controller is located and there is at least one target device in the network.

[0083] Therefore, the branch management server 51 can be further used to: receive a communication request sent by a user terminal to communicate with a target device; determine the network where the target device is located based on the device identifier; establish a communication channel with the network; and send the communication data sent by the user terminal to the target device through the communication channel.

[0084] Specifically, a page terminal service may be deployed in the branch management server 51. For example, the branch management server 51 may provide a page terminal service to the user by including a page terminal service module. Therefore, the user may log in to the branch management server 51 through the page provided by the branch management server 51, and may select the target device that the user wants to control based on various remote service protocols such as SSH or TELNET on the page to send a communication request to the branch management server 51. Since the devices that the user wants to remotely control are usually located in target networks different from the cloud network where the branch management server is located, and each target network may be respectively deployed with a branch controller for controlling the data communication between the device in the target network and the external network, for example, the branch controller may be used to control the switch device in the target network, so that each target device connected to the switch device can communicate with the cloud network where the branch manager is located and / or other target networks controlled by other branch controllers. The branch management server in the cloud can manage each branch controller by establishing a channel with these branch controllers, and then manage the target network controlled by each branch controller.

[0085] The branch management server 51 and the branch controllers 52 it manages are usually connected by means of an Internet-based VPN (Virtual Private Network). Therefore, under normal circumstances, the branch management server 51 can determine the target network where the target device is located based on the device identifier of the target device contained in the received communication request. For example, the branch management server 51 can search for the device identifier of the target device in each target network it is responsible for managing. Alternatively, the branch management server 51 can also distribute the device identifier to the branch controllers 52 in each target network it manages to instruct the branch controllers 52 to match the device identifier in the branch network it controls. Therefore, when a matching target device is found, the corresponding target network can be determined as the target network to be connected.

[0086] The branch management server 51 can then establish a communication channel with the corresponding branch controller 52 according to the determined target network. For example, the branch management server 51 can establish a VPN encrypted tunnel or an Internet security protocol channel with the branch controller 52 as a terminal service channel for user remote management, or a logical sub-channel can be divided out from the branch management encrypted communication channel that has been established between the branch management server 51 and the branch controller 52 as a terminal service channel for user remote management, so that the user terminal can directly communicate data with the device managed by the branch controller through the channel. The branch management server 51 can instruct the branch controller 52 to establish a connection with the target device indicated by the communication request after or at the same time as establishing a communication channel with the branch controller 52. For example, when the target device is a switch device in the target network, the branch management server 51 can instruct the branch controller 52 to establish an interactive connection with the switch device to facilitate receiving the user's communication data.

[0087] Finally, the branch management server 51 can send the communication data of the user terminal to the target device in the target network by means of the communication channel with the branch controller 52 and the interactive connection between the branch controller 52 and the target device.

[0088] Therefore, in the network communication system of the embodiment of the present application, with the help of the above-mentioned connection characteristics between the branch management server 51 and the branch controller 52 managed by it, the corresponding branch controller 52 can be determined according to the target network where the target device that the user wants to control is located, and therefore the branch management server 51 can directly establish a separate communication channel with the branch controller 52, such as an IPsec (Internet Security Protocol) VPN encrypted tunnel or divide logical sub-channels in the established communication channel as the terminal service channel, and the branch controller 52 as the controller managing the target network can directly establish a connection with the target device in the network, so that for the user terminal, the communication data sent to the branch management server 51 can be sent to the branch controller 52 with the help of the communication channel between the branch management server 51 and the corresponding branch controller 52 in the target network, and after receiving the communication data, the branch controller 52 can send the communication device of the user terminal to the target device through the connection between the target device.

[0089] Therefore, for the user terminal, it only needs to log in to the branch management server 51 on the public network, and can use the exclusive communication channel between the server and the branch controller 52 to send its communication data to the target device that it wants to control or manage. Compared with the solution in the prior art that requires a page terminal server to provide user access in each target network, the embodiment of the present application only needs to deploy the service in the cloud server for the user terminal to log in, and the user can achieve communication connection with the target device in each target network. The cost of realizing communication between the user terminal and the target device in each target network is greatly reduced.

[0090] The network communication system provided by the embodiment of the present application receives a communication request from a user terminal to communicate with a target device through a branch management server capable of providing a page terminal service to the user, and determines the target network according to the device identifier in the communication request, thereby establishing a communication channel with a branch controller in the target network to send the communication data of the user terminal to the target device through the communication channel. Therefore, by establishing a communication channel with a branch controller in the target network where the target device is located, the communication device of the user terminal can be sent to the target device through the communication channel, thereby realizing remote control of target devices in different networks, thereby realizing a channel with the branch controller of the target network through a branch management server capable of receiving the communication request of the user terminal, thereby realizing the communication data of the user can be sent to the target device in the target network through the channel between the branch management server and the branch controller of the target network, thereby eliminating the need for additional configuration of a server in the target network for receiving the communication request of the user terminal, thereby greatly reducing the cost of realizing network communication from the user terminal to the target device.

[0091] Embodiment 6

[0092] The internal functions and structure of the network communication device are described above. The device can be implemented as an electronic device. Figure 6 This is a schematic diagram of the structure of an electronic device embodiment provided by this application. Figure 6 As shown, the electronic device includes a memory 61 and a processor 62 .

[0093] The memory 61 is used to store programs. In addition to the above programs, the memory 61 can also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.

[0094] The memory 61 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0095] The processor 62 is not limited to a processor (CPU), but may also be a processing chip such as a graphics processing unit (GPU), a field programmable gate array (FPGA), an embedded neural network processor (NPU) or an artificial intelligence (AI) chip. The processor 62 is coupled to the memory 61 and executes the program stored in the memory 61 to execute the network communication method of the second or third embodiment.

[0096] Further, if Figure 6 As shown, the electronic device may also include: a communication component 63, a power component 64, an audio component 65, a display 66 and other components. Figure 6 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 6 Components shown.

[0097] The communication component 63 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 63 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 63 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0098] The power supply component 64 provides power to various components of the electronic device. The power supply component 64 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.

[0099] The audio component 65 is configured to output and / or input audio signals. For example, the audio component 65 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 61 or sent via the communication component 63. In some embodiments, the audio component 65 also includes a speaker for outputting audio signals.

[0100] The display 66 includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0101] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network communication method, applied to a cloud server that provides a web terminal service to a user, and comprising: Receiving a communication request sent by a user terminal to communicate with a target device, wherein the communication request includes a device identifier of the target device; Determine the target network where the target device is located according to the device identifier; Establishing a communication channel with a branch controller in the target network, and instructing the branch controller to establish a connection with the target device, wherein the branch controller is used to enable each target device in the target network to be located in the cloud network where the cloud server is located together with the user terminal through the communication channel; Sending the communication data sent by the user terminal to the branch controller through the communication channel, so that the branch controller sends the communication data to the target device; The receiving a communication request sent by a user terminal to communicate with a target device includes: The communication request is received through a page of a page terminal service provided by the cloud server; wherein the page is a remote management page for controlling the target device according to the input of the user terminal.

2. The network communication method according to claim 1, wherein: The method further comprises: The communication data sent by the target device is sent to the user terminal through the communication channel.

3. The network communication method according to claim 1, wherein: The communication channel is a virtual private channel.

4. A network communication system, configured to execute the method according to any one of claims 1 to 3, comprising: A branch management server and at least one branch controller, wherein the branch management server is used to manage at least one branch controller and provide a page terminal service to a user, and the at least one branch controller is used to control a network where the branch controller is located and there is at least one target device in the network, and The branch management server is further used to: receive a communication request sent by a user terminal to communicate with a target device, wherein the communication request includes a device identification of the target device; determine a network where the target device is located according to the device identification; establish a communication channel with the network; and send the communication data sent by the user terminal to the target device through the communication channel; The branch management server is further used to: receive the communication request through a page that provides the page terminal service, wherein the page is a remote management page used to control the target device according to the input of the user terminal.

5. The network communication system according to claim 4, wherein: The branch management server includes a page terminal service module for providing page terminal services for user terminals, and the branch management server is further used to instruct the branch controller to establish a connection with the target device.

6. An electronic device comprising: Memory, used to store programs; A processor, configured to run the program stored in the memory to execute the network communication method according to any one of claims 1 to 3.

7. A computer-readable storage medium having a computer program executable by a processor stored thereon, wherein: When the program is executed by a processor, the network communication method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Distributed embedded equipment management method and device, equipment and medium

    CN113965571A