CN106856511B - Method, gateway, PCRF network element and system for dynamically assigning IP address pool - Google Patents

Method, gateway, PCRF network element and system for dynamically assigning IP address pool Download PDF

Info

Publication number
CN106856511B
CN106856511B CN201510893912.0A CN201510893912A CN106856511B CN 106856511 B CN106856511 B CN 106856511B CN 201510893912 A CN201510893912 A CN 201510893912A CN 106856511 B CN106856511 B CN 106856511B
Authority
CN
China
Prior art keywords
user
gateway
address pool
address
network element
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201510893912.0A
Other languages
Chinese (zh)
Other versions
CN106856511A (en
Inventor
朱红绿
姚良
李一明
邵震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201510893912.0A priority Critical patent/CN106856511B/en
Publication of CN106856511A publication Critical patent/CN106856511A/en
Application granted granted Critical
Publication of CN106856511B publication Critical patent/CN106856511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Landscapes

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

Abstract

The invention discloses a method, a gateway, a PCRF network element and a system for dynamically assigning an IP address pool. The method comprises the following steps: when a network attachment request of a user terminal is received, sending an assignment request to a PCRF network element, wherein the assignment request comprises a user identifier and user position information, so that the PCRF network element allocates an IP address pool for the user terminal according to the user identifier and the user position information and returns the allocated IP address pool; and allocating an IP address for the user terminal in an IP address pool allocated by the PCRF network element. The invention carries out dynamic authorization management on the PGW address pool through the PCRF network element, solves the problem that the address pool can only carry out single allocation according to the APN or IMSI number segment, and realizes dynamic address pool allocation to the user based on the strategies such as position and the like.

Description

method, gateway, PCRF network element and system for dynamically assigning IP address pool
Technical Field
the invention relates to the field of mobile communication, in particular to a method, a gateway, a PCRF network element and a system for dynamically assigning an IP address pool.
background
An ordinary user allocates an IP address to the user by a PGW (public data network GateWay) at any position (such as a controlled and unmanaged area) according to an access point (ANP) and International Mobile Subscriber Identity (IMSI) number segment, and a Policy and Charging Rules Function (PCRF) network element does not participate in the allocation of the IP address, so that the network cannot perform address pool allocation according to the user's trust level, user position, and PGW state.
Disclosure of Invention
In view of the above technical problems, the present invention provides a method, a gateway, a PCRF network element, and a system for dynamically assigning an IP address pool, which solve the problem that a PGW cannot allocate an IP address to a UE based on a user location.
according to an aspect of the present invention, there is provided a method for dynamically assigning an IP address pool, comprising:
when a network attachment request of a user terminal is received, sending an assignment request to a PCRF network element, wherein the assignment request comprises a user identifier and user position information, so that the PCRF network element allocates an IP address pool for the user terminal according to the user identifier and the user position information and returns the allocated IP address pool;
And allocating an IP address for the user terminal in an IP address pool allocated by the PCRF network element.
in an embodiment of the present invention, after sending the assignment request to the PCRF network element, the method further includes:
Judging whether an IP address pool issued by a PCRF network element is received within a preset time;
if the IP address pool issued by the PCRF network element is received within the preset time, executing the step of allocating an IP address for the user terminal in the IP address pool allocated by the PCRF network element;
And if the IP address pool issued by the PCRF network element is not received within the preset time, allocating an IP address to the user terminal according to the access point mode.
according to another aspect of the present invention, there is provided a method for dynamically assigning an IP address pool, comprising:
When an assignment request sent by a gateway is received, acquiring a user identifier and user position information from the assignment request, wherein the assignment request is sent by the gateway when a network attachment request of a user terminal is received;
Allocating an IP address pool for the user terminal according to the user identification and the user position information;
And sending the allocated IP address pool to the gateway so that the gateway allocates the IP address for the user terminal in the allocated IP address pool.
In one embodiment of the present invention, the step of allocating an IP address pool to the user terminal according to the user identifier and the user location information includes:
Inquiring and acquiring user attributes and user grades corresponding to the user identifications according to the user identifications;
And allocating an IP address pool for the user terminal according to the user attribute, the user level, the user position information and the number of addresses in the address pool.
According to another aspect of the present invention, there is provided a method for dynamically assigning an IP address pool, comprising:
Judging whether the first gateway is abnormal or not;
If the first gateway is abnormal, recording the state of the first gateway;
When an assignment request sent by a second gateway is received, acquiring a user identifier and user position information from the assignment request, wherein the first gateway and the second gateway are in the same geographical area, and the assignment request is sent by the second gateway when a user terminal accesses a service through the first gateway and the service is accessed through the second gateway after the first gateway is abnormal;
Allocating an IP address pool to the user terminal according to the user identifier, the user position information and the state of the first gateway, wherein the IP address pool is an address pool corresponding to the first gateway;
And sending the allocated IP address pool to the second gateway so that the second gateway allocates the IP address for the user terminal in the allocated IP address pool.
In one embodiment of the present invention, the step of allocating an IP address pool to the user terminal according to the user identifier, the user location information, and the state of the first gateway includes:
Inquiring and acquiring user attributes and user grades corresponding to the user identifications according to the user identifications;
And allocating an IP address pool for the user terminal according to the user attribute, the user level, the user position information, the address number in the address pool and the state of the first gateway.
according to another aspect of the present invention, there is provided a gateway for dynamically assigning an IP address pool, comprising a request sending unit and an address allocation unit, wherein:
A request sending unit, configured to send an assignment request to a PCRF network element when a network attachment request of a user terminal is received, where the assignment request includes a user identifier and user location information, so that the PCRF network element allocates an IP address pool to the user terminal according to the user identifier and the user location information, and returns the allocated IP address pool;
and the address allocation unit is used for allocating an IP address for the user terminal in the IP address pool allocated by the PCRF network element.
In one embodiment of the invention, the gateway further comprises an identification unit, wherein:
The identification unit is used for judging whether an IP address pool issued by the PCRF network element is received within preset time after the request sending unit sends an assignment request to the PCRF network element;
the address allocation unit is also used for executing the operation of allocating the IP address for the user terminal in the IP address pool allocated by the PCRF network element if the IP address pool issued by the PCRF network element is received within the preset time according to the judgment result of the identification unit; and if the IP address pool issued by the PCRF network element is not received within the preset time, allocating an IP address to the user terminal according to the access point mode.
According to another aspect of the present invention, a PCRF network element for dynamically assigning an IP address pool is provided, which includes an extracting unit, an address pool allocating unit, and a sending unit, wherein:
The device comprises an extraction unit, a service unit and a service unit, wherein the extraction unit is used for acquiring a user identifier and user position information from an assignment request when receiving the assignment request sent by a gateway, and the assignment request is sent by the gateway when receiving a network attachment request of a user terminal;
the address pool allocation unit is used for allocating an IP address pool for the user terminal according to the user identification and the user position information;
And the issuing unit is used for issuing the IP address pool allocated by the address pool allocation unit to the gateway so that the gateway allocates the IP address for the user terminal in the allocated IP address pool.
In an embodiment of the present invention, the address pool allocation unit includes an attribute obtaining module and an address pool allocation module, wherein:
the attribute acquisition module is used for inquiring and acquiring the user attribute and the user grade corresponding to the user identifier according to the user identifier;
And the address pool allocation module is used for allocating the IP address pool for the user terminal according to the user attribute, the user grade, the user position information and the number of the addresses in the address pool.
In an embodiment of the present invention, the PCRF network element further includes a status identification unit and a status recording unit, where:
The state identification unit is used for judging whether the first gateway is abnormal or not;
The state recording unit is used for recording the state of the first gateway if the first gateway is abnormal according to the judgment result of the state identification unit;
the extracting unit is further configured to, when an assignment request sent by a second gateway is received, obtain a user identifier and user location information from the assignment request, where the first gateway and the second gateway are located in the same geographic area, and the assignment request is sent by the second gateway when a user terminal accesses a service through the first gateway and the service is accessed through the second gateway after the first gateway is abnormal;
The address pool allocation unit is also used for allocating an IP address pool to the user terminal according to the user identification, the user position information and the state of the first gateway, wherein the IP address pool is an address pool corresponding to the first gateway;
The issuing unit is further configured to issue the IP address pool allocated by the address pool allocation unit to the second gateway, so that the second gateway allocates an IP address to the user terminal in the allocated IP address pool.
According to another aspect of the present invention, a system for dynamically assigning an IP address pool is provided, where the system includes the gateway described in any of the above embodiments and the PCRF network element described in any of the above embodiments.
the invention carries out dynamic authorization management on the PGW address pool through the PCRF network element, solves the problem that the address pool can only carry out single allocation according to the APN or IMSI number segment, and realizes dynamic address pool allocation to the user based on the strategies such as position and the like.
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 diagram illustrating an embodiment of a method for dynamically assigning IP address pools according to the present invention.
FIG. 2 is a diagram of another embodiment of a method for dynamically assigning IP address pools according to the present invention.
fig. 3 is a diagram illustrating an extended interface message and AVP format according to an embodiment of the present invention.
FIG. 4 is a diagram of another embodiment of a method for dynamically assigning IP address pools according to the present invention.
fig. 5 is a diagram of an embodiment of a gateway for dynamically assigning IP address pools according to the present invention.
fig. 6 is a schematic diagram of an embodiment of a PCRF network element for dynamically assigning an IP address pool in the present invention.
FIG. 7 is a diagram of an address pool allocation unit in an embodiment of the invention.
Fig. 8 is a schematic diagram of another embodiment of a PCRF network element for dynamically assigning an IP address pool in the present invention.
FIG. 9 is a diagram of one embodiment of a system for dynamically assigning IP address pools in accordance with the present invention.
FIG. 10 is a flow chart of allocating address pools based on different locations in an embodiment of the present invention.
Fig. 11 is a flow chart of PGW dynamic compensation expansion according to another embodiment of the present invention.
Detailed Description
the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a diagram illustrating an embodiment of a method for dynamically assigning IP address pools according to the present invention. Preferably, this embodiment may be performed by the GateWay for dynamically assigning the IP address pool according to the present invention, wherein the GateWay may be a PGW or an SGW (Serving GateWay). The method comprises the following steps:
step 101, when receiving a network attachment request of a user terminal, sending an assignment request (CCR request) to a PCRF network element, where the assignment request includes a user identifier and user location information, so that the PCRF network element determines a user attribute and a user class according to the user identifier, and then makes a decision according to the user attribute, the user class, the user location information, the number of addresses in an address pool, and the like, to allocate an applicable IP address pool for the user terminal, and issue the allocated IP address pool to a gateway through a Gx interface.
and 102, receiving an address pool issued by the PCRF network element, and allocating an IP address for the user terminal in the IP address pool allocated by the PCRF network element according to the instruction of the PCRF network element.
based on the method for dynamically assigning the IP address pool provided by the embodiment of the invention, the gateway address pool can be dynamically authorized and managed through the PCRF network element on the premise of not changing the original equipment flow, thereby solving the problem that the existing address pool can only be singly assigned according to the APN or IMSI number segment, and realizing the dynamic address pool assignment to the user based on the strategies such as position and the like.
in an embodiment of the present invention, after step 101 of the embodiment of fig. 1, the method may further include:
1. and judging whether the IP address pool issued by the PCRF network element is received within a preset time.
2. if the IP address pool issued by the PCRF network element is received within the predetermined time, the step of "allocating an IP address for the user terminal in the IP address pool allocated by the PCRF network element according to the instruction of the PCRF network element" in the step 102 is executed.
3. and if the IP address pool issued by the PCRF network element is not received within the preset time, allocating an IP address to the user terminal according to the ANP or IMSI number segment.
the embodiment of the invention considers that when the PCRF network element is abnormal, the IP address can be distributed to the user terminal according to the ANP or IMSI number segment, thereby improving the applicability of the invention and improving the user experience.
FIG. 2 is a diagram of another embodiment of a method for dynamically assigning IP address pools according to the present invention. Preferably, this embodiment can be executed by the PCRF network element for dynamically assigning the IP address pool according to the present invention. The method comprises the following steps:
step 201, when receiving an assignment request sent by a gateway, obtaining a user identifier and user location information from the assignment request, where the assignment request is sent by the gateway when receiving a network attach request of a user terminal.
Step 202, allocating an IP address pool to the user terminal according to the user identifier and the user location information.
In one embodiment of the present invention, step 202 may comprise: inquiring and acquiring user attributes and user grades corresponding to the user identifications according to the user identifications; and making a decision according to the user attribute, the user level, the user position information, the address number in the address pool and other information, and allocating an applicable IP address pool for the user terminal.
And 203, issuing the allocated IP address pool to the gateway through the Gx interface so that the gateway allocates an IP address for the user terminal in the allocated IP address pool.
in an embodiment of the present invention, step 203 includes only adding an Address-Pool field (the added message format and AVP format are as shown in fig. 3) in the initial CCA response message of the Gx interface, so that the PCRF network element dynamically indicates an Address Pool to which the GW should be applied for the user, so that after receiving the Address Pool name in the CCA response message, the GW allocates an IP Address to the current user according to the Address Pool name.
Based on the method for dynamically assigning the IP address pool provided by the above embodiment of the present invention, the PCRF network element dynamically manages the address pool of the gateway, and when the user accesses the network at different locations without changing the existing flow, the PCRF network element makes a decision on the IP address pool applicable thereto according to the user attribute, the user location information, and the like, and dynamically issues the address pool information to the gateway by extending the AVP of the Gx interface, thereby solving the problem that the address pool can only perform single assignment according to the APN or IMSI number segment, and achieving dynamic address pool assignment to the user based on policies such as location.
in another embodiment of the present invention, if necessary, the PCRF network element may also multiplex an Address field in an Address-Pool AVP of an initial CCA response message of the Gx interface as shown in fig. 3, and allocate the user IP together. The PCRF network element in the embodiment of the invention can simultaneously realize the simultaneous allocation of the IP address pool and the user IP address, thereby reducing the burden of allocating the IP address of the gateway.
FIG. 4 is a diagram of another embodiment of a method for dynamically assigning IP address pools according to the present invention. Preferably, this embodiment can be executed by the PCRF network element for dynamically assigning the IP address pool according to the present invention. The method comprises the following steps:
Step 401, determine whether the first gateway is abnormal.
Step 402, if the first gateway is abnormal, recording the state of the first gateway.
Step 403, when an assignment request sent by a second gateway is received, obtaining a user identifier and user location information from the assignment request, where the first gateway and the second gateway are in the same geographic area, and the assignment request is sent by the second gateway when a user terminal accesses a service through the first gateway and the service is accessed through the second gateway after the first gateway is abnormal.
And step 404, allocating an IP address pool to the user terminal according to the user identifier, the user position information and the state of the first gateway, wherein the IP address pool is an address pool corresponding to the first gateway.
In one embodiment of the present invention, step 404 may comprise: inquiring and acquiring user attributes and user grades corresponding to the user identifications according to the user identifications; and making a decision according to the user attribute, the user level, the user position information, the address number in the address pool, the state of the first gateway and other information, and allocating an applicable IP address pool for the user terminal.
And 405, sending the allocated IP address pool to the second gateway so that the second gateway allocates the IP address for the user terminal in the allocated IP address pool.
in the embodiment of the invention, by using the dynamic address pool technology based on policy control, when one of the PGWs is in an abnormal state, such as downtime, the PCRF network element can dynamically issue the address pool of the abnormal PGW to the normal PGW for use, so that the dynamic compensation and expansion of the address pool when the gateway devices, such as the PGWs, are in an abnormal state are realized, thereby reducing the manual configuration and expansion and improving the network operation security.
Fig. 5 is a diagram of an embodiment of a gateway for dynamically assigning IP address pools according to the present invention. As shown in fig. 5, the gateway includes a request sending unit 501 and an address allocating unit 502, where:
A request sending unit 501, configured to send an assignment request to a PCRF network element when a network attach request of a user terminal is received, where the assignment request includes a user identifier and user location information, so that the PCRF network element allocates an IP address pool for the user terminal according to the user identifier and the user location information, and returns the allocated IP address pool.
an address allocating unit 502, configured to allocate an IP address for the user terminal in an IP address pool allocated by the PCRF network element.
in one embodiment of the present invention, the gateway may be a PGW or an SGW.
based on the gateway for dynamically assigning the IP address pool provided by the above embodiment of the present invention, on the premise of not changing the original device flow, dynamic authorization management can be performed on the gateway address pool through the PCRF network element, and the gateway allocates the IP address for the user terminal in the IP address pool allocated by the PCRF network element, thereby solving the problem that the existing address pool can only perform single allocation according to the APN or IMSI number segment, and realizing dynamic address pool allocation for the user based on policies such as location.
In an embodiment of the present invention, as shown in fig. 5, the gateway may further include an identifying unit 503, where:
the identifying unit 503 is configured to determine whether the IP address pool delivered by the PCRF network element is received within a predetermined time after the request sending unit 501 sends the assignment request to the PCRF network element.
The address allocating unit 502 is further configured to, according to the determination result of the identifying unit 503, execute an operation of allocating an IP address to the user terminal in the IP address pool allocated by the PCRF network element if the IP address pool issued by the PCRF network element is received within a predetermined time; and if the IP address pool issued by the PCRF network element is not received within the preset time, allocating an IP address to the user terminal according to the access point mode.
The embodiment of the invention considers that when the PCRF network element is abnormal, the IP address can be distributed to the user terminal according to the ANP or IMSI number segment, thereby improving the applicability of the invention and improving the user experience.
Fig. 6 is a schematic diagram of an embodiment of a PCRF network element for dynamically assigning an IP address pool in the present invention. As shown in fig. 6, the PCRF network element includes an extracting unit 601, an address pool allocating unit 602, and a distributing unit 603, where:
An extracting unit 601, configured to, when receiving an assignment request sent by a gateway, obtain a user identifier and user location information from the assignment request, where the assignment request is sent by the gateway when receiving a network attach request of a user terminal.
An address pool allocation unit 602, configured to allocate an IP address pool to the user terminal according to the user identifier and the user location information.
In one embodiment of the invention, as shown in fig. 7, the address pool allocation unit 602 may include an attribute acquisition module 6021 and an address pool allocation module 6022, wherein:
an attribute obtaining module 6021, configured to obtain a user attribute and a user level corresponding to the user identifier according to a user identifier query.
And the address pool allocation module 6022 is configured to allocate an IP address pool to the user terminal according to the user attribute, the user level, the user location information, and the number of addresses in the address pool.
The issuing unit 603 is configured to issue the IP address pool allocated by the address pool allocating unit 602 to the gateway, so that the gateway allocates an IP address to the user terminal in the allocated IP address pool.
Based on the PCRF network element for dynamically assigning the IP address pool provided by the above embodiment of the present invention, the address pool of the gateway is dynamically managed, and when a user accesses the network at different locations, the applicable IP address pool is decided according to the user attribute, the user location information, and the like without changing the existing flow, and dynamic delivery of the address pool information to the gateway is realized by extending the AVP of the Gx interface, so that the problem that the address pool can only be singly allocated according to the APN or IMSI number segment is solved, and dynamic address pool allocation to the user based on policies such as location is realized.
Fig. 8 is a schematic diagram of another embodiment of a PCRF network element for dynamically assigning an IP address pool in the present invention. Compared with the embodiment shown in fig. 6, in the embodiment shown in fig. 8, the PCRF network element further includes a status identifying unit 604 and a status recording unit 605, where:
A state identifying unit 604, configured to determine whether the first gateway is abnormal.
A status recording unit 605, configured to record, according to the determination result of the status identifying unit 604, a status of the first gateway if the first gateway is abnormal.
the extracting unit 601 is further configured to, when receiving an assignment request sent by a second gateway, obtain a user identifier and user location information from the assignment request, where the first gateway and the second gateway are located in the same geographic area, and the assignment request is sent by the second gateway when a user terminal accesses a service through the first gateway and the service is accessed through the second gateway after the first gateway is abnormal.
The address pool allocation unit 602 is further configured to allocate an IP address pool to the user terminal according to the user identifier, the user location information, and the state of the first gateway, where the IP address pool is an address pool corresponding to the first gateway.
In one embodiment of the invention, as shown in fig. 7, the address pool allocation unit 602 may include an attribute acquisition module 6021 and an address pool allocation module 6022, wherein:
an attribute obtaining module 6021, configured to obtain a user attribute and a user level corresponding to the user identifier according to a user identifier query.
and the address pool allocation module 6022 is configured to allocate an IP address pool to the user terminal according to the user attribute, the user level, the user location information, the state of the first gateway, and the number of addresses in the address pool.
The issuing unit 603 is further configured to issue the IP address pool allocated by the address pool allocating unit 602 to the second gateway, so that the second gateway allocates an IP address to the user terminal in the allocated IP address pool.
In an embodiment of the present invention, the first gateway and the second gateway are gateways described in any of the above embodiments.
in an embodiment of the present invention, the first gateway and the second gateway may be PGWs or SGWs.
in the embodiment of the invention, by using the dynamic address pool technology based on policy control, when one of the PGWs is in an abnormal state, such as downtime, the PCRF network element can dynamically issue the address pool of the abnormal PGW to the normal PGW for use, so that the dynamic compensation and expansion of the address pool when the gateway devices, such as the PGWs, are in an abnormal state are realized, thereby reducing the manual configuration and expansion and improving the network operation security.
FIG. 9 is a diagram of one embodiment of a system for dynamically assigning IP address pools in accordance with the present invention. As shown in fig. 9, the system includes a gateway 50 and a PCRF network element 60, where:
The gateway 50 is configured to send an assignment request to a PCRF network element when receiving a network attach request of the user terminal 40, where the assignment request includes a user identifier and user location information.
in one embodiment of the present invention, the gateway 50 is a gateway as described in any of the above embodiments of the present invention.
And the PCRF network element 60 is configured to allocate an IP address pool to the user terminal 40 according to the information such as the user identifier and the user location information, and send the allocated IP address pool to the gateway 50, so that the gateway 50 allocates an IP address to the user terminal 40 in the allocated IP address pool.
In an embodiment of the present invention, the PCRF network element 60 is the PCRF network element described in any of the above embodiments of the present invention.
Based on the system for dynamically assigning the IP address pool provided in the above embodiment of the present invention, the PCRF network element dynamically manages the address pool of the gateway, and when the user accesses the network at different locations without changing the existing flow, the PCRF network element makes a decision on the IP address pool applicable thereto according to the user attribute, the user location information, and the like, and dynamically issues the address pool information to the gateway by extending the AVP of the Gx interface, thereby solving the problem that the address pool can only perform single assignment according to the APN or IMSI number segment, and achieving dynamic address pool assignment to the user based on policies such as location.
the invention is illustrated below by specific examples:
FIG. 10 is a flowchart illustrating allocation of address pools based on different locations according to a first embodiment of the present invention. As shown in fig. 10:
scene one: when the user terminal accesses from the area 1 through an access device such as an MME (Mobility Management Entity), an eNB (evolved Node B), and the like, the process includes:
step 1, the PGW carries the location information of the location area 1 to the PCRF network element.
And step 2, the PCRF network element sends the address Pool-1 to the PGW according to the user attribute, the position information and the number of addresses in the address Pool.
and 3, the PGW allocates an IP address in the Pool-1 to the user according to the PCRF network element indication.
Scene two: when the user terminal accesses from the area 2 through the access device such as the MME, eNB, etc., the process includes:
step 1, the PGW carries the location information of the location area 2 to the PCRF network element.
and step 2, the PCRF network element sends the address Pool-2 to the PGW according to the user attribute, the position information and the number of addresses in the address Pool.
And 3, the PGW allocates an IP address in the Pool-2 to the user according to the PCRF network element indication.
the PCRF network element in the above embodiment of the present invention may provide the gateway with the corresponding address pool according to different location information of the user terminal, so that the gateway allocates the IP address in the address pool to the user. Therefore, dynamic address pool allocation to the user is realized based on the strategies such as position and the like.
in a second embodiment of the present invention, an ordinary user is assigned an IP address of a controlled area in a controlled location area (a county area, a city area, a military area, etc.), and is assigned another IP address in an unmanaged area.
in a third specific embodiment of the present invention, a trusted user or a government-enterprise user can obtain an unlimited IP address in both a controlled area and an unmanaged area, and can freely switch between areas.
In the above embodiment of the present invention, the PCRF network element may provide the gateway with the corresponding address pool according to the location of the controlled area, the location of the non-controlled area, the different user attributes, and the user class of the user terminal, so that the gateway allocates the IP address in the address pool to the user, thereby implementing dynamic address pool allocation to the user based on the policies such as the location of the controlled area, the location of the non-controlled area, the user attributes, and the user class.
Fig. 11 is a flow chart of PGW dynamic compensation expansion according to a fourth embodiment of the present invention. As shown in FIG. 11, the same IP address pools (Pool-1, Pool-2, Pool-3, Pool-4) are configured for both PGW-1 and PGW-2, wherein Pool-1 and Pool-2 are used for PGW-1 daily, and Pool-3 and Pool-4 are used for PGW-2 daily. The process comprises the following steps:
step 1, when a user terminal B accesses services through a PGW-1, the PGW-1 is abnormal, the heartbeat connection between the PGW-1 and a PCRF network element is interrupted, and the PCRF network element judges that the PGW-1 is abnormal; and then the user terminal B accesses to the PGW-2 after reattachment, and initiates a PCRF network element request.
and step 2, the PCRF network element issues an address Pool-1 to the PGW-2 according to the user attribute, the position information, the address number in the address Pool and the state of the PGW-1.
And 3, the PGW-2 allocates an IP address in the Pool-1 to the user according to the PCRF network element indication.
the above embodiment of the present invention may implement dynamic compensation for the PGW address pool, that is, after the normal PGW takes over the user with the abnormal PGW, the address pool may not be enough, and at this time, the PCRF network element may dynamically authorize the normal PGW to use the address pool with the abnormal PGW.
In a fifth embodiment of the present invention, 2 PGWs in a certain province are configured with the same IP address pool. Under normal conditions, PGW1 only uses Pool-1, PGW2 only uses Pool-2, when PGW1 is down, the user is routed to PGW2 after being accessed again, and the PCRF network element issues a Pool-1 address Pool to PGW2 according to the state of PGW1, thereby avoiding the address Pool on PGW2 from being insufficient, and realizing dynamic compensation capacity expansion of the address Pool under abnormal conditions.
The above-described embodiments of the present invention may be applied in 4G and future networks.
the functional units described above, such as the sending unit 501, the address allocation unit 502, the extracting unit 601, the address pool allocation unit 602, the issuing unit 603, the state recognition unit 604, the state recording unit 605, etc., may be implemented as a general processor, a Programmable Logic Controller (PLC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or any suitable combination thereof, for performing the functions described herein.
Thus far, the present invention has been described in detail. Some details well known in the art have not been described in order to avoid obscuring the concepts of the present invention. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
it will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. a method for dynamically assigning IP address pools, comprising:
when a network attachment request of a user terminal is received, sending an assignment request to a PCRF network element, wherein the assignment request comprises a user identifier and user position information, so that the PCRF network element obtains a user attribute and a user grade corresponding to the user identifier according to the user identifier query, allocates an IP address pool for the user terminal according to the user attribute, the user grade, the user position information and the number of addresses in the address pool, and returns the allocated IP address pool;
And allocating an IP address for the user terminal in an IP address pool allocated by the PCRF network element.
2. The method of claim 1, after sending the assignment request to the PCRF network element, further comprising:
Judging whether an IP address pool issued by a PCRF network element is received within a preset time;
If the IP address pool issued by the PCRF network element is received within the preset time, executing the step of allocating an IP address for the user terminal in the IP address pool allocated by the PCRF network element;
And if the IP address pool issued by the PCRF network element is not received within the preset time, allocating an IP address to the user terminal according to the access point mode.
3. a method for dynamically assigning IP address pools, comprising:
When an assignment request sent by a gateway is received, acquiring a user identifier and user position information from the assignment request, wherein the assignment request is sent by the gateway when a network attachment request of a user terminal is received;
Allocating an IP address pool for the user terminal according to the user identification and the user position information;
the allocated IP address pool is issued to the gateway so that the gateway allocates an IP address for the user terminal in the allocated IP address pool;
The step of allocating an IP address pool to the user terminal according to the user identifier and the user position information comprises the following steps:
inquiring and acquiring user attributes and user grades corresponding to the user identifications according to the user identifications;
And allocating an IP address pool for the user terminal according to the user attribute, the user level, the user position information and the number of addresses in the address pool.
4. a method for dynamically assigning IP address pools, comprising:
Judging whether the first gateway is abnormal or not;
If the first gateway is abnormal, recording the state of the first gateway;
when an assignment request sent by a second gateway is received, acquiring a user identifier and user position information from the assignment request, wherein the first gateway and the second gateway are in the same geographical area, and the assignment request is sent by the second gateway when a user terminal accesses a service through the first gateway and the service is accessed through the second gateway after the first gateway is abnormal;
Allocating an IP address pool to the user terminal according to the user identifier, the user position information and the state of the first gateway, wherein the IP address pool is an address pool corresponding to the first gateway;
And sending the allocated IP address pool to the second gateway so that the second gateway allocates the IP address for the user terminal in the allocated IP address pool.
5. the method of claim 4, wherein the step of allocating a pool of IP addresses to the user terminal based on the user identification, the user location information, and the state of the first gateway comprises:
Inquiring and acquiring user attributes and user grades corresponding to the user identifications according to the user identifications;
and allocating an IP address pool for the user terminal according to the user attribute, the user level, the user position information, the address number in the address pool and the state of the first gateway.
6. a gateway for dynamically assigning a pool of IP addresses, comprising a request sending unit and an address allocation unit, wherein:
a request sending unit, configured to send an assignment request to a PCRF network element when a network attachment request of a user terminal is received, where the assignment request includes a user identifier and user location information, so that the PCRF network element queries, according to the user identifier, a user attribute and a user class corresponding to the user identifier, allocates an IP address pool to the user terminal according to the user attribute, the user class, the user location information, and an address number in the address pool, and returns the allocated IP address pool;
and the address allocation unit is used for allocating an IP address for the user terminal in the IP address pool allocated by the PCRF network element.
7. the gateway according to claim 6, further comprising an identification unit, wherein:
The identification unit is used for judging whether an IP address pool issued by the PCRF network element is received within preset time after the request sending unit sends an assignment request to the PCRF network element;
The address allocation unit is also used for executing the operation of allocating the IP address for the user terminal in the IP address pool allocated by the PCRF network element if the IP address pool issued by the PCRF network element is received within the preset time according to the judgment result of the identification unit; and if the IP address pool issued by the PCRF network element is not received within the preset time, allocating an IP address to the user terminal according to the access point mode.
8. A PCRF network element for dynamically assigning an IP address pool is characterized by comprising an extraction unit, an address pool allocation unit and a distribution unit, wherein:
The device comprises an extraction unit, a service unit and a service unit, wherein the extraction unit is used for acquiring a user identifier and user position information from an assignment request when receiving the assignment request sent by a gateway, and the assignment request is sent by the gateway when receiving a network attachment request of a user terminal;
the address pool allocation unit is used for allocating an IP address pool for the user terminal according to the user identification and the user position information;
The issuing unit is used for issuing the IP address pool allocated by the address pool allocating unit to the gateway so that the gateway allocates the IP address for the user terminal in the allocated IP address pool;
Wherein, the address pool allocation unit comprises an attribute acquisition module and an address pool allocation module, wherein:
the attribute acquisition module is used for inquiring and acquiring the user attribute and the user grade corresponding to the user identifier according to the user identifier;
And the address pool allocation module is used for allocating the IP address pool for the user terminal according to the user attribute, the user grade, the user position information and the number of the addresses in the address pool.
9. The PCRF network element of claim 8, further comprising a state identification unit and a state recording unit, wherein:
The state identification unit is used for judging whether the first gateway is abnormal or not;
the state recording unit is used for recording the state of the first gateway if the first gateway is abnormal according to the judgment result of the state identification unit;
The extracting unit is further configured to, when an assignment request sent by a second gateway is received, obtain a user identifier and user location information from the assignment request, where the first gateway and the second gateway are located in the same geographic area, and the assignment request is sent by the second gateway when a user terminal accesses a service through the first gateway and the service is accessed through the second gateway after the first gateway is abnormal;
the address pool allocation unit is also used for allocating an IP address pool to the user terminal according to the user identification, the user position information and the state of the first gateway, wherein the IP address pool is an address pool corresponding to the first gateway;
the issuing unit is further configured to issue the IP address pool allocated by the address pool allocation unit to the second gateway, so that the second gateway allocates an IP address to the user terminal in the allocated IP address pool.
10. A system for dynamically assigning IP address pools, comprising a gateway according to claim 6 or 7 and a PCRF network element according to claim 8 or 9.
CN201510893912.0A 2015-12-08 2015-12-08 Method, gateway, PCRF network element and system for dynamically assigning IP address pool Active CN106856511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510893912.0A CN106856511B (en) 2015-12-08 2015-12-08 Method, gateway, PCRF network element and system for dynamically assigning IP address pool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510893912.0A CN106856511B (en) 2015-12-08 2015-12-08 Method, gateway, PCRF network element and system for dynamically assigning IP address pool

Publications (2)

Publication Number Publication Date
CN106856511A CN106856511A (en) 2017-06-16
CN106856511B true CN106856511B (en) 2019-12-06

Family

ID=59131975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510893912.0A Active CN106856511B (en) 2015-12-08 2015-12-08 Method, gateway, PCRF network element and system for dynamically assigning IP address pool

Country Status (1)

Country Link
CN (1) CN106856511B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385790B (en) * 2018-12-27 2023-04-07 中国电信股份有限公司 User access control method, system and computer readable storage medium
CN114172864B (en) * 2020-08-21 2024-04-09 中国移动通信集团重庆有限公司 Internet of things terminal address allocation method and device
CN112468606B (en) * 2020-11-13 2023-01-17 中盈优创资讯科技有限公司 Mutual backup address pool IP address number statistical correction method and device
CN113242210B (en) * 2021-04-09 2023-03-24 杭州闪电玩网络科技有限公司 DDoS (distributed denial of service) preventing method and system based on user grade distribution
CN114500395B (en) * 2021-12-29 2023-10-31 联通智网科技股份有限公司 Flow control method, device and equipment
CN116527733A (en) * 2022-01-21 2023-08-01 中国电信股份有限公司 Differentiated control method, device, equipment and storage of user terminal
CN114826808B (en) * 2022-04-14 2023-09-19 中国联合网络通信集团有限公司 User terminal network access method and device, user terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588325A (en) * 2008-05-20 2009-11-25 华为技术有限公司 Disaster recovery method, device and system based on wireless packet gateways
CN101795302A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and system for identifying group users
CN103444148A (en) * 2011-03-22 2013-12-11 瑞典爱立信有限公司 Network node and method to control routing or bypassing of deployed traffic detection function nodes
CN103701950A (en) * 2013-12-26 2014-04-02 中国联合网络通信集团有限公司 IP (Internet protocol) address allocation method and device
CN103945367A (en) * 2014-03-11 2014-07-23 宇龙计算机通信科技(深圳)有限公司 Address assignment method, address assignment system and base station for mobile communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9668293B2 (en) * 2009-08-25 2017-05-30 Telefonaktiebolaget Lm Ericsson (Publ) Relocation of mobility anchor for nomadic subscribers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588325A (en) * 2008-05-20 2009-11-25 华为技术有限公司 Disaster recovery method, device and system based on wireless packet gateways
CN101795302A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and system for identifying group users
CN103444148A (en) * 2011-03-22 2013-12-11 瑞典爱立信有限公司 Network node and method to control routing or bypassing of deployed traffic detection function nodes
CN103701950A (en) * 2013-12-26 2014-04-02 中国联合网络通信集团有限公司 IP (Internet protocol) address allocation method and device
CN103945367A (en) * 2014-03-11 2014-07-23 宇龙计算机通信科技(深圳)有限公司 Address assignment method, address assignment system and base station for mobile communication

Also Published As

Publication number Publication date
CN106856511A (en) 2017-06-16

Similar Documents

Publication Publication Date Title
CN106856511B (en) Method, gateway, PCRF network element and system for dynamically assigning IP address pool
EP2827623B1 (en) Policy and charging control method, and v-pcrf apparatus
CN109413640B (en) Session information query method, network element and computer storage medium
US10382943B2 (en) Data service processing method, apparatus, and system in roaming scenario
KR102048882B1 (en) Method and system for selecting pcef and pcrf in a wireless communication system
EP2528406B1 (en) Method based on a machine to machine (m2m) application
KR102148341B1 (en) Method and device for setting priority of data transmission
CN111277720B (en) Charging method, device and system
WO2011054251A1 (en) Method, system and terminal for preventing access from illegal terminals
JP2020500432A (en) Method and communication network component for providing communication services
CN108011725B (en) Policy control method, device and system
US20240098583A1 (en) PDU session continuity for a UE moving between a telecommunications network and a gateway device
CN112752231B (en) Roaming service access control method, intelligent card, terminal and gateway equipment
CN105379323B (en) Method, equipment and system for controlling total amount of online attached users
CN107006057B (en) Controlling wireless local area network access
CN108270808B (en) Method, device and system for realizing application detection and control
CN104754072B (en) A kind of method and apparatus of address distribution
CN103379555A (en) System, device and method for communication
CN112087732B (en) Communication method and device
JP2014204298A (en) Communication system, gateway and policy control device
KR102216546B1 (en) Method for providing private network service for each application and telecommunication network system, and method for transmitting traffic in terminal
WO2016045060A1 (en) Gateway selection method, device and system
CN108462962B (en) Method and device for connecting access point
KR20140135039A (en) System for concentrating traffic, apparatus for managing traffic and system for managing traffic using traffic concentrating scheme
CN106332077B (en) Authentication method and system for accessing isolated network

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant