Nothing Special   »   [go: up one dir, main page]

CN112995197B - Remote access method, system, equipment and storage medium of monitoring equipment - Google Patents

Remote access method, system, equipment and storage medium of monitoring equipment Download PDF

Info

Publication number
CN112995197B
CN112995197B CN202110326334.8A CN202110326334A CN112995197B CN 112995197 B CN112995197 B CN 112995197B CN 202110326334 A CN202110326334 A CN 202110326334A CN 112995197 B CN112995197 B CN 112995197B
Authority
CN
China
Prior art keywords
service module
monitoring equipment
proxy service
monitoring
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110326334.8A
Other languages
Chinese (zh)
Other versions
CN112995197A (en
Inventor
张刘青
严海全
孙伟伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda 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 Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN202110326334.8A priority Critical patent/CN112995197B/en
Publication of CN112995197A publication Critical patent/CN112995197A/en
Application granted granted Critical
Publication of CN112995197B publication Critical patent/CN112995197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/0884Network architectures or network communication protocols for network security for authentication of entities by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • 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
    • 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]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a remote access method, a system, equipment and a storage medium of monitoring equipment, wherein the method comprises the following steps: the user login service module receives a monitoring equipment access request sent by a user; the user login service module inquires information of a webpage proxy service module corresponding to the accessed monitoring equipment from the domain name service module, and the webpage proxy service module establishes a communication link with the accessed monitoring equipment; the user login service module sends the information of the webpage proxy service module to a user side, and the user side is configured to redirect the access request of the monitoring equipment to the corresponding webpage proxy service module; the webpage proxy service module receives a monitoring equipment access request from a user terminal and sends access data in the monitoring equipment access request to the accessed monitoring equipment; and the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side. By adopting the invention, the monitoring equipment can be remotely accessed without being limited by a network.

Description

Remote access method, system, equipment and storage medium of monitoring equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a remote access method, system, device and storage medium for a monitoring device.
Background
Typically, the monitoring device is in a lan or 4G network, and cannot monitor ports normally due to the obstruction of NAT (Network Address Translation ), firewalls, etc. The user cannot directly access the monitoring device. When a user needs to access, maintain and update the monitoring equipment, the user needs to run to the site where the monitoring equipment is located to operate, and the operation is very inconvenient.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide a remote access method, a system, equipment and a storage medium of monitoring equipment, which can remotely access the monitoring equipment without being limited by a network.
The embodiment of the invention provides a remote access method of monitoring equipment, which comprises the following steps:
the user login service module receives a monitoring equipment access request sent by a user;
the user login service module inquires information of a webpage proxy service module corresponding to the accessed monitoring equipment from the domain name service module, and the webpage proxy service module establishes a communication link with the accessed monitoring equipment;
the user login service module sends the information of the webpage proxy service module to the user side, and the user side is configured to redirect the access request of the monitoring equipment to the corresponding webpage proxy service module;
the webpage proxy service module receives a monitoring equipment access request from the user terminal and sends access data in the monitoring equipment access request to the accessed monitoring equipment;
and the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side.
The remote access method of the monitoring equipment provides the query service of the webpage proxy service module based on the monitoring equipment through the user login service module and the domain name service module, so that when a user needs to access the monitoring equipment through a user side, the information of the webpage proxy service module can be conveniently obtained, and when the webpage proxy service module receives the access request of the monitoring equipment of the user side, the access proxy service can be provided between the user side and the monitoring equipment, thereby the user side can conveniently and remotely access the monitoring equipment without being limited by a network and obtain response data.
In some embodiments, the method further comprises establishing a communication link between the monitoring device and the web proxy service module using the steps of:
the domain name service module receives a first registration request of the monitoring equipment;
the domain name service module records the association relation between the monitoring equipment and the webpage proxy service module and sends the information of the corresponding webpage proxy service module to the monitoring equipment;
the webpage proxy service module receives a second registration request of the monitoring equipment;
and a communication link is established between the webpage proxy service module and the monitoring equipment.
In some embodiments, the user login service module sends the information of the corresponding web proxy service module to the monitoring device, including the user login service module sending the address and a proxy port number of the corresponding web proxy service module to the monitoring device, where the web proxy service module sets the proxy address of the monitoring device according to the address and the proxy port number of the web proxy service module
In some embodiments, the web proxy service module receives a monitoring device access request from the user, and sends access data in the monitoring device access request to the accessed monitoring device, including the following steps:
a proxy port of the webpage proxy service module receives a monitoring equipment access request from the user terminal;
and the webpage proxy service module sends the access data to the corresponding monitoring equipment through the communication link according to the corresponding relation between the proxy port receiving the access request of the monitoring equipment and the monitoring equipment.
In some embodiments, the user terminal is configured to send the monitoring device access request to the proxy port through a tcp link, and the communication link between the web proxy server terminal and the monitoring device is a websocket link.
In some embodiments, sending access data to the corresponding monitoring device over the communication link includes the steps of:
the webpage proxy service module allocates a link number according to the received monitoring equipment access request;
the webpage proxy service module sends the access data and the link number to the monitoring equipment through one message in the communication link;
the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side, and the method comprises the following steps:
the webpage proxy service module receives response data and a corresponding link number sent by the monitoring equipment through the communication link;
and the webpage proxy service module sends the response data to the corresponding user terminal according to the received link number.
In some embodiments, the monitoring device includes a monitoring device agent and a device network port;
and the monitoring equipment proxy end is configured to send the access data to the equipment network port when receiving the access data and the link number, and send response data returned by the equipment network port and the link number to the webpage proxy service module.
In some embodiments, after the communication link is established between the web proxy service module and the monitoring device, the method further includes the following steps:
the webpage proxy service module sends a data monitoring request to the monitoring equipment through the communication link;
and the webpage proxy service module sends the monitoring data to the user side when receiving the monitoring data from the monitoring equipment through the data monitoring port.
The embodiment of the invention also provides a remote access system of the monitoring equipment, which is applied to the remote access method of the monitoring equipment, and comprises the following steps:
the domain name service module is used for recording the association relation between the monitoring equipment and the webpage proxy service module;
the system comprises a user login service module, a domain name service module, a monitoring equipment access module and a user terminal, wherein the user login service module is used for receiving a monitoring equipment access request sent by the user terminal, inquiring information of a webpage proxy service module corresponding to accessed monitoring equipment from the domain name service module, establishing a communication link between the webpage proxy service module and the accessed monitoring equipment, and sending the information of the webpage proxy service module to the user terminal, and the user terminal is configured to redirect the monitoring equipment access request to the corresponding webpage proxy service module;
the webpage proxy service module is used for receiving a monitoring equipment access request from the user terminal, sending access data in the monitoring equipment access request to the accessed monitoring equipment, acquiring response data from the accessed monitoring equipment and sending the response data to the user terminal.
The remote access system of the monitoring equipment provides the query service of the webpage proxy service module based on the monitoring equipment through the user login service module and the domain name service module, so that when a user needs to access the monitoring equipment through a user side, the information of the webpage proxy service module can be conveniently obtained, and when the webpage proxy service module receives the access request of the monitoring equipment of the user side, the access proxy service can be provided between the user side and the monitoring equipment, thereby the user side can conveniently and remotely access the monitoring equipment without being limited by a network and obtain response data.
The embodiment of the invention also provides remote access equipment of the monitoring equipment, which comprises the following components:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the remote access method of the monitoring device via execution of the executable instructions.
By adopting the remote access device of the monitoring device, the processor executes the remote access method of the monitoring device when executing the executable instruction, so that the beneficial effects of the remote access method of the monitoring device can be obtained.
The embodiment of the invention also provides a computer readable storage medium for storing a program which, when executed by a processor, implements the steps of the remote access method of the monitoring device.
By adopting the computer readable storage medium provided by the invention, the program stored therein realizes the steps of the remote access method of the monitoring device when being executed, thereby obtaining the beneficial effects of the remote access method of the monitoring device.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings.
FIG. 1 is a flow chart of a method of remote access of a monitoring device in accordance with an embodiment of the present invention;
fig. 2 is a schematic diagram of a cloud server and a monitoring device in a remote access method of the monitoring device according to an embodiment of the present invention;
FIG. 3 is a timing diagram of a remote access method of a monitoring device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an access process according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a remote access system of a monitoring device in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram of the remote access device of the monitoring device according to an embodiment of the present invention;
fig. 7 is a schematic structural view of a computer storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus a repetitive description thereof will be omitted.
As shown in fig. 1, in an embodiment, the present invention provides a remote access method for a monitoring device, including the following steps:
s100: the user login service module receives a monitoring device access request sent by a user side, and in this embodiment, the user side is a client browser used by a user who needs to access the monitoring device;
s200: the user login service module inquires information of a webpage proxy service module corresponding to the accessed monitoring equipment from the domain name service module, and the webpage proxy service module establishes a communication link with the accessed monitoring equipment;
s300: the user login service module sends the information of the webpage proxy service module to the user side, and the user side is configured to redirect the access request of the monitoring equipment to the corresponding webpage proxy service module;
s400: the webpage proxy service module receives a monitoring equipment access request from the user terminal and sends access data in the monitoring equipment access request to the accessed monitoring equipment;
s500: and the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side.
In the remote access method of the monitoring equipment, the user login service module and the domain name service module provide the query service of the web proxy service module based on the monitoring equipment through the steps S100-S300, so that the user can conveniently acquire the information of the web proxy service module when the user needs to access the monitoring equipment through the user side, and the web proxy service module can provide the access proxy service between the user side and the monitoring equipment when receiving the monitoring equipment access request of the user side through the steps S400 and S500, thereby the user side can conveniently and remotely access the monitoring equipment and acquire response data without being limited by a network.
By adopting the remote access method of the monitoring equipment, the monitoring equipment can be accessed by a public network environment without limitation, remote configuration, remote upgrading and maintenance and even remote video browsing functions are realized, and one typical scene is to remotely access a webpage client of an IPC (IP-CAMERA) or NVR (Network Video Recorder, network digital hard disk recorder) positioned in NAT (Network Address Translation ) on the Internet.
As shown in fig. 2, in the remote access method of the monitoring device of the present invention, two parts are mainly involved: cloud service end and supervisory equipment. The cloud service end comprises a user login service module, a domain name service module and a webpage proxy service module. The user login service module is used for providing a management page for the user to access the monitoring equipment. The user can access the management page provided by the user login service module through the user side. The management page can display a monitoring equipment number input box and an equipment access button, and a user can input the monitoring equipment number into the monitoring equipment number input box in a browser and press the equipment access button to send a monitoring equipment access request. In another embodiment, the user interface may also display a list of available monitoring devices, and the user may send a monitoring device access request by directly clicking on one of the monitoring devices in the list of monitoring devices. The user login service module is further configured to execute steps S100 to S300 in the remote access method, that is, redirection of access by the user terminal is implemented.
In this embodiment, the domain name service module is a PDNS service module, where PDNS refers to Passive DNS (Passive domain name system) or Power DNS (Power domain name system), which may be implemented using a DNS server supporting a mysql database. Since access to mysql database generally allows only local ip queries based on security considerations, user-side ip may be added to the relevant whitelist in advance to avoid query failure.
The remote access method of the monitoring equipment further comprises the step of establishing a communication link between the monitoring equipment and the webpage proxy service module. As shown in fig. 2, the monitoring device includes a device network port and a monitoring device proxy, and the monitoring device proxy includes a PDNS proxy server and a web proxy link server. Because of the NAT nature, an intranet-initiated connection of the monitoring device is possible, and thus registration is initiated by the monitoring device actively outwards when the communication link is established. There are two links between cloud service and monitoring device, one is PDNS link and the other is web proxy link, both of which are actively initiated by the monitoring device.
Specifically, as shown in fig. 3, the remote access method of the monitoring device further includes the following steps of establishing a communication link between the monitoring device and the web proxy service module:
the domain name service module receives a first registration request sent by a PDNS proxy server (monitoring equipment proxy) of the monitoring equipment, establishes a PDNS link with the monitoring equipment, and comprises an SN number of the monitoring equipment and a registration PDNS request;
the domain name service module records the association relation between the monitoring equipment and the webpage proxy service module, namely, the SN serial number of the monitoring equipment is bound with the proxy information of the webpage proxy service module, and the corresponding information of the webpage proxy service module is sent to the monitoring equipment, wherein the information of the webpage proxy service module is the proxy information and at least comprises the IP address of the webpage proxy service module and the access port of the monitoring equipment; the PDNS link may then be broken, the link being a short link;
the webpage proxy service module receives a second registration request sent by a webpage proxy link service end (monitoring equipment proxy end) of the monitoring equipment, and requests to establish a webpage proxy link with the webpage proxy service module;
the webpage proxy service module receives a request for establishing a webpage proxy link, establishes a communication link with a webpage proxy link service end of the monitoring equipment, and the webpage proxy link is a long link.
When the monitoring equipment is disconnected from the web proxy service module, the web proxy service module informs the domain name server to know the information related to the monitoring equipment. Before the monitoring device is on line again, the user cannot acquire the proxy address of the monitoring device.
In this embodiment, the step S300: the user login service module sends the information of the corresponding webpage proxy service module to the monitoring equipment, and the user login service module sends the address and the proxy port number of the corresponding webpage proxy service module to the monitoring equipment. And the webpage proxy service module sets the proxy address of the monitoring equipment according to the address of the webpage proxy service module and the proxy port number. Specifically, before accessing the monitoring device, the web proxy service module needs to monitor a tcp local port as a proxy port, the proxy port and the monitoring device to be accessed are in one-to-one correspondence, and then the proxy address of the monitoring device is set to be 127.0.0.1:proxy port.
In this embodiment, the ue is configured to send the monitoring device access request to the proxy port through a TCP link, and the communication link between the web proxy server and the monitoring device is a websocket link, where websocket is an upgraded version of the http protocol, and is a protocol that starts to provide by HTML5 and performs full duplex communication on a single TCP connection.
Fig. 3 is a schematic diagram of a process of accessing a monitoring device by using the remote access method of the present invention. In this embodiment, the step S400: the web proxy service module receives a monitoring device access request from the user terminal and sends access data in the monitoring device access request to the accessed monitoring device, and the method comprises the following steps:
a proxy port of the webpage proxy service module receives a monitoring equipment access request from the user terminal;
and the webpage proxy service module sends the access data to the corresponding monitoring equipment through the communication link according to the corresponding relation between the proxy port receiving the access request of the monitoring equipment and the monitoring equipment.
In this embodiment, sending access data to the corresponding monitoring device via the communication link comprises the steps of:
the webpage proxy service module allocates a link number according to the received monitoring equipment access request;
the webpage proxy service module sends the access data and the link number to the monitoring equipment through one message in the communication link.
The web proxy service module distributes a unique link number to each tcp link (http protocol is based on tcp) accepted by the proxy port, and the link numbers and the tcp links are in one-to-one correspondence. And then all data received on the link are packed together with the link number and are sent to the equipment end through one message in the websocket link.
And the monitoring equipment proxy end is configured to send the access data to the equipment network port when receiving the access data and the link number, and send response data returned by the equipment network port and the link number to the webpage proxy service module.
After the monitoring equipment proxy receives the websocket message, analyzing the link number and the data, establishing a tcp connection (if the link number has a corresponding tcp connection) connected to the equipment network port (http port) for the link number, and sending the data to the tcp connection. And then the monitoring equipment proxy end packages all response data (namely http response of the equipment network port) received on the tcp connection with a link number and sends the packaged response data to the webpage proxy service module through a websocket link.
In the step S500, the web proxy service module obtains response data from the accessed monitoring device and sends the response data to the user terminal, and the method includes the following steps:
the webpage proxy service module receives response data and a corresponding link number sent by the monitoring equipment through the communication link;
and the webpage proxy service module sends the response data to the corresponding user terminal according to the received link number. After receiving the message from the websocket link, the webpage proxy service module analyzes the link number and the data, finds the corresponding tcp connection according to the link number, and sends the data to the tcp connection.
In the application process, if any party between the monitoring equipment and the webpage proxy service module detects tcp broken link, the link number and 0 byte data are packaged and sent to the opposite terminal, and then all resources (including tcp link resources) related to the link number are cleaned. After receiving the data of 0 bytes, the opposite end cleans up all resources (including tcp connection resources) related to the corresponding link number.
In this embodiment, as shown in fig. 2, the acquisition of the listening data may also be implemented between the web proxy service module and the monitoring device. Listening to data refers to real-time acquisition of video streams, image data, audio data or other types of real-time acquisition data that are monitored from the monitoring device in real-time in view of the multimedia application of the monitoring device, such as video acquisition, image acquisition, etc.
In this embodiment, after the communication link is established between the web proxy service module and the monitoring device, the method further includes establishing a listening data channel between the web proxy service module and the monitoring device. The monitoring device may also have different implementations of accessing and acquiring the listening data. When the monitoring device accesses, the user side page jumps, expansion needs to be performed on url, and when url is carried? userdata=pdns, and the user side page script can know the walk proxy mode at this time, if the listening data channel needs to be obtained through an additional http request. Only one tcp link (through websocket protocol) exists between the monitoring equipment proxy end and the webpage proxy service module, and the link simultaneously gives consideration to http requests and monitoring data requests. Specifically, the method comprises the following steps:
the webpage proxy service module sends a data monitoring request to the monitoring equipment through the communication link, and a monitoring data channel is established between the webpage proxy service module and the monitoring equipment;
and the webpage proxy service module sends the monitoring data to the user side when receiving the monitoring data from the monitoring equipment through the data monitoring port.
The above channels for sending the access request and the response data are proxy channels between the web proxy service module and the monitoring device, and the message channels and the proxy channels may adopt different channel numbers. The message channel and the proxy channel can adopt the same websocket link, and the monitoring equipment proxy end of the monitoring equipment can judge whether to be a standard http request message or monitor a data message through the channel number of the received data.
As shown in fig. 5, an embodiment of the present invention further provides a remote access system of a monitoring device, where the system is disposed at a cloud service end and is applied to a remote access method of the monitoring device, and the system includes:
the domain name service module M100 is used for recording the association relation between the monitoring equipment and the webpage proxy service module;
the user login service module M200 is configured to receive a monitoring device access request sent by a user side, query information of a web proxy service module corresponding to the accessed monitoring device from a domain name service module, establish a communication link with the accessed monitoring device, send the information of the web proxy service module to the user side, and redirect the monitoring device access request to the corresponding web proxy service module;
the web proxy service module M300 is configured to receive a monitoring device access request from the user side, send access data in the monitoring device access request to an accessed monitoring device, and obtain response data from the accessed monitoring device and send the response data to the user side.
In the remote access system of the monitoring equipment, the user login management module and the domain name service module provide the query service of the webpage proxy service module based on the monitoring equipment, so that when a user needs to access the monitoring equipment through a user side, the information of the webpage proxy service module can be conveniently acquired, and when the webpage proxy service module receives the access request of the monitoring equipment of the user side, the webpage proxy service module can provide access proxy service between the user side and the monitoring equipment, thereby the user side can conveniently and remotely access the monitoring equipment without being limited by a network and obtain response data.
The domain name service module M100, the user login service module M200 and the web proxy service module M300 of the present invention may be provided on the same server, or may be provided on different servers, respectively. The domain name service module M100 adopts a domain name server supporting a mysql database, where mysql records domain name information of the monitoring device, and the information to be recorded is as follows:
Figure BDA0002994797450000101
Figure BDA0002994797450000111
wherein, part of the fields are explained as follows:
query: the equipment SN code is unique in the whole network, and the index value of the equipment information is inquired.
Proxyip, proxyport: the web proxy service module (dnsproxy) provides a free port for the domain name service module, and the web proxy service module and the domain name service module can be in one-to-one or in many-to-one relation, so that proxyip is not necessarily the web proxy service module address. If the number of accesses is small, the domain name service module and the web proxy service module can be provided with one server. When the number of access devices is increased, a plurality of servers corresponding to the web proxy service modules can be arranged, and all servers corresponding to the domain name service modules are managed. The user may access the mapped monitoring device by accessing this ip and port.
websocket port: proxy server access port (for monitor equipment access)
proxywebsocketport: the monitoring device monitors the service port, and a single http port does not necessarily meet the requirements in consideration of multimedia applications of the monitoring device, such as image transmission, real-time data (e.g. intelligent data reporting, etc.), so a websocket port is extended for multimedia applications of the monitoring device and a user terminal, the port is mapped by DNSProxy, the user accesses an ip+websocket port of a webpage proxy service module, only one data connection exists between the webpage proxy service module and the monitoring device, and the link can distinguish the http application or the websocket application through a channel number.
devicename, devicetype, version: the monitoring device reports the device information to the domain name service module, and the domain name service module only records. The data is provided to the user login service module for use.
The embodiment of the invention also provides remote access equipment of the monitoring equipment, which comprises a processor; a memory having stored therein executable instructions of the processor; wherein the processor is configured to perform the steps of the remote access method of the monitoring device via execution of the executable instructions.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is in the form of a general purpose computing device. Components of electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different system components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the electronic prescription stream processing method section above in this specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The memory unit 620 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 6201 and/or cache memory unit 6202, and may further include Read Only Memory (ROM) 6203.
The storage unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 630 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 600, and/or any device (e.g., router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 650. Also, electronic device 600 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 over the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 600, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
By adopting the remote access device of the monitoring device, the processor executes the remote access method of the monitoring device when executing the executable instruction, so that the beneficial effects of the remote access method of the monitoring device can be obtained.
The embodiment of the invention also provides a computer readable storage medium for storing a program which, when executed by a processor, implements the steps of the remote access method of the monitoring device. In some possible embodiments, the aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the electronic prescription stream processing method section of this specification, when said program product is run on the terminal device.
Referring to fig. 7, a program product 800 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or cluster. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
By adopting the computer readable storage medium provided by the invention, the program stored therein realizes the steps of the remote access method of the monitoring device when being executed, thereby obtaining the beneficial effects of the remote access method of the monitoring device.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (10)

1. The remote access method of the monitoring equipment is characterized in that a webpage proxy service module is deployed on a cloud server, and the method comprises the following steps:
the user login service module receives a monitoring equipment access request sent by a user;
the user login service module inquires information of a webpage proxy service module pre-bound with accessed monitoring equipment from a domain name service module, a communication link is pre-established between the webpage proxy service module and the accessed monitoring equipment, and the monitoring equipment comprises a monitoring equipment proxy end and an equipment network port;
the user login service module sends the information of the webpage proxy service module to the user side, and the user side is configured to redirect the access request of the monitoring equipment to the corresponding webpage proxy service module;
the webpage proxy service module receives a monitoring equipment access request sent through a tcp link from the user terminal, distributes a link number according to the received monitoring equipment access request, sends access data in the monitoring equipment access request and the link number to the monitoring equipment proxy terminal of the accessed monitoring equipment through one message in the communication link, and sends the access data to the equipment network port through the tcp link;
the webpage proxy service module receives response data and a corresponding link number sent by the monitoring equipment through the communication link, acquires the response data from the accessed monitoring equipment and sends the response data to the user terminal according to the received link number;
the method further comprises the steps of:
and if the monitoring equipment or the webpage proxy service module detects that the tcp link is broken, packaging and transmitting the link number and 0 byte data to the webpage proxy service module or the monitoring equipment, and cleaning all resources related to the link number, wherein the webpage proxy service module or the monitoring equipment cleans all resources related to the link number when receiving the link number and the 0 byte data.
2. The method of remote access of a monitoring device of claim 1, further comprising establishing a communication link between the monitoring device and a web proxy service module by:
the domain name service module receives a first registration request of the monitoring equipment;
the domain name service module records the association relation between the monitoring equipment and the webpage proxy service module and sends the information of the corresponding webpage proxy service module to the monitoring equipment;
the webpage proxy service module receives a second registration request of the monitoring equipment;
and a communication link is established between the webpage proxy service module and the monitoring equipment.
3. The remote access method of a monitoring device according to claim 2, wherein the user login service module sends information of the corresponding web proxy service module to the monitoring device, and the user login service module sends an address and a proxy port number of the corresponding web proxy service module to the monitoring device, and the web proxy service module sets a proxy address of the monitoring device according to the address and the proxy port number of the web proxy service module.
4. A method for remote access of a monitoring device according to claim 3, wherein the web proxy service module receives a monitoring device access request from the user, and transmits access data in the monitoring device access request to the accessed monitoring device, comprising the steps of:
a proxy port of the webpage proxy service module receives a monitoring equipment access request from the user terminal;
and the webpage proxy service module sends the access data to the corresponding monitoring equipment through the communication link according to the corresponding relation between the proxy port receiving the access request of the monitoring equipment and the monitoring equipment.
5. The method for remote access of a monitoring device according to claim 4, wherein the communication link between the web proxy server and the monitoring device is a websocket link.
6. The remote access method of a monitoring device according to claim 4, wherein the monitoring device proxy is further configured to send response data returned by the device network port and the link number to the web proxy service module.
7. A method for remote access to a monitoring device according to claim 3, further comprising the steps of, after establishing a communication link between the web proxy service module and the monitoring device:
the webpage proxy service module sends a data monitoring request to the monitoring equipment through the communication link;
and the webpage proxy service module sends the monitoring data to the user side when receiving the monitoring data from the monitoring equipment through the data monitoring port.
8. A remote access system of a monitoring device, characterized in that it is applied to the remote access method of a monitoring device according to any one of claims 1 to 7, said system comprising:
the domain name service module is used for recording the association relation between the monitoring equipment and the webpage proxy service module;
the system comprises a user login service module, a domain name service module, a monitoring equipment access module and a user terminal, wherein the user login service module is used for receiving a monitoring equipment access request sent by the user terminal, inquiring information of a webpage proxy service module corresponding to accessed monitoring equipment from the domain name service module, establishing a communication link between the webpage proxy service module and the accessed monitoring equipment, and sending the information of the webpage proxy service module to the user terminal, and the user terminal is configured to redirect the monitoring equipment access request to the corresponding webpage proxy service module;
the webpage proxy service module is used for receiving a monitoring equipment access request from the user terminal, sending access data in the monitoring equipment access request to the accessed monitoring equipment, acquiring response data from the accessed monitoring equipment and sending the response data to the user terminal.
9. A remote access device for a monitoring device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the remote access method of the monitoring device of any of claims 1 to 7 via execution of the executable instructions.
10. A computer-readable storage medium storing a program, characterized in that the program when executed by a processor implements the steps of the remote access method of a monitoring device according to any one of claims 1 to 7.
CN202110326334.8A 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment Active CN112995197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110326334.8A CN112995197B (en) 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110326334.8A CN112995197B (en) 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment

Publications (2)

Publication Number Publication Date
CN112995197A CN112995197A (en) 2021-06-18
CN112995197B true CN112995197B (en) 2023-05-02

Family

ID=76333864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110326334.8A Active CN112995197B (en) 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment

Country Status (1)

Country Link
CN (1) CN112995197B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473090B (en) * 2021-07-09 2022-05-03 苏州万店掌网络科技有限公司 Method, device and storage medium for remotely configuring IPC (inter-process control) parameters
CN114500527A (en) * 2021-12-27 2022-05-13 天翼云科技有限公司 Out-of-band management system and method for edge device
CN114286054B (en) * 2021-12-27 2023-10-27 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera
CN114938342A (en) * 2022-01-27 2022-08-23 浙江浩瀚能源科技有限公司 Automatic testing and monitoring method capable of remotely triggering local UI
CN115048267A (en) * 2022-06-20 2022-09-13 东土科技(宜昌)有限公司 Webpage service monitoring method, webpage service monitoring device, program running method, program running device, equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905568A (en) * 2013-04-22 2014-07-02 南通大学 Remote monitoring device capable of guaranteeing system stability and based on embedded Web
CN103220356B (en) * 2013-04-22 2014-07-23 南通大学 Remote monitoring device based on embedded web
CN103442224A (en) * 2013-09-09 2013-12-11 杭州巨峰科技有限公司 NAT penetration-based video monitoring access strategy and realization method
CN104506802B (en) * 2014-12-17 2018-06-05 浙江宇视科技有限公司 The method of video monitoring system, passing through NAT monitor video data

Also Published As

Publication number Publication date
CN112995197A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112995197B (en) Remote access method, system, equipment and storage medium of monitoring equipment
CN102292955B (en) Systems and methods for load balancing real time streaming protocol
EP1535445B1 (en) Remote dynamic configuration of a web server to provide capacity on demand
KR102260435B1 (en) Method and device for processing data
CN110489192B (en) Remote communication method and device and electronic equipment
US10084862B2 (en) Session control method and computer-readable storage medium storing computer program
WO2020040556A1 (en) Web browser-based scraping system and method
CN111726400A (en) Reverse connection method, device and server-side system
CN1631018B (en) Method and apparatus to retrieve information in a network
CN105610945A (en) Search traffic access localization processing method and device
WO2018182065A1 (en) Multi-resource subscription association method in m2m system
US10110646B2 (en) Non-intrusive proxy system and method for applications without proxy support
CN116684703A (en) Streaming media data transmission method and related equipment based on proximity service communication protocol
CN114553778B (en) Heartbeat control method and device, storage medium and electronic equipment
JP4341071B2 (en) Application time-out time adjusting system and method, server apparatus and program thereof
CN113079055B (en) AGV operation data dynamic acquisition method and device
CN111953718A (en) Page debugging method and device
US9992260B1 (en) Configuration change processing for content request handling in content delivery node
US8250236B2 (en) Method and apparatus for translating a web services address
KR101834637B1 (en) System and method for providing internet of things service to support private networks
JP2021100233A (en) Gateway device with built-in server module and communication system
CN113852666B (en) Method for acquiring HTTP (hyper text transport protocol) resources in real time through FTP (File transfer protocol)
CN114500487B (en) End-to-end hypertext transfer protocol conversion method
CN113542412B (en) Data transmission method, device, electronic equipment and storage medium
US11973843B2 (en) On demand end user monitoring for automated help desk support

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant