[summary of the invention]
In view of this, embodiments of the invention provide in a kind of service network professional method and the gateway of transmitting thereof between each gateway, make each equalizing load between gateways, to improve communication quality.
The professional method of transmitting between gateway in the service network, wherein, after gateway received and inserts request message, described gateway judged whether to obtain the resource status of the associated gateway that links to each other with gateway, if do not obtain, then request obtains the resource status of associated gateway; Gateway judges whether the own resource occupancy has reached the resources occupation rate threshold value and determined oneself whether to handle this access request message, if reach, gateway judges whether also have annexation with other gateway; If have, then select the lightest gateway of load as intended gateway, described access request message is forwarded to described intended gateway; Otherwise determine gateway oneself processing.
The method of described acquisition associated gateway resource status comprises: described gateway sends the resource status request message to described associated gateway, comprises gateway own resource state in the described resource status request message; Described associated gateway is returned the resource status response message to gateway, carries himself resource status.
The method of described acquisition associated gateway resource status comprises: fixed time broadcast sends the resource status broadcasting packet between gateway, and gateway obtains the resource status of associated gateway by described resource status broadcasting packet.
Described resource status comprises one of following content at least: user capacity resource, bandwidth resources, path transmission delay and the error rate, processor resource, memory resource, inbound port resource and outbound port resource.
Described access package includes network is initial to be inserted and the switching access.
Described gateway judges whether also to have after the annexation with other gateway, comprises further gateway judges whether the own resource occupancy is minimum, if then carry out described gateway and handle described access request message; Otherwise, carry out the lightest gateway of described selection load as intended gateway, gateway is forwarded to the intended gateway that this is chosen with described access request message.
Described another intended gateway is the gateway that is connected with gateway, or also serviced gateway management of the base station of its management while, or the base station of the base station of its management and gateway management has adjacent sub-district.
Described gateway is provided with a hop count parameter in message when transmitting the access request to intended gateway, message whenever is forwarded once, and the value of described hop count adds one, when described hop count reaches a preset value, the current service gateway is final IAD, handles described access request.
A kind of gateway is characterized in that, this gateway comprises receiving element, judging unit, processing unit, retransmission unit, first detecting unit, and second detecting unit and resource threshold are provided with the unit; After receiving element receives and inserts request message, second detecting unit detects gateway and whether also has annexation with other gateway, if have, and obtain the resource status of described neighboring gateway, then judging unit determines whether to handle this access request message, first detecting unit detects the own resource occupancy of current service gateway, it is whether to have reached the resources occupation rate threshold value that resource threshold is provided with the unit setting according to the own resource occupancy that this first detecting unit detects gateway to determine that then described judging unit determines whether to handle this access request message, if do not reach, the then described access request of judging unit notifier processes cell processing; If reach, then selected cell selects the lightest gateway of load as intended gateway, and judging unit notice retransmission unit is forwarded to described intended gateway with described access request message.
Described selected cell selects the lightest gateway of load as before the intended gateway, and whether first detecting unit detects gateway own resource occupancy minimum, if, the described access request message of the first detecting unit notifier processes cell processing; Otherwise first detecting unit notice selected cell selects the lightest gateway of load as intended gateway.
Described retransmission unit comprises that also counter and frequency threshold value are provided with device, retransmission unit is transmitted to insert to intended gateway a hop count parameter is set in message when asking, message whenever is forwarded once, counter adds one with the value of described hop count, when described hop count reaches frequency threshold value the frequency threshold value that device is provided with is set, the described access request of retransmission unit notifier processes cell processing.
Compared with prior art, the present invention allows in the service network between each associated gateway by professional forwarding the timely, with the load of timely each associated gateway of adjustment, and balanced well load, the assurance system runs well, and improves system effectiveness.
[embodiment]
The present invention is further elaborated with specific embodiment with reference to the accompanying drawings below.
Embodiment one:
Each gateway (ASN-GW) periodically sends the resource status request message to each relevant ASN-GW in the access service network (ASN), broadcast its resource and loading condition, carry one of following information or combination in any in the described message: user capacity resource status, bandwidth resources state, path transmission delay and the error rate, processor resource state, memory resource state, inbound port resource status and inbound port resource status etc.Can relate to particularly: the user capacity resource usage ratio of ASN-GW, total user capacity of ASN-GW, the customer volume that ASN-GW has inserted, the remaining users capacity of ASN-GW, the customer volume that ASN-GW uses certain QoS rank to insert, the bandwidth resources usage ratio of ASN-GW, the total bandwidth of ASN-GW is held, the remaining bandwidth of ASN-GW, the bandwidth that ASN-GW has used, path transmission delay between ASN-GW and the BS, path transmission error rates between ASN-GW and the BS, ASN-GW processor resource occupancy, ASN-GW processor total resources, the ASN-GW processor has used resource, ASN-GW processor surplus resources, ASN-GW memory resource occupancy, ASN-GW memory total resources, the ASN-GW memory has used resource, ASN-GW memory surplus resources, ASN-GW inbound port resources occupation rate, ASN-GW inbound port total flow, the ASN-GW inbound port is use traffic, ASN-GW inbound port residual flow, ASN-GW outbound port resources occupation rate, ASN-GW outbound port total flow, the ASN-GW outbound port is use traffic and ASN-GW outbound port residual flow.
As shown in Figure 5, be the schematic flow sheet that mobile subscriber station (MSS) request initial network inserts, mainly may further comprise the steps:
S11, service ASN-GW receive from serving BS broadcasts or from the MSS access of other ASN-GW and ask.
S12, service ASN-GW judges whether its other resources occupancy has reached threshold value, own handle this MSS access and asks determining whether, if do not reach threshold value, execution in step S17 then; If reach, execution in step S13 then.
S13, service ASN-GW judges whether this serving BS broadcasts also has annexation with other ASN-GW, if having, and this ASN-GW has obtained the resource status of these neighboring ASs N-GW, then execution in step S14 by broadcasting; If no, execution in step S17 then.Because each gateway adopts periodic broadcasting to obtain the associated gateway resource situation in the present embodiment, therefore when receiving the access request, needn't go to obtain the associated gateway resource again, as long as use the last result who obtains that broadcasts.
S14, service ASN-GW judges whether the own resource occupancy is minimum, own handle this MSS access and asks determining whether, if oneself do not handle, execution in step S15 then; If oneself is handled, execution in step S17.
S15 selects the lightest ASN-GW of load as intended gateway in relevant ASN-GW, the access request of MSS is transmitted to selected ASN-GW, and the hop count in the message is increased by 1.
S16, selected target ASN-GW judges as the access request of gateway reception MSS whether hop count arrives preset value, if arrive execution in step S17, if there is not execution in step S12.
S17 as the access request of final gateway processing MSS, finishes follow-up access and handles.
As an improvement of the present invention,, increased above-mentioned hop count in the access request message of forwarding in order to prevent the above-mentioned access request of unconfined mutual forwarding between the ASN-GW.The request of access whenever is forwarded once, and hop count is all added 1, then no longer transmits after hop count reaches a preset value, inserts MSS by last ASN-GW.This preset value can be used as the operation parameter in the unified configuration of whole network.
Embodiment two:
As shown in Figure 6, be that gateway receives the schematic flow sheet from the MSS handoff request of other service ASN-GW, mainly may further comprise the steps:
S21, ASN-GW receive from serving BS broadcasts or from the MSS handoff request of other ASN-GW, comprise target BS information in this handoff request.
S22, ASN-GW judge whether to obtain the resource status of associated gateway, if obtain, and execution in step S23; If do not obtain, then request obtains the resource status of associated gateway, execution in step S23 again.Wherein, associated gateway is meant the ASN-GW that annexation is arranged with target BS.Therefore because from having carried target BS information in serving BS broadcasts or the handoff request, can obtain the information of the ASN-GW that is connected with target BS by certain method from other service ASN-GW.The definition of described resource status is identical with embodiment one.
S23, ASN-GW judge whether the own resource occupancy is minimum, to determine whether oneself handling this MSS handoff request, if oneself do not handle, and execution in step S24 then; If oneself is handled, execution in step S26.
S24 selects the lightest ASN-GW of load as intended gateway in relevant ASN-GW, will be transmitted to selected ASN-GW from the handoff request of MSS, and the hop count in the message is increased by 1.
S25, selected target ASN-GW receives the handoff request of MSS, judges whether hop count arrives preset value, if arrive execution in step S26, if there is not execution in step S22.
S26 as the handoff request of final gateway processing MSS, finishes follow-up access and handles.
Among the above-mentioned steps S22, the method that request obtains the associated gateway resource status comprises step:
S221, ASN-GW send the resource status request message to described associated gateway, comprise himself resource status in its resource status request message.
S222, associated gateway is returned the resource status response message to above-mentioned ASN-GW, comprises the resource status of associated gateway in the returned packet.
As can be seen, relative embodiment one, the present embodiment load between more can each gateway of balance.Simultaneously, continuous balanced load also can increase system burden between each gateway.Therefore also can be identical with embodiment one, behind step S21, increase step:
S211, ASN-GW judge whether its other resources occupancy has reached threshold value, handle this MSS handoff request to determine whether oneself, if reach, and execution in step S22; If no, execution in step S26 then.
Like this, have only the load of an ASN-GW to arrive the ASN-GW that just later load (MSS/SS) can be distributed to other after the threshold value.
Present embodiment also can equally remove step S22 with embodiment, adopts periodic broadcasting to obtain associated gateway resource and load condition.
Embodiment three:
In the present embodiment, each gateway (ASN-GW) periodically sends the resource status broadcasting packet to each relevant ASN-GW in the access service network (ASN), broadcasts its resource and loading condition, to obtain the resource status of associated gateway.Described associated gateway is meant such gateway, and it is connected with source ASN-GW, and the BS of its management is also managed by source ASN-GW simultaneously, or the BS of the BS of its management and source ASN-GW management has neighbor cell.ASN-GW can satisfy relevant ASN-GW defined above to all and send the resource status request message, also can only select its subclass to send.The definition of described resource status is identical with embodiment one.
Service ASN-GW wishes to reduce the occupation proportion of own resource owing to reasons such as Operation and Maintenance, or find that own resource has reached threshold value, and the load that also has among the neighboring AS N-GW is low weight, so ASN-GW initiatively initiates switching flow, send handoff request to serving BS broadcasts, require serving BS broadcasts that part MSS is switched in the continuous BS of other ASN-GW.As shown in Figure 7, be that gateway is initiatively initiated the schematic flow sheet that switches, mainly may further comprise the steps:
S31, service ASN-GW judges whether the own resource occupancy has reached threshold value, if reach, if execution in step S32 is not then continue judgement.
S32, service ASN-GW decision is transferred to sub-load among the relevant ASN-GW, selects relevant ASN-GW to form and recommends the intended gateway tabulation.
S33, service ASN-GW initiatively send to serving BS broadcasts and require handoff request, require serving BS broadcasts that part MSS is switched among the relevant ASN-GW, and this requires to comprise in the handoff request target ASN-GW tabulation of recommendation and the percentage that switches mobile subscriber station.
S34, serving BS broadcasts receives the described handoff request that requires, and need to determine the MSS of switching, sends handoff request to it;
S35, MSS initiates to switch indication to serving BS broadcasts.
S36 after serving BS broadcasts is received described switching indication, selects one as target ASN-GW in the target ASN-GW of described recommendation tabulation, and the information of described intended gateway added to switch sends to service ASN-GW in the indication.
S37, service ASN-GW send the switching indication to the above-mentioned target ASN-GW that chooses after receiving the switching indication of serving BS broadcasts transmission.
S38, the beginning switching flow.
As shown in Figure 8, be the communication system of the present invention's one better embodiment, this communication system comprises user terminal, base station, a plurality of gateway A SN-GW, and a gateway in wherein a plurality of gateways is as service ASN-GW.This service ASN-GW comprises that receiving element, judging unit, processing unit, retransmission unit, first detecting unit, second detecting unit, selected cell, resource threshold are provided with the unit, and wherein, retransmission unit comprises that further counter and frequency threshold value are provided with device.
This communication system is in communication system, for in time adjusting the load of each associated gateway, balanced well load, the assurance system runs well, improve system effectiveness, when more or service ASN-GW resource is nervous when traffic carrying capacity, can in time carry out business forwarding between a plurality of gateways, its groundwork is as described below.
The receiving element of service ASN-GW receives from base station BS or from the access request of other ASN-GW, from the access request of base station or other ASN-GW, can be the access request message of user terminal, also can be that the switching of user terminal inserts request message.
When being the access request of user terminal (MSS) request initial network access, its course of work can mainly may further comprise the steps with reference to figure 5:
S11, the receiving element of service ASN-GW receive from serving BS or from the MSS access of other ASN-GW and ask.
S12, resource threshold is provided with the resources occupation rate threshold value of the gateway of unit setting, first detecting unit detects the own resource occupancy of current service gateway, whether the own resource occupancy of the current service gateway that described judgment unit judges first detecting unit detects has reached resource threshold is provided with the resources occupation rate threshold value that the unit is provided with, whether handle this MSS and insert request to determine processing unit, if do not reach threshold value, execution in step S17 then; If reach, execution in step S13 then.
S13, second detecting unit of service ASN-GW detect gateway and whether also have annexation with other gateway, if having, and this service ASN-GW has obtained the resource status of these neighboring ASs N-GW, then execution in step S14 by broadcasting; If no, execution in step S17 then.Because each gateway adopts periodic broadcasting to obtain the associated gateway resource situation in the present embodiment, therefore when receiving the access request, needn't go to obtain the associated gateway resource again, as long as use the last result who obtains that broadcasts.
S14, first detecting unit of service ASN-GW judges further whether the own resource occupancy is minimum, inserts request to determine whether own this MSS that handles, if first detecting unit judgement own resource occupancy is not minimum, execution in step S15 then; Occupancy is minimum if first detecting unit is judged own resource, notifier processes unit then, execution in step S17.
S15, selected cell select the lightest ASN-GW of load as intended gateway in relevant ASN-GW, and retransmission unit is transmitted to selected ASN-GW with the access request of MSS, and the counter in the retransmission unit increases by 1 with the hop count in the message.
S16, selected target ASN-GW receives the access request of MSS as gateway, counter in the retransmission unit judges whether hop count arrives frequency threshold value the hop count threshold value that device is provided with is set, if arrive execution in step S17, if there is not execution in step S12.
S17, the access request of the processing unit processes MSS of gateway is finished follow-up access and is handled.
As an improvement of the present invention,, increased above-mentioned hop count in the access request message that retransmission unit is transmitted in order to prevent the above-mentioned access request of unconfined mutual forwarding between the ASN-GW.The request of inserting whenever is forwarded once, and the counter hop count in the retransmission unit is all added 1, then no longer transmits after frequency threshold value is provided with the hop count threshold value that device is provided with when hop count reaches to arrive, and inserts MSS by last ASN-GW.This hop count threshold value can be used as the operation parameter in the unified configuration of whole network.
If the access request that gateway receives is that then its course of work can mainly may further comprise the steps with reference to figure 6 from the MSS handoff request of other service ASN-GW:
S21, the receiving element of service ASN-GW receive from serving BS broadcasts or from the MSS handoff request of other ASN-GW, comprise target BS BS information in this handoff request.
S22, service ASN-GW judges whether to obtain the resource status of other associated gateway, if obtain, execution in step S23; If do not obtain, then request obtains the resource status of other associated gateway, execution in step S23 again.Wherein, other associated gateway are meant the ASN-GW that annexation is arranged with target BS.Therefore because from having carried target BS information in serving BS broadcasts or the handoff request, can obtain the information of the ASN-GW that is connected with target BS by certain method from other service ASN-GW.The definition of described resource status is identical with embodiment one.
S23, first detecting unit of service ASN-GW judges whether the own resource occupancy is minimum, switches to insert and asks to determine whether own this MSS that handles, if first detecting unit judgement own resource occupancy is not minimum, execution in step S24 then; Occupancy is minimum if first detecting unit is judged own resource, notifier processes unit then, execution in step S26.
S24, selected cell select the lightest ASN-GW of load as intended gateway in relevant ASN-GW, and retransmission unit is transmitted to selected ASN-GW with the switching access request of MSS, and the counter in the retransmission unit increases by 1 with the hop count in the message.
S25, selected target ASN-GW receives the handoff request of MSS, and the counter in the retransmission unit judges whether hop count arrives frequency threshold value the hop count threshold value that device is provided with is set, if arrive execution in step S26, if there is not execution in step S22.
S26, the handoff request of the processing unit processes MSS of gateway is finished follow-up access and is handled.
Among the above-mentioned steps S22, the method that request obtains the associated gateway resource status comprises step:
S221, service ASN-GW sends the resource status request message to described associated gateway, comprises himself resource status in its resource status request message.
S222, associated gateway is returned the resource status response message to above-mentioned ASN-GW, comprises the resource status of associated gateway in the returned packet.
In addition, behind step S21, can increase step:
S211, resource threshold is provided with the resources occupation rate threshold value of the gateway of unit setting, first detecting unit detects the own resource occupancy of current service gateway, whether the own resource occupancy of the current service gateway that described judgment unit judges first detecting unit detects has reached resource threshold is provided with the resources occupation rate threshold value that the unit is provided with, whether handle this MSS and insert request to determine processing unit, if reach, execution in step S22; If no, execution in step S26 then.
Like this, have only the load of an ASN-GW to arrive the ASN-GW that just later load (MSS/SS) can be distributed to other after the threshold value.
Present embodiment also can remove step S22, adopts periodic broadcasting to obtain associated gateway resource and load condition.
In sum, the inventive method and gateway can in time carry out business to be transmitted, with the load of timely each associated gateway of adjustment, and equally loaded well, the assurance system runs well, and improves system effectiveness.