WO2013007133A1 - Method and system for managing packet forwarding path, and network element - Google Patents

Method and system for managing packet forwarding path, and network element Download PDF

Info

Publication number
WO2013007133A1
WO2013007133A1 PCT/CN2012/075722 CN2012075722W WO2013007133A1 WO 2013007133 A1 WO2013007133 A1 WO 2013007133A1 CN 2012075722 W CN2012075722 W CN 2012075722W WO 2013007133 A1 WO2013007133 A1 WO 2013007133A1
Authority
WO
WIPO (PCT)
Prior art keywords
mag
access gateway
node
address
mobile access
Prior art date
Application number
PCT/CN2012/075722
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 WO2013007133A1 publication Critical patent/WO2013007133A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/12Reselecting a serving backbone network switching or routing node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0019Control or signalling for completing the hand-off for data sessions of end-to-end connection adapted for mobile IP [MIP]

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a packet forwarding path management method, system, and network element (including a mobile access gateway (MAG) and a mapping server).
  • MAG mobile access gateway
  • mapping server a mapping server
  • the ⁇ protocol is a network-based mobility management protocol.
  • the mobile node (MN) does not need to participate in any IP mobile-related signaling procedure.
  • the mobile entity in the network tracks the mobile node's mobility and initiates the mobile signaling process. Set the required routing status.
  • the core functional entities in the PMIPv6 domain are the Local Mobility Anchor (LMA) and the Mobile Access Gateway (MAG).
  • LMA Local Mobility Anchor
  • MAG Mobile Access Gateway
  • the local mobility anchor is responsible for maintaining the reachability status of the mobile node and logically anchoring the mobile node's home network prefix.
  • the LMA accepts any packet sent to the mobile node by any node within the proxy mobile IPv6 domain or outside the domain.
  • the mobile access gateway is responsible for managing the mobility related signaling of the MN, tracking the movement of the mobile node in the access network, receiving any packets sent by the mobile node to the correspondent node and transmitting to the local mobility anchor via the bidirectional tunnel.
  • the data transmission path between the MN and the CN (Correspondent Node) in PMIPv6 is attached to the MAG1, and the CN is attached to the MAG2.
  • the packet sent by the MN to the CN first arrives at the MAGI.
  • the MAG1 tunnels the packet and sends the packet to the LMA through the tunnel between the MAG1 and the LMA.
  • the LMA decapsulates the packet and repackages the packet through the LMA and
  • the tunnel between MAG2 is sent to MAG2.
  • MAG2 forwards it to the CN.
  • the CN sends the message to the MN in the same way.
  • the technical problem to be solved by the present invention is to provide a packet forwarding path management method, a network element, and a system to solve the problem that the LAM becomes a bottleneck of traffic forwarding.
  • the present invention provides a packet forwarding path management method, where the method includes:
  • the first mobile access gateway (MAG) sends an address query request to the mapping server, where the node information of the peer node (CN) is carried;
  • the mapping server receives the address query request, queries the binding cache table, and acquires the mobile access gateway information of the CN corresponding to the node information of the CN, where the mobile access gateway information of the CN points to the second MAG;
  • the mapping server After the mapping server sends an address query response message to the first MAG, or after forwarding the address query request to the second MAG, the second MAG sends an address query response message to the first MAG, where the query
  • the response message carries the mobile access gateway information of the CN; the first MAG receives the address query response message.
  • the method further includes: the first MAG receiving and buffering the first message sent by a mobile node (MN); a first transmission tunnel of the second MAG, and forwarding the first packet by using the first transmission tunnel.
  • MN mobile node
  • the method further includes: receiving, by the first MAG, a first packet sent by a mobile node (MN), where a destination address of the first packet is the CN The home address; the address query request further includes the first message; after the mapping server queries the mobile access gateway information of the CN, directly forwards the first text to the second MAG or passes the The address query message forwards the first message to the second MAG.
  • MN mobile node
  • the mapping server queries the mobile access gateway information of the CN, directly forwards the first text to the second MAG or passes the The address query message forwards the first message to the second MAG.
  • the address query request further carries the node information of the MN and the mobile access gateway information; after receiving the address query request message, the second MAG establishes a location according to the mobile access gateway information of the MN. a second transmission tunnel of the first MAG, and storing a mapping relationship between the node information of the MN and the mobile access gateway information.
  • the method further includes: The first MAG saves a mapping relationship between the node information of the CN and the mobile access gateway information; the first MAG forwards the received first packet to the outer tunnel address according to the mapping relationship, and the CN Mobile access gateway information.
  • the second MAG After receiving the encapsulated first message, the second MAG establishes a second transmission tunnel to the first MAG according to the mobile access gateway information of the MN, and saves the node information of the MN. Mapping relationship with mobile access gateway information.
  • the binding cache table includes a plurality of binding cache entries, where the binding cache entry is generated when the corresponding MN is registered, and the process of registering the MN includes:
  • the mapping server After receiving the proxy binding update message, the mapping server allocates a home network prefix to the MN, and creates a binding cache entry to save the saved binding relationship to the MN's home network prefix and proxy care-of address. Binding relationship
  • the mapping server replies to the MAG with a proxy binding acknowledgement message, where the message carries a home network prefix assigned to the MN;
  • the mobile access gateway After receiving the proxy binding acknowledgement message, the mobile access gateway sends a router advertisement message to the MN, where the message includes a home network prefix allocated by the mapping server to the MN and related parameters used by the MN to perform address configuration.
  • the MN After receiving the router advertisement message, the MN configures to generate a home address.
  • the present invention further provides a mobile access gateway (MAG), which is a mobile node MAG corresponding to a mobile node (MN), and the MAG includes:
  • the query request sending module is configured to: send an address query request to the mapping server, and carry node information of the peer node (CN);
  • the query response receiving module is configured to: receive an address query response message, and carry the mobile access gateway information of the CN.
  • the MAG further includes: a transmission tunnel establishing module, configured to: when the mobile node MAG is configured, establish a first transmission tunnel to the opposite node MAG corresponding to the CN according to the mobile access gateway information of the CN in the address query response message;
  • a transmission tunnel establishing module configured to: when the mobile node MAG is configured, establish a first transmission tunnel to the opposite node MAG corresponding to the CN according to the mobile access gateway information of the CN in the address query response message;
  • the message buffering module is configured to: when the mobile node is a MAG, cache the first message received before the first transmission tunnel is established;
  • the packet forwarding module is configured to: when the mobile node is a MAG, perform the first packet forwarding after the first transmission tunnel is established.
  • the address query request further carries the node information of the mobile node (MN) and the mobile access gateway information; as the peer node MAG corresponding to the CN, the MAG further includes:
  • the query request receiving module is configured to: receive an address query request sent by the mapping server; the query response sending module is configured to: according to the MN, the mobile access gateway information in the address query request to the mobile node MAG corresponding to the MN Send an address query response message.
  • the address query response message is sent by the mapping server or the peer node MAG.
  • the MAG further includes a mapping relationship maintenance module, as the mobile node MAG: the mapping relationship maintenance module is configured to: save the mapping of the CN node information and the mobile access gateway information according to the address query response message Relationship
  • the packet forwarding module is further configured to: encapsulate the outer tunnel address of the first packet before forwarding, the outer source address of the encapsulation is the mobile access gateway information of the MN, and the destination address is the movement of the CN Access gateway information.
  • the peer node is a MAG
  • the transmission tunnel establishing module is further configured to: establish a second transmission tunnel to the mobile node MAG corresponding to the MN according to the mobile access gateway information of the MN in the address query request.
  • the mapping relationship maintenance module is further configured to: save a mapping relationship between the node information of the MN and the mobile access gateway information according to the address query request.
  • the present invention also provides a mapping server, the mapping service
  • the device includes:
  • the query request receiving module is configured to: receive an address query request sent by the mobile node MAG corresponding to the mobile node, where the node information of the peer node (CN) is carried;
  • a binding relationship maintenance module configured to: save a binding relationship, and include a binding relationship between the node of the CN and the mobile access gateway information;
  • a binding relationship query module configured to: query the saved binding relationship, and obtain information about the mobile access gateway of the CN corresponding to the home node of the peer node;
  • a query request processing module configured to: send an address query response message to the mobile node MAG, carrying the mobile access gateway information of the CN; or, according to the mobile access gateway information of the CN, to the CN
  • the peer node MAG forwards the address query request.
  • the address query request further carries a first message, and the destination address of the first message is node information of the CN.
  • the mapping server further includes a packet forwarding module, configured to: forward the first packet to the peer node MAG according to the mobile access gateway information of the CN.
  • a packet forwarding module configured to: forward the first packet to the peer node MAG according to the mobile access gateway information of the CN.
  • mapping server further includes:
  • a proxy binding update message receiving module configured to: receive a proxy binding update message sent by a mobile node (MN) mobile access gateway (MAG);
  • MN mobile node
  • MAG mobile access gateway
  • the home network prefix allocation module is configured to: assign a home network prefix to the MN; a proxy binding confirmation message sending module, configured to: reply a proxy binding confirmation message to the mobile node MAG, where the message carries the hometown assigned to the MN Network prefix
  • the binding relationship saved by the binding relationship maintenance module is a binding relationship between the home network prefix and the proxy care-of address of the MN saved according to the allocated home network prefix and the proxy binding update message.
  • the present invention also provides a message forwarding path management system including the mobile access gateway (MAG) as described above.
  • MAG mobile access gateway
  • the system further comprises the above mapping server.
  • a packet forwarding path management method, a network element, and a system are attached by a mobile node (MN) according to an embodiment of the present invention.
  • the mobile access gateway (MAG) queries the mobile access gateway information of the correspondent node (CN) to implement packet forwarding between the MN and the CN through the two mobile access gateways, thereby solving the traffic forwarding bottleneck caused by the LMA. problem.
  • Figure 1 is a proxy mobile IPv6 packet forwarding path diagram
  • FIG. 2 is a structural diagram of a packet forwarding system according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a mobile node registration according to Embodiment 1 of the present invention.
  • FIG. 4 is a flowchart of a packet forwarding method according to Embodiment 2 of the present invention.
  • FIG. 5 is a flowchart of a packet forwarding method according to Embodiment 3 of the present invention.
  • FIG. 6 is a flowchart of a packet forwarding method according to Embodiment 4 of the present invention.
  • FIG. 7 is a flowchart of a packet forwarding method provided in Embodiment 5 of the present invention.
  • FIG. 8 is a schematic diagram of a packet forwarding path management method according to the present invention.
  • FIG. 9 to FIG. 11 are schematic diagrams showing the structure of a module of a mobile access gateway according to the present invention.
  • FIG. 12 is a schematic structural diagram of a module of an embodiment of a mapping server according to the present invention.
  • the embodiment of the present invention is applied to a scenario in which a mobile node (MN) and a correspondent node (CN) are attached to different mobile access gateways, and the proxy mobile IPv6 protocol provides a route when the MN and the CN are attached to the same mobile access gateway. Optimization mechanism.
  • MN mobile node
  • CN correspondent node
  • FIG. 2 is a structural diagram of a packet forwarding system according to an embodiment of the present invention, where:
  • the mapping server in the present invention is a control plane entity, receives a proxy binding update message from the mobile access gateway, and saves a mapping relationship between the mobile node home network prefix and the proxy care-of address; assigns a home network prefix to the mobile node; Receiving an address query request message from the mobile access gateway, performing corresponding processing according to whether the first message is carried in the message; and sending an address query response message to the mobile access gateway sending the address query request message.
  • the first mobile access gateway receives the first packet sent by the mobile node to the opposite node, sends an address query message to the mapping server, and queries the proxy care-of address of the opposite node.
  • the mobile access gateway optimizes the data forwarding path between the MN and the CN according to the obtained proxy care-of address of the opposite node.
  • the address query message is constructed in two cases:
  • the first mobile access gateway does not need to store the first packet, and after the mapping server receives the address query message carrying the first packet, the mapping packet is forwarded in the next step;
  • the first mobile access gateway needs to store the first packet, and the first packet is encapsulated and sent to the second mobile access gateway by using the care-of address queried by the mapping server.
  • the present invention implements mobility management by introducing a mapping server and using a plane structure in which the control plane is separated from the bearer plane.
  • the control plane mapping server is responsible for the registration and location management of the mobile node, which is equivalent to a location database.
  • the bearer plane mobile access gateway transmits the data packets between the mobile node and the communication node by performing location query on the mapping server.
  • the node information in the present invention is information for indicating which mobile node or the opposite node is, and may be an identifier (ID) of the mobile node or the opposite node, a home address, or a home network prefix. And the combination of the two pieces of information or the three pieces of information; the mobile access gateway information of the present invention is used to indicate which MAG is the information of the MAG attached to the mobile node or the peer node, and may be the MAG.
  • the address may also be a proxy care-of address (CoA) allocated by the MAG for the mobile node (MN) and the correspondent node (CN), or may be a combination of the address of the MAG and the CoA.
  • CoA proxy care-of address
  • the node information is specifically represented by what information, and the information of the mobile access gateway information is specifically determined by the specific application scenario or the information that may be obtained by the corresponding network element. This is not the focus of the present invention, and the present invention does not limit this.
  • the detailed description of the embodiments is merely illustrative and should not be construed as limiting.
  • the packet forwarding path management method of the present invention is as shown in FIG. 8.
  • the method includes:
  • Step 801 The first mobile access gateway (MAG) sends an address query request to the mapping server, where the node information of the opposite node (CN) is carried;
  • the node information is an identifier (ID), a home address, and/or a home network prefix. Which one or the other information is carried as the node information, so that the specific binding relationship saved in the mapping server can be found according to the node information in the query request;
  • Step 802 The mapping server receives the address query request, queries the binding cache table, and obtains the mobile access gateway information of the CN, where the mobile access gateway information of the CN points to the second MAG;
  • Step 803 After the mapping server sends an address query response message to the first MAG, or after forwarding the address query request to the second MAG, the second MAG sends an address query response message to the first MAG.
  • the query response message carries the mobile access gateway information of the CN;
  • the mobile access gateway information of the CN is an address of the second MAG or the second MAG is the
  • Step 804 The first MAG receives the address query response message.
  • the above steps 801 to 804 mainly focus on how the first MAG obtains the proxy handover address of the opposite node.
  • the method before the sending, by the first MAG, the address query request, the method further includes: the first MAG receiving and buffering the first packet sent by a mobile node (MN); a first transmission tunnel of the second MAG, and performing the first packet forwarding by using the first transmission tunnel.
  • MN mobile node
  • the method further includes: receiving, by the first MAG, a first packet sent by a mobile node (MN), where a destination address of the first packet is The home address of the CN; the address query request further carries the first message; after the mapping server queries the proxy care-of address of the CN, directly forwards the first message to the second MAG or passes the The address query message forwards the first message to the second MAG. See Example 4 and Example 5 for details.
  • MN mobile node
  • the address query request further carries the node information of the MN and the mobile access gateway information, where the mobile access gateway information is an address of the first MAG, or the first MAG is allocated to the MN.
  • the second MAG After the second MAG receives the address query request message, the second MAG establishes a second transmission tunnel to the first MAG according to the mobile access gateway information of the MN, and
  • the method further includes: the first MAG saves a mapping relationship between the node information of the CN and the mobile access gateway information;
  • the mapping relationship encapsulates the received first packet with the outer tunnel address and the address is the mobile access gateway information of the CN. See Embodiments 2 and 3 for details.
  • the second MAG after receiving the encapsulated first packet, the second MAG establishes a second transmission tunnel to the first MAG according to the mobile access gateway information of the MN, and saves the node of the MN.
  • the mapping relationship between information and mobile access gateway information See Example 2 and Example 4 for details.
  • the binding cache table in the mapping server includes a plurality of binding cache entries, and the binding cache entries are generated when the corresponding MN is registered.
  • FIG. 3 it is a mobile node registration process provided by Embodiment 1 of the present invention. Includes the following steps:
  • Step 300 When the MN is attached to the mobile access gateway, the mobile access gateway acquires the MN-ID, obtains the configuration file of the MN from the AAA server, performs an authentication operation on the MN according to the configuration file, and determines whether the mobile device can provide the mobile device with the MN. Sex management services.
  • Step 301 The MN sends a router request message to the attached mobile access gateway, requesting to obtain the prefix of the current visited network (ie, the home network prefix), to configure the IP address of the MN (ie, the home address), and the request message carries the identifier of the MN. (ID).
  • the prefix of the current visited network ie, the home network prefix
  • the IP address of the MN ie, the home address
  • steps 301 and 302 have no strict sequence, and the router request message can be sent at any time after the MN is attached.
  • Step 302 After the mobile access gateway authenticates the MN, construct a proxy binding update message.
  • Step 303 After receiving the proxy binding update message, the mapping server allocates a home network prefix to the MN, and creates a binding cache entry (BCE: Binding Cache Entry, BCE) to save the binding of the MN home network prefix and the proxy care-of address. relationship.
  • BCE Binding Cache Entry
  • Step 304 The mapping server replies to the mobile access gateway with a proxy binding acknowledgement message, where the message carries the home network prefix assigned to the MN.
  • Step 305 After receiving the proxy binding acknowledgement message, the mobile access gateway creates a Binding Update List (BUL) for the MN to record information about the binding update message sent by the MN. And sending a router advertisement message to the MN, where the message includes a home network prefix assigned by the mapping server to the mobile node and related parameters used by the MN for address configuration.
  • BUL Binding Update List
  • Step 306 After receiving the router advertisement message, the mobile node configures its interface address according to the configuration mode indicated in the message, that is, the stateful or stateless address configuration mode. After the address configuration succeeds, the MN obtains the hometown originating from the home network prefix. address.
  • the above embodiment of the present invention registers the mobile node on the mapping server by the mobile access gateway, and the mapping server allocates the home network prefix to the mobile node, and the mobile node configures the home address accordingly.
  • the mapping server stores location information of all mobile nodes in the administrative domain, so that different mobile nodes can perform location query when communicating with each other.
  • the mapping server stores the binding relationship between the home network prefix and the proxy care-of address.
  • the purpose of the MN registration is to store the binding relationship between the node information of the MN and the mobile access gateway information in the mapping server.
  • the mapping server may also use the identifier (ID) of the MN carrying the PBU message as the node information in the binding relationship, or the MN may feed back the configured home address to the mapping server.
  • the node information in the relationship is determined.
  • the mapping server can also use the address of the mobile access gateway carried in the PBU message as the mobile access gateway information in the binding relationship.
  • the embodiment of the present invention provides a method for packet forwarding to optimize the data forwarding path between the MN and the CN. After the first packet is forwarded, the subsequent data packet is directly forwarded through the tunnel between the MAGs.
  • the first mobile access gateway ie, the MAG attached to the mobile node, the present invention
  • the mobile node also stores the first message sent by the mobile node to the opposite node; and obtains the proxy care-of address of the opposite node by sending an address query message to the mapping server (the proxy care-of address points to the MAG attached to the peer node, The MAG also becomes the peer node MAG), and the query message carries the node information of the opposite node; the transmission tunnel of the first mobile access gateway to the second mobile access gateway is established according to the query result; the first stored by the established tunnel The packet is sent to the second mobile access gateway, and finally forwarded to the opposite node. Subsequent messages are forwarded directly through the tunnel between the mobile access gateways.
  • a flow chart of a packet forwarding method according to Embodiment 2 of the present invention includes the following steps:
  • Step 400 The mobile node MN sends the first message to the opposite node CN.
  • the destination address of the first message is CN's home address (HoA), and the source address is the home address of the MN.
  • Step 401 After receiving the first packet, the first mobile access gateway uses the node information of the CN as an index to query the mapping routing table to obtain the mobile access gateway information of the CN (which may be a proxy care-of address (Proxy-CoA), or may be The address of the mobile access gateway is shown in the figure as Proxy-CoA. The following example is used. If the call is missed, the first packet is cached.
  • Proxy-CoA proxy care-of address
  • the first mobile access gateway uses the HoA as the index or the HNP as the index to be queried, which is determined according to the specific content of the mapping of the mapping routing table, which is not limited by the present invention.
  • Step 402 The first mobile access gateway sends an address query request message to the mapping server to query the proxy care-of address of the CN, where the query request message carries the CN node information, which may be a home address (HoA) or a home network prefix (HNP).
  • HoA home address
  • HNP home network prefix
  • Step 403 After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN by using the home network prefix of the CN as an index, and the mapping server sends an address query response message to the first mobile access gateway, where the message carries the CN. Agent transfer address.
  • Step 404 creating a mapping routing table.
  • the first mobile access gateway After receiving the address query response message of the mapping server, the first mobile access gateway extracts the proxy care-of address of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information, and the mapping relationship may also be It is saved in the original binding update list of the first mobile access gateway.
  • step 405 a tunnel is established.
  • the first mobile access gateway establishes a unidirectional tunnel to the second mobile access gateway according to the proxy care-of address of the CN (also becomes the first transport tunnel in the present invention).
  • step 406 the first message is sent.
  • the first mobile access gateway tunnel encapsulates the first packet stored in step 401 according to the established mapping routing table: the source address of the outer IP header is the mobile access gateway information of the MN (for example, the proxy care-of address, or the first The address of a mobile access gateway, the destination address is the mobile access gateway information of the CN (such as the proxy care-of address or the address of the second MAG); the source address of the inner-layer IP header is the node information of the MN, and the destination address is the CN Node information.
  • the first mobile access gateway sends the encapsulated first message to the second mobile access gateway.
  • Step 407 The second mobile access gateway receives the first message sent by the first mobile access gateway through the tunnel, learns the node information of the MN and the mobile access gateway information, establishes a mapping routing table locally, and saves the node information and the mobile of the MN.
  • the mapping relationship between the access gateway information and the mapping relationship may also be saved in the original binding update list of the second mobile access gateway.
  • Step 408 The second mobile access gateway strips the outer tunnel header of the packet, and forwards the first packet to the second packet.
  • Step 409 The second mobile access gateway establishes a unidirectional tunnel to the first mobile access gateway according to the learned proxy care-of address of the MN (in combination with the unidirectional tunnel established in step 405 (the invention also becomes the first transmission). Tunnel), the two-way tunnel between the first mobile access gateway and the second mobile access gateway is successfully established).
  • Step 410 to step 412 subsequent packet forwarding.
  • the mapping routing table established by the first mobile access gateway stores the mapping relationship between the node information of the CN and the mobile access gateway information;
  • the mapping routing table established by the second mobile access gateway stores the node of the MN. Mapping relationship between information and mobile access gateway information; a two-way tunnel is established between the first mobile access gateway and the second mobile access gateway.
  • the subsequent data packets between the MN and the CN are forwarded through the bidirectional tunnel between the mobile access gateways.
  • the local mapping routing table is first searched according to the destination address of the packet, and then The packet is encapsulated according to the information of the mobile access gateway corresponding to the destination address, and the encapsulated packet is sent to the mobile access gateway of the other party through the tunnel. Finally, the mobile access gateway decapsulates the packet. Forward to the peer node.
  • the mobile access gateway stores the first packet, obtains the mobile access gateway information of the peer node from the mapping server, encapsulates the first packet, and sends the packet to the peer mobile access gateway.
  • the mobile access gateway optimizes the forwarding path of subsequent data packets between the MN and the CN by creating a mapping routing table.
  • the first mobile access gateway stores the first message sent by the mobile node to the opposite node; the proxy forwarding address of the opposite node is obtained by sending an address query message to the mapping server, and the query message carries the peer node.
  • Node information, and node information of the MN mobile access gateway information of the MN; establishing a transmission tunnel of the first mobile access gateway to the second mobile access gateway according to the query result; sending the first packet stored by establishing a good tunnel
  • the second mobile access gateway is forwarded to the opposite node. Subsequent messages are forwarded directly through the tunnel between the mobile access gateways.
  • FIG. 5 it is a flowchart of a packet forwarding method according to Embodiment 3 of the present invention. Includes the following steps:
  • Step 500 The mobile node MN sends the first packet to the opposite node CN.
  • the destination address of the first message is the home address of CN, and the source address is the home address of the MN.
  • Step 501 After receiving the first packet, the first mobile access gateway uses the home information of the CN as an index to query the mapping routing table to obtain the proxy care-of address of the CN. If not, the first mobile access gateway stores the first packet.
  • Step 502 The first mobile access gateway sends an address query request message to the mapping server to query the proxy care-of address of the CN, and the query request message carries the node information of the CN, the node information of the MN, and the mobile access gateway information.
  • Step 503 After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN by using the home network prefix of the CN as an index, and forwards the message to the second mobile access gateway.
  • Step 504 After receiving the address query request message, the second mobile access gateway extracts the node information of the MN and the mobile access gateway information in the message, and establishes a mapping routing table, and saves the mapping between the node information of the MN and the information of the mobile access gateway. Relationship, the mapping relationship may also be saved in the original binding update list of the second mobile access gateway.
  • Step 505 establishing a tunnel. Establish a one-way tunnel to the first mobile access gateway,
  • Step 506 The second mobile access gateway returns an address query response message to the first mobile access gateway, where the message carries the proxy care-of address of the CN.
  • Step 507 creating a mapping routing table.
  • the first mobile access gateway After receiving the address query response message of the second mobile access gateway, the first mobile access gateway extracts the mobile access gateway information of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information. The mapping relationship may also be saved in the original binding update list of the first mobile access gateway.
  • Step 508 establishing a tunnel.
  • the first mobile access gateway establishes a unidirectional tunnel to the second mobile access gateway according to the mobile access gateway information of the CN (in combination with the unidirectional tunnel established in step 505, the first mobile access gateway and the second mobile access The two-way tunnel between the gateways was successfully established).
  • Step 509 The first mobile access gateway tunnels the first packet stored in step 501 according to the established mapping routing table: the source address of the outer IP header is the mobile access gateway information of the MN, and the destination address is CN. Mobile access gateway information; the source address of the inner layer IP header is the home address of the MN, and the destination address is the home address of the CN. The first mobile access gateway sends the encapsulated first message to the second mobile access gateway.
  • Step 510 After receiving the first packet sent by the first mobile access gateway through the tunnel, the second mobile access gateway strips the outer tunnel header of the data packet and forwards the first packet to the CN.
  • Steps 511 to 513 are the same as steps 410 to 412, and will not be described again.
  • the foregoing embodiment of the present invention uses the mobile access gateway to store the first packet, obtains the mobile access gateway information of the peer node from the peer mobile access gateway, encapsulates the first packet, and sends the packet to the peer mobile access gateway to avoid
  • PMIPv6 the packet transmission delay caused by the fixed anchor point needs to be shortened, the forwarding path is shortened, and the communication efficiency is improved.
  • the mobile access gateway optimizes the forwarding path of subsequent data packets between the MN and the CN by creating a mapping routing table.
  • the first mobile access gateway receives the first message sent by the mobile node to the opposite node; and obtains the proxy care-of address of the opposite node by sending an address query message to the mapping server, where the query message carries the peer node The home information, and the first message; the mapping server extracts the first message from the query message, sends it to the second mobile access gateway, and finally forwards it to the peer node. Subsequent messages are forwarded directly through the tunnel between the mobile access gateways.
  • Step 600 The mobile node MN sends the first message to the opposite node CN.
  • the destination address of the first message is the home address of CN, and the source address is the home address of the MN.
  • Step 601 After receiving the first packet, the first mobile access gateway uses the home information of the CN as an index to query the mapping routing table to obtain the proxy care-of address of the CN, and the first mobile access gateway sends an address query request message to the mapping server.
  • the message carries the first message and CN's hometown information.
  • Step 602 After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN, and extracts the first packet in the message to be forwarded to the second mobile access gateway.
  • Step 603 The second mobile access gateway receives the first packet forwarded from the mapping server, and forwards the packet to the CN.
  • Step 604 The mapping server performs the step 602, and sends an address query response message to the first mobile access gateway, where the message carries the proxy care-of address of the CN.
  • Step 605 Create a mapping routing table and establish a tunnel.
  • the first mobile access gateway After receiving the address query response message of the mapping server, the first mobile access gateway extracts the proxy care-of address of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information, and the mapping relationship may also be The first mobile access gateway establishes a one-way tunnel to the second mobile access gateway according to the proxy care-of address of the CN.
  • the second mobile access gateway learns the node information of the MN and the mobile access gateway information, establishes a mapping routing table, and saves the node information of the MN and the mobile access gateway. The mapping relationship of information.
  • Step 609 The second mobile access gateway establishes a unidirectional tunnel to the first mobile access gateway according to the learned proxy care-of address of the MN (in combination with the unidirectional tunnel established in step 605, the first mobile access gateway and the first The two-way tunnel between the mobile access gateways is successfully established.
  • Steps 610 to 612 are the same as steps 410 to 412, and are not described again.
  • the foregoing embodiment of the present invention carries the first message by mapping the server in the address query request message.
  • the first mobile access gateway receives the first packet sent by the mobile node to the opposite node, and obtains the care-of address of the opposite node by sending an address query message to the mapping server, where the query message carries the node of the opposite node.
  • FIG. 7 is a flowchart of a packet forwarding method according to Embodiment 5 of the present invention. Includes the following steps:
  • Step 700 The mobile node MN sends the first packet to the opposite node CN.
  • the destination address of the first message is the home address of CN, and the source address is the home address of the MN.
  • Step 701 After receiving the first message, the first mobile access gateway uses the home information of the CN as an index to query the mapping routing table to obtain the proxy care-of address of the CN, and the first mobile access gateway sends an address query request message to the mapping server.
  • the message carries the first message, CN's home network information, MN node information, and mobile access gateway information.
  • Step 702 After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN by using the home network prefix of the CN as an index, and forwards the message to the second mobile access gateway.
  • Step 703 Forward the first packet, and create a mapping routing table. After receiving the address query request message, the second mobile access gateway extracts the first message in the message and forwards it to the CN.
  • Extracting the node information of the MN and the mobile access gateway information address in the message, establishing a mapping routing table locally, and preserving the mapping relationship between the node information of the MN and the mobile access gateway information, and the mapping relationship may also be saved in the second mobile access gateway.
  • the original bindings are updated in the list.
  • Step 704 establishing a tunnel.
  • the second mobile access gateway according to the mobile access gateway information of the MN,
  • Step 705 The second mobile access gateway sends an address query response message to the first mobile access gateway, where the message carries the mobile access gateway information of the CN.
  • Step 706 Create a mapping routing table and establish a tunnel.
  • the first mobile access gateway After receiving the address query response message of the second mobile access gateway, the first mobile access gateway extracts the mobile access gateway information of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information.
  • the mapping relationship may also be saved in the original binding update list of the first mobile access gateway; the first mobile access gateway establishes a one-way tunnel to the second mobile access gateway according to the proxy care-of address of the CN (in combination step
  • the unidirectional tunnel established in 704, the bidirectional tunnel between the first mobile access gateway and the second mobile access gateway is successfully established).
  • Steps 707 to 709 are the same as steps 410 to 412, and are not described again.
  • the mobile access gateway extracts the first packet from the message by using the first packet in the address query request message, and forwards the response message to the mobile access gateway that sends the address query request message to establish an address query response message.
  • the subsequent data packets of the MN and the CN are forwarded through the tunnel, which avoids the packet transmission delay caused by the need to traverse the fixed anchor point in the PMIPv6, shortens the forwarding path, and improves the communication efficiency.
  • the functional modules of the mobile access gateway (MAG) of the present invention that are particularly relevant to the present invention are described below.
  • the MAG when the MAG is the mobile node MAG corresponding to the mobile node (MN), that is, the first MAG, the MAG includes:
  • the query request sending module is configured to send an address query request to the mapping server, where the node information of the peer node (CN) is carried, where the node information is a CN identifier, a home address, or a home network prefix;
  • a query response receiving module configured to receive an address query response message, where the mobile access gateway information of the CN is carried, where the mobile access gateway information is an address of a peer node MAG or a proxy that the peer node allocates for the CN Handover address.
  • the MAG further includes:
  • a transmission tunnel establishing module as the mobile node MAG, configured to establish a first transmission tunnel to the opposite node MAG corresponding to the CN according to the mobile access gateway information of the CN in the address query response message;
  • the message buffering module is configured to: when the mobile node MAG is used, buffering the first message received before the first transmission tunnel is established;
  • the packet forwarding module When the packet forwarding module is used as the mobile node MAG, the first packet is forwarded after the first transmission tunnel is established.
  • the address query request further carries node information of the mobile node (MN) and mobile access gateway information, where the mobile access gateway information of the MN is mobile
  • MN mobile node
  • the mobile access gateway information of the MN is mobile
  • the address of the node MAG, or the proxy care-of address assigned by the mobile node MAG to the MN; as shown in FIG. 11, on the basis of the MAG shown in FIG. 9, when the MAG is the peer node MAG corresponding to the CN Also includes:
  • a query request receiving module configured to receive an address query request sent by the mapping server, and a query response sending module, configured to send an address query to the mobile node MAG corresponding to the MN according to the mobile access gateway information of the MN in the address query request Reply message.
  • the address query response message is sent by the mapping server or the peer node MAG.
  • the MAG further includes a mapping relationship maintenance module. And the mapping relationship between the node information of the CN and the mobile access gateway information is saved according to the address query response message; the packet forwarding module is further configured to: before the forwarding The packet encapsulates the outer tunnel address, and the outer source address of the encapsulation is the mobile access gateway information of the MN, and the destination address is the mobile access gateway information of the CN.
  • the transmission tunnel establishing module is further configured to establish, according to the mobile access gateway information of the MN in the address query request, a second transmission tunnel to the mobile node MAG corresponding to the MN;
  • the mapping relationship maintenance module is further configured to save a mapping relationship between the node information of the MN and the mobile access gateway information according to the address query request.
  • the mapping server of the present invention includes:
  • the query request receiving module is configured to receive an address query request sent by the mobile node MAG corresponding to the mobile node, where the node information of the peer node (CN) is carried;
  • a binding relationship maintenance module configured to save a binding relationship, where the binding relationship between the node information of the CN and the mobile access gateway information is included;
  • a binding relationship query module configured to query the saved binding relationship, and obtain information about the mobile access gateway corresponding to the node information of the peer node;
  • a query request processing module configured to send an address query response message to the mobile node MAG, where the mobile access gateway information of the CN is carried; or, to correspond to the CN according to the mobile access gateway information of the CN
  • the peer node MAG forwards the address query request.
  • the address query request further carries a first message
  • the destination address of the first document is node information of the CN.
  • the mapping server further includes a packet forwarding module, configured to access the gateway information according to the CN Forwarding the first packet to the peer node MAG.
  • the mapping server further includes:
  • a proxy binding update message receiving module configured to receive a proxy binding update message sent by a mobile node (MN) mobile access gateway (MAG);
  • MN mobile node
  • MAG mobile access gateway
  • a home network prefix allocation module configured to allocate a home network prefix to the MN
  • a proxy binding confirmation message sending module configured to reply to the mobile node MAG with a proxy binding acknowledgement message, where the message carries a home network prefix assigned to the MN;
  • the binding relationship saved in the binding relationship maintenance module is a binding relationship between the home network prefix and the proxy care-of address of the MN determined according to the allocated home network prefix and the proxy binding update message.
  • the present invention also provides a message forwarding path management system including a mobile access gateway (MAG) and a mapping server as described above.
  • MAG mobile access gateway
  • the home network prefix is the first 64 bits of the home address.
  • the network element such as the mapping server or MAG that knows the home address can infer the corresponding home network prefix.
  • the technical solution provided by the embodiment of the present invention has the following advantages: By querying the mapping server for the mobile access gateway information of the opposite node, the packet does not need to be forwarded through a fixed anchor point, thereby optimizing data forwarding. The path reduces the data transmission delay.
  • the packet forwarding path management method, the network element, and the system in the embodiment of the present invention query the mobile access gateway information of the opposite node (CN) through the mobile access gateway (MAG) attached by the mobile node (MN), thereby
  • the mobile access gateway implements packet forwarding between the MN and the CN to solve the traffic forwarding bottleneck caused by the LMA.

Abstract

A method for managing a packet forwarding path comprises: a first mobile access gateway (MAG) sending an address query request to a mapping server, the address query request carrying node information of a correspondent node (CN); the mapping server receiving the address query request, querying a binding caching table, obtaining MAG information of the CN corresponding to the node information of the CN, the MAG information of the CN pointing to a second MAG; the mapping server directly sending an address query response message to the first MAG, or after forwarding the address query request to the second MAG, the second MAG sending the address query response message to the first MAG, the query response message carrying the MAG information of the CN; and the first MAG receiving the address query response message.

Description

报文转发路径管理方法、 系统及网元  Message forwarding path management method, system and network element
技术领域 Technical field
本发明涉及移动通信领域, 尤其涉及一种报文转发路径管理方法、 系统 及网元(包括移动接入网关( Mobile Access Gateway , MAG )和映射服务器)。 背景技术  The present invention relates to the field of mobile communications, and in particular, to a packet forwarding path management method, system, and network element (including a mobile access gateway (MAG) and a mapping server). Background technique
ΡΜΙΡνό 协议为基于网络的移动性管理协议, 移动节点 (Mobile Node, MN ) 不需要参与任何与 IP移动相关的信令流程, 网络中的移动实体会跟踪 移动节点的移动并且发起移动信令过程以及设置必需的路由状态。 PMIPv6域 中的核心功能实体是本地移动锚点(Local Mobility Anchor, LMA )和移动接 入网关 MAG,本地移动锚点负责维持移动节点的可达性状态并且移动节点的 家乡网络前缀逻辑上锚接在 LMA上, LMA会接受代理移动 IPv6域内或域外 的任何节点发送到移动节点的任何分组。 移动接入网关负责管理 MN移动性 相关的信令, 跟踪移动节点在接入网络中的移动, 接收由移动节点发送到对 端节点的任何分组并且通过双向隧道发送到本地移动锚点。  The ΡΜΙΡνό protocol is a network-based mobility management protocol. The mobile node (MN) does not need to participate in any IP mobile-related signaling procedure. The mobile entity in the network tracks the mobile node's mobility and initiates the mobile signaling process. Set the required routing status. The core functional entities in the PMIPv6 domain are the Local Mobility Anchor (LMA) and the Mobile Access Gateway (MAG). The local mobility anchor is responsible for maintaining the reachability status of the mobile node and logically anchoring the mobile node's home network prefix. On the LMA, the LMA accepts any packet sent to the mobile node by any node within the proxy mobile IPv6 domain or outside the domain. The mobile access gateway is responsible for managing the mobility related signaling of the MN, tracking the movement of the mobile node in the access network, receiving any packets sent by the mobile node to the correspondent node and transmitting to the local mobility anchor via the bidirectional tunnel.
如图 1 , 为 PMIPv6中 MN和 CN ( Correspondent Node )之间的数据传输 路径, MN附着在 MAG1上, CN附着在 MAG2上。 MN发往 CN的报文首 先到达 MAGI , MAG1对报文进行隧道封装, 通过 MAG1和 LMA之间的隧 道将艮文发送给 LMA, LMA进行解封装,并对艮文进行重新封装,通过 LMA 和 MAG2之间的隧道发送给 MAG2, MAG2进行解封装后转发给 CN, CN 发往 MN的 ^艮文通过同样的方式进行转发。  As shown in Figure 1, the data transmission path between the MN and the CN (Correspondent Node) in PMIPv6 is attached to the MAG1, and the CN is attached to the MAG2. The packet sent by the MN to the CN first arrives at the MAGI. The MAG1 tunnels the packet and sends the packet to the LMA through the tunnel between the MAG1 and the LMA. The LMA decapsulates the packet and repackages the packet through the LMA and The tunnel between MAG2 is sent to MAG2. After decapsulation, MAG2 forwards it to the CN. The CN sends the message to the MN in the same way.
釆用上述方法, MN和 CN之间的数据始终需要通过固定锚点 LMA进行 转发,数据传输路径不是最优路径,并且报文传输过程中需要经过 LMA的解 封装和二次重新封装的处理, 引起较大的数据传输时延和丟包。 尤其当网络 趋于扁平化并且数据量较大时, LMA成为流量转发的瓶颈, 容易产生单点故 障问题, 影响了 LMA的可扩展性。 发明内容 上述 Using the above method, the data between the MN and the CN always needs to be forwarded through the fixed anchor point LMA, the data transmission path is not the optimal path, and the LMA decapsulation and secondary re-encapsulation processing are required in the message transmission process. Causes large data transmission delays and packet loss. Especially when the network tends to be flat and the amount of data is large, LMA becomes the bottleneck of traffic forwarding, which is easy to cause single point of failure and affects the scalability of LMA. Summary of the invention
本发明要解决的技术问题是提供一种报文转发路径管理方法、 网元和系 统, 以解决 LAM成为流量转发瓶颈的问题。  The technical problem to be solved by the present invention is to provide a packet forwarding path management method, a network element, and a system to solve the problem that the LAM becomes a bottleneck of traffic forwarding.
为解决以上技术问题, 本发明提供了一种报文转发路径管理方法, 该方 法包括:  To solve the above technical problem, the present invention provides a packet forwarding path management method, where the method includes:
第一移动接入网关(MAG )向映射服务器发送地址查询请求, 其中携带 对端节点 (CN ) 的节点信息;  The first mobile access gateway (MAG) sends an address query request to the mapping server, where the node information of the peer node (CN) is carried;
所述映射服务器接收所述地址查询请求,查询绑定緩存表,获取所述 CN 的节点信息对应的所述 CN的移动接入网关信息, 所述 CN的移动接入网关 信息指向第二 MAG;  The mapping server receives the address query request, queries the binding cache table, and acquires the mobile access gateway information of the CN corresponding to the node information of the CN, where the mobile access gateway information of the CN points to the second MAG;
所述映射服务器直接向所述第一 MAG发送地址查询应答消息, 或向第 二 MAG转发所述地址查询请求后,所述第二 MAG向所述第一 MAG发送地 址查询应答消息, 所述查询应答消息中携带所述 CN的移动接入网关信息; 所述第一 MAG接收所述地址查询应答消息。  After the mapping server sends an address query response message to the first MAG, or after forwarding the address query request to the second MAG, the second MAG sends an address query response message to the first MAG, where the query The response message carries the mobile access gateway information of the CN; the first MAG receives the address query response message.
优选地, 所述第一 MAG发送所述地址查询请求前, 该方法还包括, 所 述第一 MAG接收并緩存移动节点( MN )发送的所述首报文; 所述第一 MAG 建立到第二 MAG的第一传输隧道, 并通过所述第一传输隧道进行所述首报 文转发。  Preferably, before the first MAG sends the address query request, the method further includes: the first MAG receiving and buffering the first message sent by a mobile node (MN); a first transmission tunnel of the second MAG, and forwarding the first packet by using the first transmission tunnel.
优选地, 所述第一 MAG发送所述地址查询请求前, 该方法还包括, 所 述第一 MAG接收移动节点(MN )发送的首报文, 所述首报文的目的地址为 所述 CN的家乡地址; 所述地址查询请求中还携带所述首报文; 所述映射服 务器查询所述 CN的移动接入网关信息后,直接向所述第二 MAG转发所述首 文或通过所述地址查询消息向所述第二 MAG转发所述首 文。  Preferably, before the first MAG sends the address query request, the method further includes: receiving, by the first MAG, a first packet sent by a mobile node (MN), where a destination address of the first packet is the CN The home address; the address query request further includes the first message; after the mapping server queries the mobile access gateway information of the CN, directly forwards the first text to the second MAG or passes the The address query message forwards the first message to the second MAG.
优选地, 所述地址查询请求还携带所述 MN的节点信息和移动接入网关 信息; 所述第二 MAG接收所述地址查询请求消息后, 根据所述 MN的移动 接入网关信息建立到所述第一 MAG的第二传输隧道, 并保存所述 MN的节 点信息和移动接入网关信息的映射关系。  Preferably, the address query request further carries the node information of the MN and the mobile access gateway information; after receiving the address query request message, the second MAG establishes a location according to the mobile access gateway information of the MN. a second transmission tunnel of the first MAG, and storing a mapping relationship between the node information of the MN and the mobile access gateway information.
优选地, 所述第一 MAG接收所述地址查询应答消息后, 该方法还包括: 所述第一 MAG保存所述 CN的节点信息与移动接入网关信息的映射关系;所 述第一 MAG根据所述映射关系将接收的首报文封装外层隧道地址后转发, 所述 CN的移动接入网关信息。 Preferably, after the first MAG receives the address query response message, the method further includes: The first MAG saves a mapping relationship between the node information of the CN and the mobile access gateway information; the first MAG forwards the received first packet to the outer tunnel address according to the mapping relationship, and the CN Mobile access gateway information.
优选地, 所述第二 MAG接收所述封装后的首报文后, 根据其中的 MN 的移动接入网关信息建立到所述第一 MAG的第二传输隧道,并保存所述 MN 的节点信息和移动接入网关信息的映射关系。  Preferably, after receiving the encapsulated first message, the second MAG establishes a second transmission tunnel to the first MAG according to the mobile access gateway information of the MN, and saves the node information of the MN. Mapping relationship with mobile access gateway information.
优选地, 所述绑定緩存表中包括若干个绑定緩存表项, 所述绑定緩存表 项是所述对应的 MN注册时生成的 , 所述 MN注册的流程包括:  Preferably, the binding cache table includes a plurality of binding cache entries, where the binding cache entry is generated when the corresponding MN is registered, and the process of registering the MN includes:
所述 MN向附着的 MAG发送路由器请求消息,请求获取家乡网络前缀; 所述 MAG收到所述路由器请求消息后, 向所述映射服务器发送代理绑 定更新消息;  Sending, by the MN, a router request message to the attached MAG, requesting to obtain a home network prefix; after receiving the router request message, the MAG sends a proxy binding update message to the mapping server;
所述映射服务器收到所述代理绑定更新消息后, 为所述 MN分配家乡网 络前缀, 并创建绑定緩存表项保存保存的绑定关系为所述 MN的家乡网络前 缀和代理转交地址的绑定关系;  After receiving the proxy binding update message, the mapping server allocates a home network prefix to the MN, and creates a binding cache entry to save the saved binding relationship to the MN's home network prefix and proxy care-of address. Binding relationship
所述映射服务器向所述 MAG回复代理绑定确认消息, 消息中携带分配 给所述 MN的家乡网络前缀;  The mapping server replies to the MAG with a proxy binding acknowledgement message, where the message carries a home network prefix assigned to the MN;
移动接入网关收到代理绑定确认消息后, 发送路由器通告消息给所述 MN, 消息中包含映射服务器分配给所述 MN的家乡网络前缀以及 MN用来 进行地址配置的相关参数;  After receiving the proxy binding acknowledgement message, the mobile access gateway sends a router advertisement message to the MN, where the message includes a home network prefix allocated by the mapping server to the MN and related parameters used by the MN to perform address configuration.
所述 MN收到路由器通告消息后, 配置生成家乡地址。  After receiving the router advertisement message, the MN configures to generate a home address.
为解决以上技术问题, 本发明还提供了一种移动接入网关(MAG ) , 作 为移动节点 ( MN )对应的移动节点 MAG时, 该 MAG包括:  To solve the above technical problem, the present invention further provides a mobile access gateway (MAG), which is a mobile node MAG corresponding to a mobile node (MN), and the MAG includes:
查询请求发送模块, 其设置为: 向映射服务器发送地址查询请求, 携带 对端节点 (CN ) 的节点信息;  The query request sending module is configured to: send an address query request to the mapping server, and carry node information of the peer node (CN);
查询应答接收模块, 其设置为: 接收地址查询应答消息, 携带所述 CN 的移动接入网关信息。  The query response receiving module is configured to: receive an address query response message, and carry the mobile access gateway information of the CN.
优选地, 所述 MAG还包括: 传输隧道建立模块, 设置为: 作为移动节点 MAG时, 根据所述地址查 询应答消息中的 CN的移动接入网关信息, 建立到所述 CN对应的对端节点 MAG的第一传输隧道; Preferably, the MAG further includes: a transmission tunnel establishing module, configured to: when the mobile node MAG is configured, establish a first transmission tunnel to the opposite node MAG corresponding to the CN according to the mobile access gateway information of the CN in the address query response message;
报文緩存模块, 设置为: 作为移动节点 MAG时, 在所述第一传输隧道 建立前, 緩存接收的首报文;  The message buffering module is configured to: when the mobile node is a MAG, cache the first message received before the first transmission tunnel is established;
报文转发模块, 设置为: 作为移动节点 MAG时, 在所述第一传输隧道 建立后进行所述首报文转发。  The packet forwarding module is configured to: when the mobile node is a MAG, perform the first packet forwarding after the first transmission tunnel is established.
优选地, 所述地址查询请求中还携带移动节点(MN )的节点信息和移动 接入网关信息; 作为 CN对应的对端节点 MAG, 该 MAG还包括:  Preferably, the address query request further carries the node information of the mobile node (MN) and the mobile access gateway information; as the peer node MAG corresponding to the CN, the MAG further includes:
查询请求接收模块, 设置为: 接收映射服务器发送的地址查询请求; 查询应答发送模块, 设置为: 根据所述地址查询请求中的 MN的、 移动 接入网关信息向所述 MN对应的移动节点 MAG发送地址查询应答消息。  The query request receiving module is configured to: receive an address query request sent by the mapping server; the query response sending module is configured to: according to the MN, the mobile access gateway information in the address query request to the mobile node MAG corresponding to the MN Send an address query response message.
优选地, 所述地址查询应答消息是所述映射服务器或对端节点 MAG发 送的。  Preferably, the address query response message is sent by the mapping server or the peer node MAG.
优选地, 所述 MAG还包括映射关系维护模块, 作为移动节点 MAG时: 所述映射关系维护模块设置为:根据所述地址查询应答消息保存所述 CN 的节点信息和移动接入网关信息的映射关系;  Preferably, the MAG further includes a mapping relationship maintenance module, as the mobile node MAG: the mapping relationship maintenance module is configured to: save the mapping of the CN node information and the mobile access gateway information according to the address query response message Relationship
所述报文转发模块还设置为:在转发前对所述首报文封装外层隧道地址, 封装的外层源地址为所述 MN的移动接入网关信息, 目的地址为所述 CN的 移动接入网关信息。  The packet forwarding module is further configured to: encapsulate the outer tunnel address of the first packet before forwarding, the outer source address of the encapsulation is the mobile access gateway information of the MN, and the destination address is the movement of the CN Access gateway information.
优选地, 作为对端节点 MAG时:  Preferably, when the peer node is a MAG:
所述传输隧道建立模块还设置为: 根据所述地址查询请求中的 MN的移 动接入网关信息, 建立到所述 MN对应的移动节点 MAG的第二传输隧道。  The transmission tunnel establishing module is further configured to: establish a second transmission tunnel to the mobile node MAG corresponding to the MN according to the mobile access gateway information of the MN in the address query request.
优选地, 作为对端节点 MAG时: 所述映射关系维护模块还设置为: 根 据所述地址查询请求保存所述 MN的节点信息和移动接入网关信息的映射关 系。  Preferably, when the peer node is a MAG: the mapping relationship maintenance module is further configured to: save a mapping relationship between the node information of the MN and the mobile access gateway information according to the address query request.
为解决以上技术问题, 本发明还提供了一种映射服务器, 所述映射服务 器包括: To solve the above technical problem, the present invention also provides a mapping server, the mapping service The device includes:
查询请求接收模块, 其设置为: 接收移动节点对应的移动节点 MAG发 送的地址查询请求, 其中携带对端节点 (CN ) 的节点信息;  The query request receiving module is configured to: receive an address query request sent by the mobile node MAG corresponding to the mobile node, where the node information of the peer node (CN) is carried;
绑定关系维护模块, 其设置为: 保存绑定关系, 包括所述 CN的节点与 移动接入网关信息的绑定关系;  a binding relationship maintenance module, configured to: save a binding relationship, and include a binding relationship between the node of the CN and the mobile access gateway information;
绑定关系查询模块, 其设置为: 查询保存的绑定关系, 获取所述对端节 点的家乡节点对应的所述 CN的移动接入网关信息;  a binding relationship query module, configured to: query the saved binding relationship, and obtain information about the mobile access gateway of the CN corresponding to the home node of the peer node;
查询请求处理模块, 其设置为: 向所述移动节点 MAG发送地址查询应 答消息, 携带所述 CN的移动接入网关信息; 或, 根据所述 CN的移动接入 网关信息向所述 CN对应的对端节点 MAG转发所述地址查询请求。  a query request processing module, configured to: send an address query response message to the mobile node MAG, carrying the mobile access gateway information of the CN; or, according to the mobile access gateway information of the CN, to the CN The peer node MAG forwards the address query request.
优选地, 所述地址查询请求中还携带首报文, 所述首报文的目的地址为 所述 CN的节点信息。  Preferably, the address query request further carries a first message, and the destination address of the first message is node information of the CN.
优选地, 所述映射服务器还包括报文转发模块, 设置为: 根据所述 CN 的移动接入网关信息向所述对端节点 MAG转发所述首报文。  Preferably, the mapping server further includes a packet forwarding module, configured to: forward the first packet to the peer node MAG according to the mobile access gateway information of the CN.
优选地, 所述映射服务器还包括:  Preferably, the mapping server further includes:
代理绑定更新消息接收模块, 设置为: 接收移动节点(MN )移动接入网 关 (MAG )发送的代理绑定更新消息;  a proxy binding update message receiving module, configured to: receive a proxy binding update message sent by a mobile node (MN) mobile access gateway (MAG);
家乡网络前缀分配模块, 设置为: 为所述 MN分配家乡网络前缀; 代理绑定确认消息发送模块, 设置为: 向移动节点 MAG回复代理绑定 确认消息, 消息中携带分配给所述 MN的家乡网络前缀;  The home network prefix allocation module is configured to: assign a home network prefix to the MN; a proxy binding confirmation message sending module, configured to: reply a proxy binding confirmation message to the mobile node MAG, where the message carries the hometown assigned to the MN Network prefix
所述绑定关系维护模块保存的绑定关系是根据分配的家乡网络前缀及所 述代理绑定更新消息保存的所述 MN的家乡网络前缀和代理转交地址的绑定 关系。  The binding relationship saved by the binding relationship maintenance module is a binding relationship between the home network prefix and the proxy care-of address of the MN saved according to the allocated home network prefix and the proxy binding update message.
为解决以上技术问题, 本发明还提供了一种报文转发路径管理系统, 该 系统包括如上所述的移动接入网关 (MAG ) 。  To solve the above technical problem, the present invention also provides a message forwarding path management system including the mobile access gateway (MAG) as described above.
优选地, 所述系统还包括上述映射服务器。  Preferably, the system further comprises the above mapping server.
本发明实施例报文转发路径管理方法、 网元和系统通过移动节点 (MN)附 着的移动接入网关 (MAG ) 查询对端节点 (CN ) 的移动接入网关信息, 从 而通过两个移动接入网关实现 MN和 CN之间的报文转发,解决因 LMA造成 的流量转发瓶颈问题。 附图概述 A packet forwarding path management method, a network element, and a system are attached by a mobile node (MN) according to an embodiment of the present invention. The mobile access gateway (MAG) queries the mobile access gateway information of the correspondent node (CN) to implement packet forwarding between the MN and the CN through the two mobile access gateways, thereby solving the traffic forwarding bottleneck caused by the LMA. problem. BRIEF abstract
图 1为代理移动 IPv6报文转发路径图;  Figure 1 is a proxy mobile IPv6 packet forwarding path diagram;
图 2为本发明实施例提供的报文转发系统结构图;  2 is a structural diagram of a packet forwarding system according to an embodiment of the present invention;
图 3为本发明实施例 1提供的移动节点注册流程图  FIG. 3 is a flowchart of a mobile node registration according to Embodiment 1 of the present invention;
图 4为本发明实施例 2中提供的报文转发方法流程图;  4 is a flowchart of a packet forwarding method according to Embodiment 2 of the present invention;
图 5为本发明实施例 3中提供的报文转发方法流程图;  FIG. 5 is a flowchart of a packet forwarding method according to Embodiment 3 of the present invention;
图 6为本发明实施例 4中提供的报文转发方法流程图;  6 is a flowchart of a packet forwarding method according to Embodiment 4 of the present invention;
图 7 本发明实施例 5中提供的报文转发方法流程图;  7 is a flowchart of a packet forwarding method provided in Embodiment 5 of the present invention;
图 8为本发明报文转发路径管理方法的示意图;  8 is a schematic diagram of a packet forwarding path management method according to the present invention;
图 9至图 11为本发明移动接入网关实施例的模块结构示意图; 图 12-14为本发明映射服务器实施例的模块结构示意图。 本发明的较佳实施方式  9 to FIG. 11 are schematic diagrams showing the structure of a module of a mobile access gateway according to the present invention; and FIG. 12 is a schematic structural diagram of a module of an embodiment of a mapping server according to the present invention. Preferred embodiment of the invention
下面将结合附图对本发明的实施方式作详细描述。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
本发明实施例应用在移动节点 (MN )和对端节点 (CN ) 附着在不同的 移动接入网关下的场景, 代理移动 IPv6协议提供了 MN和 CN附着在同一个 移动接入网关时的路由优化机制。  The embodiment of the present invention is applied to a scenario in which a mobile node (MN) and a correspondent node (CN) are attached to different mobile access gateways, and the proxy mobile IPv6 protocol provides a route when the MN and the CN are attached to the same mobile access gateway. Optimization mechanism.
参见图 2, 为本发明实施例提供的报文转发系统结构图, 其中:  FIG. 2 is a structural diagram of a packet forwarding system according to an embodiment of the present invention, where:
200, 本发明中的映射服务器是一个控制面的实体,接收来自移动接入网 关的代理绑定更新消息, 保存移动节点家乡网络前缀和代理转交地址的映射 关系; 为移动节点分配家乡网络前缀; 接收来自移动接入网关的地址查询请 求消息, 根据消息中是否携带首报文进行相应处理; 向发送地址查询请求消 息的移动接入网关发送地址查询应答消息。 201 , 第一移动接入网关接收移动节点发往对端节点的首报文, 向映射服 务器发送地址查询消息, 查询对端节点的代理转交地址。 移动接入网关根据 获取的对端节点的代理转交地址对 MN和 CN之间的数据转发路径进行优化。 200, the mapping server in the present invention is a control plane entity, receives a proxy binding update message from the mobile access gateway, and saves a mapping relationship between the mobile node home network prefix and the proxy care-of address; assigns a home network prefix to the mobile node; Receiving an address query request message from the mobile access gateway, performing corresponding processing according to whether the first message is carried in the message; and sending an address query response message to the mobile access gateway sending the address query request message. 201. The first mobile access gateway receives the first packet sent by the mobile node to the opposite node, sends an address query message to the mapping server, and queries the proxy care-of address of the opposite node. The mobile access gateway optimizes the data forwarding path between the MN and the CN according to the obtained proxy care-of address of the opposite node.
所述地址查询消息分两种情况进行构造:  The address query message is constructed in two cases:
携带首报文, 第一移动接入网关不需要存储首报文, 映射服务器收到携 带首报文的地址查询消息后, 对首报文进行下一步转发;  Carrying the first packet, the first mobile access gateway does not need to store the first packet, and after the mapping server receives the address query message carrying the first packet, the mapping packet is forwarded in the next step;
不携带首报文, 第一移动接入网关需要存储首报文, 并利用从映射服务 器查询到的转交地址对存储的首报文进行隧道封装后发送给第二移动接入网 关。  The first mobile access gateway needs to store the first packet, and the first packet is encapsulated and sent to the second mobile access gateway by using the care-of address queried by the mapping server.
本发明通过引入映射服务器, 釆用控制平面与承载平面相分离的平面结 构, 实现移动性管理。 控制面映射服务器负责移动节点的注册和位置管理, 相当于一个位置数据库; 承载面移动接入网关通过向映射服务器进行位置查 询, 传输移动节点和通信节点之间的数据包。 提供一个具有高效数据传输效 率、 充分的网络利用率、 良好的可扩展性和健壮性的移动性管理机制。  The present invention implements mobility management by introducing a mapping server and using a plane structure in which the control plane is separated from the bearer plane. The control plane mapping server is responsible for the registration and location management of the mobile node, which is equivalent to a location database. The bearer plane mobile access gateway transmits the data packets between the mobile node and the communication node by performing location query on the mapping server. Provide a mobility management mechanism with efficient data transfer efficiency, adequate network utilization, good scalability, and robustness.
需要说明的是, 本发明中所说的节点信息, 是用于表明是哪一个移动节 点或对端节点的信息, 可以是移动节点或对端节点的标识(ID ) 、 家乡地址 或家乡网络前缀, 还可以是其中的两个信息的组合或三个信息; 本发明所说 的移动接入网关信息是用于表明哪一个 MAG是移动节点或对端节点附着的 MAG的信息, 可以是 MAG的地址, 也可以是 MAG为移动节点 (MN )和 对端节点( CN )分配的代理转交地址( CoA ) ,还可以是 MAG的地址和 CoA 的组合。 节点信息具体釆用什么信息表示, 移动接入网关信息具体釆用什么 信息表示, 均由具体应用场景或相应网元可能得到的信息决定, 此非本发明 重点, 本发明对此不做限定, 实施例中的具体描述仅为示意, 不应作为对本 发明的限制。  It should be noted that the node information in the present invention is information for indicating which mobile node or the opposite node is, and may be an identifier (ID) of the mobile node or the opposite node, a home address, or a home network prefix. And the combination of the two pieces of information or the three pieces of information; the mobile access gateway information of the present invention is used to indicate which MAG is the information of the MAG attached to the mobile node or the peer node, and may be the MAG. The address may also be a proxy care-of address (CoA) allocated by the MAG for the mobile node (MN) and the correspondent node (CN), or may be a combination of the address of the MAG and the CoA. The node information is specifically represented by what information, and the information of the mobile access gateway information is specifically determined by the specific application scenario or the information that may be obtained by the corresponding network element. This is not the focus of the present invention, and the present invention does not limit this. The detailed description of the embodiments is merely illustrative and should not be construed as limiting.
本发明报文转发路径管理方法, 如图 8所示, 该方法包括:  The packet forwarding path management method of the present invention is as shown in FIG. 8. The method includes:
步骤 801 : 第一移动接入网关(MAG )向映射服务器发送地址查询请求, 其中携带对端节点 (CN ) 的节点信息;  Step 801: The first mobile access gateway (MAG) sends an address query request to the mapping server, where the node information of the opposite node (CN) is carried;
如前所述, 所述节点信息是标识(ID ) 、 家乡地址和 /或家乡网络前缀, 具体携带哪个或哪些信息作为节点信息, 以能根据该查询请求中的节点信息 查找到映射服务器中保存的具体的绑定关系为准; As described above, the node information is an identifier (ID), a home address, and/or a home network prefix. Which one or the other information is carried as the node information, so that the specific binding relationship saved in the mapping server can be found according to the node information in the query request;
步骤 802: 所述映射服务器接收所述地址查询请求, 查询绑定緩存表, 获取所述 CN的移动接入网关信息, 所述 CN的移动接入网关信息指向第二 MAG;  Step 802: The mapping server receives the address query request, queries the binding cache table, and obtains the mobile access gateway information of the CN, where the mobile access gateway information of the CN points to the second MAG;
步骤 803: 所述映射服务器直接向所述第一 MAG发送地址查询应答消 息, 或向第二 MAG转发所述地址查询请求后, 所述第二 MAG向所述第一 MAG发送地址查询应答消息,所述查询应答消息中携带所述 CN的移动接入 网关信息;  Step 803: After the mapping server sends an address query response message to the first MAG, or after forwarding the address query request to the second MAG, the second MAG sends an address query response message to the first MAG. The query response message carries the mobile access gateway information of the CN;
所述 CN的移动接入网关信息是第二 MAG的地址或第二 MAG为所述 The mobile access gateway information of the CN is an address of the second MAG or the second MAG is the
CN分配的代理转交地址; CN assigned proxy care-of address;
步骤 804: 所述第一 MAG接收所述地址查询应答消息。  Step 804: The first MAG receives the address query response message.
以上步骤 801至 804主要关注第一 MAG如何得到对端节点的代理转交 地址的过程。  The above steps 801 to 804 mainly focus on how the first MAG obtains the proxy handover address of the opposite node.
可选地, 所述第一 MAG发送所述地址查询请求前, 该方法还包括, 所 述第一 MAG接收并緩存移动节点( MN )发送的所述首报文; 所述第一 MAG 建立到第二 MAG的第一传输隧道, 并通过所述第一传输隧道进行所述首报 文转发。 具体参见实施例 2和实施例 3。  Optionally, before the sending, by the first MAG, the address query request, the method further includes: the first MAG receiving and buffering the first packet sent by a mobile node (MN); a first transmission tunnel of the second MAG, and performing the first packet forwarding by using the first transmission tunnel. See Example 2 and Example 3 for details.
可选地, 所述第一 MAG发送所述地址查询请求前, 该方法还包括, 所 述第一 MAG接收移动节点(MN )发送的首报文, 所述首报文的目的地址为 所述 CN的家乡地址; 所述地址查询请求中还携带所述首报文; 所述映射服 务器查询所述 CN的代理转交地址后,直接向所述第二 MAG转发所述首报文 或通过所述地址查询消息向所述第二 MAG转发所述首 文。 具体参见实施 例 4和实施例 5。  Optionally, before the first MAG sends the address query request, the method further includes: receiving, by the first MAG, a first packet sent by a mobile node (MN), where a destination address of the first packet is The home address of the CN; the address query request further carries the first message; after the mapping server queries the proxy care-of address of the CN, directly forwards the first message to the second MAG or passes the The address query message forwards the first message to the second MAG. See Example 4 and Example 5 for details.
可选地, 所述地址查询请求还携带所述 MN的节点信息和移动接入网关 信息,所述移动接入网关信息为第一 MAG的地址,或所述第一 MAG为所述 MN分配的代理转交地址; 所述第二 MAG接收所述地址查询请求消息后 ,根 据所述 MN的移动接入网关信息建立到所述第一 MAG的第二传输隧道, 并  Optionally, the address query request further carries the node information of the MN and the mobile access gateway information, where the mobile access gateway information is an address of the first MAG, or the first MAG is allocated to the MN. After the second MAG receives the address query request message, the second MAG establishes a second transmission tunnel to the first MAG according to the mobile access gateway information of the MN, and
8 保存所述 MN的节点信息和移动接入网关信息的映射关系。 具体参见实施例8 The mapping relationship between the node information of the MN and the mobile access gateway information is saved. See the embodiment for details.
3和实施例 5。 3 and Example 5.
进一步地, 所述第一 MAG接收所述地址查询应答消息后, 该方法还包 括: 所述第一 MAG保存所述 CN的节点信息与移动接入网关信息的映射关 系; 所述第一 MAG根据所述映射关系将接收的首报文封装外层隧道地址后 地址为所述 CN的移动接入网关信息。 具体参见实施例 2、 3。  After the first MAG receives the address query response message, the method further includes: the first MAG saves a mapping relationship between the node information of the CN and the mobile access gateway information; The mapping relationship encapsulates the received first packet with the outer tunnel address and the address is the mobile access gateway information of the CN. See Embodiments 2 and 3 for details.
可选地, 所述第二 MAG接收所述封装后的首报文后, 根据其中的 MN 的移动接入网关信息建立到所述第一 MAG的第二传输隧道,并保存所述 MN 的节点信息和移动接入网关信息的映射关系。 具体参见实施例 2及实施例 4。  Optionally, after receiving the encapsulated first packet, the second MAG establishes a second transmission tunnel to the first MAG according to the mobile access gateway information of the MN, and saves the node of the MN. The mapping relationship between information and mobile access gateway information. See Example 2 and Example 4 for details.
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
实施例 1  Example 1
本发明中, 映射服务器中的绑定緩存表包括若干个绑定緩存表项, 所述 绑定緩存表项是所述对应的 MN注册时生成的。 如图 3所示, 为本发明实施 例 1提供的移动节点注册流程。 包括以下步骤:  In the present invention, the binding cache table in the mapping server includes a plurality of binding cache entries, and the binding cache entries are generated when the corresponding MN is registered. As shown in FIG. 3, it is a mobile node registration process provided by Embodiment 1 of the present invention. Includes the following steps:
步骤 300, MN附着到移动接入网关时, 移动接入网关将获取到 MN-ID, 从 AAA服务器获取该 MN的配置文件, 根据配置文件对 MN进行鉴权操作, 判断是否能为 MN提供移动性管理服务。  Step 300: When the MN is attached to the mobile access gateway, the mobile access gateway acquires the MN-ID, obtains the configuration file of the MN from the AAA server, performs an authentication operation on the MN according to the configuration file, and determines whether the mobile device can provide the mobile device with the MN. Sex management services.
步骤 301 , MN向附着的移动接入网关发送路由器请求消息,请求获取当 前访问网络的前缀(即家乡网络前缀 )信息, 以配置 MN的 IP地址(即家乡 地址) , 请求消息中携带 MN的标识(ID ) 。  Step 301: The MN sends a router request message to the attached mobile access gateway, requesting to obtain the prefix of the current visited network (ie, the home network prefix), to configure the IP address of the MN (ie, the home address), and the request message carries the identifier of the MN. (ID).
可理解地, 步骤 301与步骤 302无严格的先后顺序, 可以在 MN附着后 的任意时刻发送路由器请求消息。  It can be understood that the steps 301 and 302 have no strict sequence, and the router request message can be sent at any time after the MN is attached.
步骤 302 , 移动接入网关对 MN鉴权通过后, 构造代理绑定更新消息 Step 302: After the mobile access gateway authenticates the MN, construct a proxy binding update message.
(PBU, Proxy Binding Update)发送给映射服务器, 为 MN在映射服务器上进行 注册, 代理绑定更新消息中携带 MN的标识(ID ) 、 移动接入网关的地址以 及该移动接入网关为 MN分配的代理转交地址(CoA ) 。 步骤 303 , 映射服务器收到代理绑定更新消息后, 为 MN分配家乡网络 前缀, 并创建绑定緩存表项 (BCE: Binding Cache Entry, BCE)保存 MN的家 乡网络前缀和代理转交地址的绑定关系。 (PBU, Proxy Binding Update) is sent to the mapping server, and the MN is registered on the mapping server. The proxy binding update message carries the identifier (ID) of the MN, the address of the mobile access gateway, and the mobile access gateway allocates the MN. Proxy Care-of Address (CoA). Step 303: After receiving the proxy binding update message, the mapping server allocates a home network prefix to the MN, and creates a binding cache entry (BCE: Binding Cache Entry, BCE) to save the binding of the MN home network prefix and the proxy care-of address. relationship.
步骤 304, 映射服务器向移动接入网关回复代理绑定确认消息, 消息中 携带分配给 MN的家乡网络前缀。  Step 304: The mapping server replies to the mobile access gateway with a proxy binding acknowledgement message, where the message carries the home network prefix assigned to the MN.
步骤 305, 移动接入网关收到代理绑定确认消息后, 为 MN创建绑定更 新列表( Binding Update List , BUL )记录 MN所发送的绑定更新消息的相关 信息。 并发送路由器通告消息给 MN, 消息中包含映射服务器分配给移动节 点的家乡网络前缀以及 MN用来进行地址配置的相关参数。  Step 305: After receiving the proxy binding acknowledgement message, the mobile access gateway creates a Binding Update List (BUL) for the MN to record information about the binding update message sent by the MN. And sending a router advertisement message to the MN, where the message includes a home network prefix assigned by the mapping server to the mobile node and related parameters used by the MN for address configuration.
步骤 306, 移动节点收到路由器通告消息后, 根据消息中指示的配置模 式, 即有状态或无状态地址配置模式来配置它的接口地址, 地址配置成功后, MN获得源自家乡网络前缀的家乡地址。  Step 306: After receiving the router advertisement message, the mobile node configures its interface address according to the configuration mode indicated in the message, that is, the stateful or stateless address configuration mode. After the address configuration succeeds, the MN obtains the hometown originating from the home network prefix. address.
本发明上述实施例通过移动接入网关为移动节点在映射服务器上进行注 册, 映射服务器为移动节点分配家乡网络前缀, 移动节点据此配置家乡地址。 映射服务器通过存储本管理域所有移动节点的位置信息, 以便不同的移动节 点相互通讯时进行位置查询。  The above embodiment of the present invention registers the mobile node on the mapping server by the mobile access gateway, and the mapping server allocates the home network prefix to the mobile node, and the mobile node configures the home address accordingly. The mapping server stores location information of all mobile nodes in the administrative domain, so that different mobile nodes can perform location query when communicating with each other.
以上实施例中映射服务器保存的是家乡网络前缀和代理转交地址之间的 绑定关系, MN注册的目的在于, 在映射服务器中保存 MN的节点信息和移 动接入网关信息的绑定关系。 可替换地, 除家乡网络前缀外, 映射服务器还 可将 PBU消息中携带 MN的标识(ID )作为绑定关系中的节点信息, 或由 MN将配置成功的家乡地址反馈给映射服务器后作为绑定关系中的节点信 息, 相应的, 除代理转交地址外, 映射服务器还可将 PBU消息中携带的移动 接入网关的地址作为绑定关系中的移动接入网关信息。  In the above embodiment, the mapping server stores the binding relationship between the home network prefix and the proxy care-of address. The purpose of the MN registration is to store the binding relationship between the node information of the MN and the mobile access gateway information in the mapping server. Alternatively, in addition to the home network prefix, the mapping server may also use the identifier (ID) of the MN carrying the PBU message as the node information in the binding relationship, or the MN may feed back the configured home address to the mapping server. The node information in the relationship is determined. In addition to the proxy care-of address, the mapping server can also use the address of the mobile access gateway carried in the PBU message as the mobile access gateway information in the binding relationship.
本发明的实施例提供几种报文转发的方法, 以优化 MN和 CN之间的数 据转发路径, 首报文转发过后, 后续数据包直接通过 MAG之间的隧道进行 转发。  The embodiment of the present invention provides a method for packet forwarding to optimize the data forwarding path between the MN and the CN. After the first packet is forwarded, the subsequent data packet is directly forwarded through the tunnel between the MAGs.
实施例 2  Example 2
在该实施例中, 第一移动接入网关 (也即移动节点附着的 MAG, 本发明  In this embodiment, the first mobile access gateway (ie, the MAG attached to the mobile node, the present invention)
10 中也成为移动节点 MAG)存储移动节点发往对端节点的首报文; 通过向映射 服务器发送地址查询消息获取对端节点的代理转交地址 (该代理转交地址指 向对端节点附着的 MAG, 该 MAG也成为对端节点 MAG ) , 查询消息中携 带对端节点的节点信息; 根据查询结果建立第一移动接入网关到第二移动接 入网关的传输隧道; 通过建立好的隧道将存储的首报文发送给第二移动接入 网关, 最后转发给对端节点。 后续报文直接通过移动接入网关之间的隧道进 行转发。 10 The mobile node (MAG) also stores the first message sent by the mobile node to the opposite node; and obtains the proxy care-of address of the opposite node by sending an address query message to the mapping server (the proxy care-of address points to the MAG attached to the peer node, The MAG also becomes the peer node MAG), and the query message carries the node information of the opposite node; the transmission tunnel of the first mobile access gateway to the second mobile access gateway is established according to the query result; the first stored by the established tunnel The packet is sent to the second mobile access gateway, and finally forwarded to the opposite node. Subsequent messages are forwarded directly through the tunnel between the mobile access gateways.
具体地, 如图 4所示, 本发明实施例 2提供的报文转发方法流程图, 包 括以下步骤:  Specifically, as shown in FIG. 4, a flow chart of a packet forwarding method according to Embodiment 2 of the present invention includes the following steps:
步骤 400, 移动节点 MN向对端节点 CN发送首 4艮文。  Step 400: The mobile node MN sends the first message to the opposite node CN.
首报文的目的地址是 CN的家乡地址( HoA ) , 源地址是 MN的家乡地 址。  The destination address of the first message is CN's home address (HoA), and the source address is the home address of the MN.
步骤 401 ,第一移动接入网关收到首报文后以 CN的节点信息为索引查询 映射路由表获取 CN的移动接入网关信息(可以是代理转交地址( Proxy-CoA ), 也可以是第二移动接入网关的地址, 图示中以 Proxy-CoA为例进行示意, 以 下实施例同) , 若未命中, 则緩存首报文。  Step 401: After receiving the first packet, the first mobile access gateway uses the node information of the CN as an index to query the mapping routing table to obtain the mobile access gateway information of the CN (which may be a proxy care-of address (Proxy-CoA), or may be The address of the mobile access gateway is shown in the figure as Proxy-CoA. The following example is used. If the call is missed, the first packet is cached.
具体地, 第一移动接入网关以 HoA为索引还是以 HNP为索引查询, 需 要根据映射路由表的保存的具体内容而定, 本发明对此不做限定。  Specifically, the first mobile access gateway uses the HoA as the index or the HNP as the index to be queried, which is determined according to the specific content of the mapping of the mapping routing table, which is not limited by the present invention.
步骤 402, 第一移动接入网关向映射服务器发送地址查询请求消息查询 CN的代理转交地址, 查询请求消息中携带 CN的节点信息, 具体可以是家乡 地址 (HoA)或家乡网络前缀 (HNP),图中以 HNP为例进行示意,以下实施例同。  Step 402: The first mobile access gateway sends an address query request message to the mapping server to query the proxy care-of address of the CN, where the query request message carries the CN node information, which may be a home address (HoA) or a home network prefix (HNP). In the figure, HNP is taken as an example, and the following embodiments are the same.
步骤 403 , 映射服务器收到地址查询请求消息后, 以 CN的家乡网络前缀 为索引查询 BCE获取 CN的代理转交地址, 映射服务器向第一移动接入网关 发送地址查询应答消息, 消息中携带 CN的代理转交地址。  Step 403: After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN by using the home network prefix of the CN as an index, and the mapping server sends an address query response message to the first mobile access gateway, where the message carries the CN. Agent transfer address.
步骤 404, 创建映射路由表。 第一移动接入网关接收映射服务器的地址 查询应答消息后, 提取 CN的代理转交地址, 在本地建立映射路由表, 保存 CN的节点信息和移动接入网关信息的映射关系,该映射关系也可以保存在第 一移动接入网关原有的绑定更新列表中。  Step 404, creating a mapping routing table. After receiving the address query response message of the mapping server, the first mobile access gateway extracts the proxy care-of address of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information, and the mapping relationship may also be It is saved in the original binding update list of the first mobile access gateway.
11 步骤 405,建立隧道。第一移动接入网关根据 CN的代理转交地址建立到 第二移动接入网关的单向隧道(本发明中也成为第一传输隧道) 。 步骤 406, 发送首报文。 第一移动接入网关根据建立的映射路由表对在 步骤 401中存储的首报文进行隧道封装:外层 IP头的源地址为 MN的移动接 入网关信息 (如为代理转交地址, 或第一移动接入网关的地址) , 目的地址 为 CN的移动接入网关信息 (如代理转交地址或第二 MAG的地址) ; 内层 IP头的源地址为 MN的节点信息, 目的地址为 CN的节点信息。 第一移动接 入网关将封装好的首报文发送给第二移动接入网关。 11 In step 405, a tunnel is established. The first mobile access gateway establishes a unidirectional tunnel to the second mobile access gateway according to the proxy care-of address of the CN (also becomes the first transport tunnel in the present invention). In step 406, the first message is sent. The first mobile access gateway tunnel encapsulates the first packet stored in step 401 according to the established mapping routing table: the source address of the outer IP header is the mobile access gateway information of the MN (for example, the proxy care-of address, or the first The address of a mobile access gateway, the destination address is the mobile access gateway information of the CN (such as the proxy care-of address or the address of the second MAG); the source address of the inner-layer IP header is the node information of the MN, and the destination address is the CN Node information. The first mobile access gateway sends the encapsulated first message to the second mobile access gateway.
步骤 407 , 第二移动接入网关接收第一移动接入网关通过隧道发送的首 报文, 学习 MN的节点信息和移动接入网关信息, 在本地建立映射路由表, 保存 MN的节点信息和移动接入网关信息的映射关系, 该映射关系也可以保 存在第二移动接入网关原有的绑定更新列表中。  Step 407: The second mobile access gateway receives the first message sent by the first mobile access gateway through the tunnel, learns the node information of the MN and the mobile access gateway information, establishes a mapping routing table locally, and saves the node information and the mobile of the MN. The mapping relationship between the access gateway information and the mapping relationship may also be saved in the original binding update list of the second mobile access gateway.
步骤 408, 第二移动接入网关剥离报文的外层隧道头, 将首报文转发给 Step 408: The second mobile access gateway strips the outer tunnel header of the packet, and forwards the first packet to the second packet.
CN。 CN.
步骤 409, 第二移动接入网关根据学习到的 MN的代理转交地址建立到 第一移动接入网关的单向隧道(结合步骤 405中已建立的单向隧道(本发明 中也成为第一传输隧道) , 第一移动接入网关和第二移动接入网关之间的双 向隧道建立成功) 。  Step 409: The second mobile access gateway establishes a unidirectional tunnel to the first mobile access gateway according to the learned proxy care-of address of the MN (in combination with the unidirectional tunnel established in step 405 (the invention also becomes the first transmission). Tunnel), the two-way tunnel between the first mobile access gateway and the second mobile access gateway is successfully established).
步骤 410至步骤 412, 后续报文转发。 在上述步骤中, 第一移动接入网 关建立的映射路由表中保存了 CN的节点信息和移动接入网关信息的映射关 系; 第二移动接入网关建立的映射路由表中保存了 MN的节点信息和移动接 入网关信息的映射关系; 第一移动接入网关和第二移动接入网关之间建立起 了双向隧道。 MN和 CN之间的后续数据报文通过移动接入网关之间的双向 隧道进行转发: 即数据报文到达各自的移动接入网关后, 首先根据报文的目 的地址查找本地映射路由表, 然后根据查找得到的目的地址对应的移动接入 网关信息对报文进行隧道封装, 并通过隧道将封装好的报文发送到对方的移 动接入网关, 最后移动接入网关对报文进行解封装后转发给对端节点。  Step 410 to step 412, subsequent packet forwarding. In the above step, the mapping routing table established by the first mobile access gateway stores the mapping relationship between the node information of the CN and the mobile access gateway information; the mapping routing table established by the second mobile access gateway stores the node of the MN. Mapping relationship between information and mobile access gateway information; a two-way tunnel is established between the first mobile access gateway and the second mobile access gateway. The subsequent data packets between the MN and the CN are forwarded through the bidirectional tunnel between the mobile access gateways. After the data packets arrive at the respective mobile access gateways, the local mapping routing table is first searched according to the destination address of the packet, and then The packet is encapsulated according to the information of the mobile access gateway corresponding to the destination address, and the encapsulated packet is sent to the mobile access gateway of the other party through the tunnel. Finally, the mobile access gateway decapsulates the packet. Forward to the peer node.
本发明上述实施例通过移动接入网关存储首报文, 从映射服务器获取对 端节点的移动接入网关信息,对首报文进行封装后发送到对端移动接入网关,  In the above embodiment, the mobile access gateway stores the first packet, obtains the mobile access gateway information of the peer node from the mapping server, encapsulates the first packet, and sends the packet to the peer mobile access gateway.
12 避免了 PMIPv6中需要穿越固定锚点带来的报文传输时延, 缩短了转发路径, 提高了通讯效率。 移动接入网关通过创建映射路由表优化了 MN和 CN之间 后续数据报文的转发路径。 实施例 3 12 It avoids the packet transmission delay caused by the need to traverse fixed anchor points in PMIPv6, shortens the forwarding path, and improves communication efficiency. The mobile access gateway optimizes the forwarding path of subsequent data packets between the MN and the CN by creating a mapping routing table. Example 3
在该实施例中,第一移动接入网关存储移动节点发往对端节点的首报文; 通过向映射服务器发送地址查询消息获取对端节点的代理转交地址, 查询消 息中携带对端节点的节点信息, 以及 MN的节点信息、 MN的移动接入网关 信息;根据查询结果建立第一移动接入网关到第二移动接入网关的传输隧道; 通过建立好的隧道将存储的首报文发送给第二移动接入网关, 最后转发给对 端节点。 后续报文直接通过移动接入网关之间的隧道进行转发。  In this embodiment, the first mobile access gateway stores the first message sent by the mobile node to the opposite node; the proxy forwarding address of the opposite node is obtained by sending an address query message to the mapping server, and the query message carries the peer node. Node information, and node information of the MN, mobile access gateway information of the MN; establishing a transmission tunnel of the first mobile access gateway to the second mobile access gateway according to the query result; sending the first packet stored by establishing a good tunnel The second mobile access gateway is forwarded to the opposite node. Subsequent messages are forwarded directly through the tunnel between the mobile access gateways.
如图 5所示, 为本发明实施例 3提供的报文转发方法流程图。 包括以下 步骤:  As shown in FIG. 5, it is a flowchart of a packet forwarding method according to Embodiment 3 of the present invention. Includes the following steps:
步骤 500, 移动节点 MN向对端节点 CN发送首报文。  Step 500: The mobile node MN sends the first packet to the opposite node CN.
首报文的目的地址是 CN的家乡地址, 源地址是 MN的家乡地址。  The destination address of the first message is the home address of CN, and the source address is the home address of the MN.
步骤 501 ,第一移动接入网关收到首报文后以 CN的家乡信息为索引查询 映射路由表获取 CN的代理转交地址, 若未命中, 第一移动接入网关存储首 报文。  Step 501: After receiving the first packet, the first mobile access gateway uses the home information of the CN as an index to query the mapping routing table to obtain the proxy care-of address of the CN. If not, the first mobile access gateway stores the first packet.
步骤 502, 第一移动接入网关向映射服务器发送地址查询请求消息查询 CN的代理转交地址, 查询请求消息中携带 CN的节点信息、 MN的节点信息 和移动接入网关信息。  Step 502: The first mobile access gateway sends an address query request message to the mapping server to query the proxy care-of address of the CN, and the query request message carries the node information of the CN, the node information of the MN, and the mobile access gateway information.
步骤 503 , 映射服务器收到地址查询请求消息后, 以 CN的家乡网络前缀 为索引查询 BCE获取 CN的代理转交地址, 将该消息转发给第二移动接入网 关。  Step 503: After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN by using the home network prefix of the CN as an index, and forwards the message to the second mobile access gateway.
步骤 504,第二移动接入网关收到地址查询请求消息后,提取消息中 MN 的节点信息和移动接入网关信息, 并建立映射路由表, 保存 MN的节点信息 和移动接入网关信息的映射关系, 该映射关系也可以保存在第二移动接入网 关原有的绑定更新列表中。  Step 504: After receiving the address query request message, the second mobile access gateway extracts the node information of the MN and the mobile access gateway information in the message, and establishes a mapping routing table, and saves the mapping between the node information of the MN and the information of the mobile access gateway. Relationship, the mapping relationship may also be saved in the original binding update list of the second mobile access gateway.
步骤 505, 建立隧道。 建立到第一移动接入网关的单向隧道,  Step 505, establishing a tunnel. Establish a one-way tunnel to the first mobile access gateway,
13 步骤 506, 第二移动接入网关向第一移动接入网关返回地址查询应答消 息, 消息中携带 CN的代理转交地址。 13 Step 506: The second mobile access gateway returns an address query response message to the first mobile access gateway, where the message carries the proxy care-of address of the CN.
步骤 507 , 创建映射路由表。 第一移动接入网关接收第二移动接入网关 的地址查询应答消息后, 提取 CN的移动接入网关信息, 在本地建立映射路 由表, 保存 CN的节点信息和移动接入网关信息的映射关系, 该映射关系也 可以保存在第一移动接入网关原有的绑定更新列表中。  Step 507, creating a mapping routing table. After receiving the address query response message of the second mobile access gateway, the first mobile access gateway extracts the mobile access gateway information of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information. The mapping relationship may also be saved in the original binding update list of the first mobile access gateway.
步骤 508,建立隧道。第一移动接入网关根据 CN的移动接入网关信息建 立到第二移动接入网关的单向隧道(结合步骤 505中已建立的单向隧道, 第 一移动接入网关和第二移动接入网关之间的双向隧道建立成功) 。  Step 508, establishing a tunnel. The first mobile access gateway establishes a unidirectional tunnel to the second mobile access gateway according to the mobile access gateway information of the CN (in combination with the unidirectional tunnel established in step 505, the first mobile access gateway and the second mobile access The two-way tunnel between the gateways was successfully established).
步骤 509, 第一移动接入网关根据建立的映射路由表对在步骤 501 中存 储的首报文进行隧道封装: 外层 IP头的源地址为 MN的移动接入网关信息, 目的地址为 CN的移动接入网关信息;内层 IP头的源地址为 MN的家乡地址, 目的地址为 CN的家乡地址。 第一移动接入网关将封装好的首报文发送给第 二移动接入网关。  Step 509: The first mobile access gateway tunnels the first packet stored in step 501 according to the established mapping routing table: the source address of the outer IP header is the mobile access gateway information of the MN, and the destination address is CN. Mobile access gateway information; the source address of the inner layer IP header is the home address of the MN, and the destination address is the home address of the CN. The first mobile access gateway sends the encapsulated first message to the second mobile access gateway.
步骤 510, 第二移动接入网关接收第一移动接入网关通过隧道发送的首 报文后, 剥离该数据包的外层隧道头, 将首报文转发给 CN。  Step 510: After receiving the first packet sent by the first mobile access gateway through the tunnel, the second mobile access gateway strips the outer tunnel header of the data packet and forwards the first packet to the CN.
步骤 511至步骤 513同步骤 410至步骤 412, 不再赘述。  Steps 511 to 513 are the same as steps 410 to 412, and will not be described again.
本发明上述实施例通过移动接入网关存储首报文, 从对端移动接入网关 获取对端节点的移动接入网关信息, 对首报文进行封装后发送到对端移动接 入网关, 避免了 PMIPv6 中需要穿越固定锚点带来的报文传输时延, 缩短了 转发路径, 提高了通讯效率。 移动接入网关通过创建映射路由表优化了 MN 和 CN之间后续数据报文的转发路径。  The foregoing embodiment of the present invention uses the mobile access gateway to store the first packet, obtains the mobile access gateway information of the peer node from the peer mobile access gateway, encapsulates the first packet, and sends the packet to the peer mobile access gateway to avoid In PMIPv6, the packet transmission delay caused by the fixed anchor point needs to be shortened, the forwarding path is shortened, and the communication efficiency is improved. The mobile access gateway optimizes the forwarding path of subsequent data packets between the MN and the CN by creating a mapping routing table.
实施例 4  Example 4
在该实施例中,第一移动接入网关接收移动节点发往对端节点的首报文; 通过向映射服务器发送地址查询消息获取对端节点的代理转交地址, 查询消 息中携带对端节点的家乡信息, 以及首报文; 映射服务器从查询报文中提取 首报文, 发送给第二移动接入网关, 最后转发给对端节点。 后续报文直接通 过移动接入网关之间的隧道进行转发。  In this embodiment, the first mobile access gateway receives the first message sent by the mobile node to the opposite node; and obtains the proxy care-of address of the opposite node by sending an address query message to the mapping server, where the query message carries the peer node The home information, and the first message; the mapping server extracts the first message from the query message, sends it to the second mobile access gateway, and finally forwards it to the peer node. Subsequent messages are forwarded directly through the tunnel between the mobile access gateways.
14 如图 6所示本发明实施例 4提供的报文转发方法流程图包括以下步骤: 步骤 600, 移动节点 MN向对端节点 CN发送首 4艮文。 14 As shown in FIG. 6, the flow chart of the packet forwarding method provided by Embodiment 4 of the present invention includes the following steps: Step 600: The mobile node MN sends the first message to the opposite node CN.
首报文的目的地址是 CN的家乡地址, 源地址是 MN的家乡地址。  The destination address of the first message is the home address of CN, and the source address is the home address of the MN.
步骤 601 ,第一移动接入网关收到首报文后以 CN的家乡信息为索引查询 映射路由表获取 CN的代理转交地址, 未命中, 第一移动接入网关向映射服 务器发送地址查询请求消息, 消息中携带首报文和 CN的家乡信息。  Step 601: After receiving the first packet, the first mobile access gateway uses the home information of the CN as an index to query the mapping routing table to obtain the proxy care-of address of the CN, and the first mobile access gateway sends an address query request message to the mapping server. The message carries the first message and CN's hometown information.
步骤 602, 映射服务器收到地址查询请求消息后, 以 CN的家乡网络前缀 为索引查询 BCE获取 CN的代理转交地址, 并提取消息中的首报文转发给第 二移动接入网关。  Step 602: After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN, and extracts the first packet in the message to be forwarded to the second mobile access gateway.
步骤 603 , 第二移动接入网关接收从映射服务器转发过来的首报文, 转 发给 CN。  Step 603: The second mobile access gateway receives the first packet forwarded from the mapping server, and forwards the packet to the CN.
步骤 604, 映射服务器执行步骤 602的同时, 向第一移动接入网关发送 地址查询应答消息, 消息中携带 CN的代理转交地址。  Step 604: The mapping server performs the step 602, and sends an address query response message to the first mobile access gateway, where the message carries the proxy care-of address of the CN.
步骤 605 , 创建映射路由表、 建立隧道。 第一移动接入网关接收映射服 务器的地址查询应答消息后, 提取 CN的代理转交地址, 在本地建立映射路 由表, 保存 CN的节点信息和移动接入网关信息的映射关系, 该映射关系也 可以保存在第一移动接入网关原有的绑定更新列表中; 第一移动接入网关根 据 CN的代理转交地址建立到第二移动接入网关的单向隧道。  Step 605: Create a mapping routing table and establish a tunnel. After receiving the address query response message of the mapping server, the first mobile access gateway extracts the proxy care-of address of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information, and the mapping relationship may also be The first mobile access gateway establishes a one-way tunnel to the second mobile access gateway according to the proxy care-of address of the CN.
步骤 606至步骤 608, 第一移动接入网关到第二移动接入网关的隧道建 立起来后, MN发往 CN的后续数据包通过隧道进行转发。 第二移动接入网 关接收到第一移动接入网关通过隧道转发过来的数据包后, 学习 MN的节点 信息和移动接入网关信息, 建立映射路由表, 保存 MN的节点信息和移动接 入网关信息的映射关系。  Step 606 to step 608, after the tunnel of the first mobile access gateway to the second mobile access gateway is established, the subsequent data packets sent by the MN to the CN are forwarded through the tunnel. After receiving the data packet forwarded by the first mobile access gateway through the tunnel, the second mobile access gateway learns the node information of the MN and the mobile access gateway information, establishes a mapping routing table, and saves the node information of the MN and the mobile access gateway. The mapping relationship of information.
步骤 609, 第二移动接入网关根据学习到的 MN的代理转交地址建立到 第一移动接入网关的单向隧道(结合步骤 605中已建立的单向隧道, 第一移 动接入网关和第二移动接入网关之间的双向隧道建立成功) 。  Step 609: The second mobile access gateway establishes a unidirectional tunnel to the first mobile access gateway according to the learned proxy care-of address of the MN (in combination with the unidirectional tunnel established in step 605, the first mobile access gateway and the first The two-way tunnel between the mobile access gateways is successfully established.
步骤 610至步骤 612同步骤 410至步骤 412, 不再赘述。  Steps 610 to 612 are the same as steps 410 to 412, and are not described again.
本发明上述实施例通过在地址查询请求消息中携带首报文, 映射服务器  The foregoing embodiment of the present invention carries the first message by mapping the server in the address query request message.
15 从消息中提取首报文进行转发, 并向发送地址查询请求消息的移动接入网关 回应地址查询应答消息以便建立移动接入网关之间的隧道, MN和 CN的后 续数据包通过隧道进行转发, 避免了 PMIPv6 中需要穿越固定锚点带来的报 文传输时延, 缩短了转发路径, 提高了通讯效率。 15 Extracting the first packet from the message for forwarding, and responding to the address query response message by the mobile access gateway that sends the address query request message to establish a tunnel between the mobile access gateways, and the subsequent data packets of the MN and the CN are forwarded through the tunnel. It avoids the packet transmission delay caused by the need to traverse fixed anchor points in PMIPv6, shortens the forwarding path, and improves communication efficiency.
实施例 5  Example 5
该实施例 5中,第一移动接入网关接收移动节点发往对端节点的首报文; 通过向映射服务器发送地址查询消息获取对端节点的转交地址, 查询消息中 携带对端节点的节点信息、 MN 的节点信息和移动接入网关信息、 首报文; 映射服务器将查询消息转发给第二移动接入网关; 第二移动接入网关提取首 报文发送给对端节点。后续报文直接通过移动接入网关之间的隧道进行转发。  In the embodiment 5, the first mobile access gateway receives the first packet sent by the mobile node to the opposite node, and obtains the care-of address of the opposite node by sending an address query message to the mapping server, where the query message carries the node of the opposite node. The information, the node information of the MN, and the mobile access gateway information, the first message; the mapping server forwards the query message to the second mobile access gateway; and the second mobile access gateway extracts the first message and sends the first message to the opposite node. Subsequent messages are forwarded directly through the tunnel between the mobile access gateways.
如图 7所示, 为本发明实施例 5提供的报文转发方法流程图。 包括以下 步骤:  FIG. 7 is a flowchart of a packet forwarding method according to Embodiment 5 of the present invention. Includes the following steps:
步骤 700, 移动节点 MN向对端节点 CN发送首报文。  Step 700: The mobile node MN sends the first packet to the opposite node CN.
首报文的目的地址是 CN的家乡地址, 源地址是 MN的家乡地址。  The destination address of the first message is the home address of CN, and the source address is the home address of the MN.
步骤 701 ,第一移动接入网关收到首报文后以 CN的家乡信息为索引查询 映射路由表获取 CN的代理转交地址, 未命中, 第一移动接入网关向映射服 务器发送地址查询请求消息, 消息中携带首报文、 CN的家乡网信息、 MN的 节点信息和移动接入网关信息。  Step 701: After receiving the first message, the first mobile access gateway uses the home information of the CN as an index to query the mapping routing table to obtain the proxy care-of address of the CN, and the first mobile access gateway sends an address query request message to the mapping server. The message carries the first message, CN's home network information, MN node information, and mobile access gateway information.
步骤 702, 映射服务器收到地址查询请求消息后, 以 CN的家乡网络前缀 为索引查询 BCE获取 CN的代理转交地址, 将该消息转发给第二移动接入网 关。  Step 702: After receiving the address query request message, the mapping server queries the BCE to obtain the proxy care-of address of the CN by using the home network prefix of the CN as an index, and forwards the message to the second mobile access gateway.
步骤 703 , 转发首报文, 创建映射路由表。 第二移动接入网关收到地址 查询请求消息后: 提取消息中的首报文, 转发给 CN。  Step 703: Forward the first packet, and create a mapping routing table. After receiving the address query request message, the second mobile access gateway extracts the first message in the message and forwards it to the CN.
提取消息中 MN的节点信息和移动接入网关信息地址, 在本地建立映射 路由表, 保存 MN的节点信息和移动接入网关信息的映射关系, 该映射关系 也可以保存在第二移动接入网关原有的绑定更新列表中。  Extracting the node information of the MN and the mobile access gateway information address in the message, establishing a mapping routing table locally, and preserving the mapping relationship between the node information of the MN and the mobile access gateway information, and the mapping relationship may also be saved in the second mobile access gateway. The original bindings are updated in the list.
步骤 704, 建立隧道。 第二移动接入网关根据 MN的移动接入网关信息,  Step 704, establishing a tunnel. The second mobile access gateway according to the mobile access gateway information of the MN,
16 建立到第一移动接入网关的单向隧道。 16 Establish a one-way tunnel to the first mobile access gateway.
步骤 705 , 第二移动接入网关向第一移动接入网关发送地址查询应答消 息, 消息中携带 CN的移动接入网关信息。  Step 705: The second mobile access gateway sends an address query response message to the first mobile access gateway, where the message carries the mobile access gateway information of the CN.
步骤 706, 创建映射路由表、 建立隧道。 第一移动接入网关接收第二移 动接入网关的地址查询应答消息后, 提取 CN的移动接入网关信息, 在本地 建立映射路由表, 保存 CN的节点信息和移动接入网关信息的映射关系, 该 映射关系也可以保存在第一移动接入网关原有的绑定更新列表中; 第一移动 接入网关根据 CN的代理转交地址建立到第二移动接入网关的单向隧道(结 合步骤 704中已建立的单向隧道, 第一移动接入网关和第二移动接入网关之 间的双向隧道建立成功) 。  Step 706: Create a mapping routing table and establish a tunnel. After receiving the address query response message of the second mobile access gateway, the first mobile access gateway extracts the mobile access gateway information of the CN, establishes a mapping routing table locally, and saves the mapping relationship between the CN node information and the mobile access gateway information. The mapping relationship may also be saved in the original binding update list of the first mobile access gateway; the first mobile access gateway establishes a one-way tunnel to the second mobile access gateway according to the proxy care-of address of the CN (in combination step The unidirectional tunnel established in 704, the bidirectional tunnel between the first mobile access gateway and the second mobile access gateway is successfully established).
步骤 707至步骤 709同步骤 410至步骤 412, 不再赘述。  Steps 707 to 709 are the same as steps 410 to 412, and are not described again.
本发明上述实施例通过在地址查询请求消息中携带首报文, 移动接入网 关从消息中提取首报文进行转发, 并向发送地址查询请求消息的移动接入网 关回应地址查询应答消息以便建立移动接入网关之间的隧道, MN和 CN的 后续数据包通过隧道进行转发, 避免了 PMIPv6 中需要穿越固定锚点带来的 报文传输时延, 缩短了转发路径, 提高了通讯效率。  In the foregoing embodiment of the present invention, the mobile access gateway extracts the first packet from the message by using the first packet in the address query request message, and forwards the response message to the mobile access gateway that sends the address query request message to establish an address query response message. In the tunnel between the mobile access gateways, the subsequent data packets of the MN and the CN are forwarded through the tunnel, which avoids the packet transmission delay caused by the need to traverse the fixed anchor point in the PMIPv6, shortens the forwarding path, and improves the communication efficiency.
对应于前述方法实施例, 以下对本发明移动接入网关(MAG )的与本发 明特别相关的功能模块进行说明。  Corresponding to the foregoing method embodiments, the functional modules of the mobile access gateway (MAG) of the present invention that are particularly relevant to the present invention are described below.
如图 9所示, MAG作为移动节点 (MN )对应的移动节点 MAG (即前 述第一 MAG ) 时, 与本发明特别相关地, 该 MAG包括:  As shown in FIG. 9, when the MAG is the mobile node MAG corresponding to the mobile node (MN), that is, the first MAG, the MAG includes:
查询请求发送模块, 用于向映射服务器发送地址查询请求, 其中携带对 端节点(CN ) 的节点信息, 所述节点信息为 CN的标识、 家乡地址或家乡网 络前缀;  The query request sending module is configured to send an address query request to the mapping server, where the node information of the peer node (CN) is carried, where the node information is a CN identifier, a home address, or a home network prefix;
查询应答接收模块, 用于接收地址查询应答消息, 其中携带所述 CN的 移动接入网关信息, 所述移动接入网关信息为对端节点 MAG的地址或对端 节点为所述 CN分配的代理转交地址。  a query response receiving module, configured to receive an address query response message, where the mobile access gateway information of the CN is carried, where the mobile access gateway information is an address of a peer node MAG or a proxy that the peer node allocates for the CN Handover address.
可选地, 与实施例 2、 3相对应, 如图 10所示, 在图 9所示的 MAG的 基础上, 所述 MAG还包括:  Optionally, corresponding to the embodiment 2, 3, as shown in FIG. 10, on the basis of the MAG shown in FIG. 9, the MAG further includes:
17 传输隧道建立模块, 作为移动节点 MAG时, 用于才艮据所述地址查询应 答消息中的 CN的移动接入网关信息, 建立到所述 CN对应的对端节点 MAG 的第一传输隧道; 17 a transmission tunnel establishing module, as the mobile node MAG, configured to establish a first transmission tunnel to the opposite node MAG corresponding to the CN according to the mobile access gateway information of the CN in the address query response message;
报文緩存模块, 作为移动节点 MAG时, 用于在所述第一传输隧道建立 前, 緩存接收的首报文;  The message buffering module is configured to: when the mobile node MAG is used, buffering the first message received before the first transmission tunnel is established;
所述报文转发模块, 作为移动节点 MAG时, 在所述第一传输隧道建立 后进行所述首报文转发。  When the packet forwarding module is used as the mobile node MAG, the first packet is forwarded after the first transmission tunnel is established.
可选地, 与前述实施例 3和实施例 5相对应, 所述地址查询请求中还携 带移动节点 (MN ) 的节点信息和移动接入网关信息, 所述 MN 的移动接入 网关信息为移动节点 MAG的地址, 或所述移动节点 MAG为所述 MN分配 的代理转交地址; 如图 11所示, 在图 9所示的 MAG的基础上, 所述 MAG 作为 CN对应的对端节点 MAG时, 还包括:  Optionally, corresponding to the foregoing Embodiment 3 and Embodiment 5, the address query request further carries node information of the mobile node (MN) and mobile access gateway information, where the mobile access gateway information of the MN is mobile The address of the node MAG, or the proxy care-of address assigned by the mobile node MAG to the MN; as shown in FIG. 11, on the basis of the MAG shown in FIG. 9, when the MAG is the peer node MAG corresponding to the CN , Also includes:
查询请求接收模块, 用于接收映射服务器发送的地址查询请求; 查询应答发送模块, 用于根据所述地址查询请求中的 MN的移动接入网 关信息向所述 MN对应的移动节点 MAG发送地址查询应答消息。  a query request receiving module, configured to receive an address query request sent by the mapping server, and a query response sending module, configured to send an address query to the mobile node MAG corresponding to the MN according to the mobile access gateway information of the MN in the address query request Reply message.
进一步地, 对应于实施例 2至 3 , 所述地址查询应答消息是所述映射服 务器或对端节点 MAG发送的, 在图 10所示的 MAG的基础上, 所述 MAG 还包括映射关系维护模块, 作为移动节点 MAG时, 用于根据所述地址查询 应答消息保存所述 CN的节点信息和移动接入网关信息的映射关系; 所述报 文转发模块, 还用于在转发前对所述首报文封装外层隧道地址, 封装的外层 源地址为所述 MN的移动接入网关信息, 目的地址为所述 CN的移动接入网 关信息。  Further, corresponding to the embodiments 2 to 3, the address query response message is sent by the mapping server or the peer node MAG. On the basis of the MAG shown in FIG. 10, the MAG further includes a mapping relationship maintenance module. And the mapping relationship between the node information of the CN and the mobile access gateway information is saved according to the address query response message; the packet forwarding module is further configured to: before the forwarding The packet encapsulates the outer tunnel address, and the outer source address of the encapsulation is the mobile access gateway information of the MN, and the destination address is the mobile access gateway information of the CN.
可选地, 与前述实施例 3和实施例 5相对应, 作为对端节点 MAG时: 所述传输隧道建立模块, 还用于根据所述地址查询请求中的 MN的移动 接入网关信息, 建立到所述 MN对应的移动节点 MAG的第二传输隧道; 所 述映射关系维护模块, 还用于根据所述地址查询请求保存所述 MN的节点信 息和移动接入网关信息的映射关系。  Optionally, corresponding to the foregoing Embodiment 3 and Embodiment 5, when the same as the peer node MAG: the transmission tunnel establishing module is further configured to establish, according to the mobile access gateway information of the MN in the address query request, a second transmission tunnel to the mobile node MAG corresponding to the MN; the mapping relationship maintenance module is further configured to save a mapping relationship between the node information of the MN and the mobile access gateway information according to the address query request.
以下对本发明映射服务器的与本发明特别相关的功能模块进行说明。  Functional modules that are particularly relevant to the present invention of the mapping server of the present invention are described below.
18 如图 12所示, 与本发明特别相关第, 本发明映射服务器包括: 18 As shown in FIG. 12, in particular, in connection with the present invention, the mapping server of the present invention includes:
查询请求接收模块, 用于接收移动节点对应的移动节点 MAG发送的地 址查询请求, 其中携带对端节点 (CN ) 的节点信息;  The query request receiving module is configured to receive an address query request sent by the mobile node MAG corresponding to the mobile node, where the node information of the peer node (CN) is carried;
绑定关系维护模块, 用于保存绑定关系, 包括所述 CN的节点信息与移 动接入网关信息的绑定关系;  a binding relationship maintenance module, configured to save a binding relationship, where the binding relationship between the node information of the CN and the mobile access gateway information is included;
绑定关系查询模块, 用于查询保存的绑定关系, 获取所述对端节点的节 点信息对应的移动接入网关信息;  a binding relationship query module, configured to query the saved binding relationship, and obtain information about the mobile access gateway corresponding to the node information of the peer node;
查询请求处理模块, 用于向所述移动节点 MAG发送地址查询应答消息, 其中携带所述 CN的移动接入网关信息; 或, 用于根据所述 CN的移动接入 网关信息向所述 CN对应的对端节点 MAG转发所述地址查询请求。  a query request processing module, configured to send an address query response message to the mobile node MAG, where the mobile access gateway information of the CN is carried; or, to correspond to the CN according to the mobile access gateway information of the CN The peer node MAG forwards the address query request.
可选地, 对应于前述实施例 4、 5, 所述地址查询请求中还携带首 ^艮文, 所述首 文的目的地址为所述 CN的节点信息。  Optionally, corresponding to the foregoing Embodiments 4 and 5, the address query request further carries a first message, and the destination address of the first document is node information of the CN.
特别地, 对应前述实施例 4, 如图 13所示, 在图 12所示的映射服务器 的基础上, 所述映射服务器还包括报文转发模块, 用于根据所述 CN的移动 接入网关信息向所述对端节点 MAG转发所述首报文。  In particular, corresponding to the foregoing embodiment 4, as shown in FIG. 13, on the basis of the mapping server shown in FIG. 12, the mapping server further includes a packet forwarding module, configured to access the gateway information according to the CN Forwarding the first packet to the peer node MAG.
对应实施例 1 , 如图 14所示, 在图 12所示的映射服务器的基础上, 所 述映射服务器还包括:  Corresponding to Embodiment 1, as shown in FIG. 14, on the basis of the mapping server shown in FIG. 12, the mapping server further includes:
代理绑定更新消息接收模块, 用于接收移动节点 (MN )移动接入网关 ( MAG )发送的代理绑定更新消息;  a proxy binding update message receiving module, configured to receive a proxy binding update message sent by a mobile node (MN) mobile access gateway (MAG);
家乡网络前缀分配模块, 用于为所述 MN分配家乡网络前缀;  a home network prefix allocation module, configured to allocate a home network prefix to the MN;
代理绑定确认消息发送模块, 用于向移动节点 MAG回复代理绑定确认 消息, 消息中携带分配给所述 MN的家乡网络前缀;  a proxy binding confirmation message sending module, configured to reply to the mobile node MAG with a proxy binding acknowledgement message, where the message carries a home network prefix assigned to the MN;
所述绑定关系维护模块中保存的绑定关系是根据分配的家乡网络前缀及 所述代理绑定更新消息确定的所述 MN的家乡网络前缀和代理转交地址的绑 定关系。  The binding relationship saved in the binding relationship maintenance module is a binding relationship between the home network prefix and the proxy care-of address of the MN determined according to the allocated home network prefix and the proxy binding update message.
另外, 本发明还提供了一种报文转发路径管理系统, 该系统包括如前所 述的移动接入网关 (MAG )和映射服务器。  In addition, the present invention also provides a message forwarding path management system including a mobile access gateway (MAG) and a mapping server as described above.
19 一般地, 家乡网络前缀就是家乡地址的前 64位。 鉴于家乡网络前缀和家 乡地址之间这种特殊对应关系,知道家乡地址的网元(如映射服务器或 MAG ) 可推知相应的家乡网络前缀。 19 In general, the home network prefix is the first 64 bits of the home address. In view of this special correspondence between the home network prefix and the home address, the network element (such as the mapping server or MAG) that knows the home address can infer the corresponding home network prefix.
本发明实施例提供的技术方案, 相比于现有技术具有以下优点: 通过向 映射服务器查询对端节点的移动接入网关信息, 报文不需要通过固定锚点进 行转发, 从而优化了数据转发路径, 减小了数据传输时延。  Compared with the prior art, the technical solution provided by the embodiment of the present invention has the following advantages: By querying the mapping server for the mobile access gateway information of the opposite node, the packet does not need to be forwarded through a fixed anchor point, thereby optimizing data forwarding. The path reduces the data transmission delay.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块可以釆用硬件 的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任何特 定形式的硬件和软件的结合。  One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific combination of hardware and software.
工业实用性 本发明实施例报文转发路径管理方法、 网元和系统通过移动节点 (MN)附 着的移动接入网关 (MAG ) 查询对端节点 (CN ) 的移动接入网关信息, 从 而通过两个移动接入网关实现 MN和 CN之间的报文转发,解决因 LMA造成 的流量转发瓶颈问题。 Industrial Applicability The packet forwarding path management method, the network element, and the system in the embodiment of the present invention query the mobile access gateway information of the opposite node (CN) through the mobile access gateway (MAG) attached by the mobile node (MN), thereby The mobile access gateway implements packet forwarding between the MN and the CN to solve the traffic forwarding bottleneck caused by the LMA.
20 20

Claims

权 利 要 求 书 Claim
1、 一种报文转发路径管理方法, 该方法包括: A packet forwarding path management method, the method comprising:
第一移动接入网关(MAG )向映射服务器发送地址查询请求, 所述地址 查询请求中携带对端节点 (CN ) 的节点信息;  The first mobile access gateway (MAG) sends an address query request to the mapping server, where the address query request carries node information of the peer node (CN);
所述映射服务器接收所述地址查询请求,查询绑定緩存表,获取所述 CN 的节点信息对应的所述 CN的移动接入网关信息, 所述 CN的移动接入网关 信息指向第二 MAG;  The mapping server receives the address query request, queries the binding cache table, and acquires the mobile access gateway information of the CN corresponding to the node information of the CN, where the mobile access gateway information of the CN points to the second MAG;
所述映射服务器直接向所述第一 MAG发送地址查询应答消息, 或向第 二 MAG转发所述地址查询请求后,所述第二 MAG向所述第一 MAG发送地 址查询应答消息, 所述查询应答消息中携带所述 CN的移动接入网关信息; 所述第一 MAG接收所述地址查询应答消息。  After the mapping server sends an address query response message to the first MAG, or after forwarding the address query request to the second MAG, the second MAG sends an address query response message to the first MAG, where the query The response message carries the mobile access gateway information of the CN; the first MAG receives the address query response message.
2、 如权利要求 1所述的方法, 其中, 所述第一 MAG发送所述地址查询 请求前, 该方法还包括, 所述第一 MAG接收并緩存移动节点(MN )发送的 所述首报文; 所述第一 MAG建立到第二 MAG的第一传输隧道, 并通过所述 第一传输隧道进行所述首报文转发。 2. The method according to claim 1, wherein, before the first MAG sends the address query request, the method further includes: receiving, by the first MAG, the first report sent by the mobile node (MN) The first MAG establishes a first transmission tunnel to the second MAG, and performs the first packet forwarding by using the first transmission tunnel.
3、 如权利要求 1所述的方法, 其中, 所述第一 MAG发送所述地址查询 请求前, 该方法还包括, 所述第一 MAG接收移动节点(MN )发送的首报文, 所述首 4艮文的目的地址为所述 CN的家乡地址; 所述地址查询请求中还携带 所述首报文; 所述映射服务器查询所述 CN的移动接入网关信息后, 直接向 所述第二 MAG转发所述首 "^文或通过所述地址查询消息向所述第二 MAG转 发所述首报文。 The method of claim 1, wherein, before the first MAG sends the address query request, the method further includes: receiving, by the first MAG, a first message sent by a mobile node (MN), where The destination address of the first message is the home address of the CN; the address query request further carries the first message; after the mapping server queries the mobile access gateway information of the CN, directly to the The second MAG forwards the first message or forwards the first message to the second MAG by using the address query message.
4、 如权利要求 1所述的方法, 其中, 所述地址查询请求还携带所述 MN 的节点信息和移动接入网关信息; 所述第二 MAG接收所述地址查询请求消 息后, 根据所述 MN的移动接入网关信息建立到所述第一 MAG的第二传输 隧道, 并保存所述 MN的节点信息和移动接入网关信息的映射关系。 The method of claim 1, wherein the address query request further carries the node information of the MN and the mobile access gateway information; after the second MAG receives the address query request message, according to the The mobile access gateway information of the MN is established to the second transmission tunnel of the first MAG, and the mapping relationship between the node information of the MN and the mobile access gateway information is saved.
5、 如权利要求 1所述的方法, 其中, 所述第一 MAG接收所述地址查询 5. The method of claim 1, wherein the first MAG receives the address query
21 应答消息后,该方法还包括: 所述第一 MAG保存所述 CN的节点信息与移动 接入网关信息的映射关系; 所述第一 MAG根据所述映射关系将接收的首报 文封装外层隧道地址后转发, 封装后的首报文的外层源地址为所述 MN的移 动接入网关信息, 目的地址为所述 CN的移动接入网关信息。 twenty one After the response message, the method further includes: the first MAG saves a mapping relationship between the node information of the CN and the mobile access gateway information; and the first MAG encapsulates the received first packet according to the mapping relationship. After the tunnel address is forwarded, the outer source address of the encapsulated first packet is the mobile access gateway information of the MN, and the destination address is the mobile access gateway information of the CN.
6、 如权利要求 5所述的方法, 其中, 所述第二 MAG接收所述封装后的 首报文后, 根据所述 MN的移动接入网关信息建立到所述第一 MAG的第二 传输隧道, 并保存所述 MN的节点信息和移动接入网关信息的映射关系。 The method according to claim 5, wherein, after receiving the encapsulated first message, the second MAG establishes a second transmission to the first MAG according to the mobile access gateway information of the MN. Tunneling, and storing a mapping relationship between the node information of the MN and the mobile access gateway information.
7、 如权利要求 1所述的方法,其中, 所述绑定緩存表中包括若干个绑定 緩存表项, 所述绑定緩存表项是所述对应的 MN注册时生成的, 所述 MN注 册的流程包括: The method of claim 1, wherein the binding cache table includes a plurality of binding cache entries, and the binding cache entry is generated when the corresponding MN is registered, the MN The registration process includes:
所述 MN向附着的 MAG发送路由器请求消息,请求获取家乡网络前缀; 所述 MAG收到所述路由器请求消息后, 向所述映射服务器发送代理绑 定更新消息;  Sending, by the MN, a router request message to the attached MAG, requesting to obtain a home network prefix; after receiving the router request message, the MAG sends a proxy binding update message to the mapping server;
所述映射服务器收到所述代理绑定更新消息后, 为所述 MN分配家乡网 络前缀, 并创建绑定緩存表项保存保存的绑定关系为所述 MN的家乡网络前 缀和代理转交地址的绑定关系;  After receiving the proxy binding update message, the mapping server allocates a home network prefix to the MN, and creates a binding cache entry to save the saved binding relationship to the MN's home network prefix and proxy care-of address. Binding relationship
所述映射服务器向所述 MAG回复代理绑定确认消息, 携带分配给所述 MN的家乡网络前缀;  The mapping server returns a proxy binding acknowledgement message to the MAG, carrying a home network prefix assigned to the MN;
移动接入网关收到代理绑定确认消息后, 发送路由器通告消息给所述 MN, 消息中包含映射服务器分配给所述 MN的家乡网络前缀以及 MN用来 进行地址配置的相关参数;  After receiving the proxy binding acknowledgement message, the mobile access gateway sends a router advertisement message to the MN, where the message includes a home network prefix allocated by the mapping server to the MN and related parameters used by the MN to perform address configuration.
所述 MN收到路由器通告消息后, 配置生成家乡地址。  After receiving the router advertisement message, the MN configures to generate a home address.
8、 一种移动接入网关(MAG ) , 作为移动节点(MN )对应的移动节点 MAG时, 该 MAG包括: 8. A mobile access gateway (MAG), as a mobile node MAG corresponding to a mobile node (MN), the MAG includes:
查询请求发送模块, 其设置为: 向映射服务器发送地址查询请求, 携带 对端节点 (CN ) 的节点信息;  The query request sending module is configured to: send an address query request to the mapping server, and carry node information of the peer node (CN);
查询应答接收模块, 其设置为: 接收地址查询应答消息, 所述地址查询  The query response receiving module is configured to: receive an address query response message, and the address query
22 应答消息携带所述 CN的移动接入网关信息。 twenty two The response message carries the mobile access gateway information of the CN.
9、 如权利要求 8所述的 MAG, 其中, 所述 MAG还包括: 9. The MAG of claim 8, wherein the MAG further comprises:
传输隧道建立模块, 设置为: 作为移动节点 MAG时, 根据所述地址查 询应答消息中的 CN的移动接入网关信息, 建立到所述 CN对应的对端节点 MAG的第一传输隧道;  a transmission tunnel establishing module, configured to: when the mobile node is a MAG, establish a first transmission tunnel to the opposite node MAG corresponding to the CN according to the mobile access gateway information of the CN in the address query response message;
报文緩存模块, 设置为: 作为移动节点 MAG时, 在所述第一传输隧道 建立前, 緩存接收的首报文;  The message buffering module is configured to: when the mobile node is a MAG, cache the first message received before the first transmission tunnel is established;
报文转发模块, 设置为: 作为移动节点 MAG时, 在所述第一传输隧道 建立后进行所述首报文转发。  The packet forwarding module is configured to: when the mobile node is a MAG, perform the first packet forwarding after the first transmission tunnel is established.
10、 如权利要求 8所述的 MAG,其中,所述地址查询请求中还携带移动 节点(MN )的节点信息和移动接入网关信息;作为 CN对应的对端节点 MAG, 该 MAG还包括: The MAG of claim 8, wherein the address query request further carries the node information of the mobile node (MN) and the mobile access gateway information; and the MAG corresponding to the CN corresponding to the CN, the MAG further includes:
查询请求接收模块, 设置为: 接收映射服务器发送的地址查询请求; 查询应答发送模块, 设置为: 根据所述地址查询请求中的 MN的、 移动 接入网关信息向所述 MN对应的移动节点 MAG发送地址查询应答消息。  The query request receiving module is configured to: receive an address query request sent by the mapping server; the query response sending module is configured to: according to the MN, the mobile access gateway information in the address query request to the mobile node MAG corresponding to the MN Send an address query response message.
11、 如权利要求 8或 9所述的 MAG,其中,所述地址查询应答消息是所 述映射服务器或对端节点 MAG发送的。 The MAG of claim 8 or 9, wherein the address query response message is sent by the mapping server or the peer node MAG.
12、 如权利要求 11所述的 MAG, 其中, 所述 MAG还包括映射关系维 护模块, 作为移动节点 MAG时: The MAG of claim 11, wherein the MAG further comprises a mapping relationship maintenance module, as the mobile node MAG:
所述映射关系维护模块设置为:根据所述地址查询应答消息保存所述 CN 的节点信息和移动接入网关信息的映射关系;  The mapping relationship maintenance module is configured to: save a mapping relationship between the node information of the CN and the mobile access gateway information according to the address query response message;
所述报文转发模块还设置为:在转发前对所述首报文封装外层隧道地址, 封装的外层源地址为所述 MN的移动接入网关信息, 目的地址为所述 CN的 移动接入网关信息。  The packet forwarding module is further configured to: encapsulate the outer tunnel address of the first packet before forwarding, the outer source address of the encapsulation is the mobile access gateway information of the MN, and the destination address is the movement of the CN Access gateway information.
13、 如权利要求 11所述的 MAG, 其中, 作为对端节点 MAG时: 所述传输隧道建立模块还设置为: 根据所述地址查询请求中的 MN的移 The MAG according to claim 11, wherein, when the peer node is a MAG, the transport tunnel establishing module is further configured to: query the MN in the request according to the address
23 动接入网关信息, 建立到所述 MN对应的移动节点 MAG的第二传输隧道。 twenty three The gateway information is dynamically accessed, and a second transmission tunnel to the mobile node MAG corresponding to the MN is established.
14、 如权利要求 13所述的 MAG, 其中, 作为对端节点 MAG时: 所述 映射关系维护模块还设置为: 根据所述地址查询请求保存所述 MN的节点信 息和移动接入网关信息的映射关系。 The MAG according to claim 13, wherein, when the peer node is a MAG, the mapping relationship maintenance module is further configured to: save the node information of the MN and the mobile access gateway information according to the address query request Mapping relations.
15、 一种映射服务器, 所述映射服务器包括: 15. A mapping server, the mapping server comprising:
查询请求接收模块, 其设置为: 接收移动节点对应的移动节点 MAG发 送的地址查询请求, 携带对端节点 (CN ) 的节点信息;  The query request receiving module is configured to: receive an address query request sent by the mobile node MAG corresponding to the mobile node, and carry node information of the opposite node (CN);
绑定关系维护模块, 其设置为: 保存绑定关系, 包括所述 CN的节点与 移动接入网关信息的绑定关系;  a binding relationship maintenance module, configured to: save a binding relationship, and include a binding relationship between the node of the CN and the mobile access gateway information;
绑定关系查询模块, 其设置为: 查询保存的绑定关系, 获取所述对端节 点的家乡节点对应的所述 CN的移动接入网关信息;  a binding relationship query module, configured to: query the saved binding relationship, and obtain information about the mobile access gateway of the CN corresponding to the home node of the peer node;
查询请求处理模块, 其设置为: 向所述移动节点 MAG发送地址查询应 答消息, 携带所述 CN的移动接入网关信息; 或, 根据所述 CN的移动接入 网关信息向所述 CN对应的对端节点 MAG转发所述地址查询请求。  a query request processing module, configured to: send an address query response message to the mobile node MAG, carrying the mobile access gateway information of the CN; or, according to the mobile access gateway information of the CN, to the CN The peer node MAG forwards the address query request.
16、 如权利要求 15所述的映射服务器,其中, 所述地址查询请求中还携 带首报文, 所述首报文的目的地址为所述 CN的节点信息。 The mapping server according to claim 15, wherein the address query request further carries a first message, and the destination address of the first message is node information of the CN.
17、 如权利要求 16所述的映射服务器,其中, 所述映射服务器还包括报 文转发模块,设置为:根据所述 CN的移动接入网关信息向所述对端节点 MAG 转发所述首报文。 The mapping server according to claim 16, wherein the mapping server further includes a message forwarding module, configured to: forward the first report to the opposite node MAG according to the mobile access gateway information of the CN Text.
18、 如权利要求 15所述的映射服务器, 其中, 所述映射服务器还包括: 代理绑定更新消息接收模块, 设置为: 接收移动节点(MN )移动接入网 关 (MAG )发送的代理绑定更新消息; The mapping server according to claim 15, wherein the mapping server further comprises: a proxy binding update message receiving module, configured to: receive a proxy binding sent by a mobile node (MN) mobile access gateway (MAG) Update message
家乡网络前缀分配模块, 设置为: 为所述 MN分配家乡网络前缀; 代理绑定确认消息发送模块, 设置为: 向移动节点 MAG回复代理绑定 确认消息, 消息中携带分配给所述 MN的家乡网络前缀;  The home network prefix allocation module is configured to: assign a home network prefix to the MN; a proxy binding confirmation message sending module, configured to: reply a proxy binding confirmation message to the mobile node MAG, where the message carries the hometown assigned to the MN Network prefix
所述绑定关系维护模块保存的绑定关系是根据分配的家乡网络前缀及所  The binding relationship saved by the binding relationship maintenance module is based on the assigned home network prefix and the
24 述代理绑定更新消息保存的所述 MN的家乡网络前缀和代理转交地址的绑定 关系。 twenty four The binding relationship between the home network prefix and the proxy care-of address of the MN saved by the proxy binding update message.
19、 一种报文转发路径管理系统,该系统包括如权利要求 8至 14中任一 项所述的移动接入网关 (MAG ) 。 A message forwarding path management system, comprising the mobile access gateway (MAG) according to any one of claims 8 to 14.
20、 如权利要求 19所述的系统, 其中, 所述系统还包括如权利要求 15 至 18中任一项所述的映射服务器。 The system according to claim 19, wherein the system further comprises the mapping server according to any one of claims 15 to 18.
PCT/CN2012/075722 2011-07-08 2012-05-18 Method and system for managing packet forwarding path, and network element WO2013007133A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110191461.8 2011-07-08
CN201110191461.8A CN102868991B (en) 2011-07-08 2011-07-08 message forwarding path management method, system and network element

Publications (1)

Publication Number Publication Date
WO2013007133A1 true WO2013007133A1 (en) 2013-01-17

Family

ID=47447535

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075722 WO2013007133A1 (en) 2011-07-08 2012-05-18 Method and system for managing packet forwarding path, and network element

Country Status (2)

Country Link
CN (1) CN102868991B (en)
WO (1) WO2013007133A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995043A (en) * 2019-12-17 2021-06-18 阿里巴巴集团控股有限公司 Information processing method and device in wireless mesh network and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517488B (en) 2016-06-15 2020-10-23 华为技术有限公司 Message processing method and device
CN108990000A (en) * 2017-05-31 2018-12-11 华为技术有限公司 A kind of group mobility management method and relevant device
CN107483628B (en) * 2017-09-12 2020-09-18 网宿科技股份有限公司 DPDK-based one-way proxy method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136847A (en) * 2006-08-31 2008-03-05 华为技术有限公司 Packet routing method and system of local mobility management network
CN101772193A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method, system and mobile access gateway for optimizing local routing
CN101940014A (en) * 2008-02-04 2011-01-05 爱立信电话股份有限公司 Be used to provide the method and apparatus of routing optimality

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136847A (en) * 2006-08-31 2008-03-05 华为技术有限公司 Packet routing method and system of local mobility management network
CN101940014A (en) * 2008-02-04 2011-01-05 爱立信电话股份有限公司 Be used to provide the method and apparatus of routing optimality
CN101772193A (en) * 2008-12-26 2010-07-07 华为技术有限公司 Method, system and mobile access gateway for optimizing local routing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995043A (en) * 2019-12-17 2021-06-18 阿里巴巴集团控股有限公司 Information processing method and device in wireless mesh network and electronic equipment
CN112995043B (en) * 2019-12-17 2023-04-25 阿里巴巴集团控股有限公司 Information processing method and device in wireless mesh network and electronic equipment

Also Published As

Publication number Publication date
CN102868991B (en) 2018-03-20
CN102868991A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
JP3568852B2 (en) Method and apparatus for assigning a packet routing address for a wireless device accessing a wired subnet
JP4794520B2 (en) System, access gateway, home agent, and program for optimizing communication path in network-driven mobility management protocol
JP3573266B2 (en) How to establish a routing path for delivering packets to a destination node
EP1011241B1 (en) Wireless access to packet-based networks
JP3573265B2 (en) Sending the packet to the wireless device
US9049653B2 (en) Handover in core-edge separation technology in wireless communications
EP1011243A1 (en) Single phase local mobility scheme for wireless access to packet-based networks
US9049625B2 (en) Route switching methods and systems
Shin et al. Distributed mobility management for efficient video delivery over all-IP mobile networks: Competing approaches
JPWO2009057296A1 (en) Mobile terminal, network node, and packet forwarding management node
US8824353B2 (en) Mobility route optimization in a network having distributed local mobility anchors
WO2007131404A1 (en) A method and device for realizing fast handover
WO2013007133A1 (en) Method and system for managing packet forwarding path, and network element
JP2006005607A (en) Network system and mobile router
WO2013007131A1 (en) Mobility management method and mobile access gateway
JP2008541516A (en) Communication method between IPv6 communicating node and mobile IPv6 node, and communicating node proxy gateway
WO2013026297A1 (en) Method and system for implementing handover, and source egress tunnel router
WO2013034003A1 (en) Mobility management method and system
US20090147759A1 (en) Method and apparatus for supporting mobility of node using layer 2/layer 3 addresses
WO2011050679A1 (en) Communication network and terminal access method implemented based on wimax network framework
WO2013083037A1 (en) Update packet processing method and system, mapping server and mobile node
WO2013007129A1 (en) Packet forwarding processing method, network element and system
WO2013044688A1 (en) Communication method and communication system for a node which is roaming in pmip domains
WO2013064053A1 (en) Method and system for policy management in stream movement
WO2014000175A1 (en) Session routing method, apparatus and 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: 12810543

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

Country of ref document: EP

Kind code of ref document: A1