CN117834161A - Equipment data transmission method, client, virtual equipment and Internet of things equipment - Google Patents

Equipment data transmission method, client, virtual equipment and Internet of things equipment Download PDF

Info

Publication number
CN117834161A
CN117834161A CN202211200727.5A CN202211200727A CN117834161A CN 117834161 A CN117834161 A CN 117834161A CN 202211200727 A CN202211200727 A CN 202211200727A CN 117834161 A CN117834161 A CN 117834161A
Authority
CN
China
Prior art keywords
target
client
internet
target data
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211200727.5A
Other languages
Chinese (zh)
Inventor
张帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan United Imaging Healthcare Co Ltd
Original Assignee
Wuhan United Imaging Healthcare 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 Wuhan United Imaging Healthcare Co Ltd filed Critical Wuhan United Imaging Healthcare Co Ltd
Priority to CN202211200727.5A priority Critical patent/CN117834161A/en
Priority to PCT/CN2023/123228 priority patent/WO2024067882A1/en
Publication of CN117834161A publication Critical patent/CN117834161A/en
Pending legal-status Critical Current

Links

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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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/50Network services
    • H04L67/535Tracking the activity of the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/16Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using machine learning or artificial intelligence
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a device data transmission method, a client, virtual devices and Internet of things devices. The method comprises the following steps: the method comprises the steps of monitoring a first target port of a client, sending first target data to virtual equipment when the first target port of the client receives the first target data, sending the first target data to the Internet of things equipment by the virtual equipment, wherein the first target data is data sent to the first target port by a preset source port of the client, and receiving second target data sent by the virtual equipment by the first target port when the virtual equipment receives the second target data sent by the Internet of things equipment. By adopting the method, the safety of the equipment in the data transmission process can be improved.

Description

Equipment data transmission method, client, virtual equipment and Internet of things equipment
Technical Field
The application relates to the technical field of communication, in particular to a device data transmission method, a client, virtual devices and internet of things devices.
Background
The virtual private network (Virtual Private Network, VPN) is only suitable for end-to-end communication, and in the use scenario of electronic products such as wearable devices, medical devices, etc., communication between multiple ends is required, so the internet of things (Internet of Things, ioT for short) is more advantageous than VPN services.
Currently, ioT is mainly used to receive and upload data collected by electronic products, and this process is mostly an application layer level package, so that VPN cannot be completely replaced, and even depends on it. For example, currently in a usage scenario of electronic products such as wearable devices, ioT is often used in combination with VPN, and a complete communication procedure is implemented by using device access capability of IoT and network tunnel connection capability of VPN.
However, when transmitting data using VPN, since the sender and the receiver know each other's information, such as IP address, the manner of transmitting data using VPN has a potential safety hazard. For example, when the receiver is a medical device, the receiver stores the private information of the patient, and since the sender knows the IP address of the receiver, the sender may attack the receiver to obtain the private information of the receiver. Therefore, providing a data transmission method with higher security is an important research content for those skilled in the art.
Disclosure of Invention
Based on the above, it is necessary to provide a device data transmission method, a client, a virtual device and an internet of things device with higher security, aiming at the technical problems.
In a first aspect, the present application provides a device data transmission method, applied to a client, where the method includes:
monitoring a first target port of the client;
under the condition that a first target port of the client receives first target data, the first target data is sent to virtual equipment, so that the virtual equipment sends the first target data to the Internet of things equipment, wherein the first target data is data sent to the first target port by a preset source port of the client;
and under the condition that the virtual equipment receives second target data sent by the Internet of things equipment, the first target port receives the second target data sent by the virtual equipment.
In a second aspect, the present application provides a device data transmission method, applied to a virtual device, where the method includes:
receiving first target data sent by a client, and sending the first target data to Internet of things equipment so that the Internet of things equipment receives the first target data; the first target data is data sent to the virtual device when the client monitors that a first target port of the client receives the first target data, and the first target data is data sent to the first target port by a preset source port of the client;
Receiving second target data sent by the Internet of things equipment, and sending the second target data to the client so that the client receives the second target data; the second target data is data sent to the virtual device when the internet of things device monitors that a second target port of the internet of things device receives the second target data, and the second target data is data sent to the second target port by a preset source port of the internet of things device.
In a third aspect, the present application provides a device data transmission method, applied to an internet of things device, where the method includes:
monitoring a second target port of the Internet of things equipment;
under the condition that a second target port of the Internet of things equipment receives second target data, the second target data is sent to a virtual equipment, so that the second target data is sent to a client by the virtual equipment, and the second target data is data sent to the second target port by a preset source port of the Internet of things equipment;
and under the condition that the virtual equipment receives the first target data sent by the client, the second target port receives the first target data sent by the virtual equipment.
In a fourth aspect, the present application further provides a client, the client including:
the monitoring module is used for monitoring a first target port of the client;
the device comprises a sending module, a first target port and a virtual device, wherein the sending module is used for sending first target data to the virtual device under the condition that the first target port of the client receives the first target data, so that the virtual device sends the first target data to the Internet of things device, and the first target data is data sent to the first target port by a preset source port of the client;
the receiving module is used for receiving the second target data sent by the virtual device by the first target port under the condition that the virtual device receives the second target data sent by the Internet of things device.
In a fifth aspect, the present application further provides a virtual device, including:
the first receiving and transmitting module is used for receiving first target data sent by a client and sending the first target data to the Internet of things equipment so that the Internet of things equipment can receive the first target data; the first target data is data sent to the virtual device when the client monitors that a first target port of the client receives the first target data, and the first target data is data sent to the first target port by a preset source port of the client;
The second receiving and transmitting module is used for receiving second target data sent by the Internet of things equipment and sending the second target data to the client so that the client can receive the second target data; the second target data is data sent to the virtual device when the internet of things device monitors that a second target port of the internet of things device receives the second target data, and the second target data is data sent to the second target port by a preset source port of the internet of things device.
In a sixth aspect, the present application further provides an internet of things device, the internet of things device including:
the monitoring module is used for monitoring a second target port of the Internet of things equipment;
the sending module is used for sending second target data to the virtual equipment under the condition that the second target port of the internet of things equipment receives the second target data, so that the virtual equipment sends the second target data to the client, and the second target data is data sent to the second target port by the preset source port of the internet of things equipment;
and the receiving module is used for receiving the first target data sent by the virtual equipment by the second target port under the condition that the virtual equipment receives the first target data sent by the client.
In a seventh aspect, the present application further provides a device data transmission system, where the device data transmission system includes at least one internet of things device, at least one client, and at least one virtual device;
the client performs the steps of any of the methods described above, the virtual device performs the steps of any of the methods described above, and the internet of things device performs the steps of any of the methods described above.
In an eighth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
In a ninth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
In a tenth aspect, the present application also provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of any of the methods described above.
The device data transmission method, the client, the virtual device and the Internet of things device are applied to the client, and the first target port of the client is monitored to receive first target data sent to the first target port by the preset source port of the client when the first target port of the client is monitored to receive the first target data sent to the first target port, so that the virtual device sends the first target data to the Internet of things device, and the first target port receives second target data sent by the virtual device when the virtual device receives second target data sent by the Internet of things device. The client transmits the first target data to the internet of things device by the virtual device under the condition that the client monitors that the client self-preset source port transmits the first target data to the first target port, and receives the second target data transmitted by the internet of things device through the first target port, so that the client and the internet of things device do not directly transmit data, but complete data transmission through the virtual device. That is, in the data transmission process of the client and the internet of things device, the client and the internet of things device do not need to know information of each other, and a virtual private network is not required to be established between the internet of things device and the client. Therefore, the device data transmission method provided by the application avoids the problem of low safety caused by that the client and the Internet of things device know the information of each other when the VPN is used for transmitting data at present, and improves the safety of data transmission between the client and the Internet of things device.
Drawings
Fig. 1 is an application environment diagram of a device data transmission method in an embodiment of the present application;
fig. 2 is a flow chart of a method for transmitting device data in an embodiment of the present application;
fig. 3 is a schematic flow chart of sending first target data in an embodiment of the present application;
fig. 4 is a schematic flow chart of receiving second target data sent by a virtual device in an embodiment of the present application;
fig. 5 is an interaction schematic diagram among a client, a virtual device and an internet of things device in the present application;
FIG. 6 is a flow chart of interactions between a client and an Internet of things device under the RDP protocol;
FIG. 7 is a schematic diagram of a remote desktop connection according to the present application;
fig. 8 is a flow chart of a method for transmitting device data in an embodiment of the present application;
fig. 9 is a schematic flow chart of determining an internet of things device in an embodiment of the present application;
fig. 10 is a flow chart of a method for transmitting device data in the embodiment of the present application;
FIG. 11 is a block diagram of a client in an embodiment of the present application;
FIG. 12 is a block diagram of a virtual device in an embodiment of the present application;
fig. 13 is a structural block diagram of an internet of things device in an embodiment of the present application;
FIG. 14 is a schematic diagram of a device data transmission system of the present application;
fig. 15 is an internal structural diagram of the computer device in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Fig. 1 is an application environment diagram of a device data transmission method in an embodiment of the present application, where the device data transmission method provided in the embodiment of the present application may be applied to an application environment as shown in fig. 1. Each client, for example, client 1, client 2, … …, client N, and each internet of things device, for example, internet of things device 1, internet of things device 2, … …, internet of things device P, all access to the corresponding virtual device through the IoT communication method. Specifically, different virtual devices correspond to different internet of things devices, for example, virtual device 1 corresponds to internet of things device 1 and internet of things device 2, virtual device 2 corresponds to internet of things device 3 and internet of things device 4, and virtual device M corresponds to internet of things device P, N, M, P, which are integers greater than or equal to 1.
Clients may be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The internet of things equipment can be medical equipment such as an electronic computer tomography (Computed Tomography, CT) machine, a blood oxygen ring and the like, and also can be intelligent sound boxes, intelligent televisions, intelligent air conditioners, intelligent vehicle-mounted equipment, intelligent watches, intelligent bracelets, head-mounted equipment and the like. The virtual device can be realized by an independent server or a server cluster formed by a plurality of servers, can be placed on a cloud or other network servers, and can also be digital twin equipment at the equipment side of the Internet of things.
Based on the application environment shown in fig. 1, each client and each internet of things device access the virtual device through the IoT communication manner, but data cannot be transmitted between the client and the internet of things device.
Fig. 2 is a flow chart of a method for transmitting device data in an embodiment of the present application, where the method may be applied to the client shown in fig. 1, and in one embodiment, as shown in fig. 2, the method includes the following steps:
s201, monitoring a first target port of a client.
In this embodiment, the client first listens to its own first target port, which may be a designated port, such as a 2000 port.
S202, under the condition that the first target port of the client receives the first target data, the first target data is sent to the virtual device, so that the virtual device sends the first target data to the Internet of things device, and the first target data is data sent to the first target port by the preset source port of the client.
In this embodiment, the preset source port of the client sends first target data to the first target port, where the first target data includes text, number, voice, image, video, or other instructions, and the embodiment is not limited.
One implementation manner is that after a user designates content to be sent on a client, other application programs on the client send first target data to the IOT program, that is, a preset source port of the client sends the first target data to a first target port of the client. The preset source port is determined according to the port allocated by each application program, for example, the RDP protocol uses 3389 ports. For example, the preset source port 111 of the client transmits the first target data to the first target port 2000.
Further, since the client monitors the first target port of the client, the client can monitor that the first target port receives the first target data.
Further, when the client monitors that the first target port receives the first target data, the first target data is sent to the virtual device, and then the virtual device sends the first target data to the internet of things device, so that the process that the client sends the data to the internet of things device is completed.
For example, in conjunction with fig. 1, when the client 1 monitors that the first target port 2000 receives the first target data, the client 1 sends the first target data to the virtual device 1, so that the virtual device 1 sends the first target data to the internet of things device 1 and the internet of things device 2.
After receiving the first target data of the client 1, the virtual device 1 may temporarily store the first target data first, and when the internet of things device 1 is online, the virtual device sends the first target data to the internet of things device 1.
S203, receiving, by the first target port, the second target data sent by the virtual device when the virtual device receives the second target data sent by the internet of things device.
In this embodiment, the client may also receive, by the first target port, second target data from the internet of things device, where the second target data is sent by the virtual device, so as to complete a process that the internet of things device sends data to the client. Likewise, the second target data may include text, numbers, voice, images, video, or other instructions, as the present embodiment is not limited.
The client may actively monitor the data received by the virtual device after the client is online, and when the client monitors that the data stored by the virtual device changes, the client may receive the second target data sent by the virtual device through the first target port, for example, 2000.
The principle that the internet of things device sends the second target data to the client is the same as the principle that the client sends the first target data to the internet of things device. Specifically, the internet of things device monitors the second target port of the internet of things device, and then when the preset source port of the internet of device sends second target data to the second target port of the internet of device, the internet of things device can monitor that the second target port receives the second target data. And the Internet of things equipment sends the second target data to the virtual equipment under the condition that the second target port receives the second target data, and then the virtual equipment sends the second target data to the client.
The device data transmission method provided by the embodiment is applied to a client, and is used for sending first target data to a virtual device by monitoring a first target port of the client and receiving the first target data sent to the first target port by a preset source port of the client when the first target port of the client is monitored, so that the virtual device sends the first target data to the internet of things device, and receiving second target data sent by the virtual device by the first target port when the virtual device receives the second target data sent by the internet of things device. The client transmits the first target data to the internet of things device by the virtual device under the condition that the client monitors that the client self-preset source port transmits the first target data to the first target port, and receives the second target data transmitted by the internet of things device through the first target port, so that the client and the internet of things device do not directly transmit data, but complete data transmission through the virtual device. That is, in the data transmission process of the client and the internet of things device, the client and the internet of things device do not need to know information of each other, and a virtual private network is not required to be established between the internet of things device and the client. Therefore, the device data transmission method provided by the application avoids the problem of low safety caused by that the client and the Internet of things device know the information of each other when the VPN is used for transmitting data at present, and improves the safety of data transmission between the client and the Internet of things device.
Fig. 3 is a schematic flow chart of sending first target data in an embodiment of the present application, and referring to fig. 3, this embodiment relates to an alternative implementation manner of how to send first target data. On the basis of the foregoing embodiment, S202 described above, when it is monitored that the first target port of the client receives the first target data, sends the first target data to the virtual device, including the following steps:
s301, determining a first source port of the client under the condition that the first target port of the client receives first target data.
In this embodiment, in the case that the client monitors that its first destination port receives the first destination data, the first source port of the client is first determined, for example, the client randomly generates a different first source port 111.
S302, a first target link between the client and the virtual device is determined according to the first source port.
In this embodiment, the client determines a first target link between the client and the virtual device according to the first source port. For example, the client initiates a link establishment command to the virtual device according to the first source port to determine a first target link between the client and the virtual device.
One implementation manner may be that the client sends, to the virtual device, a first link establishment command based on a transmission control protocol (Transmission Control Protocol, TCP) through a data packet encapsulated by a JS object profile (JavaScript Object Notation, JSON), where the data packet may further include a maintenance duration of a first target link, a key, and the like, so that the client and the virtual device determine, after three handshakes, the first target link between the client and the virtual device, where the first target link may be identified by the first source port.
It should be noted that, for the client, even if a plurality of first target links are established, the client may be differentiated according to the first source ports. For example, when the client 1 initiates a first link establishment command to the virtual device 1, the client 1 randomly generates the first source port 1, and the client 1 and the virtual device 1 establish the first target link 1 through the first source port 1; when the client 1 initiates a first link establishment command to the virtual device 2, the client 1 randomly generates a first source port 2, and then the client 1 and the virtual device 2 establish a first target link 2 through the first source port 2.
S303, sending first target data to the virtual device through the streaming port of the client by using the first target link.
In this embodiment, after the client determines the first target link between the client and the virtual device according to the first source port, the first target link may be used to send the first target data to the virtual device through the streaming port of the client. The streaming port of the client may be a fixed port or a random port, for example, the streaming port of the client is 443 in this embodiment.
In this embodiment, when it is monitored that the first target port of the client receives the first target data, the first source port of the client is determined, and a first target link between the client and the virtual device is determined according to the first source port, so that the first target link is used to send the first target data to the virtual device through the streaming port of the client. Because the first target links between the client and the virtual device are determined according to the first source ports of the client, the first source ports can be used for distinguishing different first target links, so that the client can simultaneously establish a plurality of first target links to simultaneously transmit a plurality of data.
Optionally, S302, determining, according to the first source port, a first target link between the client and the virtual device may be implemented as follows:
If a first target link does not exist between the client and the virtual equipment, a first link establishment command is sent to the virtual equipment; the first link establishment command is used to instruct the virtual device and the client to establish a first target link based on the first source port.
In this implementation, if the first target link does not exist between the client and the virtual device, the client sends a first link establishment command to the virtual device to instruct the virtual device and the client to establish the first target link based on the first source port. It can be appreciated that if the first target link already exists between the client and the virtual device, the client may directly use the first target link to send the first target data to the virtual device through the self-streaming port.
For example, when the client 1 listens that the first target port receives the first target data 1, the client 1 needs to send the first target data 1 to the virtual device 1 for the first time, and the first target link does not exist between the client and the virtual device yet, the client 1 initiates a first link establishment command to the virtual device 1 to establish the first target link 1 between the client 1 and the virtual device 1, so that the client 1 sends the first target data 1 to the virtual device 1 through its own streaming port by using the first target link 1.
After 3 minutes, the client 1 still needs to send the first target data 2 to the virtual device 1, and at this time, the first target link 1 still exists, and then the client 1 still sends the first target data 2 to the virtual device 1 by using the first target link 1.
In this embodiment, if a first target link does not exist between the client and the virtual device, a first link establishment command for instructing the virtual device and the client to establish the first target link based on the first source port is sent to the virtual device, so that the client uses the first target link to send first target data to the virtual device through the self-streaming port, thereby completing a process that the client transmits data to the internet of things device through the virtual device.
Fig. 4 is a schematic flow chart of receiving second target data sent by a virtual device in the embodiment of the present application, and referring to fig. 4, this embodiment relates to an alternative implementation manner of how to receive second target data sent by a virtual device. On the basis of the above embodiment, S203, where the virtual device receives the second target data sent by the internet of things device, the first target port receives the second target data sent by the virtual device, includes the following steps:
S401, under the condition that the virtual device receives second target data sent by the Internet of things device, determining a second target link between the client and the virtual device according to the first target port.
In this embodiment, taking an example that the internet of things device transmits data to the client through the virtual device. The internet of things device monitors a second target port of the internet of device, and when a preset source port of the internet of device sends second target data to the second target port of the internet of device, the internet of device can monitor that the second target port receives the second target data.
Further, when the internet of things device monitors that the second target port receives the second target data, the internet of things device sends the second target data to the virtual device.
And after the virtual equipment receives the second target data sent by the Internet of things equipment, the virtual equipment temporarily stores the second target data. If the client is online at this time, the first target port of the client monitors that the virtual device receives the second target data; if the client is not online at this time, the client monitors that the virtual device receives new second target data after the client is online.
Further, under the condition that the virtual device receives second target data sent by the internet of things device, the client determines a second target link between the client and the virtual device according to the first target port. The process of determining, by the client, the second target link between the client and the virtual device according to the first target port is the same as the process of determining, by the client, the first target link between the client and the virtual device according to the first source port, and will not be described herein.
Likewise, for the client, even if a plurality of second target links are established, the distinction can be made according to the first target port.
It should be noted that the first target link and the second target link may be the same link or may be different links. For example, when the client needs to send the first target data to the internet of things device through the virtual device, and the client also needs to receive the second target data sent by the virtual device and coming from the internet of things device, the first target link and the second target link may be the same link.
S402, receiving the second target data through the first target port by using the second target link.
In this embodiment, after the second target link is determined between the client and the virtual device, the second target data sent by the virtual device may be received through the first target port by using the second target link.
In this embodiment, when the virtual device receives the second target data sent by the internet of things device, the client determines a second target link between the client and the virtual device according to the first target port, and receives the second target data through the first target port by using the second target link. Therefore, when the client receives the second target data sent by the Internet of things device, connection between the client and the Internet of things device is not required to be established, and the safety of data transmission is improved.
Optionally, the determining, according to the first target port, the second target link between the client and the virtual device may be implemented as follows:
if a second target link does not exist between the client and the virtual equipment, a second link establishment command is sent to the virtual equipment; the second link establishment command is used to instruct the virtual device and the client to establish a second target link based on the first target port.
In this embodiment, similarly, when the client 1 receives the virtual device 1 for the first time and transmits the second target data, the client 1 transmits a second link establishment command to the virtual device according to the first target port when the second target link 1 does not exist between the client 1 and the virtual device 1, so that the second target link 1 is established between the client 1 and the virtual device 1, and the client 1 receives the second target data 1 transmitted by the virtual device 1 through the first target port by using the second target link.
After 3 minutes, the internet of things device still sends the second target data 2 to the virtual device 1, and at this time, the second target link 1 still exists, so that the client 1 still receives the second target data 2 sent by the virtual device 1 by using the second target link 1.
In this embodiment, if the second target link does not exist between the client and the virtual device, a second link establishment command for instructing the virtual device and the client to establish the second target link based on the first target port is sent to the virtual device, so that the client receives the second target data through the first target port by using the second target link, thereby completing a process of transmitting data to the client through the virtual device by the internet of things device.
Optionally, the first target link and the second target link are links identified by a TCP four tuple, a TCP five tuple, or a TCP seven tuple.
In this embodiment, the first target link and the second target link are links identified by a TCP four-tuple, a TCP five-tuple, or a TCP seven-tuple, that is, a link between the virtual device and the client, and a link between the virtual device and the internet of things are both links established based on TCP, and are links identified by a TCP four-tuple, a TCP five-tuple, or a TCP seven-tuple.
Specifically, the TCP four-tuple comprises a source IP address, a destination IP address, a source port and a destination port; the TCP five-tuple comprises a source IP address, a destination IP address, a protocol number, a source port and a destination port; the TCP seven-tuple includes a source IP address, a destination IP address, a protocol number, a source port, a destination port, a service type, and an interface index.
Taking the first target link as an example, the source IP address in the TCP quadruple is the IP address of the client, and the destination IP address in the TCP quadruple is the IP address of the virtual device, and because both the client and the internet of things device have access to the virtual device through the IOT, the IP of the virtual device is fixed for the client and the internet of things device. For example, in the embodiment of the present application, the host identifier "localhost" is used as the IP address of the virtual device. The source port in the TCP four-tuple is a first source port determined by the client before determining the first target link; the destination port in the TCP quadruple may be a second destination port of the internet of things device, or may be a port corresponding to an application program of the internet of things device. The second target link is the same and will not be described in detail herein.
Taking TCP four-tuple as an example, the method has higher tolerance to links identified by the TCP four-tuple for a client or Internet of things equipment, and additional TCP links can be established by arbitrarily distinguishing a source port from a target port, so that the port multiplexing capability of the method is improved.
The TCP quintuple and the TCP seven-tuple are the same, and the client or the Internet of things device has larger tolerance on the link identified by the TCP quintuple or the TCP seven-tuple.
In this embodiment, the first target link and the second target link are links identified by a TCP four-tuple, a TCP five-tuple or a TCP seven-tuple, and because the first target link and the second target link are links established based on TCP, the interaction reliability between the virtual device and the client, and between the virtual device and the internet of things device is ensured. Further, since the first target link and the second target link are identified by the TCP four-tuple, the TCP five-tuple or the TCP seven-tuple, the different first target links and the different second target links can be quickly distinguished, for example, the first target links are identified based on the TCP four-tuple, and the first target links are determined according to the first source ports, and the TCP four-tuple between the different first target links is necessarily different due to the different first source ports, so that the different first target links can be distinguished.
For a clearer explanation of the device data transmission method in the present application, the description is made here with reference to fig. 5. Fig. 5 is a schematic interaction diagram among a client, a virtual device and an internet of things device in the present application. Taking the example that the client sends the first target data to the internet of things device through the virtual device and the client receives the second target data sent by the internet of things device through the virtual device.
When the client needs to send the first target data to the internet of things device, the client executes the device data transmission method according to the following steps:
s501, the client monitors a first target port of the client.
S502, when the client needs to send first target data to the Internet of things device, for example, when a user specifies first target data to be sent to the Internet of things device, a preset source port of the client sends the first target data to the first target port, and then the client monitors that the first target port receives the first target data. And then, the client randomly generates a first source port of the client and sends a first link establishment command to the virtual equipment so as to establish a first target link between the client and the virtual equipment. Specifically, the first target link is a link based on a TCP four-tuple, a source IP address in the TCP four-tuple is an IP address of a client, a source port in the TCP four-tuple is a first source port of the client, a destination IP address in the TCP four-tuple is a localhost, and a destination port in the TCP four-tuple is a second target port of the Internet of things device.
S503, after establishing the first target link between the client and the virtual device, the client sends the first target data to the virtual device through its own streaming port by using the first target link.
S504, the virtual device temporarily stores the first target data after receiving the first target data sent by the client.
S505, after the Internet of things device is online, the virtual device sends first target data to the Internet of things device. Specifically, after receiving first target data sent by a client, the virtual device temporarily stores the first target data, and after finding that the virtual device receives the first target data, a second target port of the internet of things device initiates a link establishment command to the virtual device, so as to establish a TCP link between the internet of things device and the virtual device, and the internet of things device receives the first target data through the second target port by using the TCP link. The process of sending the first target data to the internet of things device by the virtual device is the same as the process of receiving the second target data by the client in the following steps S507 to S511, and will not be repeated here.
So far, the client finishes sending the first target data to the Internet of things equipment.
When the internet of things device needs to send second target data to the client, the client executes the device data transmission method according to the following steps:
S506, the Internet of things device sends second target data to the virtual device. The process of sending the second target data to the virtual device by the internet of things device is the same as the principle of the process of sending the first target data to the internet of things device by the client in S501 to S503, which is not described herein.
S507, the virtual device temporarily stores the second target data after receiving the second target data sent by the Internet of things device.
And S508, after the client is online, the virtual equipment receives the second target data through the first target port.
S509, the client sends a second link establishment command to the virtual device to establish a second target link between the client and the virtual device. Likewise, the second target link is also a TCP four-tuple based link.
S510, after establishing a second target link between the client and the virtual device, the client receives the virtual device through the first target port of the client and sends second target data by using the second target link.
The client receives the second destination port from the internet of things device.
Optionally, the first target link and the second target link distinguish protocols above the network transport layer through the first target port.
In this embodiment, the first target link and the second target link distinguish protocols above the network transport layer through the first target port. That is, the method for transmitting data of the device provided by the present application does not need to specifically develop, adjust or integrate various application layer protocols, and encapsulation and parsing of data can be performed by specific applications. That is, the device data transmission method provided in the present application may be applied to protocols above each transmission layer, such as remote desktop protocol (Remote Desktop Protocol, RDP), hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP).
In a specific embodiment, taking the RDP protocol as an example, a data transmission interaction process between a client under the RDP protocol and an internet of things device through a virtual device is listed here, as shown in fig. 6, and fig. 6 is a flowchart of interaction between the client under the RDP protocol and the internet of things device.
S601, the client listens to its own first destination port 2000.
S602, in order to implement RDP protocol, the client starts a remote desktop application, FIG. 7 is a schematic diagram of remote desktop connection in the present application, and as shown in FIG. 7, the remote desktop application starts to access "localhost:2000 "and to the IP and port" localhost "through the preset source port, e.g., 333: 2000 "delivers the first target data while waiting for the data from" localhost:2000 "of second target data.
S603, when "localhost:2000", when receiving the first target data, the client randomly generates a first source port number 111, and sends a first link establishment command based on TCP to the virtual device, specifying an internet of things device maintenance port 3389.
S604, after the first target link is established between the client and the virtual device, the client uses the first target link to send the first target data received by the first target port 2000 to the virtual device through the own streaming port 443.
S605, after receiving the first target data, the virtual device negotiates with the Internet of things device for the second target port 222, and the virtual device sends the first target data to the Internet of things device through the second target port 222.
S606, the first target data received by the second target port 222 of the Internet of things device is sent to a port 3389 corresponding to the RDP application, so that the Internet of things device writes the first target data from the client.
S607, the Internet of things device sends the second target data received by the 3389 port corresponding to the RDP application to the virtual device through the streaming port 443 of the Internet of things device.
And S608, after receiving the second target data from the Internet of things equipment, the virtual equipment sends the second target data to the client through the first target port 2000 of the client.
S609, the remote desktop application of the client receives the request from "localhost:2000 "of second target data is written to the client.
So far, the mutual data transmission of the RDP protocol is realized between the client and the Internet of things equipment.
In this embodiment, the first target link and the second target link distinguish the protocol above the network transmission layer through the first target port, so that the device data transmission method provided by the application has higher expandability.
The method for transmitting the device data is applied to the internet of things device for example, and the method can also be applied to the virtual device. Fig. 8 is a flow chart of a method for transmitting device data in an embodiment of the present application, where the method may be applied to the virtual device shown in fig. 1, and in one embodiment, as shown in fig. 8, the method includes the following steps:
s801, receiving first target data sent by a client, and sending the first target data to the Internet of things equipment so as to receive the first target data by the Internet of things equipment; the first target data is data sent to the virtual device when the client monitors that the first target port of the client receives the first target data, and the first target data is data sent to the first target port by a preset source port of the client.
In this embodiment, when the client is used as the sender, the client monitors that the first target port of the client receives the first target data sent by the preset source port of the client, and sends the first target data to the virtual device, so that the virtual device sends the first target data to the internet of things device.
S802, receiving second target data sent by the Internet of things equipment, and sending the second target data to the client so that the client receives the second target data; the second target data are data sent to the virtual device when the internet of things device monitors that the second target port of the internet of things device receives the second target data, and the second target data are data sent to the second target port by a preset source port of the internet of things device.
In this embodiment, when the client is used as the receiving party, the internet of things device monitors that the second target port of the internet of things device receives the second target data sent by the preset source port of the internet of things device, and sends the second target data to the virtual device, so that the virtual device sends the second target data to the client.
According to the device data transmission method, the virtual device receives first target data sent by the client and sends the first target data to the Internet of things device, so that the Internet of things device receives the first target data, receives second target data sent by the Internet of things device and sends the second target data to the client, and the client receives the second target data. The first target data are data sent to the virtual equipment when the client monitors that the first target port of the client receives the first target data, and the first target data are data sent to the first target port by a preset source port of the client; the second target data are data sent to the virtual device when the internet of things device monitors that the second target port of the internet of things device receives the second target data, and the second target data are data sent to the second target port by a preset source port of the internet of things device. Therefore, the client and the internet of things device do not directly perform data transmission, but complete data transmission through the virtual device. That is, in the data transmission process of the client and the internet of things device, the client and the internet of things device do not need to know information of each other, and a virtual private network is not required to be established between the internet of things device and the client. Therefore, the device data transmission method provided by the application avoids the problem of low safety caused by that the client and the Internet of things device know the information of each other when the VPN is used for transmitting data at present, and improves the safety of data transmission between the client and the Internet of things device.
Fig. 9 is a schematic flow chart of determining an internet of things device in an embodiment of the present application, and referring to fig. 9, this embodiment relates to an alternative implementation manner of determining an internet of things device. On the basis of the above embodiment, the above device data transmission method further includes the following steps:
s901, a first link establishment command sent by a client is received.
In this embodiment, taking the client as the sender, when the client sends the first target data to the virtual device, a first link establishment command needs to be sent to the virtual device, and then the virtual device receives the first link establishment command sent by the client. The first link establishment command comprises a target identifier, wherein the target identifier is used for finding a corresponding virtual device for finding the client, so that the virtual device can find the Internet of things device corresponding to the client.
S902, determining the Internet of things equipment according to a target identifier in a first link establishment command and a first preset corresponding relation, so that the Internet of things equipment determines a link between the client and the virtual equipment according to a second target port under the condition that the virtual equipment receives first target data sent by the client; the first preset corresponding relation comprises corresponding relations between different Internet of things devices and different identifications.
In this embodiment, the virtual device stores a first preset corresponding relationship, where the first preset corresponding relationship includes a corresponding relationship between different internet of things devices and different identifiers, that is, a mapping relationship between the receiving party and the transmitting party is stored on the virtual device. Further, after receiving the first link establishment command, the virtual device can determine the internet of things device according to the target identifier in the first link establishment command and the first preset corresponding relation. For example, when the target identifier is a, the client 1 sends a first link establishment command to the virtual device 1 to determine, by the virtual device 1, the internet of things device 1 and the internet of things device 2; when the target identifier is B, the client 1 sends a first link establishment command to the virtual device 2 to determine the internet of things device 3 and the internet of things device 4 by the virtual device 1.
Further, when the virtual device determines that the client is the sender, namely, the virtual device determines that the internet of things device needs to receive the first target data, the virtual device determines a TCP link between the client and the virtual device according to the second target port, and then receives the first target data through the TCP link and the second target port.
The same applies when the client is the receiver, and the description is omitted here.
The virtual device receives a first link establishment command including a target identifier sent by a client, and determines the internet of things device according to the target identifier in the first link establishment command and a first preset corresponding relation, so that the internet of things device determines a link between the client and the virtual device according to a second target port when the virtual device receives first target data sent by the client; the first preset corresponding relation comprises corresponding relations between different Internet of things devices and different identifications. When the client is used as a sender, the virtual equipment comprises the corresponding relation between different Internet of things equipment and different identifications, so that the virtual equipment can determine the corresponding Internet of things equipment as a receiver, that is, the client and the Internet of things equipment do not need to know specific information of each other, and the safety in the equipment data transmission process is improved.
Based on the same inventive concept, the method may also be applied to an internet of things device, and fig. 10 is a flow chart of a device data transmission method in an embodiment of the present application, where the method may be applied to the internet of things device shown in fig. 1, and in one embodiment, as shown in fig. 10, the method includes the following steps:
S1001, monitoring a second target port of the Internet of things device.
S1002, sending second target data to the virtual device when the second target port of the Internet of things device receives the second target data, so that the virtual device sends the second target data to the client, wherein the second target data is data sent to the second target port by a preset source port of the Internet of things device.
S1003, when the virtual device receives the first target data sent by the client, the second target port receives the first target data sent by the virtual device.
In this embodiment, the principle of the internet of things device sending the second target data to the client as the sending direction is the same as the principle of the client sending the first target data to the internet of things device as the sending direction, which is not described herein again.
According to the device data transmission method, the second target port of the Internet of things device is monitored, and when the second target port of the Internet of things device receives the second target data, the second target data are sent to the virtual device, so that the virtual device sends the second target data to the client, wherein the second target data are data sent to the second target port by the preset source port of the Internet of things device; and under the condition that the virtual equipment receives the first target data sent by the client, the second target port receives the first target data sent by the virtual equipment. The virtual device sends the second target data to the client under the condition that the Internet of things device monitors that the second target data is sent to the second target port by the preset source port, and receives the first target data sent by the client through the second target port, so that the client and the Internet of things device do not directly conduct data transmission, but complete data transmission through the virtual device. That is, in the data transmission process of the client and the internet of things device, the client and the internet of things device do not need to know information of each other, and a virtual private network is not required to be established between the internet of things device and the client. Therefore, the device data transmission method provided by the application avoids the problem of low safety caused by that the client and the Internet of things device know the information of each other when the VPN is used for transmitting data at present, and improves the safety of data transmission between the client and the Internet of things device.
Likewise, the process of the internet of things device executing the device data transmission method is the same as the process principle of the client executing the device data transmission method, and will not be described herein.
For the client, the IP addresses of the source host and the target host are both "localhost", the first source port is randomly generated, and the first target port is specified by the client itself; for the internet of things device, the IP addresses of the source host and the target host are also "localhost", the second source port may be generated randomly or may be specified by the client, and the second target port is determined after negotiating with the virtual device.
In summary, according to the device data transmission method provided by the application, through establishing a plurality of TCP links and performing data distribution between the client and the Internet of things device by the virtual device, the communication interaction requirement of each application across the local area network is met, additional VPN devices are not required to build network tunnels, the topological structure of the network is not damaged, and complete replacement of VPN is realized. Further, the VPN can be completely replaced, so that the method is not only suitable for communication scenes between multiple ends and multiple ends, the application range of the equipment data transmission method is improved, but also the cost for constructing the VPN is reduced.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides the internet of things device, the client and the virtual device for realizing the related device data transmission method. The implementation schemes for solving the problems provided by the internet of things device, the client and the virtual device are similar to those described in the above method, so the specific limitations in the embodiments of one or more of the internet of things device, the client and the virtual device provided below can be referred to the above limitations of the device data transmission method, and are not repeated herein.
Fig. 11 is a block diagram of a client in an embodiment of the present application, as shown in fig. 11, in an embodiment of the present application, a client 1100 is provided, including: a listening module 1101, a sending module 1102, and a receiving module 1103, wherein:
a monitoring module 1101, configured to monitor a first target port of a client;
the sending module 1102 is configured to send first target data to the virtual device when it is monitored that the first target port of the client receives the first target data, so that the virtual device sends the first target data to the internet of things device, where the first target data is data sent to the first target port by a preset source port of the client;
the receiving module 1103 is configured to, when the virtual device receives the second target data sent by the internet of things device, receive, by the first target port, the second target data sent by the virtual device.
The device data transmission device provided by the embodiment is applied to a client, and is used for sending first target data to a virtual device by monitoring a first target port of the client and receiving the first target data sent to the first target port by a preset source port of the client when the first target port of the client is monitored, so that the virtual device sends the first target data to the internet of things device, and receiving second target data sent by the virtual device by the first target port when the virtual device receives the second target data sent by the internet of things device. The client transmits the first target data to the internet of things device by the virtual device under the condition that the client monitors that the client self-preset source port transmits the first target data to the first target port, and receives the second target data transmitted by the internet of things device through the first target port, so that the client and the internet of things device do not directly transmit data, but complete data transmission through the virtual device. That is, in the data transmission process of the client and the internet of things device, the client and the internet of things device do not need to know information of each other, and a virtual private network is not required to be established between the internet of things device and the client. Therefore, the device data transmission device provided by the application avoids the problem of lower safety caused by that the client and the Internet of things device know the information of each other when the VPN is used for transmitting data at present, and improves the safety of data transmission between the client and the Internet of things device.
Optionally, the sending module 1102 includes:
and the first determining unit is used for determining the first source port of the client under the condition that the first target port of the client receives the first target data.
And the second determining unit is used for determining a first target link between the client and the virtual equipment according to the first source port.
And the sending unit is used for sending the first target data to the virtual equipment through the streaming port of the client by utilizing the first target link.
Optionally, the second determining unit is specifically configured to send a first link establishment command to the virtual device if the first target link does not exist between the client and the virtual device; the first link establishment command is used to instruct the virtual device and the client to establish a first target link based on the first source port.
Optionally, the receiving module 1103 includes:
and the third determining unit is used for determining a second target link between the client and the virtual equipment according to the first target port under the condition that the virtual equipment receives the second target data sent by the Internet of things equipment.
And the receiving unit is used for receiving the second target data through the first target port by utilizing the second target link.
Optionally, the third determining unit is further configured to send a second link establishment command to the virtual device if the second target link does not exist between the client and the virtual device; the second link establishment command is used to instruct the virtual device and the client to establish a second target link based on the first target port.
Optionally, the first target link and the second target link are links identified by a TCP four tuple, a TCP five tuple, or a TCP seven tuple.
Optionally, the first target link and the second target link distinguish protocols above the network transport layer through the first target port.
Fig. 12 is a block diagram of a virtual device according to an embodiment of the present application, and as shown in fig. 12, in an embodiment of the present application, there is provided a virtual device 1200, including: a first transceiver module 1201 and a second transceiver module 1202, wherein:
the first transceiver module 1201 is configured to receive the first target data sent by the client, and send the first target data to the internet of things device, so that the internet of things device receives the first target data; the first target data are data sent to the virtual equipment when the client monitors that the first target port of the client receives the first target data, and the first target data are data sent to the first target port by a preset source port of the client;
A second transceiver module 1202, configured to receive second target data sent by the internet of things device, and send the second target data to the client, so that the client receives the second target data; the second target data are data sent to the virtual device when the internet of things device monitors that the second target port of the internet of things device receives the second target data, and the second target data are data sent to the second target port by a preset source port of the internet of things device.
According to the device data transmission device provided by the embodiment, the virtual device receives first target data sent by the client and sends the first target data to the Internet of things device, so that the Internet of things device receives the first target data, receives second target data sent by the Internet of things device and sends the second target data to the client, and the client receives the second target data. The first target data are data sent to the virtual equipment when the client monitors that the first target port of the client receives the first target data, and the first target data are data sent to the first target port by a preset source port of the client; the second target data are data sent to the virtual device when the internet of things device monitors that the second target port of the internet of things device receives the second target data, and the second target data are data sent to the second target port by a preset source port of the internet of things device. Therefore, the client and the internet of things device do not directly perform data transmission, but complete data transmission through the virtual device. That is, in the data transmission process of the client and the internet of things device, the client and the internet of things device do not need to know information of each other, and a virtual private network is not required to be established between the internet of things device and the client. Therefore, the device data transmission device provided by the application avoids the problem of lower safety caused by that the client and the Internet of things device know the information of each other when the VPN is used for transmitting data at present, and improves the safety of data transmission between the client and the Internet of things device.
Optionally, the virtual device 1200 further includes:
and the receiving module is used for receiving the first link establishment command sent by the client.
The sending module is used for determining the internet of things device according to the target identifier in the first link establishment command and a first preset corresponding relation, so that the internet of things device can determine a link between the client and the virtual device according to the second target port when the virtual device receives first target data sent by the client; the first preset corresponding relation comprises corresponding relations between different Internet of things devices and different identifications.
Fig. 13 is a block diagram of an architecture of an internet of things device in an embodiment of the present application, and as shown in fig. 13, in an embodiment of the present application, there is provided an internet of things device 1300, including: a listening module 1301, a sending module 1302, and a receiving module 1303, wherein:
a monitoring module 1301, configured to monitor a second target port of the internet of things device;
the sending module 1302 is configured to send second target data to the virtual device when it is monitored that the second target port of the internet of things device receives the second target data, so that the virtual device sends the second target data to the client, where the second target data is data sent to the second target port by a preset source port of the internet of things device;
The receiving module 1303 is configured to receive, by the second target port, the first target data sent by the virtual device when the virtual device receives the first target data sent by the client.
According to the device data transmission device provided by the embodiment, the second target port of the internet of things device is monitored, and when the second target port of the internet of things device receives the second target data, the second target data is sent to the virtual device so that the virtual device can send the second target data to the client, wherein the second target data is data sent to the second target port by the preset source port of the internet of things device; and under the condition that the virtual equipment receives the first target data sent by the client, the second target port receives the first target data sent by the virtual equipment. The virtual device sends the second target data to the client under the condition that the Internet of things device monitors that the second target data is sent to the second target port by the preset source port, and receives the first target data sent by the client through the second target port, so that the client and the Internet of things device do not directly conduct data transmission, but complete data transmission through the virtual device. That is, in the data transmission process of the client and the internet of things device, the client and the internet of things device do not need to know information of each other, and a virtual private network is not required to be established between the internet of things device and the client. Therefore, the device data transmission device provided by the application avoids the problem of lower safety caused by that the client and the Internet of things device know the information of each other when the VPN is used for transmitting data at present, and improves the safety of data transmission between the client and the Internet of things device.
All or part of the modules in the internet of things device, the client and the virtual device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a device data transmission system is provided. Fig. 14 is a schematic diagram of a device data transmission system in the present application, as shown in fig. 14, a device data transmission system 1400 includes at least one client 1401, at least one virtual device 1402, and at least one internet of things device 1403.
Wherein, the client 1401 performs the steps of the method of any one of S201 to S203, S301 to S303, and S401 to S402, the virtual device 1402 performs the steps of the method of any one of S801 to S802, and S901 to S902, and the internet of things device 1403 performs the steps of the method of any one of S1001 to S1003.
Fig. 15 is an internal structure diagram of a computer device in the embodiment of the present application, and in the embodiment of the present application, a computer device is provided, where the computer device may be a client, a virtual device, or an internet of things device, and the internal structure diagram may be as shown in fig. 15. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing relevant data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a device data transmission method.
It will be appreciated by those skilled in the art that the structure shown in fig. 15 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application is applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (17)

1. A method for transmitting device data, applied to a client, the method comprising:
monitoring a first target port of the client;
under the condition that a first target port of the client receives first target data, the first target data is sent to virtual equipment, so that the virtual equipment sends the first target data to the Internet of things equipment, wherein the first target data is data sent to the first target port by a preset source port of the client;
And under the condition that the virtual equipment receives second target data sent by the Internet of things equipment, the first target port receives the second target data sent by the virtual equipment.
2. The method of claim 1, wherein the sending the first target data to the virtual device if the first target port of the client is heard to receive the first target data comprises:
determining a first source port of the client under the condition that the first target port of the client receives first target data;
determining a first target link between the client and the virtual device according to the first source port;
and transmitting the first target data to the virtual equipment through the streaming port of the client by utilizing the first target link.
3. The method of claim 2, wherein the determining a first target link between the client and the virtual device from the first source port comprises:
if the first target link does not exist between the client and the virtual equipment, a first link establishment command is sent to the virtual equipment; the first link establishment command is to instruct the virtual device and the client to establish the first target link based on the first source port.
4. The method of claim 2, wherein receiving, by the first destination port, the second destination data sent by the virtual device if the virtual device receives the second destination data sent by the internet of things device, comprises:
under the condition that the virtual equipment receives second target data sent by the Internet of things equipment, determining a second target link between the client and the virtual equipment according to the first target port;
and receiving the second target data through the first target port by using the second target link.
5. The method of claim 4, wherein the determining a second target link between the client and the virtual device from the first target port comprises:
if the second target link does not exist between the client and the virtual equipment, a second link establishment command is sent to the virtual equipment; the second link establishment command is to instruct the virtual device and the client to establish the second target link based on the first target port.
6. The method of any of claims 2-5, wherein the first target link and the second target link are links identified by a TCP four tuple, a TCP five tuple, or a TCP seven tuple.
7. The method of claim 6, wherein the first target link and the second target link distinguish protocols above a network transport layer through the first target port.
8. A device data transmission method, applied to a virtual device, the method comprising:
receiving first target data sent by a client, and sending the first target data to Internet of things equipment so that the Internet of things equipment receives the first target data; the first target data is data sent to the virtual device when the client monitors that a first target port of the client receives the first target data, and the first target data is data sent to the first target port by a preset source port of the client;
receiving second target data sent by the Internet of things equipment, and sending the second target data to the client so that the client receives the second target data; the second target data is data sent to the virtual device when the internet of things device monitors that a second target port of the internet of things device receives the second target data, and the second target data is data sent to the second target port by a preset source port of the internet of things device.
9. The method of claim 8, wherein the method further comprises:
receiving a first link establishment command sent by the client;
determining the internet of things equipment according to a target identifier in the first link establishment command and a first preset corresponding relation, so that the internet of things equipment determines a link between the client and the virtual equipment according to the second target port under the condition that the virtual equipment receives first target data sent by the client; the first preset corresponding relation comprises corresponding relations between different Internet of things devices and different identifications.
10. A device data transmission method, which is applied to an internet of things device, the method comprising:
monitoring a second target port of the Internet of things equipment;
under the condition that a second target port of the Internet of things equipment receives second target data, the second target data is sent to a virtual equipment, so that the second target data is sent to a client by the virtual equipment, and the second target data is data sent to the second target port by a preset source port of the Internet of things equipment;
And under the condition that the virtual equipment receives the first target data sent by the client, the second target port receives the first target data sent by the virtual equipment.
11. A client, the client comprising:
the monitoring module is used for monitoring a first target port of the client;
the device comprises a sending module, a first target port and a virtual device, wherein the sending module is used for sending first target data to the virtual device under the condition that the first target port of the client receives the first target data, so that the virtual device sends the first target data to the Internet of things device, and the first target data is data sent to the first target port by a preset source port of the client;
the receiving module is used for receiving the second target data sent by the virtual device by the first target port under the condition that the virtual device receives the second target data sent by the Internet of things device.
12. A virtual device, the virtual device comprising:
the first receiving and transmitting module is used for receiving first target data sent by a client and sending the first target data to the Internet of things equipment so that the Internet of things equipment can receive the first target data; the first target data is data sent to the virtual device when the client monitors that a first target port of the client receives the first target data, and the first target data is data sent to the first target port by a preset source port of the client;
The second receiving and transmitting module is used for receiving second target data sent by the Internet of things equipment and sending the second target data to the client so that the client can receive the second target data; the second target data is data sent to the virtual device when the internet of things device monitors that a second target port of the internet of things device receives the second target data, and the second target data is data sent to the second target port by a preset source port of the internet of things device.
13. The utility model provides an thing networking device which characterized in that, thing networking device includes:
the monitoring module is used for monitoring a second target port of the Internet of things equipment;
the sending module is used for sending second target data to the virtual equipment under the condition that the second target port of the internet of things equipment receives the second target data, so that the virtual equipment sends the second target data to the client, and the second target data is data sent to the second target port by the preset source port of the internet of things equipment;
and the receiving module is used for receiving the first target data sent by the virtual equipment by the second target port under the condition that the virtual equipment receives the first target data sent by the client.
14. The device data transmission system is characterized by comprising at least one Internet of things device, at least one client and at least one virtual device;
the client performs the steps of the method of any one of claims 1 to 7, the virtual device performs the steps of the method of claim 8 or 9, and the internet of things device performs the steps of the method of claim 10.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 10 when the computer program is executed.
16. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 10.
17. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any one of claims 1 to 10.
CN202211200727.5A 2022-09-29 2022-09-29 Equipment data transmission method, client, virtual equipment and Internet of things equipment Pending CN117834161A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211200727.5A CN117834161A (en) 2022-09-29 2022-09-29 Equipment data transmission method, client, virtual equipment and Internet of things equipment
PCT/CN2023/123228 WO2024067882A1 (en) 2022-09-29 2023-10-07 Methods, systems, and devices for data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211200727.5A CN117834161A (en) 2022-09-29 2022-09-29 Equipment data transmission method, client, virtual equipment and Internet of things equipment

Publications (1)

Publication Number Publication Date
CN117834161A true CN117834161A (en) 2024-04-05

Family

ID=90476447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211200727.5A Pending CN117834161A (en) 2022-09-29 2022-09-29 Equipment data transmission method, client, virtual equipment and Internet of things equipment

Country Status (2)

Country Link
CN (1) CN117834161A (en)
WO (1) WO2024067882A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208072B (en) * 2015-08-06 2019-09-06 杭州数梦工场科技有限公司 The long-range control method and device of virtual switch
WO2018214168A1 (en) * 2017-05-26 2018-11-29 西门子公司 Data transmission method and apparatus
CN108966319B (en) * 2018-06-08 2021-02-09 深圳海翼智新科技有限公司 Data packet transmission control method, mobile terminal and device
CN109327513B (en) * 2018-09-21 2021-12-17 京东方科技集团股份有限公司 Interaction method, interaction device and computer-readable storage medium
CN113794715B (en) * 2021-09-13 2023-06-30 福达新创通讯科技(厦门)有限公司 Virtual point-to-point network data transmitting method and system

Also Published As

Publication number Publication date
WO2024067882A1 (en) 2024-04-04

Similar Documents

Publication Publication Date Title
US10630784B2 (en) Facilitating a secure 3 party network session by a network device
US10305904B2 (en) Facilitating secure network traffic by an application delivery controller
AU2020307540B2 (en) Securing communications between services in a cluster using load balancing systems and methods
EP3739826B1 (en) Communication method, system and apparatus
US20190207891A1 (en) Selective distribution of messages in a scalable, real-time messaging system
US11683160B2 (en) Encrypted group communications
US9654445B2 (en) Network traffic filtering and routing for threat analysis
CN108964893B (en) Key processing method, device, equipment and medium
US10581804B2 (en) End-to-end caching of secure content via trusted elements
US10735453B2 (en) Network traffic filtering and routing for threat analysis
US11558185B2 (en) Stream-based key management
US20180270331A1 (en) System and method for implementing augmented object members for remote procedure call
CN113221146A (en) Method and device for data transmission between block chain nodes
Viana-Ferreira et al. Dicoogle relay-a cloud communications bridge for medical imaging
DE112021006319T5 (en) HIGHLY AVAILABLE CRYPTOGRAPHIC KEYS
US11233707B2 (en) Metadata-based information provenance
US10938960B2 (en) System and method for implementing augmented object members for remote procedure call
WO2018032499A1 (en) Load balancing method and associated device
CN117834161A (en) Equipment data transmission method, client, virtual equipment and Internet of things equipment
Naik et al. Security attacks on information centric networking for healthcare system
CN113923167A (en) Data transmission optimization method in federal learning
CN115152181A (en) Encrypted overlay network for physical attack resistance
CN106060155A (en) P2P (Peer to Peer) resource sharing method and device
CN111797417A (en) File uploading method and device, storage medium and electronic device
Abirami et al. A Survey on analysis of chronic diseases prediction in Big Health care data using IoT-WBANs

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