WO2010099742A1 - 一种主机通信的方法、系统和设备 - Google Patents

一种主机通信的方法、系统和设备 Download PDF

Info

Publication number
WO2010099742A1
WO2010099742A1 PCT/CN2010/070837 CN2010070837W WO2010099742A1 WO 2010099742 A1 WO2010099742 A1 WO 2010099742A1 CN 2010070837 W CN2010070837 W CN 2010070837W WO 2010099742 A1 WO2010099742 A1 WO 2010099742A1
Authority
WO
WIPO (PCT)
Prior art keywords
host
identifier
destination
data packet
source
Prior art date
Application number
PCT/CN2010/070837
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 ES10748332.3T priority Critical patent/ES2559014T3/es
Priority to EP10748332.3A priority patent/EP2405614B1/en
Publication of WO2010099742A1 publication Critical patent/WO2010099742A1/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/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • 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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, system, and device for host communication. Background technique
  • IP Internet Protocol
  • the IP address bears the dual semantics of the host ID (identity) and location (Locator), it causes a series of problems, such as routing scalability problems, mobile support poor problems, and so on.
  • HIP Home Identity Protocol
  • a host ID that is, a host ID
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • Layer the transport layer session is only bound to the host ID layer.
  • the host ID layer separates the originally tightly coupled transport layer from the network layer, thereby separating the dual functions of the IP address so that it acts only as a location identifier (Locator) used by the network layer, and is dedicated to routing and forwarding of data packets.
  • the function of the host identification is handed over to the HIP, and the transport layer uses the host ID instead of the IP address as the name of the host.
  • HIP provides a secure host mobility and multi-homing approach for the Internet by separating the transport layer from the network layer; providing an encrypted host identity namespace that makes it easier to authenticate both parties to a secure, trusted network system.
  • HRA Hierarchical Routing Architecture
  • HIP host identification/location
  • One of the differences is that HRA is flat on the HIP base and 128 bit in HIP.
  • the HIT Host Identity Tag
  • the hierarchical host ID contains two parts. The former part is the AD ID (administer domain ID). The latter part is the AD ID and the public key (Public Key) Hash. Because the host ID is hierarchical and routable on the Internet, and the hierarchical host ID uses a special prefix, which is different from the general IPv6 (Internet Protocol Version 6, Internet Protocol version 6) address, it can be easily Interworking between a traditional IPv6 host and an HRA host.
  • the embodiment of the present invention provides a method, system and device for host communication, and the technical solution is as follows:
  • the embodiment of the present invention provides a host communication method.
  • the destination host is a new type host; when the source host is a new type host, the destination host is a traditional host, and the traditional host is the Internet Protocol version 6.
  • An IPv6 host the new host is a host that supports a host identity and a location separation protocol, and the method includes:
  • the embodiment of the present invention provides a host communication system.
  • the destination host is a new type host; when the source host is a new type host, the destination host is a traditional host, and the traditional host is an Internet protocol.
  • the IPv6 host of the sixth version the new host is a host that supports the host identity and the location separation protocol, and the system includes: a proxy server, a source host, and a destination host, where the source host is configured to send the first data packet;
  • the proxy server is configured to receive the first data packet in a network where the source host is located, where the first data packet carries an address identifier of the source host, and convert the first data packet into the The destination host is compatible with the second data packet, the second data packet carries the address identifier of the destination host, and the second data packet is sent to the destination host in the network where the destination host is located; The destination host is configured to receive the second data packet.
  • the embodiment of the present invention further provides a proxy server, where the proxy server is used to implement communication between a source host and a destination host.
  • the proxy server is used to implement communication between a source host and a destination host.
  • the source host is a legacy host
  • the destination host is a new type host
  • the host is a traditional host
  • the traditional host is an IPv6 host of the Internet Protocol version 6.
  • the new host is a host that supports a host identity and a location separation protocol
  • the proxy server includes:
  • a receiving module configured to receive, in a network where the source host is located, a first data packet sent by the source host, where the first data packet carries an address identifier of the source host;
  • a conversion module configured to convert the first data packet into a second data packet of the destination host compatible format, where the second data packet carries an address identifier of the destination host;
  • a sending module configured to send the second data packet to the destination host in a network where the destination host is located.
  • the solution provided by the embodiment of the present invention can implement data communication between the traditional host and the new host by converting the transmitted data packet of the source host into the data packet of the destination host, thereby improving system scalability and mobile support. . DRAWINGS
  • Embodiment 1 is a schematic flow chart of a method provided by Embodiment 1 of the present invention.
  • Embodiment 2 is a schematic flow chart of a method provided by Embodiment 2 of the present invention.
  • FIG. 3 is a schematic diagram of a conventional host sending a data packet to a new host according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic diagram of a new host providing a response packet to a legacy host according to Embodiment 2 of the present invention
  • FIG. 6 is a schematic diagram of a new type of host sending a data packet to a conventional host according to Embodiment 3 of the present invention
  • FIG. 7 is a schematic diagram of a traditional host sending a response packet to a new host according to Embodiment 3 of the present invention
  • FIG. 8 is a fourth embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a proxy server according to Embodiment 5 of the present invention.
  • An embodiment of the present invention provides a method for host communication, where host communication is communication between a source host and a destination host.
  • host communication is communication between a source host and a destination host.
  • the destination host is a new type host; otherwise, when the source host is a new type host
  • the destination host is a traditional host, the traditional host is an IPv6 host of the Internet Protocol version 6, and the new host is a host that supports the host identity and the location separation protocol.
  • the method includes: 101: receiving a source in a network where the source host is located The first data packet sent by the host, where the first data packet carries an address identifier of the source host;
  • the method further includes:
  • the destination host sends a response packet to the source host.
  • the method includes: receiving a traditional data packet sent by a traditional host in a network where the traditional host is located, and the traditional data packet carries the IPv6 address and the new type of the traditional host.
  • Host ID of the host is a traditional host in a network where the traditional host is located, and the traditional data packet carries the IPv6 address and the new type of the traditional host.
  • the traditional data packet is converted into a new type of data packet, and the new data packet carries the host identifier of the traditional host, the location identifier of the traditional host, the host identifier of the new host, and the location identifier of the new host;
  • the host ID of the traditional host, the location identifier of the traditional host, and the location identifier of the new host are obtained according to the IPv6 address of the traditional host and the host identifier of the new host, including:
  • the location identifier of the new host corresponding to the host identifier of the new host is found in the identifier location mapping server;
  • the method further includes:
  • the mapping relationship between the IPv6 address of the traditional host and the host ID of the temporarily assigned legacy host is cached.
  • the traditional data packet is converted into a new type of data packet, and the new data packet carries the host identifier of the traditional host, the location identifier of the traditional host, the host identifier of the new host, and the location identifier of the new host, including:
  • the traditional packet format is converted into a new packet protocol format in the network where the new host is located.
  • the source host identifier of the new packet is the host identifier of the legacy host
  • the destination host identifier is the host identifier of the new host
  • the location of the source host is the new host location identifier.
  • the method specifically includes:
  • the new data packet carrying the host identifier of the traditional host, the location identifier of the traditional host, the location identifier of the new host, and the host identifier of the new host;
  • the new data packet is converted into a traditional data packet, and the traditional data packet carries the IPv6 address of the traditional host and the host identifier of the new host;
  • the IPv6 address of the traditional host is obtained according to the host identifier of the traditional host, including: searching for the IPv6 address of the traditional host in the local identifier location mapping table according to the host identifier of the traditional host.
  • the obtaining the IPv6 address of the traditional host according to the host identifier of the traditional host further includes: mapping the mapping between the host identifier of the new host and the location identifier of the new host in the local identifier location mapping table.
  • the new data packet is converted into a traditional data packet, including:
  • the source address of the traditional data packet is the host identifier of the new host, and the destination address is the IPv6 address of the traditional host.
  • the method Before receiving a new type of data packet sent by the new host in the network where the new host is located, the method includes:
  • the location identifier that is routable in the network where the new host is located is used as the location identifier of the traditional host, and the mapping relationship between the host identifier of the traditional host and the location identifier of the traditional host is registered in the identifier location mapping server;
  • the mapping between the host ID of the traditional host and the IPv6 address of the traditional host is saved.
  • the method provided by the embodiment of the present invention can implement data communication between the traditional host and the new host by converting the sent data packet of the source host into the data packet of the destination host, thereby improving system scalability and mobile support.
  • another embodiment of the present invention provides a method for host communication, which adopts a Proxy mechanism.
  • the new host of HIP or HRA communicates with the traditional IPv6 (IPv6 is the next-generation IP protocol designed by IETF (Internet Engineering Task Force) to replace the current version of IP protocol (IPv4)).
  • IPv6 is the next-generation IP protocol designed by IETF (Internet Engineering Task Force) to replace the current version of IP protocol (IPv4)
  • IPv4 IP version of IP protocol
  • the connection between the traditional host A and the destination host B is initiated as an example.
  • the host separated by the ID/Locator is called a new host, and the host that is not separated by the ID/Locator is called a traditional host.
  • the specific implementation process is as follows:
  • a host server queries the host ID of the host B 0 through DNS (Domain Name System, DNS)
  • the DNS server maintains a mapping relationship between a Fully-Qualified Domain Name (FQDN) and a host ID. Since the host ID and the IPv6 address are both 128 bits, the host can be directly recorded in the AAAA record of the DNS server. ID information without the need to retrofit existing DNS.
  • the mapping relationship between the host ID and the host IPv6 address (also known as Locator in the new network) is maintained by the ILM (ID Locator Mapper, ID/Locator Mapping) server.
  • the DNS server maintains the mapping relationship between the FQDN and the host ID, and the source host
  • the host ID of the destination host B is found in the AAAA record of the DNS server through the FQDN.
  • the source host A considers the host ID of the destination host B returned by the DNS server as the IPv6 address of the destination host B.
  • Host A sends an IPv6 packet whose source address is the IPv6 address of host A and the host ID of the host B of the host B to the host B in the traditional network.
  • the Proxy sends an IPv6 route with a special prefix whose destination address is the host ID in the traditional network, and receives the IPv6 data packet sent by the host A to the host B in the traditional network.
  • the Proxy may be an existing proxy server or a dedicated server.
  • the present invention converts data packets during communication to implement communication between different types of hosts.
  • the Proxy Because the Proxy advertises the IPv6 route with the special prefix of the host ID in the traditional network, the packet will be forwarded to the proxy hop by hop according to the route sent by the proxy.
  • the Proxy After receiving the IPv6 data packet, the Proxy queries the Locator corresponding to the host ID of the host B through the ILM server, and temporarily allocates a host ID to the host A, and maps the host ID of the host B to the Locator of the host B, and the host A.
  • the temporarily assigned host ID and host A's IPv6 address mapping relationship are cached in the local ILM mapping table.
  • the Proxy has a local ILM mapping table, in which the Locator corresponding to the host ID in the communication period (that is, the IPv6 address of the new host) is stored in the mapping table, so that the two hosts communicate multiple times in a short time.
  • the Locator corresponding to the host ID can be obtained directly, and the query is not required to be queried in the ILM server.
  • the mapping table is updated at intervals, and the interval of the update time can be flexibly selected according to actual needs. No restrictions.
  • the Proxy After receiving the IPv6 data packet, the Proxy first searches the local ILM mapping table for the Locator corresponding to the host ID of the host B (that is, the IPv6 address of the host B). If found, the Locator corresponding to the host ID of the host B is directly obtained. ; If not found in the local ILM mapping table, query the ILM server. After the Proxy obtains the mapping between the host ID and the Locator of the host B from the ILM server, the proxy caches in the local ILM mapping table, so that the host B or the other host can directly obtain the host B when communicating with the host B in a short time. The corresponding Locator does not need to be queried in the ILM server.
  • the proxy temporarily allocates a host ID to host A, and caches the temporary ID of host A and its IPv6 address mapping relationship in the local ILM mapping table, so that when host B or other new host communicates with host A in a relatively short time, The temporary ID of the host A and the corresponding IPv6 address are directly obtained without re-allocating the temporary ID for the host A.
  • the Proxy converts the received IPv6 data packet into a packet in the new network, and sends the converted new data packet to the host B in the new network.
  • the Proxy converts the IPv6 data packets received in the traditional network into a packet protocol format in the new network.
  • Source-ID is the temporary host ID of Host A
  • Destination-ID The ID is the host ID of B
  • the Source-Locator is the IPv6 address that the Proxy can route in the new network
  • the destination-locator is the IPv6 address of Host B.
  • the Proxy After the Proxy converts the IPv6 packet into a packet protocol format packet in the new network, it sends a new packet to Host B in the new network.
  • Host B receives the new data packet sent by the Proxy and sends a response packet to Host A.
  • the host B After receiving the new data packet sent by the proxy, the host B sends a response packet to the host A.
  • the source-ID is the host ID of the B
  • the destination-ID is the temporary host ID of the A
  • the source-locator is the host.
  • B's IPv6 address, destination-locator is an IPv6 address that the proxy can route in the new network.
  • the Proxy receives the response packet sent by the host B in the new network, queries the IPv6 address corresponding to the host ID of the destination host A in the local ILM mapping table, converts the response packet into an IPv6 data packet, and sends the response packet to the host A in the traditional network.
  • the IPv6 packet receives the response packet sent by the host B in the new network, queries the IPv6 address corresponding to the host ID of the destination host A in the local ILM mapping table, converts the response packet into an IPv6 data packet, and sends the response packet to the host A in the traditional network.
  • the IPv6 packet receives the response packet sent by the host B in the new network, queries the IPv6 address corresponding to the host ID of the destination host A in the local ILM mapping table, converts the response packet into an IPv6 data packet, and sends the response packet to the host A in the traditional network.
  • the IPv6 packet receives the response packet sent by the host B in the new network, queries the IPv6 address corresponding to the host
  • the proxy After the response packet sent by the host B reaches the proxy, the proxy queries the local ILM mapping table for the IPv6 address corresponding to the host ID of the destination host A (that is, the host ID temporarily assigned by the proxy to the host A in step 204), and then the data packet. Convert the protocol format to an IPv6 packet.
  • the destination address is the IPv6 address of host A
  • the source address is the host ID of host B.
  • the IPv6 packet is sent to Host A in the legacy network.
  • a further embodiment of the present invention provides a method for implementing communication between the conventional host A and the new host B.
  • the details are as follows:
  • A queries the IPv6 address corresponding to the FQDN of the destination host B through the DNS.
  • the AAAA record returned by the DNS server in the DNS response message returns the host ID of the host B. Since A is the legacy host, it will record the 128 bit value in the AAAA record. Think of it as the IPv6 address of Host B.
  • A sends an IPv6 packet to B, the source address is the IPv6 address of A, and the destination address is the host ID of host B.
  • the proxy advertises the IPv6 route with the special prefix of the host ID in the traditional network.
  • the packet is forwarded to the proxy hop by hop according to the route sent by the proxy.
  • the Proxy After the above data packet arrives at the Proxy, the Proxy first searches the local ID-Locator mapping table for the Locator corresponding to the host ID of the host B (that is, the IPv6 address of the host B); if not, the ILM system is entered. Row query, after the Proxy obtains the host ID of the host B from the ILM and the Locator mapping relationship, the local ID-Locator mapping table is cached.
  • the proxy temporarily allocates a host ID to host A, and caches the temporary ID of host A and its IPv6 address mapping relationship in the local ID-Locator mapping table.
  • the Proxy converts the above IPv6 packet into a packet protocol format in the new network.
  • the source-ID is the temporary host ID of A
  • the destination-ID is the host ID of B
  • the source-locator is an IPv6 address that the proxy can route on the new network
  • the destination-locator is the IPv6 address of host B.
  • source-ID is the host ID of B
  • destination-ID is the temporary host ID of A
  • source-Locator is the IPv6 address of host B
  • destination-locator is an IPv6 that the proxy can route in the new network. address.
  • the Proxy queries the local ID-Locator mapping table for the IPv6 address corresponding to the destination host ID (that is, the temporary host ID of A), and then converts the packet into a protocol format into an IPv6 packet.
  • the destination address is the IPv6 address of host A
  • the source address is the host E of host B.
  • the proxy sends the converted IPv6 packet to host A.
  • the destination address of the packet is the IPv6 address of host A, and the source address is the host ID of host B.
  • the method provided by the embodiment of the present invention converts the IPv6 data packet sent by the traditional host A into the data packet of the new network format of the destination host B through the Proxy, thereby realizing the data communication between the traditional host A and the new host B, thereby improving the data communication.
  • System scalability and mobility support In order to realize the mutual communication between the traditional host and the new host in the new network architecture separated by the ID/Locator, an embodiment of the present invention provides a host communication method, and adopts a Proxy (proxy) mechanism to implement the HIP.
  • the new host B initiates the connection communication with the traditional host A.
  • the new host B initiates the connection communication with the traditional host A.
  • a host separated by an ID/Locator is called a new host, and an IPv6 host that is not separated by an ID/Locator is called a legacy host.
  • a host separated by an ID/Locator is called a new host, and an IPv6 host that is not separated by an ID/Locator is called a legacy host.
  • Host B queries the host ID of host A through the DNS server, and resolves to the Locator corresponding to the host ID of host A through the ILM server. If the traditional host A wants to be accessed by the new host B, the proxy needs to assign a fixed host ID to the traditional host A, and register the host ID in the AAAA record corresponding to the FQDN of the host A in the DNS server. At the same time, the mapping relationship between the host ID of host A and the IPv6 address of the Proxy that is routable in the new network is registered in the ILM server. In addition, in the local ILM mapping table, the mapping relationship between the host ID of host A and the IPv6 address of host A is saved.
  • Host B Before Host B initiates the connection to A, it first resolves to the host ID corresponding to the FQDN of A through the DNS server (that is, the fixed host ID assigned by the proxy to the host A), and then resolves to the host ID of the host A through the ILM.
  • Locator that is, an IPv6 address that the Proxy that is registered to the ILM server is routable on the new network).
  • Host B sends a packet to Host A in the new network.
  • Host B sends a data packet to host A in the new network, and needs to send the data packet according to the format of the new data packet.
  • the source-ID of the data packet is the host ID of host B, and the destination-ID is saved in the DNS server.
  • the fixed host ID assigned by Proxy to Host A, the Source-Locator is the IPv6 address of B, and the Destination-Locator is the Locator of Host A saved in the ILM server (that is, an IPv6 address that the Proxy can route on the new network).
  • the Proxy receives the data packet sent by the host B to the host A in the new network, queries the IPv6 address corresponding to the host ID of the host A in the local ILM mapping table, and caches the host ID and Locator mapping relationship of the host B to the local ILM mapping. In the table.
  • the Proxy may be an existing proxy server or a dedicated server.
  • the present invention converts data packets during communication to implement communication between different types of hosts.
  • the packet sent by Host B to Host A is forwarded to the Proxy hop by hop.
  • the Proxy After receiving the data packet sent by the host B to the host A, the Proxy first queries the local ILM mapping table for the IPv6 address corresponding to the host ID of the host A, where the IPv6 address is the IPv6 address of the host A, and the local ILM exists. In the mapping table.
  • the proxy caches the host ID of the host B obtained in the packet with the Locator mapping relationship to the local ILM mapping table.
  • the Proxy converts the data packet into a normal IPv6 data packet and sends the IPv6 data packet to the host A in the legacy network.
  • the Proxy converts the data packet into a protocol format and becomes a normal IPv6 data packet.
  • the source address of the IPv6 packet is the host ID of B, and the destination address is the IPv6 address of host A.
  • Host A receives the IPv6 packet sent by the proxy and sends an IPv6 response packet to the host B.
  • the host AJ After host A receives the IPv6 packet sent by the proxy, the host AJ sends an IPv6 response packet to the host.
  • the Proxy advertises an IPv6 route with a special prefix whose destination address is the host ID in the traditional network, and receives an IPv6 response packet sent by Host A to Host B through the route.
  • the proxy sends an IPv6 route with a special prefix to the host ID in the traditional network.
  • the IPv6 response packet sent by host A to host B is forwarded hop by hop according to the above route sent by the proxy.
  • the Proxy After receiving the IPv6 response packet, the Proxy queries the IPv6 address corresponding to the host ID of the host B in the local ILM mapping table and the host ID corresponding to the IPv6 address of the host A saved in the ILM server, and converts the IPv6 response packet into a new response. package.
  • the Proxy After receiving the IPv6 response packet, the Proxy queries the IPv6 address corresponding to the host ID of the host B saved in the local ILM mapping table in step 503, and queries the Locator of the host A pre-stored in the ILM server (that is, the Proxy is routable in the new network). An IPv6 address).
  • the IPv6 response packet is converted into a protocol format and converted into a data packet in the new network, wherein the source-ID of the response packet in the converted new network is the host ID of the host A, and the destination-ID is the host of the host B.
  • ID Source-Locator is an IPv6 address of the Proxy that can be routed in the new network
  • destination-locator is the IPv6 address of B.
  • the Proxy will convert the new response packet to host B in the new network.
  • the above steps detail the process of data communication between the host B and the traditional host A when the new host B initiates the connection communication to the traditional host A by using the proxy to convert the data packet.
  • a further embodiment of the present invention provides a method for implementing communication between the new host B and the conventional host A.
  • the details are as follows:
  • Host B Before Host B initiates the connection to A, it first resolves to the host corresponding to the FQDN of A through DNS.
  • the ILM resolves to the Locator corresponding to the host ID of A (in fact, the Proxy is an IPv6 address of the new network).
  • the process also includes:
  • the Proxy assigns a fixed host ID to Host A as the record value of the AAAA record of Host A in the DNS system server. 0.2. The mapping between the host ID assigned by the Proxy for Host A and the locator of the Proxy that is routable in the new network is registered in the ILM server.
  • the mapping between the host ID of host A and the IPv6 address of host A is saved.
  • Host B sends a data packet to host A, where source-ID is the host ID of B, destination-ID is the host ID assigned to A by proxy, source-locator is the IPv6 address of B, and destination-locator is saved in ILM.
  • Host A's Locator (actually an IPv6 address that the Proxy can route on the new network) Since the destination-locator is an IPv6 address that the Proxy can route on the new network, the packet is forwarded hop by hop to the Proxy 0.
  • the Proxy searches the local ILM mapping table to determine the IPv6 address corresponding to the host ID of Host A.
  • the host ID and Locator mapping relationship of host B are cached to the local ID-Locator mapping table.
  • the proxy converts the data packet into a common IPv6 data packet, where the source address is the host ID of host B, the destination address is the IPv6 address of host A, and the converted IPv6 data packet is sent to the host Ao.
  • Host A sends an IPv6 response packet to host B.
  • the source address of the response packet is the IPv6 address of host A, and the destination address is the host ID of B.
  • the Proxy After receiving the IPv6 response packet, the Proxy searches the local ID-Locator mapping table to determine the IPv6 address corresponding to the host ID of Host B.
  • the proxy advertises the IPv6 route of the special prefix used by the host ID in the traditional network.
  • the IPv6 response packet is forwarded to the proxy hop by hop according to the route sent by the proxy.
  • the Proxy converts the IPv6 response packet into a protocol format, and converts the response packet into a new network and sends it to the host B.
  • the source-ID is the host ID of the host A
  • the destination-ID is the host ID of the host B
  • the source-locator is An IPv6 address of a proxy that can be routed in a new network.
  • the destination-locator is the IPv6 address of B.
  • the method provided by the embodiment of the present invention converts the IPv6 data packet sent by the new host B into the IPv6 data packet of the traditional network format of the traditional host A through the Proxy, thereby realizing the data communication between the traditional host A and the new host B, thereby improving the data communication.
  • the embodiment of the present invention further provides a system for host communication.
  • the host communication in the embodiment of the present invention is communication between the source host 802 and the destination host 803.
  • the destination host 803 For the new host; conversely, when the source host 802 is a new type host, the destination host 803 is a legacy host.
  • the traditional host is the Internet Protocol version 6 IPv6 host
  • the new host is a host that supports the host identity and the location separation protocol.
  • the system includes: a proxy server 801, a source host 802, and a destination host 803, where
  • the proxy server 801 is configured to receive the first data packet sent by the source host 802 in the network where the source host 802 is located, where the first data packet carries the address identifier of the source host 802.
  • the first data packet is converted into the destination host 803 compatible format.
  • the second data packet the second data packet carries the address identifier of the destination host 803; the second data packet is sent to the destination host 803 in the network where the destination host 803 is located;
  • the source host 802 is configured to send the first data packet.
  • the destination host 803 is configured to receive the second data packet.
  • the proxy server 801 is configured to receive the traditional data packet sent by the traditional host in the network where the traditional host is located, and the traditional data packet carries the traditional host IPv6.
  • the address and the host ID of the new host obtain the host ID of the traditional host, the location identifier of the traditional host, and the location identifier of the new host according to the IPv6 address of the traditional host and the host identifier of the new host; convert the traditional data packet into a new host compatible
  • the new data packet the new data packet carries the host identity of the traditional host, the location identifier of the traditional host, the host identity of the new host, and the location identifier of the new host; the new data packet is sent to the new host in the network where the new host is located.
  • the proxy server 801 is configured to receive a new type of data packet sent by the new type host in the network where the new type host is located, and the new type of data packet carries the traditional host.
  • the system provided by the embodiment of the invention converts the data packet sent by the source host into a data packet in the format of the destination host through the proxy server, thereby realizing data communication between the traditional host and the new host, thereby improving the scalability of the system and Mobile support.
  • the embodiment of the present invention further provides a proxy server.
  • the proxy server in the embodiment of the present invention is used to implement communication between a traditional host and a new host.
  • the proxy server may include:
  • the receiving module 901 is configured to receive, by the source host, a first data packet sent by the source host, where the first data packet carries an address identifier of the source host.
  • the conversion module 902 is configured to convert the first data packet into a second data packet in a destination host compatible format, where the second data packet carries an address identifier of the destination host.
  • the sending module 903 is configured to send the second data packet to the destination host in the network where the destination host is located.
  • the proxy server specifically includes:
  • the first receiving module 901 is configured to receive the traditional data packet sent by the traditional host in the network where the traditional host is located, where the traditional data packet carries the IPv6 address of the traditional host and the host identifier of the new host.
  • the first obtaining module is configured to obtain, according to the IPv6 address of the traditional host and the host identifier of the new host, the host identifier of the traditional host, the location identifier of the traditional host, and the location identifier of the new host;
  • the first conversion module 902 is configured to convert a traditional data packet into a new type of data packet of a new host compatible format, and the new data packet carries the host identifier of the traditional host, the location identifier of the traditional host, the host identifier of the new host, and the location of the new host. Identification
  • the first sending module 903 is configured to send the new data packet to the new host in the network where the new host is located.
  • the first obtaining module includes:
  • a first searching unit configured to: according to the host identifier of the new host, find a location identifier of the new host corresponding to the host identifier of the new host in the identifier location mapping server;
  • a first allocation unit configured to allocate a temporary host identifier to the legacy host, as a host identifier of the legacy host;
  • the first obtaining unit is configured to use a location identifier that is routable in the network where the new host is located, as a location identifier of the traditional host.
  • the first conversion module 902 includes:
  • a first conversion unit for converting a legacy packet format into a new network in which the new host is located
  • the format of the packet protocol wherein the source host identifier of the converted new packet is the host identifier of the legacy host, the host identifier of the destination host is the host identifier of the new host, the location identifier of the source host is the location identifier of the legacy host, and the destination host is The location identifier is a new host location identifier.
  • the first allocation unit further includes:
  • the first cache sub-unit is configured to cache, in the local identifier location mapping table, a mapping relationship between the IPv6 address of the traditional host and the host identifier of the traditional host allocated by the first allocation unit.
  • the proxy server includes: when the source host is a new host and the destination host is a legacy host, the proxy server includes:
  • the second receiving module 901 is configured to receive a new type of data packet sent by the new host in the network where the new host is located, and the new data packet carries the host identifier of the traditional host, the location identifier of the traditional host, the host identifier of the new host, and the new host.
  • Location identifier
  • the second obtaining module is configured to obtain an IPv6 address of the traditional host according to the host identifier of the traditional host
  • the second converting module 902 is configured to convert the new data packet into a traditional data packet, where the traditional data packet carries the IPv6 address of the traditional host and The host ID of the new host;
  • the second sending module 903 is configured to send the traditional data packet to the traditional host in the network where the traditional host is located.
  • the second obtaining module includes:
  • the second searching unit is configured to look up an IPv6 address of the traditional host in the local identifier location mapping table according to the host identifier of the traditional host.
  • the second conversion module 902 includes:
  • the second conversion unit is configured to convert the new data packet format into a traditional data packet format in the network where the traditional host is located, where the source address of the traditional data packet is the host identifier of the new host, and the destination address is the IPv6 address of the traditional host.
  • the second obtaining module further includes:
  • the second cache unit is configured to cache a mapping relationship between the host identifier of the new host and the location identifier of the new host in the local identifier location mapping table.
  • the second receiving module 901 includes:
  • a second allocation unit configured to allocate a fixed host identifier to the traditional host, as a host identifier of the traditional host, and register a mapping relationship between the host name of the traditional host and the host identifier of the traditional host in the domain name system server;
  • the second obtaining unit is configured to set a location identifier that is routable in the network where the new host is located, as a location identifier of the traditional host, and register the host identifier of the traditional host and the location identifier of the traditional host in the identifier location mapping server.
  • the third cache unit is configured to cache the mapping between the host identifier of the traditional host and the IPv6 address of the traditional host in the local identifier location mapping table.
  • the sending module 903 includes:
  • the response unit is configured to send a response packet to the source host by the destination host.
  • the proxy server provided by the embodiment of the present invention implements data communication between the traditional host and the new host by converting the data packet sent by the source host into a data packet in the format of the destination host, thereby improving system scalability and movement.
  • Embodiments of the invention may be implemented in software, and corresponding software programs may be stored in a readable storage medium, such as a hard disk, cache or optical disk of a router.

Description

一种主机通信的方法、 系统和设备 本申请要求于 2009 年 3 月 4 日提交中国专利局、 申请号为 CN 200910078869.7、 发明名称为 "一种主机通信的方法、 系统和设备" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信领域, 特别涉及一种主机通信的方法、 系统和设备。 背景技术
随着网络通信技术的不断发展, 现有 Internet架构中 IP ( Internet Protocol, 互联网协议)地址既表示主机身份(用于传输层表示会话的端点) , 又表示主机 位置 (用于路由系统进行数据包的路由寻址)。 由于 IP地址同时承担了主机 ID ( Identity, 标识)和位置 (Locator ) 的双重语义, 导致一系列的问题, 比如路 由可扩展问题, 移动支持差问题等。
HIP ( Host Identity Protocol, 主机标识协议)在现有 TCP/IP ( Transmission Control Protocol/Internet Protocol, 传输控制协议 /互联网协议)协议栈的网络层 和传输层之间引入主机 ID (也就是主机身份标识)层, 传输层会话只与主机 ID 层实现绑定。 在 HIP中, 主机 ID层将原来紧密耦合的传输层和网络层分开, 从 而分离 IP地址的双重功能, 使之只作为网络层使用的位置标识(Locator ), 专 用于数据包的路由转发, 而把主机标识的功能交给 HIP, 传输层使用主机 ID而 不是 IP地址作为主机的名字。
HIP通过将传输层与网络层分开, 为 Internet提供一个安全的主机移动和多 宿主的方法; 提供一个加密的主机标识命名空间, 更容易对通信双方进行认证, 从而实现安全的、 可信任的网络系统。
HRA ( Hierarchical Routing Architecture, 层次化路由架构)也是一种与 HIP 类似的 ID/Locator (主机标识 /位置)分离的方案, 区别之一在于: HRA在 HIP 基石出之上, 将 HIP中 128 bit扁平的 HIT ( Host Identity Tag, 主机标识标签 )修 改成层次化的主机 ID , 该层次化主机 ID 包含两个部分, 前一个部分是 AD ID(administer domain ID,管理域标识)。后一个部分是 AD ID与公钥 ( Public Key ) 的哈希。 因为将主机 ID实现了层次化而且在 Internet是可路由的, 而且该层次 化主机 ID采用特殊的前缀,区别于一般的 IPv6 ( Internet Protocol Version 6, 互联 网协议第 6版本 )地址,可以很容易地实现传统 IPv6主机与 HRA主机的互通。
目前, HIP和 HRA虽然实现了传输层与网络层分开, 使得主机标识和位置 分离, 但对于传统的未采用 ID/Locator分离的 IPv6主机与新型的 ID/Locator分 离的主机之间的通信, 还没有解决的方法, 使得传统 IPv6主机与 ID/Locator分 离的主机的通信受到阻碍, 兼容性较差。 发明内容
为了在 ID/Locator分离的新型网络架构中, 实现传统主机与新型主机之间 的互相通信, 本发明实施例提供了一种主机通信的方法、 系统和设备, 所述技 术方案如下:
本发明实施例提供一种主机通信的方法, 当源主机为传统主机时, 目的主 机为新型主机; 当源主机为新型主机时, 目的主机为传统主机, 所述传统主机 为互联网协议第 6版本 IPv6主机, 所述新型主机为支持主机标识与位置分离协 议的主机, 所述方法包括:
在所述源主机所在的网络中接收所述源主机发送的第一数据包, 所述第一 数据包携带所述源主机的地址标识;
将所述第一数据包转换为所述目的主机兼容格式的第二数据包, 所述目第 二数据包携带所述目的主机的地址标识;
在所述目的主机所在的网络中发送所述第二数据包给所述目的主机。
相应地, 本发明实施例提供一种主机通信的系统, 当源主机为传统主机时, 目的主机为新型主机; 当源主机为新型主机时, 目的主机为传统主机, 所述传 统主机为互联网协议第 6版本 IPv6主机, 所述新型主机为支持主机标识与位置 分离协议的主机, 所述系统包括: 代理服务器、 源主机、 目的主机, 其中, 所述源主机, 用于发送第一数据包;
所述代理服务器, 用于在所述源主机所在的网络中接收所述第一数据包, 所述第一数据包携带所述源主机的地址标识; 将所述第一数据包转换为所述目 的主机兼容格式的第二数据包, 所述第二数据包携带所述目的主机的地址标识; 在所述目的主机所在的网络中发送所述第二数据包给所述目的主机; 所述目的主机, 用于接收所述第二数据包。
本发明实施例还提供一种代理服务器, 所述代理服务器用于实现源主机和 目的主机之间的通信, 当所述源主机为传统主机时, 所述目的主机为新型主机; 当所述源主机为新型主机时, 所述目的主机为传统主机, 所述传统主机为互联 网协议第 6版本 IPv6主机, 所述新型主机为支持主机标识与位置分离协议的主 机, 所述代理服务器包括:
接收模块, 用于在源主机所在的网络中接收源主机发送的第一数据包, 所 述第一数据包中携带所述源主机的地址标识;
转换模块, 用于将所述第一数据包转换为所述目的主机兼容格式的第二数 据包, 所述第二数据包携带所述目的主机的地址标识;
发送模块, 用于在所述目的主机所在的网络中发送所述第二数据包给所述 目的主机。
本发明实施例提供的方案, 通过将源主机的发送的数据包转换为目的主机 的格式的数据包, 可以实现传统主机与新型主机之间的数据通信, 提高系统的 可扩展性和移动支持性。 附图说明
图 1是本发明实施例 1提供的方法流程示意图;
图 2是本发明实施例 2提供的方法流程示意图;
图 3是本发明实施例 2提供的传统主机向新型主机发送数据包交互示意图; 图 4是本发明实施例 2提供的新型主机向传统主机发送回应包交互示意图; 图 5是本发明实施例 3提供的方法流程示意图;
图 6是本发明实施例 3提供的新型主机向传统主机发送数据包交互示意图; 图 7是本发明实施例 3提供的传统主机向新型主机发送回应包交互示意图; 图 8是本发明实施例 4提供的系统结构示意图;
图 9是本发明实施例 5提供的代理服务器结构示意图。
具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面结合附图对本 发明实施方式作进一步地伴细描述。
本发明的一个实施例提供一种主机通信的方法, 主机通信为源主机和目的 主机之间的通信, 当源主机为传统主机时, 目的主机为新型主机; 反之, 当源 主机为新型主机时, 目的主机为传统主机,传统主机为互联网协议第 6版本 IPv6 主机,新型主机为支持主机标识与位置分离协议的主机,参见图 1,该方法包括: 101 : 在源主机所在的网络中接收源主机发送的第一数据包, 第一数据包携 带源主机的地址标识;
102: 将第一数据包转换为目的主机兼容格式的第二数据包, 第二数据包携 带目的主机的地址标识;
103: 在目的主机所在的网络中发送第二数据包给目的主机。
举例来说, 在目的主机所在的网络中发送第二数据包给目的主机之后, 还 包括:
目的主机发送回应包给源主机。
举例来说, 当源主机为传统主机, 目的主机为新型主机时, 方法具体包括: 在传统主机所在的网络中接收传统主机发送的传统数据包, 传统数据包中 携带传统主机的 IPv6地址和新型主机的主机标识;
根据传统主机的 IPv6地址和新型主机的主机标识, 获取传统主机的主机标 识, 传统主机的位置标识和新型主机的位置标识;
将传统数据包转换为新型数据包, 新型数据包携带传统主机的主机标识、 传统主机的位置标识、 新型主机的主机标识和新型主机的位置标识;
在新型主机所在的网络中将新型数据包发送给新型主机。
其中, 根据传统主机的 IPv6地址和新型主机的主机标识, 获取传统主机的 主机标识、 传统主机的位置标识和新型主机的位置标识, 包括:
根据新型主机的主机标识, 在标识位置映射服务器中查找新型主机的主机 标识对应的新型主机的位置标识;
为传统主机分配临时主机标识, 作为传统主机的主机标识;
进一步地, 为传统主机分配临时主机标识后, 还包括:
在本地标识位置映射表中, 缓存传统主机的 IPv6地址与临时分配的传统主 机的主机标识的映射关系。
将一个在新型主机所在的网络中可路由的位置标识作为传统主机的位置标 识。
其中, 将传统数据包转换为新型数据包, 新型数据包携带传统主机的主机 标识、 传统主机的位置标识、 新型主机的主机标识和新型主机的位置标识, 包 括:
将传统数据包格式转换为新型主机所在的网络中的新型数据包协议格式, 其中, 新型数据包的源主机标识为传统主机的主机标识、 目的主机标识为新型 主机的主机标识、 源主机的位置标识为传统主机的位置标识、 目的主机的位置 标识为新型主机位置标识。
再举例来说, 当源主机为新型主机, 目的主机为传统主机时, 方法具体包 括:
在新型主机所在的网络中接收新型主机发送的新型数据包, 新型数据包中 携带传统主机的主机标识、 传统主机的位置标识、 新型主机的位置标识和新型 主机的主机标识;
才艮据传统主机的主机标识, 获取传统主机的 IPv6地址;
将新型数据包转换为传统数据包, 传统数据包中携带传统主机的 IPv6地址 和新型主机的主机标识;
在传统主机所在的网络中将传统数据包发送给传统主机。
其中, 根据传统主机的主机标识, 获取传统主机的 IPv6地址, 包括: 根据传统主机的主机标识, 在本地标识位置映射表中查找传统主机的 IPv6 地址。
其中, 根据传统主机的主机标识, 获取传统主机的 IPv6地址, 还包括: 在本地标识位置映射表中, 缓存新型主机的主机标识与新型主机的位置标 识的映射关系。
其中, 将新型数据包转换为传统数据包, 包括: 传统数据包的源地址为新型主机的主机标识、 目的地址为传统主机的 IPv6地址。
其中, 在新型主机所在的网络中接收新型主机发送的新型数据包之前, 包 括:
为传统主机分配一个固定的主机标识作为传统主机的主机标识, 并在域名 将一个在新型主机所在的网络中可路由的位置标识, 作为传统主机的位置 标识, 并在标识位置映射服务器中注册传统主机的主机标识与传统主机的位置 标识的映射关系;
在本地的标识位置映射表中, 保存传统主机的主机标识与传统主机的 IPv6 地址的映射关系。
本发明实施例提供的方法, 通过将源主机的发送的数据包转换为目的主机 的格式的数据包, 可以实现传统主机与新型主机之间的数据通信, 提高系统的 可扩展性和移动支持性。 为了在 ID/Locator分离的新型网络架构中, 实现传统主机与新型主机之间 的互相通信, 本发明的另一个实施例提供一种主机通信的方法, 通过采用 Proxy (代理 )机制, 实现了采用 HIP或 HRA的新型主机与传统 IPv6 ( IPv6是 IETF ( Internet Engineering Task Force,互联网工程任务组 )设计的用于替代现行版本 IP协议 (IPv4)的下一代 IP协议 )主机之间的互相通信, 本发明实施例中以传统 主机 A向目的新型主机 B发起连接通信为例进行说明, 其中本发明实施例中采 用 ID/Locator分离的主机称为新型主机,未采用 ID/Locator分离主机称为传统主 机, 参见图 2, 具体实现过程如下:
201 : 主机 A通过 DNS ( Domain Name System, 域名系统)服务器查询主 机 B的主机 ID 0
在本发明实施例中, DNS服务器维护 FQDN ( Fully-Qualified Domain Name, 主机名 )到主机 ID的映射关系, 由于主机 ID与 IPv6地址都是 128bit, 因此可 以在 DNS服务器的 AAAA记录中直接记录主机 ID的信息,而不需要对现有 DNS 进行改造。 而主机 ID与主机 IPv6地址(在新型网络中也被称作 Locator ) 的映 射关系由 ILM ( ID Locator Mapper, ID/Locator映射)服务器维护。
本步骤中, 由于 DNS服务器维护 FQDN到主机 ID的映射关系, 而源主机
A是传统主机, 通过 FQDN在 DNS服务器的 AAAA记录中查找到目的主机 B 的主机 ID,源主机 A将 DNS服务器返回的目的主机 B的主机 ID看作是目的主 机 B的 IPv6地址。
202: 主机 A在传统网络中向主机 B发送源地址为主机 A的 IPv6地址、 目的地 址为主机 B的主机 ID的 IPv6数据包。 203: Proxy在传统网络中发布目的地址为主机 ID所采用的特殊前缀的 IPv6 路由, 通过该路由接收主机 A在传统网络中向主机 B发送的 IPv6数据包。
其中, Proxy可以为现有的代理服务器, 也可以为是专门的服务器, 本发明 通信时对数据包进行转换, 实现不同类型主机之间的通信。
由于 Proxy在传统网络中发布目的地址为主机 ID所采用的特殊前缀的 IPv6路 由, 上述数据包将根据 Proxy发送的上述路由被逐跳转发到 Proxy。
204: Proxy接收到该 IPv6数据包后, 通过 ILM服务器查询主机 B的主机 ID对 应的 Locator, 并为主机 A临时分配一个主机 ID, 将主机 B的主机 ID与主机 B的 Locator映射关系、 主机 A临时分配的主机 ID与主机 A的 IPv6地址映射关系都缓存 在本地 ILM映射表中。
其中, Proxy中有本地 ILM映射表, 在该映射表中保存有近一段通信时间内 主机 ID对应的 Locator (即新型主机的 IPv6地址), 以便在较短的时间内两个主机 多次进行通信时可以直接获取主机 ID对应的 Locator, 而无需到 ILM服务器中进 行查询, 其中该映射表会每隔一段时间更新, 对于更新的时间的间隔, 可以根 据实际需要灵活选取, 本发明实施例对此不作限制。
当 Proxy接收到该 IPv6数据包后,首先在本地 ILM映射表中查找主机 B的主机 ID对应的 Locator (即主机 B的 IPv6地址), 如果查找到, 则直接获取主机 B的主机 ID对应的 Locator; 如果在本地 ILM映射表中没有查找到, 则向 ILM服务器进行查 询。 当 Proxy从 ILM服务器中获得主机 B的主机 ID与 Locator映射关系之后, 在本 地 ILM映射表中进行缓存, 以便在主机 A或其他主机在较短时间内与主机 B进行 通信时可以直接获取主机 B对应的 Locator而无需到 ILM服务器中查询。
Proxy为主机 A临时分配一个主机 ID,并将主机 A的临时 ID与其 IPv6地址映射 关系缓存在本地 ILM映射表中, 以便在主机 B或其他新型主机在较短时间内与主 机 A进行通信时可以直接获取主机 A的临时 ID以及对应的 IPv6地址而无需重新为 主机 A重新分配临时 ID。
205: Proxy将接收的 IPv6数据包转换为新型网络中的数据包, 并在新型网络 中向主机 B发送转换后的新型数据包。
其中, Proxy将在传统网络中接收的 IPv6数据包转换为新型网络中的数据包 协议格式。 其中, Source-ID (源 ID )为主机 A的临时主机 ID, Destination-ID (目 的 ID )为 B的主机 ID, Source-Locator (源位置)为 Proxy在新型网络中可路由的 一个 IPv6地址, destination-locator (目的位置)为主机 B的 IPv6地址。
Proxy将 IPv6数据包转换为新型网络中的数据包协议格式的数据包后, 在新 型网络中向主机 B发送新型数据包。
206: 主机 B接收 Proxy发送的新数据包, 向主机 A发送回应包。
其中, 主机 B收到 Proxy发送的新数据包后, 向主机 A发送回应包, 该回应包 中, source-ID为 B的主机 ID, destination-ID为 A的临时主机 ID, source-Locator为 主机 B的 IPv6地址, destination-locator为 proxy在新型网络中可路由的一个 IPv6地 址。
207: Proxy在新型网络中接收主机 B发送的回应包, 在本地 ILM映射表中查 询目的主机 A的主机 ID对应的 IPv6地址, 将回应包转换为 IPv6数据包, 在传统网 络中向主机 A发送该 IPv6数据包。
其中, 主机 B发送的回应包到达 Proxy之后, Proxy在本地 ILM映射表中查询 目的主机 A的主机 ID(即步骤 204中 Proxy为主机 A临时分配的主机 ID )对应的 IPv6 地址, 然后将数据包进行协议格式转换为 IPv6数据包。 其中目的地址为主机 A的 IPv6地址, 源地址为主机 B的主机 ID。
当将回应包转换为 IPv6数据包后, 在传统网络中向主机 A发送该 IPv6数据 包。
上述步骤详细说明了传统主机 A向新型主机 B发起连接通信时, 通过 Proxy 对数据包进行转换, 实现主机 A与主机 B之间的数据通信。
本发明的又一个实施例提供传统主机 A与新型主机 B之间实现通信的方法, 参见图 3, 当传统主机 A需要访问新型主机 B时, 具体如下:
1、 A通过 DNS查询目的主机 B的 FQDN对应的 IPv6地址, DNS服务器返回 DNS应答消息中的 AAAA记录中返回的是主机 B的主机 ID, 由于 A是传统主机, 它将 AAAA记录中 128 bit值看作是主机 B的 IPv6地址。 A向 B发送 IPv6数据包, 源地址为 A的 IPv6地址, 目的地址为主机 B的主机 ID。
2、 Proxy在传统网络中发布目的地址为主机 ID所采用的特殊前缀的 IPv6路 由, 上述数据包将根据 Proxy发送的上述路由被逐跳转发到 Proxy。
3、上述数据包到达 Proxy之后, Proxy首先在本地的 ID-Locator映射表中查找 主机 B的主机 ID对应的 Locator (即主机 B的 IPv6地址); 如果没有则向 ILM系统进 行查询, 当 Proxy从 ILM获得主机 B的主机 ID与 Locator映射关系之后, 在本地 ID-Locator映射表进行缓存。
4、 Proxy为主机 A临时分配一个主机 ID, 并将主机 A的临时 ID与其 IPv6地址 映射关系缓存在本地的 ID-Locator映射表中。
5、 Proxy将上述 IPv6数据包转换为新型网络中的数据包协议格式。 其中, source-ID为 A的临时主机 ID, destination-ID为 B的主机 ID, source-Locator为 proxy 在新型网络中可路由的一个 IPv6地址, destination-locator为主机 B的 IPv6地址。
参见图 4, 主机 B收到 Proxy发送的数据包之后, 具体如下:
1、发送回应包, 其中 source-ID为 B的主机 ID, destination-ID为 A的临时主机 ID, source-Locator为主机 B的 IPv6地址, destination-locator为 proxy在新型网络中 可路由的一个 IPv6地址。
2、上述回应包到达 Proxy之后, Proxy在本地的 ID-Locator映射表中查询目的 主机 ID (也就是 A的临时主机 ID )对应的 IPv6地址, 然后将数据包进行协议格式 转换为 IPv6数据包。 其中, 目的地址为主机 A的 IPv6地址, 源地址为主机 B的主 机 E
3、 Proxy发送转换后的 IPv6数据包给主机 A, 该数据包的目的地址为主机 A的 IPv6地址, 源地址为主机 B的主机 ID。
本发明实施例提供的方法, 通过 Proxy将传统主机 A的发送的 IPv6数据包 转换为目的主机 B的新型网络格式的数据包, 实现了传统主机 A与新型主机 B 之间的数据通信, 提高了系统的可扩展性和移动支持性。 为了在 ID/Locator分离的新型网络架构中, 实现传统主机与新型主机之间 的互相通信,本发明一个实施例提供了一种主机通信的方法,通过采用 Proxy(代 理 )机制, 实现了采用 HIP或 HRA的新型主机与传统 IPv6主机之间的互相通 信, 上一个实施例中以传统主机 A向新型主机 B发起连接通信为例, 本发明实 施例中以新型主机 B向传统主机 A发起连接通信为例进行说明, 其中本发明实 施例中采用 ID/Locator分离的主机称为新型主机,未采用 ID/Locator分离的 IPv6 主机称为传统主机, 参见图 5, 具体实现过程如下:
501 : 主机 B通过 DNS服务器查询主机 A的主机 ID, 并通过 ILM服务器 解析到主机 A的主机 ID对应的 Locator。 其中, 传统主机 A如果希望被新主机 B访问, 那么 proxy需要为传统主机 A分配一个固定的主机 ID,并将该主机 ID注册到 DNS服务器中主机 A的 FQDN 对应的 AAAA记录中。 同时将主机 A的主机 ID与 Proxy的一个在新型网络中 可路由的 IPv6地址的映射关系注册到 ILM服务器中。 此外, 在本地 ILM映射 表中, 保存主机 A的主机 ID与主机 A的 IPv6地址的映射关系。
其中,主机 B发起到 A的连接之前,首先通过 DNS服务器解析到 A的 FQDN 对应的主机 ID (即 proxy为主机 A分配的固定的主机 ID ), 然后通过 ILM解析 到主机 A的主机 ID对应的 Locator (即已注册到 ILM服务器中的 Proxy在新型 网络可路由的一个 IPv6地址)。
502: 主机 B在新型网络中向主机 A发送数据包。
其中, 主机 B在新型网络中向主机 A发送数据包, 需要按照新型数据包的格 式发送数据包,该数据包的 Source-ID为主机 B的主机 ID, Destination-ID为在 DNS 服务器中保存的 Proxy给主机 A分配的固定主机 ID, Source-Locator为 B的 IPv6地 址, Destination-Locator为 ILM服务器中保存的主机 A的 Locator (即 Proxy在新网 络可路由的一个 IPv6地址) 。
503: Proxy在新型网络中接收主机 B向主机 A发送的数据包,查询本地 ILM 映射表中主机 A的主机 ID对应的 IPv6地址, 并将主机 B的主机 ID与 Locator 映射关系缓存到本地 ILM映射表中。
其中, Proxy可以为现有的代理服务器, 也可以为是专门的服务器, 本发明 通信时对数据包进行转换, 实现不同类型主机之间的通信。
由于数据包的 Destination-Locator为 Proxy在新网络可路由的一个 IPv6地 址, 所以主机 B向主机 A发送的数据包被逐跳转发到 Proxy。
其中, 当 Proxy接收到主机 B向主机 A发送的数据包后, 首先在本地 ILM映射 表中查询主机 A的主机 ID对应的 IPv6地址,其中该 IPv6地址为主机 A的 IPv6地址, 预存在本地 ILM映射表中。 Proxy将数据包中获得的主机 B的主机 ID与 Locator映 射关系缓存到本地的 ILM映射表中。
504: Proxy将数据包转换为成普通 IPv6数据包, 并在传统网络中向主机 A 发送该 IPv6数据包。
其中, Proxy将数据包进行协议格式转换, 变成普通 IPv6数据包, 其中该 IPv6数据包的源地址为 B的主机 ID, 目的地址为主机 A的 IPv6地址。
505: 主机 A接收 Proxy发送的 IPv6数据包, 向主机 B发送 IPv6回应包。
其中, 主机 A接收 Proxy发送的 IPv6数据包后, 主机 AJ ^送 IPv6回应包给主机
B, 其中, 该 IPv6回应包的源地址为主机 A的 IPv6地址, 目的地址为 B的主机 ID。
506: Proxy在传统网络中发布目的地址为主机 ID所采用的特殊前缀的 IPv6 路由, 通过该路由接收主机 A向主机 B发送的 IPv6回应包。
其中, Proxy在传统网络中发布目的地为主机 ID所采用的特殊前缀的 IPv6路 由,主机 A向主机 B发送的 IPv6回应包将根据 Proxy发送的上述路由被逐跳转发到
Proxy
507: Proxy收到 IPv6回应包之后, 查询本地 ILM映射表中的主机 B的主机 ID 对应的 IPv6地址以及 ILM服务器中保存的主机 A的 IPv6地址对应的主机 ID, 将 IPv6回应包转换为新型回应包。
其中, Proxy收到 IPv6回应包之后, 查询本地 ILM映射表在步骤 503中保存的 主机 B的主机 ID对应的 IPv6地址, 查询 ILM服务器中预先保存的主机 A的 Locator (即 Proxy在新网络可路由的一个 IPv6地址) 。
然后,将 IPv6回应包进行协议格式转换,转换成新型网络中的数据包,其中, 转换后的新型网络中的回应包的 Source-ID为主机 A的主机 ID, Destination-ID为 主机 B的主机 ID, Source-Locator为 Proxy的一个在新网络中可路由的 IPv6地址, destination-locator为 B的 IPv6地址。
508: Proxy将转换后的新型回应包, 在新型网络中发送给主机 B。
上述步骤详细说明了新型主机 B向传统主机 A发起连接通信时, 通过 Proxy 对数据包进行转换, 实现与传统主机 A进行数据通信的过程。
本发明的又一个实施例提供新型主机 B与传统主机 A之间实现通信的方法, 参见图 6, 新型主机 B需要访问传统主机 A时, 具体如下:
1、 主机 B发起到 A的连接之前, 首先通过 DNS解析到 A的 FQDN对应的主机
ID, 然后通过 ILM解析到 A的主机 ID对应的 Locator (其实是 Proxy在新网络可路 由的一个 IPv6地址)。
其中, 该过程之前还包括:
0.1、 Proxy为主机 A分配固定的主机 ID , 作为 DNS系统服务器中主机 A的 AAAA记录的记录值; 0.2、 Proxy为主机 A分配的主机 ID与 Proxy的一个在新网络中可路由的 locator的映射关系注册到 ILM服务器中。
0.3、 Proxy在本地 ILM映射表中, 保存主机 A的主机 ID与主机 A的 IPv6 地址的映射关系。
2、主机 B向主机 A发送数据包,其中, source-ID为 B的主机 ID, destination-ID 为 proxy给 A分配的主机 ID, source-locator为 B的 IPv6地址, destination-locator为 ILM中保存的主机 A的 Locator (其实是 Proxy在新网络可路由的一个 IPv6地址) 由于 destination-locator为 Proxy在新网络可路由的一个 IPv6地址,所以数据包被逐 跳转发到 Proxy 0
3、上述数据包达到 Proxy之后, Proxy查找本地 ILM映射表, 确定主机 A的主 机 ID对应的 IPv6地址。 同时将主机 B的主机 ID与 Locator映射关系缓存到本地的 ID-Locator映射表。
4、 Proxy将数据包进行协议格式转换, 变成普通 IPv6数据包, 其中源地址为 主机 B的主机 ID, 目的地址为主机 A的 IPv6地址, 并将转化后的 IPv6数据包发送 给主机 Ao
参见图 7, 主机 A收到 Proxy发送的 IPv6数据包之后, 具体如下:
1、主机 A向主机 B发送 IPv6回应包,其中,该回应包的源地址为主机 A的 IPv6 地址, 目的地址为 B的主机 ID。
2、 Proxy收到上述 IPv6回应包之后, 查找本地 ID-Locator映射表,确定主机 B 的主机 ID对应的 IPv6地址。
其中, Proxy在传统网络中发布目的地为主机 ID所采用的特殊前缀的 IPv6路 由, 上述 IPv6回应包将根据 Proxy发送的上述路由被逐跳转发到 Proxy。
3、 Proxy将 IPv6回应包进行协议格式转换,转换成新网络中的回应包发送给 主机 B, 其中 source-ID为主机 A的主机 ID, destination-ID为主机 B的主机 ID, source-locator为 proxy的一个在新网络中可路由的 IPv6地址, destination-locator为 B的 IPv6地址。
本发明实施例提供的方法, 通过 Proxy将新型主机 B发送的 IPv6数据包转 换为传统主机 A的传统网络格式的 IPv6数据包,实现了传统主机 A与新型主机 B之间的数据通信, 提高了系统的可扩展性和移动支持性。 参见图 8, 本发明实施例还提供一种主机通信的系统, 本发明实施例中的主 机通信为源主机 802和目的主机 803之间的通信, 当源主机 802为传统主机时, 目的主机 803为新型主机; 反之, 当源主机 802为新型主机时, 目的主机 803 为传统主机。 传统主机为互联网协议第 6版本 IPv6主机, 新型主机为支持主机 标识与位置分离协议的主机, 该系统包括: 代理服务器 801、 源主机 802、 目的 主机 803, 其中,
代理服务器 801,用于在源主机 802所在的网络中接收源主机 802发送的第 一数据包, 第一数据包携带源主机 802 的地址标识; 将第一数据包转换为目的 主机 803兼容格式的第二数据包, 第二数据包携带目的主机 803的地址标识; 在目的主机 803所在的网络中发送第二数据包给目的主机 803;
源主机 802, 用于发送第一数据包;
目的主机 803, 用于接收第二数据包。
举例来说, 当源主机 802为传统主机, 目的主机 803为新型主机时, 代理服务器 801 用于在传统主机所在的网络中接收传统主机发送的传统数 据包, 传统数据包中携带传统主机的 IPv6地址和新型主机的主机标识; 根据传 统主机的 IPv6地址和新型主机的主机标识, 获取传统主机的主机标识、 传统主 机的位置标识和新型主机的位置标识; 将传统数据包转换为新型主机兼容的新 型数据包, 新型数据包中携带传统主机的主机标识、 传统主机的位置标识、 新 型主机的主机标识和新型主机的位置标识; 在新型主机所在的网络中将新型数 据包发送给新型主机。
再举例来说, 当源主机 802为新型主机, 目的主机 803为传统主机时, 代理服务器 801 用于在新型主机所在的网络中接收新型主机发送的新型数 据包, 新型数据包中携带传统主机的主机标识、 传统主机的位置标识、 新型主 机的主机标识和新型主机的位置标识; ^居传统主机的主机标识, 获取传统主 机的 IPv6地址; 将新型数据包转换为传统数据包, 传统数据包中携带传统主机 的 IPv6地址和新型主机的主机标识; 在传统主机所在的网络中将传统数据包发 送给传统主机。
本发明实施例提供的系统, 通过代理服务器将源主机的发送的数据包转换 为目的主机的格式的数据包, 实现了传统主机与新型主机之间的数据通信, 提 高了系统的可扩展性和移动支持性。 本发明实施例还提供一种代理服务器, 本发明实施例中的代理服务器用于 实现传统主机和新型主机之间的通信, 当源主机为传统主机时, 目的主机为新 型主机; 反之, 当源主机为新型主机时, 目的主机为传统主机。 参见图 9, 举例 来说, 该代理服务器可以包括:
接收模块 901, 用于在源主机所在的网络中接收源主机发送的第一数据包, 第一数据包中携带源主机的地址标识;
转换模块 902, 用于将第一数据包转换为目的主机兼容格式的第二数据包, 第二数据包携带目的主机的地址标识;
发送模块 903, 用于在目的主机所在的网络中发送第二数据包给目的主机。 举例来说, 当源主机为传统主机, 目的主机为新型主机时, 代理服务器, 具体包括:
第一接收模块 901,用于在传统主机所在的网络中接收传统主机发送的传统 数据包, 传统数据包中携带传统主机的 IPv6地址和新型主机的主机标识;
第一获取模块, 用于根据传统主机的 IPv6地址和新型主机的主机标识, 获 取传统主机的主机标识、 传统主机的位置标识和新型主机的位置标识;
第一转换模块 902,用于将传统数据包转换为新型主机兼容格式的新型数据 包, 新型数据包中携带传统主机的主机标识、 传统主机的位置标识、 新型主机 的主机标识和新型主机的位置标识;
第一发送模块 903,用于在新型主机所在的网络中将新型数据包发送给新型 主机。
其中, 第一获取模块, 包括:
第一查找单元, 用于根据新型主机的主机标识, 在标识位置映射服务器中 查找新型主机的主机标识对应的新型主机的位置标识;
第一分配单元, 用于为传统主机分配临时主机标识, 作为传统主机的主机 标识;
第一获取单元, 用于将一个在新型主机所在的网络中可路由的位置标识, 作为传统主机的位置标识。
其中于, 第一转换模块 902, 包括:
第一转换单元, 用于将传统数据包格式转换为新型主机所在的网络中的新 型数据包协议格式, 其中, 转换后的新型数据包的源主机标识为传统主机的主 机标识、 目的主机标识为新型主机的主机标识、 源主机的位置标识为传统主机 的位置标识, 目的主机的位置标识为新型主机位置标识。
其中, 第一分配单元, 还包括:
第一缓存子单元, 用于在本地标识位置映射表中, 缓存传统主机的 IPv6地 址与第一分配单元分配的传统主机的主机标识的映射关系。
其中, 其特征在于, 当源主机为新型主机, 目的主机为传统主机时, 代理 服务器包括:
第二接收模块 901,用于在新型主机所在的网络中接收新型主机发送的新型 数据包, 新型数据包中携带传统主机的主机标识、 传统主机的位置标识、 新型 主机的主机标识、 新型主机的位置标识;
第二获取模块,用于根据传统主机的主机标识,获取传统主机的 IPv6地址; 第二转换模块 902, 用于将新型数据包转换为传统数据包, 传统数据包中携 带传统主机的 IPv6地址和新型主机的主机标识;
第二发送模块 903,用于在传统主机所在的网络中将传统数据包发送给传统 主机。
其中, 第二获取模块, 包括:
第二查找单元, 用于根据传统主机的主机标识, 在本地标识位置映射表中 查找传统主机的 IPv6地址。
其中, 其特征在于, 第二转换模块 902, 包括:
第二转换单元, 用于将新型数据包格式转换为传统主机所在的网络中的传 统数据包格式, 其中, 传统数据包的源地址为新型主机的主机标识、 目的地址 为传统主机的 IPv6地址。
其中, 所第二获取模块, 还包括:
第二缓存单元, 用于在本地标识位置映射表中, 缓存新型主机的主机标识 与新型主机的位置标识的映射关系。
其中, 第二接收模块 901, 包括:
第二分配单元, 用于为传统主机分配一个固定的主机标识, 作为传统主机 的主机标识, 并在域名系统服务器中注册传统主机的主机名与传统主机的主机 标识的映射关系; 第二获取单元, 用于将自身一个在新型主机所在的网络中可路由的位置标 识, 作为传统主机的位置标识, 并在标识位置映射服务器中注册传统主机的主 机标识与传统主机的位置标识的映射关系;
第三缓存单元, 用于在本地的标识位置映射表中, 缓存传统主机的主机标 识与传统主机的 IPv6地址的映射关系。
其中, 发送模块 903, 包括:
回应单元, 用于目的主机发送回应包给源主机。
本发明实施例提供的代理服务器, 通过将源主机的发送的数据包转换为目 的主机的格式的数据包, 实现了传统主机与新型主机之间的数据通信, 提高了 系统的可扩展性和移动支持性。 本发明实施例可以利用软件实现, 相应的软件程序可以存储在可读取的存 储介质中, 例如, 路由器的硬盘、 缓存或光盘中。
以上所述仅为本发明的较佳实施例, 并不用以限制本发明, 凡在本发明的 精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的 保护范围之内。

Claims

权利要求
1、 一种主机通信的方法, 其特征在于, 当源主机为传统主机时, 目的主机 为新型主机; 当源主机为新型主机时, 目的主机为传统主机, 所述传统主机为 互联网协议第 6版本 IPv6主机, 所述新型主机为支持主机标识与位置分离协议 的主机, 所述方法包括:
在所述源主机所在的网络中接收所述源主机发送的第一数据包, 所述第一 数据包携带所述源主机的地址标识;
将所述第一数据包转换为所述目的主机兼容的第二数据包, 所述第二数据 包携带所述目的主机的地址标识;
在所述目的主机所在的网络中发送所述第二数据包给所述目的主机。
2、如权利要求 1所述的方法,其特征在于, 当所述源主机为所述传统主机, 所述目的主机为所述新型主机时, 所述第一数据包为传统数据包, 所述传统数 据包中携带所述源主机的 IPv6地址和所述目的主机的主机标识;
所述将所述第一数据包转换为所述目的主机兼容的第二数据包, 包括: 根据所述源主机的 IPv6地址和所述目的主机的主机标识, 获取所述源主机 的主机标识, 所述源主机的位置标识和所述目的主机的位置标识;
将所述传统数据包转换为新型数据包, 所述新型数据包携带所述源主机的 主机标识、 所述源主机的位置标识、 所述目的主机的主机标识和所述目的主机 的位置标识。
3、 如权利要求 2 所述的方法, 其特征在于, 所述根据所述源主机的 IPv6 地址和所述目的主机的主机标识, 获取所述源主机的主机标识、 所述源主机的 位置标识和所述目的主机的位置标识, 包括:
根据所述目的主机的主机标识, 在本地标识位置映射表中查找所述目的主 机的主机标识对应的所述目的主机的位置标识, 如果没有, 则在标识位置映射 服务器中查找所述目的主机的主机标识对应的所述目的主机的位置标识;
为所述源主机分配临时主机标识, 作为所述源主机的主机标识;
将一个在所述目的主机所在的网络中可路由的位置标识作为所述源主机的 位置标识。
4、 如权利要求 3所述的方法, 其特征在于, 为所述传统主机分配所述临时 主机标识后, 还包括:
在所述本地标识位置映射表中, 缓存所述源主机的 IPv6地址与所述临时主 机标识的映射关系。
5、如权利要求 1所述的方法,其特征在于, 当所述源主机为所述新型主机, 所述目的主机为所述传统主机时, 所述第一数据包为新型数据包, 所述新型数 据包中携带所述目的主机的主机标识、 所述目的主机的位置标识、 所述源主机 的主机标识和所述源主机的位置标识;
所述将所述第一数据包转换为所述目的主机兼容的第二数据包, 包括: 根据所述目的主机的主机标识, 获取所述目的主机的 IPv6地址;
将所述新型数据包转换为传统数据包, 所述传统数据包的目的地址为所述 目的主机的 IPv6地址, 所述传统数据包的源地址为所述源主机的主机标识。
6、 如权利要求 5所述的方法, 其特征在于, 所述根据所述目的主机的主机 标识, 获取所述目的主机的 IPv6地址, 包括:
根据所述目的主机的主机标识, 在本地标识位置映射表中查找所述目的主 机的 IPv6地址。
7、 如权利要求 6所述的方法, 其特征在于, 还包括:
在所述本地标识位置映射表中, 缓存所述源主机的主机标识与所述源主机 的位置标识的映射关系。
8、 如权利要求 6所述的方法, 其特征在于, 所述在所述源主机所在的网络 中接收所述源主机发送所述第一数据包之前, 还包括:
为所述目的主机分配一个固定的主机标识作为所述目的主机的主机标识, 并在域名系统服务器
的映射关系; 将一个在所述源主机所在的网络中可路由的位置标识, 作为所述目的主机 的位置标识, 并在标识位置映射服务器中注册所述目的主机的主机标识与所述 目的主机的位置标识的映射关系;
在所述本地标识位置映射表中, 保存所述目的主机的主机标识与所述目的 主机的 IPv6地址的映射关系。
9、 一种主机通信的系统, 其特征在于, 当源主机为传统主机时, 目的主机 为新型主机; 当源主机为新型主机时, 目的主机为传统主机, 所述传统主机为 互联网协议第 6版本 IPv6主机, 所述新型主机为支持主机标识与位置分离协议 的主机, 所述系统包括: 代理服务器、 源主机、 目的主机, 其中,
所述源主机, 用于发送第一数据包;
所述代理服务器用于在所述源主机所在的网络中接收所述第一数据包, 所 述第一数据包携带所述源主机的地址标识; 将所述第一数据包转换为所述目的 主机兼容格式的第二数据包, 所述第二数据包携带所述目的主机的地址标识; 在所述目的主机所在的网络中发送所述第二数据包给所述目的主机;
所述目的主机, 用于接收所述第二数据包。
10、 如权利要求 9所述的系统, 其特征在于, 当所述源主机为传统主机, 所述目的主机为新型主机时, 所述第一数据包为传统数据包, 所述传统数据包 的源地址为所述源主机的 IPv6地址, 目的地址为所述目的主机的主机标识; 所述代理服务器用于接收所述传统数据包; 根据所述源主机的 IPv6地址和 所述目的主机的主机标识, 获取所述源主机的主机标识和位置标识, 以及所述 目的主机的位置标识; 将所述传统数据包转换为所述目的主机兼容的新型数据 包, 所述新型数据包中携带所述源主机的主机标识和位置标识、 所述目的主机 的主机标识和位置标识; 在所述目的主机所在的网络中将所述新型数据包发送 给所述目的主机。
11、 如权利要求 9 所述的系统, 其特征在于, 当所述源主机为新型主机, 所述目的主机为传统主机时, 所述第一数据包为新型数据包, 所述新型数据包 中携带所述目的主机的主机标识、 所述目的主机的位置标识、 所述源主机的主 机标识和所述源主机的位置标识;
所述代理服务器用于接收所述新型数据包; 根据所述目的主机的主机标识, 获取所述目的主机的 IPv6地址; 将所述新型数据包转换为传统数据包, 所述传 统数据包的目的地址为所述目的主机的 IPv6地址, 而源地址为所述源主机的主 机标识; 在所述目的主机所在的网络中将所述传统数据包发送给所述目的主机。
12、 一种代理服务器, 其特征在于, 包括:
接收模块, 用于在源主机所在的网络中接收源主机发送的第一数据包, 所 述第一数据包中携带所述源主机的地址标识, 当所述源主机为传统主机时, 目 的主机为新型主机; 当所述源主机为传统主机时, 目的主机为新型主机, 所述 传统主机为互联网协议第 6版本 IPv6主机, 所述新型主机为支持主机标识与位 置分离协议的主机;
转换模块, 用于将所述第一数据包转换为所述目的主机兼容格式的第二数 据包, 所述第二数据包携带所述目的主机的地址标识;
发送模块, 用于在所述目的主机所在的网络中发送所述第二数据包给所述 目的主机。
13、 如权利要求 12所述的代理服务器, 其特征在于, 当所述源主机为所述 传统主机, 所述目的主机为所述新型主机时, 所述代理服务器, 具体包括: 第一接收模块, 用于在所述源主机所在的网络中接收所述源主机发送的传 统数据包, 所述传统数据包中携带所述源主机的 IPv6地址和所述目的主机的主 机标识;
第一获取模块, 用于根据所述源主机的 IPv6地址和所述目的主机的主机标 识, 获取所述源主机的主机标识和位置标识, 以及所述目的主机的位置标识; 第一转换模块, 用于将所述传统数据包转换为所述目的主机兼容格式的新 型数据包, 所述新型数据包中携带所述源主机的主机标识和位置标识、 所述目 的主机的主机标识和位置标识;
第一发送模块, 用于在所述目的主机所在的网络中将所述新型数据包发送 给所述目的主机。
14、 如权利要求 13所述的代理服务器, 其特征在于, 所述第一获取模块, 包括:
第一查找单元, 用于根据所述目的主机的主机标识, 在本地标识位置映射 表中查找所述目的主机的主机标识对应的所述目的主机的位置标识, 如果没有, 则在标识位置映射服务器中查找所述目的主机的主机标识对应的所述目的主机 的位置标识;
第一分配单元, 用于为所述源主机分配临时主机标识, 作为所述源主机的 主机标识;
第一获取单元, 用于将一个在所述目的主机所在的网络中可路由的位置标 识, 作为所述源主机的位置标识。
15、 如权利要求 14所述的代理服务器, 其特征在于, 所述第一分配单元包 括:
第一缓存子单元, 用于在所述本地标识位置映射表中, 缓存所述源主机的 IPv6地址与所述第一分配单元分配的所述源主机的主机标识的映射关系。
16、 如权利要求 12所述的代理服务器, 其特征在于, 当所述源主机为所述 新型主机, 所述目的主机为所述传统主机时, 所述代理服务器具体包括:
第二接收模块, 用于在所述源主机所在的网络中接收所述源主机发送的新 型数据包, 所述新型数据包中携带所述目的主机的主机标识和位置标识、 所述 源主机的主机标识和位置标识;
第二获取模块, 用于根据所述目的主机的主机标识, 获取所述目的主机的 IPv6地址;
第二转换模块, 用于将所述新型数据包转换为传统数据包, 所述传统数据 包中携带所述目的主机的 IPv6地址和所述源主机的主机标识;
第二发送模块, 用于在所述目的主机所在的网络中将所述传统数据包发送 给所述目的主机。
17、 如权利要求 16所述的代理服务器, 其特征在于, 所述第二获取模块, 包括: 第二查找单元, 用于根据所述目的主机的主机标识, 在本地标识位置映射 表中查找所述目的主机的 IPv6地址。
18、 如权利要求 17所述的代理服务器, 其特征在于, 所述第二获取模块, 还包括:
第二缓存单元, 用于在所述本地标识位置映射表中, 缓存所述源主机的主 机标识与所述源主机的位置标识的映射关系。
19、 如权利要求 16所述的代理服务器, 其特征在于, 所述第二接收模块, 包括:
第二分配单元, 用于为所述目的主机分配一个固定的主机标识, 作为所述 目的主机的主机标识, 并在域名系统服务器中注册所述目的主机的主机名与所 述目的主机的主机标识的映射关系;
第二获取单元, 用于将自身一个在所述源主机所在的网络中可路由的位置 标识, 作为所述目的主机的位置标识, 并在标识位置映射服务器中注册所述目 的主机的主机标识与所述目的主机的位置标识的映射关系;
第三缓存单元, 用于在本地标识位置映射表中, 缓存所述目的主机的主机 标识与所述目的主机的 IPv6地址的映射关系。
20、如权利要求 12所述的代理服务器, 其特征在于, 所述发送模块, 包括: 回应单元, 用于所述目的主机发送回应包给所述源主机。
PCT/CN2010/070837 2009-03-04 2010-03-02 一种主机通信的方法、系统和设备 WO2010099742A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
ES10748332.3T ES2559014T3 (es) 2009-03-04 2010-03-02 Método, sistema y aparato de comunicación de anfitrión
EP10748332.3A EP2405614B1 (en) 2009-03-04 2010-03-02 Host communication method, system and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910078869.7A CN101827011B (zh) 2009-03-04 2009-03-04 一种主机通信的方法、系统和设备
CN200910078869.7 2009-03-04

Publications (1)

Publication Number Publication Date
WO2010099742A1 true WO2010099742A1 (zh) 2010-09-10

Family

ID=42690728

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070837 WO2010099742A1 (zh) 2009-03-04 2010-03-02 一种主机通信的方法、系统和设备

Country Status (4)

Country Link
EP (1) EP2405614B1 (zh)
CN (1) CN101827011B (zh)
ES (1) ES2559014T3 (zh)
WO (1) WO2010099742A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457582B (zh) * 2010-10-14 2015-10-07 中国移动通信集团公司 一种实现主机设备间通信的方法和网络侧设备
CN102123182B (zh) * 2011-04-09 2013-07-03 山东师范大学 一种基于ipv6地址的主机身份标识与位置标识分离的方法
CN103338213B (zh) * 2013-07-19 2017-02-08 中国人民解放军理工大学 本地设备与ims网络互通的方法、系统及接入网关
US9712485B2 (en) * 2014-07-30 2017-07-18 Cisco Technology, Inc. Dynamic DNS-based service discovery
CN109688013B (zh) * 2019-01-02 2021-08-20 郑州云海信息技术有限公司 一种检测多级级联box主机名与sn匹配的方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1938999A (zh) * 2004-02-13 2007-03-28 艾利森电话股份有限公司 寻址方法及建立遗留与主机标识协议节点之间的主机标识协议连接的方法和设备
CN101120572A (zh) * 2005-02-18 2008-02-06 艾利森电话股份有限公司 主机标识协议方法和设备
US7333510B1 (en) * 2002-07-12 2008-02-19 Cisco Technology, Inc. Method and apparatus for providing IPv6 networks to communicate with overlapping IPv4 networks using NAT-PT
CN101374069A (zh) * 2007-08-25 2009-02-25 华为技术有限公司 一种组播报文的转换方法、系统和设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602004007303T2 (de) * 2004-04-15 2008-03-13 Telefonaktiebolaget L M Ericsson (Publ) Identifizierungs-verfahren und -vorrichtung zum aufbau von hip-verbindungen zwischen gewöhnlichen und hip-fähigen netzknoten

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7333510B1 (en) * 2002-07-12 2008-02-19 Cisco Technology, Inc. Method and apparatus for providing IPv6 networks to communicate with overlapping IPv4 networks using NAT-PT
CN1938999A (zh) * 2004-02-13 2007-03-28 艾利森电话股份有限公司 寻址方法及建立遗留与主机标识协议节点之间的主机标识协议连接的方法和设备
CN101120572A (zh) * 2005-02-18 2008-02-06 艾利森电话股份有限公司 主机标识协议方法和设备
CN101374069A (zh) * 2007-08-25 2009-02-25 华为技术有限公司 一种组播报文的转换方法、系统和设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2405614A4 *

Also Published As

Publication number Publication date
ES2559014T3 (es) 2016-02-10
CN101827011A (zh) 2010-09-08
CN101827011B (zh) 2013-03-27
EP2405614B1 (en) 2015-11-04
EP2405614A1 (en) 2012-01-11
EP2405614A4 (en) 2012-01-11

Similar Documents

Publication Publication Date Title
US7573903B2 (en) IPv6/IPv4 translator
US7937471B2 (en) Creating a public identity for an entity on a network
US7411967B2 (en) Private network gateways interconnecting private networks via an access network
JP5640092B2 (ja) Ipv4ネットワークと新しいネットワークとの相互通信の実現方法及びシステム
US20050286553A1 (en) Arrangement for reaching IPv4 public network nodes by a node in an IPv4 private network via an IPv6 access network
KR20100019518A (ko) 노드 식별자와 위치 지시자를 이용한 패킷의 통신방법
US9077753B2 (en) Method for securing name registries, network access and data communication in ID/locator split-base networks
JP2003087336A (ja) アドレス変換方法
JP2004312609A (ja) 動的dns登録方法、ドメイン名解決方法、代理サーバ、及びアドレス変換装置
WO2011088657A1 (zh) 互联网地址信息处理方法、装置以及互联网系统
WO2011131088A1 (zh) 数据报文处理方法、入口隧道路由器及系统
WO2010099742A1 (zh) 一种主机通信的方法、系统和设备
KR101901341B1 (ko) 사용자 장치의 이동성을 지원하는 네트워크 접속 방법 및 장치
JPH11252172A (ja) パケット生成方法およびその機能を有する情報処理装置並びにパケット生成プログラムを記録した記録媒体
JP2008172816A (ja) アドレス変換方法
EP1919168B1 (en) Global reachability in communication networks
JP5241665B2 (ja) 通信装置、通信システムおよび通信方法
WO2011072549A1 (zh) 非lisp站点与lisp站点通信的方法、装置及系统
JP4670979B2 (ja) パケット生成方法およびその機能を有する情報処理装置並びにパケット生成プログラムを記録した記録媒体
JP4349413B2 (ja) パケット生成方法およびその機能を有する情報処理装置並びにパケット生成プログラムを記録した記録媒体
US8817703B2 (en) Method for facilitating communication in a mobile communication system and mobile communication system
JP4288698B2 (ja) IPv6/IPv4トランスレータ用DNSプロキシ
WO2013185352A1 (zh) 注册方法及设备、系统
JP4009605B2 (ja) 通信システムおよび転送処理方法ならびに通信装置およびプログラム
JP5600648B2 (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: 10748332

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2010748332

Country of ref document: EP