WO2012059010A1 - Hap handoff method and system - Google Patents

Hap handoff method and system Download PDF

Info

Publication number
WO2012059010A1
WO2012059010A1 PCT/CN2011/081275 CN2011081275W WO2012059010A1 WO 2012059010 A1 WO2012059010 A1 WO 2012059010A1 CN 2011081275 W CN2011081275 W CN 2011081275W WO 2012059010 A1 WO2012059010 A1 WO 2012059010A1
Authority
WO
WIPO (PCT)
Prior art keywords
hap
new
hip device
hip
original
Prior art date
Application number
PCT/CN2011/081275
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2012059010A1 publication Critical patent/WO2012059010A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/005Control or signalling for completing the hand-off involving radio access media independent information, e.g. MIH [Media independent Hand-off]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of telecommunications, and in particular to a method and system for handover of a Host Identity Protocol (HIP) device access point (HAP).
  • HIP Host Identity Protocol
  • HAP device access point
  • IP Internet Protocol
  • domain name systems There are two main types of Internet (Internet) namespaces: Internet Protocol (IP) addresses and domain name systems.
  • IP Internet Protocol
  • the IP address serves both as an addressing function and as a host for identifying the communication device. This dual function determines that when the IP address changes, not only the route changes, but also the identity of the host of the communication device changes. Changes to the route are acceptable, but changes to the device identity can cause application and connection disruptions.
  • HIP solves the binding of device identification and address. HIP requires that any device has a unique host identifier (HI, Host Identifier) on a global scale, and defines a host identity tag (HIT, Host Identity Tag), 128-bit.
  • ORCHID is a hash of HI.
  • the advantage of using HIT in the protocol is that the program can use a fixed length interface and facilitate the unification with the 128-bit IPV6 address.
  • the HIP protocol has different restrictions on the communication layer protocol of TCP/IP.
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • TCP/IP protocol the Transmission Control Protocol
  • UDP User Datagram Protocol
  • HIP is able to do this because it changes the binding between the network layer and the transport layer in the TCP/IP protocol, and introduces the HIP layer between TCP and IP.
  • the IP address still has the function of location identification, but HI replaces the function of the device identifier of the IP address.
  • the Next Header field is used to describe the location of the additional header. It is not currently used. A fixed decimal of 59 is used to indicate that there is no Next Header.
  • Header Length field Description The length of the HIP header, counted as an integer multiple of 8 bytes, excluding the first 8-byte header;
  • the RES. field is reserved for future applications and is not currently used;
  • the Checksum field is the checksum of the HIP header
  • the Controls field is a field describing the structure of the package and the capabilities of the host. Currently, only the way in which the host sends it by anonymous name is defined.
  • HIT Host Identity Tag
  • the Receiver's Host Identity Tag (HIT) field describes the recipient's HIT, 128-bit ORCHID;
  • the HIP Parameters field describes the HIP parameters carried by the HIP packet.
  • the HIP basic interaction process is shown in Figure 2.
  • the HIP basic interaction is an interaction process between basic information between two hosts, and is used to exchange basic information of communication between two hosts.
  • the HIP basic interaction process has four packet interactions, and the parameters required to interact with the DH key algorithm in the second and third packets are used to negotiate a shared key between the two hosts; through the second and third The public key, signature and HIT carried in the package respectively authenticate the identity of the other party. After the interaction of the four packages is completed, an end-to-end secure connection is established.
  • the host that initiates the HIP interaction package in the network is the initiator, and the host that the initiator wants to interact with is the responder.
  • the difference does not exist, and any party that interacts in the subsequent communication. It may become the initiator to inform the other party of the change in status.
  • the initiator In the first package II initiated by the initiator, only the initiator's host identification tag (HIT-I) and Responder's host identification tag (HIT-R).
  • HIT-I host identification tag
  • Responder's host identification tag HIT-R
  • the actual information interaction process begins in the second packet R1 sent by the responder.
  • the second package R1 contains the secret challenge to the initiator (used to reduce the threat of denial of service attacks), the initiator must respond to this challenge before the interaction can continue.
  • the third packet 12 sent by the initiator the initiator's response to the secret challenge in the R1 packet is included.
  • the fourth packet R2 sent by the responder contains the signature of the responder, and ends the HIP basic interaction process of the four packets.
  • the parameter LOCATOR contains the host's new IP address (IPv6 address or IPv4-in-IPv6 format IPv4 address), ESP INFO contains the security association (SA) information, and SEQ and ACK are used to confirm that the Update packet is received at both ends.
  • ORCHID (Overlay Routable Cryptographic Hash Identifiers) is a special IPV6 address that cannot be used as a normal routable IPV6 address. Distinguish from normal IPV6 addresses by using a special 28-bit tag on the head. Its composition is as follows: 28-bit first 2001: 10::/28, plus a 100-bit binary string. The HIT in the HIP uses the ORCHID.
  • each HIP device requires four handshakes to associate with a new HIP device, increasing device overhead, and when the packet is back and forth between one HIP device and another HIP device (RTT) , Round Trip Time ), when the connection is established for a long time, the connection delay is long, which affects the user experience.
  • RTT Round Trip Time
  • the change of the IP address needs to notify all connected devices, and the delay is also long, which affects the user experience.
  • the User Equipment (UE, User Equipment) supports the HIP protocol and is a HIP device.
  • the HIP Access Point is a HIP access node of the infrastructure, and provides HIP access and data forwarding of the UE.
  • the UE establishes a HIP association with the HTP with a smaller RTT, and the data packets sent and received by the UE are forwarded by the HAP.
  • the UE only needs to establish a HIP association with the HAP without establishing a HIP association with the new HIP device each time.
  • the main purpose of the present invention is to provide a method and system for HAP handover, which can solve the delay of interaction between the UE and the HIP device caused by the RTT between the UE and the HAP after the UE moves. Long question.
  • the present invention provides a method for Host Identity Protocol Device Access Point (HAP) handover, the method comprising:
  • the HIP device determines whether to switch the HAP according to the obtained HAP information with a smaller packet round-trip time (RTT), or the original HAP of the HIP device is obtained according to the obtained
  • RTT packet round-trip time
  • the HIP device When the HAP handover is determined, the HIP device establishes a HIP association with the new HAP and closes the association with the original HAP; and the original HAP forwards the data sent to the HIP device to the new HAP.
  • the method further includes:
  • the new HAP checks whether the binding relationship between the HIP device and the original HAP is cached, and if yes, deletes the binding relationship; and the new HAP storage Binding relationship between the HIP device and its new IP address.
  • the method further includes: After the HIP device establishes a HIP association with the new HAP, the HIP device sends a handover notification to the original HAP, including new HAP information;
  • the original HAP changes the binding relationship between the HIT and the IP address of the HIP device stored in the original HAP to the binding relationship between the HIT of the HIP device and the new HAP.
  • the original HAP forwards the data sent to the HIP device to the new HAP, specifically: after the original HAP receives the data sent by the opposite end of the HIP device to the HIP device, according to the stored HIP device Binding relationship between the HIT and the new HAP, forwarding data to the new HAP, and carrying the peer HAP information in the forwarded data;
  • the new HAP forwards data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address.
  • the method further includes:
  • the new HAP notifies the peer HAP that the HIP device has switched to the new HAP according to the peer HAP information
  • the peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP.
  • the new HAP records the update success status of the peer HAP, where the HIP device and the peer HAP information are included.
  • the method further includes: the handover notification sent by the HIP device to the original HAP, further comprising: an HIT list of the peer HIP device that is communicating with the HIP device;
  • the original HAP obtains the peer HAP information corresponding to the HIT in the HIT list, and notifies the peer HAP that the HIP device has switched to the new HAP;
  • the peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP.
  • the new HAP records the update success status of the peer HAP, where the HIP device and the peer HAP information are included.
  • the present invention also provides a system for HAP switching, the system comprising: a HIP device, and an original HAP and a new HAP of the HIP device;
  • the HIP device After the IP address of the HIP device is changed, the HIP device is configured to determine whether to switch the HAP according to the obtained HAP information with a smaller RTT, or the original HAP is compared according to the obtained RTT between the HIP device and the HIP device. '', the HAP information determines whether the HIP device performs HAP handover;
  • the HIP device is further configured to: when performing a HAP handover, establish a HIP association with the new HAP, and close the association with the original HAP;
  • the original HAP is further configured to forward the data sent to the HIP device to the new HAP, where the new HAP is used to send the data forwarded by the original HAP to the HIP device.
  • the new HAP is further configured to: when establishing a HIP association with the HIP device, check whether the binding relationship between the HIP device and the original HAP is cached, and if yes, delete the binding relationship; The new HAP stores the binding relationship between the HIP device and its new IP address.
  • the HIP device is further configured to: after establishing a HIP association with the new HAP, send a handover notification to the original HAP, where the new HAP information is included;
  • the original HAP is further configured to change the binding relationship between the HIT and the IP address of the HIP device that is stored by the original HAP to the binding relationship between the HIT of the HIP device and the new HAP.
  • the original HAP is further configured to: after receiving the data sent by the peer end of the HIP device to the HIP device, according to the stored binding relationship between the HIT of the HIP device and the new HAP, to the new HAP Forwarding data, and carrying the peer HAP information in the forwarded data;
  • the new HAP is further configured to forward data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address saved by the HIP device.
  • the new HAP is further configured to notify the peer HAP that the HIP device is switched to the new HAP according to the peer HAP information;
  • the handover notification sent by the HIP device to the original HAP further includes: an HIT list of the peer HIP device that is communicating with the HIP device;
  • the original HAP is further configured to: obtain the peer HAP information corresponding to the HIT in the HIT list, and notify the peer HAP that the HIP device is switched to the new HAP;
  • the binding relationship between the HIP device and the original HAP that is stored by the peer HAP is replaced by the response returned by the HIP device and the new HAP; and the update success status of the peer HAP is recorded.
  • the HIP device and the peer HAP information are included.
  • the method and system for HAP handover provided by the present invention, when the HIP device moves to cause the connection with the HAP to be not optimal (that is, the RTT between the HIP device and the HAP is large), and the HIP device is enabled by HAP switching.
  • a better HAP (which means that the RTT between the HAP and the HIP device is smaller) establishes a HIP association, and the better HAP forwards and receives data, thereby reducing data transmission and reception delay and improving the user experience.
  • FIG. 1 is a schematic diagram of a hierarchical structure of a HIP network in the prior art
  • FIG. 1 is a flow chart of a basic HIP interaction in the prior art
  • 3 is a flowchart of a three-way handshake mode with a peer end after the IP address of the device of the HIP is changed in the prior art
  • FIG. 4 is a schematic diagram of a HIP infrastructure in the prior art
  • FIG. 5 is a schematic diagram of HAP handover in an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a DHT overlay network according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a HAP switching method according to Embodiment 1 of the present invention.
  • FIG. 8 is a flowchart of a method for switching a HAP according to Embodiment 2 of the present invention.
  • FIG. 9 is a flowchart of a method for switching a HAP according to Embodiment 3 of the present invention
  • FIG. 10 is a flowchart of a method for switching a HAP according to Embodiment 4 of the present invention. detailed description
  • the technical solution of the present invention is to make the UE and the better when the UE moves so that the connection with the HAP is not optimal (that is, the RTT between the UE and the HAP is large;)
  • the HAP refers to the smaller RTT between the HAP and the UE) establishes a HIP association, and forwards and receives data through the better HAP, thereby reducing data transmission and reception delay and improving user experience.
  • Both the UE and the HAP described in the present invention belong to the HIP device.
  • the HIP device (including the HIP device that accesses the HAP, such as the UE) is first registered on the infrastructure, and the HAP that is closer (that is, the RTT is smaller) is selected for HIP association.
  • the HAP stores the association between the HIT and the IP address of the UE, and forwards the data sent by the HIP device and sent to the HIP device. After the IP address of the HIP device is changed, the server is contacted to obtain information to determine whether to switch the HAP, or whether the original HAP informs the HIP device whether the HIP device is Switch
  • the HIP device establishes a HIP association with the new HAP and closes the HIP association with the original HAP.
  • the original HAP forwards the data addressed to the HIP device to the new HAP.
  • an overlay network composed of a super node (SN, Super Node) is used to store a binding relationship between the HIT and the HAP of the UE.
  • SN is a number of homogenized nodes, which form a distributed hash table (DHT, Distributed Hash Table) overlay network, and store the binding relationship between the HIT and HAP of the UE.
  • DHT distributed hash table
  • the HAP stores and acquires the storage and acquisition interfaces specified by the overlay network. Binding relationship between the HIT and HAP of the HIP device. among them:
  • the SN ( 601 ), the HAP connected by the UE, is connected to the SN node to store and acquire the binding relationship between the HIT of the UE and the HAP.
  • the UE is responsible for the SN ( 602 ), and is determined according to the overlay network rule and the HIT of the UE, and is responsible for storing the binding relationship between the UE and the UI connected to the UE. Other SN nodes can be superimposed
  • the network rule and the HIT of the UE, the UE is responsible for acquiring the binding relationship between the HIT and the HAP of the UE in the SN.
  • the technical solution of the present invention will be described below by way of specific embodiments.
  • the embodiments described below all use the overlay network composed of SN shown in FIG. 6 to store the binding relationship between the HIT and the HAP of the UE.
  • the method for HAP handover according to the first embodiment of the present invention includes the following steps:
  • Step 701 The UE obtains the address of the HRT with a smaller RTT by querying the domain name system (DNS, Domain Name System), the statically configured server, or the IPv6 dynamic host configuration protocol (DHCPv6).
  • DNS domain name system
  • DHCPv6 IPv6 dynamic host configuration protocol
  • the HAP (referred to as the original HAP) establishes a HIP association.
  • the original HAP stores the binding relationship between the HIT of the UE and the original HAP, and stores the binding relationship between the HIT of the UE and the original HAP in the peer-to-peer overlay network formed by the SN node.
  • Step 702 The IP address of the UE changes.
  • Step 703 The UE notifies the original HAP by using a HIP Update (Update) message, and the original HAP responds to the HIP Update message, and records the change of the IP address of the UE.
  • HIP Update Update
  • Step 704 The UE obtains the HAP address with a smaller RTT after the IP address is changed by querying the DNS, the statically configured server, or the DHCPv6. The UE determines whether the HAP switchover needs to be performed, that is, whether the original HAP is switched to the new HAP.
  • Step 705 If the handover is needed, the UE establishes a HIP association with the new HAP. The UE will use this connection to send data later.
  • the new HAP checks whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
  • Step 706 The new HAP sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP.
  • Step 707 The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the routing rule of the overlay network, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
  • Step 708 The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIP association with the original HAP is closed.
  • the original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identity), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier.
  • the forwarding attributes of the original HAP To clarify the forwarding attributes of the original HAP.
  • the original HAP may set a forwarding timer, which is used to stop forwarding data to the UE after the forwarding timer expires.
  • the duration of the forwarding timer should be slightly larger than the HIT of the original HAP cache UE and the new HAP. The timer duration of the binding relationship.
  • Step 709 The original HAP sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the original SN, and the original SN deletes the binding relationship between the HIT of the UE and the original HAP.
  • Step 710 The original SN sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the home SN according to the routing rule of the overlay network, and the home SN deletes the binding relationship between the HIT of the UE and the original HAP.
  • the peer HAP (that is, the HAP that still sends data to the UE, these HAPs have not yet learned that the UE has switched to the new HAP) still sends data to the original HAP to the UE.
  • Step 712 After receiving the data, the original HAP forwards the data to the new HAP according to the binding relationship between the stored HIT and the new HAP, and adds the parameter SOURCE_HAP to the HIP header to fill in the identifier of the peer HAP.
  • Step 713 The new HAP forwards the data to the UE according to the binding relationship between the HIT of the UE and the new IP address, and the new HAP can remove the parameter SOURCE_HAP in the HIP header when forwarding the data to the UE.
  • the forwarding timer set by the original HAP in step 708 expires
  • the UE is switched to the HAP again (that is, the new HAP is switched to another HAP), and the new HAP searches for the binding relationship between the HIT of the UE and the HAP (that is, other HAPs that are switched from the new HAP).
  • the new HAP forwards the data to the HAP bound HAP of the UE, and then step 714 is omitted subsequently.
  • the new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship.
  • the cache timer is set here to prevent the cache relationship from being invalid.
  • the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time.
  • the UE switches the HAP, and the original HAP also stops the data forwarding to the UE. In this case, the data is sent to the original HAP. Therefore, the new HAP should delete the cached peer HAP and the pair after the set buffer timer expires. Binding relationship of the HIT of the UE, and re-entering the binding relationship of the UE to the SN node.
  • Step 714 The new HAP notifies the peer HAP that the UE has switched to the new HAP according to the parameter SOURCE_HAP in the HIP header.
  • the peer HAP updates the cache of the binding between the HIT and the HAP of the UE, that is, the peer HAP replaces the binding relationship between the UE and the original HAP that is cached by the peer HAP with the binding relationship between the UE and the new HAP;
  • the cached timer returns a response to the new HAP. Then, the data sent by the peer HAP to the UE will be sent to the new HAP.
  • the new HAP After receiving the response from the peer HAP, the new HAP records the update success status, including: the HIT of the UE and the identifier of the peer HAP, and is used to send the HAP switch notification to the peer HAP without repeating. This record should be deleted when the UE switches to another HAP, when the UE closes the HIP association, when the keep-alive fails, or when the timer expires.
  • Step 715 The forwarding timer set by the original HAP times out, stops forwarding the data of the UE, and deletes the related information of the stored UE (including the HAP information currently bound by the UE).
  • This embodiment can have multiple transformations, such as:
  • HAP and SN can be combined, that is, HAP forms a DHT overlay network, and stores HAP and settings. Prepare the binding relationship of HIT;
  • the DHT overlay network can be used to store the binding relationship between the HAP and the HIP device HIT, and a DNS-like server cluster is used to store the binding relationship between the HAP and the HIP device HIT.
  • the HAP can not cache the binding relationship between the HAP and the HIT of the HIP device. That is, each time the HAP needs to send data to the HIP device, the HAP binds the HIT and HAP from the host that is responsible for storing the HIT and HAP bindings. The relationship is determined such that steps 711, 712, 713, 714, 715 can be omitted.
  • HAP can also initiate HAP switching according to its own situation, without relying on the change of the IP address of the HIP device. For example: The original HAP load is too heavy, and the service needs to be stopped. At this time, steps 702 and 703 become HAP to notify the UE to switch the HAP.
  • the UE may carry the current HAP address in the query HAP request, and may be used by the server to determine whether the UE needs to switch the HAP.
  • the server may also return a list of HAPs to the UE, which may be sorted according to priority, and the UE selects the HAP to use. .
  • FIG. 8 is a schematic diagram of a method for switching an access point of a HIP device according to an embodiment of the present invention.
  • the HAP may notify the UE according to the change of the IP address of the UE, the storage information of the UE, or the HAP information of the UE obtained by the server.
  • To do a HAP switch the following steps are included:
  • Step 801 The UE obtains a small HAP address of the RTT by querying the DNS, the statically configured server, or the DHCPv6, and the UE establishes an HIP association with the HAP (referred to as the original HAP).
  • the original HAP stores the binding relationship between the HIT of the UE and the original IP address, and stores the binding relationship between the HIT of the UE and the original HAP in the peer-to-peer overlay network formed by the SN node.
  • step 802 the IP address of the UE changes.
  • Step 803 The UE notifies the original HAP by using the HIP Update message, and the original HAP responds to the HIP Update message, and records the change of the IP address of the UE.
  • Step 804 The original HAP determines whether the UE needs to switch the HAP according to the new IP address of the UE and the information stored by itself or the information obtained from the server. For example: The original HAP is based on the new IP address. Obtain the minimum HTP address of the RTT with the new IP address, and decide whether to switch to the new HAP according to the load.
  • Step 805 If the handover is required, the original HAP sends a HAP handover request to the selected new HAP, and the new HAP sends a HAP handover response (whether or not to accept the handover) to the original HAP according to its own situation.
  • Step 806 If the new HAP accepts the handover, the original HAP sends a HAP handover request to the UE, where the HIT and the IP address of the new HAP are included.
  • the HAP and IP address of the new HAP are described by the extended parameter HAP_UPDATE.
  • the UE acknowledges the HAP handover request.
  • Step 807 The UE establishes a HIP association with the new HAP.
  • the UE will use this connection to send data later.
  • the new HAP can check whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
  • Step 808 The new HAP sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP.
  • Step 809 The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the routing rule of the overlay network, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
  • Step 810 The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIP association with the original HAP is closed.
  • the original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identity), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier.
  • the forwarding attributes of the original HAP To clarify the forwarding attributes of the original HAP.
  • the original HAP may set a forwarding timer, which is used to stop forwarding data to the UE after the forwarding timer expires.
  • the duration of the forwarding timer should be slightly larger than the HIT of the original HAP cache UE and the new HAP. The timer duration of the binding relationship.
  • Step 811 The original HAP sends the binding of the HIT of the deleted UE to the original HAP to the connected original SN.
  • the request of the relationship is that the original SN deletes the binding relationship between the HIT of the UE that is saved by itself and the original HAP.
  • Step 813 The peer HAP (that is, the HAP that still sends data to the UE, and the HAPs have not yet learned that the UE has switched to the new HAP) still sends the data to the original HAP to the UE.
  • Step 814 After receiving the data, the original HAP forwards the data to the new HAP according to the binding relationship between the stored HIT and the new HAP, and adds the parameter SOURCE_HAP to the HIP header to fill in the identifier of the peer HAP.
  • Step 815 The new HAP forwards data to the UE according to the binding relationship between the HIT of the UE and the new IP address, and the new HAP can remove the parameter SOURCE_HAP in the HIP header when forwarding the data to the UE.
  • the UE switches the HAP again (ie, switches from the above new HAP to another HAP), then the new HAP finds the UE.
  • the binding relationship between the HIT and the HAP ie, other HAPs that are switched from the new HAP.
  • the new HAP forwards the data to the HAP bound HAP of the UE, and then step 816 is omitted.
  • the new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship.
  • the cache timer is set here to prevent the cache relationship from being invalid. For example, the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time.
  • the UE switches the HAP, and the original HAP also stops the data forwarding to the UE. In this case, the data is sent to the original HAP.
  • the new HAP should delete the cached peer HAP and the pair after the set buffer timer expires. Binding relationship of the HIT of the UE, and re-entering the binding relationship of the UE to the SN node. Step 816: The new HAP notifies the peer HAP that the UE has switched to the new HAP according to the parameter SOURCE_HAP in the HIP header. The peer HAP updates the cache of the binding between the HIT and the HAP of the UE, that is, the peer HAP replaces the binding relationship between the UE and the original HAP that is cached by the peer HAP with the binding relationship between the UE and the new HAP; The cached timer returns a response to the new HAP. Then, the data sent by the peer HAP to the UE will be sent to the new HAP.
  • the new HAP After receiving the response from the peer HAP, the new HAP records the update success status, including: the HIT of the UE and the identifier of the peer HAP, and is used to send the HAP switch notification to the peer HAP without repeating. This record should be deleted when the UE switches to another HAP, when the UE closes the HIP association, when the keep-alive fails, or when the timer expires.
  • Step 817 The forwarding timer set by the original HAP expires, and the data of the UE is stopped, and the related information of the stored UE (including the HAP information currently bound by the UE) is deleted.
  • This embodiment can also have various transformations, such as:
  • the HAP and the SN can be combined, that is, the HAP forms a DHT overlay network, and the binding relationship between the HAP and the device HIT is stored;
  • the DHT overlay network can be used to store the binding relationship between the HAP and the HIP device HIT, and a DNS-like server cluster is used to store the binding relationship between the HAP and the HIP device HIT.
  • the HAP can not cache the binding relationship between the HAP and the HIT of the HIP device. That is, each time the HAP needs to send data to the HIP device, the HAP binds the HIT and HAP from the host that is responsible for storing the HIT and HAP bindings. The relationship is determined such that steps 813, 814, 815, 816, 817 can be omitted;
  • HAP can also initiate HAP switching according to its own situation, without relying on the change of the IP address of the HIP device. For example: The original HAP load is too heavy, and the service needs to be stopped. At this time, steps 801, 802, and 803 can be omitted.
  • FIG. 9 shows another embodiment of the present invention.
  • the original HAP obtains the information of the peer UE that the current UE is communicating from the UE, and sends a HAP handover notification to the peer UE.
  • HAP uses the overlay network formed by the SN node shown in FIG. 6 to store the binding relationship between the HIP device HIT and the current HAP, and includes the following steps:
  • Step 901 The UE needs to perform HAP handover.
  • the way in which the new HAP is found is the same as the embodiment shown in Figs. 7 and 8.
  • Step 902 The UE establishes a HIP association with the new HAP.
  • the UE will use this connection to send data later.
  • the new HAP checks whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
  • Step 903 The new HAP sends a request for storing a binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP.
  • Step 904 The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the overlay network routing rule, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
  • Step 905 The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIT list of the UE that is communicating with the UE is notified, and the HIP association is closed.
  • the HIP Close packet can be extended, the parameter HAP_UPDATE is added to describe the HIT and IP address of the new HAP, and the parameter TARGET_LIST is added to describe the HIT list of the peer UE that is communicating with the UE.
  • the original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identifier), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier.
  • address and identifier the binding relationship between the HIT of the UE and the new HAP
  • the original HAP may set a forwarding timer, which is used to stop forwarding data to the UE after the forwarding timer expires.
  • the duration of the forwarding timer should be slightly larger than the HIT of the original HAP cache UE and the new HAP. The timer duration of the binding relationship.
  • Step 906 The original HAP sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the original SN, and the original SN deletes the binding relationship between the HIT of the UE and the original HAP.
  • Step 907 The original SN sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the home SN according to the routing rule of the overlay network, and the home SN deletes the binding relationship between the HIT of the UE and the original HAP.
  • Step 908 The original HAP queries the binding relationship between the HIT and the HAP of the UE that is cached by the HeNB according to the HIT list of the UE that is in communication with the UE, or obtains the binding relationship between the HIT and the HAP of the UE from the overlay network formed by the SN node.
  • the peer HAP updates the HIT and HAP binding of the UE to the UE.
  • the HIT is bound to the new HAP, and the cached timer can be refreshed.
  • the subsequent data sent to the UE is sent to the new HAP.
  • Step 909 The peer HAP (that is, the HAP that still sends data to the UE) still sends data to the original HAP to the UE.
  • Step 910 After receiving the data, the original HAP forwards the data to the new HAP according to the binding relationship between the stored HIT of the UE and the new HAP.
  • Step 911 The new HAP forwards data to the UE according to the binding relationship between the HIT of the UE and the new IP address.
  • the new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship.
  • the cache timer is set here to prevent the cache relationship from being invalid.
  • the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time.
  • the UE switches the HAP, and the original HAP also stops the data forwarding to the UE. In this case, the data is sent to the original HAP. Therefore, the new HAP should delete the cached peer HAP and the pair after the set buffer timer expires. Binding relationship of the HIT of the UE, and re-entering the binding relationship of the UE to the SN node.
  • Step 912 The forwarding timer set by the original HAP times out, stops forwarding the data of the UE, and deletes the related information of the stored UE (including the HAP information currently bound by the UE).
  • This embodiment can also have various transformations, such as:
  • the HIT list of the peer UE that the UE is communicating with may be obtained by the new HAP, and the HAP handover notification is sent by the new HAP to the peer HAP.
  • the relationship between the HIT of the peer UE and the peer HAP may be obtained from the original HAP, or may be obtained from the SN.
  • the overlay network composed of nodes is obtained.
  • FIG. 10 is another embodiment of the HAP handover of the HIP device of the present invention.
  • the HAP After the HAP is switched, if the original HAP receives the data sent by the other HAP to the HIP device, the original HAP forwards the data, and notifies the peer HAP of the HIP.
  • the device has switched HAP. Includes the following steps:
  • Step 1001 The UE needs to perform HAP handover.
  • the way in which the new HAP is found is the same as in the embodiment shown in Figs.
  • Step 1002 The UE establishes a HIP association with the new HAP. The UE will subsequently use this connection to send data.
  • the new HAP checks whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
  • Step 1003 The new HAP sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP.
  • Step 1004 The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the overlay network routing rule, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
  • Step 1005 The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIT list of the UE that is communicating with it is notified, and the HIP association is closed.
  • the HIP Close package can be extended, and the parameter HAP_UPDATE is added to describe the HIT and IP address of the new HAP.
  • the original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identity), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier. To clarify the forwarding attributes of the original HAP.
  • the original HAP can set a forwarding timer for forwarding timing. After the timeout expires, the data is not forwarded to the UE.
  • the duration of the forwarding timer should be slightly longer than the timer duration of the binding between the HIT of the original HAP cache UE and the new HAP.
  • Step 1006 The original HAP sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the original SN, and the original SN deletes the binding relationship between the HIT of the UE and the original HAP.
  • Step 1007 The original SN sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the home SN according to the routing rule of the overlay network, and the home SN deletes the binding relationship between the HIT of the UE and the original HAP.
  • Step 1008 The peer HAP (that is, the HAP that still sends data to the UE) still sends data to the original HAP to the UE.
  • Step 1009 After receiving the data, the original HAP notifies the peer HAP and the HAP handover information of the UE according to the binding relationship between the HIT of the UE and the new HAP, including the HIT and the new HAP identifier of the UE.
  • the peer HAP After receiving the HAP handover information of the UE, the peer HAP updates the binding between the HIT of the cached UE and the original HAP to be the binding between the HIT of the UE and the new HAP, and does not update the cache timer, and the subsequent data sent to the UE is sent. Go to the new HAP.
  • Step 1010 The original HAP forwards data to the new HAP according to the binding relationship between the HIT of the UE and the new HAP.
  • Step 1011 The new HAP forwards data to the UE according to the binding relationship between the HIT of the UE and the new IP address.
  • the new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship.
  • the cache timer is set here to prevent the cache relationship from being invalid. For example, the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time.
  • the UE switches the HAP, and the original HAP also stops the data forwarding to the UE, and then sending data to the original HAP fails. Therefore, the new HAP should delete the binding relationship between the cached peer HAP and the HIT of the peer UE after the set buffer timer expires, and re-enter the binding relationship of the UE to the SN node.
  • Step 1012 The forwarding timer set by the original HAP times out, stops forwarding the data of the UE, and deletes the related information of the stored UE (including the HAP information currently bound by the UE).
  • This embodiment can have multiple transformations, such as:
  • Step 1009 After receiving the data, the original HAP notifies the peer HAP and the HAP handover of the UE according to the binding relationship between the HIT of the UE and the new HAP, and does not include the HIT and the new HAP identifier of the UE.
  • the peer HAP After receiving the HAP handover notification from the UE, the peer HAP deletes the binding relationship between the HIT of the cached UE and the original HAP, and obtains the HAP currently associated with the UE from the overlay network formed by the SN node when the data is sent to the UE next time.
  • the HIP device determines whether to switch the HAP according to the obtained HAP information of the smaller RTT, or the original HAP of the HIP device is based on the obtained HAP information with less RTT between the HIP device and the HIP device. Determining whether the HIP device performs HAP switching;
  • the HIP device When the HAP switch is determined, the HIP device establishes a HIP association with the new HAP and closes the association with the original HAP.
  • the original HAP forwards the data sent to the HIP device to the new HAP.
  • the new HAP checks whether the binding relationship between the HIP device and the original HAP is cached, and if yes, deletes the binding relationship; The new HAP stores the binding relationship between the HIP device and its new IP address.
  • the HIP device After the HIP device establishes a HIP association with the new HAP, the HIP device sends a handover notification to the original HAP, including the new HAP information.
  • the original HAP stores the HIT and IP address of the HIP device.
  • the binding relationship is changed to the binding relationship between the HIT of the HIP device and the new HAP.
  • the original HAP forwards the number sent to the HIP device to the new HAP According to, specifically:
  • the original HAP After receiving the data sent by the peer end of the HIP device to the HIP device, the original HAP forwards data to the new HAP according to the stored binding relationship between the HIT of the HIP device and the new HAP, and The forwarded data carries the peer HAP information.
  • the new HAP forwards data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address.
  • the new HAP notifies the peer HAP that the HIP device has switched to the new HAP according to the peer HAP information; the peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP. A binding relationship between the HIP device and the new HAP, and returning a response to the new HAP; the new HAP records an update success status of the peer HAP, where the HIP device and the peer HAP information are included.
  • the handover notification sent by the HIP device to the original HAP may further include: an HIT list of the peer HIP device that is communicating with the HIP device; information, and notifying the peer HAP that the HIP device is switched to the new HAP
  • the peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored in the peer end with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP; the new HAP record office
  • the update success status of the peer HAP includes the HIP device and the peer HAP information.
  • the present invention further provides a system for HAP handover, including: a HIP device, and an original HAP and a new HAP of the HIP device. among them,
  • the HIP device After the IP address of the HIP device is changed, the HIP device is configured to determine whether to switch the HAP according to the obtained HAP information with a smaller RTT, or the original HAP is compared according to the obtained RTT between the HIP device and the HIP device. '', the HAP information determines whether the HIP device performs HAP handover;
  • the HIP device is further configured to establish a HIP association with the new HAP when performing the HAP handover. And closing the association with the original HAP;
  • the original HAP is further configured to forward the data sent to the HIP device to the new HAP, where the new HAP is used to send the data forwarded by the original HAP to the HIP device. Further, the new HAP is further configured to: when establishing a HIP association with the HIP device, check whether the binding relationship between the HIP device and the original HAP is cached, and if yes, delete the binding relationship; The new HAP stores the binding relationship between the HIP device and its new IP address.
  • the HIP device may be further configured to: after establishing a HIP association with the new HAP, send a handover notification to the original HAP, where the new HAP information is included; and correspondingly, the original HAP may be used to: store the HIP by itself.
  • the binding relationship between the HIT and the IP address of the device is changed to the binding relationship between the HIT of the HIP device and the new HAP.
  • the original HAP may be further configured to: after receiving the data sent by the peer end of the HIP device to the HIP device, according to the stored binding relationship between the HIT of the HIP device and the new HAP, The new HAP forwards the data, and carries the peer HAP information in the forwarded data.
  • the new HAP is further configured to: according to the binding relationship between the HIT of the HIP device saved by the HIP device and the new IP address, to the HIP The device forwards the data.
  • the new HAP may be further configured to notify the peer HAP that the HIP device is handed over to the new HAP according to the peer HAP information, and receive the HIP device and the original HAP that the peer HAP stores by itself.
  • the binding relationship is replaced by the response returned by the binding relationship between the HIP device and the new HAP.
  • the update success status of the peer HAP is recorded, where the HIP device and the peer HAP information are included.
  • the handover notification sent by the HIP device to the original HAP may further include: an HIT list of the peer HIP device that is communicating with the HIP device;
  • the original HAP may be used to obtain the peer HAP information corresponding to the HIT in the HIT list, and notify the peer HAP that the HIP device has switched to the new HAP; receiving the peer HAP will itself The stored binding relationship between the HIP device and the original HAP is replaced by The response returned by the binding relationship between the HIP device and the new HAP; the update success status of the peer HAP is recorded, where the HIP device and the peer HAP information are included.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in the present invention are a Host Identity Protocol Access Point (HAP) handoff method and system. The method includes: after the IP address of a Host Identity Protocol (HIP) device changes, the HIP device decides whether to perform a HAP handoff according to obtained HAP information wherein the packet Round Trip Time (RTT) is shorter, or the original HAP of the HIP device decides whether the HIP device should perform the HAP handoff according to obtained HAP information wherein the RTT between the HIP device and the HAP is shorter; when deciding to perform the HAP handoff, the HIP device establishes an association with a new HAP and closes the association with the original HAP; and the original HAP forwards the data sent to the HIP to the new HAP. The present invention solves the problem of long interaction delays between a UE and a HIP device, which are caused by the change from short to long of the RTT between the UE and the HAP after the UE moves.

Description

一种 HAP切换的方法和系统 技术领域  Method and system for HAP handover
本发明涉及电信领域, 特别是指一种主机标识协议(HIP, Host Identity Protocol )设备接入点 ( HAP )切换的方法和系统。 背景技术  The present invention relates to the field of telecommunications, and in particular to a method and system for handover of a Host Identity Protocol (HIP) device access point (HAP). Background technique
目前因特网 (Internet ) 的名字空间主要有两种: 即互联网协议(IP, Internet Protocol )地址和域名系统。 IP地址既担任寻址功能, 又担任着标识 通信设备主机的作用, 此双重功能决定了当 IP地址变化时, 不仅路由发生 了变化, 而且通信设备主机的标识也发生了变化。 对于路由发生的变化可 以接受,但是设备标识的变化却会导致应用和连接中断。 HIP的引入解决了 设备标识和地址的绑定, HIP要求任何设备都有全球范围内唯一的主机识别 码(HI, Host Identifier ), 定义了主机标识标签 ( HIT, Host Identity Tag ), 128位的 ORCHID是对 HI的哈希,在协议中用 HIT的好处是在程序中可以 使用定长的接口和方便与 128位 IPV6地址的统一。 HIP协议对于 TCP/IP 的通信层协议做了与现在不同的限定。 在 TCP/IP协议中, 传输控制协议 ( TCP, Transmission Control Protocol ) 和用户数据报协议 ( UDP, User Datagram Protocol )联接是同 IP地址联系起来的, 而一旦 HIP架构建立起 来,这些联接就同主机 ID, 而不是 IP地址联系起来。 HIP之所以能够如此, 是因为它改变了 TCP/IP协议中的网络层和传输层的绑定, 在 TCP、 IP之间 引入了 HIP层。 在 HIP架构之中, IP地址仍然具有位置标识的功用, 但是, HI取代了 IP地址的设备标识的功能。 这就使得, 无论一个主机的 IP地址 如何变换, 它都能够拥有唯一不变的标识, 从而解决了主机的移动性问题 和多穴的问题。 HIP网络层次结构参见图 1。 HIP协议在 IP包头之上有自己的包头, 其中各字段的含义如下:At present, there are two main types of Internet (Internet) namespaces: Internet Protocol (IP) addresses and domain name systems. The IP address serves both as an addressing function and as a host for identifying the communication device. This dual function determines that when the IP address changes, not only the route changes, but also the identity of the host of the communication device changes. Changes to the route are acceptable, but changes to the device identity can cause application and connection disruptions. The introduction of HIP solves the binding of device identification and address. HIP requires that any device has a unique host identifier (HI, Host Identifier) on a global scale, and defines a host identity tag (HIT, Host Identity Tag), 128-bit. ORCHID is a hash of HI. The advantage of using HIT in the protocol is that the program can use a fixed length interface and facilitate the unification with the 128-bit IPV6 address. The HIP protocol has different restrictions on the communication layer protocol of TCP/IP. In the TCP/IP protocol, the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) are linked to the IP address, and once the HIP architecture is established, these connections are the same as the host. ID, not the IP address is linked. HIP is able to do this because it changes the binding between the network layer and the transport layer in the TCP/IP protocol, and introduces the HIP layer between TCP and IP. In the HIP architecture, the IP address still has the function of location identification, but HI replaces the function of the device identifier of the IP address. This makes it possible to have a unique identity regardless of how a host's IP address changes, thus solving the host's mobility problems and multi-hole problems. See Figure 1 for the HIP network hierarchy. The HIP protocol has its own header on the IP header. The meaning of each field is as follows:
Next Header字段用于描述附加头的位置, 目前没有使用, 固定使用十 进制的 59来表示没有 Next Header; The Next Header field is used to describe the location of the additional header. It is not currently used. A fixed decimal of 59 is used to indicate that there is no Next Header.
Header Length字段说明 HIP包头的长度, 以 8字节的整数倍计数, 不 包含开始的 8字节包头;  Header Length field Description The length of the HIP header, counted as an integer multiple of 8 bytes, excluding the first 8-byte header;
Packet Type字段说明 HIP包的类型;  Packet Type field description Type of HIP packet;
VER.字段说明 HIP协议的版本号;  VER. field description The version number of the HIP protocol;
RES.字段为以后的应用预留, 目前没有使用;  The RES. field is reserved for future applications and is not currently used;
Checksum字段是 HIP包头的校验和;  The Checksum field is the checksum of the HIP header;
Controls字段是包结构和主机能力描述的字段, 目前只定义了主机以匿 名发送的方式这一种情况;  The Controls field is a field describing the structure of the package and the capabilities of the host. Currently, only the way in which the host sends it by anonymous name is defined.
Sender's Host Identity Tag ( HIT )字段描述了发送者的 HIT, 128位的 ORCHID;  The Sender's Host Identity Tag (HIT) field describes the sender's HIT, 128-bit ORCHID;
Receiver's Host Identity Tag ( HIT )字段描述了接收者的 HIT, 128位的 ORCHID;  The Receiver's Host Identity Tag (HIT) field describes the recipient's HIT, 128-bit ORCHID;
HIP Parameters字段描述了 HIP包携带的 HIP参数。  The HIP Parameters field describes the HIP parameters carried by the HIP packet.
HIP基础交互流程如图 2所示。 HIP基础交互是两个主机之间基础信息 的交互过程,用于交互两个主机通讯的基础信息。 HIP基础交互流程有四个 包的交互, 在第二和第三个包中交互 DH 密钥算法所需要的参数, 用于在 两个主机间协商共享密钥; 通过在第二个和第三个包中携带的公钥, 签名 和 HIT分别认证对方的身份。 在四个包的交互完成后, 建立了端到端的安 全连接。 在网络中发起 HIP交互包的主机是发起者, 发起者想交互的主机 是响应者, 当四个包的基础交互流程结束后, 这种区别就不存在了, 在后 续通讯中交互的任何一方都可能成为发起者, 通知对方自己状态的改变。 在发起者发起的第一个包 II中, 仅包含发起者的主机标识标签(HIT-I )和 响应者的主机标识标签(HIT-R )。 在响应者发送的第二个包 R1中开始实际 的信息交互过程。 在第二个包 R1中包含了对发起者的秘密挑战(用于降低 拒绝服务攻击的威胁), 发起者必须响应这个挑战, 交互才能继续。 在发起 者发送的第三个包 12中, 包含了发起者对 R1 包中秘密挑战的应答。 响应 者发送的第四个包 R2包含响应者的签名,同时结束四个包的 HIP基础交互 流程。 The HIP basic interaction process is shown in Figure 2. The HIP basic interaction is an interaction process between basic information between two hosts, and is used to exchange basic information of communication between two hosts. The HIP basic interaction process has four packet interactions, and the parameters required to interact with the DH key algorithm in the second and third packets are used to negotiate a shared key between the two hosts; through the second and third The public key, signature and HIT carried in the package respectively authenticate the identity of the other party. After the interaction of the four packages is completed, an end-to-end secure connection is established. The host that initiates the HIP interaction package in the network is the initiator, and the host that the initiator wants to interact with is the responder. When the basic interaction process of the four packages ends, the difference does not exist, and any party that interacts in the subsequent communication. It may become the initiator to inform the other party of the change in status. In the first package II initiated by the initiator, only the initiator's host identification tag (HIT-I) and Responder's host identification tag (HIT-R). The actual information interaction process begins in the second packet R1 sent by the responder. In the second package R1 contains the secret challenge to the initiator (used to reduce the threat of denial of service attacks), the initiator must respond to this challenge before the interaction can continue. In the third packet 12 sent by the initiator, the initiator's response to the secret challenge in the R1 packet is included. The fourth packet R2 sent by the responder contains the signature of the responder, and ends the HIP basic interaction process of the four packets.
当使用 HIP的设备 IP地址改变之后, 需要通知它所连接的对端, 使用 HIP的 Update消息的三次握手方式, 如图 3所示。 其中, 参数 LOCATOR 包含主机的新的 IP地址(IPv6地址或 IPv4-in-IPv6格式的 IPv4地址), ESP INFO包含安全关联 ( SA )的信息, SEQ和 ACK用于确认两端收到了 Update包。  After the IP address of the device using the HIP is changed, it is necessary to notify the peer to which it is connected, and use the three-way handshake mode of the HIP Update message, as shown in Figure 3. The parameter LOCATOR contains the host's new IP address (IPv6 address or IPv4-in-IPv6 format IPv4 address), ESP INFO contains the security association (SA) information, and SEQ and ACK are used to confirm that the Update packet is received at both ends.
ORCHID ( Overlay Routable Cryptographic Hash Identifiers )是一种特殊 的 IPV6地址, 其不能作为普通的可路由的 IPV6地址。 通过在头部使用特 殊的 28 位的标记来与普通 IPV6 地址区分。 其构成如下: 28 位的前 2001 :10::/28, 加 100位的二进制串。 HIP中的 HIT使用 ORCHID。  ORCHID (Overlay Routable Cryptographic Hash Identifiers) is a special IPV6 address that cannot be used as a normal routable IPV6 address. Distinguish from normal IPV6 addresses by using a special 28-bit tag on the head. Its composition is as follows: 28-bit first 2001: 10::/28, plus a 100-bit binary string. The HIT in the HIP uses the ORCHID.
由于 HIP基于端到端的连接, 每个 HIP设备都需要四次握手来与一个 新的 HIP设备建立关联, 增加了设备开销, 而且当一个 HIP设备与另一个 HIP设备之间的包来回时间 ( RTT, Round Trip Time )较长时 , 建立连接时 延较长, 影响用户体验。 同时, 如果一个 HIP设备连接了多个 HIP设备, 则 IP地址的变更需要通知其所有连接的设备,时延也较长,影响用户体验。  Since the HIP is based on an end-to-end connection, each HIP device requires four handshakes to associate with a new HIP device, increasing device overhead, and when the packet is back and forth between one HIP device and another HIP device (RTT) , Round Trip Time ), when the connection is established for a long time, the connection delay is long, which affects the user experience. At the same time, if a HIP device is connected to multiple HIP devices, the change of the IP address needs to notify all connected devices, and the delay is also long, which affects the user experience.
因此, 引入了 HIP基础架构, 如图 4所示, 其中:  Therefore, the HIP infrastructure is introduced, as shown in Figure 4, where:
401 : 用户设备 ( UE, User Equipment )支持 HIP协议, 是一种 HIP设 备。  401: The User Equipment (UE, User Equipment) supports the HIP protocol and is a HIP device.
402: HIP设备接入节点 (HAP, HIP Access Point )是基础架构的 HIP 接入节点, 提供 UE的 HIP接入, 数据转发。 UE与 RTT较小的 HAP建立 HIP关联, UE发送和接收的数据包由 HAP 转发。 UE只需与 HAP建立 HIP关联,而不用每次都与新 HIP设备建立 HIP 关联。 402: The HIP Access Point (HAP) is a HIP access node of the infrastructure, and provides HIP access and data forwarding of the UE. The UE establishes a HIP association with the HTP with a smaller RTT, and the data packets sent and received by the UE are forwarded by the HAP. The UE only needs to establish a HIP association with the HAP without establishing a HIP association with the new HIP device each time.
但是, 当 UE移动后, 原来较近的 HAP (即 UE与该 HAP之间的 RTT 较小)可能变的较远 ( RTT由小变大), 从而导致 UE与 HIP设备交互的时 延较长, 用户体险变差。 发明内容  However, when the UE moves, the earlier HAP (that is, the smaller the RTT between the UE and the HAP) may become farther (the RTT changes from small to large), resulting in a longer delay between the UE and the HIP device. , the user's physical risk is getting worse. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种 HAP切换的方法和系统, 能够解决由于 UE移动后, UE与 HAP之间的 RTT由小变大而导致的 UE 与 HIP设备交互的时延较长的问题。  In view of this, the main purpose of the present invention is to provide a method and system for HAP handover, which can solve the delay of interaction between the UE and the HIP device caused by the RTT between the UE and the HAP after the UE moves. Long question.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供了一种主机标识协议设备接入点 (HAP )切换的方法, 该 方法包括:  The present invention provides a method for Host Identity Protocol Device Access Point (HAP) handover, the method comprising:
当主机标识协议 ( HIP )设备的 IP地址发生改变后, 所述 HIP设备根 据获取的包来回时间 (RTT )较小的 HAP信息决定是否切换 HAP, 或者所 述 HIP设备的原 HAP根据获取的与所述 HIP设备之间的 RTT较小的 HAP 信息决定所述 HIP设备是否执行 HAP切换;  After the IP address of the HIP device is changed, the HIP device determines whether to switch the HAP according to the obtained HAP information with a smaller packet round-trip time (RTT), or the original HAP of the HIP device is obtained according to the obtained The HTP information of the RTT between the HIP devices determines whether the HIP device performs HAP switching.
在决定执行 HAP切换时, 所述 HIP设备与新 HAP建立 HIP关联, 并 关闭与所述原 HAP的关联;且所述原 HAP向新 HAP转发发往所述 HIP设 备的数据。  When the HAP handover is determined, the HIP device establishes a HIP association with the new HAP and closes the association with the original HAP; and the original HAP forwards the data sent to the HIP device to the new HAP.
该方法进一步包括:  The method further includes:
所述 HIP设备与新 HAP建立 HIP关联时 , 所述新 HAP检查自身是否 緩存了所述 HIP设备与原 HAP的绑定关系,如果是,则删除所述绑定关系; 且所述新 HAP存储所述 HIP设备与其新 IP地址的绑定关系。  When the HIP device establishes a HIP association with the new HAP, the new HAP checks whether the binding relationship between the HIP device and the original HAP is cached, and if yes, deletes the binding relationship; and the new HAP storage Binding relationship between the HIP device and its new IP address.
该方法进一步包括: 在所述 HIP设备与新 HAP建立 HIP关联后, 所述 HIP设备向原 HAP 发送切换通知, 其中包括新 HAP信息; The method further includes: After the HIP device establishes a HIP association with the new HAP, the HIP device sends a handover notification to the original HAP, including new HAP information;
所述原 HAP将自身存储的所述 HIP设备的主机标识标签( HIT )与 IP 地址的绑定关系, 更改为所述 HIP设备的 HIT与新 HAP的绑定关系。  The original HAP changes the binding relationship between the HIT and the IP address of the HIP device stored in the original HAP to the binding relationship between the HIT of the HIP device and the new HAP.
所述原 HAP向新 HAP转发发往所述 HIP设备的数据, 具体为: 所述原 HAP接收到所述 HIP设备的对端发送给所述 HIP设备的数据 后,根据存储的所述 HIP设备的 HIT与新 HAP的绑定关系,向所述新 HAP 转发数据, 并在转发的数据中携带对端 HAP信息;  The original HAP forwards the data sent to the HIP device to the new HAP, specifically: after the original HAP receives the data sent by the opposite end of the HIP device to the HIP device, according to the stored HIP device Binding relationship between the HIT and the new HAP, forwarding data to the new HAP, and carrying the peer HAP information in the forwarded data;
所述新 HAP根据自身保存的 HIP设备的 HIT与新 IP地址的绑定关系, 向所述 HIP设备转发数据。  The new HAP forwards data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address.
该方法进一步包括:  The method further includes:
所述新 HAP根据所述对端 HAP信息, 向所述对端 HAP通知 HIP设备 切换到了新 HAP;  The new HAP notifies the peer HAP that the HIP device has switched to the new HAP according to the peer HAP information;
所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系替换 为所述 HIP设备与新 HAP的绑定关系, 并向所述新 HAP返回应答;  The peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP.
所述新 HAP记录所述对端 HAP的更新成功状态, 其中包含所述 HIP 设备和对端 HAP信息。  The new HAP records the update success status of the peer HAP, where the HIP device and the peer HAP information are included.
该方法进一步包括:所述 HIP设备向原 HAP发送的切换通知中还包括: 与所述 HIP设备正在通讯的对端 HIP设备的 HIT列表;  The method further includes: the handover notification sent by the HIP device to the original HAP, further comprising: an HIT list of the peer HIP device that is communicating with the HIP device;
相应的, 所述原 HAP获取所述 HIT列表中的 HIT对应的对端 HAP信 息, 并向所述对端 HAP通知 HIP设备切换到了新 HAP;  Correspondingly, the original HAP obtains the peer HAP information corresponding to the HIT in the HIT list, and notifies the peer HAP that the HIP device has switched to the new HAP;
所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系替换 为所述 HIP设备与新 HAP的绑定关系, 并向所述新 HAP返回应答;  The peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP.
所述新 HAP记录所述对端 HAP的更新成功状态, 其中包含所述 HIP 设备和对端 HAP信息。 本发明还提供了一种 HAP切换的系统, 该系统包括: HIP设备, 以及 所述 HIP设备的原 HAP和新 HAP; 其中 , The new HAP records the update success status of the peer HAP, where the HIP device and the peer HAP information are included. The present invention also provides a system for HAP switching, the system comprising: a HIP device, and an original HAP and a new HAP of the HIP device;
当所述 HIP设备的 IP地址发生改变后,所述 HIP设备用于根据获取的 RTT较小的 HAP信息决定是否切换 HAP, 或者所述原 HAP根据获取的与 所述 HIP设备之间的 RTT较'〗、的 HAP信息决定所述 HIP设备是否执行 HAP 切换;  After the IP address of the HIP device is changed, the HIP device is configured to determine whether to switch the HAP according to the obtained HAP information with a smaller RTT, or the original HAP is compared according to the obtained RTT between the HIP device and the HIP device. '', the HAP information determines whether the HIP device performs HAP handover;
所述 HIP设备还用于, 在执行 HAP切换时, 与新 HAP建立 HIP关联, 并关闭与所述原 HAP的关联;  The HIP device is further configured to: when performing a HAP handover, establish a HIP association with the new HAP, and close the association with the original HAP;
所述原 HAP还用于, 向新 HAP转发发往所述 HIP设备的数据; 所述新 HAP用于, 将所述原 HAP转发的数据发往所述 HIP设备。 所述新 HAP进一步用于,在与所述 HIP设备建立 HIP关联时,检查自 身是否緩存了所述 HIP设备与原 HAP的绑定关系, 如果是, 则删除所述绑 定关系; 且所述新 HAP存储所述 HIP设备与其新 IP地址的绑定关系。  The original HAP is further configured to forward the data sent to the HIP device to the new HAP, where the new HAP is used to send the data forwarded by the original HAP to the HIP device. The new HAP is further configured to: when establishing a HIP association with the HIP device, check whether the binding relationship between the HIP device and the original HAP is cached, and if yes, delete the binding relationship; The new HAP stores the binding relationship between the HIP device and its new IP address.
所述 HIP设备进一步用于, 在与新 HAP建立 HIP关联后, 向原 HAP 发送切换通知, 其中包括新 HAP信息;  The HIP device is further configured to: after establishing a HIP association with the new HAP, send a handover notification to the original HAP, where the new HAP information is included;
相应的, 所述原 HAP进一步用于, 将自身存储的所述 HIP设备的 HIT 与 IP地址的绑定关系,更改为所述 HIP设备的 HIT与新 HAP的绑定关系。  Correspondingly, the original HAP is further configured to change the binding relationship between the HIT and the IP address of the HIP device that is stored by the original HAP to the binding relationship between the HIT of the HIP device and the new HAP.
所述原 HAP进一步用于, 在接收到所述 HIP设备的对端发送给所述 HIP设备的数据后,根据存储的所述 HIP设备的 HIT与新 HAP的绑定关系, 向所述新 HAP转发数据, 并在转发的数据中携带对端 HAP信息;  The original HAP is further configured to: after receiving the data sent by the peer end of the HIP device to the HIP device, according to the stored binding relationship between the HIT of the HIP device and the new HAP, to the new HAP Forwarding data, and carrying the peer HAP information in the forwarded data;
相应的, 所述新 HAP进一步用于,根据自身保存的 HIP设备的 HIT与 新 IP地址的绑定关系, 向所述 HIP设备转发数据。  Correspondingly, the new HAP is further configured to forward data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address saved by the HIP device.
所述新 HAP进一步用于, 根据所述对端 HAP信息, 向所述对端 HAP 通知 HIP设备切换到了新 HAP;  The new HAP is further configured to notify the peer HAP that the HIP device is switched to the new HAP according to the peer HAP information;
接收所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系 替换为所述 HIP设备与新 HAP的绑定关系后返回的应答; 记录所述对端 HAP的更新成功状态, 其中包含所述 HIP设备和对端 HAP信息。 Receiving the binding relationship between the HIP device stored by the peer HAP and the original HAP And a response that is returned after the binding relationship between the HIP device and the new HAP is replaced. The update success status of the peer HAP is recorded, where the HIP device and the peer HAP information are included.
所述 HIP设备向原 HAP发送的切换通知中还包括:与所述 HIP设备正 在通讯的对端 HIP设备的 HIT列表;  The handover notification sent by the HIP device to the original HAP further includes: an HIT list of the peer HIP device that is communicating with the HIP device;
相应的, 所述原 HAP进一步用于,获取所述 HIT列表中的 HIT对应的 对端 HAP信息, 并向所述对端 HAP通知 HIP设备切换到了新 HAP;  Correspondingly, the original HAP is further configured to: obtain the peer HAP information corresponding to the HIT in the HIT list, and notify the peer HAP that the HIP device is switched to the new HAP;
接收所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系 替换为所述 HIP设备与新 HAP 的绑定关系后返回的应答; 记录所述对端 HAP的更新成功状态, 其中包含所述 HIP设备和对端 HAP信息。  Receiving, by the peer HAP, the binding relationship between the HIP device and the original HAP that is stored by the peer HAP is replaced by the response returned by the HIP device and the new HAP; and the update success status of the peer HAP is recorded. The HIP device and the peer HAP information are included.
本发明所提供的一种 HAP切换的方法和系统, 当 HIP设备移动导致其 与 HAP的连接不是最优时 (即 HIP设备与 HAP之间的 RTT较大), 通过 HAP切换, 使 HIP设备与更优的 HAP (指该 HAP与 HIP设备之间的 RTT 较小 )建立 HIP关联, 通过该更优的 HAP转发和接收数据, 从而减少了数 据发送和接收时延, 提高了用户体验。 附图说明  The method and system for HAP handover provided by the present invention, when the HIP device moves to cause the connection with the HAP to be not optimal (that is, the RTT between the HIP device and the HAP is large), and the HIP device is enabled by HAP switching. A better HAP (which means that the RTT between the HAP and the HIP device is smaller) establishes a HIP association, and the better HAP forwards and receives data, thereby reducing data transmission and reception delay and improving the user experience. DRAWINGS
图 1为现有技术中 HIP网络层次结构的示意图;  1 is a schematic diagram of a hierarchical structure of a HIP network in the prior art;
图 1为现有技术中 HIP基础交互流程图;  FIG. 1 is a flow chart of a basic HIP interaction in the prior art;
图 3为现有技术中 HIP的设备 IP地址改变后, 与对端的三次握手方式 的流程图;  3 is a flowchart of a three-way handshake mode with a peer end after the IP address of the device of the HIP is changed in the prior art;
图 4为现有技术中 HIP基础架构的示意图;  4 is a schematic diagram of a HIP infrastructure in the prior art;
图 5为本发明实施例中 HAP切换的示意图;  FIG. 5 is a schematic diagram of HAP handover in an embodiment of the present invention;
图 6为本发明实施例中 DHT叠加网的架构示意图;  6 is a schematic structural diagram of a DHT overlay network according to an embodiment of the present invention;
图 7为本发明实施例一中的 HAP切换方法流程图;  7 is a flowchart of a HAP switching method according to Embodiment 1 of the present invention;
图 8为本发明实施例二中的 HAP切换方法流程图;  FIG. 8 is a flowchart of a method for switching a HAP according to Embodiment 2 of the present invention;
图 9为本发明实施例三中的 HAP切换方法流程图; 图 10为本发明实施例四中的 HAP切换方法流程图。 具体实施方式 FIG. 9 is a flowchart of a method for switching a HAP according to Embodiment 3 of the present invention; FIG. 10 is a flowchart of a method for switching a HAP according to Embodiment 4 of the present invention. detailed description
下面结合附图和具体实施例对本发明的技术方案进一步详细阐述。 本发明的技术方案, 旨在当 UE移动导致其与 HAP的连接不是最优时 (即 UE与 HAP之间的 RTT较大;), 通过如图 5所示的 HAP切换, 使 UE 与更优的 HAP (指该 HAP与 UE之间的 RTT较小 )建立 HIP关联, 通过 该更优的 HAP转发和接收数据, 从而减少数据发送和接收时延, 提高用户 体验。 本发明中所述的 UE和 HAP都属于 HIP设备。  The technical solutions of the present invention are further elaborated below in conjunction with the accompanying drawings and specific embodiments. The technical solution of the present invention is to make the UE and the better when the UE moves so that the connection with the HAP is not optimal (that is, the RTT between the UE and the HAP is large;) The HAP (refers to the smaller RTT between the HAP and the UE) establishes a HIP association, and forwards and receives data through the better HAP, thereby reducing data transmission and reception delay and improving user experience. Both the UE and the HAP described in the present invention belong to the HIP device.
本发明技术方案的核心是:  The core of the technical solution of the present invention is:
HIP设备 (包括 UE等接入 HAP的 HIP设备 )首先在基础架构上注册, 选择较近(即 RTT较小 ) 的 HAP进行 HIP关联;  The HIP device (including the HIP device that accesses the HAP, such as the UE) is first registered on the infrastructure, and the HAP that is closer (that is, the RTT is smaller) is selected for HIP association.
HAP存储 UE的 HIT与 IP地址的关联,并转发 HIP设备发出的和发往 HIP设备的数据; HIP设备的 IP改变后与服务器联系取得信息决定是否要 切换 HAP, 或由原 HAP告知 HIP设备是否切换;  The HAP stores the association between the HIT and the IP address of the UE, and forwards the data sent by the HIP device and sent to the HIP device. After the IP address of the HIP device is changed, the server is contacted to obtain information to determine whether to switch the HAP, or whether the original HAP informs the HIP device whether the HIP device is Switch
HIP设备与新 HAP建立 HIP关联, 并关闭与原 HAP的 HIP关联; 原 HAP向新 HAP转发发往该 HIP设备的数据。  The HIP device establishes a HIP association with the new HAP and closes the HIP association with the original HAP. The original HAP forwards the data addressed to the HIP device to the new HAP.
以 HIP设备是 UE为例,如图 6所示,是使用超级节点(SN, Super Node ) 组成的叠加网来存储 UE的 HIT与 HAP的绑定关系示意图。 SN是一些均 质化的节点, 组成分布式哈希表 ( DHT, Distributed Hash Table ) 叠加网, 存储 UE的 HIT与 HAP的绑定关系, HAP通过叠加网规定的存储、获取接 口来存储和获取 HIP设备的 HIT与 HAP的绑定关系。 其中:  Taking the HIP device as the UE as an example, as shown in FIG. 6, an overlay network composed of a super node (SN, Super Node) is used to store a binding relationship between the HIT and the HAP of the UE. SN is a number of homogenized nodes, which form a distributed hash table (DHT, Distributed Hash Table) overlay network, and store the binding relationship between the HIT and HAP of the UE. The HAP stores and acquires the storage and acquisition interfaces specified by the overlay network. Binding relationship between the HIT and HAP of the HIP device. among them:
SN ( 601 ), UE连接的 HAP通过其连接 SN节点来存储和获取 UE的 HIT与该 HAP的绑定关系。  The SN ( 601 ), the HAP connected by the UE, is connected to the SN node to store and acquire the binding relationship between the HIT of the UE and the HAP.
UE负责 SN ( 602 ), 根据叠加网规则和 UE的 HIT来确定的, 负责存 储 UE的 ΗΙΤ、与 UE连接的 ΗΑΡ的绑定关系。其它 SN节点可以根据叠加 网规则和 UE的 HIT,到此 UE负责 SN中获取 UE的 HIT与 HAP的绑定关 系。 The UE is responsible for the SN ( 602 ), and is determined according to the overlay network rule and the HIT of the UE, and is responsible for storing the binding relationship between the UE and the UI connected to the UE. Other SN nodes can be superimposed The network rule and the HIT of the UE, the UE is responsible for acquiring the binding relationship between the HIT and the HAP of the UE in the SN.
下面通过具体的实施例来说明本发明的技术方案。 以下所述的实施例 均采用图 6所示的由 SN组成的叠加网来存储 UE的 HIT与 HAP的绑定关 系。  The technical solution of the present invention will be described below by way of specific embodiments. The embodiments described below all use the overlay network composed of SN shown in FIG. 6 to store the binding relationship between the HIT and the HAP of the UE.
图 7所示, 为本发明实施例一的 HAP切换的方法, 该实施例中 UE主 动获得更优的 HAP, 包括以下步驟:  As shown in FIG. 7, the method for HAP handover according to the first embodiment of the present invention, in which the UE actively obtains a better HAP, includes the following steps:
步驟 701 , UE可以通过查询域名系统( DNS, Domain Name System ), 静态配置的服务器或 IPv6的动态主机配置协议 ( DHCPv6, Dynamic Host Configuration Protocol v6 )等方式得到 RTT较小的 HAP的地址, UE与该 HAP (称为原 HAP )建立 HIP关联。 原 HAP存储 UE的 HIT与原 IP地址 的绑定关系,并在 SN节点组成的对等叠加网中存储该 UE的 HIT与原 HAP 的绑定关系。  Step 701: The UE obtains the address of the HRT with a smaller RTT by querying the domain name system (DNS, Domain Name System), the statically configured server, or the IPv6 dynamic host configuration protocol (DHCPv6). The HAP (referred to as the original HAP) establishes a HIP association. The original HAP stores the binding relationship between the HIT of the UE and the original HAP, and stores the binding relationship between the HIT of the UE and the original HAP in the peer-to-peer overlay network formed by the SN node.
步驟 702 , UE的 IP地址发生改变。  Step 702: The IP address of the UE changes.
步驟 703 , UE通过 HIP更新 ( Update ) 消息通知原 HAP, 原 HAP响 应 HIP Update消息 , 并记录 UE的 IP地址的改变。  Step 703: The UE notifies the original HAP by using a HIP Update (Update) message, and the original HAP responds to the HIP Update message, and records the change of the IP address of the UE.
步驟 704, UE通过查询 DNS、静态配置的服务器或 DHCPv6等方式得 到 IP地址改变后 RTT较小的 HAP的地址, UE决定是否需要进行 HAP切 换、 即是否从原 HAP切换到新 HAP。  Step 704: The UE obtains the HAP address with a smaller RTT after the IP address is changed by querying the DNS, the statically configured server, or the DHCPv6. The UE determines whether the HAP switchover needs to be performed, that is, whether the original HAP is switched to the new HAP.
步驟 705 , 如需切换, UE与新 HAP建立 HIP关联。 UE后续将使用此 连接来发送数据。 新 HAP检查自身是否緩存了 UE的 HIT与原 HAP的绑 定关系, 如果是, 则删除该绑定关系; 同时, 新 HAP存储 UE的 HIT与新 IP地址的绑定关系。  Step 705: If the handover is needed, the UE establishes a HIP association with the new HAP. The UE will use this connection to send data later. The new HAP checks whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
步驟 706, 新 HAP向其连接的 SN、 即新 SN, 发送存储 UE的 HIT与 新 HAP的绑定关系的请求, 新 SN存储 UE的 HIT与新 HAP的绑定关系。 步驟 707,新 SN根据叠加网路由规则向 UE的数据归属 SN (简称归属 SN )发送存储 UE的 HIT与新 HAP的绑定关系的请求, 则归属 SN存储 UE的 HIT与新 HAP的绑定关系。 Step 706: The new HAP sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP. Step 707: The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the routing rule of the overlay network, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
步驟 708, UE向原 HAP发送切换通知, 其中包含新 HAP的地址和标 识, 并关闭与原 HAP的 HIP关联。 原 HAP将自身存储的 UE的 HIT与 IP 地址的绑定关系更改为 UE的 HIT与新 HAP (地址和标识 ) 的绑定关系, 且该 UE的 HIT与新 HAP的绑定关系可作为标识用于明确原 HAP的转发 属性。  Step 708: The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIP association with the original HAP is closed. The original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identity), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier. To clarify the forwarding attributes of the original HAP.
在更改绑定关系的同时, 原 HAP可设置转发定时器, 用于在转发定时 器超时后停止向该 UE转发数据, 该转发定时器的时长应略大于原 HAP緩 存 UE的 HIT与新 HAP的绑定关系的定时器时长。  While changing the binding relationship, the original HAP may set a forwarding timer, which is used to stop forwarding data to the UE after the forwarding timer expires. The duration of the forwarding timer should be slightly larger than the HIT of the original HAP cache UE and the new HAP. The timer duration of the binding relationship.
步驟 709, 原 HAP向连接的原 SN发送删除 UE的 HIT与原 HAP的绑 定关系的请求,则原 SN删除自身保存的 UE的 HIT与原 HAP的绑定关系。  Step 709: The original HAP sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the original SN, and the original SN deletes the binding relationship between the HIT of the UE and the original HAP.
步驟 710, 原 SN根据叠加网路由规则向归属 SN发送删除 UE的 HIT 与原 HAP的绑定关系的请求,则归属 SN删除 UE的 HIT与原 HAP的绑定 关系。  Step 710: The original SN sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the home SN according to the routing rule of the overlay network, and the home SN deletes the binding relationship between the HIT of the UE and the original HAP.
步驟 711 , 对端 HAP (即仍然向 UE发送数据的 HAP, 这些 HAP还没 有获知 UE切换到了新 HAP )仍旧向原 HAP发送给该 UE的数据。  In step 711, the peer HAP (that is, the HAP that still sends data to the UE, these HAPs have not yet learned that the UE has switched to the new HAP) still sends data to the original HAP to the UE.
步驟 712, 原 HAP收到数据后,根据存储的 UE的 HIT与新 HAP的绑 定关系, 向新 HAP转发数据, 且在 HIP包头中增加参数 SOURCE— HAP, 填写对端 HAP的标识。  Step 712: After receiving the data, the original HAP forwards the data to the new HAP according to the binding relationship between the stored HIT and the new HAP, and adds the parameter SOURCE_HAP to the HIP header to fill in the identifier of the peer HAP.
步驟 713 ,新 HAP根据自身保存的 UE的 HIT与新 IP地址的绑定关系, 向 UE转发数据; 新 HAP 向 UE转发数据时可去除 HIP 包头中的参数 SOURCE— HAP。  Step 713: The new HAP forwards the data to the UE according to the binding relationship between the HIT of the UE and the new IP address, and the new HAP can remove the parameter SOURCE_HAP in the HIP header when forwarding the data to the UE.
如果在这段时间内 (即步驟 708 中原 HAP设置的转发定时器超时之 前), UE又切换了 HAP (即从上述新 HAP又切换到了其他的 HAP ), 则新 HAP查找到的应是 UE的 HIT与 HAP (即从新 HAP切换到的其他 HAP ) 的绑定关系 , 在这种情况下, 新 HAP向 UE的 HIT绑定的 HAP转发数据, 那么后续省略步驟 714。 If during this time (ie, the forwarding timer set by the original HAP in step 708 expires) The UE is switched to the HAP again (that is, the new HAP is switched to another HAP), and the new HAP searches for the binding relationship between the HIT of the UE and the HAP (that is, other HAPs that are switched from the new HAP). In this case, the new HAP forwards the data to the HAP bound HAP of the UE, and then step 714 is omitted subsequently.
新 HAP可以緩存对端 HAP与对端 UE的 HIT的绑定关系, 并设置緩 存定时器, 当设置的该緩存定时器超时, 新 HAP删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系。 此处设置緩存定时器是为了防止该緩存关系 失效, 例如: 新 HAP緩存了对端 HAP与对端 UE的 HIT的绑定关系 , 并 有一段时间没有向 UE发送数据, 而在这段时间内 UE切换了 HAP, 并且 原 HAP也超时停止了向 UE的数据转发,这时再向原 HAP发送数据会失败, 因此, 新 HAP应该在设置的緩存定时器超时后, 删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系, 并重新到 SN节点中获取 UE的绑定关系。  The new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship. The cache timer is set here to prevent the cache relationship from being invalid. For example, the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time. The UE switches the HAP, and the original HAP also stops the data forwarding to the UE. In this case, the data is sent to the original HAP. Therefore, the new HAP should delete the cached peer HAP and the pair after the set buffer timer expires. Binding relationship of the HIT of the UE, and re-entering the binding relationship of the UE to the SN node.
步驟 714,新 HAP根据 HIP包头中的参数 SOURCE— HAP,向对端 HAP 通知 UE切换到了新 HAP。 对端 HAP更新其 UE的 HIT与 HAP绑定关系 的緩存, 即对端 HAP将其緩存的该 UE与原 HAP的绑定关系替换为该 UE 与新 HAP的绑定关系; 并且对端 HAP刷新緩存的定时器, 向新 HAP返回 应答。 则对端 HAP后续发往该 UE的数据会发往新 HAP。  Step 714: The new HAP notifies the peer HAP that the UE has switched to the new HAP according to the parameter SOURCE_HAP in the HIP header. The peer HAP updates the cache of the binding between the HIT and the HAP of the UE, that is, the peer HAP replaces the binding relationship between the UE and the original HAP that is cached by the peer HAP with the binding relationship between the UE and the new HAP; The cached timer returns a response to the new HAP. Then, the data sent by the peer HAP to the UE will be sent to the new HAP.
新 HAP收到对端 HAP的应答后, 记录更新成功状态, 其中包含: UE 的 HIT和对端 HAP的标识, 用于不重复向对端 HAP发送 HAP切换通知。 此记录应在 UE切换到其它 HAP时、 UE关闭 HIP关联时、 保活失败或设 置定时器超时时删除。  After receiving the response from the peer HAP, the new HAP records the update success status, including: the HIT of the UE and the identifier of the peer HAP, and is used to send the HAP switch notification to the peer HAP without repeating. This record should be deleted when the UE switches to another HAP, when the UE closes the HIP association, when the keep-alive fails, or when the timer expires.
步驟 715, 原 HAP设置的转发定时器超时, 停止转发 UE的数据, 并 删除存储的 UE的相关信息 (包括 UE当前绑定的 HAP信息)。  Step 715: The forwarding timer set by the original HAP times out, stops forwarding the data of the UE, and deletes the related information of the stored UE (including the HAP information currently bound by the UE).
本实施例可以有多种变换, 如:  This embodiment can have multiple transformations, such as:
1、 HAP与 SN可以合设, 即 HAP组成 DHT叠加网, 存储 HAP与设 备 HIT的绑定关系; 1. HAP and SN can be combined, that is, HAP forms a DHT overlay network, and stores HAP and settings. Prepare the binding relationship of HIT;
2、 可以不使用 DHT叠加网来存储 HAP与 HIP设备 HIT的绑定关系, 而使用类似 DNS的服务器集群来存储 HAP与 HIP设备 HIT的绑定关系; 2. The DHT overlay network can be used to store the binding relationship between the HAP and the HIP device HIT, and a DNS-like server cluster is used to store the binding relationship between the HAP and the HIP device HIT.
3、 HAP可以不緩存 HAP与 HIP设备 HIT的绑定关系, 即 HAP每次 需要往 HIP设备发送数据时,都从负责存储 HIP设备 HIT与 HAP绑定的主 机处取 HIP设备 HIT与 HAP的绑定关系, 从而步驟 711 , 712, 713 , 714, 715可以省略。 3. The HAP can not cache the binding relationship between the HAP and the HIT of the HIP device. That is, each time the HAP needs to send data to the HIP device, the HAP binds the HIT and HAP from the host that is responsible for storing the HIT and HAP bindings. The relationship is determined such that steps 711, 712, 713, 714, 715 can be omitted.
4、 HAP也可以根据自身的情况来主动发起 HAP切换,而不依赖于 HIP 设备 IP地址的改变, 例如: 原 HAP负载过重, 需要停止服务等。 此时, 步 驟 702、 703变为 HAP通知 UE切换 HAP。  4. HAP can also initiate HAP switching according to its own situation, without relying on the change of the IP address of the HIP device. For example: The original HAP load is too heavy, and the service needs to be stopped. At this time, steps 702 and 703 become HAP to notify the UE to switch the HAP.
5、 步驟 704中, UE可以在查询 HAP请求中携带当前的 HAP地址, 用于服务器判断 UE是否需要切换 HAP; 服务器也可向 UE返回 HAP的列 表, 可按优先级排序, 供 UE选择 HAP使用。  In step 704, the UE may carry the current HAP address in the query HAP request, and may be used by the server to determine whether the UE needs to switch the HAP. The server may also return a list of HAPs to the UE, which may be sorted according to priority, and the UE selects the HAP to use. .
图 8为本发明实施例二 HIP设备接入点切换的方法,该实施例中, HAP 可根据 UE的 IP地址的变化, 结合自身的存储信息或向服务器获取 UE更 优的 HAP信息来通知 UE做 HAP的切换, 包括以下步驟:  FIG. 8 is a schematic diagram of a method for switching an access point of a HIP device according to an embodiment of the present invention. In this embodiment, the HAP may notify the UE according to the change of the IP address of the UE, the storage information of the UE, or the HAP information of the UE obtained by the server. To do a HAP switch, the following steps are included:
步驟 801 , UE可以通过查询 DNS、静态配置的服务器或 DHCPv6等方 式得到 RTT较小的 HAP地址, UE与该 HAP (称为原 HAP )建立 HIP关 联。 原 HAP存储 UE的 HIT与原 IP地址的绑定关系, 并在 SN节点组成的 对等叠加网中存储 UE的 HIT与原 HAP的绑定关系。  Step 801: The UE obtains a small HAP address of the RTT by querying the DNS, the statically configured server, or the DHCPv6, and the UE establishes an HIP association with the HAP (referred to as the original HAP). The original HAP stores the binding relationship between the HIT of the UE and the original IP address, and stores the binding relationship between the HIT of the UE and the original HAP in the peer-to-peer overlay network formed by the SN node.
步驟 802, UE的 IP地址发生改变。  In step 802, the IP address of the UE changes.
步驟 803 , UE通过 HIP Update消息通知原 HAP ,原 HAP响应 HIP Update 消息 , 并记录 UE的 IP地址的改变。  Step 803: The UE notifies the original HAP by using the HIP Update message, and the original HAP responds to the HIP Update message, and records the change of the IP address of the UE.
步驟 804, 原 HAP根据 UE的新 IP地址及自身存储的信息或从服务器 获取信息来判断 UE是否需要切换 HAP。 例如: 原 HAP根据该新 IP地址, 获取与该新 IP地址之间的 RTT最小的 HAP地址, 并根据负载情况决定是 否需要切换到新 HAP。 Step 804: The original HAP determines whether the UE needs to switch the HAP according to the new IP address of the UE and the information stored by itself or the information obtained from the server. For example: The original HAP is based on the new IP address. Obtain the minimum HTP address of the RTT with the new IP address, and decide whether to switch to the new HAP according to the load.
步驟 805, 如需切换, 原 HAP向选择的新 HAP发送 HAP切换请求, 新 HAP根据自身情况向原 HAP发送 HAP切换应答(是否接受切换)。  Step 805: If the handover is required, the original HAP sends a HAP handover request to the selected new HAP, and the new HAP sends a HAP handover response (whether or not to accept the handover) to the original HAP according to its own situation.
步驟 806, 如新 HAP接受切换, 原 HAP向 UE发送 HAP切换请求, 其中包含新 HAP的 HIT和 IP地址。 例如: 通过扩充的参数 HAP— UPDATE 来描述新 HAP的 HIT和 IP地址。 UE对 HAP切换请求进行应答确认。  Step 806: If the new HAP accepts the handover, the original HAP sends a HAP handover request to the UE, where the HIT and the IP address of the new HAP are included. For example: The HAP and IP address of the new HAP are described by the extended parameter HAP_UPDATE. The UE acknowledges the HAP handover request.
步驟 807, UE与新 HAP建立 HIP关联。 UE后续将使用此连接来发送 数据。 新 HAP可检查其是否緩存了 UE的 HIT与原 HAP的绑定关系, 如 果是, 则删除该绑定关系; 同时, 新 HAP存储 UE的 HIT与新 IP地址的绑 定关系。  Step 807: The UE establishes a HIP association with the new HAP. The UE will use this connection to send data later. The new HAP can check whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
步驟 808, 新 HAP向其连接的 SN、 即新 SN, 发送存储 UE的 HIT与 新 HAP的绑定关系的请求 , 新 SN存储 UE的 HIT与新 HAP的绑定关系。  Step 808: The new HAP sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP.
步驟 809,新 SN根据叠加网路由规则向 UE的数据归属 SN (简称归属 SN )发送存储 UE的 HIT与新 HAP的绑定关系的请求, 则归属 SN存储 UE的 HIT与新 HAP的绑定关系。  Step 809: The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the routing rule of the overlay network, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
步驟 810, UE向原 HAP发送切换通知, 其中包含新 HAP的地址和标 识, 并关闭与原 HAP的 HIP关联。 原 HAP将自身存储的 UE的 HIT与 IP 地址的绑定关系更改为 UE的 HIT与新 HAP (地址和标识 ) 的绑定关系, 且该 UE的 HIT与新 HAP的绑定关系可作为标识用于明确原 HAP的转发 属性。  Step 810: The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIP association with the original HAP is closed. The original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identity), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier. To clarify the forwarding attributes of the original HAP.
在更改绑定关系的同时, 原 HAP可设置转发定时器, 用于在转发定时 器超时后停止向该 UE转发数据, 该转发定时器的时长应略大于原 HAP緩 存 UE的 HIT与新 HAP的绑定关系的定时器时长。  While changing the binding relationship, the original HAP may set a forwarding timer, which is used to stop forwarding data to the UE after the forwarding timer expires. The duration of the forwarding timer should be slightly larger than the HIT of the original HAP cache UE and the new HAP. The timer duration of the binding relationship.
步驟 811 , 原 HAP向连接的原 SN发送删除 UE的 HIT与原 HAP的绑 定关系的请求,则原 SN删除自身保存的 UE的 HIT与原 HAP的绑定关系。 步驟 812, 原 SN根据叠加网路由规则向归属 SN发送删除 UE的 HIT 与原 HAP的绑定关系的请求,则归属 SN删除 UE的 HIT与原 HAP的绑定 关系。 Step 811: The original HAP sends the binding of the HIT of the deleted UE to the original HAP to the connected original SN. The request of the relationship is that the original SN deletes the binding relationship between the HIT of the UE that is saved by itself and the original HAP. Step 812: The original SN sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the home SN according to the routing rule of the overlay network, and the home SN deletes the binding relationship between the HIT of the UE and the original HAP.
步驟 813 , 对端 HAP (即仍然向 UE发送数据的 HAP, 这些 HAP还没 有获知 UE切换到了新 HAP )仍旧向原 HAP发送给该 UE的数据。  Step 813: The peer HAP (that is, the HAP that still sends data to the UE, and the HAPs have not yet learned that the UE has switched to the new HAP) still sends the data to the original HAP to the UE.
步驟 814, 原 HAP收到数据后,根据存储的 UE的 HIT与新 HAP的绑 定关系, 向新 HAP转发数据, 且在 HIP包头中增加参数 SOURCE— HAP, 填写对端 HAP的标识。  Step 814: After receiving the data, the original HAP forwards the data to the new HAP according to the binding relationship between the stored HIT and the new HAP, and adds the parameter SOURCE_HAP to the HIP header to fill in the identifier of the peer HAP.
步驟 815 ,新 HAP根据自身保存的 UE的 HIT与新 IP地址的绑定关系, 向 UE转发数据; 新 HAP 向 UE转发数据时可去除 HIP 包头中的参数 SOURCE— HAP。  Step 815: The new HAP forwards data to the UE according to the binding relationship between the HIT of the UE and the new IP address, and the new HAP can remove the parameter SOURCE_HAP in the HIP header when forwarding the data to the UE.
如果在这段时间内 (即步驟 810 中原 HAP设置的转发定时器超时之 前), UE又切换了 HAP (即从上述新 HAP又切换到了其他的 HAP ), 则新 HAP查找到的应是 UE的 HIT与 HAP (即从新 HAP切换到的其他 HAP ) 的绑定关系 , 在这种情况下, 新 HAP向 UE的 HIT绑定的 HAP转发数据, 那么后续省略步驟 816。  If during this time (ie, before the forwarding timer set by the original HAP in step 810 expires), the UE switches the HAP again (ie, switches from the above new HAP to another HAP), then the new HAP finds the UE. The binding relationship between the HIT and the HAP (ie, other HAPs that are switched from the new HAP). In this case, the new HAP forwards the data to the HAP bound HAP of the UE, and then step 816 is omitted.
新 HAP可以緩存对端 HAP与对端 UE的 HIT的绑定关系, 并设置緩 存定时器, 当设置的该緩存定时器超时, 新 HAP删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系。 此处设置緩存定时器是为了防止该緩存关系 失效, 例如: 新 HAP緩存了对端 HAP与对端 UE的 HIT的绑定关系 , 并 有一段时间没有向 UE发送数据, 而在这段时间内 UE切换了 HAP, 并且 原 HAP也超时停止了向 UE的数据转发,这时再向原 HAP发送数据会失败, 因此, 新 HAP应该在设置的緩存定时器超时后, 删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系, 并重新到 SN节点中获取 UE的绑定关系。 步驟 816,新 HAP根据 HIP包头中的参数 SOURCE— HAP,向对端 HAP 通知 UE切换到了新 HAP。 对端 HAP更新其 UE的 HIT与 HAP绑定关系 的緩存, 即对端 HAP将其緩存的该 UE与原 HAP的绑定关系替换为该 UE 与新 HAP的绑定关系; 并且对端 HAP刷新緩存的定时器, 向新 HAP返回 应答。 则对端 HAP后续发往该 UE的数据会发往新 HAP。 The new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship. The cache timer is set here to prevent the cache relationship from being invalid. For example, the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time. The UE switches the HAP, and the original HAP also stops the data forwarding to the UE. In this case, the data is sent to the original HAP. Therefore, the new HAP should delete the cached peer HAP and the pair after the set buffer timer expires. Binding relationship of the HIT of the UE, and re-entering the binding relationship of the UE to the SN node. Step 816: The new HAP notifies the peer HAP that the UE has switched to the new HAP according to the parameter SOURCE_HAP in the HIP header. The peer HAP updates the cache of the binding between the HIT and the HAP of the UE, that is, the peer HAP replaces the binding relationship between the UE and the original HAP that is cached by the peer HAP with the binding relationship between the UE and the new HAP; The cached timer returns a response to the new HAP. Then, the data sent by the peer HAP to the UE will be sent to the new HAP.
新 HAP收到对端 HAP的应答后, 记录更新成功状态, 其中包含: UE 的 HIT和对端 HAP的标识, 用于不重复向对端 HAP发送 HAP切换通知。 此记录应在 UE切换到其它 HAP时、 UE关闭 HIP关联时、 保活失败或设 置定时器超时时删除。  After receiving the response from the peer HAP, the new HAP records the update success status, including: the HIT of the UE and the identifier of the peer HAP, and is used to send the HAP switch notification to the peer HAP without repeating. This record should be deleted when the UE switches to another HAP, when the UE closes the HIP association, when the keep-alive fails, or when the timer expires.
步驟 817, 原 HAP设置的转发定时器超时, 停止转发 UE的数据, 并 删除存储的 UE的相关信息(包括 UE当前绑定的 HAP信息)。  Step 817: The forwarding timer set by the original HAP expires, and the data of the UE is stopped, and the related information of the stored UE (including the HAP information currently bound by the UE) is deleted.
本实施例也可以有多种变换, 如:  This embodiment can also have various transformations, such as:
1、 HAP与 SN可以合设, 即 HAP组成 DHT叠加网 , 存储 HAP与设 备 HIT的绑定关系;  1. The HAP and the SN can be combined, that is, the HAP forms a DHT overlay network, and the binding relationship between the HAP and the device HIT is stored;
2、 可以不使用 DHT叠加网来存储 HAP与 HIP设备 HIT的绑定关系, 而使用类似 DNS的服务器集群来存储 HAP与 HIP设备 HIT的绑定关系; 2. The DHT overlay network can be used to store the binding relationship between the HAP and the HIP device HIT, and a DNS-like server cluster is used to store the binding relationship between the HAP and the HIP device HIT.
3、 HAP可以不緩存 HAP与 HIP设备 HIT的绑定关系, 即 HAP每次 需要往 HIP设备发送数据时,都从负责存储 HIP设备 HIT与 HAP绑定的主 机处取 HIP设备 HIT与 HAP的绑定关系, 从而步驟 813、 814、 815、 816、 817可以省略; 3. The HAP can not cache the binding relationship between the HAP and the HIT of the HIP device. That is, each time the HAP needs to send data to the HIP device, the HAP binds the HIT and HAP from the host that is responsible for storing the HIT and HAP bindings. The relationship is determined such that steps 813, 814, 815, 816, 817 can be omitted;
4、 HAP也可以根据自身的情况来主动发起 HAP切换,而不依赖于 HIP 设备 IP地址的改变, 例如: 原 HAP负载过重, 需要停止服务等。 此时, 步 驟 801、 802、 803可以省略。  4. HAP can also initiate HAP switching according to its own situation, without relying on the change of the IP address of the HIP device. For example: The original HAP load is too heavy, and the service needs to be stopped. At this time, steps 801, 802, and 803 can be omitted.
图 9示出了本发明的另一个实施例, 该实施例中, 原 HAP从 UE获取 当前 UE正在通讯的对端 UE信息, 并发送 HAP切换通知给对端 UE连接 的 HAP。 本实施例使用图 6所示的 SN节点组成的叠加网来存储 HIP设备 HIT与当前 HAP的绑定关系, 包括以下步驟: FIG. 9 shows another embodiment of the present invention. In this embodiment, the original HAP obtains the information of the peer UE that the current UE is communicating from the UE, and sends a HAP handover notification to the peer UE. HAP. The embodiment uses the overlay network formed by the SN node shown in FIG. 6 to store the binding relationship between the HIP device HIT and the current HAP, and includes the following steps:
步驟 901 , UE需要进行 HAP切换。 其发现新 HAP的方式与图 7、 图 8 所示的实施例相同。  Step 901: The UE needs to perform HAP handover. The way in which the new HAP is found is the same as the embodiment shown in Figs. 7 and 8.
步驟 902, UE与新 HAP建立 HIP关联。 UE后续将使用此连接来发送 数据。 新 HAP检查自身是否緩存了 UE的 HIT与原 HAP的绑定关系, 如 果是, 则删除该绑定关系; 同时, 新 HAP存储 UE的 HIT与新 IP地址的绑 定关系。  Step 902: The UE establishes a HIP association with the new HAP. The UE will use this connection to send data later. The new HAP checks whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
步驟 903 , 新 HAP向其连接的 SN、 即新 SN, 发送存储 UE的 HIT与 新 HAP的绑定关系的请求 , 新 SN存储 UE的 HIT与新 HAP的绑定关系。  Step 903: The new HAP sends a request for storing a binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP.
步驟 904,新 SN根据叠加网路由规则向 UE的数据归属 SN (简称归属 SN )发送存储 UE的 HIT与新 HAP的绑定关系的请求, 则归属 SN存储 UE的 HIT与新 HAP的绑定关系。  Step 904: The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the overlay network routing rule, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
步驟 905, UE向原 HAP发送切换通知, 其中包含新 HAP的地址和标 识, 同时告知与其正在通讯的 UE的 HIT列表, 并关闭 HIP关联。 可扩充 HIP的 Close包,增加参数 HAP— UPDATE来描述新 HAP的 HIT和 IP地址, 增加参数 TARGET— LIST来描述与 UE正在通讯的对端 UE的 HIT列表。原 HAP将自身存储的 UE的 HIT与 IP地址的绑定关系更改为 UE的 HIT与新 HAP (地址和标识 )的绑定关系, 且该 UE的 HIT与新 HAP的绑定关系可 作为标识用于明确原 HAP的转发属性。  Step 905: The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIT list of the UE that is communicating with the UE is notified, and the HIP association is closed. The HIP Close packet can be extended, the parameter HAP_UPDATE is added to describe the HIT and IP address of the new HAP, and the parameter TARGET_LIST is added to describe the HIT list of the peer UE that is communicating with the UE. The original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identifier), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier. To clarify the forwarding attributes of the original HAP.
在更改绑定关系的同时, 原 HAP可设置转发定时器, 用于在转发定时 器超时后停止向该 UE转发数据, 该转发定时器的时长应略大于原 HAP緩 存 UE的 HIT与新 HAP的绑定关系的定时器时长。  While changing the binding relationship, the original HAP may set a forwarding timer, which is used to stop forwarding data to the UE after the forwarding timer expires. The duration of the forwarding timer should be slightly larger than the HIT of the original HAP cache UE and the new HAP. The timer duration of the binding relationship.
步驟 906, 原 HAP向连接的原 SN发送删除 UE的 HIT与原 HAP的绑 定关系的请求,则原 SN删除自身保存的 UE的 HIT与原 HAP的绑定关系。 步驟 907, 原 SN根据叠加网路由规则向归属 SN发送删除 UE的 HIT 与原 HAP的绑定关系的请求,则归属 SN删除 UE的 HIT与原 HAP的绑定 关系。 Step 906: The original HAP sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the original SN, and the original SN deletes the binding relationship between the HIT of the UE and the original HAP. Step 907: The original SN sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the home SN according to the routing rule of the overlay network, and the home SN deletes the binding relationship between the HIT of the UE and the original HAP.
步驟 908, 原 HAP根据与 UE通讯的对端 UE的 HIT列表, 查询自身 緩存的 UE的 HIT与 HAP的绑定关系,或从 SN节点组成的叠加网获取 UE 的 HIT与 HAP的绑定关系, 向对端 HAP发送 HAP切换消息, 消息中包含 UE的 HIT与新 HAP的标识。 对端 HAP更新其 UE的 HIT与 HAP绑定的 緩存为 UE的 HIT与新 HAP绑定, 可刷新緩存的定时器, 其后续发往 UE 的数据会发往新 HAP。  Step 908: The original HAP queries the binding relationship between the HIT and the HAP of the UE that is cached by the HeNB according to the HIT list of the UE that is in communication with the UE, or obtains the binding relationship between the HIT and the HAP of the UE from the overlay network formed by the SN node. Sending a HAP handover message to the peer HAP, where the message includes the identifier of the HIT and the new HAP of the UE. The peer HAP updates the HIT and HAP binding of the UE to the UE. The HIT is bound to the new HAP, and the cached timer can be refreshed. The subsequent data sent to the UE is sent to the new HAP.
步驟 909, 对端 HAP (即仍然向 UE发送数据的 HAP )仍旧向原 HAP 发送给该 UE的数据。  Step 909: The peer HAP (that is, the HAP that still sends data to the UE) still sends data to the original HAP to the UE.
步驟 910, 原 HAP收到数据后,根据存储的 UE的 HIT与新 HAP的绑 定关系, 向新 HAP转发数据。  Step 910: After receiving the data, the original HAP forwards the data to the new HAP according to the binding relationship between the stored HIT of the UE and the new HAP.
步驟 911 ,新 HAP根据自身保存的 UE的 HIT与新 IP地址的绑定关系, 向 UE转发数据。  Step 911: The new HAP forwards data to the UE according to the binding relationship between the HIT of the UE and the new IP address.
新 HAP可以緩存对端 HAP与对端 UE的 HIT的绑定关系, 并设置緩 存定时器, 当设置的该緩存定时器超时, 新 HAP删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系。 此处设置緩存定时器是为了防止该緩存关系 失效, 例如: 新 HAP緩存了对端 HAP与对端 UE的 HIT的绑定关系 , 并 有一段时间没有向 UE发送数据, 而在这段时间内 UE切换了 HAP, 并且 原 HAP也超时停止了向 UE的数据转发,这时再向原 HAP发送数据会失败, 因此, 新 HAP应该在设置的緩存定时器超时后, 删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系, 并重新到 SN节点中获取 UE的绑定关系。  The new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship. The cache timer is set here to prevent the cache relationship from being invalid. For example, the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time. The UE switches the HAP, and the original HAP also stops the data forwarding to the UE. In this case, the data is sent to the original HAP. Therefore, the new HAP should delete the cached peer HAP and the pair after the set buffer timer expires. Binding relationship of the HIT of the UE, and re-entering the binding relationship of the UE to the SN node.
步驟 912, 原 HAP设置的转发定时器超时, 停止转发 UE的数据, 并 删除存储的 UE的相关信息 (包括 UE当前绑定的 HAP信息)。 本实施例也可以有多种变换, 如: Step 912: The forwarding timer set by the original HAP times out, stops forwarding the data of the UE, and deletes the related information of the stored UE (including the HAP information currently bound by the UE). This embodiment can also have various transformations, such as:
可以由新 HAP获取 UE正在通讯的对端 UE的 HIT列表, 由新 HAP 发送 HAP切换通知给对端 HAP; 对端 UE的 HIT与对端 HAP绑定的关系 可向原 HAP获取, 也可以从 SN节点组成的叠加网获取。  The HIT list of the peer UE that the UE is communicating with may be obtained by the new HAP, and the HAP handover notification is sent by the new HAP to the peer HAP. The relationship between the HIT of the peer UE and the peer HAP may be obtained from the original HAP, or may be obtained from the SN. The overlay network composed of nodes is obtained.
图 10是本发明的另一种 HIP设备 HAP切换的实施例, HAP切换后, 如果原 HAP收到其它 HAP发送的发往 HIP设备的数据,原 HAP转发数据, 并通知对端 HAP所述 HIP设备已经切换 HAP。 包括以下步驟:  10 is another embodiment of the HAP handover of the HIP device of the present invention. After the HAP is switched, if the original HAP receives the data sent by the other HAP to the HIP device, the original HAP forwards the data, and notifies the peer HAP of the HIP. The device has switched HAP. Includes the following steps:
步驟 1001 , UE需要进行 HAP切换。 其发现新 HAP的方式与图 7、 图 8所示的实施例相同。  Step 1001: The UE needs to perform HAP handover. The way in which the new HAP is found is the same as in the embodiment shown in Figs.
步驟 1002, UE与新 HAP建立 HIP关联。 UE后续将使用此连接来发 送数据。 新 HAP检查自身是否緩存了 UE的 HIT与原 HAP的绑定关系, 如果是, 则删除该绑定关系; 同时, 新 HAP存储 UE的 HIT与新 IP地址的 绑定关系。  Step 1002: The UE establishes a HIP association with the new HAP. The UE will subsequently use this connection to send data. The new HAP checks whether the binding relationship between the HIT of the UE and the original HAP is cached. If yes, the binding relationship is deleted. At the same time, the new HAP stores the binding relationship between the HIT of the UE and the new IP address.
步驟 1003 , 新 HAP向其连接的 SN、 即新 SN, 发送存储 UE的 HIT与 新 HAP的绑定关系的请求 , 新 SN存储 UE的 HIT与新 HAP的绑定关系。  Step 1003: The new HAP sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the SN, that is, the new SN, and the new SN stores the binding relationship between the HIT of the UE and the new HAP.
步驟 1004, 新 SN根据叠加网路由规则向 UE的数据归属 SN (简称归 属 SN )发送存储 UE的 HIT与新 HAP的绑定关系的请求, 则归属 SN存储 UE的 HIT与新 HAP的绑定关系。  Step 1004: The new SN sends a request for storing the binding relationship between the HIT of the UE and the new HAP to the data home SN (referred to as the home SN) of the UE according to the overlay network routing rule, and the home SN stores the binding relationship between the HIT of the UE and the new HAP. .
步驟 1005 , UE向原 HAP发送切换通知,其中包含新 HAP的地址和标 识, 同时告知与其正在通讯的 UE的 HIT列表, 并关闭 HIP关联。 可扩充 HIP的 Close包,增加参数 HAP— UPDATE来描述新 HAP的 HIT和 IP地址。 原 HAP将自身存储的 UE的 HIT与 IP地址的绑定关系更改为 UE的 HIT 与新 HAP (地址和标识 )的绑定关系, 且该 UE的 HIT与新 HAP的绑定关 系可作为标识用于明确原 HAP的转发属性。  Step 1005: The UE sends a handover notification to the original HAP, where the address and the identifier of the new HAP are included, and the HIT list of the UE that is communicating with it is notified, and the HIP association is closed. The HIP Close package can be extended, and the parameter HAP_UPDATE is added to describe the HIT and IP address of the new HAP. The original HAP changes the binding relationship between the HIT and the IP address of the UE that is stored in the UE to the binding relationship between the HIT of the UE and the new HAP (address and identity), and the binding relationship between the HIT of the UE and the new HAP can be used as the identifier. To clarify the forwarding attributes of the original HAP.
在更改绑定关系的同时, 原 HAP可设置转发定时器, 用于在转发定时 器超时后停止向该 UE转发数据, 该转发定时器的时长应略大于原 HAP緩 存 UE的 HIT与新 HAP的绑定关系的定时器时长。 While changing the binding relationship, the original HAP can set a forwarding timer for forwarding timing. After the timeout expires, the data is not forwarded to the UE. The duration of the forwarding timer should be slightly longer than the timer duration of the binding between the HIT of the original HAP cache UE and the new HAP.
步驟 1006, 原 HAP向连接的原 SN发送删除 UE的 HIT与原 HAP的 绑定关系的请求, 则原 SN删除自身保存的 UE的 HIT与原 HAP的绑定关 系。  Step 1006: The original HAP sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the original SN, and the original SN deletes the binding relationship between the HIT of the UE and the original HAP.
步驟 1007, 原 SN根据叠加网路由规则向归属 SN发送删除 UE的 HIT 与原 HAP的绑定关系的请求,则归属 SN删除 UE的 HIT与原 HAP的绑定 关系。  Step 1007: The original SN sends a request to delete the binding relationship between the HIT of the UE and the original HAP to the home SN according to the routing rule of the overlay network, and the home SN deletes the binding relationship between the HIT of the UE and the original HAP.
步驟 1008, 对端 HAP (即仍然向 UE发送数据的 HAP )仍旧向原 HAP 发送给该 UE的数据。  Step 1008: The peer HAP (that is, the HAP that still sends data to the UE) still sends data to the original HAP to the UE.
步驟 1009, 原 HAP收到数据后, 根据 UE的 HIT与新 HAP的绑定关 系 ,通知对端 HAP, UE的 HAP切换的信息,其中包含 UE的 HIT与新 HAP 标识。对端 HAP收到 UE的 HAP切换信息后, 更新緩存的 UE的 HIT与原 HAP的绑定为 UE的 HIT与新 HAP的绑定, 不更新緩存定时器, 其后续发 往 UE的数据会发往新 HAP。  Step 1009: After receiving the data, the original HAP notifies the peer HAP and the HAP handover information of the UE according to the binding relationship between the HIT of the UE and the new HAP, including the HIT and the new HAP identifier of the UE. After receiving the HAP handover information of the UE, the peer HAP updates the binding between the HIT of the cached UE and the original HAP to be the binding between the HIT of the UE and the new HAP, and does not update the cache timer, and the subsequent data sent to the UE is sent. Go to the new HAP.
步驟 1010, 原 HAP根据 UE的 HIT与新 HAP的绑定关系, 向新 HAP 转发数据。  Step 1010: The original HAP forwards data to the new HAP according to the binding relationship between the HIT of the UE and the new HAP.
步驟 1011 , 新 HAP根据自身保存的 UE的 HIT与新 IP地址的绑定关 系, 向 UE转发数据。  Step 1011: The new HAP forwards data to the UE according to the binding relationship between the HIT of the UE and the new IP address.
新 HAP可以緩存对端 HAP与对端 UE的 HIT的绑定关系, 并设置緩 存定时器, 当设置的该緩存定时器超时, 新 HAP删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系。 此处设置緩存定时器是为了防止该緩存关系 失效, 例如: 新 HAP緩存了对端 HAP与对端 UE的 HIT的绑定关系 , 并 有一段时间没有向 UE发送数据, 而在这段时间内 UE切换了 HAP, 并且 原 HAP也超时停止了向 UE的数据转发,这时再向原 HAP发送数据会失败, 因此, 新 HAP应该在设置的緩存定时器超时后, 删除緩存的对端 HAP与 对端 UE的 HIT的绑定关系, 并重新到 SN节点中获取 UE的绑定关系。 The new HAP can cache the binding relationship between the peer HAP and the HIT of the peer UE, and set a cache timer. When the set cache timer expires, the new HAP deletes the binding of the cached peer HAP to the peer UE's HIT. relationship. The cache timer is set here to prevent the cache relationship from being invalid. For example, the new HAP caches the binding relationship between the peer HAP and the HIT of the peer UE, and does not send data to the UE for a period of time. The UE switches the HAP, and the original HAP also stops the data forwarding to the UE, and then sending data to the original HAP fails. Therefore, the new HAP should delete the binding relationship between the cached peer HAP and the HIT of the peer UE after the set buffer timer expires, and re-enter the binding relationship of the UE to the SN node.
步驟 1012, 原 HAP设置的转发定时器超时, 停止转发 UE的数据, 并 删除存储的 UE的相关信息 (包括 UE当前绑定的 HAP信息)。  Step 1012: The forwarding timer set by the original HAP times out, stops forwarding the data of the UE, and deletes the related information of the stored UE (including the HAP information currently bound by the UE).
本实施例可以有多种变换, 如:  This embodiment can have multiple transformations, such as:
步驟 1009, 原 HAP收到数据后, 根据 UE的 HIT与新 HAP的绑定关 系, 通知对端 HAP, UE的 HAP切换, 其中不包含 UE的 HIT与新 HAP 标识。对端 HAP收到 UE的 HAP切换通知后,删除緩存的 UE的 HIT与原 HAP的绑定关系, 在下次往 UE发送数据时从 SN节点组成的叠加网获取 UE当前关联的 HAP。  Step 1009: After receiving the data, the original HAP notifies the peer HAP and the HAP handover of the UE according to the binding relationship between the HIT of the UE and the new HAP, and does not include the HIT and the new HAP identifier of the UE. After receiving the HAP handover notification from the UE, the peer HAP deletes the binding relationship between the HIT of the cached UE and the original HAP, and obtains the HAP currently associated with the UE from the overlay network formed by the SN node when the data is sent to the UE next time.
由以上的实施例可以看出, 本发明的技术方案都是基于以下的 HAP切 换方法:  As can be seen from the above embodiments, the technical solutions of the present invention are based on the following HAP switching methods:
当 HIP设备的 IP地址发生改变后, 该 HIP设备根据获取的 RTT较小 的 HAP信息决定是否切换 HAP, 或者该 HIP设备的原 HAP根据获取的与 该 HIP设备之间的 RTT较小的 HAP信息决定该 HIP设备是否执行 HAP切 换;  After the IP address of the HIP device is changed, the HIP device determines whether to switch the HAP according to the obtained HAP information of the smaller RTT, or the original HAP of the HIP device is based on the obtained HAP information with less RTT between the HIP device and the HIP device. Determining whether the HIP device performs HAP switching;
在决定执行 HAP切换时, 该 HIP设备与新 HAP建立 HIP关联, 并关 闭与原 HAP的关联; 且原 HAP向新 HAP转发发往该 HIP设备的数据。  When the HAP switch is determined, the HIP device establishes a HIP association with the new HAP and closes the association with the original HAP. The original HAP forwards the data sent to the HIP device to the new HAP.
进一步的 , 所述 HIP设备与新 HAP建立 HIP关联时 , 所述新 HAP检 查自身是否緩存了所述 HIP设备与原 HAP的绑定关系, 如果是, 则删除所 述绑定关系; 且所述新 HAP存储所述 HIP设备与其新 IP地址的绑定关系。  Further, when the HIP device establishes a HIP association with the new HAP, the new HAP checks whether the binding relationship between the HIP device and the original HAP is cached, and if yes, deletes the binding relationship; The new HAP stores the binding relationship between the HIP device and its new IP address.
进一步的,在所述 HIP设备与新 HAP建立 HIP关联后,所述 HIP设备 向原 HAP发送切换通知, 其中包括新 HAP信息; 所述原 HAP将自身存储 的所述 HIP设备的 HIT与 IP地址的绑定关系,更改为所述 HIP设备的 HIT 与新 HAP的绑定关系。所述原 HAP向新 HAP转发发往所述 HIP设备的数 据, 具体为: Further, after the HIP device establishes a HIP association with the new HAP, the HIP device sends a handover notification to the original HAP, including the new HAP information. The original HAP stores the HIT and IP address of the HIP device. The binding relationship is changed to the binding relationship between the HIT of the HIP device and the new HAP. The original HAP forwards the number sent to the HIP device to the new HAP According to, specifically:
所述原 HAP接收到所述 HIP设备的对端发送给所述 HIP设备的数据 后,根据存储的所述 HIP设备的 HIT与新 HAP的绑定关系,向所述新 HAP 转发数据, 并在转发的数据中携带对端 HAP信息;  After receiving the data sent by the peer end of the HIP device to the HIP device, the original HAP forwards data to the new HAP according to the stored binding relationship between the HIT of the HIP device and the new HAP, and The forwarded data carries the peer HAP information.
所述新 HAP根据自身保存的 HIP设备的 HIT与新 IP地址的绑定关系, 向所述 HIP设备转发数据。  The new HAP forwards data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address.
进一步的, 所述新 HAP根据所述对端 HAP信息, 向所述对端 HAP通 知 HIP设备切换到了新 HAP; 所述对端 HAP将自身存储的所述 HIP设备 与原 HAP的绑定关系替换为所述 HIP设备与新 HAP的绑定关系, 并向所 述新 HAP返回应答; 所述新 HAP记录所述对端 HAP的更新成功状态, 其 中包含所述 HIP设备和对端 HAP信息。  Further, the new HAP notifies the peer HAP that the HIP device has switched to the new HAP according to the peer HAP information; the peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP. A binding relationship between the HIP device and the new HAP, and returning a response to the new HAP; the new HAP records an update success status of the peer HAP, where the HIP device and the peer HAP information are included.
进一步的, 所述 HIP设备向原 HAP发送的切换通知中还可以包括: 与 所述 HIP设备正在通讯的对端 HIP设备的 HIT列表; 信息, 并向所述对端 HAP通知 HIP设备切换到了新 HAP; 所述对端 HAP 将自身存储的所述 HIP设备与原 HAP的绑定关系替换为所述 HIP设备与新 HAP的绑定关系 , 并向所述新 HAP返回应答; 所述新 HAP记录所述对端 HAP的更新成功状态, 其中包含所述 HIP设备和对端 HAP信息。  Further, the handover notification sent by the HIP device to the original HAP may further include: an HIT list of the peer HIP device that is communicating with the HIP device; information, and notifying the peer HAP that the HIP device is switched to the new HAP The peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored in the peer end with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP; the new HAP record office The update success status of the peer HAP includes the HIP device and the peer HAP information.
对应上述 HAP切换的方法, 本发明还提供了一种 HAP切换的系统, 包括: HIP设备, 以及所述 HIP设备的原 HAP和新 HAP。 其中,  Corresponding to the foregoing method for HAP handover, the present invention further provides a system for HAP handover, including: a HIP device, and an original HAP and a new HAP of the HIP device. among them,
当所述 HIP设备的 IP地址发生改变后,所述 HIP设备用于根据获取的 RTT较小的 HAP信息决定是否切换 HAP, 或者所述原 HAP根据获取的与 所述 HIP设备之间的 RTT较'〗、的 HAP信息决定所述 HIP设备是否执行 HAP 切换;  After the IP address of the HIP device is changed, the HIP device is configured to determine whether to switch the HAP according to the obtained HAP information with a smaller RTT, or the original HAP is compared according to the obtained RTT between the HIP device and the HIP device. '', the HAP information determines whether the HIP device performs HAP handover;
所述 HIP设备还用于, 在执行 HAP切换时, 与新 HAP建立 HIP关联, 并关闭与所述原 HAP的关联; The HIP device is further configured to establish a HIP association with the new HAP when performing the HAP handover. And closing the association with the original HAP;
所述原 HAP还用于, 向新 HAP转发发往所述 HIP设备的数据; 所述新 HAP用于, 将所述原 HAP转发的数据发往所述 HIP设备。 进一步的, 新 HAP还可用于, 在与所述 HIP设备建立 HIP关联时, 检 查自身是否緩存了所述 HIP设备与原 HAP的绑定关系, 如果是, 则删除所 述绑定关系; 且所述新 HAP存储所述 HIP设备与其新 IP地址的绑定关系。  The original HAP is further configured to forward the data sent to the HIP device to the new HAP, where the new HAP is used to send the data forwarded by the original HAP to the HIP device. Further, the new HAP is further configured to: when establishing a HIP association with the HIP device, check whether the binding relationship between the HIP device and the original HAP is cached, and if yes, delete the binding relationship; The new HAP stores the binding relationship between the HIP device and its new IP address.
进一步的, 所述 HIP设备还可用于, 在与新 HAP建立 HIP关联后, 向 原 HAP发送切换通知, 其中包括新 HAP信息; 相应的, 所述原 HAP还可 用于, 将自身存储的所述 HIP设备的 HIT与 IP地址的绑定关系, 更改为所 述 HIP设备的 HIT与新 HAP的绑定关系。  Further, the HIP device may be further configured to: after establishing a HIP association with the new HAP, send a handover notification to the original HAP, where the new HAP information is included; and correspondingly, the original HAP may be used to: store the HIP by itself. The binding relationship between the HIT and the IP address of the device is changed to the binding relationship between the HIT of the HIP device and the new HAP.
进一步的, 所述原 HAP还可用于, 在接收到所述 HIP设备的对端发送 给所述 HIP设备的数据后,根据存储的所述 HIP设备的 HIT与新 HAP的绑 定关系, 向所述新 HAP转发数据, 并在转发的数据中携带对端 HAP信息; 相应的, 所述新 HAP还可用于, 根据自身保存的 HIP设备的 HIT与新 IP 地址的绑定关系, 向所述 HIP设备转发数据。  Further, the original HAP may be further configured to: after receiving the data sent by the peer end of the HIP device to the HIP device, according to the stored binding relationship between the HIT of the HIP device and the new HAP, The new HAP forwards the data, and carries the peer HAP information in the forwarded data. Correspondingly, the new HAP is further configured to: according to the binding relationship between the HIT of the HIP device saved by the HIP device and the new IP address, to the HIP The device forwards the data.
进一步的, 所述新 HAP还可用于, 根据所述对端 HAP信息, 向所述 对端 HAP通知 HIP设备切换到了新 HAP; 接收所述对端 HAP将自身存储 的所述 HIP设备与原 HAP的绑定关系替换为所述 HIP设备与新 HAP的绑 定关系后返回的应答; 记录所述对端 HAP的更新成功状态, 其中包含所述 HIP设备和对端 HAP信息。  Further, the new HAP may be further configured to notify the peer HAP that the HIP device is handed over to the new HAP according to the peer HAP information, and receive the HIP device and the original HAP that the peer HAP stores by itself. The binding relationship is replaced by the response returned by the binding relationship between the HIP device and the new HAP. The update success status of the peer HAP is recorded, where the HIP device and the peer HAP information are included.
进一步的, 所述 HIP设备向原 HAP发送的切换通知中还可包括: 与所 述 HIP设备正在通讯的对端 HIP设备的 HIT列表;  Further, the handover notification sent by the HIP device to the original HAP may further include: an HIT list of the peer HIP device that is communicating with the HIP device;
那么相应的,所述原 HAP还可用于,获取所述 HIT列表中的 HIT对应 的对端 HAP信息, 并向所述对端 HAP通知 HIP设备切换到了新 HAP; 接 收所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系替换为 所述 HIP设备与新 HAP的绑定关系后返回的应答; 记录所述对端 HAP的 更新成功状态, 其中包含所述 HIP设备和对端 HAP信息。 Correspondingly, the original HAP may be used to obtain the peer HAP information corresponding to the HIT in the HIT list, and notify the peer HAP that the HIP device has switched to the new HAP; receiving the peer HAP will itself The stored binding relationship between the HIP device and the original HAP is replaced by The response returned by the binding relationship between the HIP device and the new HAP; the update success status of the peer HAP is recorded, where the HIP device and the peer HAP information are included.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种主机标识协议设备接入点 (HAP )切换的方法, 其特征在于, 该方法包括:  A method for switching a host identity protocol device access point (HAP), the method comprising:
当主机标识协议 ( HIP )设备的 IP地址发生改变后, 所述 HIP设备根 据获取的包来回时间 (RTT )较小的 HAP信息决定是否切换 HAP, 或者所 述 HIP设备的原 HAP根据获取的与所述 HIP设备之间的 RTT较小的 HAP 信息决定所述 HIP设备是否执行 HAP切换;  After the IP address of the HIP device is changed, the HIP device determines whether to switch the HAP according to the obtained HAP information with a smaller packet round-trip time (RTT), or the original HAP of the HIP device is obtained according to the obtained The HTP information of the RTT between the HIP devices determines whether the HIP device performs HAP switching.
在决定执行 HAP切换时, 所述 HIP设备与新 HAP建立 HIP关联, 并 关闭与所述原 HAP的关联; 且所述原 HAP向新 HAP转发发往所述 HIP设 备的数据。  When the HAP handover is determined, the HIP device establishes a HIP association with the new HAP and closes the association with the original HAP; and the original HAP forwards the data sent to the HIP device to the new HAP.
2、 根据权利要求 1所述 HAP切换的方法, 其特征在于, 该方法进一 步包括:  2. The method of HAP handover according to claim 1, wherein the method further comprises:
所述 HIP设备与新 HAP建立 HIP关联时 , 所述新 HAP检查自身是否 緩存了所述 HIP设备与原 HAP的绑定关系,如果是,则删除所述绑定关系; 且所述新 HAP存储所述 HIP设备与其新 IP地址的绑定关系。  When the HIP device establishes a HIP association with the new HAP, the new HAP checks whether the binding relationship between the HIP device and the original HAP is cached, and if yes, deletes the binding relationship; and the new HAP storage Binding relationship between the HIP device and its new IP address.
3、 根据权利要求 1或 2所述 HAP切换的方法, 其特征在于, 该方法 进一步包括:  The method of HAP handover according to claim 1 or 2, wherein the method further comprises:
在所述 HIP设备与新 HAP建立 HIP关联后, 所述 HIP设备向原 HAP 发送切换通知, 其中包括新 HAP信息;  After the HIP device establishes a HIP association with the new HAP, the HIP device sends a handover notification to the original HAP, including new HAP information.
所述原 HAP将自身存储的所述 HIP设备的主机标识标签( HIT )与 IP 地址的绑定关系, 更改为所述 HIP设备的 HIT与新 HAP的绑定关系。  The original HAP changes the binding relationship between the HIT and the IP address of the HIP device stored in the original HAP to the binding relationship between the HIT of the HIP device and the new HAP.
4、 根据权利要求 3所述 HAP切换的方法, 其特征在于, 所述原 HAP 向新 HAP转发发往所述 HIP设备的数据, 具体为:  The method for the HAP handover according to claim 3, wherein the original HAP forwards the data sent to the HIP device to the new HAP, specifically:
所述原 HAP接收到所述 HIP设备的对端发送给所述 HIP设备的数据 后,根据存储的所述 HIP设备的 HIT与新 HAP的绑定关系,向所述新 HAP 转发数据, 并在转发的数据中携带对端 ΗΑΡ信息; After the original HAP receives the data sent by the peer end of the HIP device to the HIP device, according to the stored binding relationship between the HIT of the HIP device and the new HAP, the new HAP is sent to the new HAP. Forwarding data, and carrying the peer information in the forwarded data;
所述新 ΗΑΡ根据自身保存的 HIP设备的 HIT与新 IP地址的绑定关系, 向所述 HIP设备转发数据。  The new device forwards data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address.
5、 根据权利要求 4所述 HAP切换的方法, 其特征在于, 该方法进一 步包括:  5. The method of HAP handover according to claim 4, wherein the method further comprises:
所述新 HAP根据所述对端 HAP信息,向所述对端 HAP通知 HIP设备 切换到了新 HAP;  The new HAP notifies the peer HAP that the HIP device has switched to the new HAP according to the peer HAP information;
所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系替换 为所述 HIP设备与新 HAP的绑定关系, 并向所述新 HAP返回应答;  The peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP.
所述新 HAP记录所述对端 HAP的更新成功状态, 其中包含所述 HIP 设备和对端 HAP信息。  The new HAP records the update success status of the peer HAP, where the HIP device and the peer HAP information are included.
6、 根据权利要求 3所述 HAP切换的方法, 其特征在于, 该方法进一 步包括:  6. The method of HAP handover according to claim 3, wherein the method further comprises:
所述 HIP设备向原 HAP发送的切换通知中还包括:与所述 HIP设备正 在通讯的对端 HIP设备的 HIT列表;  The handover notification sent by the HIP device to the original HAP further includes: an HIT list of the peer HIP device that is communicating with the HIP device;
相应的, 所述原 HAP获取所述 HIT列表中的 HIT对应的对端 HAP信 息, 并向所述对端 HAP通知 HIP设备切换到了新 HAP;  Correspondingly, the original HAP obtains the peer HAP information corresponding to the HIT in the HIT list, and notifies the peer HAP that the HIP device has switched to the new HAP;
所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系替换 为所述 HIP设备与新 HAP的绑定关系, 并向所述新 HAP返回应答;  The peer HAP replaces the binding relationship between the HIP device and the original HAP that is stored by the peer HAP with the binding relationship between the HIP device and the new HAP, and returns a response to the new HAP.
所述新 HAP记录所述对端 HAP的更新成功状态, 其中包含所述 HIP 设备和对端 HAP信息。  The new HAP records the update success status of the peer HAP, where the HIP device and the peer HAP information are included.
7、 一种 HAP切换的系统, 其特征在于, 该系统包括: HIP设备, 以 及所述 HIP设备的原 HAP和新 HAP; 其中,  A system for HAP switching, the system comprising: a HIP device, and an original HAP and a new HAP of the HIP device;
当所述 HIP设备的 IP地址发生改变后,所述 HIP设备用于根据获取的 RTT较小的 HAP信息决定是否切换 HAP, 或者所述原 HAP根据获取的与 所述 HIP设备之间的 RTT较'〗、的 HAP信息决定所述 HIP设备是否执行 HAP 切换; After the IP address of the HIP device is changed, the HIP device is configured to determine whether to switch the HAP according to the obtained HAP information with a smaller RTT, or the original HAP is obtained according to the acquired The HTP information of the RTT between the HIP devices determines whether the HIP device performs HAP switching.
所述 HIP设备还用于,在执行 HAP切换时, 与新 HAP建立 HIP关联, 并关闭与所述原 HAP的关联;  The HIP device is further configured to: when performing a HAP handover, establish a HIP association with the new HAP, and close the association with the original HAP;
所述原 HAP还用于, 向新 HAP转发发往所述 HIP设备的数据; 所述新 HAP用于, 将所述原 HAP转发的数据发往所述 HIP设备。  The original HAP is further configured to forward the data sent to the HIP device to the new HAP, where the new HAP is used to send the data forwarded by the original HAP to the HIP device.
8、 根据权利要求 7所述 HAP切换的系统, 其特征在于, 所述新 HAP 进一步用于, 在与所述 HIP设备建立 HIP关联时, 检查自身是否緩存了所 述 HIP设备与原 HAP的绑定关系, 如果是, 则删除所述绑定关系; 且所述 新 HAP存储所述 HIP设备与其新 IP地址的绑定关系。  The HAP switching system according to claim 7, wherein the new HAP is further configured to: when establishing a HIP association with the HIP device, check whether the HIP device is cached with the original HAP. Determining the relationship, if yes, deleting the binding relationship; and the new HAP stores a binding relationship between the HIP device and its new IP address.
9、 根据权利要求 7或 8所述 HAP切换的系统, 其特征在于, 所述 HIP设备进一步用于, 在与新 HAP建立 HIP关联后, 向原 HAP 发送切换通知, 其中包括新 HAP信息;  The HAP switching system according to claim 7 or 8, wherein the HIP device is further configured to: after establishing a HIP association with the new HAP, send a handover notification to the original HAP, including new HAP information;
相应的, 所述原 HAP进一步用于, 将自身存储的所述 HIP设备的 HIT 与 IP地址的绑定关系,更改为所述 HIP设备的 HIT与新 HAP的绑定关系。  Correspondingly, the original HAP is further configured to change the binding relationship between the HIT and the IP address of the HIP device that is stored by the original HAP to the binding relationship between the HIT of the HIP device and the new HAP.
10、 根据权利要求 9所述 HAP切换的系统, 其特征在于,  10. The HAP switching system according to claim 9, wherein:
所述原 HAP进一步用于, 在接收到所述 HIP设备的对端发送给所述 HIP设备的数据后,根据存储的所述 HIP设备的 HIT与新 HAP的绑定关系, 向所述新 HAP转发数据, 并在转发的数据中携带对端 HAP信息;  The original HAP is further configured to: after receiving the data sent by the peer end of the HIP device to the HIP device, according to the stored binding relationship between the HIT of the HIP device and the new HAP, to the new HAP Forwarding data, and carrying the peer HAP information in the forwarded data;
相应的,所述新 HAP进一步用于,根据自身保存的 HIP设备的 HIT与 新 IP地址的绑定关系, 向所述 HIP设备转发数据。  Correspondingly, the new HAP is further configured to forward data to the HIP device according to the binding relationship between the HIT of the HIP device and the new IP address saved by the HIP device.
11、 根据权利要求 10所述 HAP切换的系统, 其特征在于,  11. The HAP switching system according to claim 10, wherein:
所述新 HAP进一步用于, 根据所述对端 HAP信息, 向所述对端 HAP 通知 HIP设备切换到了新 HAP;  The new HAP is further configured to notify the peer HAP that the HIP device is switched to the new HAP according to the peer HAP information;
接收所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系 替换为所述 HIP设备与新 HAP的绑定关系后返回的应答; 记录所述对端 HAP的更新成功状态, 其中包含所述 HIP设备和对端 HAP信息。 Receiving the binding relationship between the HIP device stored by the peer HAP and the original HAP And a response that is returned after the binding relationship between the HIP device and the new HAP is replaced. The update success status of the peer HAP is recorded, where the HIP device and the peer HAP information are included.
12、 根据权利要求 9所述 HAP切换的系统, 其特征在于,  12. The HAP switching system according to claim 9, wherein:
所述 HIP设备向原 HAP发送的切换通知中还包括:与所述 HIP设备正 在通讯的对端 HIP设备的 HIT列表;  The handover notification sent by the HIP device to the original HAP further includes: an HIT list of the peer HIP device that is communicating with the HIP device;
相应的,所述原 HAP进一步用于,获取所述 HIT列表中的 HIT对应的 对端 HAP信息, 并向所述对端 HAP通知 HIP设备切换到了新 HAP;  Correspondingly, the original HAP is further configured to: obtain the peer HAP information corresponding to the HIT in the HIT list, and notify the peer HAP that the HIP device is switched to the new HAP;
接收所述对端 HAP将自身存储的所述 HIP设备与原 HAP的绑定关系 替换为所述 HIP设备与新 HAP 的绑定关系后返回的应答; 记录所述对端 HAP的更新成功状态, 其中包含所述 HIP设备和对端 HAP信息。  Receiving, by the peer HAP, the binding relationship between the HIP device and the original HAP that is stored by the peer HAP is replaced by the response returned by the HIP device and the new HAP; and the update success status of the peer HAP is recorded. The HIP device and the peer HAP information are included.
PCT/CN2011/081275 2010-11-02 2011-10-25 Hap handoff method and system WO2012059010A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010530226.4 2010-11-02
CN201010530226.4A CN102457510B (en) 2010-11-02 2010-11-02 The method and system that a kind of HAP switches

Publications (1)

Publication Number Publication Date
WO2012059010A1 true WO2012059010A1 (en) 2012-05-10

Family

ID=46024013

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081275 WO2012059010A1 (en) 2010-11-02 2011-10-25 Hap handoff method and system

Country Status (2)

Country Link
CN (1) CN102457510B (en)
WO (1) WO2012059010A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309937B (en) * 2017-07-26 2020-07-07 华为技术有限公司 Method for switching access point, controller, network equipment and storage medium
CN109302328B (en) * 2018-12-18 2021-11-16 锐捷网络股份有限公司 Hot standby switching method and system for VXLAN (virtual extensible local area network)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369924A (en) * 2008-09-26 2009-02-18 清华大学 Mobile management method used for mobile IP network
CN101499942A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, system and apparatus for seamless switching
CN101682615A (en) * 2007-05-11 2010-03-24 艾利森电话股份有限公司 hip node reachability
CN101841877A (en) * 2009-03-18 2010-09-22 华为技术有限公司 Switching method, router and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1741523B (en) * 2004-08-25 2010-05-12 华为技术有限公司 Key exchange protocol method for realizing main machine transferability and multi-home function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682615A (en) * 2007-05-11 2010-03-24 艾利森电话股份有限公司 hip node reachability
CN101499942A (en) * 2008-02-01 2009-08-05 华为技术有限公司 Method, system and apparatus for seamless switching
CN101369924A (en) * 2008-09-26 2009-02-18 清华大学 Mobile management method used for mobile IP network
CN101841877A (en) * 2009-03-18 2010-09-22 华为技术有限公司 Switching method, router and communication system

Also Published As

Publication number Publication date
CN102457510A (en) 2012-05-16
CN102457510B (en) 2016-02-10

Similar Documents

Publication Publication Date Title
JP4579934B2 (en) Addressing method and apparatus for establishing a Host Identity Protocol (HIP) connection between a legacy node and a HIP node
Nordmark et al. Shim6: Level 3 multihoming shim protocol for IPv6
JP5847191B2 (en) Intermediate node for content sharing, content request terminal, and content sharing method thereof
US8451840B2 (en) Mobility in IP without mobile IP
JP2006086800A (en) Communication apparatus for selecting source address
JP5147995B2 (en) Host identity protocol server address configuration
WO2007033238A2 (en) System and method for providing packet connectivity between heterogeneous networks, and component and packet therefor
EP2201742B1 (en) Provisioning mobility services to legacy terminals
WO2012083495A1 (en) Mobility handling in a communication network
Huston Architectural approaches to multi-homing for IPv6
WO2011131097A1 (en) Data message processing method, system and access service node
KR20180051621A (en) Method, telecommunication network, user equipment, system, program and computer program product for improved handling of at least one communication exchange between a telecommunication network and at least one user equipment
WO2006097031A1 (en) A method for transmitting the message in the mobile internet protocol network
WO2012059010A1 (en) Hap handoff method and system
WO2012019525A1 (en) Hip-based communication method, system and device
CN104518959B (en) A kind of method and device of communication between devices
Pierrel et al. A policy system for simultaneous multiaccess with host identity protocol
Nordmark et al. Rfc 5533: Shim6: Level 3 multihoming shim protocol for ipv6
Kimura et al. Tips: wrapping the sockets api for seamless ip mobility
Sousa et al. Multihoming: a comprehensive review
KR100691286B1 (en) Apparatus supporting Seamless Mobility in the Ubiquitous Environment and its method
CN102413098B (en) A kind of data transmission method based on HIP equipment and system
WO2022218194A1 (en) Service routing method and device
Kimura et al. Prototyping applications to handle connection disruptions in end-to-end host mobility
TW201136264A (en) Maintaining persistent connection with user level transmission control protocol

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: 11837536

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: 11837536

Country of ref document: EP

Kind code of ref document: A1