WO2013185352A1 - 注册方法及设备、系统 - Google Patents

注册方法及设备、系统 Download PDF

Info

Publication number
WO2013185352A1
WO2013185352A1 PCT/CN2012/077017 CN2012077017W WO2013185352A1 WO 2013185352 A1 WO2013185352 A1 WO 2013185352A1 CN 2012077017 W CN2012077017 W CN 2012077017W WO 2013185352 A1 WO2013185352 A1 WO 2013185352A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
ddns
address information
application server
address
Prior art date
Application number
PCT/CN2012/077017
Other languages
English (en)
French (fr)
Inventor
宿宝伍
邹婷
査敏
黄敬
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2012/077017 priority Critical patent/WO2013185352A1/zh
Priority to CN201280000746.1A priority patent/CN103621036A/zh
Publication of WO2013185352A1 publication Critical patent/WO2013185352A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Definitions

  • the present application relates to communication technologies, and in particular, to a registration method, device, and system. Background technique
  • the Dynamic Domain Name System is a client/server model that runs on an application server that provides application layer services, such as the World Wide Web (Web) server or File Transfer Protocol (File Transfer). Protocol, FTP, etc.) need to register the domain name of the application server and the IP address information of the application server to the DDNS server, so that the DDNS server dynamically updates the application in a Domain Name System (DNS) server.
  • DNS Domain Name System
  • the domain name of the server The other terminal can access the application server where the DDNS client is located through the Internet (Internet) by using the domain name of the application server.
  • NAT network address translation
  • the DDNS client since the DDNS client registers the IP address information of the relay device with the DDNS server, the other terminal accesses the application server where the DDNS client is located through the Internet (Internet), and all access traffic needs to be relayed. The device forwards to the DDNS client, resulting in a decrease in access efficiency.
  • a registration method including:
  • the DDNS server receives a first registration message for registering a domain name of the application server, where the first registration message includes first IP address information allocated by the NAT device for the application server; when the first IP address information includes The IP address and port identifier, the DDNS server Establishing a redirection entry according to the domain name of the application server and the first IP address information, where the redirection entry includes a correspondence between a domain name of the application server and the first IP address information; The server registers with the DNS server using the domain name of the application server and the IP address of the DDNS server.
  • a registration method including:
  • the DDNS server receives a first registration message for registering a domain name of the application server, where the first registration message includes first IP address information allocated by the NAT device for the application server; when the first IP address information includes When the IP address and the port are identified, the DDNS server sends the domain name of the application server and the first IP address information to the redirecting server, so that the redirecting server establishes a redirection entry, and the redirection table
  • the entry includes a correspondence between the domain name of the application server and the first IP address information
  • the DDNS server registers with the DNS server by using a domain name of the application server and an IP address of the redirect server.
  • a registration method including:
  • the NAT device captures a second registration message sent by the DDNS client running on the application server, where the payload of the second registration message includes the second IP address information of the application server;
  • the NAT device allocates first IP address information to the application server
  • the NAT device replaces the first IP address information with the second IP address information, generates the first registration message, and sends the first registration message to the DDNS server.
  • a DDNS server including:
  • a receiver configured to receive a first registration message for registering a domain name of the application server, where the first registration message includes first IP address information allocated by the NAT device for the application server;
  • the redirection entry is established according to the domain name of the application server and the first IP address information, where the redirection entry includes the application server. a correspondence between the domain name and the first IP address information;
  • a registration unit configured to register with the DNS server by using a domain name of the application server and an IP address of the DDNS server.
  • a DDNS server including:
  • a receiver configured to receive a first registration message for registering a domain name of the application server, where the first registration message includes first IP address information allocated by the NAT device for the application server;
  • a redirecting unit configured to: when the first IP address information includes an IP address and a port identifier, send the domain name of the application server and the first IP address information to a redirect server, so that the redirect server Establishing a redirection entry, where the redirection entry includes a correspondence between a domain name of the application server and the first IP address information;
  • a registration unit configured to register with the DNS server by using a domain name of the application server and an IP address of the redirect server.
  • a NAT device including:
  • a receiver configured to capture a second registration message sent by a DDNS client running on the application server, where the payload of the second registration message includes second IP address information of the application server; Allocating first IP address information to the application server;
  • the sender is configured to replace the first IP address information with the second IP address information, generate the first registration message, and send the first registration message to the DDNS server.
  • a registration system including:
  • a DDNS client running on the application server, configured to send a second registration message to the DDNS server, where the payload of the second registration message includes the second IP address information of the application server;
  • a NAT device configured to: capture the second registration message, allocate the first IP address information to the application server, and replace the second IP address information with the second IP address information to generate a first registration message, And sending the first registration message;
  • the DDNS server is configured to receive the first registration message, and when the first IP address information includes an IP address and a port identifier, establish a weight according to the domain name of the application server and the first IP address information. Orienting the entry, and registering with the DNS server by using the domain name of the application server and the IP address of the DDNS server, where the redirect entry includes the domain name of the application server and the first IP address information. Correspondence relationship.
  • a registration system including:
  • a DDNS client running on the application server, configured to send a second registration message to the DDNS server, where the payload of the second registration message includes the second IP address information of the application server;
  • a NAT device configured to: capture the second registration message, allocate the first IP address information to the application server, replace the first IP address information with the second IP address information, and generate a first note a message, and sending the first registration message;
  • the DDNS server is configured to receive the first registration message, and when the first IP address information includes an IP address and a port identifier, send the domain name of the application server and the first IP address information to the Orienting the server such that the redirect server establishes a redirect entry, and
  • the redirect entry includes a correspondence between a domain name of the application server and the first IP address information. relationship.
  • a registration system including:
  • a DDNS client running on the application server, configured to send a first registration message to the DDNS server, where the first registration message includes the first IP address allocated by the NAT device to the application server Address information, the first IP address information is obtained by the DDNS client by using a NAT traversal protocol;
  • the DDNS server is configured to receive the first registration message, and when the first IP address information includes an IP address and a port identifier, establish a weight according to the domain name of the application server and the first IP address information. Orienting the entry, and the DDNS server registers with the DNS server by using a domain name of the application server and an IP address of the DDNS server, where the redirect entry includes a domain name of the application server and the first Correspondence of IP address information.
  • a registration system including:
  • a DDNS client running on the application server, configured to send a first registration message to the DDNS server, where the first registration message includes the first IP address allocated by the NAT device to the application server Address information, the first IP address information is obtained by the DDNS client by using a NAT traversal protocol;
  • the DDNS server is configured to receive the first registration message, and when the first IP address information includes an IP address and a port identifier, send the domain name of the application server and the first IP address information to the Orienting the server such that the redirect server establishes a redirect entry, and
  • the technical solution of the embodiment of the present invention does not need to additionally add a relay device, and can solve the problem in the prior art that the DDNS client registers with the DDNS server as the IP address information of the relay device.
  • the DDNS client registers with the DDNS server as the IP address information of the relay device.
  • FIG. 1 is a schematic flowchart of a registration method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a registration method according to another embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a registration method according to another embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a registration method according to another embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a DDNS server according to another embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a DDNS server according to another embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a NAT device according to another embodiment of the present disclosure;
  • FIG. 8 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • the technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application.
  • the embodiments are part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
  • the term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate: A exists separately, and A and B exist simultaneously. There are three cases of B alone.
  • the character T in this paper generally indicates that the contextual object is an "or" relationship.
  • FIG. 1 is a schematic flowchart of a registration method according to an embodiment of the present application, as shown in FIG. 1 .
  • the DDNS server receives a first registration message for registering a domain name of the application server, where the first registration message includes a first IP address that is allocated by the NAT device to the application server, where the first IP address is
  • the information may include, but is not limited to, an IP address (ie, a public network IP address), or an IP address (ie, a public network IP address) and a port identifier.
  • the DDNS server establishes a redirection entry, the redirection entry, according to the domain name of the application server and the first IP address information, when the first IP address information includes an IP address and a port identifier. Corresponding relationship between the domain name of the application server and the first IP address information.
  • the DDNS server registers with the DNS server by using a domain name of the application server and an IP address of the DDNS server.
  • the DDNS server may directly utilize the domain name of the application server and the first An IP address, registered with the DNS server.
  • the DDNS server may directly utilize the application server.
  • the domain name and the first IP address information are registered with the DNS server.
  • the DNS server can use the Service Location (SRV) resource record port identification, but most applications will not process the SRV resource.
  • the DDNS server can establish a redirection entry according to the domain name of the application server and the first IP address information, and use the domain name of the application server and the IP address of the DDNS server. Register with the DNS server.
  • the redirection entry includes a correspondence between a domain name of the application server and the first IP address information.
  • an independent redirect server may also be configured.
  • the DDNS server may send the domain name of the application server and the first IP address information to the redirect server, so that the redirect server establishes a redirection entry.
  • the redirection entry includes a correspondence between the domain name of the application server and the first IP address information.
  • the DDNS server may use the domain name of the application server.
  • the IP address of the redirect server is registered with the DNS server.
  • the NAT device may be a Carrier Grade NAT (CGN) device, or may be a routing device with a NAT function, for example, Customer Premise Equipment (CPE), etc., this embodiment does not Limited.
  • CGN Carrier Grade NAT
  • CPE Customer Premise Equipment
  • the DDNS server may specifically receive the first registration message sent by the NAT device.
  • the NAT device may further receive the second registration message sent by the DDNS client running on the application server, where the payload of the second registration message includes the application. Second IP address information of the server; then, the NAT device allocates the first IP address information to the application server; finally, the NAT device may replace the first IP address information with the second IP address Address information, generating the first registration message.
  • the DDNS server may specifically receive the first registration message sent by a DDNS client running on the application server.
  • the DDNS client may specifically obtain the first IP address information allocated by the NAT device to the application server by using a NAT tunneling protocol.
  • the NAT traversal protocol may include, but is not limited to, a Universal Plug and Play (UPnP) protocol, a Port Control Protocol (PCP), and a NAT Port Mapping Protocol (NATPmP). One or several of them.
  • UFP Universal Plug and Play
  • PCP Port Control Protocol
  • NATPmP NAT Port Mapping Protocol
  • the first registration message for registering the domain name of the application server is received by the DDNS server, where the first registration message includes the first IP address information allocated by the NAT device for the application server, when When the first IP address information includes the IP address and the port identifier, the DDNS server establishes a redirection entry according to the domain name of the application server and the first IP address information, where the redirection entry includes the application server.
  • the DDNS server is configured to register with the DNS server by using the domain name of the application server and the IP address of the DDNS server, and the technical solution of the embodiment is used, and the relay device is not required to be added.
  • FIG. 2 is a schematic flowchart of a registration method according to another embodiment of the present application, as shown in FIG. 2.
  • the NAT device captures a second registration message sent by the DDNS client running on the application server, where the payload of the second registration message includes the second IP address information of the application server.
  • the NAT device allocates first IP address information to the application server.
  • the NAT device replaces the first IP address information with the second IP address information to generate the first registration message, and sends the first registration message to the DDNS server.
  • the DDNS server when the DDNS server receives the first registration message, when the first IP address information includes an IP address and a port identifier, the DDNS server is based on the domain name of the application server and the first IP address information, establishing a redirection entry, and the DDNS server registers with the DNS server by using a domain name of the application server and an IP address of the DDNS server, where the redirection entry includes the application server Correspondence between the domain name and the first IP address information; or
  • the DDNS server Sending, by the DDNS server, the domain name of the application server and the first IP address information to a redirecting server, so that the redirecting server establishes a redirecting entry, and the DDNS server uses the domain name of the application server.
  • the IP address of the redirecting server is registered with the DNS server, where the redirection entry includes a correspondence between a domain name of the application server and the first IP address information.
  • the first IP address information may include, but is not limited to, an IP address (ie, a public network IP address), or an IP address (ie, a public network IP address) and a port identifier.
  • the DDNS server may directly utilize the domain name and the IP address of the application server. Register with the DNS server.
  • the DDNS server may directly utilize the first IP address information.
  • the domain name of the application server and the first IP address information are registered with the DNS server.
  • the DNS server can use the Service Location (SRV) resource to record the port ID, but most applications will not process the SRV resource.
  • the DDNS server may establish a redirection entry according to the domain name of the application server and the first IP address information, and use the domain name of the application server and the IP address of the DDNS server to DNS server registration.
  • the redirection entry includes a correspondence between a domain name of the application server and the first IP address information.
  • an independent redirect server may also be configured.
  • the DDNS server may send the domain name of the application server and the first IP address information to Redirecting the server, so that the redirecting server establishes a redirection entry, where the redirection entry includes a correspondence between a domain name of the application server and the first IP address information; and correspondingly, alternatively, The DDNS server can register with the DNS server by using the domain name of the application server and the IP address of the redirect server.
  • the NAT device may be a Carrier Grade NAT (CGN) device, or may be a routing device with a NAT function, for example, Customer Premise Equipment (CPE), etc., this embodiment does not Limited.
  • CGN Carrier Grade NAT
  • CPE Customer Premise Equipment
  • the NAT device captures the second registration message sent by the DDNS client running on the application server, and then allocates the second IP address information to the application server, and replaces the first IP address information by the NAT device. Generating, by the second IP address information, the first registration message, and sending the first registration message to the DDNS server, so that when the first IP address information includes an IP address and a port identifier, the DDNS server is configured according to the application.
  • the DDNS server registers with the DNS server by using a domain name of the application server and an IP address of the DDNS server, where the redirect The entry includes the mapping between the domain name of the application server and the first IP address information; or the DDNS server sends the domain name of the application server and the first IP address information to the redirect server, so that the Redirecting a server to establish a redirection entry, and the DDNS server utilizes a domain name of the application server and the redirect server
  • the IP address is registered with the DNS server, and the redirection entry includes a mapping between the domain name of the application server and the first IP address information, and the technical solution of the embodiment is used, and no additional trunk is needed.
  • the DDNS client running on the web server will be taken as an example.
  • FIG. 3 is a schematic flowchart of a registration method according to another embodiment of the present application, as shown in FIG. 3. 301.
  • the DDNS client sends a second registration message for registering a domain name of the web server to the DDNS server, where the payload of the second registration message includes a domain name of the web server and a second IP address of the web server (ie, the source) IP address) and the second port identifier (ie source port ID).
  • the payload of the second registration message includes a domain name of the web server and a second IP address of the web server (ie, the source) IP address) and the second port identifier (ie source port ID).
  • the NAT device captures the second registration packet, and allocates a first IP address and a first port identifier to the web server, and the NAT device can replace the first IP address and the port identifier assigned to the web server with the second
  • the address and the second port identifier are generated, and a new registration message is generated, that is, the first registration message is sent to the DDNS server.
  • the NAT device also establishes a NAT entry, that is, the NAT entry includes the second IP address and the second port identifier of the web server in the registration message and the first IP address allocated by the NAT device to the web server. Correspondence between the address and the first port identifier.
  • the DDNS server establishes a redirection entry according to the first IP address and the first port identifier that are allocated by the NAT device to the web server, that is, the redirecting entry includes the NAT device.
  • the DDNS server registers with the DNS server by using the domain name of the Web server and the IP address of the DDNS server.
  • the DNS server establishes a registry entry, that is, the registry entry includes a correspondence between a domain name of the web server and an IP address of the DDNS server.
  • the DNS server may obtain the IP address of the DDNS server in the DDNS server corresponding to the domain name of the web server according to the registry key. Address; then, the DNS server returns the IP address of the DDNS server to the terminal, so that the terminal resends the access request to the DDNS server, and the DDNS server can be redirected according to the
  • the entry obtains a first IP address and a first port identifier assigned by the NAT device corresponding to the domain name of the web server to the web server; and then the DDNS server returns a message to the other terminal to indicate that the other terminal accesses the The first IP address assigned by the NAT device to the web server.
  • NAT device is preferably a CGN device.
  • redirection mechanism used by the DDNS server can be various.
  • the DDNS server can directly use the HTTP redirection mechanism by returning a response code of 3xx, and the new uniform resource locator (Uniform Resource) is given on the same day.
  • Locator, URL 0 column ⁇ port, if a terminal needs to access the web server with the domain name webserver2000.example.org, then after receiving the query request containing webserver2000.example.or, the DNS server can obtain the The IP address of the DDNS server corresponding to webserver2000.example.org; then, the DNS server returns the IP of the DDNS server to the terminal, and the terminal initiates an access request to the DDNS server (the URL field contains http: ⁇ webserver2000.example.
  • the DDNS server can obtain the IP address and port identifier 200.1.1.10:2000 assigned by the NAT device corresponding to webserver2000.example.org to the Web server according to the redirect entry; then, the DDNS server gives The terminal returns a message and tells the terminal to access the new URL, ie http://200.1.1.10:2000/patents, ie
  • the IP address and port identifier assigned by the NAT device to the Web server is 200.1.1.10:2000.
  • the NAT device captures the second registration message sent by the DDNS client running on the web server, and then allocates the first IP address and the first port identifier to the web server, where the NAT device An IP address and the first port identifier replace the second IP address and the second port identifier included in the second registration message, and generate a new registration message, that is, a third registration message, and send the message to the DDNS.
  • the server is configured to enable the DDNS server to register with the DNS server by using the domain name of the web server and the IP address of the DDNS server, and the technical solution of the embodiment of the present invention is used, and the relay device is not required to be added, and the DDNS in the prior art can be solved.
  • FIG. 4 is a schematic flowchart of a registration method according to another embodiment of the present application, as shown in FIG. 4.
  • the DDNS client obtains the first IP address and the first port identifier allocated by the NAT device for the Web server by using the NAT traversal protocol.
  • the NAT traversal protocol may include, but is not limited to, one or several of the UPnP protocol, PCP, and NATPmP.
  • the DDNS client uses the PCP or the NATPmP to interact with the NAT device to obtain the first IP address and the first port identifier assigned by the NAT device to the Web server.
  • the DDNS client uses the UPnP protocol to interact with the CPE, and the CPE uses the PCP or NATPmP to interact with the NAT device to obtain the first IP address and the first port identifier assigned by the NAT device to the Web server, and send it to the DDNS. Client.
  • the DDNS client sends a first registration message for registering the domain name of the web server to the DDNS server, where the registration message includes the domain name of the web server, the first IP address assigned by the NAT device to the web server, and the first port. logo.
  • the NAT device After the NAT device captures the second registration packet, the NAT device further establishes a NAT entry, that is, the NAT entry includes the second IP address and the second port of the Web server in the second registration packet.
  • the corresponding relationship between the first IP address and the first port identifier assigned by the NAT device to the web server is identified.
  • the DDNS server establishes a redirection entry according to the first IP address and the first port identifier that are allocated by the NAT device to the web server, that is, the redirecting entry includes the NAT device.
  • the DDNS server registers with the DNS server by using the domain name of the Web server and the IP address of the DDNS server.
  • the DNS server establishes a registry entry, that is, the registry entry includes a correspondence between a domain name of the web server and an IP address of the DDNS server.
  • the DNS server may obtain the IP address of the DDNS server in the DDNS server corresponding to the domain name of the web server according to the registry key. Addressing; then, the DNS server returns the IP address of the DDNS server to the terminal, so that the terminal resends the access request to the DDNS server, and the DDNS server can obtain the network server according to the redirect entry.
  • the NAT device corresponding to the domain name is the first assigned to the web server.
  • the DDNS server returns a message to the other terminal to instruct the other terminal to access the first IP address assigned by the NAT device to the web server.
  • NAT device is preferably a CGN device.
  • redirection mechanism used by the DDNS server can be various.
  • the DDNS server can directly use the HTTP redirection mechanism by returning a response code of 3xx, and the new uniform resource locator (Uniform Resource) is given on the same day.
  • Locator, URL 0 column ⁇ port
  • the DNS server can obtain the The IP address of the DDNS server corresponding to webserver2000.example.org; then, the DNS server returns the IP of the DDNS server to the terminal, and the terminal initiates an access request to the DDNS server (the URL field contains http: ⁇ webserver2000.example.org/patents
  • the DDNS server can obtain the first IP address assigned by the NAT device corresponding to webserver2000.example.org for the Web server and the first port identifier 200.1.1.10:2000 according to the redirect entry; then, the DD
  • the DDNS client running on the web server obtains the first IP address information allocated by the NAT device for the web server by using the NAT traversal protocol, so that the DDNS client can send the first message to the DDNS server.
  • the first registration message includes first IP address information allocated by the NAT device to the web server, so that the DDNS server uses the domain name of the web server and the IP address of the DDNS server to the DNS.
  • the server is registered, and the technical solution of the embodiment is used, and there is no need to additionally add a relay device, which can solve the problem that the other terminal passes through the Internet due to the IP address information of the relay device registered by the DDNS client to the DDNS server in the prior art. (Internet)
  • all access traffic needs to be forwarded to the DDNS client through the relay device, thereby improving access efficiency.
  • FIG. 5 is a schematic structural diagram of a DDNS server according to another embodiment of the present disclosure.
  • the DDNS server in this embodiment may include a receiver 51, a redirecting unit 52, and a registration unit 53.
  • the receiver 51 is configured to receive a first registration message for registering a domain name of the application server, where the first registration message includes first IP address information allocated by the NAT device for the application server, and the redirection unit 52 And, when the first IP address information includes an IP address and a port identifier, establishing a redirection entry according to the domain name of the application server and the first IP address information, where the redirection entry includes the application Corresponding relationship between the domain name of the server and the first IP address information; the registration unit 53 is configured to register with the DNS server by using the domain name of the application server and the IP address of the DDNS server.
  • the registration unit 53 may further use the domain name of the application server and the IP address to the DNS when the first IP address information is an IP address. Server registration.
  • the first IP address information may include, but is not limited to, an IP address (ie, a public network IP address), or an IP address (ie, a public network IP address) and a port identifier.
  • the NAT device may be a Carrier Grade NAT (CGN) device, or may be a routing device with a NAT function, for example, Customer Premise Equipment (CPE), etc., this embodiment does not Limited.
  • CGN Carrier Grade NAT
  • CPE Customer Premise Equipment
  • the receiver 51 may specifically receive the first registration message sent by the NAT device.
  • the receiver 51 may specifically receive the first registration message sent by the DDNS client running on the application server.
  • FIG. 6 is a schematic structural diagram of a DDNS server according to another embodiment of the present application.
  • the DDNS server in this embodiment may include a receiver 61, a redirecting unit 62, and a registration unit 63.
  • the receiver 61 is configured to receive a first registration message for registering a domain name of the application server, where the first registration message includes first IP address information that is allocated by the NAT device to the application server, and the redirection unit 62 And when the first IP address information includes an IP address and a port identifier, sending the domain name of the application server and the first IP address information to a redirect server, so that the redirect server establishes a redirection table.
  • the redirection entry includes a correspondence between the domain name of the application server and the first IP address information.
  • the registration unit 63 is configured to use the domain name of the application server and the IP address of the redirect server.
  • the DNS server is registered.
  • FIG. 7 is a schematic structural diagram of a NAT device according to another embodiment of the present disclosure.
  • the NAT device in this embodiment may include a receiver 71, a processor 72, and a transmitter 73.
  • the receiver 71 is configured to capture a second registration message sent by the DDNS client running on the application server, where the payload of the second registration message includes the second IP address information of the application server;
  • the sender 73 is configured to allocate the first IP address information to the application server, and the sender 73 is configured to replace the first IP address information with the second IP address information, generate the first registration message, and send the message to the DDNS Server.
  • the DDNS server when the DDNS server receives the first registration message, when the first IP address information includes an IP address and a port identifier, the DDNS server is configured according to the domain name of the application server and the first IP address information, establishing a redirection entry, and the DDNS server registers with the DNS server by using a domain name of the application server and an IP address of the DDNS server, where the redirection entry includes the application server Correspondence between the domain name and the first IP address information; or
  • the DDNS server registers with the DNS server by using the domain name of the application server and the IP address of the redirect server, where the redirection entry includes a correspondence between the domain name of the application server and the first IP address information.
  • FIG. 8 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • the registration system of this embodiment may include a DDNS client 81, a NAT device 82, and a DDNS server 83.
  • the DDNS client 81 runs on the application server, and is configured to send a second registration message to the DDNS server 83, where the payload of the second registration message includes the second IP address information of the application server;
  • the 82 is configured to capture the second registration message, allocate the first IP address information to the application server, replace the second IP address information with the second IP address information, generate a first registration message, and send The first registration message;
  • the DDNS server 83 is configured to receive the first registration message, when the first IP address information includes an IP address and a port identifier, according to the domain name and the IP address of the application server Information, establishing a redirection entry, and registering with the DNS server by using a domain name of the application server and an IP address of the DDNS server, where the redirection entry includes a domain name of the application server and the first Correspondence of IP address information.
  • the DDNS server 83 may further use the domain name of the application server and the IP when the first IP address information is an IP address. Address, register with the DNS server.
  • FIG. 9 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • the registration system of this embodiment may include a DDNS client 91, a NAT device 92, and a DDNS service.
  • the DDNS client 91 runs on the application server, and is configured to send a second registration message to the DDNS server 93, where the payload of the second registration message includes the second IP of the application server.
  • Address information the NAT device 92 is configured to capture the second registration message, allocate the first IP address information to the application server, replace the first IP address information with the second IP address information, and generate a first registration.
  • a packet, and sending the first registration message the DDNS server 93 is configured to receive the first registration message, and when the first IP address information includes an IP address and a port identifier, the domain name of the application server is used.
  • the redirecting server sends the first IP address information to the redirecting server, so that the redirecting server establishes a redirection entry, and is further configured to utilize a domain name of the application server and an IP address of the redirecting server,
  • the DNS server is registered, and the redirection entry includes a correspondence between a domain name of the application server and the first IP address information.
  • FIG. 10 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • the registration system of this embodiment may include a DDNS client 1001 and a DDNS server 1002.
  • the DDNS client 1001 runs on the application server, and is configured to send a first registration message to the DDNS server, where the first registration message includes the first part allocated by the NAT device to the application server.
  • An IP address information is obtained by the DDNS client by using a NAT traversal protocol; the DDNS server 1002 is configured to receive the first registration message, and when the first IP address information includes an IP address Establishing a redirection entry according to the domain name of the application server and the first IP address information, and the DDNS server uses the domain name of the application server and the IP address of the DDNS server.
  • the DNS server is registered, and the redirection entry includes a correspondence between a domain name of the application server and the first IP address information.
  • the DDNS server 1002 may further use the domain name of the application server and the IP when the first IP address information is an IP address. Address, register with the DNS server.
  • FIG. 11 is a schematic structural diagram of a registration system according to another embodiment of the present application.
  • the registration system of this embodiment may include a DDNS client 1 101 and a DDNS server 1 102.
  • the DDNS client 1 101 runs on the application server, and is configured to send a first registration message to the DDNS server, where the first registration message includes the first IP address information allocated by the NAT device to the application server.
  • the first IP address information is obtained by the DDNS client by using a NAT traversal protocol; the DDNS server 1 102 is configured to receive the first registration message, where the first IP address information includes an IP address and a port identifier.
  • the redirecting server sends the domain name of the application server and the first IP address information to the redirecting server, so that the redirecting server establishes a redirection entry, and is further configured to utilize the domain name of the application server and the The IP address of the redirecting server is registered with the DNS server, and the redirection entry includes a correspondence between the domain name of the application server and the first IP address information.
  • the foregoing second IP address information may include only the IP address allocated by the client for the application server, and may also include the IP address and port identifier assigned by the client to the application server.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute the method of the various embodiments of the present application. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and the like, and the program code can be stored. Medium.

Abstract

本申请提供注册方法及设备、系统。一种注册方法包括:DDNS服务器接收用于注册应用服务器的域名的第一注册报文,所述第一注册报文中包含NAT设备为所述应用服务器分配的第一IP地址信息;当所述第一IP地址信息包括IP地址和端口标识时,所述DDNS服务器根据所述应用服务器的域名和所述第一IP地址信息,建立重定向表项,所述重定向表项包含所述应用服务器的域名与所述第一IP地址信息的对应关系;所述DDNS服务器利用所述应用服务器的域名和所述DDNS服务器的IP地址,向所述DNS服务器注册。

Description

注册方法及设备、 系统
技术领域
本申请涉及通信技术, 尤其涉及注册方法及设备、 系统。 背景技术
动态域名系统( Dynamic Domain Name System, DDNS )是釆用客户 端 /服务器模式, DDNS客户端 (即运行在提供应用层服务的应用服务器上, 例如, 万维网(Web )服务器或文件传输协议(File Transfer Protocol, FTP ) 服务器等)需要向 DDNS服务器, 注册所述应用服务器的域名、 所述应用服 务器的 IP 地址信息, 以使得 DDNS 服务器在域名系统 (Domain Name System, DNS )服务器中动态更新所述应用服务器的域名。 另一终端则可以 利用所述应用服务器的域名, 通过互联网 (Internet )访问所述 DDNS客户 端所在的应用服务器。
为了解决 IP地址短缺问题, 可以在 DDNS客户端所在的应用服务器之 后引入网络地址转换( Network Address Translation , NAT )技术, DDNS 客户端则可以通过一中继设备(Relay ) 向 DDNS服务器, 注册所述应用服 务器的域名、 所述中继设备的 IP地址信息。
然而, 由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址 信息, 会使得另一终端通过互联网 (Internet )访问所述 DDNS客户端所在 的应用服务器时, 所有访问流量都需要通过中继设备转发给所述 DDNS客户 端, 导致了访问效率的降低。 发明内容
本申请的多个方面提供注册方法及设备、 系统, 用以提高访问效率。 本申请的一方面, 提供一种注册方法, 包括:
DDNS服务器接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 当所述第一 IP地址信息包括 IP地址和端口标识时, 所述 DDNS服务器 根据所述应用服务器的域名和所述第一 IP地址信息, 建立重定向表项, 所述 重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系; 所述 DDNS服务器利用所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向所述 DNS服务器注册。
本申请的另一方面, 提供一种注册方法, 包括:
DDNS服务器接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 当所述第一 IP地址信息包括 IP地址和端口标识时, 所述 DDNS服务器 将所述应用服务器的域名和所述第一 IP地址信息发送给重定向服务器, 以使 得所述重定向服务器建立重定向表项, 所述重定向表项包含所述应用服务器 的域名与所述第一 IP地址信息的对应关系;
所述 DDNS服务器利用所述应用服务器的域名和所述重定向服务器的 IP 地址, 向所述 DNS服务器注册。
本申请的另一方面, 提供一种注册方法, 包括:
NAT设备捕获应用服务器上运行的 DDNS客户端发送的第二注册报文, 所述第二注册报文的净荷中包含所述应用服务器的第二 IP地址信息;
所述 NAT设备为所述应用服务器分配第一 IP地址信息;
所述 NAT设备将所述第一 IP地址信息替换所述第二 IP地址信息, 生成 所述第一注册报文, 发送给 DDNS服务器。
本申请的另一方面, 提供一种 DDNS服务器, 包括:
接收器, 用于接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 重定向单元, 用于当所述第一 IP地址信息包括 IP地址和端口标识时, 根据所述应用服务器的域名和所述第一 IP地址信息, 建立重定向表项, 所述 重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系; 注册单元, 用于利用所述应用服务器的域名和所述 DDNS服务器的 IP 地址, 向所述 DNS服务器注册。
本申请的另一方面, 提供一种 DDNS服务器, 包括:
接收器, 用于接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 重定向单元, 用于当所述第一 IP地址信息包括 IP地址和端口标识时, 将所述应用服务器的域名和所述第一 IP地址信息发送给重定向服务器, 以使 得所述重定向服务器建立重定向表项, 所述重定向表项包含所述应用服务器 的域名与所述第一 IP地址信息的对应关系;
注册单元,用于利用所述应用服务器的域名和所述重定向服务器的 IP地 址, 向所述 DNS服务器注册。
本申请的另一方面, 提供一种 NAT设备, 包括:
接收器, 用于捕获应用服务器上运行的 DDNS客户端发送的第二注册报 文, 所述第二注册报文的净荷中包含所述应用服务器的第二 IP地址信息; 处理器, 用于为所述应用服务器分配第一 IP地址信息;
发送器, 用于将所述第一 IP地址信息替换所述第二 IP地址信息, 生成 所述第一注册报文, 发送给 DDNS服务器。
本申请的另一方面, 提供一种注册系统, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第二注册报文, 所述第二注册报文的净荷中包含所述应用服务器 的第二 IP地址信息;
NAT设备, 用于捕获所述第二注册报文, 为所述应用服务器分配第一 IP 地址信息, 将所述第一 IP地址信息替换所述第二 IP地址信息, 生成第一注 册报文, 并发送所述第一注册报文;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 根据所述应用服务器的域名和所述第一 IP 地址信息, 建立重定向表项, 以及利用所述应用服务器的域名和所述 DDNS 服务器的 IP地址, 向所述 DNS服务器注册, 所述重定向表项包含所述应用 服务器的域名与所述第一 I P地址信息的对应关系。
本申请的另一方面, 提供一种注册系统, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第二注册报文, 所述第二注册报文的净荷中包含所述应用服务器 的第二 IP地址信息;
NAT设备, 用于捕获所述第二注册报文, 为所述应用服务器分配第一 IP 地址信息, 将所述第一 IP地址信息替换所述第二 IP地址信息, 生成第一注 册报文, 并发送所述第一注册报文;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 将所述应用服务器的域名和所述第一 IP地 址信息发送给重定向服务器, 以使得所述重定向服务器建立重定向表项, 以 及
还用于利用所述应用服务器的域名和所述重定向服务器的 IP地址, 向所 述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系。
本申请的另一方面, 提供一种注册系统, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第一注册报文,所述第一注册报文中包含所述 NAT设备为所述应 用服务器分配的第一 IP地址信息, 所述第一 IP地址信息是所述 DDNS客户 端利用 NAT穿越协议获得的;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 根据所述应用服务器的域名和所述第一 IP 地址信息, 建立重定向表项, 以及所述 DDNS服务器利用所述应用服务器的 域名和所述 DDNS服务器的 IP地址, 向所述 DNS服务器注册, 所述重定向 表项包含所述应用服务器的域名与所述第一 I P地址信息的对应关系。
本申请的另一方面, 提供一种注册系统, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第一注册报文,所述第一注册报文中包含所述 NAT设备为所述应 用服务器分配的第一 IP地址信息, 所述第一 IP地址信息是所述 DDNS客户 端利用 NAT穿越协议获得的;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 将所述应用服务器的域名和所述第一 IP地 址信息发送给重定向服务器, 以使得所述重定向服务器建立重定向表项, 以 及
还用于利用所述应用服务器的域名和所述重定向服务器的 IP地址, 向所 述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 I P地址信息的对应关系。 由上述技术方案可知, 釆用本发明实施例的技术方案, 无需额外增加中 继设备,能够解决现有技术中由于 DDNS客户端向 DDNS服务器注册的是中 继设备的 IP 地址信息而导致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服务器时, 所有访问流量都需要通过中继设备转发 给所述 DDNS客户端的问题, 从而提高了访问效率。 附图说明 为了更清楚地说明本申请实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本申请的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本申请一实施例提供的注册方法的流程示意图;
图 2为本申请另一实施例提供的注册方法的流程示意图;
图 3为本申请另一实施例提供的注册方法的流程示意图;
图 4为本申请另一实施例提供的注册方法的流程示意图;
图 5为本申请另一实施例提供的 DDNS服务器的结构示意图; 图 6为本申请另一实施例提供的 DDNS服务器的结构示意图; 图 7为本申请另一实施例提供的 NAT设备的结构示意图;
图 8为本申请另一实施例提供的注册系统的结构示意图;
图 9为本申请另一实施例提供的注册系统的结构示意图;
图 10为本申请另一实施例提供的注册系统的结构示意图;
图 11为本申请另一实施例提供的注册系统的结构示意图。 具体实施方式 为使本申请实施例的目的、 技术方案和优点更加清楚, 下面将结合本申 请实施例中的附图, 对本申请实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本申请一部分实施例, 而不是全部的实施例。 基于 本申请中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本申请保护的范围。 另外, 本文中术语"和 /或", 仅仅是一种描述关联对象的关联关系, 表示 可以存在三种关系, 例如, A和 /或 B, 可以表示: 单独存在 A, 同时存在 A 和 B, 单独存在 B这三种情况。 另外, 本文中字符 T, 一般表示前后关联对 象是一种"或"的关系。
图 1为本申请一实施例提供的注册方法的流程示意图, 如图 1所示。
101、 DDNS 服务器接收用于注册应用服务器的域名的第一注册报文, 所述第一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信 其中,所述第一 IP地址信息可以包括但不限于 IP地址(即公网 IP地址 ), 或者 I P地址(即公网 I P地址 )和端口标识。
102、 当所述第一 IP地址信息包括 IP地址和端口标识时, 所述 DDNS 服务器根据所述应用服务器的域名和所述第一 IP地址信息,建立重定向表项, 所述重定向表项包含所述应用服务器的域名与所述第一 I P地址信息的对应关 系。
103、 所述 DDNS服务器利用所述应用服务器的域名和所述 DDNS服务 器的 IP地址, 向所述 DNS服务器注册。
可选地, 在本实施例的一个可能的实现方式中, 在 101之后, 当所述第 一 IP地址信息是 IP地址时, 所述 DDNS服务器可以直接利用所述应用服务 器的域名和所述第一 IP地址, 向 DNS服务器注册。
可选地, 在本实施例的一个可能的实现方式中, 如果所述第一 IP地址信 息为 IP地址和端口标识, 那么, 在 102中, 所述 DDNS服务器虽然可以直 接利用所述应用服务器的域名和所述第一 IP地址信息,向 DNS服务器注册。 DNS服务器可以利用服务位置 (Service Location, SRV ) 资源记录端口标 识, 但是, 大多数应用程序都不会处理该 SRV资源。 那么, 所述 DDNS月良 务器则可以根据所述应用服务器的域名和所述第一 IP地址信息,建立重定向 表项, 以及利用所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向 所述 DNS服务器注册。其中, 所述重定向表项包含所述应用服务器的域名与 所述第一 IP地址信息的对应关系。
可选地, 在本实施例的一个可能的实现方式中, 还可以设置一个独立的 重定向服务器。 那么, 可以理解的是, 在 102中, 可替换地, 当所述第一 IP 地址信息包括 IP地址和端口标识时, 所述 DDNS服务器则可以将所述应用 服务器的域名和所述第一 IP地址信息发送给重定向服务器, 以使得所述重定 向服务器建立重定向表项, 所述重定向表项包含所述应用服务器的域名与所 述第一 IP地址信息的对应关系; 相应地, 在 103中, 可替换地, 所述 DDNS 服务器则可以利用所述应用服务器的域名和所述重定向服务器的 IP地址,向 所述 DNS服务器注册。
其中, NAT设备可以为运营商级 NAT ( Carrier Grade NAT, CGN )设 备,或者还可以为具有 NAT功能的路由设备,例如,用户住宅设备( Customer Premise Equipment, CPE )等, 本实施例对此不进行限定。
可选地, 在本实施例的一个可能的实现方式中, 在 101中, 所述 DDNS 服务器具体可以接收所述 NAT设备发送的所述第一注册报文。
具体地, 在 101之前, 首先, 所述 NAT设备还可以进一步接收所述应用 服务器上运行的 DDNS客户端发送的第二注册报文, 所述第二注册报文的净 荷中包含所述应用服务器的第二 I P地址信息; 然后, 所述 NAT设备为所述 应用服务器分配所述第一 IP地址信息; 最后, 所述 NAT设备则可以将所述 第一 IP地址信息替换所述第二 IP地址信息, 生成所述第一注册报文。
可选地, 在本实施例的一个可能的实现方式中, 在 101中, 所述 DDNS 服务器具体可以接收所述应用服务器上运行的 DDNS客户端发送的所述第一 注册报文。
具体地, 在 101之前, 首先, 所述 DDNS客户端具体可以利用 NAT穿 越协议,获得所述 NAT设备为所述应用服务器分配的所述第一 I P地址信息。 其中, 所述 NAT穿越协议可以包括但不限于通用即插即用 (Universal Plug and Play, UPnP )协议、 端口控制协议 ( Port Control Protocol, PCP )和 NAT端口映射协议 ( NAT Port Mapping Protocol, NATPmP )中的一个或几 个。
本实施例中, 通过 DDNS服务器接收用于注册应用服务器的域名的第一 注册报文,所述第一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息,当所述第一 IP地址信息包括 IP地址和端口标识时,所述 DDNS 服务器根据所述应用服务器的域名和所述第一 IP地址信息,建立重定向表项, 所述重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关 系, 使得所述 DDNS服务器能够利用所述应用服务器的域名和所述 DDNS 服务器的 IP地址, 向所述 DNS服务器注册, 釆用本实施例的技术方案, 无 需额外增加中继设备,能够解决现有技术中由于 DDNS客户端向 DDNS服务 器注册的是中继设备的 IP地址信息而导致的另一终端通过互联网(Internet ) 访问所述 DDNS客户端所在的应用服务器时, 所有访问流量都需要通过中继 设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
图 2为本申请另一实施例提供的注册方法的流程示意图, 如图 2所示。
201、 NAT设备捕获应用服务器上运行的 DDNS客户端发送的第二注册 报文, 所述第二注册报文的净荷中包含所述应用服务器的第二 IP地址信息。
202、 所述 NAT设备为所述应用服务器分配第一 IP地址信息。
203、所述 NAT设备将所述第一 IP地址信息替换所述第二 IP地址信息, 生成所述第一注册报文, 发送给所述 DDNS服务器。
这样, 当所述 DDNS服务器收到所述第一注册报文时, 当所述第一 IP 地址信息包括 IP地址和端口标识时, 所述 DDNS服务器根据所述应用服务 器的域名和所述第一 IP地址信息, 建立重定向表项, 以及所述 DDNS服务 器利用所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向所述 DNS 服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP地址 信息的对应关系; 或者
所述 DDNS服务器将所述应用服务器的域名和所述第一 IP地址信息发 送给重定向服务器, 以使得所述重定向服务器建立重定向表项, 以及所述 DDNS服务器利用所述应用服务器的域名和所述重定向服务器的 IP地址,向 所述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第 一 IP地址信息的对应关系。
其中,所述第一 IP地址信息可以包括但不限于 IP地址(即公网 IP地址 ), 或者 IP地址(即公网 IP地址 )和端口标识。
可选地, 在本实施例的一个可能的实现方式中, 如果所述第一 IP地址信 息为 IP地址, 那么, 所述 DDNS服务器则可以直接利用所述应用服务器的 域名和所述 IP地址, 向 DNS服务器注册。
可选地, 在本实施例的一个可能的实现方式中, 如果所述第一 IP地址信 息为 IP地址和端口标识, 那么, 所述 DDNS服务器虽然可以直接利用所述
8 应用服务器的域名和所述第一 IP地址信息, 向 DNS服务器注册。 DNS服务 器可以利用服务位置 (Service Location, SRV ) 资源记录端口标识, 但是, 大多数应用程序都不会处理该 SRV资源。 那么, 所述 DDNS服务器则可以 根据所述应用服务器的域名和所述第一 IP地址信息, 建立重定向表项, 以及 利用所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向所述 DNS月良 务器注册。 其中, 所述重定向表项包含所述应用服务器的域名与所述第一 IP 地址信息的对应关系。
可选地, 在本实施例的一个可能的实现方式中, 还可以设置一个独立的 重定向服务器。 那么, 可以理解的是, 可替换地, 当所述第一 IP地址信息包 括 IP地址和端口标识时, 所述 DDNS服务器则可以将所述应用服务器的域 名和所述第一 IP地址信息发送给重定向服务器, 以使得所述重定向服务器建 立重定向表项,所述重定向表项包含所述应用服务器的域名与所述第一 IP地 址信息的对应关系; 相应地, 可替换地, 所述 DDNS服务器则可以利用所述 应用服务器的域名和所述重定向服务器的 IP地址,向所述 DNS服务器注册。
其中, NAT设备可以为运营商级 NAT ( Carrier Grade NAT, CGN )设 备,或者还可以为具有 NAT功能的路由设备,例如,用户住宅设备( Customer Premise Equipment, CPE )等, 本实施例对此不进行限定。
本实施例中, NAT设备捕获应用服务器上运行的 DDNS客户端发送的第 二注册 文, 进而为所述应用服务器分配第二 IP地址信息, 通过所述 NAT 设备将所述第一 IP地址信息替换所述第二 IP地址信息, 生成所述第一注册 报文, 发送给所述 DDNS服务器, 以使得当所述第一 IP地址信息包括 IP地 址和端口标识时, 所述 DDNS服务器根据所述应用服务器的域名和所述第一 IP地址信息, 建立重定向表项, 以及所述 DDNS服务器利用所述应用服务器 的域名和所述 DDNS服务器的 IP地址, 向所述 DNS服务器注册, 所述重定 向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系;或者 所述 DDNS服务器将所述应用服务器的域名和所述第一 IP地址信息发送给 重定向服务器, 以使得所述重定向服务器建立重定向表项, 以及所述 DDNS 服务器利用所述应用服务器的域名和所述重定向服务器的 IP 地址, 向所述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP 地址信息的对应关系, 釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导致的另一终端通过互联网 ( Internet )访问所述 DDNS客户 端所在的应用服务器时, 所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
为使得本申请实施例提供的方法更加清楚,下面将以 Web服务器上运行 的 DDNS客户端作为举例。
图 3为本申请另一实施例提供的注册方法的流程示意图, 如图 3所示。 301、 DDNS客户端向 DDNS服务器发送用于注册 Web服务器的域名的 第二注册报文, 所述第二注册报文的净荷中包含 Web服务器的域名、 Web 服务器的第二 IP地址(即源 IP地址)和第二端口标识(即源端口标识) 。
302、 NAT设备捕获所述第二注册报文, 为 Web服务器分配第一 IP地 址和第一端口标识,以及 NAT设备则可以将为 Web服务器分配的第一 IP地 址和端口标识替换第二 | p地址和第二端口标识 ,生成新的注册报文即第一注 册报文发送给 DDNS服务器。
在 302中, NAT设备同时还建立了 NAT表项, 即该 NAT表项包括所述 注册报文中的 Web服务器的第二 IP地址和第二端口标识与 NAT设备为 Web 服务器分配的第一 I P地址和第一端口标识的对应关系。
303、 DDNS 服务器根据所述第一注册报文中包含的所述 NAT设备为 Web服务器分配的第一 IP地址和第一端口标识, 建立重定向表项, 即该重 定向表项包括 NAT设备为 Web服务器分配的第一 IP地址和第一端口标识与 Web服务器的域名的对应关系。
304、 DDNS服务器利用 Web服务器的域名和 DDNS服务器的 IP地址, 向 DNS服务器注册。
305、 DNS服务器建立注册表项, 即该注册表项包括 Web服务器的域名 与 DDNS月良务器的 IP地址的对应关系。
当另一终端利用 Web服务器的域名访问 Web服务器时, DNS服务器接 收到包含 Web服务器的域名的访问请求之后, 可以根据注册表项, 获得与 Web服务器的域名对应的 DDNS服务器中的 DDNS服务器的 IP地址;然后, DNS服务器则将所述 DDNS服务器的 IP地址返回给所述终端, 使得所述终 端重新发送访问请求到所述 DDNS服务器,该 DDNS服务器可以根据重定向
10 表项,获得与 Web服务器的域名对应的 NAT设备为 Web服务器分配的第一 IP地址和第一端口标识; 然后, DDNS服务器则向另一终端返回消息, 用以 指示所述另一终端访问所述 NAT设备为 Web服务器分配的第一 IP地址。
需要说明的是, 上述的 NAT设备优选为 CGN设备。
需要说明的是, DDNS服务器所釆用的重定向机制可以有多种。
可选地, 对于 (HyperText Transfer Protocol, HTTP )业务, DDNS月良 务器可以直接利用 HTTP的重定向机制, 通过返回 3xx的响应码来实现, 同 日于给出新的统一资源定位符( Uniform Resource Locator, URL ) 0 列^口, 如 果一个终端需要访问域名为 webserver2000.example.org的 Web服务器,那 么, DNS服务器接收到包含 webserver2000.example.or的查询请求之后, 可以根据注册表项,获得与 webserver2000.example.org对应的 DDNS月良务 器的 IP地址; 然后, DNS服务器则将 DDNS服务器的 IP返回给终端, 终端 再向 DDNS 服务器发起访问请求 ( URL 字段中 包含 http:〃 webserver2000.example.org/patents ) , 该 DDNS服务器可以根据重定向表 项, 获得与 webserver2000.example.org对应的 NAT设备为 Web月良务器分 配的 IP地址和端口标识 200.1.1.10:2000; 然后, DDNS服务器给所述终端 返回消息,告诉终端去访问这个新的 URL即 http://200.1.1.10:2000/patents, 即 NAT设备为 Web服务器分配的 IP地址和端口标识 200.1.1.10:2000。
本实施例中, NAT设备捕获 Web服务器上运行的 DDNS客户端发送的 第二注册报文, 进而为所述 Web服务器分配第一 IP地址和第一端口标识, 通过所述 NAT设备将所述第一 IP地址和所述第一端口标识替换所述第二注 册报文中所包含的第二 IP地址和第二端口标识,生成新的注册报文即第三注 册报文, 发送给所述 DDNS服务器, 以使得所述 DDNS服务器利用 Web服 务器的域名和 DDNS服务器的 IP地址, 向 DNS服务器注册, 釆用本发明实 施例的技术方案, 无需额外增加中继设备, 能够解决现有技术中由于 DDNS 客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导致的另一终端 通过互联网 (Internet )访问所述 DDNS客户端所在的 Web服务器时, 所有 访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了 访问效率。
图 4为本申请另一实施例提供的注册方法的流程示意图, 如图 4所示。
1 1 401、 DDNS客户端利用 NAT穿越协议, 获得 NAT设备为 Web服务器 分配的第一 IP地址和第一端口标识。
其中, 所述 NAT 穿越协议可以包括但不限于 UPnP 协议、 PCP 和 NATPmP中的一个或几个。
例如, DDNS客户端利用 PCP或 NATPmP, 与 NAT设备进行交互, 获 得 NAT设备为 Web服务器分配的第一 IP地址和第一端口标识。
例如, DDNS客户端利用 UPnP协议, 与 CPE进行交互, 再由 CPE利 用 PCP或 NATPmP, 与 NAT设备进行交互, 获得 NAT设备为 Web服务器 分配的第一 IP地址和第一端口标识, 并发送给 DDNS客户端。
402、 DDNS客户端向 DDNS服务器发送用于注册 Web服务器的域名的 第一注册报文, 所述注册报文中包含 Web服务器的域名、 NAT设备为 Web 服务器分配的第一 IP地址和第一端口标识。
在 402中, NAT设备捕获到所述第二注册报文之后, 还建立了 NAT表 项,即该 NAT表项包括所述第二注册报文中的 Web服务器的第二 IP地址和 第二端口标识与 NAT设备为 Web服务器分配的第一 IP地址和第一端口标识 的对应关系。
403、 DDNS 服务器根据所述第一注册报文中包含的所述 NAT设备为 Web服务器分配的第一 IP地址和第一端口标识, 建立重定向表项, 即该重 定向表项包括 NAT设备为 Web服务器分配的第一 IP地址和第一端口标识与 Web服务器的域名的对应关系。
404、 DDNS服务器利用 Web服务器的域名和 DDNS服务器的 IP地址, 向 DNS服务器注册。
405、 DNS服务器建立注册表项, 即该注册表项包括 Web服务器的域名 与 DDNS月良务器的 IP地址的对应关系。
当另一终端利用 Web服务器的域名访问 Web服务器时, DNS服务器接 收到包含 Web服务器的域名的访问请求之后, 可以根据注册表项, 获得与 Web服务器的域名对应的 DDNS服务器中的 DDNS服务器的 IP地址;然后, DNS服务器则将所述 DDNS服务器的 IP地址返回给所述终端, 使得所述终 端重新发送访问请求到所述 DDNS服务器,该 DDNS服务器可以根据重定向 表项,获得与 Web服务器的域名对应的 NAT设备为 Web服务器分配的第一
12 IP地址和第一端口标识; 然后, DDNS服务器则向另一终端返回消息, 用以 指示所述另一终端访问所述 NAT设备为 Web服务器分配的第一 IP地址。
需要说明的是, 上述的 NAT设备优选为 CGN设备。
需要说明的是, DDNS服务器所釆用的重定向机制可以有多种。
可选地, 对于 ( HyperText Transfer Protocol, HTTP )业务, DDNS月良 务器可以直接利用 HTTP的重定向机制, 通过返回 3xx的响应码来实现, 同 日于给出新的统一资源定位符( Uniform Resource Locator, URL ) 0 列^口, 如 果一个终端需要访问域名为 webserver2000.example.org的 Web服务器,那 么, DNS服务器接收到包含 webserver2000.example.or的查询请求之后, 可以根据注册表项,获得与 webserver2000.example.org对应的 DDNS服务 器的 IP地址; 然后, DNS服务器则将 DDNS服务器的 IP返回给终端, 终端 再向 DDNS 服务器发起访问请求 ( URL 字段中 包含 http:〃 webserver2000.example.org/patents ) , 该 DDNS服务器可以根据重定向表 项, 获得与 webserver2000.example.org对应的 NAT设备为 Web月良务器分 配的第一 IP地址和第一端口标识 200.1.1.10:2000; 然后, DDNS服务器给 所述终端返回 消 息 , 告诉 终端去访 问 这个新 的 URL 即 http://200.1.1.10:2000/patents , 即 NAT设备为 Web服务器分配的第一 IP 地址和第一端口标识 200.1.1.10:2000。
本实施例中, 通过 Web服务器上运行的 DDNS客户端利用 NAT穿越协 议, 获得 NAT设备为所述 Web服务器分配的第一 IP地址信息, 使得所述 DDNS客户端能够向所述 DDNS服务器发送第一注册报文, 所述第一注册报 文中包含所述 NAT设备为所述 Web服务器分配的第一 IP地址信息,以使得 所述 DDNS服务器利用 Web服务器的域名和 DDNS服务器的 IP地址, 向 DNS服务器注册, 釆用本实施例的技术方案, 无需额外增加中继设备, 能够 解决现有技术中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP 地址信息而导致的另一终端通过互联网 (Internet )访问所述 DDNS客户端 所在的 Web服务器时,所有访问流量都需要通过中继设备转发给所述 DDNS 客户端的问题, 从而提高了访问效率。
需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表 述为一系列的动作组合, 但是本领域技术人员应该知悉, 本申请并不受所描
13 述的动作顺序的限制, 因为依据本申请, 某些步骤可以釆用其他顺序或者同 时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属 于优选实施例, 所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有 详述的部分, 可以参见其他实施例的相关描述。
图 5为本申请另一实施例提供的 DDNS服务器的结构示意图,如图 5所 示, 本实施例的 DDNS服务器可以包括接收器 51、 重定向单元 52和注册单 元 53。 其中, 接收器 51用于接收用于注册应用服务器的域名的第一注册报 文, 所述第一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地 址信息;重定向单元 52用于当所述第一 IP地址信息包括 IP地址和端口标识 时, 根据所述应用服务器的域名和所述第一 IP地址信息, 建立重定向表项, 所述重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关 系; 注册单元 53用于利用所述应用服务器的域名和所述 DDNS服务器的 IP 地址, 向所述 DNS服务器注册。
可选地,在本实施例的一个可能的实现方式中, 注册单元 53还可以进一 步当所述第一 IP地址信息是 IP地址时, 利用所述应用服务器的域名和所述 IP地址, 向 DNS服务器注册。
其中,所述第一 IP地址信息可以包括但不限于 IP地址(即公网 IP地址 ), 或者 IP地址(即公网 IP地址 )和端口标识。
其中, NAT设备可以为运营商级 NAT ( Carrier Grade NAT, CGN )设 备,或者还可以为具有 NAT功能的路由设备,例如,用户住宅设备( Customer Premise Equipment, CPE )等, 本实施例对此不进行限定。
可选地,在本实施例的一个可能的实现方式中,接收器 51具体可以接收 所述 NAT设备发送的所述第一注册报文。
可选地,在本实施例的一个可能的实现方式中,接收器 51具体可以接收 所述应用服务器上运行的 DDNS客户端发送的所述第一注册报文。
釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术 中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导 致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服 务器时,所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题,
14 从而提高了访问效率。
图 6为本申请另一实施例提供的 DDNS服务器的结构示意图,如图 6所 示, 本实施例的 DDNS服务器可以包括接收器 61、 重定向单元 62和注册单 元 63。 其中, 接收器 61用于接收用于注册应用服务器的域名的第一注册报 文, 所述第一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地 址信息;重定向单元 62用于当所述第一 IP地址信息包括 IP地址和端口标识 时, 将所述应用服务器的域名和所述第一 IP地址信息发送给重定向服务器, 以使得所述重定向服务器建立重定向表项, 所述重定向表项包含所述应用服 务器的域名与所述第一 IP地址信息的对应关系; 注册单元 63用于利用所述 应用服务器的域名和所述重定向服务器的 IP地址,向所述 DNS服务器注册。
釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术 中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导 致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服 务器时,所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
图 7为本申请另一实施例提供的 NAT设备的结构示意图, 如图 7所示, 本实施例的 NAT设备可以包括接收器 71、 处理器 72和发送器 73。 其中, 接收器 71用于捕获应用服务器上运行的 DDNS客户端发送的第二注册报文, 所述第二注册报文的净荷中包含所述应用服务器的第二 IP地址信息;处理器 72用于为所述应用服务器分配第一 IP地址信息;发送器 73用于将所述第一 IP 地址信息替换所述第二 IP 地址信息, 生成所述第一注册报文, 发送给 DDNS月良务器。
这样, 当所述 DDNS服务器接收到所述第一注册报文时, 当所述第一 IP 地址信息包括 IP地址和端口标识时, 所述 DDNS服务器根据所述应用服务 器的域名和所述第一 IP地址信息, 建立重定向表项, 以及所述 DDNS服务 器利用所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向所述 DNS 服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP地址 信息的对应关系; 或者
所述 DDNS服务器将所述应用服务器的域名和所述第一 IP地址信息发 送给重定向服务器, 以使得所述重定向服务器建立重定向表项, 以及所述
15 DDNS服务器利用所述应用服务器的域名和所述重定向服务器的 IP地址,向 所述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第 一 IP地址信息的对应关系。
釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术 中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导 致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服 务器时,所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
图 8为本申请另一实施例提供的注册系统的结构示意图, 如图 8所示, 本实施例的注册系统可以包括 DDNS客户端 81、 NAT设备 82和 DDNS服 务器 83。 其中, DDNS客户端 81运行在应用服务器上, 用于向 DDNS服务 器 83发送第二注册报文,所述第二注册报文的净荷中包含所述应用服务器的 第二 IP地址信息; NAT设备 82用于捕获所述第二注册报文, 为所述应用服 务器分配第一 IP地址信息, 将所述第一 IP地址信息替换所述第二 IP地址信 息, 生成第一注册报文, 并发送所述第一注册报文; DDNS服务器 83用于接 收所述第一注册报文, 当所述第一 IP地址信息包括 IP地址和端口标识时, 根据所述应用服务器的域名和所述 IP地址信息, 建立重定向表项, 以及利用 所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向所述 DNS服务器 注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的 对应关系。
可选地,在本实施例的一个可能的实现方式中, DDNS服务器 83还可以 进一步当所述第一 IP地址信息是 IP地址时, 所述 DDNS服务器利用所述应 用服务器的域名和所述 IP地址, 向 DNS服务器注册。
釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术 中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导 致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服 务器时,所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
图 9为本申请另一实施例提供的注册系统的结构示意图, 如图 9所示, 本实施例的注册系统可以包括 DDNS客户端 91、 NAT设备 92和 DDNS服
16 务器 93。 其中, DDNS客户端 91所述 DDNS客户端运行在应用服务器上, 用于向 DDNS服务器 93发送第二注册报文, 所述第二注册报文的净荷中包 含所述应用服务器的第二 IP地址信息; NAT设备 92用于捕获所述第二注册 报文, 为所述应用服务器分配第一 IP地址信息, 将所述第一 IP地址信息替 换所述第二 IP 地址信息, 生成第一注册报文, 并发送所述第一注册报文; DDNS服务器 93用于接收所述第一注册报文, 当所述第一 IP地址信息包括 IP地址和端口标识时,将所述应用服务器的域名和所述第一 IP地址信息发送 给重定向服务器, 以使得所述重定向服务器建立重定向表项, 以及还用于利 用所述应用服务器的域名和所述重定向服务器的 IP地址, 向所述 DNS服务 器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP地址信息 的对应关系。
釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术 中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导 致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服 务器时,所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
图 10为本申请另一实施例提供的注册系统的结构示意图,如图 10所示, 本实施例的注册系统可以包括 DDNS客户端 1001和 DDNS月良务器 1002。 其中, DDNS客户端 1001所述 DDNS客户端运行在应用服务器上, 用于向 DDNS服务器发送第一注册报文,所述第一注册报文中包含所述 NAT设备为 所述应用服务器分配的第一 IP地址信息,所述第一 IP地址信息是所述 DDNS 客户端利用 NAT穿越协议获得的; DDNS服务器 1002用于接收所述第一注 册艮文, 当所述第一 IP地址信息包括 IP地址和端口标识时, 根据所述应用 服务器的域名和所述第一 IP地址信息, 建立重定向表项, 以及所述 DDNS 服务器利用所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向所述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP 地址信息的对应关系。
可选地, 在本实施例的一个可能的实现方式中, DDNS服务器 1002还 可以进一步当所述第一 IP地址信息是 IP地址时, 所述 DDNS服务器利用所 述应用服务器的域名和所述 IP地址, 向 DNS服务器注册。
17 釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术 中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导 致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服 务器时,所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
图 1 1为本申请另一实施例提供的注册系统的结构示意图,如图 11所示, 本实施例的注册系统可以包括 DDNS客户端 1 101和 DDNS服务器 1 102。 其中, DDNS客户端 1 101运行在应用服务器上, 用于向 DDNS服务器发送 第一注册报文,所述第一注册报文中包含所述 NAT设备为所述应用服务器分 配的第一 IP地址信息,所述第一 IP地址信息是所述 DDNS客户端利用 NAT 穿越协议获得的; DDNS服务器 1 102用于接收所述第一注册报文, 当所述 第一 IP地址信息包括 IP地址和端口标识时, 将所述应用服务器的域名和所 述第一 IP地址信息发送给重定向服务器, 以使得所述重定向服务器建立重定 向表项, 以及还用于利用所述应用服务器的域名和所述重定向服务器的 IP地 址, 向所述 DNS服务器注册, 所述重定向表项包含所述应用服务器的域名与 所述第一 IP地址信息的对应关系。
釆用本实施例的技术方案, 无需额外增加中继设备, 能够解决现有技术 中由于 DDNS客户端向 DDNS服务器注册的是中继设备的 IP地址信息而导 致的另一终端通过互联网 (Internet )访问所述 DDNS客户端所在的应用服 务器时,所有访问流量都需要通过中继设备转发给所述 DDNS客户端的问题, 从而提高了访问效率。
需要说明的是,前面提到的第二 IP地址信息可以只包括客户端为应用服 务器分配的 IP地址,还可以 包括客户端为应用服务器分配的 IP地址和端口 标识。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可
18 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用硬件加软件 功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算机 可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若干指 令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器(processor )执行本申请各个实施例所述方法的部分步骤。 而前述 的存储介质包括: U盘、 移动硬盘、 只读存储器(Read-Only Memory, 简称 ROM ) 、 随机存取存储器( Random Access Memory, 简称 RAM ) 、 磁碟 或者光盘等各种可以存储程序代码的介质。
最后应说明的是: 以上实施例仅用以说明本申请的技术方案, 而非对其 限制; 尽管参照前述实施例对本申请进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本申请各实施例技术方案的精神和范围。
19

Claims

权 利 要求 书
1、 一种注册方法, 其特征在于, 包括:
DDNS服务器接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 当所述第一 IP地址信息包括 IP地址和端口标识时, 所述 DDNS服务器 根据所述应用服务器的域名和所述第一 IP地址信息, 建立重定向表项, 所述 重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系; 所述 DDNS服务器利用所述应用服务器的域名和所述 DDNS服务器的 IP地址, 向所述 DNS服务器注册。
2、 根据权利要求 1所述的方法, 其特征在于, 所述 DDNS服务器接收 用于注册应用服务器的域名的第一注册报文之后, 还包括:
当所述第一 IP地址信息是 IP地址时, 所述 DDNS服务器利用所述应用 服务器的域名和所述 IP地址, 向 DNS服务器注册。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述 DDNS服务器 接收用于注册应用服务器的域名的第一注册报文, 包括:
所述 DDNS服务器接收所述 NAT设备发送的所述第一注册报文; 或者 所述 DDNS服务器接收所述应用服务器上运行的 DDNS客户端发送的所 述第一注册报文。
4、 根据权利要求 3所述的方法, 其特征在于, 所述 DDNS服务器接收 所述 NAT设备发送的所述第一注册报文之前, 还包括:
所述 NAT设备捕获所述应用服务器上运行的 DDNS客户端发送的第二 注册报文,所述第二注册报文的净荷中包含所述应用服务器的第二 IP地址信 所述 NAT设备为所述应用服务器分配所述第一 IP地址信息;
所述 NAT设备将所述第一 IP地址信息替换所述第二 IP地址信息, 生成 所述第一注册报文。
5、 根据权利要求 4所述的方法, 其特征在于, 所述 DDNS服务器接收 所述应用服务器上运行的 DDNS客户端发送的所述第一注册报文之前, 还包 括:
所述 DDNS客户端利用 NAT穿越协议, 获得所述 NAT设备为所述应用 服务器分配的所述第一 IP地址信息。
6、 一种注册方法, 其特征在于, 包括:
DDNS服务器接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 当所述第一 IP地址信息包括 IP地址和端口标识时, 所述 DDNS服务器 将所述应用服务器的域名和所述第一 IP地址信息发送给重定向服务器, 以使 得所述重定向服务器建立重定向表项, 所述重定向表项包含所述应用服务器 的域名与所述第一 IP地址信息的对应关系;
所述 DDNS服务器利用所述应用服务器的域名和所述重定向服务器的 IP 地址, 向所述 DNS服务器注册。
7、 一种注册方法, 其特征在于, 包括:
NAT设备捕获应用服务器上运行的 DDNS客户端发送的第二注册报文, 所述第二注册报文的净荷中包含所述应用服务器的第二 IP地址信息;
所述 NAT设备为所述应用服务器分配第一 IP地址信息;
所述 NAT设备将所述第一 IP地址信息替换所述第二 IP地址信息, 生成 所述第一注册报文, 发送给 DDNS服务器。
8、 一种 DDNS服务器, 其特征在于, 包括:
接收器, 用于接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 重定向单元, 用于当所述第一 IP地址信息包括 IP地址和端口标识时, 根据所述应用服务器的域名和所述第一 IP地址信息, 建立重定向表项, 所述 重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系; 注册单元, 用于利用所述应用服务器的域名和所述 DDNS服务器的 IP 地址, 向所述 DNS服务器注册。
9、 根据权利要求 8所述的 DDNS服务器, 其特征在于, 所述注册单元 还用于当所述第一 IP地址信息是 IP地址时, 利用所述应用服务器的域名和 所述 IP地址, 向 DNS服务器注册。
10、 根据权利要求 8或 9所述的 DDNS服务器, 其特征在于, 所述接收 器具体用于
接收所述 NAT设备发送的所述第一注册报文; 或者 接收所述应用服务器上运行的 DDNS客户端发送的所述第一注册报文。
1 1、 一种 DDNS服务器, 其特征在于, 包括:
接收器, 用于接收用于注册应用服务器的域名的第一注册报文, 所述第 一注册报文中包含 NAT设备为所述应用服务器分配的第一 IP地址信息; 重定向单元, 用于当所述第一 IP地址信息包括 IP地址和端口标识时, 将所述应用服务器的域名和所述第一 IP地址信息发送给重定向服务器, 以使 得所述重定向服务器建立重定向表项, 所述重定向表项包含所述应用服务器 的域名与所述第一 IP地址信息的对应关系;
注册单元,用于利用所述应用服务器的域名和所述重定向服务器的 IP地 址, 向所述 DNS服务器注册。
12、 一种 NAT设备, 其特征在于, 包括:
接收器, 用于捕获应用服务器上运行的 DDNS客户端发送的第二注册报 文, 所述第二注册报文的净荷中包含所述应用服务器的第二 IP地址信息; 处理器, 用于为所述应用服务器分配第一 IP地址信息;
发送器, 用于将所述第一 IP地址信息替换所述第二 IP地址信息, 生成 所述第一注册报文, 发送给 DDNS服务器。
13、 一种注册系统, 其特征在于, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第二注册报文, 所述第二注册报文的净荷中包含所述应用服务器 的第二 IP地址信息;
NAT设备, 用于捕获所述第二注册报文, 为所述应用服务器分配第一 IP 地址信息, 将所述第一 IP地址信息替换所述第二 IP地址信息, 生成第一注 册报文, 并发送所述第一注册报文;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 根据所述应用服务器的域名和所述第一 IP 地址信息, 建立重定向表项, 以及利用所述应用服务器的域名和所述 DDNS 服务器的 IP地址, 向所述 DNS服务器注册, 所述重定向表项包含所述应用 服务器的域名与所述第一 I P地址信息的对应关系。
14、 根据权利要求 13所述的系统, 其特征在于, 所述 DDNS服务器还 用于 当所述第一 IP地址信息是 IP地址时, 所述 DDNS服务器利用所述应用 服务器的域名和所述 IP地址, 向 DNS服务器注册。
15、 一种注册系统, 其特征在于, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第二注册报文, 所述第二注册报文的净荷中包含所述应用服务器 的第二 IP地址信息;
NAT设备, 用于捕获所述第二注册报文, 为所述应用服务器分配第一 IP 地址信息, 将所述第一 IP地址信息替换所述第二 IP地址信息, 生成第一注 册报文, 并发送所述第一注册报文;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 将所述应用服务器的域名和所述第一 IP地 址信息发送给重定向服务器, 以使得所述重定向服务器建立重定向表项, 以 及
还用于利用所述应用服务器的域名和所述重定向服务器的 IP地址, 向所 述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系。
16、 一种注册系统, 其特征在于, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第一注册报文,所述第一注册报文中包含所述 NAT设备为所述应 用服务器分配的第一 IP地址信息, 所述第一 IP地址信息是所述 DDNS客户 端利用 NAT穿越协议获得的;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 根据所述应用服务器的域名和所述第一 IP 地址信息, 建立重定向表项, 以及所述 DDNS服务器利用所述应用服务器的 域名和所述 DDNS服务器的 IP地址, 向所述 DNS服务器注册, 所述重定向 表项包含所述应用服务器的域名与所述第一 I P地址信息的对应关系。
17、 根据权利要求 16所述的系统, 其特征在于, 所述 DDNS服务器还 用于
当所述第一 IP地址信息是 IP地址时, 所述 DDNS服务器利用所述应用 服务器的域名和所述第一 IP地址, 向 DNS服务器注册。
18、 一种注册系统, 其特征在于, 包括:
DDNS客户端, 所述 DDNS客户端运行在应用服务器上, 用于向 DDNS 服务器发送第一注册报文,所述第一注册报文中包含所述 NAT设备为所述应 用服务器分配的第一 IP地址信息, 所述第一 IP地址信息是所述 DDNS客户 端利用 NAT穿越协议获得的;
所述 DDNS服务器, 用于接收所述第一注册报文, 当所述第一 IP地址 信息包括 IP地址和端口标识时, 将所述应用服务器的域名和所述第一 IP地 址信息发送给重定向服务器, 以使得所述重定向服务器建立重定向表项, 以 及 还用于利用所述应用服务器的域名和所述重定向服务器的 IP地址, 向所 述 DNS服务器注册,所述重定向表项包含所述应用服务器的域名与所述第一 IP地址信息的对应关系。
PCT/CN2012/077017 2012-06-15 2012-06-15 注册方法及设备、系统 WO2013185352A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/077017 WO2013185352A1 (zh) 2012-06-15 2012-06-15 注册方法及设备、系统
CN201280000746.1A CN103621036A (zh) 2012-06-15 2012-06-15 注册方法及设备、系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/077017 WO2013185352A1 (zh) 2012-06-15 2012-06-15 注册方法及设备、系统

Publications (1)

Publication Number Publication Date
WO2013185352A1 true WO2013185352A1 (zh) 2013-12-19

Family

ID=49757456

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077017 WO2013185352A1 (zh) 2012-06-15 2012-06-15 注册方法及设备、系统

Country Status (2)

Country Link
CN (1) CN103621036A (zh)
WO (1) WO2013185352A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184846A (zh) * 2014-09-10 2014-12-03 北京浩瀚深度信息技术股份有限公司 一种互联网端口的整理方法及装置
CN112187495A (zh) * 2019-07-01 2021-01-05 阿里巴巴集团控股有限公司 终端与服务器的通信方法、通信系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043447A (zh) * 2007-04-23 2007-09-26 重庆大学 基于ddns和nat的服务器内外网动态映射方法
CN101217576A (zh) * 2008-01-18 2008-07-09 厦门纳网科技有限公司 动态域名解析系统及其动态解析方法
CN102148882A (zh) * 2011-04-25 2011-08-10 中国联合网络通信集团有限公司 部署nat后的动态域名解析方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277257B (zh) * 2007-03-26 2012-02-01 华为技术有限公司 一种dns动态更新的方法、装置和系统
CN101645875A (zh) * 2008-08-04 2010-02-10 友讯科技股份有限公司 一种建立联机信道的方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101043447A (zh) * 2007-04-23 2007-09-26 重庆大学 基于ddns和nat的服务器内外网动态映射方法
CN101217576A (zh) * 2008-01-18 2008-07-09 厦门纳网科技有限公司 动态域名解析系统及其动态解析方法
CN102148882A (zh) * 2011-04-25 2011-08-10 中国联合网络通信集团有限公司 部署nat后的动态域名解析方法及系统

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184846A (zh) * 2014-09-10 2014-12-03 北京浩瀚深度信息技术股份有限公司 一种互联网端口的整理方法及装置
CN104184846B (zh) * 2014-09-10 2017-09-26 北京浩瀚深度信息技术股份有限公司 一种互联网端口的整理方法及装置
CN112187495A (zh) * 2019-07-01 2021-01-05 阿里巴巴集团控股有限公司 终端与服务器的通信方法、通信系统
CN112187495B (zh) * 2019-07-01 2023-12-12 阿里巴巴集团控股有限公司 终端与服务器的通信方法、通信系统

Also Published As

Publication number Publication date
CN103621036A (zh) 2014-03-05

Similar Documents

Publication Publication Date Title
Nordström et al. Serval: An {End-Host} stack for {Service-Centric} networking
US8683023B1 (en) Managing communications involving external nodes of provided computer networks
US9419940B2 (en) IPv4 data center support for IPv4 and IPv6 visitors
WO2021073565A1 (zh) 业务服务提供方法及系统
US9191317B2 (en) Method and system for implementing interconnection between internet protocol version 4 network and new network
JP2013527632A (ja) マルチnat64環境のための方法及びホストノード
TW200537880A (en) Tunneling service method and system
WO2014201974A1 (zh) 业务路由报文处理方法、装置及网络系统
KR20150076041A (ko) 가상 사설 클라우드망에서 사설 ip 주소 기반의 멀티 테넌트를 지원하기 위한 시스템 및 그 방법
WO2014086023A1 (zh) 跨服务区通信的方法、装置和数据中心网络
US20140006638A1 (en) Method and a network node, for use in a data center, for routing an ipv4 packet over an ipv6 network
WO2013086966A1 (zh) 基于IPv6的二层互通的方法、装置和系统
CN106604119A (zh) 一种用于智能电视私有云设备的网络穿透方法及系统
KR20120129975A (ko) 데이터 메시지 처리 방법, 시스템 및 접속 서비스 노드
WO2012130128A1 (zh) 一种实现网络标识转换的方法、装置及系统
CN102970387A (zh) 一种域名解析方法、装置及系统
WO2014110912A1 (zh) 访问局域网中隔离区主机的方法和装置
JP5241665B2 (ja) 通信装置、通信システムおよび通信方法
WO2013185352A1 (zh) 注册方法及设备、系统
WO2010099742A1 (zh) 一种主机通信的方法、系统和设备
JP2008258917A (ja) 同一nat配下通信制御システム、nat装置、同一nat配下通信制御方法、及びプログラム
WO2013026299A1 (zh) 一种地址解析方法、装置及信息传输方法
WO2009086754A1 (zh) 本地传输地址分配方法及系统、媒体网关及其控制器
KR20180007898A (ko) 가상 사설 클라우드망에서 테넌트 내 그룹 분리 방법
JP2009207182A (ja) パケット生成方法およびその機能を有する情報処理装置並びにパケット生成プログラムを記録した記録媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12879126

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12879126

Country of ref document: EP

Kind code of ref document: A1