Method and device for selecting PDN connection for UE service
Technical Field
The invention relates to the technical field of network communication, in particular to a method and a device for selecting PDN connection for UE service.
Background
In modern network communication, a routing method of a terminal device (UE) service is as follows: routed through the access network to the core network and then routed through the core network to the public network. Currently, in order to relieve the network pressure of a core network, a local gateway (L-GW) is configured in an access network, and a Packet Data Network (PDN) connection directly routed to a public network from a home (evolved) base station (home (e) NodeB, HNB) is established through the L-GW. Dividing the UE service into a core network service and a selective IP offload Service (SIPTO) through an Access Point Name (APN), wherein the UE service identified by the APN as the core network service is routed to a public network through PDN connection of the core network service, namely, the UE service is routed to the core network through an access network and then is routed to the public network through the core network; and the UE service identified as the SIPTO service by the APN is directly routed to the public network through the access network through the PDN connection established by the L-GW for routing the SIPTO service. In the routing mode, the PDN connection for routing the SIPTO service directly routes the SIPTO service to the public network by crossing the core network, shares part of UE services routed by the PDN connection of the core network, and relieves the network pressure of the core network.
In the process of implementing the service transmission, the inventor finds that at least the following problems exist in the prior art: once the PDN connection for routing the SIPTO service is established, the SIPTO service can be routed only, and the core network service cannot be routed; and once the PDN connection for routing the core network service is established, only the core network service can be routed, and the SIPTO service cannot be routed, so that when a certain PDN connection is congested, the service corresponding to the PDN connection cannot be routed through the PDN connection, cannot be routed through another relatively idle PDN connection, and cannot reasonably allocate routing resources for the UE service, so that the utilization rate of the PDN connection is low, and the routing grooming requirements of an operator on the UE service cannot be met.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for selecting a PDN connection for a UE service, which can relieve the service pressure of a congested PDN connection, improve the utilization rate of an idle PDN connection, and achieve the purpose of reasonably allocating PDN connection routing resources.
In order to achieve the purpose, the embodiment of the invention adopts the following technical scheme:
a method of selecting a PDN connection for UE traffic, comprising:
acquiring a routing strategy of UE service;
and selecting PDN connection according to the routing strategy.
An apparatus for selecting a PDN connection for a UE service, comprising:
an obtaining unit, configured to obtain a routing policy of a UE service;
and the selection unit is used for selecting PDN connection according to the routing strategy.
An apparatus for routing UE traffic, comprising: means for selecting PDN connections for UE traffic and home (evolved) base station h (e) NB.
According to the method and the device for selecting the PDN connection for the UE service, the PDN connection used for routing the UE service is selected according to the routing strategy, compared with the prior art that the PDN connection for routing the SIPTO service can only route the SIPTO service and the PDN connection for routing the core network service can only route the core network service, the method and the device realize the selection of the UE service for different PDN connections, solve the problem that the UE service corresponding to one PDN connection cannot be routed through another PDN connection which is idle relatively when one PDN connection is congested, relieve the service pressure of the congested PDN connection, improve the utilization rate of the idle PDN connection and achieve the purpose of reasonably distributing PDN connection routing resources.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for selecting a PDN connection for a UE service according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for selecting a PDN connection for a UE service according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for selecting a PDN connection for a UE service according to a third embodiment of the present invention;
fig. 4 is a flowchart of a method for selecting a PDN connection for a UE service in mode 1 according to a fourth embodiment of the present invention;
fig. 5 is a flowchart of a method for selecting a PDN connection for a UE service in manner 2 according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for selecting a PDN connection for a UE service according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for selecting a PDN connection for a UE service according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for selecting a PDN connection for a UE service according to a fifth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus for selecting a PDN connection for a UE service in a fifth embodiment of the present invention.
Detailed Description
In order to solve the problem that when a certain PDN connection is congested, a service corresponding to the PDN connection cannot be routed through another relatively idle PDN connection, embodiments of the present invention provide a method and an apparatus for selecting a PDN connection for a UE service, where a routing policy of the UE service is formulated according to a congestion degree of the PDN connection, and a PDN connection used for routing the UE service is selected according to the routing policy, so that selection of different PDN connections by the UE service is achieved.
The execution subject in the embodiment of the present invention is illustrated by taking a local gateway (L-GW) and an HNB as examples, but the present invention is not limited to this, and other network elements such as a Traffic Offload Function (TOF) or a home evolution base station (HomeEvolvedNodeB) may also be used in the actual application.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Example one
An embodiment of the present invention provides a method for selecting a PDN connection for a UE service, as shown in fig. 1, the method includes the following steps:
101. and the L-GW acquires a routing strategy of the UE service.
102. And after the L-GW acquires the routing strategy of the UE service, selecting PDN connection for the UE service according to the routing strategy.
In this embodiment, the PDN connection of the SIPTO service may be selected to route the UE service or the PDN connection of the core network service to route the UE service.
103. After the L-GW selects PDN connection used by the route for the UE service, the HNB routes the UE service through the PDN connection.
According to the method for selecting the PDN connection for the UE service, the PDN connection used for routing the UE service is selected according to the routing strategy, compared with the prior art that the SIPTO service can only be routed through the PDN connection for routing the SIPTO service and the core network service can only be routed through the PDN connection for routing the core network service, the method realizes the selection of the UE service on different PDN connections, solves the problem that the UE service corresponding to one PDN connection cannot be routed through another PDN connection which is idle relatively when one PDN connection is congested, relieves the service pressure of the congested PDN connection, improves the utilization rate of the idle PDN connection, and achieves the purpose of reasonably distributing PDN connection routing resources.
Example two
The embodiment of the invention provides a method for selecting PDN connection for UE service, and the method for routing the UE service is explained by taking the PDN connection used for acquiring a routing strategy from an external routing strategy network element and selecting the route for the UE service according to the routing strategy as an example. As shown in fig. 2, the method comprises the steps of:
201. the L-GW obtains the routing strategy of the UE service from an external routing strategy network element.
The routing policy network element may be a home base station management system (home (e)) or a Policy and Charging Rules Function (PCRF). When the external routing policy network element is an HMS, the L-GW may communicate with the HMS through, but not limited to, a C1 interface, to obtain a routing policy; when the external routing policy network element is the PCRF, the L-GW may communicate with the PCRF through, but not limited to, the L-Gx interface, to acquire the routing policy.
The routing strategy comprises the following steps: any one of a source IP address, a destination IP address, a subnet address, a source port number, a destination port number, a transport layer protocol type, or a combination of at least two.
202. And after the L-GW acquires the routing policy combination from the external routing policy network element, the UE and the L-GW perform query interaction to acquire a source IP address range used by PDN connection of the SIPTO service and PDN connection of a routing core network.
203. And the L-GW selects PDN connection for UE service according to the routing strategy combination obtained from the HMS or the PCRF.
Selecting PDN connection for UE service according to routing strategy combination, comprising: and judging whether the UE service meets the condition of the routing strategy combination or not under the combination mode of any one or at least two of a source IP address, a destination IP address, a subnet address, a source port number, a target port number and a transport layer protocol type.
When the UE service accords with the condition of the routing strategy combination, selecting PDN connection of IP unloading SIPTO service with selective routing for the UE service, and when the UE service does not accord with the condition of the routing strategy combination, selecting PDN connection of core network service for the UE service; or,
and when the UE service does not accord with the condition of the routing strategy combination, selecting PDN connection for routing the core network service for the UE service, and when the UE service does not accord with the condition of the routing strategy combination, selecting PDN connection for routing the SIPTO service for the UE service.
In this embodiment, a combination of three routing policies, namely, a source IP address, a destination IP address, and a subnet address, is taken as an example for explanation:
the L-GW firstly judges the source IP address of the UE service, and if the source IP address accords with the routing strategy of the source IP address in the L-GW, the L-GW continuously judges the destination IP address of the UE service; and if the source IP address does not accord with the routing strategy of the source IP address in the L-GW, the L-GW takes the UE service as a core network service and carries out routing through PDN connection of the routing core network service.
If the source IP address of the UE service conforms to the routing strategy of the source IP address in the L-GW, the L-GW continues to judge the destination IP address of the UE service. If the destination IP address accords with the routing strategy of the destination IP address in the L-GW, the L-GW continuously judges the subnet address of the UE service; and if the destination IP address does not accord with the routing strategy of the destination IP address in the L-GW, the L-GW takes the UE service as a core network service and carries out routing through PDN connection of the routing core network service.
If the destination IP address of the UE service conforms to the routing strategy of the destination IP address in the L-GW, the L-GW continues to judge the subnet address of the UE service. If the subnet address accords with the routing strategy of the subnet address in the L-GW, the L-GW takes the UE service as the SIPTO service and carries out routing through PDN connection of the routing SIPTO service; and if the destination IP address does not conform to the routing strategy of the subnet address in the L-GW, the L-GW takes the UE service as a core network service and carries out routing through PDN connection of the routing core network service. And the L-GW finishes the process of selecting the PDN connection for the UE service.
The source IP address of the UE service conforms to the routing strategy of the source IP address in the L-GW, which means that the source IP address of the UE service is in a source IP address range specified in the L-GW, and the routing strategy of the source IP address can be changed manually or by a user at any time according to the congestion degree of PDN connection, so that another relatively idle PDN connection is selected for the UE service to route when a certain PDN connection is congested. The above-mentioned routing strategy including destination IP address, subnet address, source port number, destination port number, and transport layer protocol type is judged and the homologous IP address is changed.
204. And after the L-GW selects the PDN connection of the route for the UE service, the HNB routes the UE service according to the selected PDN connection.
The HNB directly routes the UE service using the PDN connection route of the SIPTO service to an external public network through the PDN connection route of the SIPTO service; UE traffic routed using a PDN connection routing core network traffic is first routed to a packet data gateway (PGW) of the core network and then routed by the PGW to an external public network.
The method for selecting the PDN connection for the UE service, provided by the embodiment of the invention, acquires the routing strategy from an external routing strategy network element, combines the PDN connections used for selecting the routing for the UE service according to the routing strategy, and changes the routing strategy according to the congestion degree of the PDN connection so as to change the PDN connection for routing the UE service. Compared with the prior art that the SIPTO service can only be routed through the PDN connection for routing the SIPTO service and the core network service can only be routed through the PDN connection for routing the core network service, the selection of the UE service to different PDN connections is realized, the problem that the UE service corresponding to one PDN connection cannot be routed through the other PDN connection which is relatively idle when one PDN connection is congested is solved, the service pressure of the congested PDN connection is relieved, the utilization rate of the idle PDN connection is improved, and the purpose of reasonably distributing PDN connection routing resources is achieved.
EXAMPLE III
The embodiment of the invention provides a method for selecting PDN connection for UE service, and the method for routing the UE service is explained by taking the example that routing identification information is obtained from a Domain Name System (DNS) and PDN connection is selected for the UE service according to the routing identification information. As shown in fig. 3, the method comprises the steps of:
301. the UE requests the DNS to inquire a destination IP address to be accessed by UE service.
302. The DNS responds to the query request of the UE and returns the destination IP address and the route identification information to the L-GW.
The route identification information identifies the PDN connection used for routing the UE traffic, e.g., the PDN connection for routing SIPTO traffic is represented by SIPTO, and the PDN connection for routing core network traffic is represented by CN (core network).
303. And the L-GW allocates an opposite terminal global IP address for the UE.
304. And after receiving the opposite-end global IP address distributed by the L-GW, the UE sends the opposite-end global IP address and the source IP address of the UE to the L-GW.
305. The L-GW converts the received opposite end global IP address sent by the UE into an external address of the L-GW, and the HNB routes the UE service according to the route identification information acquired from the DNS in the step 302.
If the routing identification information is SIPTO, the HNB directly routes the UE service to an external public network through PDN connection of the SIPTO service; if the route identification information is CN, the HNB routes the UE service to the PGW of the core network through the PDN connection of the route core network service, and then the PGW routes the UE service to the external public network.
The routing identification information can be changed at any time manually or by a user according to the congestion degree of the PDN connection, so that another PDN connection which is relatively idle is selected for UE service to carry out routing when a certain PDN connection is congested.
The method for selecting the PDN connection for the UE service, provided by the embodiment of the invention, comprises the steps of obtaining the route identification information from the DNS, selecting the PDN connection used by the route for the UE service according to the obtained route identification information, and changing the route identification information according to the congestion degree of the PDN connection so as to change the PDN connection for routing the UE service. Compared with the prior art that the SIPTO service can only be routed through the PDN connection for routing the SIPTO service and the core network service can only be routed through the PDN connection for routing the core network service, the selection of the UE service to different PDN connections is realized, the problem that the UE service corresponding to one PDN connection cannot be routed through the other PDN connection which is relatively idle when one PDN connection is congested is solved, the service pressure of the congested PDN connection is relieved, the utilization rate of the idle PDN connection is improved, and the purpose of reasonably distributing PDN connection routing resources is achieved.
Example four
The embodiment of the invention provides a method for selecting PDN connection for UE service, and the method for routing the UE service is explained by taking the example of acquiring routing identification information from UE and selecting PDN connection for the UE service according to the routing identification information. The routing identifier information in the embodiment of the present invention is provided to the UE by an Access Network Discovery and Support Function (ANDSF), or provided to the UE by an operator. As shown in fig. 4 and 5, the method comprises the steps of:
the first method is as follows:
as shown in fig. 4, the method for selecting PDN connection for UE service provided by this embodiment includes the following steps:
401. and the UE sends the UE service to the L-GW and simultaneously sends the route identification information of the UE service to the L-GW.
The route identification information identifies the PDN connection used to route the UE traffic, e.g., the PDN connection that routes SIPTO traffic is represented by SIPTO, and the PDN connection that routes core network traffic is represented by CN.
The routing identification information in the UE comes from an operator, and the operator can change the routing identification information at any time according to the congestion degree of the PDN connection so as to select another relatively idle PDN connection for the UE service to route when a certain PDN connection is congested.
402. And the HNB selects PDN connection used by the route for the UE service according to the route identification information of the UE in the L-GW.
If the routing identification information is SIPTO, the HNB directly routes the UE service to an external public network through PDN connection of the SIPTO service; if the route identification information is CN, the HNB routes the UE service to the PGW of the core network through the PDN connection of the route core network service, and then the PGW routes the UE service to the external public network.
The second method comprises the following steps:
as shown in fig. 5, the method for selecting PDN connection for UE service provided by this embodiment includes the following steps:
501. and the UE acquires the route identification information from the ANDSF.
The route identification information is changed at any time by an operator or a user according to the congestion degree of the PDN connection, so that another PDN connection which is relatively idle is selected for UE service to carry out routing when a certain PDN connection is congested.
502. And after acquiring the route identification information from the ANDSF, the UE sends the UE service to the L-GW, and simultaneously sends the route identification information acquired from the ANDSF to the L-GW.
The route identification information identifies the PDN connection used to route the UE traffic, e.g., the PDN connection that routes SIPTO traffic is represented by SIPTO, and the PDN connection that routes core network traffic is represented by CN.
503. And the HNB selects PDN connection used by the route for the UE service according to the route identification information of the UE in the L-GW.
If the routing identification information is SIPTO, the HNB directly routes the UE service to an external public network through PDN connection of the SIPTO service; if the route identification information is CN, the HNB routes the UE service to the PGW of the core network through the PDN connection of the route core network service, and then the PGW routes the UE service to the external public network.
The method for selecting the PDN connection for the UE service, provided by the embodiment of the invention, acquires the routing identification information from the UE, wherein the routing identification information is from an operator or ANDSF, selects the PDN connection used by the routing for the UE service according to the acquired routing identification information, and changes the routing identification information according to the congestion degree of the PDN connection so as to change the PDN connection for routing the UE service. Compared with the prior art that the SIPTO service can only be routed through the PDN connection for routing the SIPTO service and the core network service can only be routed through the PDN connection for routing the core network service, the selection of the UE service to different PDN connections is realized, the problem that the UE service corresponding to one PDN connection cannot be routed through the other PDN connection which is relatively idle when one PDN connection is congested is solved, the service pressure of the congested PDN connection is relieved, the utilization rate of the idle PDN connection is improved, and the purpose of reasonably distributing PDN connection routing resources is achieved.
EXAMPLE five
The present embodiment provides an apparatus for selecting a PDN connection for a UE service, as shown in fig. 6, including: an acquisition unit 61 and a selection unit 62.
An obtaining unit 61, configured to obtain a routing policy of the UE service.
And a selecting unit 62, configured to select a PDN connection according to the obtained routing policy.
As shown in fig. 7, in the apparatus for selecting a PDN connection for a UE service according to this embodiment, the obtaining unit 61 further includes a first obtaining subunit 71, and the selecting unit 62 further includes a determining subunit 72, a first selecting subunit 73, or a second selecting subunit 74.
The first obtaining subunit 71 is configured to obtain a routing policy of the UE service from an external routing policy network element.
The external routing strategy network element comprises an HMS and a PCRF. When the routing policy network element is an HMS, the first obtaining subunit 71 may, but is not limited to, obtain the routing policy from the HMS through the C1 interface; when the routing policy network element is a PCRF, the first obtaining subunit 71 may, but is not limited to, obtain the routing policy from the PCRF through the L-Gx interface.
The routing policy includes: any one of a source IP address, a destination IP address, a subnet address, a source port number, a destination port number, a transport layer protocol type, or a combination of at least two.
And a determining subunit 72, configured to determine, according to the routing policy combination acquired by the first acquiring subunit 71, whether the UE service conforms to the routing policy.
When the judgment result of the judgment subunit 72 is that the UE service meets the condition of the routing policy combination, the first selection subunit 73 selects a PDN connection of the routing SIPTO service for the UE service, and when the judgment result is that the UE service does not meet the condition of the routing policy combination, the first selection subunit 73 selects a PDN connection of the routing core network service for the UE service; or,
when the judgment result of the judgment subunit 72 is that the UE service meets the condition of the routing policy combination, the second selection subunit 74 selects the PDN connection for the UE service, and when the judgment result is that the UE service does not meet the condition of the routing policy combination, the second selection subunit 74 selects the PDN connection for the UE service, which routes the SIPTO service.
As shown in fig. 8, in the apparatus for selecting a PDN connection for a UE service according to this embodiment, the obtaining unit 61 further includes a second obtaining sub-unit 81, and the selecting unit 62 further includes a third selecting sub-unit 82. Wherein,
the second obtaining subunit 81 is configured to obtain, from the DNS, route identification information that identifies a PDN connection used for routing UE traffic, for example, a PDN connection for routing SIPTO traffic is represented by SIPTO, and a PDN connection for routing core network traffic is represented by CN.
The second selecting subunit 82 is configured to select a PDN connection used by a route for the UE service according to the route identification information acquired by the second acquiring subunit 81.
If the routing identification information is SIPTO, the third selecting subunit 82 selects a PDN connection for routing the SIPTO service for the UE service, and if the routing identification information is CN, the third selecting subunit 82 selects a PDN connection for routing the core network service for the UE service.
As shown in fig. 9, in the apparatus for selecting a PDN connection for a UE service according to this embodiment, the obtaining unit 61 further includes a third obtaining sub-unit 91, and the selecting unit 62 further includes a fourth selecting sub-unit 92. Wherein,
the third obtaining subunit 91 is configured to obtain, from the UE, routing identification information, where the routing identification information is used to identify a PDN connection used for routing the UE traffic, for example, SIPTO represents a PDN connection for routing the SIPTO traffic, and CN represents a PDN connection for routing the core network traffic.
The route identification information acquired by the third acquiring subunit 91 from the UE is provided to the UE by the ANDSF or provided to the UE by the operator.
The fourth selecting subunit 92 is configured to select a PDN connection used by a route for the UE service according to the route identification information acquired by the third acquiring subunit 91.
If the routing identification information is SIPTO, the fourth selecting subunit 92 selects a PDN connection for routing the SIPTO service for the UE service, and if the routing identification information is CN, the fourth selecting subunit 92 selects a PDN connection for routing the core network service for the UE service.
The device for selecting PDN connection for UE service in the embodiment of the invention and HNB together form a device for routing the UE service, and the task of routing the UE service is completed.
By using the device for selecting the PDN connection for the UE service provided in this embodiment, the PDN connection used for routing the UE service can be selected according to the routing policy or the routing identifier information, and compared with the prior art in which only the SIPTO service is routed through the PDN connection for routing the SIPTO service and only the core network service is routed through the PDN connection for routing the core network service, the selection of different PDN connections by the UE service is implemented. The problem that when a certain PDN connection is congested, the UE service corresponding to the PDN connection cannot be routed through another PDN connection which is relatively idle is solved, so that the service pressure of the congested PDN connection is relieved, the utilization rate of the idle PDN connection is improved, and the purpose of reasonably distributing PDN connection routing resources is achieved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part of the technical solutions contributing to the prior art may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.