CN101741927A - Remote control method for passing through NAT device - Google Patents

Remote control method for passing through NAT device Download PDF

Info

Publication number
CN101741927A
CN101741927A CN200910312181A CN200910312181A CN101741927A CN 101741927 A CN101741927 A CN 101741927A CN 200910312181 A CN200910312181 A CN 200910312181A CN 200910312181 A CN200910312181 A CN 200910312181A CN 101741927 A CN101741927 A CN 101741927A
Authority
CN
China
Prior art keywords
user terminal
remote control
router
public network
terminal
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
CN200910312181A
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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN200910312181A priority Critical patent/CN101741927A/en
Publication of CN101741927A publication Critical patent/CN101741927A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a network technique and provides a remote control method for passing through an NAT (Network Address Translation) device applied to an IPTV (Internet Protocol Television) set top box. The remote control method for passing through an NAT device comprises the following steps of: transmitting a data packet containing a user terminal MAC (Medium Access Control) address to a public network server by a user terminal; requiring the public network server to return a public network IP address and a port number of the user terminal corresponding to the user terminal MAC address by a remote control end; transmitting connection data to the user terminal by the remote control end; abandoning the connection data by a user terminal router; requiring the public network server to transmit a command to the user terminal by the remote control end, wherein the command enables the user terminal to initiatively transmit connection data to the remote control end; and transmitting connection data to the remote control end and establishing connection with the remote control end successfully by the user terminal. The invention ensures that the remote control end can successfully access the user terminal in different intranets, thereby reducing the maintenance cost.

Description

The long-range control method of cross-over NAT equipment
Technical field
The present invention relates to network technology.
Background technology
Along with popularizing of IPTV (Web TV) set-top box, its later maintenance becomes a difficult problem of puzzlement producer, and solving a simple problem often needs the engineer to arrive fault in-situ, exists the efficient of dealing with problems low, the shortcoming that maintenance cost is high.But because the IPTV set-top box is different with traditional DVB set-top box, be based on the network equipment that is linked into Internet of ICP/IP protocol stack exploitation, make that solving the IPTV set-top box failure by network remote becomes possibility.
Summary of the invention
Technical problem to be solved by this invention is that a kind of long-range control method of cross-over NAT equipment of the IPTV of being applicable to set-top box is provided.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, the long-range control method of cross-over NAT equipment, user terminal, remote control terminal are in two independent Intranets, the router of user terminal place Intranet is the user side router, the router of remote control terminal place Intranet is the control end router, user side router and control end router are NAT device, may further comprise the steps:
After a, user terminal powered on, user terminal sent the packet that includes the user terminal MAC Address through the user side router to public network server;
B, remote control terminal return the public network IP address and the port numbers of described user terminal MAC Address corresponding user terminal through control end router solicitation public network server;
After c, remote control terminal receive the public network IP address and port numbers of user terminal, send the connection data to user terminal through the control end router; The user side router abandons described connection data;
After d, remote control terminal detected and send described connection data failure, the request public network server sent instruction to user terminal, and described instruction connects data for allowing user terminal initiatively send to remote control terminal;
E, public network server send described instruction to user terminal;
F, user terminal send to remote control terminal through user side router, control end router and connect data;
G, user terminal and remote control terminal successfully connect.
Further, all adopt udp protocol to communicate among the step a to f.
Though the user side router does not have record because of the public network IP address and the port numbers of remote control terminal among the step c in the NAT of user side router buffer memory, and the connection data have been abandoned, but this moment, the public network IP address and the port numbers of user terminal had record in the NAT of control end router buffering, and the data that user terminal sends to remote control terminal then can be forwarded on the remote control terminal by the controlled terminal router; Behind the completing steps f, the public network IP address and the port numbers of remote control terminal have also been stayed in the NAT buffer memory of user side router, then the remote control terminal data that send to user terminal also can successfully be forwarded on the user terminal by the user side router, and remote control terminal and user terminal can not launch proper communication by public network server.Because network topology is very complicated, the Intranet IP address of different Intranet lower network equipment is probably identical.So infeasible with IP as the keyword of long-range connection, and MAC Address is globally unique, in step a and step b, with the keyword of user terminal MAC Address as each user terminal of difference.Further, connect as using Transmission Control Protocol, it is big to carry out difficulty between two different Intranets, and udp protocol is towards connectionless, can simplify connection procedure, improve and connect into power.
The invention has the beneficial effects as follows, make remote control terminal energy successful access be in the user terminal of different Intranets, reduce maintenance cost.
Description of drawings
Fig. 1 is the embodiment schematic diagram.
Embodiment
As shown in Figure 1, user terminal B (IPTV set-top box), remote control terminal A are in two independent Intranets, public network server C is the third party who has a fixed ip address on the public network, the router of user terminal place Intranet is user side router Rb, the router of remote control terminal place Intranet is control end router Ra, and Rb and Ra are cone type NAT device.
At first, B start, its built-in remote-control service program can initiatively be encapsulated in the MAC Address 12:34:56:78:9A:BC of B in the UDP message message and in public network IP be 22.22.12.34, port numbers is 3333 C transmission.When B mail to the packet process Rb of C, by the NAT conversion, source purpose IP had been become the public network IP address 33.33.12.34 of Rb by interior net address 192.168.12.34.Source port has become 4444 by 5555.This public network IP and port are the live network address of B on public network.Because the network at C place is a public network, the situation of NAT packet discard can not occur simultaneously, send to its data so C can receive B, and the public network IP 33.33.12.34 of record B, public network port 4444.
When B breaks down, remote control terminal A need sign in to B when going up.A at first transmit a request to the real IP and the port of C inquiry B place public network.Because C is at public network, thus the data that A sends can be received, and tell A with real IP 33.33.12.34 and the port 4444 of B.After A receives the real IP and port of B, at first attempt sending connection request to the 33.33.12.34:4444 port.Because the address of A does not have record in the NAT of Rb buffer memory, so this moment, A can directly be abandoned by the NAT of Rb to the bag that B sends, but this moment B the address in the NAT of Ra buffer memory, record has been arranged, the packet that this moment, B mail to A can be forwarded on the A in the Intranet by NAT.
When A detected directly to B transmission data failure, it just sent packet to C.Request C sends a request to B, and request content is that B initiatively sends connection to A.Because before B and the C log is arranged successfully before, promptly the address of C is in the NAT of Rb buffer memory.So being sent to the data of B, C can be transmitted arrival B by NAT.
After B receives the request of C, promptly initiatively initiate to connect to A, this moment Ra the NAT buffer memory in because of the address information of B is arranged, can transmit the packet arrival A that B sends.And also stayed the address information of A in this process in the NAT buffer memory of Rb, so this moment, A also can arrive B by positive work again when B sends data.A, B can not launch proper communication by C subsequently.
The extraneous communication if B feuds, NAT is that the open port of B can be regained by NAT among the Rb, public network IP and the port of B before this moment, in time A obtained for a long time, can not with B success communication, because this moment, B was reclaimed by NAT at the port of public network, keep the survival data bag so at this B is regularly sent to C, the B information that keeps writing down among the C is available.

Claims (4)

1. the long-range control method of cross-over NAT equipment is characterized in that, may further comprise the steps:
After a, user terminal powered on, user terminal sent the packet that includes the user terminal MAC Address through the user side router to public network server;
B, remote control terminal return the public network IP address and the port numbers of described user terminal MAC Address corresponding user terminal through control end router solicitation public network server;
After c, remote control terminal receive the public network IP address and port numbers of user terminal, send the connection data to user terminal through the control end router; The user side router abandons described connection data;
After d, remote control terminal detected and send described connection data failure, the request public network server sent instruction to user terminal, and described instruction connects data for allowing user terminal initiatively send to remote control terminal;
E, public network server send described instruction to user terminal;
F, user terminal send to remote control terminal through user side router, control end router and connect data;
G, user terminal and remote control terminal successfully connect;
Described user terminal, remote control terminal are in two independent Intranets, the router of user terminal place Intranet is the user side router, the router of remote control terminal place Intranet is the control end router, and described user side router and control end router are NAT device.
2. the long-range control method of cross-over NAT equipment according to claim 1 is characterized in that, all adopts udp protocol to communicate among the described step a to f.
3. the long-range control method of cross-over NAT equipment according to claim 1, it is characterized in that, in the step g, after user terminal and remote control terminal successfully connected, user terminal regularly sent the packet that includes the user terminal MAC Address through the user side router to public network server.
4. the long-range control method of cross-over NAT equipment according to claim 1 is characterized in that described user side router and control end router are cone type NAT device.
CN200910312181A 2009-12-24 2009-12-24 Remote control method for passing through NAT device Pending CN101741927A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910312181A CN101741927A (en) 2009-12-24 2009-12-24 Remote control method for passing through NAT device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910312181A CN101741927A (en) 2009-12-24 2009-12-24 Remote control method for passing through NAT device

Publications (1)

Publication Number Publication Date
CN101741927A true CN101741927A (en) 2010-06-16

Family

ID=42464810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910312181A Pending CN101741927A (en) 2009-12-24 2009-12-24 Remote control method for passing through NAT device

Country Status (1)

Country Link
CN (1) CN101741927A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891764A (en) * 2011-07-22 2013-01-23 中兴通讯股份有限公司 Method and system for routing bridge maintenance information
CN104144080A (en) * 2014-07-24 2014-11-12 上海斐讯数据通信技术有限公司 System and method for managing terminal equipment through far-end equipment
CN104243593A (en) * 2014-09-24 2014-12-24 上海斐讯数据通信技术有限公司 Remote management method and system of WiFi (wireless fidelity) intelligent sockets on basis of STUN (simple traversal of UDP over NATs)
CN105306620A (en) * 2015-11-13 2016-02-03 吴华瑜 Data transmission control system
CN106790722A (en) * 2017-03-22 2017-05-31 维沃移动通信有限公司 A kind of connection method of remote assistance, server and terminal
CN106936946A (en) * 2017-05-10 2017-07-07 烽火通信科技股份有限公司 A kind of utilization Convergence gateway realizes the system and method for network traversal
US9888272B2 (en) 2012-08-13 2018-02-06 Zte Corporation Method, terminal and CDN server in IPTV system for realizing playing while downloading
CN109088958A (en) * 2018-09-19 2018-12-25 腾讯数码(天津)有限公司 Data transmission method and computer equipment
CN109600671A (en) * 2018-12-13 2019-04-09 四川九州电子科技股份有限公司 A kind of system and method that network machine top box quickly upgrades

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891764B (en) * 2011-07-22 2017-10-10 中兴通讯股份有限公司 A kind of route-bridge safeguards the method and system of information
CN102891764A (en) * 2011-07-22 2013-01-23 中兴通讯股份有限公司 Method and system for routing bridge maintenance information
US9888272B2 (en) 2012-08-13 2018-02-06 Zte Corporation Method, terminal and CDN server in IPTV system for realizing playing while downloading
CN104144080B (en) * 2014-07-24 2018-01-02 上海斐讯数据通信技术有限公司 The system and method being managed using remote equipment to terminal device
CN104144080A (en) * 2014-07-24 2014-11-12 上海斐讯数据通信技术有限公司 System and method for managing terminal equipment through far-end equipment
CN104243593A (en) * 2014-09-24 2014-12-24 上海斐讯数据通信技术有限公司 Remote management method and system of WiFi (wireless fidelity) intelligent sockets on basis of STUN (simple traversal of UDP over NATs)
CN104243593B (en) * 2014-09-24 2018-01-16 上海斐讯数据通信技术有限公司 The method for remote management and management system of WiFi smart jacks based on STUN
CN105306620A (en) * 2015-11-13 2016-02-03 吴华瑜 Data transmission control system
CN106790722A (en) * 2017-03-22 2017-05-31 维沃移动通信有限公司 A kind of connection method of remote assistance, server and terminal
CN106790722B (en) * 2017-03-22 2018-09-04 维沃移动通信有限公司 A kind of connection method of remote assistance, server and terminal
CN106936946A (en) * 2017-05-10 2017-07-07 烽火通信科技股份有限公司 A kind of utilization Convergence gateway realizes the system and method for network traversal
CN109088958A (en) * 2018-09-19 2018-12-25 腾讯数码(天津)有限公司 Data transmission method and computer equipment
CN109088958B (en) * 2018-09-19 2022-02-25 腾讯数码(天津)有限公司 Data transmission method and computer equipment
CN109600671A (en) * 2018-12-13 2019-04-09 四川九州电子科技股份有限公司 A kind of system and method that network machine top box quickly upgrades
CN109600671B (en) * 2018-12-13 2021-02-19 四川九州电子科技股份有限公司 System and method for rapidly upgrading network set top box

Similar Documents

Publication Publication Date Title
CN101741927A (en) Remote control method for passing through NAT device
CN105791054B (en) A kind of autonomous controllable reliable multicast transmission method realized based on flow point class
US8989185B2 (en) Method and apparatus for converting a multicast session to a unicast session
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN102970227A (en) Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
CN101540652B (en) Terminal heterogeneous self-matching transmission method of multi-angle video Flow
CN102882865B (en) The method of multimedia agency service control is realized based on socks5 agency agreement
CN101510891B (en) Apparatus and method for implementing multicast by EPON access system
CN101964785A (en) Method, terminal and system for transmitting file between SIP (Session Initiation Protocol) terminals in NAT (Network Address Translation) network
CN101350825B (en) Method and system for crossing network address conversion, stream media server, set-top box
CN106506506A (en) A kind of method of outgoing telecommunication
CN102739815A (en) Method for reducing system time delaying of network address translation of video conference system
CN101193041A (en) Network data transmission method, device and system
CN107332834A (en) PRP method for connecting network under a kind of Windows systems
CN105357577A (en) Packet loss retransmission method and device
CN111614927A (en) Video session establishment method, device, electronic equipment and storage medium
CN104009956B (en) Communication method based on embedded multi-core co-processing gatekeeper system
CN103873600B (en) A kind of network address conversion penetrating method and apparatus
CN101340604A (en) Method and system for implementing voice inter-communication in video monitoring
KR100734247B1 (en) Ftp transmission method using udp
JP5846502B2 (en) Method and apparatus for realizing communication between different networks
CN101499968A (en) Multimedia data transmission method and system
EP3515048B1 (en) Cable media converter management method, apparatus and system
CN105577433B (en) A kind of ACS cluster management method, device and system
CN101127772B (en) Method for distributed processing of real time transfer of protocol signaling

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100616