WO2015100610A1 - Method and device for keeping ip address of user equipment fixed - Google Patents

Method and device for keeping ip address of user equipment fixed Download PDF

Info

Publication number
WO2015100610A1
WO2015100610A1 PCT/CN2013/091086 CN2013091086W WO2015100610A1 WO 2015100610 A1 WO2015100610 A1 WO 2015100610A1 CN 2013091086 W CN2013091086 W CN 2013091086W WO 2015100610 A1 WO2015100610 A1 WO 2015100610A1
Authority
WO
WIPO (PCT)
Prior art keywords
pgw
route
address
sgi interface
routing information
Prior art date
Application number
PCT/CN2013/091086
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 华为技术有限公司
Priority to PCT/CN2013/091086 priority Critical patent/WO2015100610A1/en
Priority to CN201380035298.3A priority patent/CN104412548B/en
Publication of WO2015100610A1 publication Critical patent/WO2015100610A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery

Definitions

  • the embodiments of the present invention relate to communication technologies, and in particular, to a method and a device for maintaining a fixed IP address of a user equipment. Background technique
  • LTE Long Term Evolution
  • IP Internet Protocol
  • PGW Evolved Packet Core
  • FIG. 1 is a prior art packet forwarding.
  • PGW1 and PGW2 are connected to the same router.
  • the router has the primary and backup routes to the static IP address of the UE.
  • the next hop of the primary route is PGW1, and the next hop of the standby route is PGW2.
  • the first loop to the UE is configured on the PGW1, and the next hop from the first loop is a router, and the second loop of the UE is configured on the router, and the next hop of the second loop is PGW2.
  • the router forwards the packet to the PGW1 according to the primary route.
  • the PGW1 determines whether the UE establishes a PDN connection locally. If the UE establishes a PDN connection locally, Then, PGW1 performs local processing on the packet and does not forward the packet. If PGW1 determines that the UE does not establish a PDN connection locally, the packet is forwarded to the router, and the router searches for the second loop, and learns that the next hop of the second loop is PGW2.
  • the packet is forwarded to the PGW2, and the PGW2 determines that the UE establishes a PDN connection locally, and then the packet is sent.
  • the second loop may be set on other routers, and may not necessarily be returned to the same router.
  • the above example has only two PGW cases. When there are multiple PGWs, multiple loops need to be configured.
  • the loop is required to be configured in the EPC, and the bandwidth needs to be reserved for the report.
  • the loop is required to be configured on multiple EPCs. , and the configuration is more complicated, and the maintainability is poor. Summary of the invention
  • the embodiments of the present invention provide a method and a device for maintaining a fixed IP address of a user equipment, which reduces the complexity of the routing configuration and reduces the waste of resources caused by the loop.
  • a first aspect of the present invention provides a method for maintaining a fixed IP address of a user equipment, including: when a user equipment UE establishes a PDN connection of a packet data network on a packet data gateway PGW, the router receives a destination that the PGW broadcasts on the SGi interface.
  • the newly added routing information of the UE where the newly added routing information includes a static internet protocol IP address and a subnet mask of the UE; the router performs routing learning according to the newly added routing information, and obtains the arrival of the UE.
  • Dynamic routing the dynamic routing includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE;
  • the router receives the downlink data packet sent by the network side to the UE, and sends the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
  • the method further includes:
  • the router When the UE deletes the PDN connection on the PGW, the router receives the
  • route deletion message sent by the PGW, where the route deletion message includes a static IP address and a subnet mask of the UE;
  • the router deletes the dynamic route according to the route deletion message.
  • the method further includes:
  • the router detects a status of the PGW, and determines, according to a status of the PGW, whether the PGW is faulty;
  • a second aspect of the present invention provides a method for maintaining a fixed IP address of a user equipment, including: the packet data gateway PGW determines that the user equipment UE establishes a packet data network PDN connection on the PGW;
  • the PGW broadcasts new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, where the newly added routing information includes the static Internet Protocol IP address and the subnet of the UE.
  • the mask is configured to perform routing learning according to the newly added routing information by all routers in the area corresponding to the SGi interface.
  • the PGW when the SGi interface adopts an open shortest path first OSPF protocol, the PGW broadcasts to all routers in the area corresponding to the SGi interface through the SGi interface. And sending the newly added routing information to the UE, where the PGW includes the new routing information in the link state broadcast data packet LSA, and all the areas in the area corresponding to the SGi interface through the SGi interface The router broadcasts the LSA.
  • the PGW broadcasts a destination to all routers in the area corresponding to the SGi interface through the SGi interface.
  • the newly added routing information of the UE includes:
  • the PGW includes the newly added routing information in the response data packet, and periodically sends the response data packet to all routers in the area corresponding to the SGi interface by using the SGi interface.
  • the method further includes:
  • the PGW When the UE deletes the PDN connection on the PGW, the PGW sends a route deletion message to all routers in the area corresponding to the SGi interface, so that all routers in the area corresponding to the SGi interface are based on
  • the route deletion message deletes the dynamic route, and the route deletion message includes a static IP address and a subnet mask of the UE.
  • a third aspect of the present invention provides a router, including:
  • a receiving module configured to receive, when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, the newly added routing information that is sent by the PGW to the SGi interface and is sent to the UE, where the new route is
  • the information includes a static internet protocol IP address and a subnet mask of the UE;
  • a route learning module configured to perform, according to the newly added routing information received by the receiving module Learning, obtaining a dynamic route to the UE, the dynamic route includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE;
  • the receiving module is further configured to receive a downlink data packet sent by the network side to the UE, where the sending module is configured to: when the receiving module receives the downlink data packet sent by the network side to the UE, according to the downlink data The destination IP address of the packet and the dynamic route send the downlink data packet to the PGW.
  • the router further includes: a route deletion module
  • the receiving module is further configured to: when the UE deletes the PDN connection on the PGW, receive a route deletion message sent by the PGW, where the route deletion message includes a static IP address and a subnet of the UE Mask
  • the route deletion module is configured to delete the dynamic route according to the route deletion message received by the receiving module.
  • the router further includes: a fault detection module, configured to detect a status of the PGW, and determine, according to a status of the PGW, whether the PGW is faulty;
  • the route deletion module is further configured to: when the fault detection module determines that the PGW is faulty, delete all the routing entries of the locally saved PGW, where the routing entry includes the dynamic routing.
  • a fourth aspect of the present invention provides a packet data gateway PGW, including:
  • a determining module configured to determine that the user equipment UE establishes a packet data network PDN connection on the PGW;
  • a sending module configured to broadcast, by using an SGi interface, all the routers in the area corresponding to the SGi interface to send new routing information to the UE, where the newly added routing information includes a static Internet Protocol IP address of the UE And a subnet mask, so that all routers in the area corresponding to the SGi interface perform route learning according to the newly added routing information.
  • the sending module is specifically configured to:
  • the new routing information is included in the link state broadcast data packet LSA, and the LSA is broadcasted to all routers in the area corresponding to the SGi interface by using the SGi interface.
  • the sending module is specifically configured to:
  • the new routing information is included in the response data packet, and the response data packet is periodically sent to all routers in the area corresponding to the SGi interface by using the SGi interface.
  • the sending module is further configured to:
  • the UE When the UE deletes the PDN connection on the PGW, sending a route deletion message to all routers in the area corresponding to the SGi interface, so that all routers in the area corresponding to the SGi interface are according to the route.
  • the deletion message deletes the dynamic route, and the route deletion message includes a static IP address and a subnet mask of the UE.
  • the method and the device for maintaining the IP address of the user equipment are fixed.
  • the PGW detects that the UE establishes a PDN connection on the PGW, the PGW broadcasts the newly added routing information of the UE to all the areas in the area corresponding to the SGi interface.
  • a router so that each router performs routing learning according to the newly added routing information, and obtains a dynamic route to the UE, where the destination address of the dynamic route is a static IP address of the UE, and therefore, when the router receives the downlink addressed to the UE, The data packet is forwarded to the PGW according to the dynamic route.
  • the foregoing method can keep the IP address of the UE unchanged, and does not need to manually configure the route, and the router learns the route dynamically, especially in the scenario of multiple PGW networks, and does not need to configure multiple loops for the UE, and does not need to be configured.
  • the bandwidth is reserved for the return text, thereby reducing the complexity of the routing configuration and reducing the waste of resources caused by the loop.
  • FIG. 1 is a schematic diagram of packet forwarding in the prior art
  • FIG. 2 is a flowchart of Embodiment 1 of a method for maintaining a fixed IP address of a user equipment according to the present invention
  • FIG. 3 is a flowchart of Embodiment 2 of a method for maintaining a fixed IP address of a user equipment according to the present invention
  • 4 is a flowchart of Embodiment 3 of a method for maintaining a fixed IP address of a user equipment according to the present invention
  • FIG. 5 is a flowchart of Embodiment 4 of a method for maintaining a fixed IP address of a user equipment according to the present invention
  • a schematic diagram of the structure of a router
  • FIG. 7 is a schematic structural diagram of another router according to Embodiment 6 of the present invention.
  • FIG. 8 is a schematic structural diagram of a PGW according to Embodiment 7 of the present invention.
  • FIG. 9 is a schematic structural diagram of another router according to Embodiment 8 of the present invention.
  • FIG. 10 is a schematic structural diagram of another PGW according to Embodiment 9 of the present invention. detailed description
  • Embodiment 1 is a flowchart of Embodiment 1 of a method for maintaining a fixed IP address of a user equipment according to the present invention, as shown in FIG.
  • the method provided in this embodiment includes the following steps:
  • Step 101 When the UE establishes a PDN connection on the PGW, the router receives the newly added routing information that the PGW broadcasts on the SGi interface and arrives at the UE, where the newly added routing information includes the static IP address and the subnet mask of the UE.
  • the PGW When the UE establishes a Packet Data Network (PDN) connection on the PGW, the PGW broadcasts and sends new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, for the SGi. All the routers in the area corresponding to the interface perform route learning according to the newly added routing information, where the newly added routing information includes the static IP address and the subnet mask of the UE, and each router can learn one arrival according to the newly added routing information.
  • the dynamic routing of the UE, the static IP address of the UE is the destination address of the dynamic routing.
  • Step 102 The router performs routing learning according to the newly added routing information, and obtains a dynamic route to the UE.
  • the dynamic route includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP of the UE. address.
  • the router After receiving the new routing information sent by the PGW broadcast, the router uses the routing algorithm to learn the routing according to the newly added routing information.
  • the routing algorithm There are also differences. For example, when the router uses the Open Shortest Path First (OSPF) protocol, the OSPF protocol uses the Dijkstra routing algorithm for routing learning. Route learning is a prior art, so there is no description here. .
  • OSPF Open Shortest Path First
  • the router obtains the dynamic route to the UE through the route learning.
  • the dynamic route includes: a destination address, a subnet mask, and a next hop address, where the dynamic route is a shortest path to the UE, and the destination address of the dynamic route is The static IP address of the UE, after receiving the downlink data packet whose destination address is the static IP address of the UE, the router sends the downlink data packet to the PGW according to the dynamic route, and the PGW sends the downlink data packet to the PGW through the LTE network.
  • UE The static IP address of the UE
  • Step 103 The router receives the downlink data packet sent by the network side to the UE, and sends the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
  • the router When the data packet is forwarded to the router, the router first takes the destination address of the data packet from the header. If the destination network segment to which the destination address belongs is in the router, the router directly sends the data packet. Go to the port corresponding to the destination network segment; if the destination address of the data packet is not in the router, calculate the best path to the destination address according to the path table, and forward the data packet to the shortest path. The next hop routing device.
  • the router learns the dynamic route to the UE, when the router receives the downlink data packet addressed to the UE, and determines that the destination address of the downlink data packet is the static IP address of the UE, the router The routing information table is searched according to the destination address of the downlink data packet, and the routing information table maintains multiple routing entries.
  • the router finds the dynamic routing by searching the routing information table, and learns the next downlink data packet according to the dynamic routing.
  • the hop network element is the PGW, and the router forwards the downlink data packet according to the next hop address of the dynamic route, and finally forwards the downlink data packet to the PGW, and the PGW receives the downlink data sent by the router. After the message, the downlink data packet is sent to the UE via the LTE network.
  • the PGW broadcasts the new routing information of the UE to all the routers in the area corresponding to the SGi interface, so that each router performs routing learning according to the newly added routing information, and obtains a dynamic route to the UE, and the destination address of the dynamic routing. It is the static IP address of the UE. Therefore, when the router receives the downlink data packet addressed to the UE, the router forwards the downlink data packet to the PGW according to the dynamic route.
  • the above method can keep the IP address of the UE unchanged, and does not need to manually configure the way.
  • the router dynamically learns the route, especially in the scenario of multiple PGW networks. It does not need to configure multiple loops for the UE, and does not need to reserve bandwidth for the report, thus reducing the complexity of the route configuration. , and the problem of wasted resources caused by the use of loops.
  • FIG. 3 is a flowchart of Embodiment 2 of a method for maintaining a fixed IP address of a user equipment according to the present invention. As shown in FIG. 3, the method provided in this embodiment includes the following steps:
  • Step 201 The PGW determines that the UE establishes a PDN connection on the PGW.
  • Step 202 The PGW broadcasts and sends new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, where the newly added routing information includes a static IP address and a subnet mask of the UE. All routers in the area corresponding to the SGi interface perform route learning according to the newly added routing information.
  • the way in which the PGW broadcasts new routing information will vary depending on the protocol. If the SGi interface adopts the OSPF protocol, the PGW broadcasts the new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, specifically: The PGW includes the newly added routing information in the link state broadcast.
  • the LSA the LSA is broadcasted to all routers in the area corresponding to the SGi interface through the SGi interface.
  • the PGW uses the routing information protocol RIP
  • the PGW broadcasts the new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, specifically: the PGW includes the new routing information in the response.
  • the response packet is periodically sent to all routers in the area corresponding to the SGi interface through the SGi interface.
  • the PGW sends all routers in the area corresponding to the SGi interface.
  • the LSA includes the newly added routing information. After receiving the LSA, the router learns the route according to the newly added routing information, and obtains a dynamic route to the UE.
  • the dynamic route is the shortest path to the UE.
  • the dynamic route includes: a destination address, a subnet mask, and a next hop address, where the destination address is a static IP address of the UE, and then, when the router receives the downlink data packet of the UE, the UE is configured according to the dynamic route.
  • the downlink data packet is sent to the PGW, and the PGW sends the downlink data packet to the UE through the LTE network.
  • the PGW when the UE establishes a PDN connection on the PGW, the PGW broadcasts the newly added routing information of the UE to all the routers in the area corresponding to the SGi interface, so that each router performs the routing information according to the newly added routing information.
  • Route learning, calculating the shortest path to the UE, the destination address of the shortest path is the static IP address of the UE, and therefore, when the router receives the destination When the downlink data packet of the UE is received, the downlink data packet is forwarded to the PGW according to the shortest path.
  • the foregoing method can keep the IP address of the UE unchanged, and does not need to manually configure the route, and the router learns the route dynamically, especially in the scenario of multiple PGW networks, and does not need to configure multiple loops for the UE, and does not need to be configured.
  • the bandwidth is reserved for the return text, thereby reducing the complexity of the routing configuration and reducing the waste of resources caused by the loop.
  • Embodiment 4 is a flowchart of Embodiment 3 of a method for maintaining a fixed IP address of a user equipment according to the present invention. As shown in FIG. 4, the method provided in this embodiment includes the following steps:
  • Step 301 When the UE establishes a PDN connection on the PGW, the PGW broadcasts and sends new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, where the newly added routing information includes the UE. Static IP address and subnet mask.
  • Step 302 The router receives the newly added routing information sent by the PGW.
  • Step 303 The router performs route learning according to the newly added routing information, and obtains a dynamic route to the UE.
  • the router learns and calculates a dynamic route to the UE, and the dynamic route is the shortest path to the UE.
  • the dynamic route includes: a destination address, a subnet mask, and a next hop, where the dynamic route is The destination address is the static IP address of the UE.
  • Step 304 The router receives the downlink data packet sent by the network side to the UE, and sends the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
  • Step 305 When the UE deletes the PDN connection on the PGW, the PGW broadcasts a route deletion message to all routers in the area corresponding to the SGi interface through the SGi interface, where the route deletion message includes the static IP address and the subnet mask of the UE.
  • the PGW deletes the message by issuing the route of the UE, so that each router deletes the message according to the route, and deletes all the routing entries that are saved to the UE.
  • the router receives the route deletion message sent by the PGW, and deletes the dynamic route according to the route deletion message.
  • the router After receiving the route deletion message sent by the PGW, the router deletes the message according to the route and learns the route, and deletes the dynamic route.
  • FIG. 5 is a diagram of maintaining user equipment IP according to the present invention
  • the flowchart of the fourth embodiment of the method is fixed.
  • two PGWs are used as an example, and the PGW adopts an OSPF protocol. If the PGW1 is faulty, the UE re-establishes a PDN connection on the PGW2. As shown in FIG.
  • the methods provided include the following steps:
  • Step 401 The PGW1 sends a hello packet to the router according to the preset time interval, so that the router detects the state of the PGW1 according to the hello packet.
  • Step 402 The router detects the state of the PGW1 according to the hello packet.
  • the router determines that the PGW1 is faulty.
  • Step 403 When the router determines that the PGW1 is faulty, the router deletes all routes of the locally saved PGW1.
  • the UE After the PGW1 is faulty, the UE reselects the PGW2 attachment to establish a PDN connection, and the PGW2 sends the link state information to the router to send the routing information to the router, where the routing information includes the static IP address and the subnet mask of the UE.
  • the router learns that the next hop address of the route to the UE is the IP address of the PGW2, and the router receives the downlink data packet of the UE. Sending the downlink data packet of the UE to PGW2 according to the route of the UE.
  • the PGW1 re-establishes a neighbor relationship with the router, and the PGW1 notifies the router of all local-to-UE routing information, and the router learns the routing information of all UEs on the PGW1, and calculates each UE. The next hop address of the route.
  • OSPF OSPF
  • PGW1 broadcasts all local-to-UE routing information through the LSA.
  • RIP RIP
  • PGW1 periodically floods the response packets to notify neighbors of all routing information.
  • the network system adopts the OSPF protocol as an example.
  • the PGW maintains the neighbor relationship through the hello packet, and the router detects whether the neighboring PGW is faulty through the hello packet.
  • the network system adopts the RIP protocol the PGW maintains the neighbor status by responding to the message.
  • the PGW floods and broadcasts a response message every 30 seconds.
  • the response message contains all the routing information of the PGW. If the router does not have 180 seconds.
  • the router considers that the neighbor is faulty.
  • FIG. 6 is a schematic structural diagram of a router according to Embodiment 5 of the present invention.
  • the router provided in this embodiment includes: a receiving module 51, a routing learning module 52, and a sending module 53.
  • the receiving module 51 is configured to establish, when the user equipment UE is on the packet data gateway PGW, Receiving, when the packet data network PDN is connected, receiving the newly added routing information that is sent by the PGW to the UE and being sent by the SGi interface, where the newly added routing information includes a static Internet Protocol IP address and a subnet mask of the UE;
  • the routing learning module 52 is configured to perform routing learning according to the newly added routing information received by the receiving module 51, and obtain a dynamic route to the UE, where the dynamic routing includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE;
  • the receiving module 51 is further configured to receive a downlink data packet sent by the network side to the UE, where the sending module 53 is configured to: when the receiving module 51 receives the downlink data packet sent by the network side to the UE, Sending the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
  • the router provided in this embodiment can be used to implement the technical solution in the first embodiment of the method.
  • the specific implementation manner and technical effects are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of another router according to Embodiment 6 of the present invention.
  • the router provided in this embodiment includes: a receiving module 61, a route learning module 62, and a sending module 63.
  • the receiving module 61 is configured to: when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, receive new routing information that is sent by the PGW to the SGi interface and is sent to the UE, where the adding The routing information includes a static internet protocol IP address and a subnet mask of the UE;
  • the routing learning module 62 is configured to perform routing learning according to the newly added routing information received by the receiving module 61, and obtain a dynamic route to the UE, where the dynamic routing includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE;
  • the receiving module 61 is further configured to receive a downlink data packet sent by the network side to the UE, where the sending module 63 is configured to: when the receiving module 61 receives the downlink data packet sent by the network side to the UE, Sending the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
  • the router of the present implementation may further include a route deletion module 64, where the receiving module 61 is further configured to: when the UE deletes the PDN connection on the PGW, receive a route deletion message sent by the PGW, and the route The deletion message includes a static IP address and a subnet mask of the UE;
  • the route deletion module 64 is configured to delete the dynamic route according to the route deletion message received by the receiving module 61.
  • the router of the present implementation further includes: a fault detection module 65, configured to detect a state of the PGW, and determine whether the PGW is faulty according to a state of the PGW; the route deletion module 64 is further used to When the fault detection module 65 determines that the PGW is faulty, all the routing entries in the routing information table of the PGW that are saved locally are deleted, and the routing entry includes the dynamic routing.
  • a fault detection module 65 configured to detect a state of the PGW, and determine whether the PGW is faulty according to a state of the PGW
  • the route deletion module 64 is further used to When the fault detection module 65 determines that the PGW is faulty, all the routing entries in the routing information table of the PGW that are saved locally are deleted, and the routing entry includes the dynamic routing.
  • the router provided in this embodiment may be used to implement the technical solutions in the first embodiment, the third embodiment, and the fourth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of a PGW according to Embodiment 7 of the present invention.
  • the PGW provided in this embodiment includes: a determining module 71 and a sending module 72.
  • the determining module 71 is configured to determine that the user equipment UE establishes a packet data network PDN connection on the PGW.
  • the sending module 72 is configured to broadcast, by using the SGi interface, the newly added routing information that is sent to the UE to all the routers in the area corresponding to the SGi interface, where the newly added routing information includes the static internet protocol IP of the UE.
  • the address and the subnet mask are used by all the routers in the area corresponding to the SGi interface to perform route learning according to the newly added routing information.
  • the sending module 72 is specifically configured to: include the newly added routing information in a link state broadcast data packet LSA, and use the SGi interface to All routers in the area corresponding to the SGi interface broadcast the LSA.
  • the sending module 72 is specifically configured to: include the newly added routing information in the response data packet, and use the SGi interface to correspond to the area corresponding to the SGi interface. All routers periodically send the response packet.
  • the sending module 72 is further configured to: when the UE deletes the PDN connection on the PGW, send a route deletion message to all routers in the area corresponding to the SGi interface, so that the SGi All the routers in the area corresponding to the interface delete the dynamic route according to the route deletion message, where the route deletion message includes a static IP address and a subnet mask of the UE.
  • FIG. 9 is a schematic structural diagram of another router according to Embodiment 8 of the present invention.
  • the router 800 provided in this embodiment includes: a processor 81, a receiver 83, and a transmitter 84, wherein the receiver 83 The transmitter 84 is coupled to the processor 81 via a bus.
  • the router 800 provided in this embodiment may further include: a memory 82, wherein the memory 82 stores execution instructions, when the router 800 is running, the processor 81 communicates with the memory 82, and the processor 81 executes execution instructions to cause the router 800 to execute the present invention. A method of keeping the IP address of the user equipment fixed.
  • the receiver 83 is configured to: when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, receive new routing information that is sent by the PGW to the SGi interface and is sent to the UE, where The newly added routing information includes a static internet protocol IP address and a subnet mask of the UE;
  • the processor 81 is configured to perform route learning according to the newly added routing information, to obtain a dynamic route to the UE, where the dynamic route includes: a destination address, the subnet mask, and a next hop address, where The destination address is a static IP address of the UE;
  • the receiver 83 is further configured to receive a downlink data packet sent by the network side to the UE.
  • the transmitter 84 is configured to send the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
  • the receiver 83 is further configured to receive a route deletion message sent by the PGW, where the route deletion message includes a static IP address and a subnet mask of the UE.
  • the processor 81 deletes the dynamic route according to the route deletion message.
  • the processor 81 is further configured to detect a status of the PGW, determine whether the PGW is faulty according to a status of the PGW, and delete the locally saved PGW when the processor 81 determines that the PGW is faulty. All routing entries in the routing information table, where the routing entries include the dynamic routing.
  • the router provided in this embodiment may be used to implement the technical solutions in the first embodiment, the third embodiment, and the fourth embodiment.
  • the specific implementation manners and technical effects are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of another PGW according to Embodiment 9 of the present invention.
  • the PGW 900 provided in this embodiment includes: a processor 91 and a transmitter 93, wherein the transmitter 93 passes through a bus and a processor. 91 connected.
  • the PGW 900 provided in this embodiment may further include: a memory 92, wherein the memory 92 stores an execution instruction, and when the PGW 900 is running, the processor 91 and the storage The memory 92 communicates with each other, and the processor 91 executes the execution instructions such that the PGW 900 performs the method of keeping the user equipment IP address fixed by the present invention.
  • the processor 91 is configured to determine that the user equipment UE establishes a packet data network PDN connection on the PGW.
  • the transmitter 93 is configured to broadcast, by using the SGi interface, the newly added routing information that is sent to the UE to all the routers in the area corresponding to the SGi interface, where the newly added routing information includes the static internet protocol IP of the UE.
  • the address and the subnet mask are used by all the routers in the area corresponding to the SGi interface to perform route learning according to the newly added routing information.
  • the transmitter 93 is specifically configured to: include the newly added routing information in the link state broadcast data packet LSA, and connect the SGi interface to the SGi interface by using the SGi interface. All routers in the corresponding area broadcast the LSA.
  • the transmitter 93 is specifically configured to: include the newly added routing information in the response data packet, and use the SGi interface to all routers in the area corresponding to the SGi interface.
  • the response packet is sent periodically.
  • the transmitter when the UE deletes the PDN connection on the PGW, the transmitter
  • the PGW provided in this embodiment may be used to implement the technical solution provided by the method embodiment 2.
  • the specific implementation manner and technical effects are similar, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. You can choose which one according to your actual needs. Some or all of the units implement the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional unit.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the method of various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. medium.

Landscapes

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

Abstract

Embodiments of the present invention provide a method and a device for keeping an IP address of a user equipment fixed. The method comprises: when a PGW detects that a UE establishes a PDN connection on the PGW, the PGW broadcasting new routing information reaching the UE to all routers in a region corresponding to an SGi interface; each of the routers performing route learning according to the new routing information, and obtaining a dynamic route reaching the UE, a destination address of the dynamic route being a static IP address of the UE; and when the router receives a downlink data packet of the UE, the router forwarding the downlink data packet to the PGW according to the dynamic route. By using the method, an IP address of a UE can be kept unchanged, and a route does not need to be manually configured and a router dynamically learns the route; and especially, in a scenario of networking of multiple PGWs, the complexity of route configuration is reduced, and the problem of resource waste caused by using an alternative route is alleviated.

Description

保持用户设备 IP地址固定的方法和设备  Method and device for keeping user equipment IP address fixed
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种保持用户设备 IP地址固定的 方法和设备。 背景技术  The embodiments of the present invention relate to communication technologies, and in particular, to a method and a device for maintaining a fixed IP address of a user equipment. Background technique
随着长期演进 (Long Term Evolution, 简称 LTE) 技术的快速发展, 无线带宽能力越来越大,越来越多的用户选择 LTE制式作为无线宽带接入 方式。 无线用户设备 (User Equipment, 简称 UE) 接入网络后, 通常要求 采用固定互联网协议 (Internet Protocol, 简称 IP) 地址通信, 但是因为组 网方式的限制,如果 UE在不同的演进的分组核心网(Evolved Packet Core, 简称 EPC )切换时, 通常要求 UE在不同的 EPC的 PGW下采用不同的 IP 地址,如果 UE在不同 EPC的分组数据网关(Packet Data Network Gateway, 简称 PGW)下采用相同的 IP地址, 则路由器在进行下行报文转发时, 根 据 UE的 IP地址无法确定将报文转发给哪个 PGW。  With the rapid development of Long Term Evolution (LTE) technology, wireless bandwidth capabilities are increasing, and more and more users choose LTE as the wireless broadband access method. After accessing the network, the User Equipment (UE) usually requires the use of fixed Internet Protocol (IP) address communication. However, if the UE is in different evolved packet core networks ( When Evolved Packet Core (EPC) is switched, the UE is usually required to use different IP addresses under different EPC PGWs. If the UE uses the same IP address under different EPC Packet Data Network Gateways (PGWs) Then, when the router forwards the downlink packet, the router cannot determine which PGW to forward the packet to according to the IP address of the UE.
现有技术中, 为了保持 UE的 IP地址在不同 PGW下保持固定, 对 UE配置静态 IP地址, 以下以两个 PGW为例进行说明, 如图 1所示, 图 1为现有技术报文转发示意图, PGW1和 PGW2连接到同一个路由器, 在 路由器上配置有到达 UE的静态 IP地址的主路由和备路由,主路由的下一 跳为 PGW1 , 备路由的下一跳为 PGW2。 同时, 在 PGW1上配置到达 UE 的第一迂回路由, 该第一迂回路由的下一跳为路由器, 在该路由器上配置 有到达 UE的第二迂回路由,该第二迂回路由的下一跳为 PGW2。在 PGW1 和 PGW2都正常工作时, 下行报文到达路由器后, 路由器根据主路由将报 文转发给 PGW1, PGW1接收到报文后判断 UE是否在本地建立 PDN连接, 如果 UE在本地建立 PDN连接, 则 PGW1对报文进行本地处理, 不再转 发, 如果 PGW1判断出 UE不在本地建立 PDN连接, 则将报文转发给路 由器, 路由器查找第二迂回路由, 获知第二迂回路由的下一跳为 PGW2, 则将报文转发给 PGW2, PGW2判断 UE在本地建立 PDN连接, 则对报文 进行处理, 需要说明的是, 上述例子中, 第二迂回路由也可以设置在其他 路由器上, 不一定返回到同一个路由器上。 上述的例子只有两个 PGW的 情况, 当有多个 PGW时, 需要配置多条迂回路由. In the prior art, in order to keep the IP address of the UE fixed in different PGWs, a static IP address is configured for the UE. The following two PGWs are used as an example. As shown in FIG. 1 , FIG. 1 is a prior art packet forwarding. As shown in the figure, PGW1 and PGW2 are connected to the same router. The router has the primary and backup routes to the static IP address of the UE. The next hop of the primary route is PGW1, and the next hop of the standby route is PGW2. At the same time, the first loop to the UE is configured on the PGW1, and the next hop from the first loop is a router, and the second loop of the UE is configured on the router, and the next hop of the second loop is PGW2. When the PGW1 and the PGW2 are working normally, after the downlink packet arrives at the router, the router forwards the packet to the PGW1 according to the primary route. After receiving the packet, the PGW1 determines whether the UE establishes a PDN connection locally. If the UE establishes a PDN connection locally, Then, PGW1 performs local processing on the packet and does not forward the packet. If PGW1 determines that the UE does not establish a PDN connection locally, the packet is forwarded to the router, and the router searches for the second loop, and learns that the next hop of the second loop is PGW2. Then, the packet is forwarded to the PGW2, and the PGW2 determines that the UE establishes a PDN connection locally, and then the packet is sent. For the processing, it should be noted that, in the above example, the second loop may be set on other routers, and may not necessarily be returned to the same router. The above example has only two PGW cases. When there are multiple PGWs, multiple loops need to be configured.
现有技术的方案中, 需要在 EPC中配置迂回路由, 且需要为迂回报文 预留带宽, 在多个 EPC组网情况下, 需要在多个 EPC上配置迂回路由, 迂回 报文占用带宽大, 且配置较复杂, 可维护性差。 发明内容  In the prior art solution, the loop is required to be configured in the EPC, and the bandwidth needs to be reserved for the report. In the case of multiple EPC networks, the loop is required to be configured on multiple EPCs. , and the configuration is more complicated, and the maintainability is poor. Summary of the invention
本发明实施例提供一种保持用户设备 IP地址固定的方法和设备, 降低了 路由配置的复杂度, 以及降低了采用迂回路由导致的资源浪费的问题。  The embodiments of the present invention provide a method and a device for maintaining a fixed IP address of a user equipment, which reduces the complexity of the routing configuration and reduces the waste of resources caused by the loop.
本发明第一方面提供一种保持用户设备 IP地址固定的方法, 包括: 当用户设备 UE在分组数据网关 PGW上建立分组数据网络 PDN连接时, 路由器接收所述 PGW在 SGi接口广播发送的到达所述 UE的新增路由信息, 其中,所述新增路由信息包括所述 UE的静态互联网协议 IP地址和子网掩码; 所述路由器根据所述新增路由信息进行路由学习, 获得到达所述 UE的 动态路由, 所述动态路由包括: 目的地址、 所述子网掩码以及下一跳地址, 其中, 所述目的地址为所述 UE的静态 IP地址;  A first aspect of the present invention provides a method for maintaining a fixed IP address of a user equipment, including: when a user equipment UE establishes a PDN connection of a packet data network on a packet data gateway PGW, the router receives a destination that the PGW broadcasts on the SGi interface. The newly added routing information of the UE, where the newly added routing information includes a static internet protocol IP address and a subnet mask of the UE; the router performs routing learning according to the newly added routing information, and obtains the arrival of the UE. Dynamic routing, the dynamic routing includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE;
所述路由器接收网络侧向所述 UE发送的下行数据报文, 根据所述下行 数据报文的目的 IP 地址和所述动态路由将所述下行数据报文发送给所述 PGW。  The router receives the downlink data packet sent by the network side to the UE, and sends the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
在本发明第一方面的第一种可能的实现方式中, 还包括:  In a first possible implementation manner of the first aspect of the present invention, the method further includes:
当所述 UE在所述 PGW上删除所述 PDN连接时, 所述路由器接收所述 When the UE deletes the PDN connection on the PGW, the router receives the
PGW发送的路由删除消息,所述路由删除消息中包括所述 UE的静态 IP地址 和子网掩码; a route deletion message sent by the PGW, where the route deletion message includes a static IP address and a subnet mask of the UE;
所述路由器根据所述路由删除消息删除所述动态路由。  The router deletes the dynamic route according to the route deletion message.
在本发明第一方面的第二种可能的实现方式中, 还包括:  In a second possible implementation manner of the first aspect of the present invention, the method further includes:
所述路由器检测所述 PGW的状态,根据所述 PGW的状态确定所述 PGW 是否故障;  The router detects a status of the PGW, and determines, according to a status of the PGW, whether the PGW is faulty;
当所述路由器确定所述 PGW 故障时, 所述路由器删除本地保存的所述 PGW的所有路由表项, 所述路由表项中包括所述动态路由。 本发明第二方面提供一种保持用户设备 IP地址固定的方法, 包括: 分组数据网关 PGW确定用户设备 UE在所述 PGW上建立分组数据网络 PDN连接; When the router determines that the PGW is faulty, the router deletes all the routing entries of the PGW that are saved locally, and the routing entry includes the dynamic routing. A second aspect of the present invention provides a method for maintaining a fixed IP address of a user equipment, including: the packet data gateway PGW determines that the user equipment UE establishes a packet data network PDN connection on the PGW;
所述 PGW通过 SGi接口向所述 SGi接口对应的区域内的所有路由器广 播发送到达所述 UE的新增路由信息, 其中, 所述新增路由信息包括所述 UE 的静态互联网协议 IP地址和子网掩码, 以供所述 SGi接口对应的区域内的所 有路由器根据所述新增路由信息进行路由学习。  The PGW broadcasts new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, where the newly added routing information includes the static Internet Protocol IP address and the subnet of the UE. The mask is configured to perform routing learning according to the newly added routing information by all routers in the area corresponding to the SGi interface.
在本发明第二方面的第一种可能的实现方式中, 当所述 SGi接口采用开 放式最短路径优先 OSPF协议时, 所述 PGW通过 SGi接口向所述 SGi接口 对应的区域内的所有路由器广播发送到达所述 UE的新增路由信息, 包括: 所述 PGW将所述新增路由信息包含在链路状态广播数据包 LSA中, 通 过所述 SGi接口向所述 SGi接口对应的区域内的所有路由器广播发送所述 LSA。  In a first possible implementation manner of the second aspect of the present invention, when the SGi interface adopts an open shortest path first OSPF protocol, the PGW broadcasts to all routers in the area corresponding to the SGi interface through the SGi interface. And sending the newly added routing information to the UE, where the PGW includes the new routing information in the link state broadcast data packet LSA, and all the areas in the area corresponding to the SGi interface through the SGi interface The router broadcasts the LSA.
在本发明第二方面的第二种可能的实现方式中, 当所述 SGi接口采用路 由信息协议 RIP时, 所述 PGW通过 SGi接口向所述 SGi接口对应的区域内 的所有路由器广播发送到达所述 UE的新增路由信息, 包括:  In a second possible implementation manner of the second aspect of the present invention, when the SGi interface adopts a routing information protocol (RIP), the PGW broadcasts a destination to all routers in the area corresponding to the SGi interface through the SGi interface. The newly added routing information of the UE includes:
所述 PGW将所述新增路由信息包含在响应数据包中, 通过所述 SGi接 口向所述 SGi接口对应的区域内的所有路由器定时发送所述响应数据包。  The PGW includes the newly added routing information in the response data packet, and periodically sends the response data packet to all routers in the area corresponding to the SGi interface by using the SGi interface.
结合本发明第二方面以及第二方面的第一种和第二种可能的实现方式, 在本发明第二方面的第三种可能的实现方式中, 还包括:  With reference to the second aspect of the present invention and the first and second possible implementation manners of the second aspect, in a third possible implementation manner of the second aspect of the present invention, the method further includes:
当所述 UE在所述 PGW上删除所述 PDN连接时,所述 PGW向所述 SGi 接口对应的区域内的所有路由器发送路由删除消息, 以使所述 SGi接口对应 的区域内的所有路由器根据所述路由删除消息删除所述动态路由, 所述路由 删除消息中包括所述 UE的静态 IP地址和子网掩码。  When the UE deletes the PDN connection on the PGW, the PGW sends a route deletion message to all routers in the area corresponding to the SGi interface, so that all routers in the area corresponding to the SGi interface are based on The route deletion message deletes the dynamic route, and the route deletion message includes a static IP address and a subnet mask of the UE.
本发明第三方面提供一种路由器, 包括:  A third aspect of the present invention provides a router, including:
接收模块,用于当用户设备 UE在分组数据网关 PGW上建立分组数据网 络 PDN连接时, 接收所述 PGW在 SGi接口广播发送的到达所述 UE的新增 路由信息, 其中, 所述新增路由信息包括所述 UE的静态互联网协议 IP地址 和子网掩码;  a receiving module, configured to receive, when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, the newly added routing information that is sent by the PGW to the SGi interface and is sent to the UE, where the new route is The information includes a static internet protocol IP address and a subnet mask of the UE;
路由学习模块, 用于根据所述接收模块接收的所述新增路由信息进行路 由学习, 获得到达所述 UE的动态路由, 所述动态路由包括: 目的地址、 所 述子网掩码以及下一跳地址,其中,所述目的地址为所述 UE的静态 IP地址; 所述接收模块还用于接收网络侧向所述 UE发送的下行数据报文; 发送模块, 用于在所述接收模块接收到网络侧向所述 UE发送的下行数 据报文时, 根据所述下行数据报文的目的 IP地址和所述动态路由将所述下行 数据报文发送给所述 PGW。 a route learning module, configured to perform, according to the newly added routing information received by the receiving module Learning, obtaining a dynamic route to the UE, the dynamic route includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE; The receiving module is further configured to receive a downlink data packet sent by the network side to the UE, where the sending module is configured to: when the receiving module receives the downlink data packet sent by the network side to the UE, according to the downlink data The destination IP address of the packet and the dynamic route send the downlink data packet to the PGW.
在本发明第三方面的第一种可能的实现方式中, 所述路由器还包括: 路 由删除模块;  In a first possible implementation manner of the third aspect, the router further includes: a route deletion module;
所述接收模块还用于:当所述 UE在所述 PGW上删除所述 PDN连接时, 接收所述 PGW发送的路由删除消息,所述路由删除消息中包括所述 UE的静 态 IP地址和子网掩码;  The receiving module is further configured to: when the UE deletes the PDN connection on the PGW, receive a route deletion message sent by the PGW, where the route deletion message includes a static IP address and a subnet of the UE Mask
所述路由删除模块, 用于根据所述接收模块接收的所述路由删除消息删 除所述动态路由。  The route deletion module is configured to delete the dynamic route according to the route deletion message received by the receiving module.
在本发明第三方面的第二种可能的实现方式中, 所述路由器还包括: 故障检测模块, 用于检测所述 PGW的状态, 根据所述 PGW的状态确定 所述 PGW是否故障;  In a second possible implementation manner of the third aspect of the present invention, the router further includes: a fault detection module, configured to detect a status of the PGW, and determine, according to a status of the PGW, whether the PGW is faulty;
所述路由删除模块还用于: 当所述故障检测模块确定所述 PGW故障时, 删除本地保存的所述 PGW 的所有路由表项, 所述路由表项中包括所述动态 路由。  The route deletion module is further configured to: when the fault detection module determines that the PGW is faulty, delete all the routing entries of the locally saved PGW, where the routing entry includes the dynamic routing.
本发明第四方面提供一种分组数据网关 PGW, 包括:  A fourth aspect of the present invention provides a packet data gateway PGW, including:
确定模块,用于确定用户设备 UE在所述 PGW上建立分组数据网络 PDN 连接;  a determining module, configured to determine that the user equipment UE establishes a packet data network PDN connection on the PGW;
发送模块, 用于通过 SGi接口向所述 SGi接口对应的区域内的所有路由 器广播发送到达所述 UE的新增路由信息, 其中, 所述新增路由信息包括所 述 UE的静态互联网协议 IP地址和子网掩码, 以供所述 SGi接口对应的区域 内的所有路由器根据所述新增路由信息进行路由学习。  a sending module, configured to broadcast, by using an SGi interface, all the routers in the area corresponding to the SGi interface to send new routing information to the UE, where the newly added routing information includes a static Internet Protocol IP address of the UE And a subnet mask, so that all routers in the area corresponding to the SGi interface perform route learning according to the newly added routing information.
在本发明第四方面的第一种可能的实现方式中, 所述路由器当所述 SGi 接口采用开放式最短路径优先 OSPF协议时, 所述发送模块具体用于:  In a first possible implementation manner of the fourth aspect of the present invention, when the SGi interface adopts an open shortest path first OSPF protocol, the sending module is specifically configured to:
将所述新增路由信息包含在链路状态广播数据包 LSA中, 通过所述 SGi 接口向所述 SGi接口对应的区域内的所有路由器广播发送所述 LSA。 在本发明第四方面的第二种可能的实现方式中, 当所述 SGi接口采用路 由信息协议 RIP时, 所述发送模块具体用于: The new routing information is included in the link state broadcast data packet LSA, and the LSA is broadcasted to all routers in the area corresponding to the SGi interface by using the SGi interface. In a second possible implementation manner of the fourth aspect of the present invention, when the SGi interface adopts a routing information protocol (RIP), the sending module is specifically configured to:
将所述新增路由信息包含在响应数据包中,通过所述 SGi接口向所述 SGi 接口对应的区域内的所有路由器定时发送所述响应数据包。  And the new routing information is included in the response data packet, and the response data packet is periodically sent to all routers in the area corresponding to the SGi interface by using the SGi interface.
结合本发明第四方面以及第四方面的第一种和第二种可能的实现方式, 在本发明第四方面的第三种可能的实现方式中, 所述发送模块还用于:  With the fourth aspect of the present invention and the first and second possible implementation manners of the fourth aspect, in a third possible implementation manner of the fourth aspect of the present invention, the sending module is further configured to:
当所述 UE在所述 PGW上删除所述 PDN连接时, 向所述 SGi接口对应 的区域内的所有路由器发送路由删除消息, 以使所述 SGi接口对应的区域内 的所有路由器根据所述路由删除消息删除所述动态路由, 所述路由删除消息 中包括所述 UE的静态 IP地址和子网掩码。  When the UE deletes the PDN connection on the PGW, sending a route deletion message to all routers in the area corresponding to the SGi interface, so that all routers in the area corresponding to the SGi interface are according to the route. The deletion message deletes the dynamic route, and the route deletion message includes a static IP address and a subnet mask of the UE.
本发明实施例提供的保持用户设备 IP地址固定的方法和设备, 当 PGW 检测到 UE在 PGW上建立 PDN连接时, PGW将到达该 UE的新增路由信息 广播给 SGi接口对应的区域内的所有路由器, 以使得各路由器根据该新增路 由信息进行路由学习, 获得到达该 UE的动态路由, 该动态路由的目的地址 为该 UE的静态 IP地址, 因此, 当路由器接收到发往该 UE的下行数据报文 时, 根据该动态路由将该下行数据报文转发给该 PGW。 上述方法能够保持 UE的 IP地址不变, 而且不需要人为配置路由, 路由器自己动态的学习路由, 尤其是在多个 PGW组网的场景下, 不需要为 UE配置多条迂回路由, 也不需 要为迂回报文预留带宽, 从而降低了路由配置的复杂度, 以及降低了采用迂 回路由导致的资源浪费的问题。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见 地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。  The method and the device for maintaining the IP address of the user equipment are fixed. When the PGW detects that the UE establishes a PDN connection on the PGW, the PGW broadcasts the newly added routing information of the UE to all the areas in the area corresponding to the SGi interface. a router, so that each router performs routing learning according to the newly added routing information, and obtains a dynamic route to the UE, where the destination address of the dynamic route is a static IP address of the UE, and therefore, when the router receives the downlink addressed to the UE, The data packet is forwarded to the PGW according to the dynamic route. The foregoing method can keep the IP address of the UE unchanged, and does not need to manually configure the route, and the router learns the route dynamically, especially in the scenario of multiple PGW networks, and does not need to configure multiple loops for the UE, and does not need to be configured. The bandwidth is reserved for the return text, thereby reducing the complexity of the routing configuration and reducing the waste of resources caused by the loop. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为现有技术报文转发示意图;  FIG. 1 is a schematic diagram of packet forwarding in the prior art;
图 2为本发明保持用户设备 IP地址固定的方法实施例一的流程图; 图 3为本发明保持用户设备 IP地址固定的方法实施例二的流程图; 图 4为本发明保持用户设备 IP地址固定的方法实施例三的流程图; 图 5为本发明保持用户设备 IP地址固定的方法实施例四的流程图; 图 6为本发明实施例五提供的一种路由器的结构示意图; 2 is a flowchart of Embodiment 1 of a method for maintaining a fixed IP address of a user equipment according to the present invention; FIG. 3 is a flowchart of Embodiment 2 of a method for maintaining a fixed IP address of a user equipment according to the present invention; 4 is a flowchart of Embodiment 3 of a method for maintaining a fixed IP address of a user equipment according to the present invention; FIG. 5 is a flowchart of Embodiment 4 of a method for maintaining a fixed IP address of a user equipment according to the present invention; A schematic diagram of the structure of a router;
图 7为本发明实施例六提供的另一种路由器的结构示意图;  FIG. 7 is a schematic structural diagram of another router according to Embodiment 6 of the present invention;
图 8为本发明实施例七提供的一种 PGW的结构示意图;  8 is a schematic structural diagram of a PGW according to Embodiment 7 of the present invention;
图 9为本发明实施例八提供的另一种路由器的结构示意图;  9 is a schematic structural diagram of another router according to Embodiment 8 of the present invention;
图 10为本发明实施例九提供的另一种 PGW的结构示意图。 具体实施方式  FIG. 10 is a schematic structural diagram of another PGW according to Embodiment 9 of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 2为本发明保持用户设备 IP地址固定的方法实施例一的流程图, 如图 2 is a flowchart of Embodiment 1 of a method for maintaining a fixed IP address of a user equipment according to the present invention, as shown in FIG.
2所示, 本实施例提供的方法包括以下步骤: As shown in FIG. 2, the method provided in this embodiment includes the following steps:
步骤 101、 当 UE在 PGW上建立 PDN连接时, 路由器接收 PGW在 SGi 接口广播发送的到达该 UE的新增路由信息, 其中, 该新增路由信息包括该 UE的静态 IP地址和子网掩码。  Step 101: When the UE establishes a PDN connection on the PGW, the router receives the newly added routing information that the PGW broadcasts on the SGi interface and arrives at the UE, where the newly added routing information includes the static IP address and the subnet mask of the UE.
当 UE在 PGW上建立分组数据网络 (Packet Data Network, 简称 PDN) 连接时, PGW通过 SGi接口向该 SGi接口对应的区域内的所有路由器广播发 送到达该 UE的新增路由信息, 以供该 SGi接口对应的区域内的所有路由器 根据该新增路由信息进行路由学习, 其中, 该新增路由信息包含该 UE的静 态 IP地址和子网掩码, 各路由器根据该新增路由信息能够学习到一条到达该 UE的动态路由, 该 UE的静态 IP地址即为该动态路由的目的地址。  When the UE establishes a Packet Data Network (PDN) connection on the PGW, the PGW broadcasts and sends new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, for the SGi. All the routers in the area corresponding to the interface perform route learning according to the newly added routing information, where the newly added routing information includes the static IP address and the subnet mask of the UE, and each router can learn one arrival according to the newly added routing information. The dynamic routing of the UE, the static IP address of the UE is the destination address of the dynamic routing.
步骤 102、路由器根据该新增路由信息进行路由学习, 获得到达该 UE的 动态路由, 该动态路由包括: 目的地址、 该子网掩码以及下一跳地址, 该目 的地址为该 UE的静态 IP地址。  Step 102: The router performs routing learning according to the newly added routing information, and obtains a dynamic route to the UE. The dynamic route includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP of the UE. address.
路由器在接收到 PGW广播发送的新增路由信息后, 根据该新增路由信 息采用路由算法进行路由学习, 当路由器使用不同的路由协议时, 路由算法 也会有不同, 例如路由器使用开放式最短路径优先 (Open Shortest Path First, 简称 OSPF) 协议时, OSPF协议采用 Dijkstra路由算法进行路由学习, 路由 学习为现有技术, 故这里不做过多的描述。 After receiving the new routing information sent by the PGW broadcast, the router uses the routing algorithm to learn the routing according to the newly added routing information. When the router uses different routing protocols, the routing algorithm There are also differences. For example, when the router uses the Open Shortest Path First (OSPF) protocol, the OSPF protocol uses the Dijkstra routing algorithm for routing learning. Route learning is a prior art, so there is no description here. .
路由器通过路由学习获得到达 UE的动态路由, 该动态路由包括: 目的 地址、 子网掩码、 下一跳地址, 其中, 该动态路由为到达该 UE的一条最短 路径, 该动态路由的目的地址为该 UE的静态 IP地址, 路由器在接收到目的 地址为该 UE的静态 IP地址的下行数据报文后, 根据该动态路由将该下行数 据报文发送给该 PGW, 该 PGW通过 LTE网络发送给该 UE。  The router obtains the dynamic route to the UE through the route learning. The dynamic route includes: a destination address, a subnet mask, and a next hop address, where the dynamic route is a shortest path to the UE, and the destination address of the dynamic route is The static IP address of the UE, after receiving the downlink data packet whose destination address is the static IP address of the UE, the router sends the downlink data packet to the PGW according to the dynamic route, and the PGW sends the downlink data packet to the PGW through the LTE network. UE.
步骤 103、路由器接收网络侧向 UE发送的下行数据报文, 根据该下行数 据报文的目的 IP地址和该动态路由将该下行数据报文发送给该 PGW。  Step 103: The router receives the downlink data packet sent by the network side to the UE, and sends the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
首先简单介绍一下路由器的转发机制, 当数据包转发到路由器后, 路 由器先从报头中取出该数据包的目的地址, 如果目的地址所属的目的网段 在本路由器内, 路由器直接将该数据包送到与该目的网段对应的端口上 去;如果该数据包的目的地址不在本路由器内就要根据路径表计算出发往该 目的地址的最佳路径, 将该数据包转到发送给该最短路径的下一跳的路由设 备。  First, a brief introduction to the forwarding mechanism of the router. When the data packet is forwarded to the router, the router first takes the destination address of the data packet from the header. If the destination network segment to which the destination address belongs is in the router, the router directly sends the data packet. Go to the port corresponding to the destination network segment; if the destination address of the data packet is not in the router, calculate the best path to the destination address according to the path table, and forward the data packet to the shortest path. The next hop routing device.
本实施例中, 路由器学习到到达该 UE的动态路由之后, 当路由器接收 到发往该 UE 的下行数据报文时, 确定该下行数据报文的目的地址为该 UE 的静态 IP地址时, 路由器根据该下行数据报文的目的地址查找路由信息表, 路由信息表中维护有多条路由表项, 路由器通过查找路由信息表找到该动态 路由, 根据该动态路由获知该下行数据报文的下一跳网元为该 PGW, 路由器 根据该动态路由的下一跳地址, 将该下行数据报文转发出去, 最终将该下行 数据报文转发到该 PGW,该 PGW接收到该路由器发送的该下行数据报文后, 将该下行数据报文经 LTE网络发送给该 UE。  In this embodiment, after the router learns the dynamic route to the UE, when the router receives the downlink data packet addressed to the UE, and determines that the destination address of the downlink data packet is the static IP address of the UE, the router The routing information table is searched according to the destination address of the downlink data packet, and the routing information table maintains multiple routing entries. The router finds the dynamic routing by searching the routing information table, and learns the next downlink data packet according to the dynamic routing. The hop network element is the PGW, and the router forwards the downlink data packet according to the next hop address of the dynamic route, and finally forwards the downlink data packet to the PGW, and the PGW receives the downlink data sent by the router. After the message, the downlink data packet is sent to the UE via the LTE network.
本实施例提供的方法, 当 PGW检测到 UE在 PGW上建立 PDN连接时, The method provided in this embodiment, when the PGW detects that the UE establishes a PDN connection on the PGW,
PGW将到达该 UE的新增路由信息广播给 SGi接口对应的区域内的所有路由 器, 以使得各路由器根据该新增路由信息进行路由学习, 获得到达该 UE 的 动态路由, 该动态路由的目的地址为该 UE的静态 IP地址, 因此, 当路由器 接收到发往该 UE 的下行数据报文时, 根据该动态路由将该下行数据报文转 发给该 PGW。上述方法能够保持 UE的 IP地址不变,而且不需要人为配置路 由, 路由器自己动态的学习路由, 尤其是在多个 PGW 组网的场景下, 不需 要为 UE配置多条迂回路由, 也不需要为迂回报文预留带宽, 从而降低了路 由配置的复杂度, 以及降低了采用迂回路由导致的资源浪费的问题。 The PGW broadcasts the new routing information of the UE to all the routers in the area corresponding to the SGi interface, so that each router performs routing learning according to the newly added routing information, and obtains a dynamic route to the UE, and the destination address of the dynamic routing. It is the static IP address of the UE. Therefore, when the router receives the downlink data packet addressed to the UE, the router forwards the downlink data packet to the PGW according to the dynamic route. The above method can keep the IP address of the UE unchanged, and does not need to manually configure the way. The router dynamically learns the route, especially in the scenario of multiple PGW networks. It does not need to configure multiple loops for the UE, and does not need to reserve bandwidth for the report, thus reducing the complexity of the route configuration. , and the problem of wasted resources caused by the use of loops.
图 3为本发明保持用户设备 IP地址固定的方法实施例二的流程图, 如图 3所示, 本实施例提供的方法, 包括以下步骤:  FIG. 3 is a flowchart of Embodiment 2 of a method for maintaining a fixed IP address of a user equipment according to the present invention. As shown in FIG. 3, the method provided in this embodiment includes the following steps:
步骤 201、 PGW确定 UE在 PGW上建立 PDN连接。  Step 201: The PGW determines that the UE establishes a PDN connection on the PGW.
步骤 202、 PGW通过 SGi接口向该 SGi接口对应的区域内的所有路由器 广播发送到达该 UE的新增路由信息,其中,该新增路由信息包括该 UE的静 态 IP地址和子网掩码, 以供该 SGi接口对应的区域内的所有路由器根据该新 增路由信息进行路由学习。  Step 202: The PGW broadcasts and sends new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, where the newly added routing information includes a static IP address and a subnet mask of the UE. All routers in the area corresponding to the SGi interface perform route learning according to the newly added routing information.
当 SGi接口采用不同的路由协议时, 由于协议的不同 PGW广播发送新 增路由信息的方式也会有所不同。如果 SGi接口采用 OSPF协议,则 PGW通 过 SGi接口向该 SGi接口对应的区域内的所有路由器广播发送到达该 UE的 新增路由信息, 具体为: PGW将该新增路由信息包含在链路状态广播数据包 LSA中, 通过该 SGi接口向该 SGi接口对应的区域内的所有路由器广播发送 该 LSA。 如果 SGi接口采用路由信息协议 RIP, 则 PGW通过 SGi接口向该 SGi接口对应的区域内的所有路由器广播发送到达该 UE的新增路由信息,具 体为: PGW将该新增路由信息包含在响应(response)数据包中, 通过该 SGi 接口向该 SGi接口对应的区域内的所有路由器定时发送该响应数据包。  When the SGi interface uses different routing protocols, the way in which the PGW broadcasts new routing information will vary depending on the protocol. If the SGi interface adopts the OSPF protocol, the PGW broadcasts the new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, specifically: The PGW includes the newly added routing information in the link state broadcast. In the data packet LSA, the LSA is broadcasted to all routers in the area corresponding to the SGi interface through the SGi interface. If the SGi interface uses the routing information protocol RIP, the PGW broadcasts the new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, specifically: the PGW includes the new routing information in the response. In the data packet, the response packet is periodically sent to all routers in the area corresponding to the SGi interface through the SGi interface.
以 OSPF协议为例, PGW 向 SGi接口对应的区域内的所有路由器发送 Taking OSPF as an example, the PGW sends all routers in the area corresponding to the SGi interface.
LSA, 该 LSA中包含新增路由信息, 路由器在接收到该 LSA后, 根据该新增 路由信息进行路由学习, 获得到达该 UE的一条动态路由, 该动态路由为到 达该 UE的最短路由, 该动态路由包括: 目的地址、 子网掩码以及下一跳地 址, 其中, 目的地址为该 UE的静态 IP地址, 之后, 当路由器接收到 UE的 下行数据报文时, 根据该动态路由将 UE的下行数据报文发送给该 PGW, 该 PGW通过 LTE网络将该下行数据报文发送给该 UE。 The LSA includes the newly added routing information. After receiving the LSA, the router learns the route according to the newly added routing information, and obtains a dynamic route to the UE. The dynamic route is the shortest path to the UE. The dynamic route includes: a destination address, a subnet mask, and a next hop address, where the destination address is a static IP address of the UE, and then, when the router receives the downlink data packet of the UE, the UE is configured according to the dynamic route. The downlink data packet is sent to the PGW, and the PGW sends the downlink data packet to the UE through the LTE network.
本实施例提供的方法, 当 UE在 PGW上建立 PDN连接时, PGW将到达 该 UE的新增路由信息广播给 SGi接口对应的区域内的所有路由器, 以使得 各路由器根据该新增路由信息进行路由学习, 计算到达该 UE的最短路由, 该最短路由的目的地址为该 UE的静态 IP地址, 因此, 当路由器接收到发往 该 UE的下行数据报文时,根据该最短路由将该下行数据报文转发给该 PGW。 上述方法能够保持 UE的 IP地址不变, 而且不需要人为配置路由, 路由器自 己动态的学习路由, 尤其是在多个 PGW组网的场景下, 不需要为 UE配置多 条迂回路由, 也不需要为迂回报文预留带宽, 从而降低了路由配置的复杂度, 以及降低了采用迂回路由导致的资源浪费的问题。 In the method provided by the embodiment, when the UE establishes a PDN connection on the PGW, the PGW broadcasts the newly added routing information of the UE to all the routers in the area corresponding to the SGi interface, so that each router performs the routing information according to the newly added routing information. Route learning, calculating the shortest path to the UE, the destination address of the shortest path is the static IP address of the UE, and therefore, when the router receives the destination When the downlink data packet of the UE is received, the downlink data packet is forwarded to the PGW according to the shortest path. The foregoing method can keep the IP address of the UE unchanged, and does not need to manually configure the route, and the router learns the route dynamically, especially in the scenario of multiple PGW networks, and does not need to configure multiple loops for the UE, and does not need to be configured. The bandwidth is reserved for the return text, thereby reducing the complexity of the routing configuration and reducing the waste of resources caused by the loop.
图 4为本发明保持用户设备 IP地址固定的方法实施例三的流程图, 如图 4所示, 本实施例提供的方法包括以下步骤:  4 is a flowchart of Embodiment 3 of a method for maintaining a fixed IP address of a user equipment according to the present invention. As shown in FIG. 4, the method provided in this embodiment includes the following steps:
步骤 301、 当 UE在 PGW上建立 PDN连接时, PGW通过 SGi接口向该 SGi接口对应的区域内的所有路由器广播发送到达该 UE的新增路由信息,其 中, 该新增路由信息包括该 UE的静态 IP地址和子网掩码。  Step 301: When the UE establishes a PDN connection on the PGW, the PGW broadcasts and sends new routing information to the UE in the area corresponding to the SGi interface through the SGi interface, where the newly added routing information includes the UE. Static IP address and subnet mask.
步骤 302、 路由器接收 PGW发送的新增路由信息。  Step 302: The router receives the newly added routing information sent by the PGW.
步骤 303、路由器根据该新增路由信息进行路由学习, 获得到达 UE的一 条动态路由。  Step 303: The router performs route learning according to the newly added routing information, and obtains a dynamic route to the UE.
路由器通过路由学习和计算得到的到该 UE的一条动态路由, 该动态路 由为达到给 UE的最短路由, 该动态路由包括: 目的地址、 子网掩码、 下一 跳, 其中, 该动态路由的目的地址为该 UE的静态 IP地址。  The router learns and calculates a dynamic route to the UE, and the dynamic route is the shortest path to the UE. The dynamic route includes: a destination address, a subnet mask, and a next hop, where the dynamic route is The destination address is the static IP address of the UE.
步骤 304、路由器接收网络侧向 UE发送的下行数据报文, 根据该下行数 据报文的目的 IP地址和该动态路由将该下行数据报文发送给 PGW。  Step 304: The router receives the downlink data packet sent by the network side to the UE, and sends the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
步骤 305、 当 UE在 PGW上删除 PDN连接时, PGW通过 SGi接口向该 SGi接口对应的区域内的所有路由器广播发送路由删除消息, 该路由删除消 息中包括 UE的静态 IP地址和子网掩码。  Step 305: When the UE deletes the PDN connection on the PGW, the PGW broadcasts a route deletion message to all routers in the area corresponding to the SGi interface through the SGi interface, where the route deletion message includes the static IP address and the subnet mask of the UE.
当 UE在 PGW上删除 PDN连接时, PGW通过发布该 UE的路由删除消 息, 以使各路由器根据该路由删除消息, 删除自身保存的到达该 UE的所有 路由表项。  When the UE deletes the PDN connection on the PGW, the PGW deletes the message by issuing the route of the UE, so that each router deletes the message according to the route, and deletes all the routing entries that are saved to the UE.
306、 路由器接收 PGW发送的路由删除消息, 并根据该路由删除消息删 除该动态路由。  306. The router receives the route deletion message sent by the PGW, and deletes the dynamic route according to the route deletion message.
路由器接收到 PGW发送的路由删除消息后, 根据该路由删除消息进行 路由学习, 将该动态路由删除。  After receiving the route deletion message sent by the PGW, the router deletes the message according to the route and learns the route, and deletes the dynamic route.
在实际的应用中, PGW可能故障,本发明实施例四将针对 PGW故障时, 如何为 UE选择新的路由为例进行详细说明。 图 5为本发明保持用户设备 IP 地址固定的方法实施例四的流程图, 本实施例中以两个 PGW为例, 且 PGW 采用 OSPF协议, 如果 PGW1故障, UE重新在 PGW2上建立 PDN连接, 如 图 5所示, 本实施例提供的方法包括以下步骤: In a practical application, the PGW may be faulty. The fourth embodiment of the present invention will be described in detail as an example of how to select a new route for the UE when the PGW is faulty. FIG. 5 is a diagram of maintaining user equipment IP according to the present invention The flowchart of the fourth embodiment of the method is fixed. In this embodiment, two PGWs are used as an example, and the PGW adopts an OSPF protocol. If the PGW1 is faulty, the UE re-establishes a PDN connection on the PGW2. As shown in FIG. The methods provided include the following steps:
步骤 401、 PGW1按照预设的时间间隔向路由器发送 hello报文, 以使路 由器根据 hello报文检测 PGW1的状态。  Step 401: The PGW1 sends a hello packet to the router according to the preset time interval, so that the router detects the state of the PGW1 according to the hello packet.
步骤 402、 路由器根据 hello报文检测 PGW1的状态。  Step 402: The router detects the state of the PGW1 according to the hello packet.
具体地, 如果路由器在预设的时间间隔内未能连续收到 PGW1发送的指 定个数的 hello报文, 则确定 PGW1故障。  Specifically, if the router fails to continuously receive the specified number of hello messages sent by the PGW1 within the preset time interval, it determines that the PGW1 is faulty.
步骤 403、 当路由器确定 PGW1故障时, 路由器删除本地保存的 PGW1 的所有路由。  Step 403: When the router determines that the PGW1 is faulty, the router deletes all routes of the locally saved PGW1.
PGW1故障后, UE重新选择 PGW2附着建立 PDN连接, 则由 PGW2将 链路状态信息发送给路由器将到达该 UE的路由信息发送给路由器, 该路由 信息中包括该 UE的静态 IP地址和子网掩码, 以使路由器根据 PGW2的链路 状态信息该路由信息学习到达 UE的路由,路由器学习到达 UE的该路由的下 一跳地址为 PGW2的 IP地址, 则路由器在接收到 UE的下行数据报文后, 根 据 UE的路由将 UE的下行数据报文发送给 PGW2。  After the PGW1 is faulty, the UE reselects the PGW2 attachment to establish a PDN connection, and the PGW2 sends the link state information to the router to send the routing information to the router, where the routing information includes the static IP address and the subnet mask of the UE. In order to enable the router to learn the route to the UE according to the routing information of the PGW2, the router learns that the next hop address of the route to the UE is the IP address of the PGW2, and the router receives the downlink data packet of the UE. Sending the downlink data packet of the UE to PGW2 according to the route of the UE.
本实施例中, PGW1在故障恢复后,会重新与路由器建立邻居关系, PGW1 将所有本地到 UE的路由信息通知给路由器, 路由器学习到 PGW1上的所有 UE的路由信息, 并计算到每个 UE的路由的下一跳地址。 当采用 OSPF协议 时, PGW1通过 LSA广播所有本地到 UE的路由信息, 当采用 RIP协议时, PGW1会定时通过 Response包泛洪通知邻居自己的所有路由信息。  In this embodiment, after the fault is recovered, the PGW1 re-establishes a neighbor relationship with the router, and the PGW1 notifies the router of all local-to-UE routing information, and the router learns the routing information of all UEs on the PGW1, and calculates each UE. The next hop address of the route. When OSPF is used, PGW1 broadcasts all local-to-UE routing information through the LSA. When RIP is used, PGW1 periodically floods the response packets to notify neighbors of all routing information.
需要说明的是, 实施例四中以网络系统采用 OSPF协议为例进行了说明, PGW通过 hello报文维持邻居关系, 路由器是通过 hello报文检测相邻 PGW 是否故障的。当网络系统采用 RIP协议时, PGW通过响应报文维持邻居状态, PGW每隔 30秒泛洪广播一次响应报文,该响应报文中包含 PGW的所有的路 由信息, 如果路由器在 180秒内没有收到响应报文, 路由器就认为邻居故障 了。  It should be noted that, in the fourth embodiment, the network system adopts the OSPF protocol as an example. The PGW maintains the neighbor relationship through the hello packet, and the router detects whether the neighboring PGW is faulty through the hello packet. When the network system adopts the RIP protocol, the PGW maintains the neighbor status by responding to the message. The PGW floods and broadcasts a response message every 30 seconds. The response message contains all the routing information of the PGW. If the router does not have 180 seconds. When the response packet is received, the router considers that the neighbor is faulty.
图 6为本发明实施例五提供的一种路由器的结构示意图, 如图 6所示, 本实施例提供的路由器包括: 接收模块 51、路由学习模块 52和发送模块 53。  FIG. 6 is a schematic structural diagram of a router according to Embodiment 5 of the present invention. As shown in FIG. 6, the router provided in this embodiment includes: a receiving module 51, a routing learning module 52, and a sending module 53.
其中, 接收模块 51, 用于当用户设备 UE在分组数据网关 PGW上建立 分组数据网络 PDN连接时, 接收所述 PGW在 SGi接口广播发送的到达所述 UE的新增路由信息, 其中, 所述新增路由信息包括所述 UE的静态互联网协 议 IP地址和子网掩码; The receiving module 51 is configured to establish, when the user equipment UE is on the packet data gateway PGW, Receiving, when the packet data network PDN is connected, receiving the newly added routing information that is sent by the PGW to the UE and being sent by the SGi interface, where the newly added routing information includes a static Internet Protocol IP address and a subnet mask of the UE;
路由学习模块 52, 用于根据所述接收模块 51接收的所述新增路由信息 进行路由学习, 获得到达所述 UE的动态路由, 所述动态路由包括: 目的地 址、 所述子网掩码以及下一跳地址, 其中, 所述目的地址为所述 UE的静态 IP地址;  The routing learning module 52 is configured to perform routing learning according to the newly added routing information received by the receiving module 51, and obtain a dynamic route to the UE, where the dynamic routing includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE;
所述接收模块 51还用于接收网络侧向所述 UE发送的下行数据报文; 发送模块 53,用于在所述接收模块 51接收到网络侧向所述 UE发送的下 行数据报文时, 根据所述下行数据报文的目的 IP地址和所述动态路由将所述 下行数据报文发送给所述 PGW。  The receiving module 51 is further configured to receive a downlink data packet sent by the network side to the UE, where the sending module 53 is configured to: when the receiving module 51 receives the downlink data packet sent by the network side to the UE, Sending the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
本实施例提供的路由器, 可用于执行方法实施例一的技术方案, 具体实 现方式和技术效果类似, 这里不再赘述。  The router provided in this embodiment can be used to implement the technical solution in the first embodiment of the method. The specific implementation manner and technical effects are similar, and details are not described herein again.
图 7为本发明实施例六提供的另一种路由器的结构示意图,如图 7所示, 本实施例提供的路由器包括: 接收模块 61、路由学习模块 62和发送模块 63。  FIG. 7 is a schematic structural diagram of another router according to Embodiment 6 of the present invention. As shown in FIG. 7, the router provided in this embodiment includes: a receiving module 61, a route learning module 62, and a sending module 63.
接收模块 61, 用于当用户设备 UE在分组数据网关 PGW上建立分组数 据网络 PDN连接时, 接收所述 PGW在 SGi接口广播发送的到达所述 UE的 新增路由信息, 其中, 所述新增路由信息包括所述 UE的静态互联网协议 IP 地址和子网掩码;  The receiving module 61 is configured to: when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, receive new routing information that is sent by the PGW to the SGi interface and is sent to the UE, where the adding The routing information includes a static internet protocol IP address and a subnet mask of the UE;
路由学习模块 62, 用于根据所述接收模块 61接收的所述新增路由信息 进行路由学习, 获得到达所述 UE的动态路由, 所述动态路由包括: 目的地 址、 所述子网掩码以及下一跳地址, 其中, 所述目的地址为所述 UE的静态 IP地址;  The routing learning module 62 is configured to perform routing learning according to the newly added routing information received by the receiving module 61, and obtain a dynamic route to the UE, where the dynamic routing includes: a destination address, the subnet mask, and a next hop address, where the destination address is a static IP address of the UE;
所述接收模块 61还用于接收网络侧向所述 UE发送的下行数据报文; 发送模块 63,用于在所述接收模块 61接收到网络侧向所述 UE发送的下 行数据报文时, 根据所述下行数据报文的目的 IP地址和所述动态路由将所述 下行数据报文发送给所述 PGW。  The receiving module 61 is further configured to receive a downlink data packet sent by the network side to the UE, where the sending module 63 is configured to: when the receiving module 61 receives the downlink data packet sent by the network side to the UE, Sending the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
本实施的路由器还可以包括路由删除模块 64, 所述接收模块 61还用于: 当所述 UE在所述 PGW上删除所述 PDN连接时, 接收所述 PGW发送的路 由删除消息, 所述路由删除消息中包括所述 UE的静态 IP地址和子网掩码; 所述路由删除模块 64, 用于根据所述接收模块 61接收的所述路由删除消息 删除所述动态路由。 The router of the present implementation may further include a route deletion module 64, where the receiving module 61 is further configured to: when the UE deletes the PDN connection on the PGW, receive a route deletion message sent by the PGW, and the route The deletion message includes a static IP address and a subnet mask of the UE; The route deletion module 64 is configured to delete the dynamic route according to the route deletion message received by the receiving module 61.
进一步地, 本实施的路由器还包括: 故障检测模块 65, 故障检测模块 65 用于检测所述 PGW的状态,根据所述 PGW的状态确定所述 PGW是否故障; 所述路由删除模块 64还用于: 当所述故障检测模块 65确定所述 PGW故障 时, 删除本地保存的所述 PGW 的路由信息表中的所有路由表项, 所述路由 表项中包括所述动态路由。  Further, the router of the present implementation further includes: a fault detection module 65, configured to detect a state of the PGW, and determine whether the PGW is faulty according to a state of the PGW; the route deletion module 64 is further used to When the fault detection module 65 determines that the PGW is faulty, all the routing entries in the routing information table of the PGW that are saved locally are deleted, and the routing entry includes the dynamic routing.
本实施例提供的路由器可用于执行方法实施例一、 实施例三和实施例四 的技术方案, 具体实现方式和技术效果类似, 这里不再赘述。  The router provided in this embodiment may be used to implement the technical solutions in the first embodiment, the third embodiment, and the fourth embodiment. The specific implementation manners and technical effects are similar, and details are not described herein again.
图 8为本发明实施例七提供的一种 PGW的结构示意图, 如图 8所示, 本实施例提供的 PGW包括: 确定模块 71和发送模块 72。  FIG. 8 is a schematic structural diagram of a PGW according to Embodiment 7 of the present invention. As shown in FIG. 8, the PGW provided in this embodiment includes: a determining module 71 and a sending module 72.
其中, 确定模块 71, 用于确定用户设备 UE在所述 PGW上建立分组数 据网络 PDN连接;  The determining module 71 is configured to determine that the user equipment UE establishes a packet data network PDN connection on the PGW.
发送模块 72, 用于通过 SGi接口向所述 SGi接口对应的区域内的所有路 由器广播发送到达所述 UE的新增路由信息, 其中, 所述新增路由信息包括 所述 UE的静态互联网协议 IP地址和子网掩码, 以供所述 SGi接口对应的区 域内的所有路由器根据所述新增路由信息进行路由学习。  The sending module 72 is configured to broadcast, by using the SGi interface, the newly added routing information that is sent to the UE to all the routers in the area corresponding to the SGi interface, where the newly added routing information includes the static internet protocol IP of the UE. The address and the subnet mask are used by all the routers in the area corresponding to the SGi interface to perform route learning according to the newly added routing information.
当所述 SGi接口采用开放式最短路径优先 OSPF协议时, 所述发送模块 72具体用于:将所述新增路由信息包含在链路状态广播数据包 LSA中,通过 所述 SGi接口向所述 SGi接口对应的区域内的所有路由器广播发送所述 LSA。  When the SGi interface adopts the open shortest path first OSPF protocol, the sending module 72 is specifically configured to: include the newly added routing information in a link state broadcast data packet LSA, and use the SGi interface to All routers in the area corresponding to the SGi interface broadcast the LSA.
当所述 SGi接口采用路由信息协议 RIP时, 所述发送模块 72具体用于: 将所述新增路由信息包含在响应数据包中, 通过所述 SGi接口向所述 SGi接 口对应的区域内的所有路由器定时发送所述响应数据包。  When the SGi interface uses the routing information protocol RIP, the sending module 72 is specifically configured to: include the newly added routing information in the response data packet, and use the SGi interface to correspond to the area corresponding to the SGi interface. All routers periodically send the response packet.
进一步地, 所述发送模块 72还用于: 当所述 UE在所述 PGW上删除所 述 PDN连接时,向所述 SGi接口对应的区域内的所有路由器发送路由删除消 息, 以使所述 SGi接口对应的区域内的所有路由器根据所述路由删除消息删 除所述动态路由, 所述路由删除消息中包括所述 UE的静态 IP地址和子网掩 码。  Further, the sending module 72 is further configured to: when the UE deletes the PDN connection on the PGW, send a route deletion message to all routers in the area corresponding to the SGi interface, so that the SGi All the routers in the area corresponding to the interface delete the dynamic route according to the route deletion message, where the route deletion message includes a static IP address and a subnet mask of the UE.
本实施例提供的 PGW, 可用于执行方法实施例二提供的技术方案, 具体 实现方式和技术效果类似, 这里不再赘述。 图 9为本发明实施例八提供的另一种路由器的结构示意图,如图 9所示, 本实施例提供的路由器 800包括: 处理器 81、 接收器 83和发送器 84, 其中, 接收器 83和发送器 84通过总线和处理器 81相连。 本实施例提供的路由器 800还可以包括: 存储器 82, 其中, 存储器 82存储执行指令, 当路由器 800 运行时, 处理器 81与存储器 82之间通信, 处理器 81执行执行指令使得路由 器 800执行本发明提供的保持用户设备 IP地址固定的方法。 The PGW provided in this embodiment may be used to implement the technical solution provided in the second embodiment of the method, and the specific implementation manner and technical effects are similar, and details are not described herein again. FIG. 9 is a schematic structural diagram of another router according to Embodiment 8 of the present invention. As shown in FIG. 9, the router 800 provided in this embodiment includes: a processor 81, a receiver 83, and a transmitter 84, wherein the receiver 83 The transmitter 84 is coupled to the processor 81 via a bus. The router 800 provided in this embodiment may further include: a memory 82, wherein the memory 82 stores execution instructions, when the router 800 is running, the processor 81 communicates with the memory 82, and the processor 81 executes execution instructions to cause the router 800 to execute the present invention. A method of keeping the IP address of the user equipment fixed.
其中, 接收器 83, 用于当用户设备 UE在分组数据网关 PGW上建立分 组数据网络 PDN连接时, 接收所述 PGW在 SGi接口广播发送的到达所述 UE的新增路由信息, 其中, 所述新增路由信息包括所述 UE的静态互联网协 议 IP地址和子网掩码;  The receiver 83 is configured to: when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, receive new routing information that is sent by the PGW to the SGi interface and is sent to the UE, where The newly added routing information includes a static internet protocol IP address and a subnet mask of the UE;
处理器 81, 用于根据所述新增路由信息进行路由学习, 获得到达所述 UE的动态路由, 所述动态路由包括: 目的地址、所述子网掩码以及下一跳地 址, 其中, 所述目的地址为所述 UE的静态 IP地址;  The processor 81 is configured to perform route learning according to the newly added routing information, to obtain a dynamic route to the UE, where the dynamic route includes: a destination address, the subnet mask, and a next hop address, where The destination address is a static IP address of the UE;
接收器 83还用于接收网络侧向所述 UE发送的下行数据报文;  The receiver 83 is further configured to receive a downlink data packet sent by the network side to the UE.
发送器 84,用于根据所述下行数据报文的目的 IP地址和所述动态路由将 所述下行数据报文发送给所述 PGW。  The transmitter 84 is configured to send the downlink data packet to the PGW according to the destination IP address of the downlink data packet and the dynamic route.
当所述 UE在所述 PGW上删除所述 PDN连接时,接收器 83还用于接收 所述 PGW发送的路由删除消息,所述路由删除消息中包括所述 UE的静态 IP 地址和子网掩码; 相应的, 处理器 81根据所述路由删除消息删除所述动态路 由。  When the UE deletes the PDN connection on the PGW, the receiver 83 is further configured to receive a route deletion message sent by the PGW, where the route deletion message includes a static IP address and a subnet mask of the UE. Correspondingly, the processor 81 deletes the dynamic route according to the route deletion message.
本实施例中, 处理器 81还用于检测所述 PGW的状态, 根据所述 PGW 的状态确定所述 PGW是否故障; 当处理器 81确定所述 PGW故障时, 删除 本地保存的所述 PGW 的路由信息表中的所有路由表项, 所述路由表项中包 括所述动态路由。  In this embodiment, the processor 81 is further configured to detect a status of the PGW, determine whether the PGW is faulty according to a status of the PGW, and delete the locally saved PGW when the processor 81 determines that the PGW is faulty. All routing entries in the routing information table, where the routing entries include the dynamic routing.
本实施例提供的路由器可用于执行方法实施例一、 实施例三和实施例四 的技术方案, 具体实现方式和技术效果类似, 这里不再赘述。  The router provided in this embodiment may be used to implement the technical solutions in the first embodiment, the third embodiment, and the fourth embodiment. The specific implementation manners and technical effects are similar, and details are not described herein again.
图 10为本发明实施例九提供的另一种 PGW的结构示意图, 如图 10所 示, 本实施例提供的 PGW900包括: 处理器 91、 发送器 93, 其中, 发送器 93通过总线和处理器 91相连。 本实施例提供的 PGW900还可以包括: 存储 器 92, 其中, 存储器 92存储执行指令, 当 PGW900运行时, 处理器 91与存 储器 92之间通信, 处理器 91执行执行指令使得 PGW900执行本发明提供的 保持用户设备 IP地址固定的方法。 FIG. 10 is a schematic structural diagram of another PGW according to Embodiment 9 of the present invention. As shown in FIG. 10, the PGW 900 provided in this embodiment includes: a processor 91 and a transmitter 93, wherein the transmitter 93 passes through a bus and a processor. 91 connected. The PGW 900 provided in this embodiment may further include: a memory 92, wherein the memory 92 stores an execution instruction, and when the PGW 900 is running, the processor 91 and the storage The memory 92 communicates with each other, and the processor 91 executes the execution instructions such that the PGW 900 performs the method of keeping the user equipment IP address fixed by the present invention.
其中, 处理器 91, 用于确定用户设备 UE在所述 PGW上建立分组数据 网络 PDN连接;  The processor 91 is configured to determine that the user equipment UE establishes a packet data network PDN connection on the PGW.
发送器 93, 用于通过 SGi接口向所述 SGi接口对应的区域内的所有路由 器广播发送到达所述 UE 的新增路由信息, 其中, 所述新增路由信息包括所 述 UE的静态互联网协议 IP地址和子网掩码, 以供所述 SGi接口对应的区域 内的所有路由器根据所述新增路由信息进行路由学习。  The transmitter 93 is configured to broadcast, by using the SGi interface, the newly added routing information that is sent to the UE to all the routers in the area corresponding to the SGi interface, where the newly added routing information includes the static internet protocol IP of the UE. The address and the subnet mask are used by all the routers in the area corresponding to the SGi interface to perform route learning according to the newly added routing information.
当所述 SGi接口采用开放式最短路径优先 OSPF协议时,发送器 93具体 用于:将所述新增路由信息包含在链路状态广播数据包 LSA中,通过所述 SGi 接口向所述 SGi接口对应的区域内的所有路由器广播发送所述 LSA。  When the SGi interface adopts the open shortest path first OSPF protocol, the transmitter 93 is specifically configured to: include the newly added routing information in the link state broadcast data packet LSA, and connect the SGi interface to the SGi interface by using the SGi interface. All routers in the corresponding area broadcast the LSA.
当所述 SGi接口采用路由信息协议 RIP时, 发送器 93具体用于:将所述 新增路由信息包含在响应数据包中, 通过所述 SGi接口向所述 SGi接口对应 的区域内的所有路由器定时发送所述响应数据包。  When the SGi interface adopts the routing information protocol RIP, the transmitter 93 is specifically configured to: include the newly added routing information in the response data packet, and use the SGi interface to all routers in the area corresponding to the SGi interface. The response packet is sent periodically.
本实施例中, 当所述 UE在所述 PGW上删除所述 PDN连接时, 发送器 In this embodiment, when the UE deletes the PDN connection on the PGW, the transmitter
93向所述 SGi接口对应的区域内的所有路由器发送路由删除消息, 以使所述 SGi接口对应的区域内的所有路由器根据所述路由删除消息删除所述动态路 由, 所述路由删除消息中包括所述 UE的静态 IP地址和子网掩码。 And sending a route deletion message to all routers in the area corresponding to the SGi interface, so that all routers in the area corresponding to the SGi interface delete the dynamic route according to the route deletion message, where the route deletion message is included. The static IP address and subnet mask of the UE.
本实施例提供的 PGW, 可用于执行方法实施例二提供的技术方案, 具体 实现方式和技术效果类似, 这里不再赘述。  The PGW provided in this embodiment may be used to implement the technical solution provided by the method embodiment 2. The specific implementation manner and technical effects are similar, and details are not described herein again.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另 外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系 统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦 合或通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of cells is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated. Go to another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本实施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. You can choose which one according to your actual needs. Some or all of the units implement the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬 件加软件功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a hardware plus software functional unit.
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算 机可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若 干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络 设备等) 或处理器 (processor) 执行本发明各个实施例所述方法的部分步 骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (Read-Only Memory, ROM ) 、 随机存耳又存储器 ( Random Access Memory, RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介质。  The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the method of various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. medium.
本领域技术人员可以清楚地了解到, 为描述的方便和简洁, 仅以上述 各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能模块完成, 即将装置的内部结构划分成不同的功能模 块, 以完成以上描述的全部或者部分功能。 上述描述的装置的具体工作过 程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of each functional module described above is exemplified. In practical applications, the above function assignment can be completed by different functional modules as needed, that is, the device is installed. The internal structure is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非 对其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的 普通技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进 行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或 者替换, 并不使相应技术方案的本质脱离本发明各实施例技术方案的范 围。  It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要 求 书 claims
1、 一种保持用户设备 IP地址固定的方法, 其特征在于, 包括: 当用户设备 UE在分组数据网关 PGW上建立分组数据网络 PDN连接时, 路由器接收所述 PGW在 SGi接口广播发送的到达所述 UE的新增路由信息, 其中,所述新增路由信息包括所述 UE的静态互联网协议 IP地址和子网掩码; 所述路由器根据所述新增路由信息进行路由学习, 获得到达所述 UE 的 动态路由, 所述动态路由包括: 目的地址、 所述子网掩码以及下一跳地址, 其中, 所述目的地址为所述 UE的静态 IP地址; 1. A method for keeping the IP address of user equipment fixed, characterized by comprising: when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, the router receives the IP address broadcast by the PGW on the SGi interface and reaches the destination. The new routing information of the UE, wherein the new routing information includes the static Internet Protocol IP address and subnet mask of the UE; the router performs route learning based on the new routing information to obtain the route to the UE Dynamic routing, the dynamic routing includes: a destination address, the subnet mask and a next hop address, where the destination address is the static IP address of the UE;
所述路由器接收网络侧向所述 UE发送的下行数据报文, 根据所述下行 数据报文的目的 IP 地址和所述动态路由将所述下行数据报文发送给所述 PGW。 The router receives the downlink data message sent by the network side to the UE, and sends the downlink data message to the PGW according to the destination IP address of the downlink data message and the dynamic route.
2、 根据权利要求 1所述的方法, 其特征在于, 还包括: 2. The method according to claim 1, further comprising:
当所述 UE在所述 PGW上删除所述 PDN连接时, 所述路由器接收所述 PGW发送的路由删除消息,所述路由删除消息中包括所述 UE的静态 IP地址 和子网掩码; When the UE deletes the PDN connection on the PGW, the router receives the route deletion message sent by the PGW, and the route deletion message includes the static IP address and subnet mask of the UE;
所述路由器根据所述路由删除消息删除所述动态路由。 The router deletes the dynamic route according to the route deletion message.
3、 根据权利要求 2所述的方法, 其特征在于, 还包括: 3. The method according to claim 2, further comprising:
所述路由器检测所述 PGW的状态,根据所述 PGW的状态确定所述 PGW 是否故障; The router detects the status of the PGW and determines whether the PGW is faulty based on the status of the PGW;
当所述路由器确定所述 PGW 故障时, 所述路由器删除本地保存的所述 When the router determines that the PGW is faulty, the router deletes the locally saved
PGW的所有路由表项, 所述路由表项中包括所述动态路由。 All routing table entries of the PGW, and the routing table entries include the dynamic route.
4、 一种保持用户设备 IP地址固定的方法, 其特征在于, 包括: 分组数据网关 PGW确定用户设备 UE在所述 PGW上建立分组数据网络 4. A method for keeping the IP address of user equipment fixed, characterized by including: the packet data gateway PGW determines that the user equipment UE establishes a packet data network on the PGW
PDN连接; PDN connection;
所述 PGW通过 SGi接口向所述 SGi接口对应的区域内的所有路由器广 播发送到达所述 UE的新增路由信息, 其中, 所述新增路由信息包括所述 UE 的静态互联网协议 IP地址和子网掩码, 以供所述 SGi接口对应的区域内的所 有路由器根据所述新增路由信息进行路由学习。 The PGW broadcasts and sends new routing information to the UE through the SGi interface to all routers in the area corresponding to the SGi interface, where the new routing information includes the static Internet Protocol IP address and subnet of the UE. Mask is used for all routers in the area corresponding to the SGi interface to perform route learning based on the newly added routing information.
5、 根据权要求 4所述的方法, 其特征在于, 当所述 SGi接口采用开放式 最短路径优先 OSPF协议时, 所述 PGW通过 SGi接口向所述 SGi接口对应 的区域内的所有路由器广播发送到达所述 UE的新增路由信息, 包括: 所述 PGW将所述新增路由信息包含在链路状态广播数据包 LSA中, 通 过所述 SGi接口向所述 SGi接口对应的区域内的所有路由器广播发送所述 LSA。 5. The method according to claim 4, characterized in that when the SGi interface adopts the open shortest path first OSPF protocol, the PGW corresponds to the SGi interface through the SGi interface All routers in the area broadcast and send the new routing information to the UE, including: the PGW includes the new routing information in the link state broadcast packet LSA, and sends the new routing information to the SGi through the SGi interface. All routers in the area corresponding to the interface broadcast and send the LSA.
6、 根据权要求 4所述的方法, 其特征在于, 当所述 SGi接口采用路由信 息协议 RIP时, 所述 PGW通过 SGi接口向所述 SGi接口对应的区域内的所 有路由器广播发送到达所述 UE的新增路由信息, 包括: 6. The method according to claim 4, characterized in that when the SGi interface adopts the routing information protocol RIP, the PGW broadcasts the message to all routers in the area corresponding to the SGi interface through the SGi interface. New routing information of UE, including:
所述 PGW将所述新增路由信息包含在响应数据包中, 通过所述 SGi接 口向所述 SGi接口对应的区域内的所有路由器定时发送所述响应数据包。 The PGW includes the new routing information in a response data packet, and regularly sends the response data packet to all routers in the area corresponding to the SGi interface through the SGi interface.
7、 根据权利要求 4-6中任一项所述的方法, 其特征在于, 还包括: 当所述 UE在所述 PGW上删除所述 PDN连接时,所述 PGW向所述 SGi 接口对应的区域内的所有路由器发送路由删除消息, 以使所述 SGi接口对应 的区域内的所有路由器根据所述路由删除消息删除所述动态路由, 所述路由 删除消息中包括所述 UE的静态 IP地址和子网掩码。 7. The method according to any one of claims 4 to 6, characterized in that, further comprising: when the UE deletes the PDN connection on the PGW, the PGW sends a message corresponding to the SGi interface to All routers in the area send a route deletion message, so that all routers in the area corresponding to the SGi interface delete the dynamic route according to the route deletion message. The route deletion message includes the static IP address and subnet of the UE. netmask.
8、 一种路由器, 其特征在于, 包括: 8. A router, characterized by including:
接收模块,用于当用户设备 UE在分组数据网关 PGW上建立分组数据网 络 PDN连接时, 接收所述 PGW在 SGi接口广播发送的到达所述 UE的新增 路由信息, 其中, 所述新增路由信息包括所述 UE的静态互联网协议 IP地址 和子网掩码; A receiving module configured to, when the user equipment UE establishes a packet data network PDN connection on the packet data gateway PGW, receive the new routing information that is broadcast by the PGW on the SGi interface and reaches the UE, wherein, the new route The information includes the static Internet Protocol IP address and subnet mask of the UE;
路由学习模块, 用于根据所述接收模块接收的所述新增路由信息进行路 由学习, 获得到达所述 UE的动态路由, 所述动态路由包括: 目的地址、 所 述子网掩码以及下一跳地址,其中,所述目的地址为所述 UE的静态 IP地址; 所述接收模块还用于接收网络侧向所述 UE发送的下行数据报文; 发送模块, 用于在所述接收模块接收到网络侧向所述 UE发送的下行数 据报文时, 根据所述下行数据报文的目的 IP地址和所述动态路由将所述下行 数据报文发送给所述 PGW。 A route learning module, configured to perform route learning based on the new routing information received by the receiving module, and obtain a dynamic route to the UE, where the dynamic route includes: a destination address, the subnet mask and the next Hop address, wherein the destination address is the static IP address of the UE; The receiving module is also used to receive the downlink data message sent by the network side to the UE; The sending module is used to receive at the receiving module When the network side sends the downlink data message to the UE, the downlink data message is sent to the PGW according to the destination IP address of the downlink data message and the dynamic route.
9、 根据权利要求 8所述的路由器, 其特征在于, 还包括路由删除模块; 所述接收模块还用于:当所述 UE在所述 PGW上删除所述 PDN连接时, 接收所述 PGW发送的路由删除消息,所述路由删除消息中包括所述 UE的静 态 IP地址和子网掩码; 所述路由删除模块, 用于根据所述接收模块接收的所述路由删除消息删 除所述动态路由。 9. The router according to claim 8, further comprising a route deletion module; the receiving module is further configured to: when the UE deletes the PDN connection on the PGW, receive the PGW sent The route deletion message includes the static IP address and subnet mask of the UE; The route deletion module is configured to delete the dynamic route according to the route deletion message received by the receiving module.
10、 根据权利要求 9所述的路由器, 其特征在于, 还包括: 10. The router according to claim 9, further comprising:
故障检测模块, 用于检测所述 PGW的状态, 根据所述 PGW的状态确定 所述 PGW是否故障; A fault detection module, used to detect the status of the PGW, and determine whether the PGW is faulty according to the status of the PGW;
所述路由删除模块还用于: 当所述故障检测模块确定所述 PGW故障时, 删除本地保存的所述 PGW 的所有路由表项, 所述路由表项中包括所述动态 路由。 The route deletion module is also configured to: when the fault detection module determines that the PGW is faulty, delete all locally saved routing table entries of the PGW, and the routing table entries include the dynamic route.
11、 一种分组数据网关 PGW, 其特征在于, 包括: 11. A packet data gateway PGW, which is characterized by including:
确定模块,用于确定用户设备 UE在所述 PGW上建立分组数据网络 PDN 连接; Determining module, used to determine that the user equipment UE establishes a packet data network PDN connection on the PGW;
发送模块, 用于通过 SGi接口向所述 SGi接口对应的区域内的所有路由 器广播发送到达所述 UE 的新增路由信息, 其中, 所述新增路由信息包括所 述 UE的静态互联网协议 IP地址和子网掩码, 以供所述 SGi接口对应的区域 内的所有路由器根据所述新增路由信息进行路由学习。 A sending module, configured to broadcast and send the new routing information reaching the UE to all routers in the area corresponding to the SGi interface through the SGi interface, where the new routing information includes the static Internet Protocol IP address of the UE. and a subnet mask, so that all routers in the area corresponding to the SGi interface can perform route learning based on the newly added routing information.
12、 根据权利要求 11所述的 PGW, 其特征在于, 当所述 SGi接口采用 开放式最短路径优先 OSPF协议时, 所述发送模块具体用于: 12. The PGW according to claim 11, characterized in that when the SGi interface adopts the open shortest path first OSPF protocol, the sending module is specifically used to:
将所述新增路由信息包含在链路状态广播数据包 LSA中, 通过所述 SGi 接口向所述 SGi接口对应的区域内的所有路由器广播发送所述 LSA。 The newly added routing information is included in a link state broadcast packet LSA, and the LSA is broadcast and sent to all routers in the area corresponding to the SGi interface through the SGi interface.
13、 根据权利要求 11所述的 PGW, 其特征在于, 当所述 SGi接口采用 路由信息协议 RIP时, 所述发送模块具体用于: 13. The PGW according to claim 11, characterized in that when the SGi interface adopts Routing Information Protocol RIP, the sending module is specifically used to:
将所述新增路由信息包含在响应数据包中,通过所述 SGi接口向所述 SGi 接口对应的区域内的所有路由器定时发送所述响应数据包。 The newly added routing information is included in a response data packet, and the response data packet is regularly sent to all routers in the area corresponding to the SGi interface through the SGi interface.
14、 根据权利要求 11-13中任一项所述的 PGW, 其特征在于, 所述发送 模块还用于: 14. The PGW according to any one of claims 11-13, characterized in that the sending module is also used to:
当所述 UE在所述 PGW上删除所述 PDN连接时, 向所述 SGi接口对应 的区域内的所有路由器发送路由删除消息, 以使所述 SGi接口对应的区域内 的所有路由器根据所述路由删除消息删除所述动态路由, 所述路由删除消息 中包括所述 UE的静态 IP地址和子网掩码。 When the UE deletes the PDN connection on the PGW, it sends a route deletion message to all routers in the area corresponding to the SGi interface, so that all routers in the area corresponding to the SGi interface follow the route The deletion message deletes the dynamic route, and the route deletion message includes the static IP address and subnet mask of the UE.
PCT/CN2013/091086 2013-12-31 2013-12-31 Method and device for keeping ip address of user equipment fixed WO2015100610A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/091086 WO2015100610A1 (en) 2013-12-31 2013-12-31 Method and device for keeping ip address of user equipment fixed
CN201380035298.3A CN104412548B (en) 2013-12-31 2013-12-31 The method and apparatus for keeping user equipment (UE) IP address to fix

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/091086 WO2015100610A1 (en) 2013-12-31 2013-12-31 Method and device for keeping ip address of user equipment fixed

Publications (1)

Publication Number Publication Date
WO2015100610A1 true WO2015100610A1 (en) 2015-07-09

Family

ID=52648748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/091086 WO2015100610A1 (en) 2013-12-31 2013-12-31 Method and device for keeping ip address of user equipment fixed

Country Status (2)

Country Link
CN (1) CN104412548B (en)
WO (1) WO2015100610A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510312A (en) * 2019-01-30 2020-08-07 普天信息技术有限公司 Core network disaster recovery backup service recovery method and core network

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108075973B (en) * 2016-11-11 2020-11-13 大唐移动通信设备有限公司 Equipment communication method and device
CN108712340A (en) * 2018-05-14 2018-10-26 京信通信系统(中国)有限公司 A kind of communication means and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428779A (en) * 2012-05-16 2013-12-04 中兴通讯股份有限公司 Transmission method and system of information of quality of service and fixed network access gateway

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056240A (en) * 2007-05-22 2007-10-17 杭州华三通信技术有限公司 A route maintenance method and device between the MESH points
CN101127714B (en) * 2007-09-06 2010-09-29 杭州华三通信技术有限公司 A route management method and device for wireless mesh network
CN101360075B (en) * 2008-09-12 2011-02-09 华为技术有限公司 Grouped gateway and method for saving power consumption
CN101730074B (en) * 2009-04-28 2013-01-16 中兴通讯股份有限公司 Method for establishing chain connection, service gateway and packet data network gateway
US8576844B1 (en) * 2010-04-16 2013-11-05 Juniper Networks, Inc. Forwarding multicast packets in a VPLS router on the basis of MAC addresses

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428779A (en) * 2012-05-16 2013-12-04 中兴通讯股份有限公司 Transmission method and system of information of quality of service and fixed network access gateway

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111510312A (en) * 2019-01-30 2020-08-07 普天信息技术有限公司 Core network disaster recovery backup service recovery method and core network

Also Published As

Publication number Publication date
CN104412548A (en) 2015-03-11
CN104412548B (en) 2017-09-08

Similar Documents

Publication Publication Date Title
US9781032B1 (en) MPLS label usage in ethernet virtual private networks
WO2018054156A1 (en) Vxlan message forwarding method, device and system
US9276898B2 (en) Method and device for link fault detecting and recovering based on ARP interaction
US9509609B2 (en) Forwarding packets and PE devices in VPLS
WO2016101646A1 (en) Access method and apparatus for ethernet virtual network
US9668160B2 (en) Topology discovery based on SCTP/X2 snooping
US9264971B2 (en) VPNv4 route control for LTE X2 son using unique route targets
WO2017020619A1 (en) Routing method and device
CN104205748A (en) Inter-chassis redundancy with coordinated traffic direction
US9641422B2 (en) X2 son for LTE networks through automated X2 address discovery
TW201134151A (en) RSVP-TE graceful restart under fast re-route conditions
US9398515B2 (en) VPNv4 route control for LTE X2 SON using import route maps and outbound route filtering
WO2016086713A1 (en) Equal-cost multi-path outbound interface update method and apparatus
EP3058777B1 (en) Topology discovery based on explicit signaling
US10785701B2 (en) Hybrid control plane entity for fat tree route disaggregation
US20200177402A1 (en) Protocol independent multicast (pim) designated router (dr) election
US20230291682A1 (en) Method and device for processing data packet, storage medium, and electronic device
WO2015100610A1 (en) Method and device for keeping ip address of user equipment fixed
US11784919B2 (en) Method for sending BIERv6 packet and first network device
JP2022120845A5 (en)
WO2018107757A1 (en) Method for controlling network transmission and related apparatus
CN106533879B (en) Method and device for DCN irregular domain intercommunication in PTN equipment
EP4274124A1 (en) Information flooding method and device
WO2022037330A1 (en) Method and device for transmitting virtual private network segment identification (vpn sid), and network device
Garg et al. EXTENSIVE REVIEWS OF OSPF FOR REDUCING THE CONVERGENCE TIME.

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

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

Country of ref document: EP

Kind code of ref document: A1