Communication connection establishment method, device and equipment of articulated naturality web remote desktop and medium
By configuring virtual network cards and virtual network card service programs on the RDP client and server, the data flow transmission is optimized, the lag and delay problems of VVSOCK in processing big data are solved, and the speed of remote control and user experience are improved.
Patent Information
- Application Number
- CN202410786783.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-01
AI Technical Summary
The VVSOCK of the Visual Internet Remote Desktop has a long usage time and slow speed when processing big data transmission and reception, resulting in data transmission lag, delay, and freeze, which reduces the transmission speed and sensitivity of remote control and results in poor user experience.
Configure the virtual network card and virtual network card service program on the RDP client and server. Use the virtual network card service program to encapsulate and decapsulate the IP data of the request connection packet, establish a TCP communication connection, optimize the data stream transmission process, and reduce multiple deep copies.
It improves the data transmission speed and efficiency, solves the problems of lagging and untimely operation response, and improves the transmission speed and user experience of remote control.
Smart Images

Figure CN118740901A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual networking technology, and in particular to a method, device, electronic device and computer-readable storage medium for establishing a communication connection for a visual networking remote desktop. Background Art
[0002] The Remote Desktop Protocol (RDP) is a proprietary protocol developed by Microsoft. It provides users with a graphical interface for connecting to another computer over a network and can be used in most Windows operating systems. The RDP protocol is widely used in remote desktops. However, it is greatly affected by network fluctuations, resulting in freezes and untimely operation responses. Therefore, its application is limited to remote connections within a local area network.
[0003] In the related technology, the Visual Network Remote Desktop RDP client uses a virtual socket (VVSOCK) to perform Transmission Control Protocol (TCP) data encapsulation and detection, control the size of data packets, control the protocol type, establish a connection with the RDP server, and implement remote desktop login and management, active negotiation and other operations. However, when using VVSOCK to process large data transmission and reception, there are long usage times and slow speeds, which cause data transmission lags, delays, freezes, etc., reducing the transmission speed and sensitivity of remote control, and also reducing the user experience. Summary of the invention
[0004] The present invention provides a method, device, electronic device and computer-readable storage medium for establishing a communication connection of a visual network remote desktop, so as to at least solve the problem in the related art that the VVSOCK of the visual network remote desktop has a long usage time and a slow speed when processing large data transmission and reception, resulting in data transmission lag, delay, jamming and untimely operation response. The technical solution of the present invention is as follows:
[0005] According to a first aspect of an embodiment of the present invention, a method for establishing a communication connection of a visual network remote desktop is provided, the method being applied to a remote desktop protocol RDP client, the RDP client being configured with a virtual network card and a virtual network card service program, the method comprising:
[0006] The virtual network card service program monitors the connection request packet sent by the RDP client through the virtual network card;
[0007] The virtual network card service program performs IP data encapsulation on the connection request packet;
[0008] The virtual network card service program sends the encapsulated request connection packet to the RDP server through the visual network, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet.
[0009] Optionally, before the virtual network card service program obtains the connection request packet sent by the RDP client through the virtual network card, the method further includes:
[0010] In response to the start of the virtual network card service program of the RDP client, obtaining the video network number for the RDP client to access the video network;
[0011] Create a virtual network card and set an IP address as the source IP address of the RDP client;
[0012] Convert the visual network number into a target IP address;
[0013] Bind the target IP address to the virtual network card.
[0014] Optionally, after the virtual network card service program sends the encapsulated connection request packet to the RDP server, the method further includes:
[0015] When the virtual network card service program monitors the confirmation information returned by the RDP server, the virtual network card service program decapsulates the confirmation information;
[0016] The virtual network card service program sends the decapsulated confirmation information to the virtual network card of the RDP client, so that the RDP client confirms the establishment of a transmission control protocol TCP communication connection with the RDP server after receiving the confirmation information.
[0017] According to a second aspect of an embodiment of the present invention, a method for establishing a communication connection of a visual network remote desktop is provided, the method being applied to a remote desktop protocol RDP server, the RDP server being configured with a virtual network card and a virtual network card service program, the method comprising:
[0018] The virtual network card service program obtains a connection request packet sent to the virtual network card;
[0019] The virtual network card service program extracts the connection data in the connection request packet;
[0020] The virtual network card service program sends the extracted connection data to the virtual network card;
[0021] The virtual network card service program obtains the confirmation information sent by the RDP server using the virtual network card based on the connection data, and performs IP data encapsulation on the confirmation information;
[0022] The virtual network card service program sends the encapsulated confirmation information to the virtual network card service program of the RDP client, so that the RDP client confirms the establishment of a transmission control protocol TCP communication connection with the RDP server based on the received confirmation information.
[0023] Optionally, the virtual network card service program extracts the connection data in the connection request packet, including:
[0024] The virtual network card service program decapsulates the received connection request packet;
[0025] The virtual network card service program extracts the connection data in the decapsulated connection request packet.
[0026] Optionally, before the virtual network card service program obtains the connection request packet sent by the RDP client through the virtual network card, the method further includes:
[0027] In response to the startup of the RDP server, starting a desktop sharing operation;
[0028] The virtual network card service program obtains the video network number;
[0029] Create a VVN0 virtual network card and set an IP address as the source IP address of the RDP server.
[0030] According to a third aspect of an embodiment of the present invention, a device for establishing a communication connection of a visual network remote desktop is provided, the device is applied to a remote desktop protocol RDP client, the RDP client is configured with a virtual network card and a virtual network card service program, the device comprises:
[0031] A monitoring module, used to monitor the connection request packet sent by the RDP client through the virtual network card using the virtual network card service program;
[0032] An encapsulation module, used for performing IP data encapsulation on the connection request packet by using the virtual network card service program;
[0033] The first sending module is used to use the virtual network card service program to send the encapsulated request connection packet to the RDP server, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet.
[0034] Optionally, the device further comprises:
[0035] An acquisition module, used for obtaining the visual network number for the RDP client to access the visual network in response to the start of the virtual network card service program of the RDP client before the monitoring module obtains the connection request packet sent by the RDP client through the virtual network card through the virtual network card service program;
[0036] A creation module is used to create a virtual network card and set an IP address as the source IP address of the RDP client;
[0037] A conversion module, used to convert the video network number into a target IP address;
[0038] A binding module is used to bind the target IP address to the virtual network card.
[0039] Optionally, the device further comprises:
[0040] A decapsulation module, configured to decapsulate data of the confirmation information returned by the RDP server after the sending module sends the encapsulated request connection packet to the RDP server by using the virtual network card service program, upon monitoring the confirmation information returned by the RDP server;
[0041] The second sending module is used to send the decapsulated confirmation information to the virtual network card of the RDP client by using the virtual network card service program, so that the RDP client confirms to establish a transmission control protocol TCP communication connection with the RDP server after receiving the confirmation information.
[0042] According to a fourth aspect of an embodiment of the present invention, a device for establishing a communication connection of a visual network remote desktop is provided, the device is applied to a remote desktop protocol RDP server, the RDP server is configured with a virtual network card and a virtual network card service program, and the device includes:
[0043] A first monitoring module is used to monitor, through the virtual network card service program, a connection request packet sent by the RDP client through the virtual network card;
[0044] An extraction module, used for extracting connection data in the connection request packet through the virtual network card service program;
[0045] A first sending module, used for sending the extracted connection data to the virtual network card of the RDP server through the virtual network card service program;
[0046] A second monitoring module is used to monitor, through the virtual network card service program, the confirmation information sent by the RDP server using the virtual network card based on the connection data;
[0047] An encapsulation module, used for performing IP data encapsulation on the confirmation information;
[0048] The second sending module is used to send the encapsulated confirmation information to the virtual network card service program of the RDP client through the virtual network card service program, so that the RDP client establishes a transmission control protocol TCP communication connection with the RDP server.
[0049] Optionally, the extraction module includes:
[0050] A decapsulation module, used for decapsulating the received connection request packet by using the virtual network card service program;
[0051] The second extraction module is used to use the virtual network card service program to extract the connection data in the decapsulated connection request packet.
[0052] Optionally, the device further comprises:
[0053] A sharing module, configured to start a desktop sharing operation in response to the start of the RDP server before the first monitoring module uses the virtual network card service program to obtain a connection request packet sent by the RDP client through the virtual network card;
[0054] An acquisition module, used to acquire a visual network number using the virtual network card service program;
[0055] A creation module is used to create a virtual network card and set an IP address as the source IP address of the RDP server.
[0056] According to a fifth aspect of an embodiment of the present invention, there is provided an electronic device, including:
[0057] processor;
[0058] a memory for storing instructions executable by the processor;
[0059] Wherein, the processor is configured to execute the instructions to implement the communication connection establishment method of the visual network remote desktop as described above.
[0060] According to the sixth aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for establishing a communication connection for a visual network remote desktop as described above.
[0061] According to a seventh aspect of an embodiment of the present invention, a computer program product is provided, comprising a computer program or instructions, which, when executed by a processor of an electronic device, implements the method for establishing a communication connection for a visual network remote desktop as described above.
[0062] The technical solution provided by the embodiments of the present invention brings at least the following beneficial effects:
[0063] In an embodiment of the present invention, the RDP client is configured with a virtual network card and a virtual network card service program. When the virtual network card service program of the RDP client monitors the request connection packet sent by the RDP client through the virtual network card, it performs IP data encapsulation on the request connection packet; and sends the encapsulated request connection packet to the RDP server through the visual network, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet. That is to say, in an embodiment of the present invention, by improving the RDP client structure, reducing the VVSOCK layer, adding a virtual network card and a virtual network card service program, and through the established TCP communication connection, multiple deep copies in the data stream transmission process are optimized, and the problems of freezes and untimely operation responses are solved, thereby improving the data transmission speed and efficiency.
[0064] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention, and do not constitute an improper limitation of the present invention. In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0066] Figure 1 The present invention provides a flowchart of a method for establishing a communication connection of a remote desktop in a visual network.
[0067] Figure 2 This is another flow chart of a method for establishing a communication connection for a visual network remote desktop provided by an embodiment of the present invention.
[0068] Figure 3 It is an application interaction flow chart of a method for establishing a communication connection for a visual network remote desktop provided by an embodiment of the present invention.
[0069] Figure 4 The present invention is a block diagram of a device for establishing a communication connection for a remote desktop in a visual network provided by an embodiment of the present invention.
[0070] Figure 5It is another block diagram of a communication connection establishment device for a visual network remote desktop provided by an embodiment of the present invention.
[0071] Figure 6 This is another block diagram of a communication connection establishment device for a visual network remote desktop provided by an embodiment of the present invention.
[0072] Figure 7 The present invention is a block diagram of an application example of a device for establishing a communication connection for a remote desktop in a visual network provided by an embodiment of the present invention.
[0073] Figure 8 It is a block diagram of an electronic device provided by an embodiment of the present invention.
[0074] Fig. 9 The present invention provides a block diagram of a device for establishing a communication connection for a remote desktop in a visual network. DETAILED DESCRIPTION
[0075] In order to enable ordinary persons in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.
[0076] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0077] Technical terms:
[0078] Visual Internet: is another underlying communication protocol different from the Internet.
[0079] Remote Desktop Protocol (RDP) is designed and built on the International Telecommunication Union T.share protocol (T.128). It is a network protocol for remote access and control of computers. It allows users to connect to a remote computer through a network and operate the remote computer through a desktop interface on a local computer. Since the RDP protocol is based on the Transmission Control Protocol / Internet Protocol (TCP / IP), it cannot usually be transmitted in a video network.
[0080] In conjunction with the above technical terms, please refer to the following embodiments of the present invention.
[0081] See also Figure 1 , is a flow chart of a method for establishing a communication connection of a visual network remote desktop provided by an embodiment of the present invention, such as Figure 1 As shown, the method is applied to a remote desktop protocol RDP client, and the RDP client is configured with a virtual network card (such as VVNO, etc.) and a virtual network card service program (such as VVNETCARD service program or virtual network card service driver, etc.), and the method includes the following steps:
[0082] Step 101: The virtual network card service program monitors a connection request packet sent by the RDP client through the virtual network card.
[0083] Step 102: The virtual network card service program performs IP data encapsulation on the connection request packet.
[0084] Step 103: The virtual network card service program sends the encapsulated connection request packet to the RDP server, so that the RDP server establishes a Transmission Control Protocol TCP communication connection with the RDP client based on the connection request packet.
[0085] The method for establishing a communication connection for a visual network remote desktop described in the present invention can be applied to terminals, servers, etc., without limitation herein. The terminal implementation device can be an electronic device such as a smart phone, a laptop computer, a tablet computer, a desktop computer, a personal digital assistant (PDA) and a wearable device or an RDP client. The server can be an independent server or a server cluster, or a server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, intermediate services, domain name services, security services, content distribution networks, or a big data and artificial intelligence platform or an RDP server, etc., without limitation herein.
[0086] Combine the following Figure 1 , the specific implementation steps of a method for establishing a communication connection for a visual network remote desktop provided by an embodiment of the present invention are described in detail.
[0087] In step 101, the virtual network card service program monitors a connection request packet sent by the RDP client through the virtual network card.
[0088] In this step, when the RDP client needs to send data to the RDP server, it first initiates a connection request packet to establish a communication connection to the RDP server through the configured virtual network card. At this time, the RDP client detects the connection request packet sent by the RDP client through the virtual network card.
[0089] In step 102, the virtual network card service program performs IP data encapsulation on the connection request packet.
[0090] In this step, the virtual network card service program performs IP data encapsulation conversion on the monitored request connection packet, that is, converts the request connection packet encapsulation into IP data, so as to facilitate subsequent IP data verification and other operations. The specific encapsulation process is well known to those skilled in the art and will not be described in detail here.
[0091] In step 103, the virtual network card service program sends the encapsulated request connection packet to the RDP server through the visual network, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet.
[0092] In this step, the virtual network card service program of the RDP client sends the encapsulated request connection packet to the RDP server through the visual network, and the virtual network card service program of the RDP server, when monitoring the request connection packet sent by the virtual network card on the RDP server; extracts the connection data in the request connection packet; sends the extracted connection data to the virtual network card of the RDP server; when the virtual network card of the RDP server receives the connection data, it feeds back confirmation information to the RDP client, at this time, the virtual network card service program of the RDP server monitors the confirmation information sent by the virtual network card, and performs IP data encapsulation on the confirmation information; thereafter, the virtual network card service program of the RDP server sends the encapsulated confirmation information to the virtual network card service program of the RDP client, and when the virtual network card service program of the RDP client monitors the confirmation information returned by the RDP server, it decapsulates the confirmation information; sends the decapsulated confirmation information to the virtual network card of the RDP client, and completes the transmission control protocol TCP communication connection with the RDP server.
[0093] In an embodiment of the present invention, the RDP client is configured with a virtual network card and a virtual network card service program. When the virtual network card service program of the RDP client monitors the request connection packet sent by the RDP client through the virtual network card, it performs IP data encapsulation on the request connection packet; and sends the encapsulated request connection packet to the RDP server through the visual network, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet. That is to say, in an embodiment of the present invention, by improving the RDP client structure, reducing the VVSOCK layer, adding a virtual network card and a virtual network card service program, and through the established TCP communication connection, multiple deep copies in the data stream transmission process are optimized, and the problems of freezes and untimely operation responses are solved, thereby improving the data transmission speed and efficiency.
[0094] Optionally, in another embodiment, based on the above embodiment, before the virtual network card service program monitors the request connection packet sent by the RDP client through the virtual network card, the method may also include: in response to the startup of the virtual network card service program of the RDP client, obtaining the visual network number of the RDP client to access the visual network; creating a virtual network card and setting an IP address as the source IP address of the RDP client; converting the visual network number into a target IP address; and binding the target IP address to the virtual network card.
[0095] In this embodiment, the VVNETCARD service program of the RDP client is started, and an application is made to enter the visual network according to the configured MAC address to obtain the visual network number. After that, a virtual network card is created, such as a custom VVN0, etc., and an IPV6 address is set as the source IP address of the RDP client. After that, the visual network number of the RDP server is configured on the RDP client, that is, the RDP client program is started, and the visual network number of the RDP server is converted into a target ipv6 address. Finally, the target IP address is bound to the network port of the VVN0 network card to ensure that the data sent by the RDP client is sent from VVN0. It should be noted that the creation process of the virtual network card can be system-created when the RDP client is started, or it can be manually created. The specific creation process is already a well-known technology and will not be repeated here.
[0096] That is to say, in the embodiment of the present invention, by creating a virtual network card and binding the RDP client to the virtual network card, by setting the maximum transmission unit (MTU) and other parameters in the virtual network card, the size of the RDP data packet, TCP detection and other functions are met to solve the problem of limited visual network communication. Among them, MTU refers to the maximum data packet size (in bytes) that can pass through a certain layer of a communication protocol. The maximum transmission unit parameter is usually related to the communication interface (such as a network interface card, serial port, etc.).
[0097] Optionally, in another embodiment, based on the above embodiment, after the virtual network card service program sends the encapsulated request connection packet to the RDP server, the method may also include: when the virtual network card service program of the RDP client monitors the confirmation information returned by the RDP server, decapsulating the confirmation information; and sending the decapsulated confirmation information to the virtual network card of the RDP client to complete the transmission control protocol TCP communication connection with the RDP server.
[0098] See also Figure 2 , is a flow chart of a method for establishing a communication connection of a visual network remote desktop provided by an embodiment of the present invention, the method is applied to a remote desktop protocol RDP server, the RDP server is configured with a virtual network card and a virtual network card service program, the method includes:
[0099] Step 201: the virtual network card service program obtains a connection request packet sent to the virtual network card;
[0100] Step 202: The virtual network card service program extracts connection data in the connection request packet;
[0101] In this step, the virtual network card service program decapsulates the received connection request packet and extracts the connection data in the decapsulated connection request packet. In this embodiment, the process of decapsulating the connection request packet is a well-known technology for those skilled in the art and will not be described in detail here.
[0102] Step 203: the virtual network card service program sends the extracted connection data to the virtual network card of the RDP server;
[0103] Step 204: the virtual network card service program obtains the confirmation information sent by the RDP server using the virtual network card based on the connection data, and performs IP data encapsulation on the confirmation information;
[0104] Step 205: The virtual network card service program sends the encapsulated confirmation information to the virtual network card service program of the RDP client, so that the RDP client establishes a transmission control protocol TCP communication connection with the RDP server.
[0105] In an embodiment of the present invention, when the virtual network card service program of the RDP server obtains a connection request packet sent to the virtual network card on the RDP server, it extracts connection data in the connection request packet and sends the extracted connection data to the virtual network card of the RDP server. When the virtual network card of the RDP server receives the connection data, it feeds back confirmation information to the RDP client. At this time, the virtual network card service program of the RDP server monitors the confirmation information sent by the virtual network card and performs IP data encapsulation on the confirmation information. Afterwards, the virtual network card service program of the RDP server sends the encapsulated confirmation information to the virtual network card service program of the RDP client. When the virtual network card service program of the RDP client monitors the confirmation information returned by the RDP server, it decapsulates the confirmation information. It sends the decapsulated confirmation information to the virtual network card of the RDP client to complete the transmission control protocol TCP communication connection with the RDP server.
[0106] In an embodiment of the present invention, when a connection request packet sent by a virtual network card based on an improved RDP client is received, connection data of the connection request packet is extracted and sent to the virtual network card, and when confirmation information based on the connection data is obtained, the confirmation information is encapsulated in IP data and sent to the RDP client. After receiving the confirmation information, the RDP client establishes a TCP communication connection with the RDP server, thereby optimizing multiple deep copies during data stream transmission, solving problems such as freezes and untimely operation responses, and improving data transmission speed and efficiency.
[0107] Optionally, in another embodiment, based on the above embodiment, before the virtual network card service program obtains the request connection packet sent by the RDP client through the virtual network card, the method may also include: in response to the startup of the RDP server, starting the desktop sharing operation; the virtual network card service program obtains the visual network number; creates a VVN0 virtual network card and sets the IP address as the source IP address of the RDP server.
[0108] In this embodiment, the RDP server is started and the desktop sharing function is enabled. The VVNETCARD service program of the RDP server applies for access to the visual network according to the configured MAC address, obtains the visual network number, creates a virtual network card VVN0, and sets an IPV6 address as the source IP address of the RDP server.
[0109] The embodiment of the present invention starts the RDP server and enables the desktop sharing function so that the RDP client can establish a communication connection with the RDP server through the virtual network card service program, thereby improving the network transmission performance of the remote desktop connection and ensuring the smoothness of the remote desktop operation.
[0110] See also Figure 3 , is an application interaction flow chart of a method for establishing a communication connection for a visual network remote desktop provided in an embodiment of the present invention, wherein the method is applied to an RDP client and an RDP server, wherein the RDP client is configured with a corresponding first virtual network card (taking the first VVNO as an example) and a first virtual network card service program (taking the first VVNETCARD service program as an example). The RDP server is configured with a corresponding second virtual network card (taking the second VVNO as an example) and a second virtual network card service program (taking the second VVNETCARD service program as an example). The first and second in this embodiment are for the convenience of description and are not limited to this in specific applications. The method specifically includes:
[0111] Step 301: Start the RDP server and enable the desktop sharing function. The second VVNETCARD service program of the RDP server applies for access to the visual network according to the configured MAC address, obtains the visual network number, creates the first virtual network card (ie, the first VVN0), sets the IPv6 address, and uses the set IPv6 address as the source IP address of the RDP server.
[0112] Step 302: Start the first VVNETCARD service program of the RDP client, apply for access to the visual network according to the configured MAC address, obtain the visual network number, create the first VVN0 virtual network card, set the ipv6 address, use the set ipv6 address as the source IP address of the RDP client, convert the visual network number into the target IP address; bind the target IP address to the virtual network card. That is, configure the visual network number of the server, start the RDP client program, encapsulate or convert the visual network number of the server into the target ipv6 address, and then bind it to the network port of the first VVN0 network card of the RDP client to ensure that the data sent by the RDP client is sent from the first VVN0.
[0113] Step 303: The first VVN0 of the RDP client sends a connection request packet to the first VVNETCARD service program;
[0114] In this step, the remote desktop protocol RDP client sends a connection request packet to the RDP client through the first VVN0.
[0115] Step 304: The first VVNETCARD of the RDP client monitors the connection request packet and performs IP data encapsulation on the connection request packet.
[0116] Step 305: The first VVNETCARD sends the encapsulated connection request packet to the RDP server through the visual network.
[0117] Step 306: The second VVNETCARD of the RDP server monitors the connection request packet sent to the second virtual network card, and extracts the connection data in the connection request packet.
[0118] Step 307: The second VVNETCARD sends the extracted connection data to the second VVN0.
[0119] Step 308: The second VVN0 sends confirmation information to the second VVNETCARD based on the connection data.
[0120] Step 309: The second VVNETCARD monitors the confirmation information sent by the second VVN0 and performs IP data encapsulation on the confirmation information.
[0121] Step 310: The second VVNETCARD sends the encapsulated confirmation information to the first VVNETCARD of the RDP client.
[0122] Step 311: The first VVNETCARD decapsulates the monitored confirmation information.
[0123] Step 312: The first VVNETCARD sends the decapsulated confirmation information to the first VVN0.
[0124] Step 313: After receiving the confirmation message, the first VVN0 returns a response message to the RDP server to confirm the confirmation message received from the server and complete the TCP handshake operation, that is, the RDP client establishes a Transmission Control Protocol TCP communication connection with the RDP server.
[0125] Step 314: The RDP client and the RDP server perform data transmission via the visual network based on the established TCP communication connection.
[0126] Specifically, after the TCP communication connection is established, the ISO data layer (normal connection communication of RDP data) establishes a connection to send the initial protocol related information, receive encryption, decryption keys, virtual channel (used to split the data marked by different virtual channels, speed up the RDP client processing speed, and save the time of occupying the network interface) application, etc., wherein the client system information is sent in encrypted form and the encryption protocol is verified at the same time. Platform software certificate verification, as well as the establishment of connections for each function, data transmission for each function, and function implementation. The RDP protocol transmits image information, sound information, device information, and clipboard content in a single virtual channel, and printer mapping, disk mapping, and port mapping are all processed as content of device information.
[0127] It should be noted that the specific process of data transmission between the RDP client and the RDP server through the visual network based on the established TCP communication connection is already a well-known technology to those skilled in the art and will not be repeated here.
[0128] In an embodiment of the present invention, the system TCP protocol stack is used in place of VVSOCK in the RDP client, and the system kernel-level data transmission and reception is used to replace the application layer data transmission and reception, thereby improving data processing performance. By creating a virtual network card in the RDP client and binding this virtual network card VVNO, by setting parameters such as MTU in the virtual network card VVNO, the RDP data packet size, TCP detection and other functions are met, thereby solving the problem of visual network communication limitations. In the original related technology, MTU can also be set in the VVSOCK in the RDP client, but the data packet size can be negotiated with the passive party of the server as the active sender, and communication is carried out according to the client settings. In an embodiment of the present invention, VVNETCARD is optimized in the RDP client. In order to ensure the security of transmitted data, VVNETCARD performs visual network data management and IP data encapsulation conversion. The strong coupling of the modules is weakened in the RDP client, and the efficient implementation of the functions of each module is improved. After the TCP communication connection is established, the data transmission process is simplified. When data transmission is performed in the related technology, the original visual network port is copied to V2VDRV for extraction, and the extracted data is sent to VVSOCK, and then the data is copied to the network port queue for TCP data detection, and finally the data can be submitted to the RDP client. In the embodiment of the present invention, VVNETCARD is used to obtain the visual network data from the network port of the virtual card, and then VVN0 is sent. Since the RDP client monitors this port, it is equivalent to that the client has received the data, that is, the RDP client dynamically monitors the VVN0 port, and receives this data, that is, it is determined that there is a remote operation, and the data is packaged and sent. The present invention can improve the network transmission performance of the remote desktop connection and ensure the smoothness of the remote desktop operation.
[0129] It should be noted that, for the method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that this implementation disclosure is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present invention.
[0130] Figure 4 The present invention provides a block diagram of a communication connection establishment device for a visual network remote desktop. The device is applied to a remote desktop protocol RDP client, and the RDP client is configured with a virtual network card and a virtual network card service program. The device includes: a monitoring module 401, an encapsulation module 402 and a first sending module 403, wherein:
[0131] A monitoring module 401 is used to monitor the connection request packet sent by the RDP client through the virtual network card using the virtual network card service program;
[0132] The encapsulation module 402 is used to perform IP data encapsulation on the connection request packet using the virtual network card service program;
[0133] The first sending module 403 is used to send the encapsulated request connection packet to the RDP server by using the virtual network card service program, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet.
[0134] Optionally, in another embodiment, based on the above embodiment, the device may further include: an acquisition module 501, a creation module 502, a conversion module 503 and a binding module 504, and its structural block diagram is as follows: Figure 5 As shown,
[0135] The acquisition module 501 is used for obtaining the visual network number for the RDP client to access the visual network in response to the start of the virtual network card service program of the RDP client before the monitoring module obtains the connection request packet sent by the RDP client through the virtual network card through the virtual network card service program;
[0136] A creation module 502 is used to create a virtual network card and set an IP address as the source IP address of the RDP client;
[0137] A conversion module 503, used to convert the visual network number into a target IP address;
[0138] The binding module 504 is used to bind the target IP address to the virtual network card.
[0139] Optionally, the device further includes: a decapsulation module and a second sending module, wherein:
[0140] A decapsulation module, configured to decapsulate data of the confirmation information returned by the RDP server after the sending module sends the encapsulated request connection packet to the RDP server by using the virtual network card service program, upon monitoring the confirmation information returned by the RDP server;
[0141] The second sending module is used to send the decapsulated confirmation information to the virtual network card of the RDP client by using the virtual network card service program, so that the RDP client confirms to establish a transmission control protocol TCP communication connection with the RDP server after receiving the confirmation information.
[0142] See also Figure 6 , a block diagram of a communication connection establishment device for a visual network remote desktop is provided in an embodiment of the present invention, the device is applied to a remote desktop protocol RDP server, the RDP server is configured with a virtual network card and a virtual network card service program, the device includes: a first monitoring module 601, an extraction module 602, a first sending module 603, a second monitoring module 604, an encapsulation module 605 and a second sending module 606, wherein,
[0143] The first monitoring module 601 is used to monitor the connection request packet sent by the RDP client through the virtual network card through the virtual network card service program;
[0144] An extraction module 602 is used to extract the connection data in the connection request packet through the virtual network card service program;
[0145] A first sending module 603 is used to send the extracted connection data to the virtual network card of the RDP server through the virtual network card service program;
[0146] The second monitoring module 604 is used to monitor, through the virtual network card service program, the confirmation information sent by the RDP server using the virtual network card based on the connection data;
[0147] The encapsulation module 605 is used to perform IP data encapsulation on the confirmation information;
[0148] The second sending module 606 is used to send the encapsulated confirmation information to the virtual network card service program of the RDP client through the virtual network card service program, so that the RDP client establishes a transmission control protocol TCP communication connection with the RDP server.
[0149] Optionally, in another embodiment, based on the above embodiment, the extraction module includes: a decapsulation module and a second extraction module, wherein:
[0150] A decapsulation module, used for decapsulating the received connection request packet by using the virtual network card service program;
[0151] The second extraction module is used to use the virtual network card service program to extract the connection data in the decapsulated connection request packet.
[0152] Optionally, in another embodiment, based on the above embodiment, the device further includes: a sharing module, an acquisition module and a creation module, wherein:
[0153] A sharing module, configured to start a desktop sharing operation in response to the start of the RDP server before the first monitoring module uses the virtual network card service program to obtain a connection request packet sent by the RDP client through the virtual network card;
[0154] An acquisition module, used to acquire a visual network number using the virtual network card service program;
[0155] A creation module is used to create a virtual network card and set an IP address as the source IP address of the RDP server.
[0156] See also Figure 7 , which is an application example diagram of a communication connection establishment device for a visual network remote desktop provided by an embodiment of the present invention, specifically including: an rdp client and an rdp server, wherein the rdp client and the rdp server both include: a virtual network card (VVN0) and a virtual network card service program (VVNETCARD), wherein the rdp client includes VVN0 and VVNETCARD, and the rdp server includes: VVN0 and VVNETCARD. The VVNETCARD of the client communicates with the VVNETCARD of the server through a visual network connection.
[0157] like Figure 7 As shown, 1) Start the rdp server first and enable the desktop sharing function. The VVNETCARD service program in the rdp server applies for access to the visual network according to the configured mac address, obtains the visual network number, creates a virtual network card VVN0, and sets the ipv6 address.
[0158] 2) Start the VVNETCARD service program of the rdp client, apply for access to the visual network according to the configured mac address, and obtain the visual network number. Create a virtual network card VVN0 and set the ipv6 address. After that, configure the server visual network number, start the rdp client program, first convert the server visual network number into the target ipv6 address, and then bind the VVN0 network port to ensure that the data sent by the rdp client is sent from the port of VVN0.
[0159] 3) Establish a TCP connection. Specifically, the rdp client sends a connection request packet from the port of VVN0, and the VVNETCARD of the rdp client listens to the connection request packet of this port, encapsulates the monitored connection request packet with IP data, and sends the encapsulated connection request packet to the rdp server; the VVNETCARD of the rdp server listens to the connection request packet, extracts the connection data in the connection request packet, then encapsulates the extracted connection data and sends it to the VVN0 port of the rdp server. The VVN0 of the rdp server receives the connection data and returns confirmation information to the VVN0 port of the rdp client. The VVNETCARD of the rdp server listens to the confirmation information, encapsulates the confirmation information with IP data and sends it. The VVNETCARD of the rdp client receives the confirmation information (i.e., visual network data), extracts and encapsulates the data, and sends it to the VVN0 port of the rdp client. The VVN0 of the rdp client receives the confirmation message, returns a response message to the rdp server, confirming that the confirmation information of the server has been received, and completes the TCP handshake operation, that is, completing the TCP communication connection between the rdp client and the rdp server.
[0160] Optionally, an embodiment of the present invention further provides an electronic device, including:
[0161] processor;
[0162] a memory for storing instructions executable by the processor;
[0163] Wherein, the processor is configured to execute the instructions to implement the communication connection establishment method of the visual network remote desktop as described above.
[0164] Optionally, an embodiment of the present invention further provides a computer-readable storage medium, which, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method for establishing a communication connection for a visual network remote desktop as described above.
[0165] Optionally, an embodiment of the present invention further provides a computer program product, including a computer program or instructions, which, when executed by a processor of an electronic device, implements the method for establishing a communication connection for a visual network remote desktop as described above.
[0166] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0167] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0168] Figure 8 800 is a block diagram of an electronic device 800 provided in an embodiment of the present invention. For example, the electronic device 800 may be a mobile terminal or a server, and the electronic device is a mobile terminal as an example for explanation in the embodiment of the present invention. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0169] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0170] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0171] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0172] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0173] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0174] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0175] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0176] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0177] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0178] In an embodiment, the electronic device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the communication connection establishment method for the visual network remote desktop shown above.
[0179] In an embodiment, a computer-readable storage medium is also provided, and when the instructions in the computer-readable storage medium are executed by the processor of the electronic device, the electronic device 800 can execute the communication connection establishment method of the visual network remote desktop shown above. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0180] In an embodiment, a computer program product is also provided, including a computer program or instructions. When the computer program or instructions are executed by the processor 820 of the electronic device 800, the electronic device 800 executes the above-mentioned method for establishing a communication connection for the visual network remote desktop.
[0181] Fig. 9 1 is a block diagram of a device 900 for establishing a communication connection for a remote desktop in a video network provided by an embodiment of the present invention. For example, the device 900 may be provided as a server. Fig. 9 , the apparatus 900 includes a processing component 922, which further includes one or more processors, and a memory resource represented by a memory 932 for storing instructions, such as an application, that can be executed by the processing component 922. The application stored in the memory 932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 922 is configured to execute the instructions to perform the above method.
[0182] The device 900 may also include a power supply component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input / output (I / O) interface 958. The device 900 may operate based on an operating system stored in the memory 932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0183] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0184] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for establishing a communication connection of a remote desktop in a visual network, It is characterized in that The method is applied to a remote desktop protocol RDP client, the RDP client is configured with a virtual network card and a virtual network card service program, and the method includes: The virtual network card service program monitors the connection request packet sent by the RDP client through the virtual network card; The virtual network card service program performs IP data encapsulation on the connection request packet; The virtual network card service program sends the encapsulated request connection packet to the RDP server through the visual network, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet.
2. The method for establishing a communication connection of a visual network remote desktop according to claim 1, It is characterized in that Before the virtual network card service program obtains the connection request packet sent by the RDP client through the virtual network card, the method further includes: In response to the start of the virtual network card service program of the RDP client, obtaining the video network number for the RDP client to access the video network; Create a virtual network card and set an IP address as the source IP address of the RDP client; Convert the visual network number into a target IP address; Bind the target IP address to the virtual network card.
3. The method for establishing a communication connection of a visual network remote desktop according to claim 1 or 2, It is characterized in that After the virtual network card service program sends the encapsulated connection request packet to the RDP server, the method further includes: When the virtual network card service program monitors the confirmation information returned by the RDP server, the virtual network card service program decapsulates the confirmation information; The virtual network card service program sends the decapsulated confirmation information to the virtual network card of the RDP client, so that the RDP client confirms the establishment of a transmission control protocol TCP communication connection with the RDP server after receiving the confirmation information.
4. A method for establishing a communication connection for a remote desktop in a visual network, It is characterized in that The method is applied to a remote desktop protocol RDP server, wherein the RDP server is configured with a virtual network card and a virtual network card service program, and the method comprises: The virtual network card service program obtains a connection request packet sent to the virtual network card; The virtual network card service program extracts the connection data in the connection request packet; The virtual network card service program sends the extracted connection data to the virtual network card; The virtual network card service program obtains the confirmation information sent by the RDP server using the virtual network card based on the connection data, and performs IP data encapsulation on the confirmation information; The virtual network card service program sends the encapsulated confirmation information to the virtual network card service program of the RDP client, so that the RDP client confirms the establishment of a transmission control protocol TCP communication connection with the RDP server based on the received confirmation information.
5. The method for establishing a communication connection of a visual network remote desktop according to claim 4, It is characterized in that The virtual network card service program extracts the connection data in the connection request packet, including: The virtual network card service program decapsulates the received connection request packet; The virtual network card service program extracts the connection data in the decapsulated connection request packet.
6. The method for establishing a communication connection of a visual network remote desktop according to claim 4, It is characterized in that Before the virtual network card service program obtains the connection request packet sent by the RDP client through the virtual network card, the method further includes: In response to the startup of the RDP server, starting a desktop sharing operation; The virtual network card service program obtains the video network number; Create a virtual network card and set an IP address as the source IP address of the RDP server.
7. A communication connection establishment device for a visual network remote desktop, It is characterized in that The device is applied to a remote desktop protocol RDP client, the RDP client is configured with a virtual network card and a virtual network card service program, and the device includes: A monitoring module, used to monitor the connection request packet sent by the RDP client through the virtual network card using the virtual network card service program; An encapsulation module, used for performing IP data encapsulation on the connection request packet by using the virtual network card service program; The first sending module is used to use the virtual network card service program to send the encapsulated request connection packet to the RDP server, so that the RDP server establishes a transmission control protocol TCP communication connection with the RDP client based on the request connection packet.
8. A communication connection establishment device for a remote desktop in a visual network, It is characterized in that The device is applied to a remote desktop protocol RDP server, the RDP server is configured with a virtual network card and a virtual network card service program, and the device includes: A first monitoring module is used to monitor, through the virtual network card service program, a connection request packet sent by the RDP client through the virtual network card; A first extraction module, used for extracting connection data in the connection request packet through the virtual network card service program; A first sending module, used for sending the extracted connection data to the virtual network card of the RDP server through the virtual network card service program; A second monitoring module is used to monitor, through the virtual network card service program, the confirmation information sent by the RDP server using the virtual network card based on the connection data; An encapsulation module, used for performing IP data encapsulation on the confirmation information; The second sending module is used to send the encapsulated confirmation information to the virtual network card service program of the RDP client through the virtual network card service program, so that the RDP client establishes a transmission control protocol TCP communication connection with the RDP server.
9. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the communication connection establishment method of the visual network remote desktop as described in any one of claims 1 to 6.
10. A computer-readable storage medium, It is characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for establishing a communication connection for a visual network remote desktop as described in any one of claims 1 to 6.
