Summary of the invention
The present invention provides a kind of dispatching method of wireless access protocol WAP gateway resource, in order to solve unique WAP gateway that existing packet domain gateway device can only the access static configuration, causes problems such as each WAP gateway resource utilization is unbalanced, system reliability is low.
Accordingly, the present invention also provides a kind of WAP gateway resource allocation server and a kind of packet domain gateway device.
The invention provides a kind of dispatching method of wireless access protocol WAP gateway resource, comprising:
The WAP gateway resource allocation server is obtained the current service request quantity of handling of each WAP gateway of being administered; According to the service request disposal ability that the current service request quantity of handling of each WAP gateway and this WAP gateway possess, confirm each WAP gateway current resource utilance;
When confirming that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, the current resource utilance is surpassed service request that the WAP gateway of resource utilization threshold value is assigned be reconfigured on the WAP gateway that the current resource utilance is no more than said resource utilization threshold value;
According to reshuffle the result generate ought be last time WAP gateway resource routing table; And ought WAP gateway resource routing table last time be distributed to each packet domain gateway device of being administered, the WAP gateway that said WAP gateway resource routing table is used to indicate the packet domain gateway device to select business data packet to be routed to for the session that activates.
The invention provides a kind of wireless access protocol WAP gateway resource allocation server, comprising:
First acquiring unit; Be used to obtain the current service request quantity of handling of each WAP gateway of being administered; According to the service request disposal ability that the current service request quantity of handling of each WAP gateway and this WAP gateway possess, confirm each WAP gateway current resource utilance;
Reshuffle the unit; When being used to confirm that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, the current resource utilance being surpassed service request that the WAP gateway of resource utilization threshold value is assigned be reconfigured on the WAP gateway that the current resource utilance is no more than said resource utilization threshold value;
Scheduling unit; Be used for according to reshuffle the result generate ought be last time WAP gateway resource routing table; And ought WAP gateway resource routing table last time be distributed to each packet domain gateway device of being administered, the WAP gateway that said WAP gateway resource routing table is used to indicate the packet domain gateway device to select business data packet to be routed to for the session that activates.
The invention provides a kind of packet domain gateway device, comprising:
Receiving element; Be used to receive WAP gateway resource routing table; Said WAP gateway resource routing table produces through following manner: obtain the current service request quantity of handling of each WAP gateway of being administered by the WAP gateway resource allocation server; According to the service request disposal ability that the current service request quantity of handling of each WAP gateway and this WAP gateway possess, confirm each WAP gateway current resource utilance; When confirming that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, the current resource utilance is surpassed service request that the WAP gateway of resource utilization threshold value is assigned be reconfigured on the WAP gateway that the current resource utilance is no more than said resource utilization threshold value; According to reshuffle the result generate ought be last time WAP gateway resource routing table; The WAP gateway that said WAP gateway resource routing table is used to indicate the packet domain gateway device to select business data packet to be routed to for the session that activates;
Updating block is used for according to the WAP gateway resource routing table that receives the local storage of WAP gateway resource routing table update;
Routing unit is used for selecting WAP gateway and business data packet being routed to the WAP gateway of selection for the new session that activates according to the WAP gateway resource routing table after upgrading, and uses the session routing service packet of former route for having activated.
The resource regulating method of WAP gateway provided by the invention has been introduced the WAP gateway resource allocation server, and as resource pool, the WAP gateway resource allocation server is confirmed each WAP gateway current resource utilance with WAP gateway; When each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, to the WAP gateway resource reconfiguration, according to reshuffle the result generate ought be last time WAP gateway resource routing table, and be distributed to each packet domain gateway device of being administered.This programme is based on distributed mechanism all WAP gateway resources realization centralized dispatching to range of management; Realized that same packet domain gateway device shares a plurality of WAP gateways, improved the resource utilization of WAP gateway, realized the equilibrium utilization of each WAP gateway resource; And through generating new WAP gateway resource routing table; Make the packet domain gateway device when the visit WAP gateway, can between WAP gateway, automatically switch, realized network disaster tolerance, improved system reliability.
Embodiment
To the problem that exists in the prior art, the embodiment of the invention provides a kind of scheduling scheme of WAP gateway resource, in order to realize the centralized dispatching to the WAP gateway resource.The embodiment of the invention has been introduced the WAP gateway resource allocation server; With WAP gateway as resource pool; Based on distributed mechanism all WAP gateway resources realization centralized dispatching to range of management, realize the equilibrium of each WAP gateway resource utilization, the packet domain gateway device can automatically switch between WAP gateway when the visit WAP gateway; Realize network disaster tolerance, improved system reliability.
The dispatching patcher framework of the WAP gateway resource that the embodiment of the invention provides is as shown in Figure 2, comprising: WAP gateway resource allocation server, a plurality of packet domain gateway device and a plurality of WAP gateway.Network structure between packet domain gateway device and the WAP gateway is constant, still adopts WAP service bearer network.Need to prove; If existing WAP service bearer network adopted between certain packet domain gateway device and certain WAP gateway through perhaps point-to-point connection of VPN special line, need be transformed into the netted interworking architecture between a plurality of packet domain gateway devices and a plurality of WAP gateway.The WAP gateway resource allocation server of introducing can be by a computer realization; Insert WAP service bearer network through network interface; Realize and the communicating by letter of each packet domain gateway device and WAP gateway through WAP service bearer network, the WAP gateway resource allocation server through the W1 interface link to each other with each WAP gateway, to pass through W2 interface packets territory gateway device continuous.
Wherein:
W1 interface and W2 interface all adopt XML (Extensible Markup Language, expansion identifiable language) definition, and bearing protocol is HTTP (Hyper Text Transport Protocol, a Hypertext Transfer Protocol).Interface message adopts " asking-reply " mode.Request message and response message are formed by message header and message body two parts, and message header comprises authentication information, and message body comprises request or the particular content of replying.
The major function of W1 interface is: obtain service request disposal ability and the current service request quantity of handling that each WAP gateway of being administered possesses, the service request disposal ability that each WAP gateway possesses generally adopts the mode of " N service request/second " to represent;
The main message definition of W1 interface is following:
GetWapConfigReq obtains service request disposal ability request interface message;
GetWapConfigResp obtains the service request disposal ability and replys interface message;
GetWapSessionReq obtains operating state request interface message, and wherein operating state promptly is meant the current service request quantity of handling;
GetWapSessionResp obtains operating state and replys interface message.
The major function of W2 interface is: obtain the service request disposal ability that each packet domain gateway device of being administered possesses; And to each packet domain gateway device distribution WAP gateway resource routing table; The service request disposal ability that each packet domain gateway device possesses adopts the mode of " N service request/second " to represent equally; The service request disposal ability that certain each packet domain gateway device possesses also can adopt the mode of " PDP activates number/second " to represent; And each PDP activation needs the service request quantity of the WAP gateway of consumption to be generally constant, so the mode of " N service request/second " is represented to come down to consistent with the expression mode of " PDP activates number/second ".
The main message definition of W2 interface is following:
GetGgsnConfigReq obtains service request disposal ability request interface message;
GetGgsnConfigResp obtains the service request disposal ability and replys interface message;
DeliveryWapRouteReq, issue WAP gateway resource routing table request interface message;
DeliveryWapRouteResp, issue WAP gateway resource routing table is replied interface message.
In the W1 interface and the W2 interface course of work, use the timer protection during wait acknowledge.
GetWapConfigReq message and GetGgsnConfigReq message can excite through manual configuration or software arrangements mode; GetWapSessionReq can regularly excite according to the time cycle of configuration, and DeliveryWapRouteReq can regularly or excite under the situation of newly-generated WAP gateway resource routing table.
Based on the dispatching patcher framework of WAP gateway resource, the embodiment of the invention provides the dispatching method of WAP gateway resource, and is as shown in Figure 3, comprises the steps:
S301, WAP gateway resource allocation server are obtained the current service request quantity of handling of each WAP gateway of being administered; According to the service request disposal ability that the current service request quantity of handling of each WAP gateway and this WAP gateway possess, confirm each WAP gateway current resource utilance;
In the practical implementation; The WAP gateway resource allocation server is obtained the current service request quantity of handling of each WAP gateway of being administered; Can send GetWapSessionReq message to each WAP gateway through the W1 interface; Each WAP gateway can be carried at the current service request quantity of handling of this WAP gateway to return in the GetWapSessionResp message through the W1 interface gives the WAP gateway resource allocation server, thereby the WAP gateway resource allocation server can be obtained the current service request quantity of handling of each WAP gateway from each the GetWapSessionResp message that receives;
WAP gateway current resource utilance equals the merchant of the service request disposal ability that the current service request quantity of handling of this WAP gateway and this WAP gateway possess.
When S302, WAP gateway resource allocation server confirm that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, the current resource utilance is surpassed service request that the WAP gateway of resource utilization threshold value is assigned be reconfigured on the WAP gateway that the current resource utilance is no more than the resource utilization threshold value;
Preferable, the resource utilization threshold value is the mean value of WAP gateway resource allocation server all WAP gateway current resource utilances of being administered, after also can suitably adjusting the mean value of resource utilization according to demand as the resource utilization threshold value.
S303, WAP gateway resource allocation server according to reshuffle the result generate ought be last time WAP gateway resource routing table; And ought WAP gateway resource routing table last time be distributed to each packet domain gateway device of being administered, wherein WAP gateway resource routing table is used to indicate the WAP gateway that the packet domain gateway device selects business data packet to be routed to for the session that activates;
In the practical implementation; The WAP gateway resource allocation server ought WAP gateway resource routing table last time be distributed to each packet domain gateway device of being administered; Can send DeliveryWapRouteReq message to each packet domain gateway device through the W2 interface; Wherein carry ought be last time WAP gateway resource routing table; Each packet domain gateway device can from the DeliveryWapRouteReq message that receives, obtain ought be last time WAP gateway resource routing table, and return DeliveryWapRouteResp message to the WAP gateway resource allocation server through the W2 interface, confirm to have received WAP gateway resource routing table;
Accordingly, each packet domain gateway device is according to the WAP gateway resource routing table of the local storage of the WAP gateway resource routing table update that receives; And select WAP gateway for the new session that activates and business data packet is routed on the WAP gateway of selection, and use the session routing service packet of former route for having activated according to the WAP gateway resource routing table after upgrading.
Below, be elaborated to confirming the method that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, as shown in Figure 4, specifically comprise:
Whether S401, WAP gateway resource allocation server judge each WAP gateway current resource utilance all above the resource utilization maximum of setting, if then carry out S405, if not, then carry out S402;
In the practical implementation, generally the resource utilization maximum is set at 70%, also can be provided with flexibly according to demand;
S402, confirm the variance yields of all WAP gateway current resource utilances and previous resource utilization, through following formulate:
Wherein, Δ is represented variance yields, and N representes the quantity of WAP gateway, P
i(n) i WAP gateway current resource utilance of expression, P
i(n-1) i previous resource utilization of WAP gateway of expression;
S403, judge that whether this variance yields surpasses the variance threshold values of setting, and generally is set at 10% with variance threshold values; Also can be provided with flexibly, if then carry out S404 according to demand; If not, then flow process finishes, and that is to say last time not start the WAP gateway resource reconfiguration; Do not generate new WAP gateway resource routing table and keep the WAP gateway resource routing table of last time constant, to avoid the variation vibration of WAP gateway resource routing table;
S404, confirm that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition;
S405, WAP gateway resource allocation server are sent warning information.
The dispatching method of the WAP gateway resource that the embodiment of the invention provides is a cyclic process; The current service request quantity of handling of each WAP gateway of being administered can be obtained or when satisfying trigger condition, obtained to the WAP gateway resource allocation server cycle, and the current service request quantity of handling of each WAP gateway is that the WAP gateway resource routing table that the packet domain gateway device is stored according to this locality sends to corresponding WAP gateway; When the WAP gateway resource allocation server confirms that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition; Carry out the WAP gateway resource reconfiguration; According to reshuffle the result generate ought be last time WAP gateway resource routing table; And ought WAP gateway resource routing table last time be distributed to each packet domain gateway device of being administered; The WAP gateway resource routing table that the packet domain gateway device is stored according to the WAP gateway resource routing table update this locality that receives, and as the follow-up foundation of selecting route for the session that activates.
Initial WAP gateway resource routing table can be pre-configured in each packet domain gateway device, also can generate and be distributed to each packet domain gateway device of being administered by the WAP gateway resource allocation server.Preferable; WAP gateway resource routing table is used to describe each packet domain gateway device and is assigned to the ratio that service request quantity on each WAP gateway accounts for the service request disposal ability that this packet domain gateway device possesses, and WAP gateway resource routing table is through following formulate:
Wherein, X
IjRepresent that i packet domain gateway device is assigned to the ratio that j the service request quantity on the WAP gateway accounts for the service request disposal ability that i packet domain gateway device possess.
The generation and the distribution flow of initial WAP gateway resource routing table, as shown in Figure 5, comprise the steps:
S501, WAP gateway resource allocation server are obtained the service request disposal ability that service request disposal ability that each WAP gateway of being administered possesses and each packet domain gateway device possess;
In the practical implementation; The WAP gateway resource allocation server is obtained the service request disposal ability that each WAP gateway of being administered possesses; Can send GetWapConfigReq message to each WAP gateway through the W1 interface; Each WAP gateway can be carried at through the service request disposal ability that the W1 interface possesses this WAP gateway and return to the WAP gateway resource allocation server in the GetWapConfigResp message, thereby the WAP gateway resource allocation server can be obtained the service request disposal ability that each WAP gateway possesses from each the GetWapConfigResp message that receives;
In like manner; The WAP gateway resource allocation server is obtained the service request disposal ability that each packet domain gateway device of being administered possesses; Can send GetGgsnConfigReq message to each packet domain gateway device through the W2 interface; Each packet domain gateway device can be carried at through the service request disposal ability that the W1 interface possesses this WAP gateway and return to the WAP gateway resource allocation server in the GetGgsnConfigResp message, thereby the WAP gateway resource allocation server can be obtained the service request disposal ability that each packet domain gateway device possesses from each the GetGgsnConfigResp message that receives;
S502, WAP gateway resource allocation server confirm that according to predefined constraints each packet domain gateway device is assigned to the ratio that service request quantity on each WAP gateway accounts for the service request disposal ability that this packet domain gateway device possesses, and generates initial WAP gateway resource routing table;
Wherein, predefined constraints is passed through following formulate:
Wherein, G
iRepresent the service request disposal ability that i packet domain gateway device possesses, W
jRepresent the service request disposal ability that j WAP gateway possesses, p representes the resource utilization maximum of WAP gateway;
S503, WAP gateway resource allocation server are distributed to each packet domain gateway device of being administered with initial WAP gateway resource routing table.
The embodiment of the invention provides a kind of possible structure of WAP gateway resource allocation server, and is as shown in Figure 6, specifically can comprise:
First acquiring unit 601; Be used to obtain the current service request quantity of handling of each WAP gateway of being administered; According to the service request disposal ability that the current service request quantity of handling of each WAP gateway and this WAP gateway possess, confirm each WAP gateway current resource utilance;
Reshuffle unit 602; When being used to confirm that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, the current resource utilance being surpassed service request that the WAP gateway of resource utilization threshold value is assigned be reconfigured on the WAP gateway that the current resource utilance is no more than this resource utilization threshold value;
Scheduling unit 603; Be used for according to reshuffle the result generate ought be last time WAP gateway resource routing table; And ought WAP gateway resource routing table last time be distributed to each packet domain gateway device of being administered; Wherein, WAP gateway resource routing table is used to indicate the WAP gateway that the packet domain gateway device selects business data packet to be routed to for the session that activates.
Preferable, the WAP gateway resource allocation server also can comprise:
Second acquisition unit is used to obtain the service request disposal ability that service request disposal ability that each WAP gateway of being administered possesses and each packet domain gateway device possess;
The initial schedule unit; Be used for confirming that according to predefined constraints each packet domain gateway device is assigned to the ratio that service request quantity on each WAP gateway accounts for the service request disposal ability that this packet domain gateway device possesses; Generate initial WAP gateway resource routing table, and initial WAP gateway resource routing table is distributed to each packet domain gateway device of being administered.
Wherein, reshuffling a kind of of unit 602 maybe structure, as shown in Figure 7, and comprise first judgment sub-unit 701, confirm subelement 702, second judgment sub-unit 703 and handle subelement 704, wherein:
First judgment sub-unit 701 is used to judge that each WAP gateway current resource utilance whether all above the resource utilization maximum of setting, if not, then triggers and confirms subelement 702;
Confirm subelement 702, be used for confirming the variance yields of all WAP gateway current resource utilances and previous resource utilization;
Second judgment sub-unit 703 is used for when variance yields surpasses the variance threshold values of setting, confirming that each WAP gateway current resource utilance satisfies WAP gateway resource reconfiguration entry condition, triggers and handles subelement 704;
Handle subelement 704, the current resource utilance is surpassed service request that the WAP gateway of resource utilization threshold value is assigned be reconfigured on the WAP gateway that the current resource utilance is no more than said resource utilization threshold value.
In the practical implementation, reshuffle unit 602 and also can comprise alarm subelement 705, wherein:
First judgment sub-unit 701 if also be used for judging each WAP gateway current resource utilance all above the resource utilization maximum of setting, then triggers alarm subelement 705;
Alarm subelement 705: be used to send warning information.
Accordingly, the embodiment of the invention provides a kind of possibility structure of packet domain gateway device, and is as shown in Figure 8, comprising:
Receiving element 801 is used to receive WAP gateway resource routing table, the WAP gateway that said WAP gateway resource routing table is used to indicate the packet domain gateway device to select business data packet to be routed to for the session that activates;
Updating block 802 is used for according to the WAP gateway resource routing table that receives the local storage of WAP gateway resource routing table update;
Routing unit 803 is used for selecting WAP gateway and business data packet being routed to the WAP gateway of selection for the new session that activates according to the WAP gateway resource routing table after upgrading, and uses the session routing service packet of former route for having activated.
The resource regulating method of the WAP gateway that the embodiment of the invention provides has been introduced the WAP gateway resource allocation server, and WAP gateway as resource pool, is realized centralized dispatching based on distributed mechanism to all WAP gateway resources of range of management.
The resource regulating method of the WAP gateway that the embodiment of the invention provides; Introduced after the WAP gateway resource allocation server; Obtain the current service request quantity of handling of WAP gateway (being operating state) based on specific protocol; And according to the resource utilization of each WAP gateway generate ought be last time WAP gateway resource routing table; And being distributed to each packet domain gateway device, corresponding packet domain gateway device can receive the WAP gateway resource routing table of WAP gateway resource allocation server distribution, is that the professional APN of WAP selects WAP gateway according to this WAP gateway resource routing table.
The resource regulating method of the WAP gateway that the embodiment of the invention provides; Can realize that a packet domain gateway device shares many WAP gateways; Improve the resource utilization of WAP gateway, realized the equilibrium utilization of each WAP gateway resource, effectively reduced management of engineering construction co-ordination amount.
The resource regulating method of the WAP gateway that the embodiment of the invention provides; The WAP gateway resource allocation server is through generating new WAP gateway resource routing table; Make the packet domain gateway device when the visit WAP gateway, can between WAP gateway, automatically switch; Realize network disaster tolerance, improved system reliability.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.