CN114640663A - Method for remotely controlling CPE (customer premises equipment) and remote control system - Google Patents

Method for remotely controlling CPE (customer premises equipment) and remote control system Download PDF

Info

Publication number
CN114640663A
CN114640663A CN202210211179.XA CN202210211179A CN114640663A CN 114640663 A CN114640663 A CN 114640663A CN 202210211179 A CN202210211179 A CN 202210211179A CN 114640663 A CN114640663 A CN 114640663A
Authority
CN
China
Prior art keywords
cpe
online
equipment
mode
message
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.)
Pending
Application number
CN202210211179.XA
Other languages
Chinese (zh)
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.)
Shanghai Lianhong Technology Co ltd
Original Assignee
Shanghai Lianhong Technology 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 Shanghai Lianhong Technology Co ltd filed Critical Shanghai Lianhong Technology Co ltd
Priority to CN202210211179.XA priority Critical patent/CN114640663A/en
Publication of CN114640663A publication Critical patent/CN114640663A/en
Pending legal-status Critical Current

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The application provides a method for remotely controlling CPE equipment and a remote control system, wherein the method comprises the following steps: the central control end receives registration online messages of the CPE equipment and the user equipment; the central control end determines the online mode of the CPE equipment according to the registration online information of the CPE equipment; the central control end receives a control message sent by user equipment, forwards the control message to CPE equipment, establishes a data transmission channel between the CPE equipment and the user equipment according to an online mode of the CPE equipment, determines the online mode of the CPE equipment according to a registration online message of the CPE equipment, forwards the control message to the CPE equipment, establishes a control relationship between the user equipment and the CPE equipment through the control message, and transmits data for controlling the CPE equipment to execute specific operation through the data transmission channel, so that the remote control of the CPE equipment is realized, and the problem of large resource overhead of a reverse SSH tunnel in the prior art is solved.

Description

Method for remotely controlling CPE (customer premises equipment) and remote control system
Technical Field
The present application relates to the field of CPE device control technologies, and in particular, to a method for remotely controlling a CPE device, a remote control system, a computer-readable storage medium, and a processor.
Background
As ipv4 is gradually depleted, many ISP vendors are distributing the private IP to the CPE, allowing the CPE to surf the internet via telecom-grade NAT. For such network configuration, a Reverse SSH tunnel (Reverse SSH tunnel) is generally used in the prior art for remote connection. The method is mainly characterized in that a proxy server (publicServer) is arranged in a common IP, a reverse SSH tunnel is added to a CLI port of a CPE end to the proxy server, and a device which wants to remotely connect to the CPE end to operate the CLI can forward a packet through the proxy server.
This remote control mechanism is not scalable, has high performance requirements on the proxy server, and is expensive. Secondly, the resource overhead of the reverse SSH tunnel is relatively large.
Disclosure of Invention
The present application mainly aims to provide a method, a remote control system, a computer-readable storage medium, and a processor for remotely controlling CPE devices, so as to solve the problem that resource overhead of a reverse SSH tunnel is relatively large in the prior art.
In order to achieve the above object, according to one aspect of the present application, there is provided a method for remotely controlling CPE equipment, the method being applied to a remote control system including the CPE equipment, user equipment and a central control end, the method including: the central control end receives registration online messages of the CPE equipment and the user equipment; the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment; and the central control end receives a control message issued by the user equipment, forwards the control message to the CPE equipment, and establishes a data transmission channel between the CPE equipment and the user equipment according to the online mode of the CPE equipment.
Further, the determining, by the central control end according to the registration online message of the CPE device, the online mode of the CPE device includes: determining that the online mode of the CPE equipment is a first online mode under the condition that the registration online message of the CPE equipment is a first registration online message; determining the online mode of the CPE equipment as a second online mode under the condition that the registration online message of the CPE equipment is a second registration online message; and under the condition that the registration online information of the CPE equipment is third registration online information, determining that the online mode of the CPE equipment is a third machine combination mode.
Further, the determining that the online mode of the CPE device is the third online mode includes: determining that the online mode of the CPE device is the third triplet mode if the socket type is ipv6, the third triplet mode being an ipv6 address mode; determining that the online mode of the CPE device is the second online mode when the registration online message of the CPE device is the second registration online message comprises: under the condition that the addresses of the wan ip and the socket are different, determining that the online mode of the CPE equipment is a second online mode, wherein the second online mode is a telecom level NAT internet surfing mode; determining that the online mode of the CPE device is the first online mode when the registration online message of the CPE device is the first registration online message comprises: and under the condition that the address of the wan ip is the same as the address of the socket, determining that the online mode of the CPE equipment is a first online mode, wherein the first online mode is an ipv4 address mode.
Further, the CPE device includes a kernel daemon, the user device includes a user device control module, the online mode of the CPE device is the second online mode, the online mode of the user device control module is a server mode, the online mode of the kernel daemon is a client mode, the online mode of the CPE device is the first online mode or the third online mode, the online mode of the user device control module is the client mode, and the online mode of the kernel daemon is the server mode.
Further, the registration online message of the CPE device includes a mac address and an online status of the CPE device, the ue registration online message includes a mac address and an online status of the ue device, and the central control node stores an authorization list, and the method further includes: determining the CPE equipment as registered equipment under the condition that the mac address of the CPE equipment is in the authorization list and the online state of the CPE equipment is online; and under the condition that the mac address of the user equipment is in the authorization list and the online state of the user equipment is online, determining the user equipment as a registered device.
Further, the method further comprises: the central control end sends an online state detection signal to the CPE equipment and the user equipment according to a preset time interval; if the reply signals of the CPE equipment and the user equipment are not received within a preset time period, determining that the CPE equipment and the user equipment are unregistered equipment; and if the reply signals of the CPE equipment and the user equipment are received for N times continuously, increasing the preset time interval.
Further, the method further comprises: and setting the preset time interval as a maximum time interval under the condition that the online mode of the CPE equipment is the first online mode or the third online mode.
According to another aspect of the present application, there is provided a method for remotely controlling CPE equipment, the method being applied to a remote control system, the remote control system including the CPE equipment, user equipment and a central control end, including: the CPE equipment sends a registration online message to the central control end; the user equipment sends a registration online message to the central control terminal; the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment; the user equipment sends a control message to the central control end, the central control end forwards the control message to the CPE equipment, and the central control end establishes a data transmission channel between the CPE equipment and the user equipment according to an online mode of the CPE equipment.
Furthermore, the CPE equipment comprises a CPE port and a kernel daemon, the user equipment comprises a user equipment port and a user equipment control module, and the CPE equipment sends the registration online message to the central control end through the CPE port; the kernel daemon process establishes connection with a serial interface of the CPE equipment and establishes a plurality of kernel function guide modules; sending the registration online message of the user equipment to the central control terminal through the user equipment port; and the user equipment control module generates the control message, and establishes the data transmission channel between the user equipment control module and the kernel daemon.
Further, the method further comprises: and the kernel daemon calls the kernel function guide module according to the control message so as to control the serial interface of the CPE equipment to finish the action corresponding to the control message.
According to another aspect of the present application, there is also provided a remote control system, which includes CPE equipment, user equipment, and a central control end, where the central control end includes: the device comprises a receiving unit, a determining unit and a processing unit; the receiving unit is used for receiving registration online messages of the CPE equipment and the user equipment; the determining unit is used for determining the online mode of the CPE equipment according to the registration online message of the CPE equipment; the processing unit is used for receiving the control message sent by the user equipment, forwarding the control message to the CPE equipment, and establishing a data transmission channel between the CPE equipment and the user equipment according to the online mode of the CPE equipment.
According to another aspect of the present application, there is also provided a remote control system, including: the CPE device, the user equipment, and a central control end, where the central control end communicates with the CPE device and the user equipment, respectively, and is configured to execute any one of the above methods.
According to another aspect of the present application, there is also provided a computer-readable storage medium, which includes a stored program, wherein when the program runs, the apparatus on which the computer-readable storage medium is located is controlled to execute any one of the above methods.
According to another aspect of the present application, there is also provided a processor configured to execute a program, where the program executes to perform any one of the above-mentioned methods.
By applying the technical scheme of the application, the online mode of the CPE equipment is determined according to the registration online message of the CPE equipment, the control message is forwarded to the CPE equipment, the control relation between the user equipment and the CPE equipment is established through the control message, and the data for controlling the CPE equipment to execute specific operation is transmitted through the data transmission channel, so that the remote control of the CPE equipment is realized, and the problem of high resource overhead of a reverse SSH tunnel in the prior art is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
fig. 1 shows a flow chart of a method of remotely controlling CPE devices according to an embodiment of the application;
FIG. 2 shows a first schematic diagram of a remote control system according to an embodiment of the application;
FIG. 3 shows a second schematic diagram of a remote control system according to an embodiment of the application;
fig. 4 is a flowchart illustrating registration of the CPE device port and the user device port with the central control end according to an embodiment of the present application;
fig. 5 is a flowchart illustrating the data tunnel established by the customer equipment port to the CPE equipment port according to an embodiment of the application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be understood that when an element such as a layer, film, region, or substrate is referred to as being "on" another element, it can be directly on the other element or intervening elements may also be present. Also, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element or "connected" to the other element through a third element.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
CPE: customer Premises Equipment, i.e. Customer Premises Equipment, is Equipment located at the end-user Premises, typically a telephone or other service.
As described in the background, the mechanisms of remote control in the prior art are not scalable, have high performance requirements on the proxy server, and are expensive. Secondly, the resource overhead of the reverse SSH tunnel is relatively large, and in order to solve the problem that the resource overhead of the reverse SSH tunnel is relatively large in the prior art, embodiments of the present application provide a method for remotely controlling CPE devices, a remote control system, a computer-readable storage medium, and a processor.
According to an embodiment of the application, a method of remotely controlling a CPE device is provided.
Fig. 1 is a flow chart of a method of remotely controlling CPE devices according to an embodiment of the application. As shown in fig. 1, the method is applied to a remote control system, where the remote control system includes CPE equipment, user equipment and a central control end, and the method includes the following steps:
step S101, the central control end receives the register online messages of the CPE equipment and the user equipment;
in the above steps, the registration online message of the CPE equipment and the registration online message of the user equipment are both registered to the central control end.
Step S102, the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment;
step S103, the central control end receives a control message sent by the user equipment, forwards the control message to the CPE equipment, and establishes a data transmission channel between the CPE equipment and the user equipment according to an online mode of the CPE equipment.
In the above steps, the control message is only to establish a control relationship between the ue and the CPE device, and the actual data for controlling the CPE device to perform a specific operation is transmitted through the data transmission channel, i.e. the control channel is separated from the data channel. The central control end plays a role in data query and control message forwarding, and the data channel and the control channel are separated, so that the expansion performance given by the system is better.
Specific operations include raising the temperature, opening the cabinet door, lowering the temperature, and the like.
In the above steps, an online mode of the CPE device is determined according to the registration online message of the CPE device, the control message is forwarded to the CPE device, a data transmission channel between the CPE device and the user device is established, a control relationship between the user device and the CPE device is established through the control message, and data for controlling the CPE device to perform a specific operation is transmitted through the data transmission channel, so that remote control of the CPE device is achieved, and the problem of high resource overhead of a reverse SSH tunnel in the prior art is solved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
In an embodiment of the application, the determining, by the central controller, the online mode of the CPE device according to the registration online message of the CPE device includes: determining the online mode of the CPE equipment as a first online mode under the condition that the registration online message of the CPE equipment is a first registration online message; determining the online mode of the CPE equipment as a second online mode under the condition that the registration online message of the CPE equipment is a second registration online message; determining the online mode of the CPE equipment as a third registered online mode under the condition that the registered online message of the CPE equipment is a third registered online message; the method achieves the purposes of different registration online messages and determining the online mode of the CPE equipment to be the online mode corresponding to the registration online messages.
In an embodiment of the application, the registration online message of the CPE device includes a socket and a wan ip, and determining that the online mode of the CPE device is the third registered online message includes: determining that the on-line mode of the CPE device is the third triplet mode if the socket type is ipv6, the third triplet mode being an ipv6 address mode; determining that the online mode of the CPE device is the second online mode when the registration online message of the CPE device is the second registration online message comprises: under the condition that the addresses of the wan ip and the socket are different, determining that the online mode of the CPE equipment is a second online mode, wherein the second online mode is a telecom level NAT (network address translation) networking mode; determining that the online mode of the CPE device is the first online mode when the registration online message of the CPE device is the first registration online message comprises: determining that an online mode of the CPE device is a first online mode when the wan ip address is the same as the socket address, the first online mode being an ipv4 address mode; the purpose of determining the online mode of the CPE equipment through the type of the socket, the address of the socket and the address of the wan ip is achieved.
In an embodiment of the application, the CPE device includes a kernel daemon, the ue includes a ue control module, where an online mode of the ue control module is a server mode and an online mode of the kernel daemon is a client mode when an online mode of the CPE device is the second online mode, and where an online mode of the CPE device is the first online mode or the third online mode, an online mode of the ue control module is the client mode and an online mode of the kernel daemon is the server mode. Namely, the kernel daemon process and the user equipment of the CPE equipment are determined to comprise whether the user equipment control module is in a client mode or a server mode according to the online mode of the CPE equipment. The role transformation between the client mode and the server mode can solve the problem of NAT penetration.
In an embodiment of the present application, the registration online message of the CPE device includes a mac address and an online state of the CPE device, the registration online message of the ue includes a mac address and an online state of the ue device, and the central control end stores an authorization list, and the method further includes: determining the CPE equipment as a registered equipment under the condition that the mac address of the CPE equipment is in the authorization list and the online state of the CPE equipment is online; and determining the user equipment as a registered device under the condition that the mac address of the user equipment is in the authorization list and the online state of the user equipment is online.
In an embodiment of the present application, the method further includes: the central control end sends an online state detection signal to the CPE equipment and the user equipment according to a preset time interval; if the reply signals of the CPE equipment and the user equipment are not received within a preset time period, determining that the CPE equipment and the user equipment are unregistered equipment; if the reply signals of the CPE equipment and the user equipment are received for N times continuously, the preset time interval is increased, and whether the reply signals of the CPE equipment and the user equipment are received or not is judged in a preset time period, so that the CPE equipment and the user equipment are determined to be unregistered equipment or the preset time interval is increased. Wherein N is more than 2. Here, the predetermined time interval may be set to 2ms, 5ms, 10ms, etc., and the predetermined time period may be set to 30ms, 60ms, 90ms, etc. Specifically, if the reply signals of the CPE device and the user device are received five times in succession, which proves that the communication is good, the predetermined time interval may be appropriately increased, for example, the predetermined time interval is increased from 2ms to 5ms, the reply signals of the CPE device and the user device are received five times in succession after the predetermined time interval is increased to 5ms, the predetermined time interval is continuously increased, and so on.
In an embodiment of the present application, the method further includes: and setting the predetermined time interval as a maximum time interval when the online mode of the CPE device is the first online mode or the third online mode. That is, when the online mode is the ipv4 address mode and the ipv6 address mode, the predetermined time interval is directly set to the maximum time interval, so that normal communication can be ensured. In particular, the maximum time interval may be 30 ms.
The embodiment of the present application further provides a method for remotely controlling CPE devices, where the method is applied to a remote control system, where the remote control system includes the CPE devices, the user equipment, and a central control end, and includes: the CPE equipment sends a registration on-line message to the central control end; the user equipment sends a registration online message to the central control terminal; the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment; the user equipment sends a control message to the central control end, the central control end forwards the control message to the CPE equipment, and the central control end establishes a data transmission channel between the CPE equipment and the user equipment according to the online mode of the CPE equipment, so that the purpose that the central control end can establish the data transmission channel between the CPE equipment and the user equipment according to the online mode of the CPE equipment is achieved.
In an embodiment of the present application, the CPE device includes a CPE port and a kernel daemon, the user equipment includes a user equipment port and a user equipment control module, and the CPE device sends a registration online message to the central control end through the CPE port; the Kernel daemon establishes a connection with the serial interface of the CPE device, and establishes a plurality of Kernel function boot modules (i.e., Kernel Hook1, Kernel Hook2 in fig. 3); sending the registration on-line message of the user equipment to the central control terminal through the user equipment port; the ue control module generates the control message, and establishes the data transmission channel between the ue control module and the kernel daemon. The data transmission channel is directly established between the user equipment control module and the kernel daemon, no middleware is provided, and the resource overhead is low.
Specifically, the user equipment ports are not limited to be in the same device, and large-area deployment can be supported by the number of the user equipment ports and the bandwidth outside the user equipment ports, so that system information can be observed.
In an embodiment of the present application, the method further includes: and the kernel daemon calls the kernel function guide module according to the control message to control the serial interface of the CPE equipment to finish the action corresponding to the control message, so that the purpose that the kernel daemon can control the serial interface of the CPE equipment to finish the action corresponding to the control message through the control message is achieved.
The embodiment of the present application further provides a remote control system, and it should be noted that the remote control system according to the embodiment of the present application may be used to execute the method for remotely controlling CPE devices according to the embodiment of the present application. The remote control system provided by the embodiment of the present application is described below.
Fig. 2 is a first schematic diagram of a remote control system according to an embodiment of the present application, and fig. 3 is a second schematic diagram of a remote control system according to an embodiment of the present application. As shown in fig. 2 and 3, the system includes CPE equipment, user equipment, and a central control end, where the central control end includes: a receiving unit 10, a determining unit 20 and a processing unit 30;
the receiving unit 10 is configured to receive registration connection messages of the CPE device and the ue;
the determining unit 20 is configured to determine an online mode of the CPE device according to the registration online message of the CPE device;
the processing unit 30 is configured to receive a control message sent by the ue, forward the control message to the CPE device, and establish a data transmission channel between the CPE device and the ue according to an online mode of the CPE device.
In the device, the control message issued by the user equipment is received according to the receiving unit, the processing unit forwards the control message to the CPE equipment, a data transmission channel between the CPE equipment and the user equipment is established according to the online mode of the CPE equipment, a control relation between the user equipment and the CPE equipment is established through the control message, and data for controlling the CPE equipment to execute specific operation is transmitted through the data transmission channel, so that the remote control of the CPE equipment is realized, and the problem of high resource overhead of a reverse SSH tunnel in the prior art is solved.
In an embodiment of the application, the determining unit includes a first determining module, a second determining module, and a third determining module, where the first determining module is configured to determine that the online mode of the CPE device is the first online mode when the registration online message of the CPE device is the first registration online message; the second determining module is used for determining that the online mode of the CPE equipment is the second online mode under the condition that the registration online message of the CPE equipment is the second registration online message; the third determining module is configured to determine that the online mode of the CPE device is the third registered online mode when the registered online message of the CPE device is the third registered online message; the method achieves the purposes of different registration online messages and determining the online mode of the CPE equipment to be the online mode corresponding to the registration online messages.
In an embodiment of the application, the third determining module includes a third determining submodule, configured to determine that the online mode of the CPE device is the third triplet mode if the type of the socket is ipv6, where the third triplet mode is ipv6 address mode; the second determining module comprises a second determining submodule, and the second determining submodule is used for determining that the online mode of the CPE equipment is a second online mode under the condition that the addresses of the wan ip and the socket are different, and the second online mode is an online mode through a telecom level NAT; the first determining module comprises a first determining submodule, configured to determine that an online mode of the CPE device is a first online mode when an address of the wan ip is the same as an address of the socket, where the first online mode is an ipv4 address mode; the purpose of determining the online mode of the CPE equipment through the type of the socket, the address of the socket and the address of the wan ip is achieved.
In an embodiment of the application, the CPE device includes a kernel daemon, the ue includes a ue control module, where an online mode of the ue control module is a server mode and an online mode of the kernel daemon is a client mode when an online mode of the CPE device is the second online mode, and where an online mode of the CPE device is the first online mode or the third online mode, an online mode of the ue control module is the client mode and an online mode of the kernel daemon is the server mode. Namely, the kernel daemon process and the user equipment of the CPE equipment are determined to comprise whether the user equipment control module is in a client mode or a server mode according to the online mode of the CPE equipment. The role transformation between the client mode and the server mode can solve the problem of NAT penetration.
In an embodiment of the present application, the registration online message of the CPE device includes a mac address and an online state of the CPE device, the registration online message of the CPE device includes a mac address and an online state of the user device, the central control end stores an authorization list, and the central control end further includes a first processing unit and a second processing unit, where the first processing unit is configured to determine that the CPE device is a registration device when the mac address of the CPE device is in the authorization list and the online state of the CPE device is online; the second processing unit is configured to determine that the user equipment is a registered device when the mac address of the user equipment is in the authorization list and the online state of the user equipment is online.
In an embodiment of the present application, the determining unit further includes a fourth determining module and a first processing module, and the central control end sends an online state detection signal to the CPE device and the user equipment according to a predetermined time interval; the fourth determining module is configured to determine that the CPE device and the user equipment are unregistered devices if the response signals of the CPE device and the user equipment are not received within a predetermined time period; the first processing module is configured to increase the predetermined time interval if the response signals of the CPE device and the user device are received N consecutive times, and determine that the CPE device and the user device are unregistered devices or increase the predetermined time interval by determining whether the response signals of the CPE device and the user device are received within a predetermined time period. Wherein N is more than 2. Here, the predetermined time interval may be set to 2ms, 5ms, 10ms, etc., and the predetermined time period may be set to 30ms, 60ms, 90ms, etc. Specifically, if the reply signals of the CPE device and the user device are received five times in succession, which proves that the communication is good, the predetermined time interval may be increased appropriately, for example, the predetermined time interval is increased from 2ms to 5ms, and after the predetermined time interval is increased to 5ms, the reply signals of the CPE device and the user device are received five times in succession, and then the predetermined time interval is increased continuously, and so on.
In an embodiment of the application, the determining unit further includes a second processing module, and the second processing module is configured to set the predetermined time interval as a maximum time interval when the online mode of the CPE device is the first online mode or the third online mode. That is, when the online mode is the ipv4 address mode or the ipv6 address mode, normal communication can be guaranteed by directly setting the predetermined time interval to the maximum time interval. In particular, the maximum time interval may be 30 ms.
The remote control system comprises a processor and a memory, the receiving unit, the determining unit, the processing unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that resource overhead of the reverse SSH tunnel in the prior art is large is solved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for remotely controlling CPE devices.
The embodiment of the invention provides a processor, which is used for running a program, wherein the method for remotely controlling CPE equipment is executed when the program runs.
An embodiment of the present application further provides a remote control system, including: CPE equipment, user equipment and a central control end, said central control end being in communication with said CPE equipment and said user equipment, respectively, said central control end being configured to perform any of said methods.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein when the processor executes the program, at least the following steps are realized: the central control end receives the registration on-line messages of the CPE equipment and the user equipment; the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment; the central control end receives a control message issued by the user equipment, forwards the control message to the CPE equipment, and establishes a data transmission channel between the CPE equipment and the user equipment according to the online mode of the CPE equipment. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program of initializing at least the following method steps when executed on a data processing device: the central control end receives the registration on-line messages of the CPE equipment and the user equipment; the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment; the central control end receives a control message issued by the user equipment, forwards the control message to the CPE equipment, and establishes a data transmission channel between the CPE equipment and the user equipment according to an online mode of the CPE equipment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
Examples
The present embodiment relates to a scheme for remotely controlling CPE devices, where fig. 4 is a flowchart of registering a CPE device port and a user device port to a central control end according to an embodiment of the present application, and fig. 5 is a flowchart of establishing a data tunnel to the CPE device port by the user device port according to the embodiment of the present application, and as shown in fig. 4 and 5, the scheme is applied to a remote control system, where the remote control system includes a CPE device, a user device, and a central control end, and the scheme includes the following steps:
step 1: the central control end receives the registration on-line messages of the CPE equipment and the user equipment;
step 2: determining that an online mode of the CPE device is a first online mode when the wan ip address is the same as the socket address, the first online mode being an ipv4 address mode; determining that the online mode of the CPE equipment is a second online mode under the condition that the addresses of the wan ip and the socket are different, wherein the second online mode is a telecom level NAT (network address translation) internet surfing mode; determining that the on-line mode of the CPE device is the third triplet mode if the socket type is ipv6, the third triplet mode being an ipv6 address mode;
specifically, as shown in fig. 4, when the CPE device port and the user device port register with the central control end:
an ACE (AgileRemote CPE Endpoint, i.e., a CPE device port) performs identity authentication to an ACC (AgileRemote Ctrl Center, i.e., a central control end) through a TLV (Type-length-value, i.e., one Type of BER code in a message format), where a T field indicates a message Type, an L field indicates a message length, and a V field is often used to store message content, and the ACC determines a CPE online mode according to an authentication message, where the CPE online mode includes but is not limited to: CPE (CPE device) goes to net through CGN (telecom grade NAT); CPE owns ipv6 global unique address; CPE owns ipv4 public IP Address; in addition, the AWE (AgileRemote Windows Endpoint, i.e. user equipment port) performs identity authentication to the ACC (AgileRemote Ctrl Center, i.e. central control end) through TLV, and the AWE keeps online to the ACC through keep alive packets; the ACE keeps the ACC online through keep alive (keep alive is an abstract component that he does not render a DOM element by himself nor appear in the parent chain; when dynamic components are wrapped with keep alive, inactive component instances are cached instead of destroying them).
And step 3: the central control end sends an online state detection signal to the CPE equipment and the user equipment according to a preset time interval; if the reply signals of the CPE equipment and the user equipment are not received within a preset time period, determining that the CPE equipment and the user equipment are unregistered equipment; if the reply signals of the CPE equipment and the user equipment are received for N times continuously, the preset time interval is increased;
and 4, step 4: setting the predetermined time interval as a maximum time interval when the online mode of the CPE device is the first online mode or the third online mode;
and 5: the central control end receives a control message issued by the user equipment, forwards the control message to the CPE equipment, and establishes a data transmission channel between the CPE equipment and the user equipment according to an online mode of the CPE equipment.
Specifically, as shown in fig. 5, when the user equipment port establishes a data channel to the CPE equipment port:
AWE (AgileRemote Windows Endpoint, namely a user equipment port) inquires an ACC (AgileRemote Ctrl Center, namely a central control end) about the online mode of CPE (CPE equipment);
2, the AWE establishes an online mode of an AWC (AgileRemote Windows Console, namely a user equipment control module) and an AKD (AgileRemote Kernel Daemon) according to the online mode of the CPE, and sends an online request to the ACE through the ACC, wherein the request comprises the online mode required by the AKD;
the AWE sends an online request to an ACE (AgileRemote CPE Endpoint, namely a CPE equipment port) through the ACC;
the ACC forwards the online request and the online information of the AWE;
the ACE establishes an online mode of AKD according to an online request of the AWE;
AKD registers a plurality of hook functions to kernel;
the ACC forwards the online response of the ACE to the AWE, and the online response enables the ACE and the AKD to be online;
8. establishing a Date Tunnel (data transmission channel);
the AWC performs operations on the kernel hook (kernel function boot module) of the CPE via the AKD.
In the above steps, the online mode of the CPE device is determined according to the registration online message of the CPE device, the control message is forwarded to the CPE device, a control relationship between the user equipment and the CPE device is established through the control message, and data for controlling the CPE device to perform a specific operation is transmitted through the data transmission channel, so that remote control of the CPE device is realized, and the problem of high resource overhead of the reverse SSH tunnel in the prior art is solved.
From the above description, it can be seen that the above-described embodiments of the present application achieve the following technical effects:
1) the method for remotely controlling the CPE equipment determines the online mode of the CPE equipment according to the registration online message of the CPE equipment, forwards the control message to the CPE equipment, establishes a control relation between the user equipment and the CPE equipment through the control message, and transmits data for controlling the CPE equipment to execute specific operation through a data transmission channel, thereby realizing remote control of the CPE equipment and solving the problem of high resource cost of a reverse SSH tunnel in the prior art.
2) According to the remote control system, the receiving unit receives the control message issued by the user equipment, the processing unit forwards the control message to the CPE equipment, a data transmission channel between the CPE equipment and the user equipment is established according to the online mode of the CPE equipment, a control relation between the user equipment and the CPE equipment is established through the control message, and data for controlling the CPE equipment to execute specific operation is transmitted through the data transmission channel, so that the remote control of the CPE equipment is realized, and the problem that the resource overhead of a reverse SSH tunnel in the prior art is large is solved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1.A method for remotely controlling CPE equipment, which is applied to a remote control system, wherein the remote control system comprises the CPE equipment, user equipment and a central control end, and the method comprises the following steps:
the central control end receives registration online messages of the CPE equipment and the user equipment;
the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment;
and the central control end receives a control message issued by the user equipment, forwards the control message to the CPE equipment, and establishes a data transmission channel between the CPE equipment and the user equipment according to the online mode of the CPE equipment.
2. The method of claim 1, wherein the determining, by the central control end, the online mode of the CPE device according to the registered online message of the CPE device comprises:
determining that the online mode of the CPE equipment is a first online mode under the condition that the registration online message of the CPE equipment is a first registration online message;
determining the online mode of the CPE equipment as a second online mode under the condition that the registration online message of the CPE equipment is a second registration online message;
and determining that the online mode of the CPE equipment is a third online registration mode under the condition that the online registration information of the CPE equipment is the third online registration information.
3. The method of claim 2, wherein the registration presence message of the CPE device includes a socket and wan ip,
determining that the online mode of the CPE device is a third registered online mode under the condition that the registered online message of the CPE device is a third registered online message, including:
determining that the online mode of the CPE device is the third triplet mode if the socket type is ipv6, the third triplet mode being an ipv6 address mode;
determining that the online mode of the CPE device is the second online mode under the condition that the registration online message of the CPE device is the second registration online message, wherein the determining comprises the following steps:
under the condition that the addresses of the wan ip and the socket are different, determining that the online mode of the CPE equipment is a second online mode, wherein the second online mode is a telecom level NAT internet surfing mode;
determining that the online mode of the CPE device is the first online mode under the condition that the registration online message of the CPE device is the first registration online message, wherein the determining comprises the following steps:
and under the condition that the address of the wan ip is the same as the address of the socket, determining that the online mode of the CPE equipment is a first online mode, wherein the first online mode is an ipv4 address mode.
4. The method of claim 2, wherein the CPE device comprises a kernel daemon, wherein the customer equipment comprises a customer equipment control module,
when the online mode of the CPE equipment is the second online mode, the online mode of the user equipment control module is a server-side mode, the online mode of the kernel daemon is a client-side mode,
and under the condition that the online mode of the CPE equipment is the first online mode or the third online mode, the online mode of the user equipment control module is the client mode, and the online mode of the kernel daemon is the server mode.
5. The method according to any one of claims 1 to 4, wherein the registration online message of the CPE device includes a mac address and an online status of the CPE device, the user device registration online message includes a mac address and an online status of the user device, the central control end stores an authorization list therein, and the method further comprises:
determining the CPE equipment as registered equipment under the condition that the mac address of the CPE equipment is in the authorization list and the online state of the CPE equipment is online;
and determining the user equipment as the registered equipment under the condition that the mac address of the user equipment is in the authorization list and the online state of the user equipment is online.
6. The method of claim 2, further comprising:
the central control end sends an online state detection signal to the CPE equipment and the user equipment according to a preset time interval;
if the reply signals of the CPE equipment and the user equipment are not received within a preset time period, determining that the CPE equipment and the user equipment are unregistered equipment;
and if the reply signals of the CPE equipment and the user equipment are received for N times continuously, increasing the preset time interval, wherein N is more than 2.
7. The method of claim 6, further comprising:
and setting the preset time interval as a maximum time interval under the condition that the online mode of the CPE equipment is the first online mode or the third online mode.
8. A method for remotely controlling CPE equipment, which is applied to a remote control system, wherein the remote control system comprises the CPE equipment, user equipment and a central control end, and the method comprises the following steps:
the CPE equipment sends a registration online message to the central control end;
the user equipment sends a registration online message to the central control terminal;
the central control end determines the online mode of the CPE equipment according to the registration online message of the CPE equipment;
the user equipment sends a control message to the central control end, the central control end forwards the control message to the CPE equipment, and the central control end establishes a data transmission channel between the CPE equipment and the user equipment according to an online mode of the CPE equipment.
9. The method of claim 8, wherein the CPE device includes a CPE port and a kernel daemon, wherein the customer equipment includes a customer equipment port and a customer equipment control module,
sending the register online message to the central control end by the CPE equipment through the CPE port;
the kernel daemon process establishes connection with a serial interface of the CPE equipment and establishes a plurality of kernel function guide modules;
sending the registration online message of the user equipment to the central control terminal through the user equipment port;
and the user equipment control module generates the control message, and establishes the data transmission channel between the user equipment control module and the kernel daemon.
10. The method of claim 9, further comprising:
and the kernel daemon calls the kernel function guide module according to the control message so as to control the serial interface of the CPE equipment to finish the action corresponding to the control message.
11. A remote control system, comprising: CPE equipment, user equipment and well accuse end, well accuse end includes:
a receiving unit, configured to receive registration online messages of the CPE device and the user equipment;
a determining unit, configured to determine an online mode of the CPE device according to the registration online message of the CPE device;
and the processing unit is used for receiving a control message issued by the user equipment, forwarding the control message to the CPE equipment, and establishing a data transmission channel between the CPE equipment and the user equipment according to the online mode of the CPE equipment.
12. A remote control system, comprising: CPE equipment, user equipment and a central control end, the central control end is respectively communicated with the CPE equipment and the user equipment, and the central control end is used for executing the method of any one of claims 1 to 7.
13. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method of any one of claims 1-7.
14. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method of any of claims 1 to 7.
CN202210211179.XA 2022-03-03 2022-03-03 Method for remotely controlling CPE (customer premises equipment) and remote control system Pending CN114640663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210211179.XA CN114640663A (en) 2022-03-03 2022-03-03 Method for remotely controlling CPE (customer premises equipment) and remote control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210211179.XA CN114640663A (en) 2022-03-03 2022-03-03 Method for remotely controlling CPE (customer premises equipment) and remote control system

Publications (1)

Publication Number Publication Date
CN114640663A true CN114640663A (en) 2022-06-17

Family

ID=81948392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210211179.XA Pending CN114640663A (en) 2022-03-03 2022-03-03 Method for remotely controlling CPE (customer premises equipment) and remote control system

Country Status (1)

Country Link
CN (1) CN114640663A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068226A (en) * 2007-02-01 2007-11-07 西安交通大学 Multimedia interactive gateway realizing method under IPv4/IPv6 mixed environment
CN102365643A (en) * 2009-01-28 2012-02-29 海德沃特合作I有限公司 Verifiable and accurate service usage monitoring for intermediate networking devices
CN103001939A (en) * 2012-07-30 2013-03-27 深圳市共进电子股份有限公司 FTP (file transfer protocol) server, FTP server processing method and FTP transmission system
CN103685467A (en) * 2013-11-15 2014-03-26 伏治军 Interconnection and internetworking platform of Internet of things, and communication method thereof
WO2014056441A1 (en) * 2012-10-10 2014-04-17 中国移动通信集团公司 Method and device for configuring ipv6 transition technique on cpe
US20190230017A1 (en) * 2018-01-25 2019-07-25 Charter Communications Operating, Llc Bi-directional speed test method and system for customer premises equipment (cpe) devices
CN111371897A (en) * 2020-03-12 2020-07-03 深圳市共进电子股份有限公司 Reverse connection method, device and storage medium based on networking system
CN113067910A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 NAT traversal method, device, electronic equipment and storage medium
CN113286265A (en) * 2020-02-03 2021-08-20 中国电信股份有限公司 CPE device, control device, communication method, communication system and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068226A (en) * 2007-02-01 2007-11-07 西安交通大学 Multimedia interactive gateway realizing method under IPv4/IPv6 mixed environment
CN102365643A (en) * 2009-01-28 2012-02-29 海德沃特合作I有限公司 Verifiable and accurate service usage monitoring for intermediate networking devices
CN103001939A (en) * 2012-07-30 2013-03-27 深圳市共进电子股份有限公司 FTP (file transfer protocol) server, FTP server processing method and FTP transmission system
WO2014056441A1 (en) * 2012-10-10 2014-04-17 中国移动通信集团公司 Method and device for configuring ipv6 transition technique on cpe
CN103685467A (en) * 2013-11-15 2014-03-26 伏治军 Interconnection and internetworking platform of Internet of things, and communication method thereof
US20190230017A1 (en) * 2018-01-25 2019-07-25 Charter Communications Operating, Llc Bi-directional speed test method and system for customer premises equipment (cpe) devices
CN113067910A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 NAT traversal method, device, electronic equipment and storage medium
CN113286265A (en) * 2020-02-03 2021-08-20 中国电信股份有限公司 CPE device, control device, communication method, communication system and storage medium
CN111371897A (en) * 2020-03-12 2020-07-03 深圳市共进电子股份有限公司 Reverse connection method, device and storage medium based on networking system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田普;徐希炜;: "一种移动接入网络中4over6软线隧道方案的设计与实现", 信息通信技术, no. 03, 15 June 2013 (2013-06-15) *

Similar Documents

Publication Publication Date Title
US10341427B2 (en) Forwarding policies on a virtual service network
CN107113342B (en) Relay optimization using software defined networks
US8543706B2 (en) Communication module for connecting application program to virtual private network
US8458303B2 (en) Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset
US9723069B1 (en) Redistributing a connection
US20070274285A1 (en) System and method for configuring a router
US9565635B2 (en) Activating a mobile terminal from mobile network side
EP3562099A1 (en) Scheduling method, system, controller and computer storage medium
US11863529B2 (en) Private cloud routing server connection mechanism for use in a private communication architecture
US20170054631A1 (en) Remote Access to a Residential Multipath Entity
CN114500176A (en) Multi-stream load balancing method, device and system for VPN and storage medium
WO2013129207A1 (en) Mobile communication system, communication system, node, flow-control network, and communication-control method
CN114640663A (en) Method for remotely controlling CPE (customer premises equipment) and remote control system
US20190052599A1 (en) Method for transmitting at least one ip data packet, related system and computer program product
US11477079B2 (en) Globally-distributed secure end-to-end identity-based overlay network
US20070091875A1 (en) Method and System For Device Mobility Using Application Label Switching In A Mobile Communication Network
US11683292B2 (en) Private cloud routing server connection mechanism for use in a private communication architecture
GB2607362A (en) Private cloud routing server connection mechanism for use in a private communication architecture
US20170289099A1 (en) Method and Device for Managing Internet Protocol Version 6 Address, and Terminal
WO2009083872A2 (en) Methode of connecting a voice over internet protocol terminal to a remote server
CN115996237B (en) Remote management method, processor and storage medium for terminal of Internet of things
WO2008050061A2 (en) Communication method and system relating to the dhcp protocol
Kozuka et al. A policy-based path selection mechanism in QUIC multipath extension
Alani et al. WAN technologies
Enghardt et al. TAPS Working Group B. Trammell, Ed. Internet-Draft Google Switzerland GmbH Intended status: Standards Track M. Welzl, Ed. Expires: August 26, 2021 University of Oslo

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