CN112491970B - Remote debugging end deployment method based on virtual network link - Google Patents

Remote debugging end deployment method based on virtual network link Download PDF

Info

Publication number
CN112491970B
CN112491970B CN202011238064.7A CN202011238064A CN112491970B CN 112491970 B CN112491970 B CN 112491970B CN 202011238064 A CN202011238064 A CN 202011238064A CN 112491970 B CN112491970 B CN 112491970B
Authority
CN
China
Prior art keywords
client
remote debugging
remote
transfer server
debugging
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
CN202011238064.7A
Other languages
Chinese (zh)
Other versions
CN112491970A (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.)
Shandong Cnnho Co ltd
Original Assignee
Shandong Cnnho 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 Shandong Cnnho Co ltd filed Critical Shandong Cnnho Co ltd
Priority to CN202011238064.7A priority Critical patent/CN112491970B/en
Publication of CN112491970A publication Critical patent/CN112491970A/en
Application granted granted Critical
Publication of CN112491970B publication Critical patent/CN112491970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • 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/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Abstract

The invention provides a remote debugging end deployment method based on a virtual network link, which comprises the following steps: directly setting a transfer server at a client and a remote debugging end, installing a preset transfer program on the transfer server, and opening and monitoring a TCP port; respectively deploying preset components for connecting a transfer server at a remote debugging end and a client end; establishing a connecting channel between a remote debugging end and a transfer server; and establishing a virtual link between a remote debugging end and the client by using the transfer server, and performing remote debugging. The invention uses the mode of the transfer server, the client and the remote debugging end actively establish TCP connection with the transfer server, and the virtual link of the network layer is opened, so that the remote debugging of the client is realized.

Description

Remote debugging end deployment method based on virtual network link
Technical Field
The invention relates to the technical field of computers, in particular to a remote debugging end deployment method based on a virtual network link.
Background
After a client software product based on a terminal is on line, if some problems occur, the existing debugging means generally finds the problems and solves the problems by recording logs and uploading the logs. However, the existing debugging deployment method has the following defects:
1. when a remote control tool such as a teamviewer is used, a terminal user needs to be disturbed to open the remote control tool in a matched mode, only some common desktop systems are supported, and the android system cannot support the remote control tool.
2. The log is uploaded regularly and actively in a log uploading mode, and if the preset log burying point does not contain the information needed by people, people can hardly find and solve the problem. And because the log mode lacks interaction, even if a problem is found, some customer environment information needed for the problem cannot be collected in real time unless the customer is debugged on site
3. The cost is too high when the device is debugged and maintained on the spot of a client.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method for deploying a remote debugging end based on a virtual network link, in which a transfer server is used, and both a client and the remote debugging end actively establish TCP connection with the transfer server to get through the virtual link of a network layer, thereby implementing remote debugging of the client.
In order to achieve the purpose, the invention is realized by the following technical scheme: a method for deploying remote debugging terminals based on virtual network links comprises the following steps:
s1: directly setting a transfer server at a client and a remote debugging end, installing a preset transfer program on the transfer server, and opening and monitoring a TCP port;
s2: respectively deploying preset components for connecting a transfer server at a remote debugging end and a client end;
s3: establishing a connecting channel between a remote debugging end and a transfer server;
s4: and establishing a virtual link between a remote debugging end and the client by using the transfer server, and performing remote debugging.
Further, the TCP port includes:
the first port is used for establishing TCP connection with the client to get through a data channel from the client to the server, and a private encryption protocol is adopted for data transmission between the transit server and the client;
the second port is used for establishing a general http proxy connection and establishing a data channel with a remote debugging end;
and the third port is used for establishing proxy connection for general sockets 5 and establishing a data channel with the remote debugging end.
Further, the step S3 is specifically:
the remote debugging end uses a general http and socks5 proxy program to connect the transit server, or connects the transit server by configuring socks5 or http on a preset debugging tool.
Further, the step S4 includes:
s41: a management and control system of a client sends a remote debugging command to the client;
s42: after receiving a remote debugging command issued by a server, a client connects a TCP port appointed by a transfer server, establishes a TCP connection and keeps the connection all the time through heartbeat;
s43: the remote debugging end locally starts the remote desktop service software while connecting with the transfer server, and waits for the connection with the client;
s44: the remote debugging end acquires a user name and a password of a virtual link connected with the client through the management and control system, directly uses a third party http or socks5 client forwarding program to be connected to the transfer server through the user name and the password, and gets through the virtual network link between the remote debugging end and the client;
s45: configuring remote desktop service software at a client, and establishing a forwarding mapping from a client port to a monitoring port of a remote debugging terminal;
s46: and directly connecting a monitoring port by using remote desktop service software at a remote debugging end, connecting the monitoring port to a mapped client port through a transfer server, and starting debugging.
Further, the step S46 is followed by:
s47: and after debugging is completed, issuing a remote debugging closing command through the control platform.
Further, the step S47 is followed by:
s48: and after receiving the remote debugging closing command, the client closes the TCP connection with the remote transfer server and closes the corresponding service process related to debugging.
Further, the remote debug command comprises: username, password, and transit server address.
Further, the remote desktop service software includes: android debug bridge or SSH component.
Android Debug Bridge (Android Debug Bridge) tools. It is a command line window for interaction with a simulator or device via the computer side. The SSH component (Secure Shell) is a general, powerful, software-based network security solution. Is currently a more reliable protocol that is dedicated to providing security for telnet sessions and other network services. The SSH protocol can effectively prevent the problem of information leakage in the remote management process. All transmitted data can be encrypted through SSH, and DNS spoofing and IP spoofing can also be prevented.
Compared with the prior art, the invention has the beneficial effects that:
1. the invention does not need to develop target embedded points needing to be debugged aiming at the product service orientation, directly utilizes the debugging and management functions of the system or the debugging and management functions of a third-party program, can collect and obtain more real-time environment information of the equipment system needing to be debugged, and debugs in an interactive mode.
2. Compared with an internally integrated virtual network link connection program and a common intranet penetration tool, the method and the system support multi-user connection and management, and can more conveniently enable third-party software to be accessed into the virtual network link for assisting debugging by using a universal proxy protocol.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a system configuration diagram of the virtual link of the present invention.
Detailed Description
The following description of the embodiments of the present invention refers to the accompanying drawings.
The first embodiment is as follows:
as shown in fig. 1, a method for deploying a remote debugging terminal based on a virtual network link includes the following steps:
step 1: and directly setting a transfer server at the client and the remote debugging end, installing a preset transfer program on the transfer server, and opening and monitoring a TCP port.
And 2, step: and respectively deploying preset components for connecting the transit server at the remote debugging end and the client.
And 3, step 3: and establishing a connecting channel between the remote debugging end and the transfer server.
The remote debugging end uses a general http and socks5 proxy program to connect the transit server, or connects the transit server by configuring socks5 or http on a preset debugging tool.
And 4, step 4: and the management and control system of the client sends a remote debugging command to the client.
And 5: after receiving the remote debugging command issued by the server, the client connects with the TCP port appointed by the transit server, establishes a TCP connection, and keeps the connection through heartbeat all the time.
And 6: and when the remote debugging end is connected with the transfer server, the remote desktop service software is started locally to wait for connection with the client.
And 7: the remote debugging end acquires a user name and a password of a virtual link connected with the client through the management and control system, directly uses a third party http or socks5 client forwarding program to be connected with the transfer server through the user name and the password, and gets through the virtual network link between the remote debugging end and the client.
And 8: and configuring remote desktop service software at the client, and establishing a forwarding mapping from a client port to a monitoring port of a remote debugging terminal.
And step 9: and directly connecting a monitoring port at a remote debugging end by using remote desktop service software, connecting the monitoring port to a mapped client port through a transfer server, and starting debugging.
Step 10: and after debugging is completed, issuing a remote debugging closing command through the control platform.
Step 11: and after receiving the remote debugging closing command, the client closes the TCP connection with the remote transfer server and closes the corresponding service process related to debugging.
Wherein, the remote debugging command comprises: username, password, and transit server address. The remote desktop service software comprises: android debug bridge or SSH component.
Example two:
the embodiment provides a remote debugging end deployment method based on a virtual network link, which comprises the following steps:
and deploying a virtual link system between the client and the remote debugging terminal through the transit server, then completing the connection of the virtual link, and performing remote debugging. The method comprises the following specific steps:
firstly, virtual link system deployment:
1. the transfer server installs a forwarding program and openly monitors three TCP ports, one port is used for establishing TCP connection with the client to open a data channel from the client to the server, a private encryption protocol is adopted for data transmission, and the other two ports are respectively established as proxies of general http and socks5 and used for establishing a data channel with a remote debugging end.
2. The client integrates the module connected with the transit server in the software and deploys the module to the client together when the software is deployed.
3. The off-site debugging end uses a general http and socks5 proxy program to connect the transit server, or directly configures socks5 or http on a debugging tool to connect the transit server.
II, virtual link connection flow:
1. the client management and control system issues a remote debugging command to the client, the issued remote debugging command comprises a user name, a password and a transit server address, and the user name and the password are used for distinguishing blind client devices (multiple devices may be debugged at the same time).
2. After receiving the issued remote debugging command, the client connects with a TCP port appointed by the transit server, establishes a TCP connection, and keeps the connection through heartbeat all the time.
3. When the remote debugging end is connected with the transit server, an ADB (android debug bridge) or SSH (secure Shell) component, remote desktop service and the like are opened locally to wait for connection to the client.
4. The remote debugging end obtains the user name and the password of the virtual link of the target debugging client through the control platform, and directly uses a third party http or socks5 client forwarding program to connect the obtained user name and the password to the transfer server, so that the remote debugging end and the virtual network link of the client are connected.
5. And configuring forwarding mapping from the client port of the ADB, SSH or remote desktop to the monitoring port of the remote debugging end through third-party http or socks 5.
6. The remote debugging end of ADB, SSH or remote desktop is directly connected with the port of local mapping and is connected with the responding service port of the client through the transfer server, so that the aim of using a virtual network link to penetrate through the intranet of the client and connect with the target client for debugging is fulfilled.
7. And after debugging is finished, issuing a remote debugging closing command through the client management and control platform.
8. And after receiving the remote debugging closing command, the client closes the TCP connection with the remote transfer server and closes the corresponding service process related to debugging.
Therefore, the deployment and debugging of the remote debugging end are completed, and a system structure of the virtual link is provided in the virtual link connection process, as shown in fig. 2.
The invention is further described with reference to the accompanying drawings and specific embodiments. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the present application.

Claims (7)

1. A method for deploying a remote debugging end based on a virtual network link is characterized by comprising the following steps:
s1: directly setting a transfer server at a client and a remote debugging end, installing a preset transfer program on the transfer server, and opening and monitoring a TCP port;
s2: respectively deploying preset components for connecting a transfer server at a remote debugging end and a client end;
s3: establishing a connecting channel between a remote debugging end and a transfer server;
s4: establishing a virtual link between a remote debugging end and a client by using a transfer server, and performing remote debugging;
the step S4 includes:
s41: a management and control system of a client sends a remote debugging command to the client;
s42: after receiving a remote debugging command issued by a server, a client connects a TCP port appointed by a transfer server, establishes a TCP connection and keeps the connection all the time through heartbeat;
s43: the remote debugging end locally starts the remote desktop service software while connecting with the transfer server, and waits for the connection with the client;
s44: the remote debugging end acquires a user name and a password of a virtual link connected with the client through the management and control system, directly uses a third party http or socks5 client forwarding program to be connected to the transfer server through the user name and the password, and gets through the virtual network link between the remote debugging end and the client;
s45: configuring remote desktop service software at a client, and establishing a forwarding mapping from a client port to a monitoring port of a remote debugging terminal;
s46: and directly connecting a monitoring port by using remote desktop service software at a remote debugging end, connecting the monitoring port to a mapped client port through a transfer server, and starting debugging.
2. The method for offsite commissioning end deployment based on virtual network link of claim 1, wherein: the TCP port includes:
the first port is used for establishing TCP connection with the client to open a data channel from the client to the server, and a private encryption protocol is adopted for data transmission between the transit server and the client;
the second port is used for establishing a general http proxy connection and establishing a data channel with a remote debugging end;
and the third port is used for establishing proxy connection for general sockets 5 and establishing a data channel with a remote debugging end.
3. The method for ex-situ deployment of virtual network links as claimed in claim 1, wherein said step S3 comprises:
the remote debugging end uses a general http and socks5 proxy program to connect the transit server, or connects the transit server by configuring socks5 or http on a preset debugging tool.
4. The method for deploying off-site debug end based on virtual network link according to claim 1, wherein said step S46 is followed by further comprising:
s47: and after debugging is completed, issuing a remote debugging closing command through the control platform.
5. The method for deploying off-site debug end based on virtual network link according to claim 4, wherein said step S47 is followed by further comprising:
s48: and after receiving the remote debugging closing command, the client closes the TCP connection with the remote transfer server and closes the corresponding service process related to debugging.
6. The method of claim 1, wherein the remote debug command comprises: username, password, and transit server address.
7. The method of claim 1, wherein the remote desktop service software comprises: android debug bridge or SSH component.
CN202011238064.7A 2020-11-09 2020-11-09 Remote debugging end deployment method based on virtual network link Active CN112491970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011238064.7A CN112491970B (en) 2020-11-09 2020-11-09 Remote debugging end deployment method based on virtual network link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011238064.7A CN112491970B (en) 2020-11-09 2020-11-09 Remote debugging end deployment method based on virtual network link

Publications (2)

Publication Number Publication Date
CN112491970A CN112491970A (en) 2021-03-12
CN112491970B true CN112491970B (en) 2022-06-21

Family

ID=74928892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011238064.7A Active CN112491970B (en) 2020-11-09 2020-11-09 Remote debugging end deployment method based on virtual network link

Country Status (1)

Country Link
CN (1) CN112491970B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916663A (en) * 2014-03-25 2014-07-09 烽火通信科技股份有限公司 Method for realizing remote debugging of IPTV set top box
CN107026764A (en) * 2016-02-02 2017-08-08 腾讯科技(深圳)有限公司 A kind of remote debugging method, equipment, server and system
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server
CN107528892A (en) * 2017-08-08 2017-12-29 深圳创维数字技术有限公司 A kind of remote debugging method, server end and set top box
CN107590036A (en) * 2017-08-11 2018-01-16 北京奇虎科技有限公司 Remote debugging method, server and the system of Android device
CN107995019A (en) * 2016-10-27 2018-05-04 南京南瑞继保电气有限公司 Network equipment method and system are safeguarded in a kind of remote debugging based on virtual linkage
CN108712301A (en) * 2018-04-03 2018-10-26 四川斐讯信息技术有限公司 A kind of adjustment method and debugging system of terminal device
CN111866083A (en) * 2020-06-23 2020-10-30 北京三快在线科技有限公司 Equipment debugging system and method, equipment to be debugged, remote debugging equipment and transfer server
CN111865710A (en) * 2020-06-18 2020-10-30 王晓 Remote equipment debugging system based on public network environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447738B (en) * 2011-11-17 2015-08-05 大唐移动通信设备有限公司 A kind of method and device realizing base station remote debugging
CN103856361B (en) * 2012-11-29 2017-10-10 腾讯科技(深圳)有限公司 Realize the method and system of remote debugging
CN106357773A (en) * 2016-09-19 2017-01-25 杭州当虹科技有限公司 Remote assist system based on SSHv2 protocol

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916663A (en) * 2014-03-25 2014-07-09 烽火通信科技股份有限公司 Method for realizing remote debugging of IPTV set top box
CN107026764A (en) * 2016-02-02 2017-08-08 腾讯科技(深圳)有限公司 A kind of remote debugging method, equipment, server and system
CN107995019A (en) * 2016-10-27 2018-05-04 南京南瑞继保电气有限公司 Network equipment method and system are safeguarded in a kind of remote debugging based on virtual linkage
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server
CN107528892A (en) * 2017-08-08 2017-12-29 深圳创维数字技术有限公司 A kind of remote debugging method, server end and set top box
CN107590036A (en) * 2017-08-11 2018-01-16 北京奇虎科技有限公司 Remote debugging method, server and the system of Android device
CN108712301A (en) * 2018-04-03 2018-10-26 四川斐讯信息技术有限公司 A kind of adjustment method and debugging system of terminal device
CN111865710A (en) * 2020-06-18 2020-10-30 王晓 Remote equipment debugging system based on public network environment
CN111866083A (en) * 2020-06-23 2020-10-30 北京三快在线科技有限公司 Equipment debugging system and method, equipment to be debugged, remote debugging equipment and transfer server

Also Published As

Publication number Publication date
CN112491970A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN102035904B (en) Method for converting TCP network communication server into client
CN104243210A (en) Method and system for remotely having access to administrative web pages of routers
CN108965256A (en) A kind of system and method remotely managing embedded device based on SSH reverse tunnel
US20020111999A1 (en) System and method for remote control of software and an attached device
CN111526061B (en) Monitoring flow scheduling system and method for network target range actual combat drilling scene
CN103179104B (en) A kind of access method of remote service, system and equipment thereof
CN110661858A (en) Websocket-based intranet penetration method and system
CN112104476B (en) Method and system for automatic intelligent configuration of wide area network networking
CN1980232A (en) Telnet session maitenance method, telnet proxy and computer network system
CN103384246B (en) Safety supervision system login assistant method
CN106936935A (en) A kind of long-range control method and device
CN112491970B (en) Remote debugging end deployment method based on virtual network link
US8972543B1 (en) Managing clients utilizing reverse transactions
CN112688800B (en) Remote maintenance method and system for intelligent power grid intelligent equipment based on script technology
CN111756855B (en) Remote control system, method, medium and computing device
TW200304741A (en) Apparatus and method for managing cable modem based on Web
CN111885203A (en) Method for remote management based on CMSP
CN111341434A (en) Remote fault diagnosis and maintenance system for medical equipment and construction method thereof
CN105791005A (en) Transmission control protocol (TCP) connection based method and apparatus for implementing remote operation and maintenance management
CN106909505B (en) Remote testing method and device for java-based server operating system
CN110430157B (en) System and method for remotely operating and maintaining speed regulator of water turbine
CN105808418B (en) Test machine register method, apparatus and system
Cisco Cisco Content Transformation Engine 1400 Configuration Note
CN114374454A (en) SSH-based remote maintenance method, device and medium for emergency broadcasting device
CN109218064A (en) network management system and management method

Legal Events

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

Effective date of registration: 20230704

Granted publication date: 20220621