WO2010051697A1 - REGISTRATION METHOD, SYSTEM AND LOCAL MOBILE ANCHOR FOR INTERFACE PREFIX IN PMIPv6 - Google Patents

REGISTRATION METHOD, SYSTEM AND LOCAL MOBILE ANCHOR FOR INTERFACE PREFIX IN PMIPv6 Download PDF

Info

Publication number
WO2010051697A1
WO2010051697A1 PCT/CN2009/071899 CN2009071899W WO2010051697A1 WO 2010051697 A1 WO2010051697 A1 WO 2010051697A1 CN 2009071899 W CN2009071899 W CN 2009071899W WO 2010051697 A1 WO2010051697 A1 WO 2010051697A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
registered
address
cache directory
prefix
Prior art date
Application number
PCT/CN2009/071899
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 WO2010051697A1 publication Critical patent/WO2010051697A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method, a system for registering interface prefixes in PMIPv6, and a local mobility anchor point.
  • PMIP6 Proxy Mobile Internet Protocol version 6, Proxy Mobile Internet Protocol version 6
  • MN Mobile Node
  • the MAG Mobile Access Gateway accessing the interface obtains the NAI (Network Access Identifier) of the MN, and performs access authentication on the display.
  • NAI Network Access Identifier
  • the MAG sends a PBU (Proxy Binding Update) message to the LMA (Local Mobility Anchor), where the PBU carries the NAI of the MN and the ID of the interface. (Identifiers, identifiers).
  • PBU Proxy Binding Update
  • the LMA After receiving the PBU, the LMA establishes a BCE (Binding Cache Entry) for the interface, and the BCE includes a unique HNP (Home Network Prefix) for the interface.
  • BCE Biting Cache Entry
  • HNP Home Network Prefix
  • the LMA sends a PBA (Proxy Binding Acknowledgement) message to the MAG, and the PBA message carries the HNP assigned to the interface.
  • PBA Proxy Binding Acknowledgement
  • the MAG After receiving the PBA message, the MAG sends an RA to the MN through the interface. Adver ti sement, the router announces that the RA carries the HNP assigned to the interface.
  • the HNP carried by the RA is obtained, and the MN configures an IP address for the interface according to the HNP.
  • the MAG accessing the new interface sends a PBU message to the LMA, the PBU message carrying a handover indication indicating that the connection is an old connection; the LMA receiving the PBU After the switch is the old one, the LMA allocates the HNP of the old interface to the new interface; updates the BCE created when the old interface is registered, or creates a new BCE, and deletes the BCE of the old interface.
  • the LMA After receiving the HNP of the interface with the destination IP address prefix, the LMA matches the destination IP address prefix of the packet with the HNP of each BCE to find the BCE that contains the HNP of the interface. Then, the corresponding MAG address included in the BCE is obtained, and the text is forwarded to the MAG through the bidirectional tunnel. After receiving the packet, the MAG removes the outer packet header and forwards the packet to the display through the interface.
  • the MN configures an IP address for the interface according to the unique HNP assigned to each interface. Therefore, only one IP address prefixed with HNP is used. Other IP addresses prefixed with HNP cannot be used, which is a waste of IP address resources.
  • an embodiment of the present invention provides a method for registering an interface prefix in PMIPv6, which saves an IP address resource prefixed by HNP.
  • a method for registering an interface prefix in PMIPv6, including:
  • an embodiment of the present invention provides a local mobility anchor, which saves an IP address resource prefixed by HNP.
  • a local mobility anchor including:
  • a message receiving unit configured to receive a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered;
  • a directory setting unit configured to allocate, to the to-be-registered interface, a home network prefix that is the same as the registered interface, and store the home network prefix in a binding cache directory created for the to-be-registered interface;
  • a message sending unit configured to send a proxy binding acknowledgement message to the mobile access gateway, where the proxy binding acknowledgement message carries a home network prefix allocated for the to-be-registered interface.
  • an embodiment of the present invention provides a registration system for an interface prefix in PMIPv6, which saves an IP address resource prefixed by HNP.
  • a registration system for interface prefix in PMIPv6, comprising a local mobility anchor and at least one mobile access gateway, wherein the local mobility anchor is connected to at least one mobile access gateway;
  • the local mobility anchor is configured to receive a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered, and allocates and registers the interface for the to-be-registered interface.
  • the same home network prefix is stored in the binding cache directory created for the to-be-registered interface, and a proxy binding acknowledgement message is sent to the mobile access gateway; the mobile access gateway is configured to receive A proxy binding acknowledgement message sent by the local mobility anchor.
  • the method for registering the interface prefix in the PMIPv6 and the local mobility anchor provided by the embodiment of the present invention by assigning the same HNP to different interfaces, the MN connecting the interface configures an IP address for the interface according to the HNP;
  • the problem of wasted resources, in addition, when a heterogeneous network is switched, one session is switched from one interface to another, if the same interface is assigned the same HNP is conducive to business continuity.
  • the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding At the same time, the packet is forwarded to multiple mobile access gateways, which causes waste of resources and network security.
  • FIG. 1 is a flowchart of a method for registering an interface prefix in PMIPv6 according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for registering an interface prefix in PMIPv6 according to an embodiment of the present invention
  • FIG. 3 is another PMIPv6 according to an embodiment of the present invention
  • FIG. 4 is a flowchart of another method for registering an interface prefix in PMIPv6 according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a local mobility anchor point according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another local mobility anchor point according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of another local mobility anchor point according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another local mobility anchor point according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a system for registering an interface prefix in PMIPv6 according to an embodiment of the present invention. detailed description
  • the embodiment of the invention provides a method for registering an interface prefix in PMIPv6.
  • the method for registering an interface prefix in PMIPv6 includes:
  • the local mobility anchor receives a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered.
  • MN1 accesses MAGI through interface 1
  • MN2 accesses MAG2 through interface 2
  • MAG1 and MAG2 access the same LMA
  • interface 1 has completed registration on the LMA.
  • the LMA establishes BCE1 for interface 1.
  • the BCE1 contains the home network prefix P1, the ID of the NAI interface 1, and the MAGI address assigned to interface 1.
  • the MAG 2 sends a PBU message to the LMA; the PBU message carries the ID of the interface 2 and the plastic NAI (NAI 2 ).
  • the local mobility anchor allocates a home network prefix that is the same as the registered interface to the to-be-registered interface, and stores the home network prefix in a binding cache directory created for the to-be-registered interface.
  • the LMA is determined to be a new connection according to the PBU message sent by the MAG2, and the same home network prefix PI is assigned to the interface 2; the LMA creates the BCE2 for the interface 2, and the BCE2 includes the P1, NAI 2, the ID of the interface 2, and the MAG2 address. Etc. At this time, there are two BCEs corresponding to the same home network prefix P1 in the LMA.
  • the local mobility anchor sends a proxy binding acknowledgement message to the mobile access gateway, where the proxy binding acknowledgement message carries the home network prefix allocated for the to-be-registered interface.
  • the LMA sends a PBA message to the MAG 2; the PBA message carries the home network prefix P1 assigned to the interface 2.
  • the MAG2 After receiving the PBA message, the MAG2 sends the RA to the display 2 through the interface 2; the RA carries the home network prefix PI assigned to the interface 2; after receiving the RA, the MN2 obtains the home network prefix PI, and the MN2 configures the IP for the interface 2 according to P1. address.
  • interface 1 and interface 2 can access different MAGs, and can also access one MAG at the same time; interface 1 and interface 2 can be connected to different MNs, or one can be connected at the same time. It should be noted that the present invention does not limit this.
  • the NAI is used as the user identifier, and the NAI corresponding to the same distinct interface may be the same.
  • the method for registering an interface prefix in the PMIPv6 provided by the embodiment of the present invention by assigning the same HNP to different interfaces, the MN connecting the interface configures an IP address for the interface according to the HNP, and the solution is solved.
  • the problem of IP address resources being wasted.
  • the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding At the same time, the packet is forwarded to multiple mobile access gateways, which causes waste of resources and network security.
  • the present invention provides a method for registering an interface prefix in PMIPv6.
  • the method for registering an interface prefix in PMIPv6 includes:
  • the interface to be registered accesses the MAG through the access authentication, and the MAG sends a PBU message to the LMA, where the PBU message carries the ID of the interface to be registered.
  • the LMA receives the PBU and accepts the registration, allocates an HNP to the interface, establishes a BCE corresponding to the interface to be registered, and stores the HNP in the BCE.
  • the LMA After receiving the PBU message, the LMA determines that it is a new connection, and allocates an HNP to the to-be-registered interface; the HNP may be a different HNP than other registered interfaces, or may be the same HNP as some registered interfaces.
  • the BCE corresponding to the interface to be registered is set up, and the BCE includes an HNP allocated by the LMA to the interface to be registered, an explicit NAI connected to the interface to be registered, an ID of the interface to be registered, and an MAG address to be accessed by the interface to be registered.
  • a status identifier may be added to the BCE to identify whether the BCE contains an IP address configured for the interface to be registered.
  • the newly created BCE does not contain the IP address configured for the interface to be registered.
  • the BCE cannot be forwarded according to the BCE. Therefore, the status of the BCE is set to the inactive state.
  • the LMA sends a PBA message to the MAG, where the PBA message carries the HNP allocated to the interface to be registered.
  • the PBA message may also carry the home address identifier, so that the MAG learns that the MAG needs to obtain the interface to be registered according to the home address identifier. IP address.
  • the home address flag can be implemented in various ways. For example, the LMA adds a flag "U" to the PBA message to indicate to the MAG that it wishes to obtain the home address information of the interface to be registered.
  • the MAG After receiving the PBA message, the MAG sends the RA through the interface to be registered; and connects to the interface to be registered. After receiving the received RA, the HNP carried by the RA is configured with an IP address for the interface to be registered.
  • the MAG obtains an IP address configured for the interface to be registered.
  • the MAG can obtain the IP address configured for the interface to be registered through an appropriate mechanism, such as ND (Neighbor Di scovery), DHCP (Dynamic Hosting Protocol), ping mechanism, or other methods. .
  • the MAG obtains the IP address configured for the interface to be registered through the reverse query mechanism, that is, queries the corresponding IP address according to the l ink layer address of the MN.
  • the MAG sends the PBU message to the LMA again, where the PBU message is the second proxy binding update message, where the PBU message carries the IP address obtained by the MAG for the interface to be registered;
  • the LMA After receiving the PBU message, the LMA sets the IP address configured for the interface to be registered into the BCE corresponding to the interface to be registered; and sets the status identifier of the BCE to an active state.
  • the LMA is configured to insert the IP address configured for the interface to be registered into the BCE corresponding to the interface to be registered according to the PBU message:
  • the HNP of the interface to be registered in the home network prefix entry in the BCE may be changed to the interface to be registered.
  • the BCE at this time contains the IP address configured for the interface to be registered, and the packet can be forwarded accordingly. Therefore, the status of the BCE is set to the active state (act ive).
  • the LMA determines the BCE that matches the destination address of the packet, and obtains the MAG address recorded in the BCE; forwards the packet to the MAG: If the IP address configured on the interface is placed in the BCE In the home network prefix entry, the LMA determines the unique BCE that matches the destination address of the packet according to the prefix matching principle, and forwards the packet to the MAG recorded in the BCE; In the home address entry in BCE, LMA is based on the longest matching principle. Determining a unique BCE that matches the destination address of the message, and forwarding the message to the MAG recorded in the BCE.
  • the method for registering an interface prefix in the PMIPv6 saves the IP address resource prefixed by the HNP, and also inserts the IP address configured for the interface to be registered with the LMA when registering through the LMA. Registering the BCE corresponding to the interface, so that when the LMA forwards the packet, the LMA can obtain a unique BCE according to the IP address matching, and forward the packet to the MAG of the BCE record, so as to avoid forwarding the packet to multiple mobile interfaces at the same time. Resource waste and network security problems caused by gateways further save network resources and ensure data security.
  • the embodiment of the present invention further provides a method for registering an interface prefix in the PMIPv6.
  • the method for registering an interface prefix in the PMIPv6 according to the embodiment of the present invention includes:
  • the LMA receives the PBU message sent by the MAG, where the PBU message carries the interface to be registered.
  • Each interface is connected to a different MAG, and the MAG initiates the interface registration process.
  • the LMA allocates an HNP to the to-be-registered interface, and stores the HNP in the BCE created for the to-be-registered interface.
  • the LMA allocates HNPs for each interface and creates corresponding BCEs for each interface.
  • a status identifier can be added to the BCE to identify whether the BCE contains an IP address configured for the registered interface. If the BCE does not contain an IP address configured for the registered interface, set the status of the BCE to the inactive state (pend ing). If the BCE contains an IP address configured for the registered interface, set the status of the BCE to the active state (ac t ve ).
  • the LMA sends a PBA message to the MAG.
  • the PNP carries the HNP allocated by the LMA to the interface to be registered.
  • the MAG After receiving the PBA message sent by the LMA, the MAG sends an RA to the MN.
  • the MN connected to each interface configures its own IP address for each interface according to the HNP carried in the RA.
  • the LMA receives the packet, determines a BCE that matches the destination address of the packet, and obtains the The MAG address recorded in the BCE is forwarded to the MAG.
  • the LMA After receiving the packet, the LMA parses the packet header to obtain the destination address of the packet. If the BMA finds a BCE that matches the destination address of the document, it forwards the message to the MAG of the BCE record.
  • BCE1 corresponding to interface 1 does not contain the IP address configured for interface 1
  • BCE2 corresponding to interface 2 does not contain the IP address configured for interface 2.
  • the destination address of the packet received by the LMA is the IP address of interface 1. Therefore, the LMA finds BCE1 and BCE2 that match the destination address prefix of the message and identifies the status as "pending". The LMA caches the message.
  • the LMA acquires the ID of the registered interface recorded in the BCE and the MAG address corresponding to the registered interface, and the LMA sends a network address request message to the MAG, where the network address request message carries the registered The ID of the interface;
  • the LMA obtains the ID of interface 1 and the MAG1 address recorded in BCE1.
  • the LMA obtains the ID of interface 2 and the MAG2 address recorded in BCE2.
  • the LMA constructs a network address request message, and sends network address request information to the MAG 1 and the MAG 2 respectively.
  • the network address request information sent to the MAG1 carries the destination address of the packet, the ID of the interface 1, and the NAI of the MN connected to the interface 1.
  • the HNP assigned to the interface 1; the network address request information sent to the MAG 2 carries the destination address of the message, the ID of the interface 2, the NAI of the MN connected to the interface 2, and the HNP assigned to the interface 2.
  • the network address request information is used to request the correspondence between the ID of the interface and the IP address configured for the interface.
  • the MAG After receiving the network address request message, the MAG obtains an IP address configured for the registered interface.
  • the MAG1 After receiving the network address request message, the MAG1 obtains the IP address configured for the interface 1 by using an appropriate mechanism, that is, obtains the correspondence between the ID of the interface 1 and its IP address, for example, the Ping mechanism process, the ND process, the DHCP, and the like. Come to get.
  • MAG2 receives the network address request cancellation After the information is obtained, the corresponding relationship between the ID of the interface 2 and its IP address is obtained in the same manner.
  • the MAG sends a network address response message to the LMA, where the network address response message carries an IP address configured by the MAG for the registered interface.
  • the MAGI and MAG 2 respectively send a network address response message to the LMA;
  • the network address response message sent by the MAG1 carries the ID of the interface 1, the IP address configured for the interface 1, the NAI of the MN connected to the interface 1, and the HNP allocated to the interface 1;
  • the network address response message sent by the MAG2 carries the ID of the interface 2, the IP address configured for the interface 2, the NAI of the MN connected to the interface 2, and the HNP assigned to the interface 2.
  • the LMA updates, according to the received network address response message, a BCE that matches the destination address prefix of the packet and the status identifier is inactive, and places the IP address configured for the registered interface into the registered
  • the BCE corresponding to the interface sets the status of the BCE to the active state.
  • the LMA updates the BCE1 according to the received network address response message from MAG1, and sets the IP address configured for interface 1 to BCE1.
  • the HNP of interface 1 in the home network prefix entry in BCE1 can be changed to the IP configured on interface 1.
  • BCE1 at this time contains the IP address configured for interface 1. Therefore, the status ID of BCE1 is changed to "act ive".
  • the LMA puts the IP address configured for interface 2 into BCE2 according to the received network address response message from MAG2.
  • the status identifier of BCE2 is changed to "active".
  • the LMA looks for a BCE that matches the destination address of the message. If the IP address configured on the interface is placed in the home network prefix entry in the BCE, the LMA determines the unique BCE that matches the destination address of the source according to the prefix matching principle, and forwards the file to the record in the BCE. If the IP address configured on the interface is placed in the home address entry in the BCE, the LMA determines the unique BCE that matches the destination address of the packet according to the longest match criterion, and forwards the packet to the BCE. Recorded MAG. The LMA uses the foregoing method to find the BCE1 that matches the destination address of the packet, and the LMA forwards the buffered packet to the MAG1 recorded in the BCE1.
  • the method for registering an interface prefix in PMIPv6 saves HNP as
  • the IP address resource of the prefix is also determined by the LMA when the LMA receives the packet, and if the BCE matching the destination address of the packet is not obtained, the destination address prefix matches the state and the state is determined.
  • the BCE which is inactive, indicates that the MAG obtains and returns the IP address configured by the interface recorded in the BCE, and places the BCE corresponding to the interface with the IP address configured for the interface, and the LMA is updated.
  • the BCE that matches the destination address of the packet is re-discovered, and the packet is correctly forwarded to the corresponding MAG, so that when the LMA forwards the packet, the LMA can obtain a unique BCE according to the IP address matching, and the The packet is forwarded to the MAG of the BCE record, which avoids resource waste and network security caused by forwarding the packet to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.
  • the embodiment of the present invention can also provide another method for registering an interface prefix in the PMIPv6 based on the prefix registration method described in the second embodiment.
  • the method for registering an interface prefix in the PMIPv6 according to the embodiment of the present invention is Includes:
  • steps 201 ⁇ 207 in the second embodiment are the same as steps 201 ⁇ 207 in the second embodiment.
  • the LMA receives the packet, determines the BCE that matches the destination address of the packet, and obtains the MAG address recorded in the BCE, and forwards the message to the MAG.
  • the LMA searches for at least one BCE that matches the destination address prefix of the packet and does not include the IP address configured for the registered interface.
  • the LMA acquires the ID of the registered interface recorded in the BCE and the MAG address corresponding to the registered interface, and the LMA sends a network address request message to the MAG, where the network address request message carries the registered The ID of the interface;
  • the network address request message of the LMA is used to request the correspondence between the ID of the registered interface and the IP address configured for the registered interface, where the network address request message carries the destination address of the message.
  • the MAG After receiving the network address request message, the MAG obtains an IP address configured for the registered interface.
  • the MAG After receiving the network address request message, the MAG obtains an IP address configured for the registered interface by using an appropriate mechanism, that is, obtaining an ID of the registered interface and an IP address configured for the registered interface.
  • the correspondence relationship can be obtained, for example, by using a Ping mechanism process, an ND process, and DHCP.
  • the MAG sends a network address response message to the LMA, where the network address response message carries an IP address configured by the MAG for the registered interface.
  • the network address response message carries the ID of the registered interface, the IP address configured for the registered interface, the NAI of the MN connected to the registered interface, and the HNP assigned to the registered interface.
  • the LMA updates the BCE that matches the destination address prefix of the packet and the status identifier is inactive according to the received network address response message, and places the IP address configured for the registered interface into the registered interface.
  • the corresponding BCE sets the status identifier to an active state.
  • the LMA will also place the corresponding BCE for the IP address of the registered interface. In the home network prefix entry, set the Length of the home network prefix entry to 128. If the LMA adds the IP address update configured for the registered interface to the home address entry of the corresponding BCE in step 407, the LMA also adds a home address entry to the BCE corresponding to the registered interface. The IP address update configured for the registered interface is placed in the home address entry of the BCE. Also, change the status flag of the BCE to "act ive".
  • the method for registering the interface prefix in the PMIPv6 provided by the embodiment of the present invention saves the IP address resource prefixed by the HNP, and also does not obtain the destination address of the packet when the LMA receives the packet.
  • the BCE that matches the destination address prefix of the message and the status identifier is inactive is determined, instructing the MAG to obtain and return the IP address configured by the interface recorded in the BCE, and The IP address configured on the interface is placed in the BCE corresponding to the interface.
  • the LMA re-discovers the BCE that matches the destination address of the packet, and forwards the packet to the corresponding MAG correctly. It avoids resource waste and network security problems caused by forwarding packets to multiple mobile access gateways at the same time, thereby further saving network resources and ensuring data security.
  • the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Acces s Memory (RAM).
  • Embodiments of the present invention provide a local mobility anchor point.
  • the local mobility anchor point in the embodiment of the present invention includes:
  • the message receiving unit 501 is configured to receive a PBU message sent by the MAG, where the PBU message carries an ID of the interface to be registered;
  • a directory setting unit 502 configured to be connected to the message receiving unit 501, configured to allocate the same HNP as the registered interface to the to-be-registered interface, and store the HNP in the BCE created for the to-be-registered interface;
  • the message sending unit 503 is connected to the directory setting unit 502, and is configured to send a PBA message to the MAG, where the PBA message carries the HNP allocated for the interface to be registered.
  • the local mobility anchor provided by the embodiment of the present invention allocates the same HNP to different interfaces, and the MN that connects the interface configures an IP address for the interface according to the HNP.
  • the problem that the IP address resource is wasted is solved.
  • the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding Forwarding packets to multiple mobile access gateways at the same time Resource waste and network security issues.
  • the state identification setting unit, the home address flag adding unit, the interface address placing unit, and the address matching unit may be added to the local mobility anchor described in the fifth embodiment, so that the LMA can use the IP address of the interface to match the destination address of the packet. Forward the packet, as shown in Figure 6.
  • the status identifier setting unit 604 is connected to the directory setting unit 602, and is configured to set the status of the BCE to an inactive state when the BCE is created; and connect with the interface address placing unit 605 for being to be registered or When the IP address of the registered interface is placed in the BCE, the status of the BCE is set to the active state.
  • the home address identifier adding unit 607 is connected to the message sending unit 603, and is configured to add a home address flag to the proxy binding confirmation message, so that the mobile access gateway learns that the interface needs to be acquired as an interface according to the home address identifier. IP address;
  • a home address flag acquisition unit, an interface address acquisition unit, and an interface address addition unit are added to the MAG.
  • the home address identifier obtaining unit is configured to acquire a home address identifier in the received proxy binding confirmation message.
  • the interface address obtaining unit is connected to the home address identifier obtaining unit, and configured to acquire an IP address configured for the registered interface.
  • the interface address adding unit is connected to the interface address obtaining unit, and is configured to add the obtained IP address to the PBU message.
  • the interface address setting unit 605 is connected to the message receiving unit 601, and configured to put the network address configured for the registered interface in the received second proxy binding update message into the binding cache corresponding to the registered interface.
  • the directory, the IP address configured for the registered interface in the proxy binding update message to be received again, is placed in the BCE corresponding to the registered interface;
  • the address matching unit 606 is connected to the interface address placing unit 605, and is configured to determine a BCE that matches the destination address of the message when the packet is forwarded.
  • the BCE corresponding to the interface to be registered is placed in the IP address configured for the interface to be registered, so that when the LMA forwards the packet, the LMA obtains a unique BCE according to the address matching.
  • the packet is forwarded to the MAG of the BCE record, which avoids resource waste and network security caused by forwarding the packet to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.
  • the state identification setting unit, the address matching unit, the prefix matching unit, the network address request sending unit, the network address response receiving unit, and the interface address placing unit may be added to the local mobility anchor described in Embodiment 5, so that the LMA can utilize the interface.
  • the IP address matches the destination address of the packet and is forwarded as shown in Figure 7.
  • the status identifier setting unit 704 is connected to the directory setting unit 702, and is configured to set the status identifier of the BCE to an inactive state when the BCE is created; and connect with the interface address placing unit 705, for being to be registered or already When the IP address of the registered interface is placed in the BCE, the status of the BCE is set to the active state.
  • the address matching unit 706 is connected to the interface address placing unit 705, and configured to determine a BCE that matches the destination address of the packet.
  • the prefix matching unit 708 is connected to the directory setting unit 702 and the state identifier setting unit 704, and configured to determine, when the address matching unit does not obtain the BCE that matches the destination address of the message, determine the file with the ⁇ 3 ⁇ 4 The BCE whose destination address prefix matches and whose status is identified as inactive;
  • the network address request sending unit 709 is connected to the prefix matching unit 708, and configured to send a network address request message to the mobile access gateway in the binding cache directory determined by the prefix matching unit, where the network address request message carries the prefix according to the The identifier of the corresponding registered interface of the binding cache directory determined by the matching unit;
  • a network address request receiving unit, an interface address obtaining unit, and a network address response sending unit are added to the MAG.
  • the network address request receiving unit is configured to receive a network address request message sent by the LMA.
  • the interface address obtaining unit is connected to the network address request receiving unit, and configured to acquire an IP address configured for the registered interface.
  • the network address response sending unit is connected to the interface address obtaining unit, and configured to send a network address response message to the LMA, where the network address response message carries an IP address configured for the registered interface.
  • the network address response receiving unit 710 is configured to receive a network address response message sent by the mobile access gateway, where the network address response message carries an IP address configured by the mobile access gateway for the registered interface.
  • the interface address placement unit 705 is coupled to the network address response receiving unit 710 for placing an IP address configured for the registered interface into a BCE corresponding to the registered interface.
  • the LMA determines that the BCE that matches the destination address prefix of the "3 ⁇ 4 text" and the status identifier is inactive is in the case that the BCE matching the destination address of the packet is not obtained, indicating the MAG. Acquiring and returning the IP address configured by the interface recorded in the BCE, and placing the IP address configured for the interface into the BCE corresponding to the interface, and after the LMA is updated, re-finding the destination of the packet.
  • the BCE that matches the address forwards the packet to the corresponding MAG. Therefore, the LMA can use the IP address of the interface to match the destination address of the text to forward the packet to the corresponding MAG.
  • Resource waste and network security problems caused by forwarding to multiple mobile access gateways further save network resources and ensure data security.
  • the prefix matching unit, the network address request sending unit, and the network address response receiving unit may be added to the local mobility anchor described in the sixth embodiment, so that the LMA correctly forwards the packet to the corresponding MAG when forwarding the packet. , as shown in Figure 8.
  • the prefix matching unit 808 is connected to the directory setting unit 802 and the state identifier setting unit 804, and is configured to determine, when the BCE matching the destination address of the packet is not obtained, the state and the destination address prefix of the packet match. BCE identified as inactive;
  • the network address request sending unit 809 is connected to the prefix matching unit 808, and configured to send a network address request message to the mobile access gateway, where the network address request message carries an identifier of the registered interface;
  • a network address request receiving unit, an interface address obtaining unit, and a network address response sending unit are added to the MAG.
  • the network address request receiving unit is configured to receive a network address request message sent by the LMA.
  • the interface address obtaining unit is connected to the network address request receiving unit, Used to obtain the IP address configured for the registered interface.
  • the network address response sending unit is connected to the interface address obtaining unit, and configured to send a network address response message to the LMA, where the network address response message carries an IP address configured for the registered interface.
  • the network address response receiving unit 810 is connected to the interface address placing unit 805, and configured to receive a network address response message sent by the mobile access gateway, where the network address response message carries the mobile access gateway to obtain the The IP address of the configured interface.
  • the LMA determines that the BCE that matches the destination address prefix of the "3 ⁇ 4 text" and the status identifier is inactive is in the case that the BCE matching the destination address of the packet is not obtained, indicating the MAG. Obtaining and returning the IP address configured on the interface recorded in the BCE, and placing the IP address configured for the interface into the BCE corresponding to the interface. Therefore, if the MAG is not acquired, the MAG is not acquired. Registering the IP address configured on the interface. Therefore, the BCE corresponding to the interface in the LMA does not get the updated IP address. The LMA can update the corresponding BCE again when receiving the packet, so that the LMA can find the destination address of the document again. The BCE forwards the >3 ⁇ 4 text correctly to the corresponding MAG, which avoids resource waste and network security problems caused by forwarding the message to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.
  • the embodiment of the invention provides a registration system for interface prefix in PMIPv6.
  • the system for registering an interface prefix in PMIPv6 includes an LMA and at least one MAG, and the LMA is connected to at least one MAG.
  • the local mobility anchor point 901 is configured to receive a PBU message sent by the mobile access gateway 902, where the PBU message carries an ID of the interface to be registered, and the local mobility anchor point 901 allocates and registers the interface to the to-be-registered interface.
  • the same HNP is stored in the BCE created for the interface to be registered, and sends a PBA message to the mobile access gateway 902;
  • the mobile access gateway 902 is configured to receive a PBA message sent by the local mobility anchor 901.
  • the system for registering an interface prefix in the PMIPv6 provided by the embodiment of the present invention, by assigning the same HNP to different interfaces, the MN connecting the interface configures an IP address for the interface according to the HNP; The problem of IP address resources being wasted.
  • the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding At the same time, the packet is forwarded to multiple mobile access gateways, which causes waste of resources and network security.
  • the local mobility anchor 901 may also set the status of the BCE to an inactive state when the BCE is created for the interface to be registered; when the IP address configured for the interface to be registered or registered is placed in the corresponding BCE, Set the status of the BCE that is placed in the network address to the active state.
  • the mobile access gateway 902 may also obtain an IP address configured for the interface to be registered in the PBA message after receiving the PBA message, and send a PBU carrying the IP address configured for the interface to be registered to the local mobility anchor 901.
  • the message, the PBU message is a second proxy binding update message.
  • the local mobility anchor 901 receives the PBU message sent by the mobile access gateway 902 again, the IP address configured for the to-be-registered interface in the PBU message is placed in the BCE corresponding to the to-be-registered interface, and The status identifier of the BCE is changed to an active state; when the local mobility anchor 901 forwards the packet, the address of the mobile access gateway 902 recorded in the BCE matching the destination address of the packet is obtained, and the packet is forwarded.
  • the mobile access gateway 902 is provided.
  • the LMA when registering, the LMA will place a BCE corresponding to the interface to be registered for the IP address configured for the interface to be registered, so that when the LMA forwards the packet, the LMA obtains a unique BCE according to the address matching, and forwards the packet.
  • the MAG recorded by the BCE avoids resource waste and network security problems caused by forwarding packets to multiple mobile access gateways at the same time, thereby saving network resources and ensuring data security.
  • the local mobility anchor 901 may further determine, when the packet is forwarded and the BCE that matches the destination address of the packet is not obtained, the BCE that matches the destination address prefix of the document and the status identifier is inactive. Obtaining, by the mobile access gateway recorded in the binding cache directory, a network address configured for the registered interface corresponding to the binding cache directory, and placing the obtained network address into a corresponding binding cache directory.
  • the mobile access gateway 902 is configured to acquire a network address configured for the registered interface corresponding to the binding cache directory, and notify the local mobility anchor 901 of the network address information.
  • the local mobility anchor 901 sends a network address request message to the mobile access gateway 902 recorded in the binding cache directory, where the network address request message carries the ID of the registered interface recorded in the BCE.
  • the mobile access gateway 902 After receiving the network address request message, the mobile access gateway 902 obtains an IP address configured for the registered interface, and sends a network address response carrying the IP address configured for the registered interface to the local mobility anchor 901. Message.
  • the local mobility anchor 901 receives the network address response message sent by the mobile access gateway 902, where the network address response message carries the IP address configured by the mobile access gateway 902 for the registered interface;
  • the BCE corresponding to the registered interface is placed in the BCE corresponding to the registered interface;
  • the local mobility anchor 901 acquires the BCE that matches the destination address of the packet, and forwards the packet to the BCE.
  • Mobile access gateway 902 recorded in.
  • the LMA determines that the BCE that matches the destination address prefix of the packet and the status identifier is inactive is in the case that the BCE matching the destination address of the packet is not obtained, indicating the MAG. Acquiring and returning the IP address configured by the interface recorded in the BCE, and placing the IP address configured for the interface into the BCE corresponding to the interface, so that the LMA searches for the purpose of the text after the update.
  • the BCEs that match the address correctly forward the text to the corresponding MAG, which avoids resource waste and network security problems caused by forwarding packets to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.

Abstract

A registration method, system and local mobile anchor for interface prefix in PMIPv6. The method comprises the following steps: an agent binding update message sent by a mobile access gateway is received and an identifier of the interface to be registered is carried in the agent binding update message; a home network prefix which is the same as the registered interface is allocated to the interface to be registered and a binding cache directory is set up for the interface to be registered and the home network prefix is comprised in the binding cache directory; an agent binding acknowledgement message is sent to the mobile access gateway and the home network prefix which is allocated to the interface to be registered is carried in the agent binding acknowledgement message.

Description

ΡΜΙΡνό中接口前缀的注册方法、 系统及本地移动锚点 本申请要求于 2008 年 11 月 6 日提交中国专利局、 申请号为 200810175240. X、 发明名称为 "ΡΜΙΡν6 中接口前缀的注册方法、 系统及本地 移动锚点" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Registration method, system and local mobile anchor point of interface prefix in ΡΜΙΡνό This application is submitted to the Chinese Patent Office on November 6, 2008, and the application number is 200810175240. X. The registration method and system of the interface prefix in the invention name is “ΡΜΙΡν6” The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference. Technical field
本发明涉及移动通信领域, 尤其涉及 PMIPv6中接口前缀的注册方法、 系 统及本地移动锚点。  The present invention relates to the field of mobile communications, and in particular, to a method, a system for registering interface prefixes in PMIPv6, and a local mobility anchor point.
背景技术 Background technique
在 PMIP6 ( Proxy Mobile Internet Protocol version 6, 代理移动互联 网协议版本 6)中, MN (Mobile Node, 移动节点)可以通过多个接口与 PMIPv6 域连接。  In PMIP6 (Proxy Mobile Internet Protocol version 6, Proxy Mobile Internet Protocol version 6), a MN (Mobile Node) can connect to a PMIPv6 domain through multiple interfaces.
现有技术中, MN进入 ΡΜΙΡνό域时, 与该 ΜΝ相连的某一接口进行前缀注 册的流程如下:  In the prior art, when the MN enters the ΡΜΙΡνό domain, the process of prefix registration with an interface connected to the MN is as follows:
1、 接入该接口的 MAG (Mobile Access Gateway, 移动接入网关)获取所 述 MN的 NAI (Network Access Identifier, 网络接入标识符), 并对所述顯 进行接入认证。  1. The MAG (Mobile Access Gateway) accessing the interface obtains the NAI (Network Access Identifier) of the MN, and performs access authentication on the display.
2、 通过接入认证后, 该 MAG向 LMA ( Local Mobility Anchor, 本地移动 锚点)发送 PBU ( Proxy Binding Update, 代理绑定更新 ) 消息, 该 PBU中携 带所述 MN的 NAI和该接口的 ID ( Identifiers, 标识符)。  2. After the access authentication, the MAG sends a PBU (Proxy Binding Update) message to the LMA (Local Mobility Anchor), where the PBU carries the NAI of the MN and the ID of the interface. (Identifiers, identifiers).
3、 LMA接收该 PBU后, 为该接口建立 BCE (Binding Cache Entry, 绑定 緩存目录), 该 BCE中包含为该接口分酉己的唯一的 HNP ( Home Network Prefix, 家乡网络前缀)、 所述 MN的 NAI、 该接口的 ID、 该 MAG的地址等。  3. After receiving the PBU, the LMA establishes a BCE (Binding Cache Entry) for the interface, and the BCE includes a unique HNP (Home Network Prefix) for the interface. The NAI of the MN, the ID of the interface, the address of the MAG, and the like.
4、 LMA向该 MAG发送 PBA ( Proxy Binding Acknowledgement, 代理绑定 确认) 消息, 该 PBA消息携带分配给该接口的 HNP。  The LMA sends a PBA (Proxy Binding Acknowledgement) message to the MAG, and the PBA message carries the HNP assigned to the interface.
5、 该 MAG接收该 PBA消息后, 通过该接口向所述 MN发送 RA ( Routing Adver t i sement , 路由器公告), RA携带分配给该接口的 HNP。 5. After receiving the PBA message, the MAG sends an RA to the MN through the interface. Adver ti sement, the router announces that the RA carries the HNP assigned to the interface.
6、 所述顯接收该 RA后, 获得 RA携带的 HNP, MN根据该 HNP为该接口 配置 IP地址。  After the receiving the RA, the HNP carried by the RA is obtained, and the MN configures an IP address for the interface according to the HNP.
如果 MN在相同的 PMI Pv6域中从一个接口切换至另一接口, 接入新接口 的 MAG向 LMA发送 PBU消息, 所述 PBU消息携带表示该连接为旧连接的切换 指示; LMA接收所述 PBU后, 根据切换指示为旧连接, LMA为新接口分配旧接 口的 HNP; 更新旧接口注册时创建的 BCE, 或者创建新的 BCE, 删除旧接口的 BCE。  If the MN switches from one interface to another in the same PMI Pv6 domain, the MAG accessing the new interface sends a PBU message to the LMA, the PBU message carrying a handover indication indicating that the connection is an old connection; the LMA receiving the PBU After the switch is the old one, the LMA allocates the HNP of the old interface to the new interface; updates the BCE created when the old interface is registered, or creates a new BCE, and deletes the BCE of the old interface.
LMA接收目的 IP地址前缀为某一接口的 HNP的报文后, 将报文的目的 IP 地址前缀与各 BCE中的 HNP匹配, 找到包含该接口的 HNP的 BCE。 然后获取所 述 BCE中包含的相应 MAG地址, 通过双向隧道将 文转发至该 MAG。 MAG接收 该报文后, 解除外层报文头, 通过该接口将该报文转发至顯。  After receiving the HNP of the interface with the destination IP address prefix, the LMA matches the destination IP address prefix of the packet with the HNP of each BCE to find the BCE that contains the HNP of the interface. Then, the corresponding MAG address included in the BCE is obtained, and the text is forwarded to the MAG through the bidirectional tunnel. After receiving the packet, the MAG removes the outer packet header and forwards the packet to the display through the interface.
在实现本发明的过程中, 发明人发现现有技术中至少存在如下问题: MN根据为每个接口分配到的唯一 HNP,为接口配置 IP地址。 因此,以 HNP 为前缀的 IP地址只有一个被使用, 以 HNP为前缀的其它 IP地址不能被使用, 对 IP地址资源造成了浪费。 发明内容  In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: The MN configures an IP address for the interface according to the unique HNP assigned to each interface. Therefore, only one IP address prefixed with HNP is used. Other IP addresses prefixed with HNP cannot be used, which is a waste of IP address resources. Summary of the invention
一方面, 本发明的实施例提供一种 PMIPv6中接口前缀的注册方法, 节约 以 HNP为前缀的 IP地址资源。  In one aspect, an embodiment of the present invention provides a method for registering an interface prefix in PMIPv6, which saves an IP address resource prefixed by HNP.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
一种 PMIPv6中接口前缀的注册方法, 包括:  A method for registering an interface prefix in PMIPv6, including:
接收移动接入网关发送的代理绑定更新消息, 所述代理绑定更新消息中 携带待注册接口的标识符;  Receiving a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered;
为所述待注册接口分配与已注册接口相同的家乡网络前缀, 并将所述家 乡网络前缀存储在为所述待注册接口创建的绑定緩存目录中;  And assigning, to the to-be-registered interface, a home network prefix that is the same as the registered interface, and storing the home network prefix in a binding cache directory created for the to-be-registered interface;
向移动接入网关发送代理绑定确认消息, 所述代理绑定确认消息中携带 为所述待注册接口分配的家乡网络前缀。 Sending a proxy binding acknowledgement message to the mobile access gateway, where the proxy binding acknowledgement message is carried The home network prefix assigned to the interface to be registered.
一方面, 本发明的实施例提供一种本地移动锚点, 节约以 HNP 为前缀的 IP地址资源。  In one aspect, an embodiment of the present invention provides a local mobility anchor, which saves an IP address resource prefixed by HNP.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
一种本地移动锚点, 包括:  A local mobility anchor, including:
消息接收单元, 用于接收移动接入网关发送的代理绑定更新消息, 所述 代理绑定更新消息中携带待注册接口的标识符;  a message receiving unit, configured to receive a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered;
目录设置单元, 用于为所述待注册接口分配与已注册接口相同的家乡网 络前缀, 并将所述家乡网络前缀存储在为所述待注册接口创建的绑定緩存目 录中;  a directory setting unit, configured to allocate, to the to-be-registered interface, a home network prefix that is the same as the registered interface, and store the home network prefix in a binding cache directory created for the to-be-registered interface;
消息发送单元, 用于向移动接入网关发送代理绑定确认消息, 所述代理 绑定确认消息中携带为所述待注册接口分配的家乡网络前缀。  And a message sending unit, configured to send a proxy binding acknowledgement message to the mobile access gateway, where the proxy binding acknowledgement message carries a home network prefix allocated for the to-be-registered interface.
一方面, 本发明的实施例提供一种 PMIPv6中接口前缀的注册系统, 节约 以 HNP为前缀的 IP地址资源。  In one aspect, an embodiment of the present invention provides a registration system for an interface prefix in PMIPv6, which saves an IP address resource prefixed by HNP.
为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:
一种 PMIPv6中接口前缀的注册系统, 包括一个本地移动锚点和至少一个 移动接入网关, 所述本地移动锚点与至少一个所述移动接入网关相连;  A registration system for interface prefix in PMIPv6, comprising a local mobility anchor and at least one mobile access gateway, wherein the local mobility anchor is connected to at least one mobile access gateway;
其中所述本地移动锚点, 用于接收移动接入网关发送的代理绑定更新消 息, 所述代理绑定更新消息中携带待注册接口的标识符, 为所述待注册接口 分配与已注册接口相同的家乡网络前缀, 将所述家乡网络前缀存储在为所述 待注册接口创建的绑定緩存目录中, 向移动接入网关发送代理绑定确认消息; 所述移动接入网关, 用于接收本地移动锚点发送的代理绑定确认消息。 本发明实施例提供的 PMIPv6中接口前缀的注册方法、 系统及本地移动锚 点, 通过为不同接口分配同一 HNP , 连接所述接口的 MN根据该 HNP为所述接 口配置 IP地址; 解决了 IP地址资源被浪费的问题, 另外, 在异质网络切换 时,将一个会话从一个接口切换到另一个接口,如果为这两个接口分配相同的 HNP,有利于实现业务连续性。 同时, 本发明实施例通过为各个接口配置同一 家乡网络前缀的不同 IP地址, 使得本地移动锚点能够根据各接口的 IP地址 将收到的报文正确转发给相应的移动接入网关, 避免了同时将报文转发给多 个移动接入网关引起的资源浪费和网络安全问题。 The local mobility anchor is configured to receive a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered, and allocates and registers the interface for the to-be-registered interface. The same home network prefix is stored in the binding cache directory created for the to-be-registered interface, and a proxy binding acknowledgement message is sent to the mobile access gateway; the mobile access gateway is configured to receive A proxy binding acknowledgement message sent by the local mobility anchor. The method for registering the interface prefix in the PMIPv6 and the local mobility anchor provided by the embodiment of the present invention, by assigning the same HNP to different interfaces, the MN connecting the interface configures an IP address for the interface according to the HNP; The problem of wasted resources, in addition, when a heterogeneous network is switched, one session is switched from one interface to another, if the same interface is assigned the same HNP is conducive to business continuity. At the same time, the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding At the same time, the packet is forwarded to multiple mobile access gateways, which causes waste of resources and network security.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所 需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following drawings will be briefly described, and the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1为本发明实施例一种 PMIPv6中接口前缀的注册方法流程图; 图 2为本发明实施例另一种 PMIPv6中接口前缀的注册方法流程图; 图 3为本发明实施例另一种 PMIPv6中接口前缀的注册方法流程图; 图 4为本发明实施例另一种 PMIPv6中接口前缀的注册方法流程图; 图 5为本发明实施例一种本地移动锚点的结构示意图;  1 is a flowchart of a method for registering an interface prefix in PMIPv6 according to an embodiment of the present invention; FIG. 2 is a flowchart of another method for registering an interface prefix in PMIPv6 according to an embodiment of the present invention; FIG. 3 is another PMIPv6 according to an embodiment of the present invention; FIG. 4 is a flowchart of another method for registering an interface prefix in PMIPv6 according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a local mobility anchor point according to an embodiment of the present invention;
图 6为本发明实施例另一种本地移动锚点的结构示意图;  6 is a schematic structural diagram of another local mobility anchor point according to an embodiment of the present invention;
图 7为本发明实施例另一种本地移动锚点的结构示意图;  7 is a schematic structural diagram of another local mobility anchor point according to an embodiment of the present invention;
图 8为本发明实施例另一种本地移动锚点的结构示意图;  FIG. 8 is a schematic structural diagram of another local mobility anchor point according to an embodiment of the present invention; FIG.
图 9为本发明实施例一种 PMIPv6中接口前缀的注册系统的结构示意图。 具体实施方式  FIG. 9 is a schematic structural diagram of a system for registering an interface prefix in PMIPv6 according to an embodiment of the present invention. detailed description
下面结合附图对本发明实施例 PMIPv6中接口前缀的注册方法、 系统及本 地移动锚点进行详细描述。  The method and system for registering interface prefixes in the PMIPv6 in the embodiment of the present invention and the local mobility anchor point are described in detail below with reference to the accompanying drawings.
实施例一  Embodiment 1
本发明实施例提供一种 PMIPv6中接口前缀的注册方法。 如图 1所示, 本 发明实施例 PMIPv6中接口前缀的注册方法, 包括:  The embodiment of the invention provides a method for registering an interface prefix in PMIPv6. As shown in FIG. 1, the method for registering an interface prefix in PMIPv6 according to the embodiment of the present invention includes:
101、 本地移动锚点接收移动接入网关发送的代理绑定更新消息, 所述代 理绑定更新消息中携带待注册接口的标识符; 假设 MN1通过接口 1接入 MAGI , 而 MN2通过接口 2接入 MAG2 , MAG1和 MAG2接入同一个 LMA, 并且, 接口 1 已经完成了在 LMA上的注册。 在接口 1 的注册过程中, LMA为接口 1建立了 BCE1 , 该 BCE1中包含为接口 1分配的家 乡网络前缀 Pl、 NAI 接口 1的 ID、 MAGI地址等。 MN2通过接口 2在 MAG2 上完成认证过程后, MAG 2发送 PBU消息至 LMA; 所述 PBU消息携带接口 2的 ID和塑的 NAI ( NAI 2 )。 101. The local mobility anchor receives a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered. Assume that MN1 accesses MAGI through interface 1, and MN2 accesses MAG2 through interface 2, MAG1 and MAG2 access the same LMA, and interface 1 has completed registration on the LMA. During the registration of interface 1, the LMA establishes BCE1 for interface 1. The BCE1 contains the home network prefix P1, the ID of the NAI interface 1, and the MAGI address assigned to interface 1. After the MN2 completes the authentication process on the MAG2 through the interface 2, the MAG 2 sends a PBU message to the LMA; the PBU message carries the ID of the interface 2 and the plastic NAI (NAI 2 ).
102、 本地移动锚点为所述待注册接口分配与已注册接口相同的家乡网络 前缀, 并将所述家乡网络前缀存储在为所述待注册接口创建的绑定緩存目录 中;  102. The local mobility anchor allocates a home network prefix that is the same as the registered interface to the to-be-registered interface, and stores the home network prefix in a binding cache directory created for the to-be-registered interface.
LMA根据所述 MAG2发送的 PBU消息判断为新连接, 为接口 2分配与接口 1相同的家乡网络前缀 PI ; LMA为接口 2创建 BCE2 , BCE2中包含 Pl、 NAI 2、 接口 2的 ID、 MAG2地址等; 此时, 在 LMA中存在对应于同一个家乡网络前缀 P1的两个 BCE。  The LMA is determined to be a new connection according to the PBU message sent by the MAG2, and the same home network prefix PI is assigned to the interface 2; the LMA creates the BCE2 for the interface 2, and the BCE2 includes the P1, NAI 2, the ID of the interface 2, and the MAG2 address. Etc. At this time, there are two BCEs corresponding to the same home network prefix P1 in the LMA.
103、 本地移动锚点向移动接入网关发送代理绑定确认消息, 所述代理绑 定确认消息中携带为所述待注册接口分配的家乡网络前缀。  103. The local mobility anchor sends a proxy binding acknowledgement message to the mobile access gateway, where the proxy binding acknowledgement message carries the home network prefix allocated for the to-be-registered interface.
LMA向 MAG 2发送 PBA消息; 所述 PBA消息携带分配给接口 2的家乡网络 前缀 Pl。  The LMA sends a PBA message to the MAG 2; the PBA message carries the home network prefix P1 assigned to the interface 2.
MAG2接收该 PBA消息后, 通过接口 2向顯 2发送 RA; RA携带分配给接口 2的家乡网络前缀 PI ; MN2接收该 RA后, 接口 2获得家乡网络前缀 PI , MN2 根据 P1为接口 2配置 IP地址。  After receiving the PBA message, the MAG2 sends the RA to the display 2 through the interface 2; the RA carries the home network prefix PI assigned to the interface 2; after receiving the RA, the MN2 obtains the home network prefix PI, and the MN2 configures the IP for the interface 2 according to P1. address.
需要说明的是, 虽然给出了上述示例, 但接口 1和接口 2可以接入不同 的 MAG, 也可以同时接入一个 MAG; 接口 1和接口 2可以与不同的 MN连接, 也可以同时连接一个顯, 本发明对此不做限制。 另外, NAI作为用户标识,同 一个顯的不同接口所对应的 NAI可能是相同的。  It should be noted that, although the above example is given, interface 1 and interface 2 can access different MAGs, and can also access one MAG at the same time; interface 1 and interface 2 can be connected to different MNs, or one can be connected at the same time. It should be noted that the present invention does not limit this. In addition, the NAI is used as the user identifier, and the NAI corresponding to the same distinct interface may be the same.
本发明实施例提供的 PMIPv6中接口前缀的注册方法, 通过为不同接口分 配同一 HNP , 连接所述接口的 MN根据该 HNP为所述接口配置 IP地址, 解决了 IP地址资源被浪费的问题。 同时, 本发明实施例通过为各个接口配置同一家 乡网络前缀的不同 IP地址, 使得本地移动锚点能够根据各接口的 IP地址将 收到的报文正确转发给相应的移动接入网关, 避免了同时将报文转发给多个 移动接入网关引起的资源浪费和网络安全问题。 The method for registering an interface prefix in the PMIPv6 provided by the embodiment of the present invention, by assigning the same HNP to different interfaces, the MN connecting the interface configures an IP address for the interface according to the HNP, and the solution is solved. The problem of IP address resources being wasted. At the same time, the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding At the same time, the packet is forwarded to multiple mobile access gateways, which causes waste of resources and network security.
实施例二  Embodiment 2
本发明提供另一种 PMIPv6中接口前缀的注册方法, 如图 2所示, 本发明 实施例 PMIPv6中接口前缀的注册方法, 包括:  The present invention provides a method for registering an interface prefix in PMIPv6. As shown in FIG. 2, the method for registering an interface prefix in PMIPv6 according to the embodiment of the present invention includes:
201、 待注册接口通过接入认证接入 MAG, MAG向 LMA发送 PBU消息, 所 述 PBU消息中携带所述待注册接口的 ID;  201. The interface to be registered accesses the MAG through the access authentication, and the MAG sends a PBU message to the LMA, where the PBU message carries the ID of the interface to be registered.
202、 LMA接收该 PBU并接受其注册, 为所述接口分配一个 HNP, 建立所 述待注册接口相应的 BCE , 并将所述 HNP存储在所述 BCE中;  202. The LMA receives the PBU and accepts the registration, allocates an HNP to the interface, establishes a BCE corresponding to the interface to be registered, and stores the HNP in the BCE.
LMA接收该 PBU消息后,判断为新连接,为所述待注册接口分配一个 HNP; 该 HNP可以是与其它已注册接口不同的 HNP,也可以是与某些已注册接口相同 的 HNP。 建立所述待注册接口相应的 BCE , 所述 BCE中包含 LMA为待注册接 口分配的 HNP、 与待注册接口连接的顯的 NAI、 待注册接口的 ID、 接入待注 册接口的 MAG地址等。  After receiving the PBU message, the LMA determines that it is a new connection, and allocates an HNP to the to-be-registered interface; the HNP may be a different HNP than other registered interfaces, or may be the same HNP as some registered interfaces. The BCE corresponding to the interface to be registered is set up, and the BCE includes an HNP allocated by the LMA to the interface to be registered, an explicit NAI connected to the interface to be registered, an ID of the interface to be registered, and an MAG address to be accessed by the interface to be registered.
可以在所述 BCE中添加状态标识, 以识别 BCE是否包含为待注册接口配 置的 IP地址。 新创建的 BCE中不包含为待注册接口配置的 IP地址, 还不能 完全根据该 BCE 转发报文, 因此, 设置所述 BCE 的状态标识为未激活状态 ( ending )。  A status identifier may be added to the BCE to identify whether the BCE contains an IP address configured for the interface to be registered. The newly created BCE does not contain the IP address configured for the interface to be registered. The BCE cannot be forwarded according to the BCE. Therefore, the status of the BCE is set to the inactive state.
203、 LMA向 MAG发送 PBA消息,该 PBA消息携带分配给待注册接口的 HNP; 该 PBA消息还可以携带家乡地址标志, 以使 MAG根据所述家乡地址标志, 获知需要获取为待注册接口配置的 IP地址。 所述家乡地址标志可以通过多种 方式实现, 例如, LMA在 PBA消息中添加标志 "U" , 向 MAG表明希望获得待注 册接口的家乡地址信息。  203. The LMA sends a PBA message to the MAG, where the PBA message carries the HNP allocated to the interface to be registered. The PBA message may also carry the home address identifier, so that the MAG learns that the MAG needs to obtain the interface to be registered according to the home address identifier. IP address. The home address flag can be implemented in various ways. For example, the LMA adds a flag "U" to the PBA message to indicate to the MAG that it wishes to obtain the home address information of the interface to be registered.
204、 MAG接收该 PBA消息后, 通过待注册接口发送 RA; 与待注册接口连 接的顯接收 RA后, 根据 RA携带的 HNP为待注册接口配置 IP地址。 204. After receiving the PBA message, the MAG sends the RA through the interface to be registered; and connects to the interface to be registered. After receiving the received RA, the HNP carried by the RA is configured with an IP address for the interface to be registered.
205、 MAG获取为待注册接口配置的 IP地址;  205. The MAG obtains an IP address configured for the interface to be registered.
MAG可以通过适当的机制查询获得为待注册接口配置的 IP地址, 比如 ND ( Neighbor Di scovery , 邻居发现)、 DHCP ( Dynamic Hos t Conf igura t ion Protocol , 动态主机分配协议)、 Ping机制或其它方法。 在本发明实施例中, MAG通过反向查询机制获得为待注册接口配置的 IP地址, 即根据 MN的 l ink layer地址查询对应的 IP地址。  The MAG can obtain the IP address configured for the interface to be registered through an appropriate mechanism, such as ND (Neighbor Di scovery), DHCP (Dynamic Hosting Protocol), ping mechanism, or other methods. . In the embodiment of the present invention, the MAG obtains the IP address configured for the interface to be registered through the reverse query mechanism, that is, queries the corresponding IP address according to the l ink layer address of the MN.
206、 MAG再次向 LMA发送 PBU消息, 所述 PBU消息即第二代理绑定更新 消息, 所述 PBU消息携带 MAG获取的为待注册接口配置的 IP地址;  The MAG sends the PBU message to the LMA again, where the PBU message is the second proxy binding update message, where the PBU message carries the IP address obtained by the MAG for the interface to be registered;
可以通过现有 PBU 消息中的家乡网络前缀选项承载为待注册接口配置的 IP地址, 此时, 将所述家乡网络前缀选项的 Length设置为 128 ; 也可以定义 PBU消息中新的选项, 通过所述新的选项 7 载为待注册接口配置的 IP地址。  You can use the home network prefix option in the existing PBU message to carry the IP address configured for the interface to be registered. In this case, set the Length of the home network prefix option to 128. You can also define new options in the PBU message. The new option 7 describes the IP address configured for the interface to be registered.
207、 LMA接收所述 PBU消息后, 将为待注册接口配置的 IP地址置入与所 述待注册接口对应的 BCE中; 并设置所述 BCE的状态标识为激活状态。  207. After receiving the PBU message, the LMA sets the IP address configured for the interface to be registered into the BCE corresponding to the interface to be registered; and sets the status identifier of the BCE to an active state.
LMA根据所述 PBU消息, 将为待注册接口配置的 IP地址置入与待注册接 口对应的 BCE中: 可以将所述 BCE中的家乡网络前缀条目中的待注册接口的 HNP更改成为待注册接口配置的 IP地址,此时,将家乡网络前缀条目的 Length 设置为 128 ; 也可以在所述 BCE中增加一项家乡地址条目, 将为待注册接口配 置的 IP地址置入家乡地址条目。  The LMA is configured to insert the IP address configured for the interface to be registered into the BCE corresponding to the interface to be registered according to the PBU message: The HNP of the interface to be registered in the home network prefix entry in the BCE may be changed to the interface to be registered. Configure the IP address. In this case, set the Length of the home network prefix entry to 128. You can also add a home address entry to the BCE to place the IP address configured for the interface to be registered into the home address entry.
此时的 BCE中包含为待注册接口配置的 IP地址, 可以据此转发报文, 因 此, 设置所述 BCE的状态标识为激活状态 (act ive )。  The BCE at this time contains the IP address configured for the interface to be registered, and the packet can be forwarded accordingly. Therefore, the status of the BCE is set to the active state (act ive).
当 LMA接收报文后, LMA确定与所述报文的目的地址匹配的 BCE, 获取所 述 BCE中记录的 MAG地址; 将报文转发至所述 MAG: 若接口配置的 IP地址置 入 BCE中的家乡网络前缀条目中, 则 LMA根据前缀匹配原则来确定与报文的 目的地址匹配的唯一的 BCE, 将所述报文转发至所述 BCE中记录的 MAG; 若接 口配置的 IP地址置入 BCE中的家乡地址条目中, 则 LMA根据最长匹配原则来 确定与 4艮文的目的地址匹配的唯一的 BCE ,将所述 文转发至所述 BCE中记录 的 MAG。 After the LMA receives the packet, the LMA determines the BCE that matches the destination address of the packet, and obtains the MAG address recorded in the BCE; forwards the packet to the MAG: If the IP address configured on the interface is placed in the BCE In the home network prefix entry, the LMA determines the unique BCE that matches the destination address of the packet according to the prefix matching principle, and forwards the packet to the MAG recorded in the BCE; In the home address entry in BCE, LMA is based on the longest matching principle. Determining a unique BCE that matches the destination address of the message, and forwarding the message to the MAG recorded in the BCE.
本发明实施例提供的 PMIPv6中接口前缀的注册方法, 在节约了以 HNP为 前缀的 IP地址资源的同时, 还通过 LMA在注册时, 将为待注册接口配置的 IP 地址置入与所述待注册接口对应的 BCE ,从而使 LMA在转发报文时, 可以根据 IP地址匹配得到唯一的 BCE , 将所述 文转发到所述 BCE记录的 MAG ,避免了 同时将报文转发给多个移动接入网关引起的资源浪费和网络安全问题, 进一 步节约网络资源, 保证数据安全。  The method for registering an interface prefix in the PMIPv6 provided by the embodiment of the present invention saves the IP address resource prefixed by the HNP, and also inserts the IP address configured for the interface to be registered with the LMA when registering through the LMA. Registering the BCE corresponding to the interface, so that when the LMA forwards the packet, the LMA can obtain a unique BCE according to the IP address matching, and forward the packet to the MAG of the BCE record, so as to avoid forwarding the packet to multiple mobile interfaces at the same time. Resource waste and network security problems caused by gateways further save network resources and ensure data security.
实施例三  Embodiment 3
本发明实施例还提供了另一种 PMIPv6中接口前缀的注册方法, 如图 3所 示, 本发明实施例 PMIPv6中接口前缀的注册方法, 包括:  The embodiment of the present invention further provides a method for registering an interface prefix in the PMIPv6. As shown in FIG. 3, the method for registering an interface prefix in the PMIPv6 according to the embodiment of the present invention includes:
301、 LMA接收 MAG发送的 PBU消息, 所述 PBU消息中携带待注册接口的 301. The LMA receives the PBU message sent by the MAG, where the PBU message carries the interface to be registered.
ID; ID;
各个接口连接不同的 MAG , 触发 MAG发起接口注册过程。  Each interface is connected to a different MAG, and the MAG initiates the interface registration process.
302、 LMA为所述待注册接口分配一个 HNP , 并将所述 HNP存储在为所述 待注册接口创建的 BCE中;  302. The LMA allocates an HNP to the to-be-registered interface, and stores the HNP in the BCE created for the to-be-registered interface.
LMA为各接口分配 HNP , 为各接口创建对应的 BCE。 可以在 BCE中添加状 态标识, 以识别该 BCE中是否包含为已注册接口配置的 IP地址。 如果该 BCE 中不包含为已注册接口配置的 IP地址, 则设置所述 BCE的状态标识为未激活 状态( pend ing )。 如果该 BCE中包含为已注册接口配置的 IP地址, 则设置所 述 BCE的状态标识为激活状态 (ac t i ve )。  The LMA allocates HNPs for each interface and creates corresponding BCEs for each interface. A status identifier can be added to the BCE to identify whether the BCE contains an IP address configured for the registered interface. If the BCE does not contain an IP address configured for the registered interface, set the status of the BCE to the inactive state (pend ing). If the BCE contains an IP address configured for the registered interface, set the status of the BCE to the active state (ac t ve ).
303、 LMA向 MAG发送 PBA消息。  303. The LMA sends a PBA message to the MAG.
在该 PBA消息中携带 LMA为待注册接口分配的 HNP。 MAG接收到 LMA发送 的 PBA消息后, 向 MN发送 RA。 与各接口连接的 MN接收所述 RA后, 根据 RA 中携带的 HNP为各接口配置各自的 IP地址。  The PNP carries the HNP allocated by the LMA to the interface to be registered. After receiving the PBA message sent by the LMA, the MAG sends an RA to the MN. After receiving the RA, the MN connected to each interface configures its own IP address for each interface according to the HNP carried in the RA.
304、 LMA接收报文, 确定与所述报文的目的地址匹配的 BCE , 获取所述 BCE中记录的 MAG地址, 将 4艮文转发至所述 MAG。 304. The LMA receives the packet, determines a BCE that matches the destination address of the packet, and obtains the The MAG address recorded in the BCE is forwarded to the MAG.
LMA接收报文后, 解析报文头部, 获取报文的目的地址。 如果 LMA查找到 与所述 文的目的地址匹配的 BCE , 则向该 BCE记录的 MAG转发 4艮文。  After receiving the packet, the LMA parses the packet header to obtain the destination address of the packet. If the BMA finds a BCE that matches the destination address of the document, it forwards the message to the MAG of the BCE record.
305、 当获取不到与所述 文的目的地址匹配的 BCE时, 确定与所述 ^艮文 的目的地址前缀匹配且状态标识为未激活状态的 BCE;  305. When a BCE that does not match the destination address of the text is obtained, determine a BCE that matches the destination address prefix of the ^艮 and the status identifier is inactive.
假设接口 1与接口 2共享同一 HNP, 接口 1对应的 BCE1不包含为接口 1 配置的 IP地址, 并且接口 2对应的 BCE2也不包含为接口 2配置的 IP地址。 假设 LMA接收的报文的目的地址是接口 1的 IP地址。 因此, LMA查找到与所 述报文的目的地址前缀匹配且标识状态为 "pending" 的 BCE1 和 BCE2。 LMA 緩存所述报文。  Assume that interface 1 and interface 2 share the same HNP. BCE1 corresponding to interface 1 does not contain the IP address configured for interface 1, and BCE2 corresponding to interface 2 does not contain the IP address configured for interface 2. Assume that the destination address of the packet received by the LMA is the IP address of interface 1. Therefore, the LMA finds BCE1 and BCE2 that match the destination address prefix of the message and identifies the status as "pending". The LMA caches the message.
306、 LMA获取所述 BCE中记录的已注册接口的 ID及与所述已注册接口相 对应的 MAG地址, LMA向所述 MAG发送网络地址请求消息, 所述网络地址请求 消息携带所述已注册接口的 ID;  306. The LMA acquires the ID of the registered interface recorded in the BCE and the MAG address corresponding to the registered interface, and the LMA sends a network address request message to the MAG, where the network address request message carries the registered The ID of the interface;
LMA获取 BCE1中记录的接口 1的 ID和 MAG1地址。 LMA获取 BCE2中记录 的接口 2的 ID和 MAG2地址。  The LMA obtains the ID of interface 1 and the MAG1 address recorded in BCE1. The LMA obtains the ID of interface 2 and the MAG2 address recorded in BCE2.
LMA构建网络地址请求消息, 向 MAG 1、 MAG 2分别发送网络地址请求信息, 发送至 MAG1的网络地址请求信息携带所述报文的目的地址,接口 1的 ID、 与 接口 1连接的 MN的 NAI、 分配给接口 1的 HNP; 发送至 MAG 2的网络地址请求 信息携带所述报文的目的地址, 接口 2的 ID、 与接口 2连接的 MN的 NAI、 分 配给接口 2的 HNP。 所述网络地址请求信息用于请求接口的 ID与为接口配置 的 IP地址的对应关系。  The LMA constructs a network address request message, and sends network address request information to the MAG 1 and the MAG 2 respectively. The network address request information sent to the MAG1 carries the destination address of the packet, the ID of the interface 1, and the NAI of the MN connected to the interface 1. The HNP assigned to the interface 1; the network address request information sent to the MAG 2 carries the destination address of the message, the ID of the interface 2, the NAI of the MN connected to the interface 2, and the HNP assigned to the interface 2. The network address request information is used to request the correspondence between the ID of the interface and the IP address configured for the interface.
307、 所述 MAG接收该网络地址请求消息后, 获取为所述已注册接口配置 的 IP地址;  307. After receiving the network address request message, the MAG obtains an IP address configured for the registered interface.
MAG1接收该网络地址请求消息后, 通过相关合适的机制查询获得为接口 1配置的 IP地址, 即获得接口 1的 ID与其 IP地址的对应关系, 例如可以利 用 P ing机制过程、 ND过程以及 DHCP等来获取。 MAG2接收该网络地址请求消 息后, 以同样方式查询获得接口 2的 ID与其 IP地址的对应关系。 After receiving the network address request message, the MAG1 obtains the IP address configured for the interface 1 by using an appropriate mechanism, that is, obtains the correspondence between the ID of the interface 1 and its IP address, for example, the Ping mechanism process, the ND process, the DHCP, and the like. Come to get. MAG2 receives the network address request cancellation After the information is obtained, the corresponding relationship between the ID of the interface 2 and its IP address is obtained in the same manner.
308、 所述 MAG向 LMA发送网络地址响应消息, 所述网络地址响应消息携 带所述 MAG获取的为所述已注册接口配置的 IP地址。  308. The MAG sends a network address response message to the LMA, where the network address response message carries an IP address configured by the MAG for the registered interface.
MAGI、 MAG 2分别向 LMA发送网络地址响应消息; MAG1发送的网络地址响 应消息携带接口 1的 ID、为接口 1配置的 IP地址、与接口 1连接的 MN的 NAI 以及分配给接口 1的 HNP; MAG2发送的网络地址响应消息携带接口 2的 ID、 为接口 2配置的 IP地址、与接口 2连接的 MN的 NAI以及分配给接口 2的 HNP。  The MAGI and MAG 2 respectively send a network address response message to the LMA; the network address response message sent by the MAG1 carries the ID of the interface 1, the IP address configured for the interface 1, the NAI of the MN connected to the interface 1, and the HNP allocated to the interface 1; The network address response message sent by the MAG2 carries the ID of the interface 2, the IP address configured for the interface 2, the NAI of the MN connected to the interface 2, and the HNP assigned to the interface 2.
309、 LMA根据接收的网络地址响应消息, 更新与所述报文的目的地址前 缀匹配且状态标识为未激活状态的 BCE, 将为所述已注册接口配置的 IP地址 置入与所述已注册接口对应的 BCE , 设置所述 BCE的状态标识为激活状态。  309. The LMA updates, according to the received network address response message, a BCE that matches the destination address prefix of the packet and the status identifier is inactive, and places the IP address configured for the registered interface into the registered The BCE corresponding to the interface sets the status of the BCE to the active state.
LMA根据接收的来自 MAG1的网络地址响应消息, 更新 BCE1 , 将为接口 1 配置的 IP地址置入 BCE1中, 可以将 BCE1中的家乡网络前缀条目中的接口 1 的 HNP更改为接口 1配置的 IP地址, 此时, 将家乡网络前缀条目的 Length 设置为 128 ; 也可以在 BCE1中增加一项家乡地址条目, 将为接口 1配置的 IP 地址存入家乡地址条目。 此时的 BCE1中包含为接口 1配置的 IP地址, 因此, BCE1的状态标识更改为 "act ive"。  The LMA updates the BCE1 according to the received network address response message from MAG1, and sets the IP address configured for interface 1 to BCE1. The HNP of interface 1 in the home network prefix entry in BCE1 can be changed to the IP configured on interface 1. Address, at this time, set the Length of the home network prefix entry to 128; you can also add a home address entry to BCE1 to store the IP address configured for interface 1 in the home address entry. BCE1 at this time contains the IP address configured for interface 1. Therefore, the status ID of BCE1 is changed to "act ive".
LMA根据接收的来自 MAG2的网络地址响应消息, 以同样方式, 将为接口 2配置的 IP地址置入 BCE2中, BCE2的状态标识更改为 "act ive"。  In the same way, the LMA puts the IP address configured for interface 2 into BCE2 according to the received network address response message from MAG2. The status identifier of BCE2 is changed to "active".
更新完成后, LMA查找与所述报文的目的地址匹配的 BCE。 若接口配置的 IP地址置入 BCE中的家乡网络前缀条目中, 则 LMA根据前缀匹配原则来确定 与才艮文的目的地址匹配的唯一的 BCE, 将所述 文转发至所述 BCE 中记录的 MAG; 若接口配置的 IP地址置入 BCE中的家乡地址条目中, 则 LMA根据最长 匹配原则来确定与报文的目的地址匹配的唯一的 BCE,将所述报文转发至所述 BCE中记录的 MAG。 LMA利用上述方式中的一种, 查找到与所述报文的目的地 址匹配的 BCE1 , LMA将緩存的报文转发至 BCE1中记录的 MAG1。  After the update is complete, the LMA looks for a BCE that matches the destination address of the message. If the IP address configured on the interface is placed in the home network prefix entry in the BCE, the LMA determines the unique BCE that matches the destination address of the source according to the prefix matching principle, and forwards the file to the record in the BCE. If the IP address configured on the interface is placed in the home address entry in the BCE, the LMA determines the unique BCE that matches the destination address of the packet according to the longest match criterion, and forwards the packet to the BCE. Recorded MAG. The LMA uses the foregoing method to find the BCE1 that matches the destination address of the packet, and the LMA forwards the buffered packet to the MAG1 recorded in the BCE1.
本发明实施例提供的 PMIPv6中接口前缀的注册方法, 在节约了以 HNP为 前缀的 IP地址资源的同时, 还通过 LMA在接收报文时, 在未获取到与所述报 文的目的地址匹配的 BCE 的情况下, 确定与所述 ·艮文的目的地址前缀匹配且 状态标识为未激活状态的 BCE,指示 MAG获取并返回所述 BCE中记录的接口所 配置的 IP地址,并将为所述接口所配置的 IP地址置入与所述接口对应的 BCE , LMA在更新后, 重新查找与所述^艮文的目的地址匹配的 BCE, 将所述 文正确 转发到相应的 MAG, 从而使 LMA在转发报文时, 可以根据 IP地址匹配得到唯 一的 BCE, 将所述报文转发到所述 BCE记录的 MAG, 避免了同时将报文转发给 多个移动接入网关引起的资源浪费和网络安全问题, 进一步节约网络资源, 保证数据安全。 The method for registering an interface prefix in PMIPv6 provided by the embodiment of the present invention saves HNP as The IP address resource of the prefix is also determined by the LMA when the LMA receives the packet, and if the BCE matching the destination address of the packet is not obtained, the destination address prefix matches the state and the state is determined. The BCE, which is inactive, indicates that the MAG obtains and returns the IP address configured by the interface recorded in the BCE, and places the BCE corresponding to the interface with the IP address configured for the interface, and the LMA is updated. Then, the BCE that matches the destination address of the packet is re-discovered, and the packet is correctly forwarded to the corresponding MAG, so that when the LMA forwards the packet, the LMA can obtain a unique BCE according to the IP address matching, and the The packet is forwarded to the MAG of the BCE record, which avoids resource waste and network security caused by forwarding the packet to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.
实施例四  Embodiment 4
本发明实施例还可以在实施例二所描述的前缀注册方法的基础上, 提供 另一种 PMIPv6 中接口前缀的注册方法, 如图 4所示, 本发明实施例 PMIPv6 中接口前缀的注册方法, 包括:  The embodiment of the present invention can also provide another method for registering an interface prefix in the PMIPv6 based on the prefix registration method described in the second embodiment. As shown in FIG. 4, the method for registering an interface prefix in the PMIPv6 according to the embodiment of the present invention is Includes:
401 - 407同实施例二中的步骤 201 ~ 207。  401 - 407 are the same as steps 201 ~ 207 in the second embodiment.
408、 LMA接收报文, 确定与所述报文的目的地址匹配的 BCE, 获取所述 BCE中记录的 MAG地址, 将 4艮文转发至所述 MAG。  408. The LMA receives the packet, determines the BCE that matches the destination address of the packet, and obtains the MAG address recorded in the BCE, and forwards the message to the MAG.
409、 当获取不到与所述 ^艮文的目的地址匹配的 BCE时, 确定与所述 ^艮文 的目的地址前缀匹配且状态标识为未激活状态的 BCE;  409. When a BCE that does not match the destination address of the ciphertext is obtained, determine a BCE that matches the destination address prefix of the 艮 且 and the status identifier is inactive.
当 LMA获取不到与所述报文的目的地址匹配的 BCE时, LMA会查找到至少 一个与所述报文的目的地址前缀匹配且不包含为已注册接口配置的 IP地址的 BCE。  When the BMA does not obtain the BCE that matches the destination address of the packet, the LMA searches for at least one BCE that matches the destination address prefix of the packet and does not include the IP address configured for the registered interface.
410、 LMA获取所述 BCE中记录的已注册接口的 ID及与所述已注册接口相 对应的 MAG地址, LMA向所述 MAG发送网络地址请求消息, 所述网络地址请求 消息携带所述已注册接口的 ID;  The LMA acquires the ID of the registered interface recorded in the BCE and the MAG address corresponding to the registered interface, and the LMA sends a network address request message to the MAG, where the network address request message carries the registered The ID of the interface;
LMA构建的网络地址请求消息用于请求已注册接口的 ID与为已注册接口 配置的 IP地址的对应关系,所述网络地址请求消息携带所述 ·艮文的目的地址, 已注册接口的 ID、 与已注册接口连接的顯的 NAI、分配给已注册接口的 HNP,The network address request message of the LMA is used to request the correspondence between the ID of the registered interface and the IP address configured for the registered interface, where the network address request message carries the destination address of the message. The ID of the registered interface, the explicit NAI connected to the registered interface, and the HNP assigned to the registered interface.
411、 所述 MAG接收该网络地址请求消息后, 获取为所述已注册接口配置 的 IP地址; 411. After receiving the network address request message, the MAG obtains an IP address configured for the registered interface.
所述 MAG接收该网络地址请求消息后, 通过相关合适的机制查询获得为 所述已注册接口配置的 IP地址, 即获得所述已注册接口的 ID与为所述已注 册接口配置的 IP地址的对应关系, 例如可以利用 Ping机制过程、 ND过程以 及 DHCP等来获取。  After receiving the network address request message, the MAG obtains an IP address configured for the registered interface by using an appropriate mechanism, that is, obtaining an ID of the registered interface and an IP address configured for the registered interface. The correspondence relationship can be obtained, for example, by using a Ping mechanism process, an ND process, and DHCP.
412、 所述 MAG向 LMA发送网络地址响应消息, 所述网络地址响应消息携 带所述 MAG获取的为所述已注册接口配置的 IP地址。  412. The MAG sends a network address response message to the LMA, where the network address response message carries an IP address configured by the MAG for the registered interface.
所述网络地址响应消息携带已注册接口的 ID、为已注册接口配置的 IP地 址、 与已注册接口连接的 MN的 NAI以及分配给已注册接口的 HNP。  The network address response message carries the ID of the registered interface, the IP address configured for the registered interface, the NAI of the MN connected to the registered interface, and the HNP assigned to the registered interface.
413、 LMA根据接收的网络地址响应消息, 更新与所述报文的目的地址前 缀匹配且状态标识为未激活状态的 BCE, 将为所述已注册接口配置的 IP地址 置入所述已注册接口对应的 BCE, 设置所述状态标识为激活状态。  413. The LMA updates the BCE that matches the destination address prefix of the packet and the status identifier is inactive according to the received network address response message, and places the IP address configured for the registered interface into the registered interface. The corresponding BCE sets the status identifier to an active state.
如果 LMA在步骤 407中, 将为已注册接口配置的 IP地址更新置入对应的 BCE的家乡网络前缀条目中, 则 LMA在此时同样将为已注册接口配置的 IP地 址更新置入对应的 BCE 的家乡网络前缀条目中, 并将家乡网络前缀条目的 Length设置为 128。 如果 LMA在步骤 407中, 将为已注册接口配置的 IP地址 更新置入对应的 BCE的家乡地址条目中, 则 LMA在此时同样在与已注册接口 对应的 BCE中增加一项家乡地址条目, 将为已注册接口配置的 IP地址更新置 入所述 BCE的家乡地址条目中。并且,将所述 BCE的状态标识更改为 "act ive"。  If the LMA is placed in the home network prefix entry of the corresponding BCE in step 407, the LMA will also place the corresponding BCE for the IP address of the registered interface. In the home network prefix entry, set the Length of the home network prefix entry to 128. If the LMA adds the IP address update configured for the registered interface to the home address entry of the corresponding BCE in step 407, the LMA also adds a home address entry to the BCE corresponding to the registered interface. The IP address update configured for the registered interface is placed in the home address entry of the BCE. Also, change the status flag of the BCE to "act ive".
本发明实施例提供的 PMIPv6中接口前缀的注册方法, 在节约了以 HNP为 前缀的 IP地址资源的同时, 还通过 LMA在接收报文时, 在未获取到与所述报 文的目的地址匹配的 BCE 的情况下, 确定与所述 ·艮文的目的地址前缀匹配且 状态标识为未激活状态的 BCE,指示 MAG获取并返回所述 BCE中记录的接口所 配置的 I P地址, 并将为所述接口配置的 I P地址置入与所述接口对应的 BCE。 因此, 如果在 LMA注册时, MAG未获取到为待注册接口配置的 IP地址, 因而 LMA中该接口对应的 BCE未得到更新 IP地址, LMA还可以在接收报文时, 再 次进行更新相应 BCE , 从而使 LMA重新查找到与所述报文的目的地址匹配的 BCE , 并将所述报文正确转发到相应的 MAG。 避免了同时将报文转发给多个移 动接入网关引起的资源浪费和网络安全问题, 从而进一步节约网络资源, 保 证数据安全。 The method for registering the interface prefix in the PMIPv6 provided by the embodiment of the present invention saves the IP address resource prefixed by the HNP, and also does not obtain the destination address of the packet when the LMA receives the packet. In the case of the BCE, the BCE that matches the destination address prefix of the message and the status identifier is inactive is determined, instructing the MAG to obtain and return the IP address configured by the interface recorded in the BCE, and The IP address configured on the interface is placed in the BCE corresponding to the interface. Therefore, if the MAG does not obtain the IP address configured for the interface to be registered when the LMA is registered, the BCE corresponding to the interface in the LMA does not get the updated IP address, and the LMA can update the corresponding BCE again when receiving the packet. Therefore, the LMA re-discovers the BCE that matches the destination address of the packet, and forwards the packet to the corresponding MAG correctly. It avoids resource waste and network security problems caused by forwarding packets to multiple mobile access gateways at the same time, thereby further saving network resources and ensuring data security.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流 程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于 一计算机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施 例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体( Read-Only Memory, ROM )或随机存储记忆体 ( Random Acces s Memory, RAM )等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Acces s Memory (RAM).
实施例五  Embodiment 5
本发明实施例提供一种本地移动锚点。 如图 5 所示, 本发明实施例本地 移动锚点, 包括:  Embodiments of the present invention provide a local mobility anchor point. As shown in FIG. 5, the local mobility anchor point in the embodiment of the present invention includes:
消息接收单元 501 , 用于接收 MAG发送的 PBU消息, 所述 PBU消息中携带 待注册接口的 ID;  The message receiving unit 501 is configured to receive a PBU message sent by the MAG, where the PBU message carries an ID of the interface to be registered;
目录设置单元 502 , 与消息接收单元 501连接, 用于为所述待注册接口分 配与已注册接口相同的 HNP , 并将所述 HNP存储在为所述待注册接口创建的 BCE中;  a directory setting unit 502, configured to be connected to the message receiving unit 501, configured to allocate the same HNP as the registered interface to the to-be-registered interface, and store the HNP in the BCE created for the to-be-registered interface;
消息发送单元 503 ,与目录设置单元 502连接,用于向 MAG发送 PBA消息, 所述 PBA消息中携带为所述待注册接口分配的 HNP。  The message sending unit 503 is connected to the directory setting unit 502, and is configured to send a PBA message to the MAG, where the PBA message carries the HNP allocated for the interface to be registered.
本发明实施例提供的本地移动锚点, 通过为不同接口分配同一 HNP , 连接 所述接口的 MN根据该 HNP为所述接口配置 IP地址; 解决了 IP地址资源被浪 费的问题。 同时, 本发明实施例通过为各个接口配置同一家乡网络前缀的不 同 IP地址, 使得本地移动锚点能够根据各接口的 IP地址将收到的报文正确 转发给相应的移动接入网关, 避免了同时将报文转发给多个移动接入网关引 起的资源浪费和网络安全问题。 The local mobility anchor provided by the embodiment of the present invention allocates the same HNP to different interfaces, and the MN that connects the interface configures an IP address for the interface according to the HNP. The problem that the IP address resource is wasted is solved. At the same time, the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding Forwarding packets to multiple mobile access gateways at the same time Resource waste and network security issues.
实施例六  Embodiment 6
还可以在实施例五所描述的本地移动锚点中添加状态标识设置单元、 家 乡地址标志添加单元、 接口地址置入单元及地址匹配单元, 使 LMA可以利用 接口的 IP地址与报文的目的地址匹配转发报文, 如图 6所示。  The state identification setting unit, the home address flag adding unit, the interface address placing unit, and the address matching unit may be added to the local mobility anchor described in the fifth embodiment, so that the LMA can use the IP address of the interface to match the destination address of the packet. Forward the packet, as shown in Figure 6.
状态标识设置单元 604 , 与目录设置单元 602连接, 用于在创建 BCE时, 设置所述 BCE的状态标识为未激活状态; 与接口地址置入单元 605连接, 用 于在将为待注册或已注册接口配置的 IP地址置入 BCE时, 设置所述 BCE的状 态标识为激活状态。  The status identifier setting unit 604 is connected to the directory setting unit 602, and is configured to set the status of the BCE to an inactive state when the BCE is created; and connect with the interface address placing unit 605 for being to be registered or When the IP address of the registered interface is placed in the BCE, the status of the BCE is set to the active state.
家乡地址标志添加单元 607 , 与消息发送单元 603连接, 用于在所述代理 绑定确认消息中添加家乡地址标志, 以使移动接入网关根据所述家乡地址标 志, 获知需要获取为接口配置的 IP地址;  The home address identifier adding unit 607 is connected to the message sending unit 603, and is configured to add a home address flag to the proxy binding confirmation message, so that the mobile access gateway learns that the interface needs to be acquired as an interface according to the home address identifier. IP address;
相应地, MAG中添加了家乡地址标志获取单元、接口地址获取单元及接口 地址添加单元。 所述家乡地址标志获取单元, 用于获取接收的代理绑定确认 消息中的家乡地址标志。 所述接口地址获取单元, 与所述家乡地址标志获取 单元连接, 用于获取为所述已注册接口配置的 IP地址。 所述接口地址添加单 元, 与所述接口地址获取单元连接, 用于将获取的所述 I P地址添加到 PBU消 息中。  Correspondingly, a home address flag acquisition unit, an interface address acquisition unit, and an interface address addition unit are added to the MAG. The home address identifier obtaining unit is configured to acquire a home address identifier in the received proxy binding confirmation message. The interface address obtaining unit is connected to the home address identifier obtaining unit, and configured to acquire an IP address configured for the registered interface. The interface address adding unit is connected to the interface address obtaining unit, and is configured to add the obtained IP address to the PBU message.
接口地址置入单元 605 , 与消息接收单元 601连接, 用于将接收的第二代 理绑定更新消息中的为已注册接口配置的网络地址置入与所述已注册接口相 对应的绑定緩存目录, 即将再次接收的代理绑定更新消息中的为已注册接口 配置的 IP地址置入与所述已注册接口相对应的 BCE;  The interface address setting unit 605 is connected to the message receiving unit 601, and configured to put the network address configured for the registered interface in the received second proxy binding update message into the binding cache corresponding to the registered interface. The directory, the IP address configured for the registered interface in the proxy binding update message to be received again, is placed in the BCE corresponding to the registered interface;
地址匹配单元 606 , 与接口地址置入单元 605连接, 用于转发报文时, 确 定与所述 4艮文的目的地址匹配的 BCE。  The address matching unit 606 is connected to the interface address placing unit 605, and is configured to determine a BCE that matches the destination address of the message when the packet is forwarded.
LMA在注册时, 将为待注册接口配置的 IP地址置入与所述待注册接口对 应的 BCE, 从而使 LMA在转发报文时, 根据地址匹配得到唯一的 BCE, 将所述 报文转发到所述 BCE记录的 MAG ,避免了同时将报文转发给多个移动接入网关 引起的资源浪费和网络安全问题, 进一步节约网络资源, 保证数据安全。 When the LMA registers, the BCE corresponding to the interface to be registered is placed in the IP address configured for the interface to be registered, so that when the LMA forwards the packet, the LMA obtains a unique BCE according to the address matching. The packet is forwarded to the MAG of the BCE record, which avoids resource waste and network security caused by forwarding the packet to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.
实施例七  Example 7
还可以在实施例五所描述的本地移动锚点中添加状态标识设置单元、 地 址匹配单元、 前缀匹配单元、 网络地址请求发送单元、 网络地址响应接收单 元及接口地址置入单元, 使 LMA可以利用接口的 IP地址与报文的目的地址匹 配转发 4艮文, 如图 7所示。  The state identification setting unit, the address matching unit, the prefix matching unit, the network address request sending unit, the network address response receiving unit, and the interface address placing unit may be added to the local mobility anchor described in Embodiment 5, so that the LMA can utilize the interface. The IP address matches the destination address of the packet and is forwarded as shown in Figure 7.
状态标识设置单元 704 , 与目录设置单元 702连接, 用于在创建 BCE时, 设置所述 BCE的状态标识为未激活状态; 与接口地址置入单元 705连接, 用 于在将为待注册或已注册接口配置的 IP地址置入 BCE时, 设置所述 BCE的状 态标识为激活状态。  The status identifier setting unit 704 is connected to the directory setting unit 702, and is configured to set the status identifier of the BCE to an inactive state when the BCE is created; and connect with the interface address placing unit 705, for being to be registered or already When the IP address of the registered interface is placed in the BCE, the status of the BCE is set to the active state.
地址匹配单元 706 , 与接口地址置入单元 705连接, 用于确定与所述报文 的目的地址匹配的 BCE;  The address matching unit 706 is connected to the interface address placing unit 705, and configured to determine a BCE that matches the destination address of the packet.
前缀匹配单元 708 , 与目录设置单元 702、 状态标识设置单元 704连接, 用于当所述地址匹配单元获取不到与所述 4艮文的目的地址匹配的 BCE 时, 确 定与所述^¾文的目的地址前缀匹配且状态标识为未激活状态的 BCE;  The prefix matching unit 708 is connected to the directory setting unit 702 and the state identifier setting unit 704, and configured to determine, when the address matching unit does not obtain the BCE that matches the destination address of the message, determine the file with the ^3⁄4 The BCE whose destination address prefix matches and whose status is identified as inactive;
网络地址请求发送单元 709 , 与前缀匹配单元 708连接, 用于向前缀匹配 单元确定的绑定緩存目录中的移动接入网关发送网络地址请求消息, 所述网 络地址请求消息携带与所述根据前缀匹配单元确定的绑定緩存目录相应的已 注册接口的标识符;  The network address request sending unit 709 is connected to the prefix matching unit 708, and configured to send a network address request message to the mobile access gateway in the binding cache directory determined by the prefix matching unit, where the network address request message carries the prefix according to the The identifier of the corresponding registered interface of the binding cache directory determined by the matching unit;
相应地, MAG中添加了网络地址请求接收单元、接口地址获取单元及网络 地址响应发送单元。 所述网络地址请求接收单元, 用于接收 LMA发送的网络 地址请求消息。 所述接口地址获取单元, 与所述网络地址请求接收单元连接, 用于获取为所述已注册接口配置的 IP地址。 所述网络地址响应发送单元, 与 所述接口地址获取单元连接, 用于向 LMA发送网络地址响应消息, 所述网络 地址响应消息携带为所述已注册接口配置的 I P地址。 网络地址响应接收单元 710 ,用于接收所述移动接入网关发送的网络地址 响应消息, 所述网络地址响应消息携带所述移动接入网关获取的为所述已注 册接口配置的 IP地址; Correspondingly, a network address request receiving unit, an interface address obtaining unit, and a network address response sending unit are added to the MAG. The network address request receiving unit is configured to receive a network address request message sent by the LMA. The interface address obtaining unit is connected to the network address request receiving unit, and configured to acquire an IP address configured for the registered interface. The network address response sending unit is connected to the interface address obtaining unit, and configured to send a network address response message to the LMA, where the network address response message carries an IP address configured for the registered interface. The network address response receiving unit 710 is configured to receive a network address response message sent by the mobile access gateway, where the network address response message carries an IP address configured by the mobile access gateway for the registered interface.
接口地址置入单元 705 , 与网络地址响应接收单元 710连接, 用于将为所 述已注册接口配置的 IP地址置入与所述已注册接口相对应的 BCE。  The interface address placement unit 705 is coupled to the network address response receiving unit 710 for placing an IP address configured for the registered interface into a BCE corresponding to the registered interface.
LMA在接收报文时,在未获取到与所述报文的目的地址匹配的 BCE的情况 下, 确定与所述 "¾文的目的地址前缀匹配且状态标识为未激活状态的 BCE , 指 示 MAG获取并返回所述 BCE中记录的接口所配置的 IP地址, 并将为所述接口 配置的 IP地址置入与所述接口对应的 BCE , LMA在更新后, 重新查找与所述 报文的目的地址匹配的 BCE , 将所述报文正确转发到相应的 MAG。 因此, LMA 可以利用接口的 IP 地址与 文的目的地址匹配, 将^艮文正确转发至相应的 MAG , 避免了同时将报文转发给多个移动接入网关引起的资源浪费和网络安全 问题, 进一步节约网络资源, 保证数据安全。  When receiving the BME, the LMA determines that the BCE that matches the destination address prefix of the "3⁄4 text" and the status identifier is inactive is in the case that the BCE matching the destination address of the packet is not obtained, indicating the MAG. Acquiring and returning the IP address configured by the interface recorded in the BCE, and placing the IP address configured for the interface into the BCE corresponding to the interface, and after the LMA is updated, re-finding the destination of the packet. The BCE that matches the address forwards the packet to the corresponding MAG. Therefore, the LMA can use the IP address of the interface to match the destination address of the text to forward the packet to the corresponding MAG. Resource waste and network security problems caused by forwarding to multiple mobile access gateways further save network resources and ensure data security.
实施例八  Example eight
还可以在实施例六所描述的本地移动锚点中添加前缀匹配单元、 网络地 址请求发送单元及网络地址响应接收单元, 使 LMA在转发报文时, 将所述报 文正确转发至相应的 MAG , 如图 8所示。  The prefix matching unit, the network address request sending unit, and the network address response receiving unit may be added to the local mobility anchor described in the sixth embodiment, so that the LMA correctly forwards the packet to the corresponding MAG when forwarding the packet. , as shown in Figure 8.
前缀匹配单元 808 , 与目录设置单元 802、 状态标识设置单元 804连接, 用于当获取不到与所述报文的目的地址匹配的 BCE 时, 确定与所述报文的目 的地址前缀匹配且状态标识为未激活状态的 BCE;  The prefix matching unit 808 is connected to the directory setting unit 802 and the state identifier setting unit 804, and is configured to determine, when the BCE matching the destination address of the packet is not obtained, the state and the destination address prefix of the packet match. BCE identified as inactive;
网络地址请求发送单元 809 , 与前缀匹配单元 808连接, 用于向所述移动 接入网关发送网络地址请求消息, 所述网络地址请求消息携带已注册接口的 标识符;  The network address request sending unit 809 is connected to the prefix matching unit 808, and configured to send a network address request message to the mobile access gateway, where the network address request message carries an identifier of the registered interface;
相应地, MAG中添加了网络地址请求接收单元、接口地址获取单元及网络 地址响应发送单元。 所述网络地址请求接收单元, 用于接收 LMA发送的网络 地址请求消息。 所述接口地址获取单元, 与所述网络地址请求接收单元连接, 用于获取为所述已注册接口配置的 IP地址。 所述网络地址响应发送单元, 与 所述接口地址获取单元连接, 用于向 LMA发送网络地址响应消息, 所述网络 地址响应消息携带为所述已注册接口配置的 I P地址。 Correspondingly, a network address request receiving unit, an interface address obtaining unit, and a network address response sending unit are added to the MAG. The network address request receiving unit is configured to receive a network address request message sent by the LMA. The interface address obtaining unit is connected to the network address request receiving unit, Used to obtain the IP address configured for the registered interface. The network address response sending unit is connected to the interface address obtaining unit, and configured to send a network address response message to the LMA, where the network address response message carries an IP address configured for the registered interface.
网络地址响应接收单元 810 , 与接口地址置入单元 805连接, 用于接收所 述移动接入网关发送的网络地址响应消息, 所述网络地址响应消息携带所述 移动接入网关获取的为所述已注册接口配置的 I P地址。  The network address response receiving unit 810 is connected to the interface address placing unit 805, and configured to receive a network address response message sent by the mobile access gateway, where the network address response message carries the mobile access gateway to obtain the The IP address of the configured interface.
LMA在接收报文时,在未获取到与所述报文的目的地址匹配的 BCE的情况 下, 确定与所述 "¾文的目的地址前缀匹配且状态标识为未激活状态的 BCE, 指 示 MAG获取并返回所述 BCE中记录的接口所配置的 IP地址, 并将为所述接口 配置的 IP地址置入与所述接口对应的 BCE。 因此, 如果在 LMA注册时, MAG 未获取到为待注册接口配置的 IP地址, 因而 LMA中该接口对应的 BCE未得到 更新 IP地址, LMA还可以在接收报文时, 再次进行更新相应 BCE, 从而使 LMA 重新查找到与所述 文的目的地址匹配的 BCE,并将所述>¾文正确转发到相应 的 MAG。避免了同时将报文转发给多个移动接入网关引起的资源浪费和网络安 全问题, 进一步节约网络资源, 保证数据安全。  When receiving the BME, the LMA determines that the BCE that matches the destination address prefix of the "3⁄4 text" and the status identifier is inactive is in the case that the BCE matching the destination address of the packet is not obtained, indicating the MAG. Obtaining and returning the IP address configured on the interface recorded in the BCE, and placing the IP address configured for the interface into the BCE corresponding to the interface. Therefore, if the MAG is not acquired, the MAG is not acquired. Registering the IP address configured on the interface. Therefore, the BCE corresponding to the interface in the LMA does not get the updated IP address. The LMA can update the corresponding BCE again when receiving the packet, so that the LMA can find the destination address of the document again. The BCE forwards the >3⁄4 text correctly to the corresponding MAG, which avoids resource waste and network security problems caused by forwarding the message to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.
实施例九  Example nine
本发明实施例提供一种 PMIPv6中接口前缀的注册系统。 如图 9所示, 本 发明实施例 PMIPv6中接口前缀的注册系统, 包括一个 LMA和至少一个 MAG, 所述 LMA与至少一个所述 MAG相连;  The embodiment of the invention provides a registration system for interface prefix in PMIPv6. As shown in FIG. 9, the system for registering an interface prefix in PMIPv6 includes an LMA and at least one MAG, and the LMA is connected to at least one MAG.
其中所述本地移动锚点 901 ,用于接收移动接入网关 902发送的 PBU消息, 所述 PBU消息中携带待注册接口的 ID, 本地移动锚点 901为所述待注册接口 分配与已注册接口相同的 HNP , 将所述 HNP存储在为所述待注册接口创建的 BCE中, 向移动接入网关 902发送 PBA消息;  The local mobility anchor point 901 is configured to receive a PBU message sent by the mobile access gateway 902, where the PBU message carries an ID of the interface to be registered, and the local mobility anchor point 901 allocates and registers the interface to the to-be-registered interface. The same HNP is stored in the BCE created for the interface to be registered, and sends a PBA message to the mobile access gateway 902;
所述移动接入网关 902 , 用于接收本地移动锚点 901发送的 PBA消息。 本发明实施例提供的 PMIPv6中接口前缀的注册系统, 通过为不同接口分 配同一 HNP, 连接所述接口的 MN根据该 HNP为所述接口配置 IP地址; 解决了 IP地址资源被浪费的问题。 同时, 本发明实施例通过为各个接口配置同一家 乡网络前缀的不同 IP地址, 使得本地移动锚点能够根据各接口的 IP地址将 收到的报文正确转发给相应的移动接入网关, 避免了同时将报文转发给多个 移动接入网关引起的资源浪费和网络安全问题。 The mobile access gateway 902 is configured to receive a PBA message sent by the local mobility anchor 901. The system for registering an interface prefix in the PMIPv6 provided by the embodiment of the present invention, by assigning the same HNP to different interfaces, the MN connecting the interface configures an IP address for the interface according to the HNP; The problem of IP address resources being wasted. At the same time, the embodiment of the present invention configures different IP addresses of the same home network prefix for each interface, so that the local mobility anchor can correctly forward the received packet to the corresponding mobile access gateway according to the IP address of each interface, thereby avoiding At the same time, the packet is forwarded to multiple mobile access gateways, which causes waste of resources and network security.
所述本地移动锚点 901还可以在为待注册接口创建 BCE时,设置所述 BCE 的状态标识为未激活状态; 在将为待注册或已注册接口配置的 IP地址置入对 应的 BCE时, 设置所述置入网络地址的 BCE的状态标识为激活状态。  The local mobility anchor 901 may also set the status of the BCE to an inactive state when the BCE is created for the interface to be registered; when the IP address configured for the interface to be registered or registered is placed in the corresponding BCE, Set the status of the BCE that is placed in the network address to the active state.
所述移动接入网关 902还可以在接收 PBA消息后, 获取所述 PBA消息中 为待注册接口配置的 IP地址, 向本地移动锚点 901发送携带为所述待注册接 口配置的 I P地址的 PBU消息, 所述 PBU消息即第二代理绑定更新消息。 本地 移动锚点 901再次接收移动接入网关 902发送的 PBU消息后, 将所述 PBU消 息中的为所述待注册接口配置的 IP地址置入与所述待注册接口相对应的 BCE , 并将所述 BCE的状态标识更改为激活状态; 本地移动锚点 901转发报文时, 获取与所述报文的目的地址匹配的 BCE中记录的移动接入网关 902的地址, 将所述报文转发给所述移动接入网关 902。  The mobile access gateway 902 may also obtain an IP address configured for the interface to be registered in the PBA message after receiving the PBA message, and send a PBU carrying the IP address configured for the interface to be registered to the local mobility anchor 901. The message, the PBU message is a second proxy binding update message. After the local mobility anchor 901 receives the PBU message sent by the mobile access gateway 902 again, the IP address configured for the to-be-registered interface in the PBU message is placed in the BCE corresponding to the to-be-registered interface, and The status identifier of the BCE is changed to an active state; when the local mobility anchor 901 forwards the packet, the address of the mobile access gateway 902 recorded in the BCE matching the destination address of the packet is obtained, and the packet is forwarded. The mobile access gateway 902 is provided.
因此, LMA在注册时, 将为待注册接口配置的 IP地址置入与所述待注册 接口对应的 BCE, 使 LMA在转发报文时, 根据地址匹配得到唯一的 BCE, 将所 述报文转发到所述 BCE记录的 MAG,避免了同时将报文转发给多个移动接入网 关引起的资源浪费和网络安全问题, 进而节约网络资源, 保证数据安全。  Therefore, when registering, the LMA will place a BCE corresponding to the interface to be registered for the IP address configured for the interface to be registered, so that when the LMA forwards the packet, the LMA obtains a unique BCE according to the address matching, and forwards the packet. The MAG recorded by the BCE avoids resource waste and network security problems caused by forwarding packets to multiple mobile access gateways at the same time, thereby saving network resources and ensuring data security.
或者所述本地移动锚点 901 还可以在转发报文并且获取不到与所述报文 的目的地址匹配的 BCE 时, 确定与所述 文的目的地址前缀匹配且状态标识 为未激活状态的 BCE,通过所述绑定緩存目录中记录的移动接入网关获取为所 述绑定緩存目录对应的已注册接口配置的网络地址, 并将所述获取的网络地 址置入对应的绑定緩存目录。 所述移动接入网关 902 , 用于获取为所述绑定緩 存目录对应的已注册接口配置的网络地址, 并将所述网络地址信息通知所述 本地移动锚点 901。 本地移动锚点 901向所述绑定緩存目录中记录的移动接入网关 902发送 网络地址请求消息, 所述网络地址请求消息携带所述 BCE 中记录的已注册接 口的 ID。 所述移动接入网关 902接收所述网络地址请求消息后, 获取为所述 已注册接口配置的 IP地址, 向本地移动锚点 901发送携带为所述已注册接口 配置的 IP地址的网络地址响应消息。 本地移动锚点 901接收所述移动接入网 关 902发送的网络地址响应消息, 所述网络地址响应消息携带所述移动接入 网关 902获取的为所述已注册接口配置的 IP地址; 将为所述已注册接口配置 的 IP地址置入与所述已注册接口相对应的 BCE; 本地移动锚点 901再次获取 与所述报文的目的地址匹配的 BCE ,将所述报文转发给所述 BCE中记录的移动 接入网关 902。 Or the local mobility anchor 901 may further determine, when the packet is forwarded and the BCE that matches the destination address of the packet is not obtained, the BCE that matches the destination address prefix of the document and the status identifier is inactive. Obtaining, by the mobile access gateway recorded in the binding cache directory, a network address configured for the registered interface corresponding to the binding cache directory, and placing the obtained network address into a corresponding binding cache directory. The mobile access gateway 902 is configured to acquire a network address configured for the registered interface corresponding to the binding cache directory, and notify the local mobility anchor 901 of the network address information. The local mobility anchor 901 sends a network address request message to the mobile access gateway 902 recorded in the binding cache directory, where the network address request message carries the ID of the registered interface recorded in the BCE. After receiving the network address request message, the mobile access gateway 902 obtains an IP address configured for the registered interface, and sends a network address response carrying the IP address configured for the registered interface to the local mobility anchor 901. Message. The local mobility anchor 901 receives the network address response message sent by the mobile access gateway 902, where the network address response message carries the IP address configured by the mobile access gateway 902 for the registered interface; The BCE corresponding to the registered interface is placed in the BCE corresponding to the registered interface; the local mobility anchor 901 acquires the BCE that matches the destination address of the packet, and forwards the packet to the BCE. Mobile access gateway 902 recorded in.
因此, LMA在接收报文时, 在未获取到与所述报文的目的地址匹配的 BCE 的情况下, 确定与所述 文的目的地址前缀匹配且状态标识为未激活状态的 BCE, 指示 MAG获取并返回所述 BCE中记录的接口所配置的 IP地址, 并将为 所述接口配置的 I P地址置入与所述接口对应的 BCE , 使 LMA在更新后, 重新 查找与所述 文的目的地址匹配的 BCE, 将所述 文正确转发到相应的 MAG, 避免了同时将报文转发给多个移动接入网关引起的资源浪费和网络安全问 题, 进一步节约网络资源, 保证数据安全。  Therefore, when receiving the BME, the LMA determines that the BCE that matches the destination address prefix of the packet and the status identifier is inactive is in the case that the BCE matching the destination address of the packet is not obtained, indicating the MAG. Acquiring and returning the IP address configured by the interface recorded in the BCE, and placing the IP address configured for the interface into the BCE corresponding to the interface, so that the LMA searches for the purpose of the text after the update. The BCEs that match the address correctly forward the text to the corresponding MAG, which avoids resource waste and network security problems caused by forwarding packets to multiple mobile access gateways at the same time, further saving network resources and ensuring data security.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权利 要求 书 Claim
1、 一种 PMIPv6中接口前缀的注册方法, 其特征在于, 包括:  A method for registering an interface prefix in PMIPv6, which is characterized in that:
接收移动接入网关发送的代理绑定更新消息, 所述代理绑定更新消息中携 带待注册接口的标识符;  Receiving a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered;
为所述待注册接口分配与已注册接口相同的家乡网络前缀, 并将所述家乡 网络前缀存储在为所述待注册接口创建的绑定緩存目录中;  Assigning, to the to-be-registered interface, a home network prefix that is the same as the registered interface, and storing the home network prefix in a binding cache directory created for the to-be-registered interface;
向移动接入网关发送代理绑定确认消息, 所述代理绑定确认消息中携带为 所述待注册接口分配的家乡网络前缀。  And sending a proxy binding acknowledgement message to the mobile access gateway, where the proxy binding acknowledgement message carries a home network prefix allocated for the to-be-registered interface.
2、 根据权利要求 1所述的 PMIPv6 中接口前缀的注册方法, 其特征在于, 为所述待注册接口创建的绑定緩存目录的状态标识为未激活状态。  The method for registering an interface prefix in the PMIPv6 according to claim 1, wherein the status of the binding cache directory created for the interface to be registered is an inactive state.
3、 根据权利要求 1所述的 PMIPv6 中接口前缀的注册方法, 其特征在于, 所述代理绑定确认消息还包括家乡地址标志, 以使移动接入网关根据所述家乡 地址标志, 获知需要获取为接口配置的 IP地址。  The method for registering an interface prefix in the PMIPv6 according to claim 1, wherein the proxy binding acknowledgement message further includes a home address identifier, so that the mobile access gateway learns that the user needs to obtain the home address identifier according to the home address identifier. The IP address configured for the interface.
4、 根据权利要求 2或 3所述的 PMIPv6中接口前缀的注册方法, 其特征在 于, 所述向移动接入网关发送代理绑定确认消息之后还包括: 接收移动接入网 关发送的第二代理绑定更新消息, 所述第二代理绑定更新消息中携带有移动接 入网关获取的为所述待注册接口配置的网络地址;  The method for registering an interface prefix in the PMIPv6 according to claim 2 or 3, wherein the sending the proxy binding acknowledgement message to the mobile access gateway further comprises: receiving the second proxy sent by the mobile access gateway a binding update message, where the second proxy binding update message carries a network address configured by the mobile access gateway and configured for the to-be-registered interface;
将为所述待注册接口配置的网络地址置入与所述待注册接口相对应的绑定 緩存目录中;  And placing a network address configured for the to-be-registered interface into a binding cache directory corresponding to the to-be-registered interface;
设置所述绑定緩存目录的状态标识为激活状态。  Set the status of the binding cache directory to the active state.
5、 根据权利要求 4所述的 PMIPv6 中接口前缀的注册方法, 其特征在于, 将为所述待注册接口配置的网络地址置入与所述待注册接口相对应的绑定緩存 目录包括:  The method for registering an interface prefix in the PMIPv6 according to claim 4, wherein the binding of the network address configured for the interface to be registered to the interface to be registered includes:
将为所述待注册接口配置的网络地址置入与所述待注册接口相对应的绑定 緩存目录中的家乡网络前缀条目, 或者在与所述待注册接口相对应的绑定緩存 目录中新增家乡地址条目, 将为所述待注册接口配置的网络地址置入所述家乡 地址条目。 Setting a network address configured for the to-be-registered interface into a home network prefix entry in a binding cache directory corresponding to the to-be-registered interface, or in a binding cache directory corresponding to the to-be-registered interface Adding a home address entry, placing the network address configured for the interface to be registered into the hometown Address entry.
6、 根据权利要求 4所述的 PMIPv6 中接口前缀的注册方法, 其特征在于, 所述设置所述绑定緩存目录的状态标识为激活状态之后还包括:  The method for registering an interface prefix in the PMIPv6 according to claim 4, wherein the setting the status identifier of the binding cache directory to an active state further comprises:
在接收报文后, 当获取到与所述报文的目的地址匹配的绑定緩存目录时, 获取与所述报文的目的地址匹配的绑定緩存目录中记录的移动接入网关的地 址;  After receiving the packet, when obtaining the binding cache directory that matches the destination address of the packet, obtaining the address of the mobile access gateway recorded in the binding cache directory that matches the destination address of the packet;
将报文转发至所述移动接入网关。  Forwarding the message to the mobile access gateway.
7、 根据权利要求 6所述的 PMIPv6 中接口前缀的注册方法, 其特征在于, 所述设置所述绑定緩存目录的状态标识为激活状态之后还包括:  The method for registering an interface prefix in the PMIPv6 according to claim 6, wherein the setting the status identifier of the binding cache directory to an active state further includes:
在接收报文后, 当获取不到与所述报文的目的地址匹配的绑定緩存目录时, 获取与所述报文的目的地址前缀匹配且状态标识为未激活状态的绑定緩存目录 中记录的已注册接口的标识符及与所述已注册接口相对应的移动接入网关的地 址;  After receiving the packet, when the binding cache directory that matches the destination address of the packet is not obtained, the binding cache directory that matches the destination address prefix of the packet and the status identifier is inactive is obtained. An identifier of the recorded registered interface and an address of the mobile access gateway corresponding to the registered interface;
通过所述移动接入网关获取为所述已注册接口配置的网络地址;  Obtaining, by the mobile access gateway, a network address configured for the registered interface;
将为所述已注册接口配置的网络地址置入与所述已注册接口相对应的绑定 緩存目录;  Placing a network address configured for the registered interface into a binding cache directory corresponding to the registered interface;
设置所述已注册接口相对应的绑定緩存目录的状态标识为激活状态。  Setting a status identifier of the binding cache directory corresponding to the registered interface to an active state.
8、 根据权利要求 7所述的 PMIPv6 中接口前缀的注册方法, 其特征在于, 所述通过所述移动接入网关获取为所述已注册接口配置的网络地址包括:  The method for registering an interface prefix in the PMIPv6 according to claim 7, wherein the obtaining, by the mobile access gateway, the network address configured for the registered interface includes:
向所述移动接入网关发送网络地址请求消息, 所述网络地址请求消息携带 所述已注册接口的标识符;  Sending a network address request message to the mobile access gateway, where the network address request message carries an identifier of the registered interface;
接收所述移动接入网关发送的网络地址响应消息, 所述网络地址响应消息 携带所述移动接入网关获取的为所述已注册接口配置的网络地址。  Receiving a network address response message sent by the mobile access gateway, where the network address response message carries a network address configured by the mobile access gateway for the registered interface.
9、 根据权利要求 6所述的 PMIPv6 中接口前缀的注册方法, 其特征在于, 将为所述已注册接口配置的网络地址置入与所述已注册接口相对应的绑定緩存 目录包括: 将为所述已注册接口配置的网络地址置入与所述已注册接口相对应的绑定 緩存目录中的家乡网络前缀条目, 或者在与所述已注册接口相对应的绑定緩存 目录中新增家乡地址条目, 将为所述已注册接口配置的网络地址置入所述家乡 地址条目。 The method for registering an interface prefix in the PMIPv6 according to claim 6, wherein the setting a network address configured for the registered interface to a binding cache directory corresponding to the registered interface includes: Locating a network address configured for the registered interface into a home network prefix entry in a binding cache directory corresponding to the registered interface, or in a binding cache directory corresponding to the registered interface An home address entry that places the home address entry for the network address configured for the registered interface.
10、 根据权利要求 2所述的 PMIPv6中接口前缀的注册方法, 其特征在于, 所述向移动接入网关发送代理绑定确认消息之后还包括:  The method for registering an interface prefix in the PMIPv6 according to claim 2, wherein after the sending the proxy binding acknowledgement message to the mobile access gateway, the method further includes:
在接收报文后, 当获取不到与所述报文的目的地址匹配的绑定緩存目录时, 获取与所述报文的目的地址前缀匹配且状态标识为未激活状态的绑定緩存目录 中记录的已注册接口的标识符及与所述已注册接口相对应的移动接入网关的地 址;  After receiving the packet, when the binding cache directory that matches the destination address of the packet is not obtained, the binding cache directory that matches the destination address prefix of the packet and the status identifier is inactive is obtained. An identifier of the recorded registered interface and an address of the mobile access gateway corresponding to the registered interface;
通过所述移动接入网关获取为所述已注册接口配置的网络地址;  Obtaining, by the mobile access gateway, a network address configured for the registered interface;
将为所述已注册接口配置的网络地址置入与所述已注册接口相对应的绑定 緩存目录;  Placing a network address configured for the registered interface into a binding cache directory corresponding to the registered interface;
设置所述绑定緩存目录的状态标识为激活状态。  Set the status of the binding cache directory to the active state.
11、 根据权利要求 10所述的 PMIPv6中接口前缀的注册方法, 其特征在于, 所述通过所述移动接入网关获取为所述已注册接口配置的网络地址包括:  The method for registering an interface prefix in the PMIPv6 according to claim 10, wherein the obtaining, by the mobile access gateway, the network address configured for the registered interface includes:
向所述移动接入网关发送网络地址请求消息, 所述网络地址请求消息携带 所述已注册接口的标识符;  Sending a network address request message to the mobile access gateway, where the network address request message carries an identifier of the registered interface;
接收所述移动接入网关发送的网络地址响应消息, 所述网络地址响应消息 携带所述移动接入网关获取的为所述已注册接口配置的网络地址。  Receiving a network address response message sent by the mobile access gateway, where the network address response message carries a network address configured by the mobile access gateway for the registered interface.
12、 根据权利要求 10所述的 PMIPv6中接口前缀的注册方法, 其特征在于, 所述将为所述已注册接口配置的网络地址置入与所述已注册接口相对应的绑定 緩存目录包括:  The method for registering an interface prefix in the PMIPv6 according to claim 10, wherein the placing a network address configured for the registered interface into a binding cache directory corresponding to the registered interface includes :
将为所述已注册接口配置的网络地址置入与所述已注册接口相对应的绑定 緩存目录中的家乡网络前缀条目, 或者在与所述已注册接口相对应的绑定緩存 目录中新增家乡地址条目, 将为所述已注册接口配置的网络地址置入所述家乡 地址条目。 Locating a network address configured for the registered interface into a home network prefix entry in a binding cache directory corresponding to the registered interface, or in a binding cache directory corresponding to the registered interface An home address entry that places the network address configured for the registered interface into the hometown Address entry.
13、 一种本地移动锚点, 其特征在于, 包括:  13. A local mobility anchor, characterized in that:
消息接收单元(501 ), 用于接收移动接入网关发送的代理绑定更新消息, 所述代理绑定更新消息中携带待注册接口的标识符;  a message receiving unit (501), configured to receive a proxy binding update message sent by the mobile access gateway, where the proxy binding update message carries an identifier of the interface to be registered;
目录设置单元( 502 ), 用于为所述待注册接口分配与已注册接口相同的家 乡网络前缀, 并将所述家乡网络前缀存储在为所述待注册接口创建的绑定緩存 目录中;  a directory setting unit (502), configured to allocate, to the to-be-registered interface, a home network prefix that is the same as the registered interface, and store the home network prefix in a binding cache directory created for the to-be-registered interface;
消息发送单元( 503 ), 用于向移动接入网关发送代理绑定确认消息, 所述 代理绑定确认消息中携带为所述待注册接口分配的家乡网络前缀。  The message sending unit (503) is configured to send a proxy binding acknowledgement message to the mobile access gateway, where the proxy binding acknowledgement message carries a home network prefix allocated for the to-be-registered interface.
14、 根据权利要求 13所述的本地移动锚点, 其特征在于, 还包括: 状态标识设置单元( 604 ), 用于在创建绑定緩存目录时, 设置所述绑定緩 存目录的状态标识为未激活状态; 并在将为待注册或已注册接口配置的网络地 址置入绑定緩存目录时, 设置所述绑定緩存目录的状态标识为激活状态。  The local mobility anchor according to claim 13, further comprising: a status identifier setting unit (604), configured to: when the binding cache directory is created, set a status identifier of the binding cache directory to Inactive state; and when the network address configured for the interface to be registered or registered is placed in the binding cache directory, the status identifier of the binding cache directory is set to the active state.
15、 根据权利要求 14所述的本地移动锚点, 其特征在于, 还包括: 家乡地址标志添加单元 ( 607 ), 用于在所述代理绑定确认消息中添加家乡 地址标志, 以使移动接入网关根据所述家乡地址标志, 获知需要获取为接口配 置的 IP地址。  The local mobility anchor according to claim 14, further comprising: a home address flag adding unit (607), configured to add a home address flag to the proxy binding confirmation message, so as to enable the mobile connection According to the home address flag, the ingress gateway knows that it needs to obtain an IP address configured for the interface.
16、 根据权利要求 14或 15所述的本地移动锚点, 其特征在于, 还包括: 接口地址置入单元( 605 ), 用于将接收的第二代理绑定更新消息中的为已 注册接口配置的网络地址置入与所述已注册接口相对应的绑定緩存目录;  The local mobility anchor according to claim 14 or 15, further comprising: an interface address placing unit (605), configured to receive the registered second interface in the second proxy binding update message The configured network address is placed in a binding cache directory corresponding to the registered interface;
地址匹配单元( 606 ), 用于转发 4艮文时, 确定与所述 4艮文的目的地址匹配 的绑定緩存目录。  The address matching unit (606), when forwarding the message, determines a binding cache directory that matches the destination address of the message.
17、 根据权利要求 14所述的本地移动锚点, 其特征在于, 还包括: 地址匹配单元( 706 ), 用于确定与所述报文的目的地址匹配的绑定緩存目 录;  The local mobility anchor according to claim 14, further comprising: an address matching unit (706), configured to determine a binding cache directory that matches a destination address of the packet;
前缀匹配单元( 708 ), 用于当所述地址匹配单元( 706 )获取不到与所述报 文的目的地址匹配的绑定緩存目录时, 确定与所述报文的目的地址前缀匹配且 状态标识为未激活状态的绑定緩存目录; a prefix matching unit (708), configured to: when the address matching unit (706) fails to obtain the report When the destination address of the file matches the binding cache directory, the binding cache directory that matches the destination address prefix of the packet and the status identifier is inactive is determined;
网络地址请求发送单元( 709 ), 用于向前缀匹配单元( 708 )确定的绑定緩 存目录中的移动接入网关发送网络地址请求消息, 所述网络地址请求消息携带 与所述根据前缀匹配单元确定的绑定緩存目录相应的已注册接口的标识符; 网络地址响应接收单元 (710 ), 用于接收所述移动接入网关发送的网络地 址响应消息, 所述网络地址响应消息携带所述移动接入网关获取的为所述已注 册接口配置的网络地址;  a network address request sending unit (709), configured to send a network address request message to the mobile access gateway in the binding cache directory determined by the prefix matching unit (708), where the network address request message carries the prefix matching unit Determining an identifier of a corresponding registered interface of the binding cache directory; a network address response receiving unit (710), configured to receive a network address response message sent by the mobile access gateway, where the network address response message carries the mobile a network address configured by the access gateway for the registered interface;
接口地址置入单元( 705 ), 用于将为所述已注册接口配置的网络地址置入 与所述已注册接口相对应的绑定緩存目录。  The interface address placement unit (705) is configured to place a network address configured for the registered interface into a binding cache directory corresponding to the registered interface.
18、 一种 PMIPv6中接口前缀的注册系统, 其特征在于, 包括一个本地移动 锚点 (901 )和至少一个移动接入网关 ( 902 ), 所述本地移动锚点 (901 ) 与至 少一个所述移动接入网关( 902 )相连;  18. A registration system for interface prefixes in PMIPv6, comprising: a local mobility anchor (901) and at least one mobile access gateway (902), said local mobility anchor (901) and at least one of said The mobile access gateway (902) is connected;
其中所述本地移动锚点 (901 ), 用于接收移动接入网关( 902 )发送的代理 绑定更新消息, 所述代理绑定更新消息中携带待注册接口的标识符, 为所述待 注册接口分配与已注册接口相同的家乡网络前缀, 将所述家乡网络前缀存储在 为所述待注册接口创建的绑定緩存目录中, 向移动接入网关发送代理绑定确认 消息;  The local mobility anchor (901) is configured to receive a proxy binding update message sent by the mobile access gateway (902), where the proxy binding update message carries an identifier of the interface to be registered, and is the to-be-registered The interface allocates the same home network prefix as the registered interface, and stores the home network prefix in the binding cache directory created for the to-be-registered interface, and sends a proxy binding confirmation message to the mobile access gateway;
所述移动接入网关( 902 ), 用于接收所述本地移动锚点 (901 )发送的代理 绑定确认消息。  The mobile access gateway (902) is configured to receive a proxy binding acknowledgement message sent by the local mobility anchor (901).
19、 根据权利要求 18所述的 PMIPv6中接口前缀的注册系统, 其特征在于, 所述本地移动锚点 (901 ), 还用于在为待注册接口创建绑定緩存目录时, 设置 所述绑定緩存目录的状态标识为未激活状态; 在将为待注册或已注册接口配置 的网络地址置入对应的绑定緩存目录时, 设置所述置入网络地址的绑定緩存目 录的状态标识为激活状态。  The system for registering an interface prefix in the PMIPv6 according to claim 18, wherein the local mobility anchor (901) is further configured to: when the binding cache directory is created for the interface to be registered, the binding is set. The status of the cache directory is identified as being inactive. When the network address configured for the interface to be registered or registered is placed in the corresponding binding cache directory, the status identifier of the binding cache directory where the network address is placed is set to Activation status.
20、 根据权利要求 18所述的 PMIPv6中接口前缀的注册系统, 其特征在于, 所述移动接入网关 ( 902 ), 还用于在接收代理绑定确认消息后, 获取所述 代理绑定确认消息中为待注册接口配置的网络地址 ,向所述本地移动锚点(901 ) 发送携带为所述待注册接口配置的网络地址的第二代理绑定更新消息; 20. The system for registering interface prefixes in PMIPv6 according to claim 18, wherein: The mobile access gateway (902) is further configured to: after receiving the proxy binding acknowledgement message, obtain a network address configured for the to-be-registered interface in the proxy binding acknowledgement message, to the local mobility anchor point (901) Sending a second proxy binding update message carrying a network address configured for the to-be-registered interface;
所述本地移动锚点 (901 ), 还用于接收所述第二代理绑定更新消息, 将所 述第二代理绑定更新消息中的为所述待注册接口配置的网络地址置入与所述待 注册接口相对应的绑定緩存目录。  The local mobility anchor (901) is further configured to receive the second proxy binding update message, and insert, in the second proxy binding update message, a network address configured for the to-be-registered interface. The binding cache directory corresponding to the registered interface is mentioned.
21、 根据权利要求 19或 20所述的 PMIPv6中接口前缀的注册系统, 其特征 在于, 所述本地移动锚点 (901 ), 还用于在转发报文时, 当获取不到与所述报 文的目的地址匹配的绑定緩存目录时, 确定与所述报文的目的地址前缀匹配且 状态标识为未激活状态的绑定緩存目录, 通过所述绑定緩存目录中记录的移动 接入网关获取为所述绑定緩存目录对应的已注册接口配置的网络地址, 并将所 述获取的网络地址置入对应的绑定緩存目录;  The system for registering an interface prefix in the PMIPv6 according to claim 19 or 20, wherein the local mobility anchor (901) is further configured to: when the packet is forwarded, when the packet is not obtained When the destination address of the file matches the binding cache directory, determine a binding cache directory that matches the destination address prefix of the packet and the status identifier is inactive, and the mobile access gateway recorded in the binding cache directory Obtaining a network address configured for the registered interface corresponding to the binding cache directory, and placing the obtained network address into a corresponding binding cache directory;
所述移动接入网关 ( 902 ), 还用于获取为所述绑定緩存目录对应的已注册 接口配置的网络地址, 并将所述网络地址信息通知所述本地移动锚点 ( 901 )。  The mobile access gateway (902) is further configured to acquire a network address configured for the registered interface corresponding to the binding cache directory, and notify the local mobility anchor (901) of the network address information.
PCT/CN2009/071899 2008-11-06 2009-05-21 REGISTRATION METHOD, SYSTEM AND LOCAL MOBILE ANCHOR FOR INTERFACE PREFIX IN PMIPv6 WO2010051697A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810175240A CN101741811A (en) 2008-11-06 2008-11-06 Registration method, system and local mobile anchor point of interface prefix in PMIPv6 (proxy mobile internet protocol version 6)
CN200810175240.X 2008-11-06

Publications (1)

Publication Number Publication Date
WO2010051697A1 true WO2010051697A1 (en) 2010-05-14

Family

ID=42152467

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071899 WO2010051697A1 (en) 2008-11-06 2009-05-21 REGISTRATION METHOD, SYSTEM AND LOCAL MOBILE ANCHOR FOR INTERFACE PREFIX IN PMIPv6

Country Status (2)

Country Link
CN (1) CN101741811A (en)
WO (1) WO2010051697A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769676B (en) * 2011-05-03 2015-02-25 中国联合网络通信集团有限公司 Internet protocol (IP) network mobile management method, device and system
CN103037352B (en) * 2011-09-29 2017-05-24 中兴通讯股份有限公司 Node communication method and communication system at roam between proxy mobile internet protocol (PMIP) regions
CN103096315A (en) * 2011-11-03 2013-05-08 中兴通讯股份有限公司 Multi-access connection establishment method, system and mapping server
CN111309366B (en) * 2020-02-19 2023-06-30 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for managing registration core

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1682514A (en) * 2002-09-20 2005-10-12 思科技术公司 Method and arrangement in a gateway for registering mobile routers of a mobile ad hoc network to respective home agents
CN1697548A (en) * 2004-05-14 2005-11-16 华为技术有限公司 Method of dynamic allocating home address remotely for mobile IPv6 node
WO2008087937A1 (en) * 2007-01-18 2008-07-24 Sharp Kabushiki Kaisha Communication system using mobile ip, mobile terminal, home agent and its communication method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1682514A (en) * 2002-09-20 2005-10-12 思科技术公司 Method and arrangement in a gateway for registering mobile routers of a mobile ad hoc network to respective home agents
CN1697548A (en) * 2004-05-14 2005-11-16 华为技术有限公司 Method of dynamic allocating home address remotely for mobile IPv6 node
WO2008087937A1 (en) * 2007-01-18 2008-07-24 Sharp Kabushiki Kaisha Communication system using mobile ip, mobile terminal, home agent and its communication method

Also Published As

Publication number Publication date
CN101741811A (en) 2010-06-16

Similar Documents

Publication Publication Date Title
TWI500305B (en) Enabling ipv6 mobility with nat64
US9049570B2 (en) Method and apparatus for registration, communication and handover of Mobile Node
US8289862B2 (en) Method and apparatus for dynamic LMA assignment in proxy mobile IPv6 protocol
JP5048761B2 (en) Method and apparatus for simultaneously performing location privacy and route optimization for a communication session
TW200820687A (en) Method for pre-configuration of IP address in mobile communication system
US9307477B1 (en) Apparatus and method for interfacing wireless client device to multiple packet data networks
JP2009529265A (en) Method and system for fast handover using dynamic router advertisement
WO2010072074A1 (en) Method, system and mobile access gateway for local routing optimization
WO2009149631A1 (en) Method for processing state switching information, mobile access gateway and mobile terminal
JP5362732B2 (en) Support for multihoming protocols
US20130176943A1 (en) System and Method for Distributed Mobility Management
KR100915513B1 (en) PACKET BUFFERING METHOD AND APPARATUS FOR REDUCING PACKET LOSS IN PROXY MOBILE IPv6
WO2013004138A1 (en) Mobility realization method based on location/identifier separation protocol (lisp) and tunnel router
WO2010051697A1 (en) REGISTRATION METHOD, SYSTEM AND LOCAL MOBILE ANCHOR FOR INTERFACE PREFIX IN PMIPv6
US8045569B1 (en) Mechanism to verify packet data network support for internet protocol mobility
WO2013007133A1 (en) Method and system for managing packet forwarding path, and network element
WO2013007131A1 (en) Mobility management method and mobile access gateway
KR100948688B1 (en) Apparatus and method for managing mobility of terminal based network
JP4425757B2 (en) Mobile network system
WO2009082935A1 (en) Method, system and device for obtaining the address of mobile access gateway
WO2010000188A1 (en) A method and apparatus for realizing handover between mobility management domains
KR101064651B1 (en) Method and System for optimization of communication path between mobile terminals in the proxy mobile IPv6 network
US20130163561A1 (en) Fast handover method using l2/l3 combination
WO2013044688A1 (en) Communication method and communication system for a node which is roaming in pmip domains
KR20050079407A (en) Method for providing soft handover using communication state information in wireless internet system

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

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

Country of ref document: EP

Kind code of ref document: A1