CN101478505B - Method for establishing network system and network connection between network appliances of different private networks - Google Patents

Method for establishing network system and network connection between network appliances of different private networks Download PDF

Info

Publication number
CN101478505B
CN101478505B CN2009100085051A CN200910008505A CN101478505B CN 101478505 B CN101478505 B CN 101478505B CN 2009100085051 A CN2009100085051 A CN 2009100085051A CN 200910008505 A CN200910008505 A CN 200910008505A CN 101478505 B CN101478505 B CN 101478505B
Authority
CN
China
Prior art keywords
network equipment
network
location server
online
supernode
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.)
Expired - Fee Related
Application number
CN2009100085051A
Other languages
Chinese (zh)
Other versions
CN101478505A (en
Inventor
陈云
黄伟伦
许鸣显
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jianhan Science & Technology Co Ltd
Cybertan Technology Inc
Original Assignee
Jianhan Science & Technology 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 Jianhan Science & Technology Co Ltd filed Critical Jianhan Science & Technology Co Ltd
Priority to CN2009100085051A priority Critical patent/CN101478505B/en
Publication of CN101478505A publication Critical patent/CN101478505A/en
Application granted granted Critical
Publication of CN101478505B publication Critical patent/CN101478505B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for constructing a network system and achieving network connection among network devices in different private networks. The structure comprises an Internet, a first private network and a second private network, wherein, a first network device in the first private network is connected with the Internet through a first network address translator; a second network device in the second private network is connected with the Internet through a second network address translator; and a location server is connected with the Internet for registering the first network device and the second network device as an Internet gateway device (IGD) connection mode or point-to-point (P2P) connection mode, and constructing network connection between the two devices. Therefore, the network devices in different private networks can transmit data packets to each other smoothly.

Description

Set up network system and network on-line method between the network equipment of different private networks
Technical field
The invention relates between a kind of network equipment of different private networks and set up network system and network on-line method, each network equipment on the different whereby private networks can carry out transmission of data packets to each other smoothly.
Background technology
Because the limited amount of open IP (Public IP) can connect to the internet in order to supply numerous computer on the internet, thus extend a network address translation mechanism (Network AddressTranslation, NAT).
NAT mechanism can allow each computer on the private network reuse the privately owned address space of IPv4 (Internet Protocolversion 4), 192.168.X.X for example, and when Network Transmission, each computer in the private network each private ip in the privately owned address space (Private IP) can be converted to same open IP (Public IP), so that can carry out the access of data for the internet.So, as long as an open IP can allow numerous computer reach the purpose of online, with the use in minimizing IPv4 public address space, and the awkward situation of solution shortage of ip address.
Though NAT mechanism can solve the problem of existing shortage of ip address, yet that uses that NAT mechanism carries out the internet onlinely still exists following problem.
(1). when providing Internet service under NAT mechanism, the NAT server need be set connectivity port mapping (port-mapping), otherwise the computer on the internet can't be online with the main frame that service is provided.Yet setting the connectivity port mapping needs manually to set, if be connected with considerable computer installation under the NAT server, setting or revise the connectivity port mapping will be very large engineering.
(2). many web applications can be supposed client use real IP (open IP), and when the remote server that transmits data on the internet, IP can be embedded in the package gauge outfit of being transmitted.When remote server is received data and with the direct back information in IP address in the package gauge outfit, yet client may be because the factor of private ip receive the information that remote server returns and can't directly see through the internet if under NAT mechanism.
(3). web application is if use different connectivity ports to transmit the action of data and reception data respectively, for example: connectivity port X transmits data, and connectivity port Y receives data, then the NAT server also may see at first that connectivity port X flows out package, and only connect port mapping for connectivity port X, and connectivity port Y is not carried out the connectivity port mapping, then when receiving package, the package that flows to connectivity port Y is abandoned.
Summary of the invention
Main purpose of the present invention, be to provide between a kind of network equipment of different private networks and set up network system and network on-line method, the location server of putting on the shelf and being provided with a public address and disclosing port in the internet, so that position each network equipment on different private networks can be set up network on-line to each other through the assistance of location server, and the network equipment that solves on the private network carries out the problem that network on-line produced through network address translater.
Secondary objective of the present invention, be to provide between a kind of network equipment of different private networks and set up network system and network on-line method, the network equipment of private network will initiatively be registered as an IGD or a P2P online mode to location server, and carry out network on-line by the network equipment on IGD or P2P online mode and another private network.
Another purpose of the present invention, be to provide between a kind of network equipment of different private networks and set up network system and network on-line method, if position each network equipment on different private networks sees through IGD or the online failure of P2P online mode, then will use a supernode device instead and pass on as the data packet between each network equipment.
For reaching above-mentioned purpose, the invention provides between a kind of network equipment of different private networks and set up network system, its primary structure includes: one first private network, be provided with one first network equipment, and this first network equipment sees through one first network address translater to connect an internet; One second private network is provided with one second network equipment, and this second network equipment sees through one second network address translater to connect this internet; And a location server, connect this internet, have public address and open port, be a Internet gateway device (IGD) online mode or one point-to-point (P2P) online mode in order to register this first network equipment and this second network equipment.
This network system includes a supernode device, and this supernode device will connect this internet, and this location server will be registered the public address and the open port of this supernode device.
Public address and the open port of this location server in order to register this first network equipment and this second network equipment, the public address of this first network equipment and this second network equipment and open port produce for the connectivity port mapping of setting this first network address translater and this second network address translater.
The invention provides the network on-line method of setting up network system between a kind of network equipment that is applied to different private networks, it mainly comprises the following steps: to set the connectivity port mapping of this first network address translater, if set successfully, this first network equipment is registered as this Internet gateway device (IGD) online mode to this location server, otherwise this first network equipment is registered as this point-to-point (P2P) online mode to this location server; And this location server is tested this Internet gateway device (IGD) online mode of this first network equipment, if this first network equipment utilizes the online success of this Internet gateway device (IGD) online mode, then this first network equipment is maintained this Internet gateway device (IGD) online mode, otherwise this first network equipment is registered as this point-to-point (P2P) online mode to this location server.
Wherein this first network equipment and this second network equipment carry out network on-line, and it includes the following step:
This second network equipment is inquired about the on line state and the online mode of this first network equipment from this location server;
When this first network equipment and this second network equipment are all this Internet gateway device online mode, this second network equipment is online this first network equipment directly, otherwise this second network equipment sees through this location server and attempts online this first network equipment to use this point-to-point online mode;
When this second network equipment uses online this first network equipment of this point-to-point online mode success, then this second network equipment sees through online this first network equipment of this point-to-point online mode, otherwise, will pass on data packet between this first network equipment and this second network equipment through a supernode device.
Wherein this first network equipment and this second network equipment are registered the public address and the open port of this first network equipment to this location server, and the public address of this first network equipment and this second network equipment and open port produce for the connectivity port mapping of setting this first network address translater and this second network address translater.
Wherein this first network equipment is registered the public address of this first network equipment and is disclosed port to this location server, and it comprises the following steps:
This first network equipment transmits a registration Request Packet to this location server, and this location server returns a register response package to this first network equipment;
This first network equipment transmits a test request package to this location server, and this location server transmits an online testing Request Packet to this first network equipment, and this first network equipment returns online testing response package to this location server;
This second network equipment transmits a query requests package to this location server, and this location server will return an inquiry response package to this second network equipment.
Wherein this Internet gateway device online mode includes the following step:
This first network equipment is issued connectivity port mapping instruction to this first network address translater, to set the connectivity port mapping for this first network address translater, wherein mapping instruction in this connectivity port includes one and obtains the connectivity port mapping and enter quantitative directive and and add the connectivity port instruction, and this this first network address translater meets a UPnP standard specification.
Wherein this point-to-point online mode includes an invitation stage, an online establishment stage and connects ending phase.
Wherein should the invitation stage include the following step:
This second network equipment transmits an invitation Request Packet to this location server, and this location server transmits an invitation package to this first network equipment according to this, and this first network equipment passback one invites the answer package to this location server;
This location server transmits one and invites affirmation to this first network equipment and this second network equipment.
Wherein this online establishment stage includes the following step:
This first network equipment and this second network equipment transmit one respectively and burrow Request Packet to this location server, and this location server passback one burrows and confirms that package is to this first network equipment and this second network equipment according to this;
Pass a User Datagram Protoco (UDP) package between this first network equipment and this second network equipment mutually;
This first network equipment and this second network equipment transmit one respectively and burrow the end package to this location server, and this location server passback one burrows and finishes to confirm to this first network equipment and this second network equipment according to this.
Wherein this online ending phase includes the following step:
This first network equipment or this second network equipment transmit a hanging wire Request Packet to this location server, and this location server will return a hanging wire package to this first network equipment and this second network equipment.
Wherein this supernode device passes on the data packet between this first network equipment and this second network equipment, and it includes the following step:
This supernode device transmits one and logins Request Packet to this location server, and this location server passback one is logined response packet to this supernode device;
This first network equipment or this second network equipment transmit a supernode Request Packet to this location server, this location server will transmit a node meeting package to this supernode device according to this, this supernode device returns a supernode meeting and confirms package to this location server, and this location server transmits a supernode respectively and confirms to this first network equipment and this second network equipment;
This supernode device passes on the data packet between this first network equipment and this second network equipment; And
This first network equipment or this second network equipment transmit a hanging wire Request Packet to this location server, and this location server will transmit a hanging wire package to this first network equipment and this second network equipment.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 unifies the structural representation of preferred embodiment for network system of the present invention;
Fig. 2 checks flow chart for the network on-line of network system of the present invention;
Fig. 3 is the network on-line installation procedure figure of network system of the present invention;
Fig. 4 carries out the sequence diagram of a registration procedure to location server for the network equipment of network system of the present invention;
Fig. 5 is the sequence diagram of the IGD connecting method of network system of the present invention;
Fig. 6 is the sequence diagram of the P2P connecting method of network system of the present invention;
Fig. 7 is the sequence diagram of the supernode connecting method of network system of the present invention.
Wherein, Reference numeral
100 network systems, 10 first private networks
11 first network equipments, 12 first gateway apparatus
13 first network address translaters, 20 second private networks
21 second network equipments, 22 second gateway apparatus
23 second network address translaters, 30 internets
40 location servers, 50 supernode devices
Embodiment
See also Fig. 1, unify the structural representation of preferred embodiment for network system of the present invention.As shown in the figure, network system 100 includes one first private network 10, one second private network 20 and a location server 40.
First private network 10 is provided with one first network equipment 11, first network equipment 11 (for example: 192.168.0.1:2000) has privately owned address and privately owned port, first network equipment 11 sees through one first network address translater 13 and connects an internet 30, and first network address translater 13 (for example: 123.115.175.181) will have public address.
Second private network 20 is provided with one second network equipment 21, second network equipment 21 (for example: 192.168.1.2:5000) has privately owned address and privately owned port, second network equipment 21 sees through one second network address translater 23 and connects internet 30, and second network address translater 23 (for example: 123.101.175.100) will have public address.
In addition, the present invention's first network address translater 13 and second network address translater 23 have a network address translation function (Network Address Translation; And can be incorporated into respectively in an IP Wireless Router or the gateway NAT).
Location server 40 connect internets 30 and have public address and open port (for example: 140.117.171.181:5000), location server 40 is a Internet gateway device (Internet Gateway Device in order to register first network equipment 11 and second network equipment 21; IGD) online mode or a point-to-point (Peer to Peer; P2P) online mode.
Network system 100 of the present invention still includes a supernode device 50, supernode device 50 connect internets 30 and have public address and open port (for example: 140.117.155.32:5000), supernode device 50 is in order to pass on the data packet of 21 of first network equipment 11 and second network equipments.In addition, in another embodiment of the present invention, location server 40 also can become this supernode device.
In addition, first network equipment 11, second network equipment 21 and supernode device 50 can be the electronic installation that a mobile computer (NB), a desktop PC (PC), an intelligent mobile phone (PDA), a WAP mobile phone or have network communicating function.
Moreover, be arranged in first network equipment, 11 desires of first private network 10 and the location server 40 on the internet 30 and carry out network on-line, first network address translater 13 will be set up a meeting (session) for this network on-line, and distribute a connectivity port (port), for example: 3333.First network address translater 13 will be set connectivity port mapping (port-mapping), connectivity port (port 3333) are mapped to the privately owned address and the privately owned port of first network equipment 11, for example: port 3333 → 192.168.0.1:2000.First network equipment 11 can utilize the public address of first network address translater 13 to reach open port (123.115.175.181:3333) and carry out network service with location server 40, and location server 40 will be registered public address and open port (123.115.175.181:3333).
In like manner, be arranged in second network equipment, 21 desires of second private network 20 and the location server 40 on the internet 30 and carry out network on-line, second network address translater 23 will be set connectivity port mapping (port-mapping), connectivity port (for example: port 2222) are mapped to the privately owned address and the privately owned port of second network equipment 21, for example: port 2222 → 192.168.1.2:3000.Second network equipment 21 can utilize the public address of second network address translater 23 to reach open port (123.101.175.100:2222) and carry out network service with location server 40, and location server 40 will be registered public address and open port (123.101.175.100:2222).
Moreover, if second network equipment 21 of second private network 20 is desired to carry out network on-line with first network equipment 11 of first private network 10, will be according to the public address of the public address of second network equipment 21 of being registered in the location server 40, open port (123.101.175.100:2222) and first network equipment 11, open port (123.115.175.181:3333) and with an IGD online mode, a P2P online mode or see through the network on-line that a supernode device 50 carries out between the two.
Whereby, be positioned at each network equipment 11/21 on the different private networks 10/20 and not only can see through the assistance of location server 40 and set up to each other network on-line, and can solve network equipment 11/21 on the private network 10/20 and see through network address translater 13/23 and carry out the problem that network on-line produced.
See also Fig. 2, for the network on-line of network system of the present invention is checked flow chart.As shown in the figure, the network on-line audit program is as described in the following step: at first, after 11 starts of first network equipment, will utilize Simple Object Access Protocol instruction (the Simple Object Access Protocol of UPnP; SOAP) the connectivity port mapping (port-mapping) of setting first network address translater 13 is as step 601.
(port 3333 → 192.168.0.1:2000) if first network address translater 13 successfully is mapped in the privately owned address of first network equipment 11 and privately owned port with connectivity port (port 3333), as step 602, then first network equipment 13 is the IGD online mode, as step 603, and first network equipment 13 is registered as the IGD online mode to location server 30, as step 604.
Otherwise, if first network equipment 11 is set connectivity port mapping (port-mapping) failure of first network address translater 13, as step 602, then first network equipment 11 is the P2P online mode, as step 605, and first network equipment 11 will be registered as the P2P online mode to location server 40, as step 606.
In addition, location server 40 can carry out the IGD online testing for first network equipment 11, as step 607.If location server 40 carries out network on-line with first network equipment 11 smoothly with the IGD online mode,, finish this network on-line audit program as step 608.Otherwise first network equipment 11 should be changed into the P2P online mode, as step 605.
Moreover the network on-line audit program of second network equipment 21 is identical with first network equipment 11, at this, is not repeating elaboration.
See also Fig. 3, be the network on-line installation procedure figure of network system of the present invention.As shown in the figure, second network equipment 21 of second private network 20 is desired to carry out network on-line with first network equipment 11 of first private network 10, its network on-line installation procedure between the two is as described in the following step: at first, second network equipment 21 is from the on line state and the online mode of location server 40 inquiries first network equipment 11, as step 611.
If first network equipment 11 reached the standard grade, and first network equipment 11 and second network equipment 21 be all the IGD online mode, and as step 612, then second network equipment 21 will be according to the UPnP procotol and direct online first network equipment 11, as step 613.
Otherwise, if one of them non-IGD online mode of first network equipment 11 and second network equipment 21, as step 612, second network equipment 21 will ask location server 40 to provide to assist and used one of P2P online mode online first network equipment 11 of method (UDP hole punching) trial that burrows this moment, as step 614.
When second network equipment 21 uses online first network equipment 11 of P2P online mode success,, will finish the network on-line installation procedure as step 615.Otherwise second network equipment 21 will pass on the data packet of 11 of second network equipment 21 and first network equipments through a supernode device 50, as step 616.
See also Fig. 4, carry out the sequence diagram of a registration procedure for the network equipment of network system of the present invention to location server.As shown in the figure, after 11 starts of first network equipment, first network equipment 11 will initiatively transmit a registration Request Packet 701 to location server 40, with public address and open port (123.115.175.181:3333) to location server 40 registrations first network equipment 11, and location server 40 will return a register response package 702 to first network equipments 11, with the affirmation as enrollment results.
Then, first network equipment 11 transmits a test request package 703 to location server 40, to carry out online testing to location server 40 requests.And location server 40 will transmit an online testing Request Packet 704 to first network equipments 11 according to the public address and the open port (123.115.175.181:3333) of first network equipment 11 of registering.
If the public address of first network equipment 11 and open port (123.115.175.181:3333) are opened, then first network equipment 11 will receive online testing Request Packet 704, and return online testing response package 705 to location server 40, with the affirmation as the online testing result, and location server 40 is with logging test results.
When second network equipment 21 is wanted to use the service function of server on first network equipment 11, second network equipment 21 will transmit a query requests package 706 to location server 40, with public address and open port (123.115.175.181:3333) to location server 40 inquiries first network equipment 11, on-line information such as online mode and on line state, and location server 40 will return inquiry response package 707 to second network equipments 21 with on-line information of first network equipment 11, cause second network equipment 21 to set up network on-line with first network equipment 11.
In addition, first network equipment 11 transmits a update request package 708 to location server 40 in each work period (for example: 10 seconds), being good to location server 40 expression on line states, and location server 40 passbacks one are upgraded response package 709 to first network equipments 11 with the affirmation as reception update request package 708.
Certainly, update request package 708 of the present invention also can use registration Request Packet 701 to replace, so not only simplify the programming in first network equipment 11, and at the public address of first network equipment 11, when open port changes, location server 4 can learn immediately by periodic registration Request Packet 701, whereby with the on line state of certain control first network equipment 11.
Moreover the program that second network equipment 21 is registered to location server 40 is identical with first network equipment 11, at this, is not repeating elaboration.
See also Fig. 5, be the sequence diagram of the IGD connecting method of network system of the present invention.As shown in the figure, first network address translater 13 of present embodiment and/or second network address translater 23 will meet a UPnP (Universal Plug and Play; UPnP) standard specification, cause first network equipment 11 can use the action of connectivity port mapping instruction 751 to set of UPnP agreement, and this connectivity port mapping instruction 751 is can include one to obtain connectivity port mapping input quantitative directive (Get Port Mapping Number of Entries) and and add connectivity port mapping instruction (Add Port Mapping) for the connectivity port mapping of first network address translater 13.
The present invention's first network equipment 11 can provide the service function of server, for second network equipment, 21 uses of another private network 20.When the mapping of the connectivity port of first network address translater 13 is set successfully, second network equipment 21 can reach open port (123.115.175.181:3333) according to the public address of first network equipment 11, and (for example: data packet 752 internet 30) is sent to location server 40 with external network, then, location server 40 (for example: first network equipment 11 first private network 10) transfers to internal network at privately owned address of being shone upon according to connectivity port (3333) and privately owned port (192.168.0.1:2000) with the data packet 753 that receives.So, second network equipment 21 will be set up onlinely with first network equipment 11, and use the server capability of first network equipment 11.
See also Fig. 6, be the sequence diagram of the P2P connecting method of network system of the present invention.As shown in the figure, second network equipment 21 wants to use the service function of server on first network equipment 11, if adopt P2P online mode foundation network on-line between the two, will include three operational phases such as an online establishment stage 83 of an invitation stage 81, one and an online ending phase 85.
The invitation stage 81 includes the following step: at first, second network equipment 21 transmits one and invites Request Packet 811 to location server 40, location server 40 will be invited package 812 to first network equipments 11 according to inviting Request Packet 811 to transmit one, invite first network equipment 11 to set up network on-line to assist second network equipment 21.
If first network equipment 11 is agreed online, first network equipment 11 will return one to have " YES " invitation of content answers package 813 to location server 40, and location server 40 will transmit invitation affirmation package 814 to first network equipments 11 and second network equipment 21 respectively, can begin to set up network on-line to notify first network equipment 11 and second network equipment 21.
Online establishment stage 83 includes the following step: first network equipment 11 and second network equipment 21 transmit one respectively and burrow Request Packet 831 to location server 40, prepare beginning one program (hole punching) that burrows with notice location server 40.Then, location server 40 transmits a public address with first network equipment 11 and second network equipment 21, open port data (123.115.175.181:3333), burrowing of (123.101.175.100:2222) respectively and confirms package 832 to first network equipments 11 and second network equipment 21.
First network equipment 11 and second network equipment 21 receive burrow confirm package 832 after, first network equipment 11 and second network equipment 21 will pass a User Datagram Protoco (UDP) (User Datagram Protocol mutually according to public address, open port, UDP) package 833 is to both sides, and is online to set up UDP.
If first network equipment 11 and second network equipment 21 receive the UDP package 833 that both sides pass mutually really, represent that promptly first network equipment 11 and second network equipment 21 set up network on-line, both will transmit one respectively and burrow end package 834 to location server 40, finish the program that burrows with notice location server 40.And location server 40 will return one and burrow and finish to confirm that package 835 to first network equipments 11 and second network equipment 21 are to confirm to burrow EP (end of program).
Online ending phase 85 includes the following step: either party wants interrupt network online when first network equipment 11 or second network equipment 21, to transmit a hanging wire Request Packet 851 to location server 40, and location server 40 will return a hanging wire package 852 to first network equipments 11 and second network equipment 21 respectively, to interrupt network on-line between the two.
See also Fig. 7, be the sequence diagram of the supernode connecting method of network system of the present invention.Second network equipment 21 uses IGD online modes or P2P online mode all can't set up network on-line with first network equipment 11, and then second network equipment 21 will pass on the data packet of 11 of second network equipment 21 and first network equipments through a supernode device 50.
As shown in the figure, after 50 starts of supernode device, supernode device 50 will transmit a registration Request Packet 901 to location server 40, with public address and open port (140.117.155.32:5000) to location server 40 registration supernode devices 50, and location server 40 will return a registration response packet 902 to supernode device 50, with the affirmation as enrollment results.
If second network equipment 21 can't use IGD online mode or P2P online mode and first network equipment 11 to set up network on-line, second network equipment 21 will transmit a supernode Request Packet 903 to location server 40, and location server 40 transmits a supernode meeting package 904 to supernode device 50, passes on the data packet of 11 of second network equipment 21 and first network equipments with request supernode device 50.
If the service that supernode device 50 can provide data packet to pass on, supernode device 50 will return one to have " YES " the supernode meeting of content confirms that package 905 is to location server 40, and location server 40 will transmit a public address with supernode device 50, open port data (140.117.155.32:5000), supernode confirm package 906 to first network equipments 11 and second network equipment 21, the service that can provide first network equipment 11 and 21 data packets of second network equipment to pass on expression supernode device 50.
Receive after supernode confirms package 906 at first network equipment 11 and second network equipment 21, first network equipment 11 and second network equipment 21 can be directly and supernode device 50 set up online.When 21 tendencies to develop of second network equipment send first data packet 907 to first network equipments 11, will pass on first data packet, 908 to first network equipments 11 through supernode device 50; Otherwise, when 11 tendencies to develop of first network equipment send second data packet 909 to second network equipments 21, will pass on second data packet, 910 to second network equipments 21 through supernode device 50.
Either party is online with supernode device 50 interrupt networks when first network equipment 11 or second network equipment 21, to transmit a hanging wire Request Packet 911 to supernode device 50, and supernode device 50 will return a hanging wire package 912 to first network equipments 11 and second network equipment 21 respectively, to interrupt the network on-line of 50 in first network equipment 11, second network equipment 21 and supernode device.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1. set up network system between the network equipment of different private networks, it is characterized in that, its primary structure includes:
One first private network is provided with one first network equipment, and this first network equipment sees through one first network address translater to connect an internet;
One second private network is provided with one second network equipment, and this second network equipment sees through one second network address translater to connect this internet;
One location server connects this internet, has public address and open port, is a Internet gateway device online mode or a point-to-point online mode in order to register this first network equipment and this second network equipment;
Wherein, public address and the open port of this location server in order to register this first network equipment and this second network equipment, the public address of this first network equipment and this second network equipment and open port produce for the connectivity port mapping of setting this first network address translater and this second network address translater.
2. network system according to claim 1 is characterized in that, this network system includes a supernode device, and this supernode device will connect this internet, and this location server will be registered the public address and the open port of this supernode device.
3. a network on-line method that is applied to according to the described network system of claim 1 is characterized in that it mainly comprises the following steps:
Set the connectivity port mapping of this first network address translater, if set successfully, this first network equipment is registered as this Internet gateway device online mode to this location server, otherwise this first network equipment is registered as this point-to-point online mode to this location server;
This location server is tested this Internet gateway device online mode of this first network equipment, if this first network equipment utilizes the online success of this Internet gateway device online mode, then this first network equipment is maintained this Internet gateway device online mode, otherwise this first network equipment is registered as this point-to-point online mode to this location server;
Wherein this first network equipment and this second network equipment carry out network on-line, and it includes the following step:
This second network equipment is inquired about the on line state and the online mode of this first network equipment from this location server;
When this first network equipment and this second network equipment are all this Internet gateway device online mode, this second network equipment is online this first network equipment directly, otherwise this second network equipment sees through this location server and attempts online this first network equipment to use this point-to-point online mode; And
When this second network equipment uses online this first network equipment of this point-to-point online mode success, then this second network equipment sees through online this first network equipment of this point-to-point online mode, otherwise, will pass on data packet between this first network equipment and this second network equipment through a supernode device;
Wherein this first network equipment and this second network equipment are registered the public address and the open port of this first network equipment and this second network equipment to this location server, and the public address of this first network equipment and this second network equipment and open port produce for the connectivity port mapping of setting this first network address translater and this second network address translater.
4. network on-line method according to claim 3 is characterized in that, wherein this first network equipment is registered the public address of this first network equipment and disclosed port to this location server, and it comprises the following steps:
This first network equipment transmits a registration Request Packet to this location server, and this location server returns a register response package to this first network equipment;
This first network equipment transmits a test request package to this location server, and this location server transmits an online testing Request Packet to this first network equipment, and this first network equipment returns online testing response package to this location server;
This second network equipment transmits a query requests package to this location server, and this location server will return an inquiry response package to this second network equipment.
5. network on-line method according to claim 3 is characterized in that, wherein this Internet gateway device online mode includes the following step:
This first network equipment is issued connectivity port mapping instruction to this first network address translater, to set the connectivity port mapping for this first network address translater, wherein mapping instruction in this connectivity port includes one and obtains the connectivity port mapping and enter quantitative directive and and add the connectivity port instruction, and this first network address translater meets a UPnP standard specification.
6. network on-line method according to claim 3 is characterized in that, wherein this point-to-point online mode includes an invitation stage, an online establishment stage and connects ending phase.
7. network on-line method according to claim 6 is characterized in that, wherein should the invitation stage include the following step:
This second network equipment transmits an invitation Request Packet to this location server, and this location server transmits an invitation package to this first network equipment according to this, and this first network equipment passback one invites the answer package to this location server;
This location server transmits one and invites affirmation to this first network equipment and this second network equipment.
8. network on-line method according to claim 6 is characterized in that, wherein this online establishment stage includes the following step:
This first network equipment and this second network equipment transmit one respectively and burrow Request Packet to this location server, and this location server passback one burrows and confirms that package is to this first network equipment and this second network equipment according to this;
Pass a User Datagram Protoco (UDP) package between this first network equipment and this second network equipment mutually;
This first network equipment and this second network equipment transmit one respectively and burrow the end package to this location server, and this location server passback one burrows and finishes to confirm to this first network equipment and this second network equipment according to this.
9. network on-line method according to claim 6 is characterized in that, wherein this online ending phase includes the following step:
This first network equipment or this second network equipment transmit a hanging wire Request Packet to this location server, and this location server will return a hanging wire package to this first network equipment and this second network equipment.
10. network on-line method according to claim 3 is characterized in that, wherein this supernode device passes on the data packet between this first network equipment and this second network equipment, and it includes the following step:
This supernode device transmits one and logins Request Packet to this location server, and this location server passback one is logined response packet to this supernode device;
This first network equipment or this second network equipment transmit a supernode Request Packet to this location server, this location server will transmit a node meeting package to this supernode device according to this, this supernode device returns a supernode meeting and confirms package to this location server, and this location server transmits a supernode respectively and confirms to this first network equipment and this second network equipment;
This supernode device passes on the data packet between this first network equipment and this second network equipment; And
This first network equipment or this second network equipment transmit a hanging wire Request Packet to this location server, and this location server will transmit a hanging wire package to this first network equipment and this second network equipment.
CN2009100085051A 2009-01-23 2009-01-23 Method for establishing network system and network connection between network appliances of different private networks Expired - Fee Related CN101478505B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100085051A CN101478505B (en) 2009-01-23 2009-01-23 Method for establishing network system and network connection between network appliances of different private networks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100085051A CN101478505B (en) 2009-01-23 2009-01-23 Method for establishing network system and network connection between network appliances of different private networks

Publications (2)

Publication Number Publication Date
CN101478505A CN101478505A (en) 2009-07-08
CN101478505B true CN101478505B (en) 2011-09-07

Family

ID=40839140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100085051A Expired - Fee Related CN101478505B (en) 2009-01-23 2009-01-23 Method for establishing network system and network connection between network appliances of different private networks

Country Status (1)

Country Link
CN (1) CN101478505B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045409B (en) * 2009-10-13 2013-05-01 财团法人工业技术研究院 Network penetrating method and network communication system
KR101176144B1 (en) * 2010-11-30 2012-08-22 삼성에스디에스 주식회사 System and method for peer-to-peer connection in multiple network environment
CN104253755A (en) * 2013-06-27 2014-12-31 讯舟科技股份有限公司 Method for establishing connection between network terminal devices
CN103442305A (en) * 2013-09-02 2013-12-11 西安诺瓦电子科技有限公司 Inter-cut control method and cluster-type playing control system and method
US9485805B2 (en) 2013-09-12 2016-11-01 Haier Us Appliance Solutions, Inc. Network address translation for ZIGBEE™/802.15.4 bridges
TWI595765B (en) * 2015-10-22 2017-08-11 財團法人工業技術研究院 Method and communication device for network address translation traversal
CN105634810B (en) * 2015-12-29 2019-12-13 Tcl集团股份有限公司 method and system for accessing universal plug and play device and access device
TWI612789B (en) * 2016-04-07 2018-01-21 物聯智慧科技(深圳)有限公司 Network communication system and network-traversal method
TWI713328B (en) * 2018-03-19 2020-12-11 和碩聯合科技股份有限公司 Network bridge and management method of network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553667A (en) * 2003-06-05 2004-12-08 中兴通讯股份有限公司 Method for building call between multimedia apparatus
CN1588922A (en) * 2004-09-28 2005-03-02 王安生 Method for calling control and medium pass through private net in SIP soft exchange system
CN1735055A (en) * 2004-08-13 2006-02-15 中兴通讯股份有限公司 Method for multimedia terminal point-to-point call inside two private networks
CN101026543A (en) * 2007-03-28 2007-08-29 华为技术有限公司 Point-tor point P2P content sharing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1553667A (en) * 2003-06-05 2004-12-08 中兴通讯股份有限公司 Method for building call between multimedia apparatus
CN1735055A (en) * 2004-08-13 2006-02-15 中兴通讯股份有限公司 Method for multimedia terminal point-to-point call inside two private networks
CN1588922A (en) * 2004-09-28 2005-03-02 王安生 Method for calling control and medium pass through private net in SIP soft exchange system
CN101026543A (en) * 2007-03-28 2007-08-29 华为技术有限公司 Point-tor point P2P content sharing method and system

Also Published As

Publication number Publication date
CN101478505A (en) 2009-07-08

Similar Documents

Publication Publication Date Title
CN101478505B (en) Method for establishing network system and network connection between network appliances of different private networks
CN101478493B (en) Method and device for NAT through communication
US8316134B2 (en) File server device arranged in a local area network and being communicable with an external server arranged in a wide area network
US8082324B2 (en) Method of establishing a tunnel between network terminal devices passing through firewall
CN101431511B (en) Method for penetrating fire wall and establishing on-line channel between network terminal apparatus
CN100521663C (en) Method for crossing network address conversion in point-to-point communication
CN103108089B (en) Connection establishment management method of network system and related system thereof
CN104883390B (en) A kind of method and device accessing third party's video monitoring equipment
CN101960777B (en) Universal plug and play method and apparatus to provide remote access service
CN104836863B (en) The system and method for realizing the mapping of TCP reverse ports
CN101385315A (en) Communication using private ip addresses of local networks
KR20030089126A (en) A Method and Apparatus of Management and Control of UPnP Device in Home Network from the Internet
CN101702718A (en) Method and device for managing user terminal equipment
CN101895590A (en) UDT-based system and method for realizing network address translator traversal
JP2008098888A (en) Relay server
JP2008072203A (en) Relay server
CN106604119A (en) Network penetrating method and system of intelligent TV private cloud equipment
CN101883056A (en) System and method for realizing NAT (Network Address Translation) traversal on basis of UDT (UDP (User Datagram Protocol)-based Data Transfer) and TCP (Transmission Control Protocol) transfer
CN100493048C (en) Multimedia communication proxy system and method capable of crossing network address conversion and firewall
JP4187036B2 (en) Relay server
JP2008258917A (en) Identical nat subordinate communication control system, nat device, identical nat subordinate communication control method, and program
Hwang et al. Personal mobile A/V control point for home-to-home media streaming
CN104104740B (en) Method for exchanging distributed network information
CN105516121B (en) The method and system that AC is communicated with AP in WLAN
Chen et al. Integrating service discovery technologies in OSGi platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110907

Termination date: 20180123

CF01 Termination of patent right due to non-payment of annual fee