CN114390037A - Method and system for terminal to access home network equipment - Google Patents
Method and system for terminal to access home network equipment Download PDFInfo
- Publication number
- CN114390037A CN114390037A CN202210032004.2A CN202210032004A CN114390037A CN 114390037 A CN114390037 A CN 114390037A CN 202210032004 A CN202210032004 A CN 202210032004A CN 114390037 A CN114390037 A CN 114390037A
- Authority
- CN
- China
- Prior art keywords
- terminal
- channel
- home network
- network equipment
- intermediate server
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
- H04L67/1046—Joining mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and a system for accessing home network equipment by a terminal, relates to the technical field of internet information communication, and can judge whether the local area network or the public network is currently located according to the received real-time connection states of a local area network direct connection channel, a relay forwarding channel and a P2P direct connection channel, and further select an optimal channel as a transmission channel of subsequent data. The invention can solve the problems of automatically selecting the optimal transmission channel and realizing seamless switching among the transmission channels under different network states, and finally realizes the purposes of smooth access communication, increased user experience, fast transmission efficiency improvement and data security protection.
Description
Technical Field
The invention relates to the technical field of internet information communication, in particular to a method and a system for accessing home network equipment by a terminal.
Background
The home network device is connected to the Internet (Internet), and the terminal (such as a smart phone, a personal computer, a browser and the like) can remotely access the service provided by the home network device. The Internet network may be a Global System for Mobile communications (GSM) network, a General Packet Radio Service (GPRS) network, a Code Division Multiple Access (CDMA) network, a Wideband Code Division Multiple Access (WCDMA) network, a Long Term Evolution (LTE) network, or a fifth generation Mobile communication System (5G) network. Currently, the way for the terminal to access the home network device includes: 1. the terminal is directly accessed through the Internet. Specifically, when an Internet Protocol Address (IP Address) of a Wide Area Network (WAN) interface of the home gateway is a public network Address, the terminal may access the home gateway through the public network Address and further access a home network device located on a Local Area Network (LAN) side of the home gateway. In a local area network, i.e., an intranet, a computer accesses the Internet through a public gateway by using an NAT (network address translation) protocol, and can transmit a connection request to another computer on the Internet, but the other computer on the Internet cannot transmit a connection request to the computer on the intranet. The IP address obtained by the computer accessing the Internet through the intranet is a reserved address on the Internet. The public network is an intranet, and an IP address obtained by a computer accessing the internet through the public network is a public address of the internet and is an unreserved address. Computers on the public network and other computers on the internet are freely accessible to each other. 2. The terminal and the home network device join the same virtual Private network through a VPN (virtual Private network) technology, and further access the home network device located in the virtual Private network.
In summary, the existing mode for accessing the home network device by the terminal is single, and a mode for realizing more stable and efficient information transmission and ensuring user experience when the two are in different network states is not provided.
Disclosure of Invention
The invention aims to provide a method and a system for accessing home network equipment by a terminal, which solve the problems of automatically selecting an optimal transmission channel and realizing seamless switching between transmission channels in different network states, and finally realize the purposes of smooth access communication, increased user experience, fast improvement of transmission efficiency and data security protection.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for accessing home network equipment by a terminal is based on a system, the system comprises the terminal, a network management service module, the home network equipment, an intermediate server and transparent gateways positioned at the terminal side and the home network equipment side, the method comprises the following steps:
three kinds of connected network channels are preset between the transparent gateway at the terminal side and the transparent gateway at the home network equipment side: the system comprises a local area network direct connection channel, a relay forwarding channel and a P2P direct connection channel, wherein the local area network direct connection channel is a channel for directly carrying out data transmission between a terminal and home network equipment under a local area network, the relay forwarding channel is a channel for carrying out data transmission between the terminal and the home network equipment under a public network through an intermediate server, and the P2P direct connection channel is a channel for directly carrying out data transmission between the terminal and the home network equipment under the public network based on P2P communication;
when the terminal is started, a request for establishing the connection of the three network channels is sent out through the transparent gateway;
and the network management service module judges whether the current network is a local area network or a public network according to the received real-time connection states of the three network channels, and then selects an optimal channel from the three network channels as a transmission channel of subsequent data.
Further, when one of the three network channels is selected as the optimal channel, the other two network channels are used as selectable items participating in subsequent data transmission.
Further, for the lan direct connection channel, when the home network device provides an HTTPS interface, the method of establishing the lan direct connection channel is: the terminal sends a calling request of a domain name interface to the intermediate server, the intermediate server forwards the calling request to the home network equipment, the home network equipment sends the IP address of the home network equipment to the intermediate server according to the calling request, and the intermediate server sends the IP address to the terminal; and the terminal calls the status interface corresponding to the IP address, and if the status interface is smoothly called, a direct connection channel of the local area network is established.
Furthermore, a fixed time timer is preset when the terminal calls the status interface, and polling calling is performed.
Further, for the lan direct connection channel, when the home network device does not provide the HTTPS interface, the method of establishing the lan direct connection channel is: the terminal sends a calling request of a domain name interface to the intermediate server, the intermediate server forwards the calling request to the home network equipment, the home network equipment sends the IP address of the home network equipment to the intermediate server according to the calling request, and the intermediate server sends the IP address to the terminal; and the terminal uses the WebRTC to send a UDP data packet to the IP address, and if the home network equipment or the terminal returns a data response packet normally, the terminal and the home network equipment are in the same local area network to establish a direct connection channel of the local area network.
Further, a fixed time timer is preset when the terminal sends the UDP data packet, and polling calling is carried out.
Further, for the relay channel, the method for establishing the relay channel is as follows: the home network equipment sends a connection request to the intermediate server based on three-way handshake of a TCP protocol; the terminal sends command request information to the intermediate server, and the intermediate server receives the command request information and forwards the command request information to the home network equipment; after receiving the command request message, the home network device returns a message to the intermediate server; and the intermediate server forwards the return information to the terminal after receiving the return information.
Further, for the relay channel, the connection mode of the TCP is a long connection based on a heartbeat protection mechanism.
Further, for the P2P direct channel, the method for establishing the P2P direct channel is as follows: the home network equipment sends a connection request to an intermediate server through NAT based on UDP protocol, and the intermediate server uses STUN protocol; the terminal sends a connection request to an intermediate server through NAT based on UDP protocol, the intermediate server sends the acquired public network IP address and port information of the home network equipment to the terminal, and sends the public network IP address and the port information of the terminal to the home network equipment to establish mutual trust relationship; the terminal directly sends command request information to the home network equipment; the home network device directly feeds back the returned command request information to the terminal.
A system for accessing home network equipment by a terminal comprises the terminal, a network management service module, the home network equipment, an intermediate server and transparent gateways positioned at the terminal side and the home network equipment side; the terminal is a carrier for accessing home network equipment; the transparent gateway is an internetwork connector provided with a transparent proxy, and the transparent gateways positioned at the terminal side and the home network equipment side are connected through three network channels, namely a local area network direct connection channel, a relay forwarding channel and a P2P direct connection channel; the local area network direct connection channel is a channel for directly carrying out data transmission between the terminal and the home network equipment under the local area network, the relay forwarding channel is a channel for carrying out data transmission between the terminal and the home network equipment under the public network through an intermediate server, and the P2P direct connection channel is a channel for directly carrying out data transmission between the terminal and the home network equipment under the public network based on P2P communication; the network management service module is used for providing network management service, judging whether the current local area network or the public network is located according to the received real-time connection states of the three network channels, and further selecting an optimal channel from the three network channels as a transmission channel of subsequent data; the intermediate server is used for forwarding the interactive data between the terminal and the home network equipment.
Drawings
Fig. 1 is a schematic diagram of a system for a terminal to access a home network device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a local area network direct connection channel in an embodiment of the present invention;
FIG. 3 is a diagram illustrating a first manner of establishing LAN connectivity according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a second manner of establishing LAN connectivity according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a relay forwarding path in the embodiment of the present invention;
fig. 6 is a schematic diagram of a P2P direct channel in an embodiment of the present invention.
Detailed Description
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.
Embodiments of the present invention provide a method and a system for a terminal to access a home network device, so that the terminal can quickly, reliably, and safely access the home network device in different network states (a public network or a local area network), which is described in the following.
1. System for terminal access home network equipment
The system for accessing the home network device by the terminal provided by the embodiment of the invention comprises the terminal, a network management service module, the home network device, an intermediate server and transparent gateways positioned at the terminal side and the home network device side, wherein the transparent gateways at the two sides are connected through three network channels, as shown in fig. 1. The terminal refers to a carrier capable of accessing home network equipment, and includes but is not limited to a mobile phone, a computer and a browser. The transparent gateway is an internetwork connector provided with a transparent proxy, and for convenience of description, the transparent gateway 1 located on the terminal side is referred to in the present invention, and the transparent gateway 2 located on the home network device side is referred to in the present invention. The transparent gateway 1 can be integrated on the terminal, or can exist independently, and is used for realizing the purpose that the terminal accesses the home network device by accessing the transparent gateway 1. The transparent gateway 2 can be integrated on the home network device, or can exist independently, and is used for realizing the purpose that the home network device accesses the transparent gateway 2 to access the terminal. The network management service module is used for providing network management service and managing and distributing the network channels between the two current transparent gateways according to the network state. The network channel is a transmission link for communication between the transparent gateways at two sides, and provides three network channel options, namely a local area network direct connection channel, a P2P direct connection channel and a middle-level forwarding channel. The home network device may be a built-in unit or may be an independent device. The intermediate server is used for forwarding interactive data between the terminal and the home network device, such as IP address information, request information, response information, command information, and the like.
2. Method for terminal to access home network equipment
The method for accessing the home network device by the terminal provided by the embodiment of the invention is realized based on the system, and comprises the following steps:
when the terminal is started, the three network channels simultaneously request to establish connection;
the network management service reasonably distributes the optimal channel in the subsequent transmission according to the received real-time connection state; the optimal channel is the relatively most stable and most efficient network channel in the current network state, and is selected for realizing accelerated data transmission, optimizing the use effect and ensuring the use experience of a user;
when a terminal sends an access request to home network equipment, a transparent gateway 1 sends the access request to an opposite terminal through an optimal transmission network channel selected by a network state service;
if the local area network direct connection channel is successfully connected, a signal is sent to the network management service, after the network management service receives the signal, the current network state can be identified to be a local area network environment, and the transparent gateway 1 sets the channel as an optimal channel in subsequent transmission;
if the relay forwarding channel is successfully connected, the connection state is continuously maintained in the whole process according to a heartbeat protection mechanism, and smooth transmission of data is ensured;
if the P2P direct connection channel is successfully connected and the network management service receives the connection request, the transparent gateway 1 recognizes that the current network state is the public network environment, and sets the channel as the optimal channel for subsequent transmission;
as an optional case, one network channel is used as an optimal channel, and other network channels may also be used for transmission of subsequent data, for example, when the P2P direct connection channel is successfully connected, the P2P direct connection channel and the relay forwarding channel may be simultaneously used for transmission of subsequent data, so as to implement accelerated data transmission from the terminal to the home network device. The three network channels do not have a fixed priority ranking order, and the subsequent data can be transmitted singly or in multiple simultaneous transmission under the condition that the respective connection conditions are met.
3. Direct connection channel of local area network
When the connection is applicable to the direct connection channel of the local area network, the connection between the terminal and the home network device may be established based on a TCP protocol or a UDP protocol. As shown in fig. 2, when the terminal and the home network device are in the same network environment (local area network), the terminal establishes a connection with the home network device through a TCP protocol, and after the connection is smooth, the terminal directly sends a connection request to the home network device, and the terminal and the home network device can directly access each other and transmit command information. Because the terminal can be a mobile phone, a computer, a Web browser or the like, the local area network direct connection channel comprises two methods (detection connection methods) for establishing the local area network direct connection channel according to different configurations of home network equipment:
the first way is shown in fig. 3, and the specific embodiment is as follows: when the home network device provides an HTTPS interface, it is assumed that IP addresses of a plurality of network cards of the home network device are: 192.168.1.100 and 192.168.1.200, the terminal sends an interface request for calling domain names such as https://1234.domain.com/localips to the intermediate Server, the Network Transit Server forwards the request information to the home Network device after receiving the request information, the home Network device automatically acquires device IP addresses, namely 192.168.1.100 and 192.168.1.200, and then the home Network device returns the addresses to the Network Transit Server and forwards the addresses to the terminal by the Network Transit Server; after receiving the returned IP address information, the terminal can automatically call the corresponding status interface under the IP address, such as http://192.168.1.100/status and http://192.168.1.200/status, if a certain interface is called smoothly, the communication is proved to be successful, and the network state can be judged according to the address of the successfully called interface. When the terminal calls the status interface, a fixed time timer is preset, and polling calls are performed, for example, the time interval may be set to 30s or 10 s.
The second way is shown in fig. 4, and the specific embodiment is as follows: when the home network device does not provide the HTTPS interface, it is assumed that IP addresses of a plurality of network cards of the home network device are: 192.168.1.100 and 192.168.1.200, the terminal sends an interface request for calling domain names such as https://1234.domain.com/localips to the intermediate Server, the Network Transit Server forwards the request information to the home Network device after receiving the request information, the home Network device automatically acquires device IP addresses such as 192.168.1.100 and 192.168.1.200 after receiving the request information, and then the home Network device returns the addresses to the Network Transit Server and forwards the addresses to the terminal by the Network Transit Server; the terminal uses a WebRTC (Web Real-Time Communication, namely an API (application program interface) which is originated from webpage instant messaging and supports a webpage browser to carry out Real-Time voice conversation or video conversation) technology to send a UDP (user Datagram protocol) data packet to the local area network IP address, and if the home network equipment side or the terminal side returns a data response packet normally, the terminal and the home network equipment are in the same local area network. Here, a fixed time timer is preset when the terminal sends the UDP packet, and the polling call is performed, for example, the time interval may be set to 30s or 10 s.
4. Relay forwarding channel
When the connection is suitable for the relay forwarding path, the terminal, the intermediate server, and the home network device may establish the connection based on the TCP protocol. As shown in fig. 5, when the terminal and the home Network device are in a public Network, a data transmission path Control-connection is established inside the Network Transit Server. Firstly, the home Network equipment sends a connection request to a Three-Way Handshake (Three-Way Handshake, which means that when a TCP connection is established, a client and a Server are required to send 3 packets in total to confirm the establishment of the connection) of a Network Transit Server based on a TCP protocol; secondly, the terminal sends command request information (Data-transmitting, namely, the function request information sent by the terminal to the home Network device, including but not limited to commands of deleting, moving, checking, renaming, etc.) to the Network Transit Server; thirdly, the Network Transit Server transmits the command information to the home Network equipment after receiving the command request information; fourthly, the home Network equipment carries out confirmation processing after receiving the forwarded command request information and then transmits the information to the Network Transit Server through the established data transmission path Private-connection; and fifthly, after receiving the information returned by the home Network equipment, the Network Transit Server forwards the information to the terminal through the established data-connection.
The connection mode of the TCP can be kept as long connection, a heartbeat protection mechanism of high-efficiency long connection can be maintained, so that disconnection of the connection state can be avoided generally even in a diversified real network environment state, reconnection can be carried out after the disconnection, the access mode can be kept in the connection state all the time, and the use experience of a user is guaranteed.
5. P2P direct channel
When the connection is adapted to the P2P direct channel, the connection of the terminal to the home network device is established based on the UDP protocol, as is the connection of the intermediate server to the home network device. As shown in fig. 6, when the terminal and the home network device are in the public network, in the first step, P2P (i.e. peer-to-peer network, which means that each device in the network is in a peer-to-peer status, and each device can act as a requester of network service and provide resources and services in response to the requests of other devices) communication mode, the home network device sends a connection request to the intermediate server through the NAT based on the UDP protocol. The intermediate Server Network Transit Server uses STUN Protocol, STUN (Simple Traversal of user Datagram Protocol Through Network Address translations or Session Traversal applications for NAT) is a Network Protocol, simply uses UDP to traverse the NAT, is a lightweight Protocol, and is a complete solution based on UDP to traverse the NAT. The method allows a client positioned behind the NAT (or multiple NATs) to find out the own public network address, find out which type of NAT the client is positioned behind and find out the Internet port bound by the NAT as a certain local port. This information is used to create UDP communications between two hosts that are simultaneously behind a NAT router. Secondly, the terminal sends a connection request to a Network Transit Server through the NAT based on a UDP protocol, and at the moment, the Network Transit Server acquires public Network IP and port information of both parties and exchanges the information of both parties (the IP and the port information of the home Network equipment are sent to the terminal and the IP and the port information of the terminal are sent to the home Network equipment.) based on successful communication of the information of both parties, so that a mutual trust relationship is established. Step three, the command request information sent by the terminal to the home network equipment can be directly transmitted to the home network equipment; and fourthly, directly feeding back the command request information returned by the home network equipment to the terminal. After the information exchange channels of the two parties are established, the UDP connection established between the terminal and the Network Transit Server can be automatically disconnected without influencing the information transmission between the terminal and the home Network equipment. The data does not need a third-party server to forward the command information any more, the data security is further improved, the command information is processed/transmitted more efficiently and quickly, the time and the transmission resources of the communication system are saved, and the remote management of a user is facilitated.
Although the present invention has been described with reference to the above embodiments, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method for accessing home network equipment by a terminal is based on a system, the system comprises the terminal, a network management service module, the home network equipment, an intermediate server and transparent gateways positioned at the terminal side and the home network equipment side, and is characterized by comprising the following steps:
three kinds of connected network channels are preset between the transparent gateway at the terminal side and the transparent gateway at the home network equipment side: the system comprises a local area network direct connection channel, a relay forwarding channel and a P2P direct connection channel, wherein the local area network direct connection channel is a channel for directly carrying out data transmission between a terminal and home network equipment under a local area network, the relay forwarding channel is a channel for carrying out data transmission between the terminal and the home network equipment under a public network through an intermediate server, and the P2P direct connection channel is a channel for directly carrying out data transmission between the terminal and the home network equipment under the public network based on P2P communication;
when the terminal is started, a request for establishing the connection of the three network channels is sent out through the transparent gateway;
and the network management service module judges whether the current network is a local area network or a public network according to the received real-time connection states of the three network channels, and then selects an optimal channel from the three network channels as a transmission channel of subsequent data.
2. The method of claim 1, wherein, when one of the three network channels is selected as the optimal channel, the other two network channels serve as selectable items for participating in subsequent data transmission.
3. The method of claim 1, wherein for the lan direct channel, when the home network device provides an HTTPS interface, the method of establishing the lan direct channel is: the terminal sends a calling request of a domain name interface to the intermediate server, the intermediate server forwards the calling request to the home network equipment, the home network equipment sends the IP address of the home network equipment to the intermediate server according to the calling request, and the intermediate server sends the IP address to the terminal; and the terminal calls the status interface corresponding to the IP address, and if the status interface is smoothly called, a direct connection channel of the local area network is established.
4. The method of claim 3, wherein a fixed time timer is preset when the terminal calls the status interface to perform the polling call.
5. The method of claim 1, wherein for the lan-direct channel, when the home network device does not provide the HTTPS interface, the method of establishing the lan-direct channel is: the terminal sends a calling request of a domain name interface to the intermediate server, the intermediate server forwards the calling request to the home network equipment, the home network equipment sends the IP address of the home network equipment to the intermediate server according to the calling request, and the intermediate server sends the IP address to the terminal; and the terminal uses the WebRTC to send a UDP data packet to the IP address, and if the home network equipment or the terminal returns a data response packet normally, the terminal and the home network equipment are in the same local area network to establish a direct connection channel of the local area network.
6. The method of claim 5, wherein a fixed time timer is preset when the terminal transmits the UDP packet, and the polling call is performed.
7. The method of claim 1, wherein for the relaying channel, the method for establishing the relaying channel comprises: the home network equipment sends a connection request to the intermediate server based on three-way handshake of a TCP protocol; the terminal sends command request information to the intermediate server, and the intermediate server receives the command request information and forwards the command request information to the home network equipment; after receiving the command request message, the home network device returns a message to the intermediate server; and the intermediate server forwards the return information to the terminal after receiving the return information.
8. The method according to claim 1 or 7, characterized in that for the relay channel, the connection mode of TCP is long connection based on heartbeat protection mechanism.
9. The method of claim 1, wherein for the P2P direct channel, the method for establishing the P2P direct channel is: the home network equipment sends a connection request to an intermediate server through NAT based on UDP protocol, and the intermediate server uses STUN protocol; the terminal sends a connection request to an intermediate server through NAT based on UDP protocol, the intermediate server sends the acquired public network IP address and port information of the home network equipment to the terminal, and sends the public network IP address and the port information of the terminal to the home network equipment to establish mutual trust relationship; the terminal directly sends command request information to the home network equipment; the home network device directly feeds back the returned command request information to the terminal.
10. A system for accessing home network equipment by a terminal is characterized by comprising the terminal, a network management service module, the home network equipment, an intermediate server and transparent gateways positioned at the terminal side and the home network equipment side; the terminal is a carrier for accessing home network equipment; the transparent gateway is an internetwork connector provided with a transparent proxy, and the transparent gateways positioned at the terminal side and the home network equipment side are connected through three network channels, namely a local area network direct connection channel, a relay forwarding channel and a P2P direct connection channel; the local area network direct connection channel is a channel for directly carrying out data transmission between the terminal and the home network equipment under the local area network, the relay forwarding channel is a channel for carrying out data transmission between the terminal and the home network equipment under the public network through an intermediate server, and the P2P direct connection channel is a channel for directly carrying out data transmission between the terminal and the home network equipment under the public network based on P2P communication; the network management service module is used for providing network management service, judging whether the current local area network or the public network is located according to the received real-time connection states of the three network channels, and further selecting an optimal channel from the three network channels as a transmission channel of subsequent data; the intermediate server is used for forwarding the interactive data between the terminal and the home network equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210032004.2A CN114390037A (en) | 2022-01-12 | 2022-01-12 | Method and system for terminal to access home network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210032004.2A CN114390037A (en) | 2022-01-12 | 2022-01-12 | Method and system for terminal to access home network equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114390037A true CN114390037A (en) | 2022-04-22 |
Family
ID=81201447
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210032004.2A Pending CN114390037A (en) | 2022-01-12 | 2022-01-12 | Method and system for terminal to access home network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114390037A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118524A (en) * | 2022-08-22 | 2022-09-27 | 南京沁恒微电子股份有限公司 | Interface equipment and free intercommunication data transparent transmission method, system and device of Internet of things |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070286100A1 (en) * | 2006-06-09 | 2007-12-13 | Mika Juhani Saaranen | Local discovery of mobile network services |
CN105407369A (en) * | 2015-11-17 | 2016-03-16 | 青岛海信电器股份有限公司 | Web application based terminal communication method and device |
CN105681445A (en) * | 2016-02-04 | 2016-06-15 | 福建星网锐捷通讯股份有限公司 | Method and device for selecting point-to-point transmission path of data |
CN105721570A (en) * | 2016-02-04 | 2016-06-29 | 福建星网锐捷通讯股份有限公司 | Point to point data transmission method and device |
CN106878474A (en) * | 2017-04-25 | 2017-06-20 | 浙江风向标科技有限公司 | The method and apparatus that a kind of P2P connections are set up |
CN107347110A (en) * | 2016-05-06 | 2017-11-14 | 杭州云沣科技有限公司 | Intelligent terminal tele-control system |
CN109274634A (en) * | 2017-07-18 | 2019-01-25 | 腾讯科技(深圳)有限公司 | Multimedia communication method and device, storage medium |
-
2022
- 2022-01-12 CN CN202210032004.2A patent/CN114390037A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070286100A1 (en) * | 2006-06-09 | 2007-12-13 | Mika Juhani Saaranen | Local discovery of mobile network services |
CN105407369A (en) * | 2015-11-17 | 2016-03-16 | 青岛海信电器股份有限公司 | Web application based terminal communication method and device |
CN105681445A (en) * | 2016-02-04 | 2016-06-15 | 福建星网锐捷通讯股份有限公司 | Method and device for selecting point-to-point transmission path of data |
CN105721570A (en) * | 2016-02-04 | 2016-06-29 | 福建星网锐捷通讯股份有限公司 | Point to point data transmission method and device |
CN107347110A (en) * | 2016-05-06 | 2017-11-14 | 杭州云沣科技有限公司 | Intelligent terminal tele-control system |
CN106878474A (en) * | 2017-04-25 | 2017-06-20 | 浙江风向标科技有限公司 | The method and apparatus that a kind of P2P connections are set up |
CN109274634A (en) * | 2017-07-18 | 2019-01-25 | 腾讯科技(深圳)有限公司 | Multimedia communication method and device, storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115118524A (en) * | 2022-08-22 | 2022-09-27 | 南京沁恒微电子股份有限公司 | Interface equipment and free intercommunication data transparent transmission method, system and device of Internet of things |
CN115118524B (en) * | 2022-08-22 | 2022-11-15 | 南京沁恒微电子股份有限公司 | Interface equipment and free intercommunication data transparent transmission method, system and device of Internet of things |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190342117A1 (en) | Method for controlling a remote service access path and relevant device | |
KR101571925B1 (en) | Multipoint conference device and switching method from multipoint conference to point-to-point communication | |
CN105376299B (en) | Network communication method, equipment and network attached storage equipment | |
US10637831B2 (en) | Method and apparatus for transmitting network traffic via a proxy device | |
WO2020248963A1 (en) | Method and apparatus for establishing end-to-end network connection, and network system | |
EP1890424A1 (en) | A system and method for achieving the data communication | |
US20120033616A1 (en) | Mobile terminal and peer-to-peer mode based data transmission method thereof | |
JP2016500234A (en) | Browser emergency call method, system and mobile device in real-time communication | |
KR20080019717A (en) | System and method for establishing peer to peer connections between pcs and smart phones using networks with obstacles | |
CN111770140A (en) | Communication method, user equipment and proxy server cluster | |
CN101964785A (en) | Method, terminal and system for transmitting file between SIP (Session Initiation Protocol) terminals in NAT (Network Address Translation) network | |
WO2013040970A1 (en) | Relay node selecting method and device | |
CN103107983A (en) | Data management method of network system and related system thereof | |
JP2019525578A (en) | Efficient forwarding of encapsulated media traffic through a datagram-based transport layer | |
CN111092802A (en) | Message interaction method, sending equipment and receiving equipment | |
Sumino et al. | Design and implementation of P2P protocol for mobile phones | |
CN114390037A (en) | Method and system for terminal to access home network equipment | |
WO2011038639A1 (en) | Realizing method for end-to-end instant messaging, terminal and system for end-to-end instant messaging | |
CN102984186A (en) | A method and an apparatus for establishing a session | |
CN104660550A (en) | Method for performing session migration among plurality of servers | |
JP2013153438A (en) | Method for establishing communication connection over internet between mobile terminals, computer program, and storage medium | |
US11671487B1 (en) | Port prediction for peer-to-peer communications | |
WO2013040277A1 (en) | Transmitting data over multiple networks | |
US8812694B2 (en) | Dialog establishment over a peer-to-peer architecture | |
KR101224557B1 (en) | System, client device, and method for keep-alive communication |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20220422 |
|
WD01 | Invention patent application deemed withdrawn after publication |