[go: up one dir, main page]

CN1332534C - Method of supporting node monitoring mobile user state by service universal packet wireless service - Google Patents

Method of supporting node monitoring mobile user state by service universal packet wireless service Download PDF

Info

Publication number
CN1332534C
CN1332534C CNB2004100310019A CN200410031001A CN1332534C CN 1332534 C CN1332534 C CN 1332534C CN B2004100310019 A CNB2004100310019 A CN B2004100310019A CN 200410031001 A CN200410031001 A CN 200410031001A CN 1332534 C CN1332534 C CN 1332534C
Authority
CN
China
Prior art keywords
sgsn
user
state information
user state
timer
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.)
Expired - Fee Related
Application number
CNB2004100310019A
Other languages
Chinese (zh)
Other versions
CN1681252A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2004100310019A priority Critical patent/CN1332534C/en
Publication of CN1681252A publication Critical patent/CN1681252A/en
Application granted granted Critical
Publication of CN1332534C publication Critical patent/CN1332534C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种SGSN监控移动用户状态的方法,该方法利用一个定时器触发循环扫描任务,扫描SGSN中存储的所有移动用户的MM上下文,如果某用户处于STANDBY状态或者IDLE状态,就将SGSN设备当前时刻和此用户的MM上下文中记录的状态迁移时刻相比较,如果时间差大于或等于SGSN设备配置的定时参数,就分别启动隐式分离处理流程和用户删除流程。该方法无需在SGSN中设置大量用于监控移动用户状态的定时器,提高了SGSN设备的稳定性和集成度;并可以通过改变循环扫描任务的参数来降低此任务的开销,易于实现整体流量控制;同时,由于SGSN设备的数据更改可以立即生效,便于系统维护人员对SGSN所控制的移动用户进行集中管理。

Figure 200410031001

The invention discloses a method for SGSN to monitor the status of mobile users. The method utilizes a timer to trigger a cyclic scanning task to scan the MM contexts of all mobile users stored in the SGSN. If a user is in the STANDBY state or IDLE state, the SGSN The current time of the device is compared with the state transition time recorded in the user's MM context. If the time difference is greater than or equal to the timing parameter configured by the SGSN device, the implicit separation process and the user deletion process are respectively started. This method does not need to set a large number of timers for monitoring the status of mobile users in the SGSN, which improves the stability and integration of the SGSN equipment; and can reduce the overhead of this task by changing the parameters of the cycle scanning task, and it is easy to realize the overall flow control ; At the same time, because the data change of the SGSN equipment can take effect immediately, it is convenient for the system maintenance personnel to carry out centralized management on the mobile users controlled by the SGSN.

Figure 200410031001

Description

服务通用分组无线业务支持节点监控移动用户状态的方法Method for monitoring mobile user state by serving general packet radio service support node

技术领域technical field

本发明涉及通用分组无线业务(General Packet Radio Service,GPRS)技术,特别是涉及一种服务GPRS支持节点(Serving GPRS Support Node,SGSN)监控移动用户状态的方法。The present invention relates to a general packet radio service (General Packet Radio Service, GPRS) technology, in particular to a method for a Serving GPRS Support Node (Serving GPRS Support Node, SGSN) to monitor the state of a mobile user.

背景技术Background technique

目前,应用于高速上网的GPRS网络和宽带码分多址(Wide CodeDivided Multiple Address,WCDMA)网络正方兴未艾,尤其是GPRS网络,已经由中国移动实现了大规模商用。At present, the GPRS network and Wide Code Divided Multiple Address (WCDMA) network applied to high-speed Internet access are just in the ascendant, especially the GPRS network, which has already been commercialized on a large scale by China Mobile.

GPRS是在现有的GSM移动通信系统基础上发展起来的一种移动分组数据业务。GPRS通过在GSM数字移动通信网络中引入分组交换的功能实体,完成分组方式的数据传输。GPRS系统可以看作是在原有的GSM电路交换系统基础上进行的业务扩充,以支持移动用户利用分组数据移动终端接入Internet或其它分组数据网络的需求。GPRS is a mobile packet data service developed on the basis of the existing GSM mobile communication system. GPRS completes data transmission in packet mode by introducing the functional entity of packet switching in the GSM digital mobile communication network. The GPRS system can be regarded as a service expansion based on the original GSM circuit switching system to support the needs of mobile users to use packet data mobile terminals to access the Internet or other packet data networks.

无线协议体系本身非常复杂,需要完成从用户的无线接入到有线交换的全部功能,为了降低设备的复杂性,第三代合作伙伴计划(The 3rd GenerationPartnership Project,3GPP)协议将接口进行了分层处理,采用MS/UTRAN/SGSN/GGSN等多个不同类别的设备来系统完成整个无线通讯。The wireless protocol system itself is very complicated, and needs to complete all functions from user wireless access to wired switching. In order to reduce the complexity of the equipment, the 3rd Generation Partnership Project (The 3rd Generation Partnership Project, 3GPP) protocol divides the interface Layer processing, using multiple different types of equipment such as MS/UTRAN/SGSN/GGSN to complete the entire wireless communication system.

图1是GPRS网络构架的示意图,从图1中可以看出,GPRS系统包括GPRS核心网和GSM系统,GPRS核心网包括SGSN和网关GPRS支持节点(Gateway GPRS Support Node,GGSN)等节点。SGSN的一个主要作用就是为本SGSN服务区域的MS提供移动性管理功能。Fig. 1 is the schematic diagram of GPRS network architecture, as can be seen from Fig. 1, GPRS system comprises GPRS core network and GSM system, and GPRS core network comprises nodes such as SGSN and gateway GPRS support node (Gateway GPRS Support Node, GGSN). One of the main functions of the SGSN is to provide mobility management functions for MSs in the service area of the SGSN.

分层处理虽然降低了各个设备的复杂性,但引入另外一个问题,就是必须保证不同设备之间的用户状态/设备资源的一致性,特别是核心交换设备SGSN和移动用户MS之间的状态一致。Although layered processing reduces the complexity of each device, it introduces another problem, which is to ensure the consistency of user status/device resources between different devices, especially the consistency of the state between the core switching device SGSN and the mobile user MS .

移动用户的状态存储在移动管理(Mobile Management,MM)上下文中,在GPRS系统中,移动用户有三种状态:空闲(IDLE)、待命(STANDBY)和准备(READY)。IDLE表示移动用户未附着在GPRS移动管理上的状态;STANDBY表示移动用户附着在GPRS移动管理上,但没有数据传输的状态;READY表示移动用户附着在GPRS移动管理上,并有数据传输的状态。The state of the mobile user is stored in the Mobile Management (MM) context. In the GPRS system, the mobile user has three states: idle (IDLE), standby (STANDBY) and ready (READY). IDLE means that the mobile user is not attached to the GPRS mobile management; STANDBY means that the mobile user is attached to the GPRS mobile management, but there is no data transmission state; READY means that the mobile user is attached to the GPRS mobile management and has the state of data transmission.

为了使SGSN中的用户状态和实际的MS状态保持一致,3GPP协议引入了两个用户监控定时器:移动可达定时器和清除(PURGE)定时器。In order to keep the user state in the SGSN consistent with the actual MS state, the 3GPP protocol introduces two user monitoring timers: mobile reachable timer and PURGE timer.

移动可达定时器监控SGSN中的用户状态和实际的MS状态是否一致,如果MS由于异常关机、电源耗尽或者其它原因导致MS不再及时通知网络执行正常的分离流程,就要求SGSN触发MS隐式分离流程。The mobile reachable timer monitors whether the user state in the SGSN is consistent with the actual MS state. If the MS does not notify the network in time to perform the normal separation process due to abnormal shutdown, power exhaustion or other reasons, the SGSN is required to trigger the MS to hide. separation process.

当用户进入READY状态时,移动可达定时器停止。当MS状态返回到STANDBY时,移动可达定时器重启动并开始。如果移动可达定时器超时,SGSN启动隐式分离流程。When the user enters the READY state, the mobile reachable timer stops. When the MS state returns to STANDBY, the mobile reachable timer is restarted and started. If the mobile reachable timer expires, the SGSN starts the implicit detach procedure.

隐式分离流程是将SGSN中用户的MM上下文中的用户状态转换为IDLE,SGSN可以立即删除用户的MM上下文,也可以将用户的MM上下文暂时保留一段时间。The implicit separation process is to convert the user state in the user's MM context in the SGSN to IDLE. The SGSN can delete the user's MM context immediately, or temporarily retain the user's MM context for a period of time.

PURGE定时器保证SGSN的用户数据和位置归属寄存器(HomeLocation Register,HLR)中保持一致。The PURGE timer ensures that the user data of the SGSN is consistent with the location attribution register (HomeLocation Register, HLR).

如上所述,SGSN在隐式分离之后,可以立即删除用户的MM上下文,也可以将用户的MM上下文保留一段时间。如果SGSN要立即删除用户的MM上下文,则启动PURGE定时器,在PURGE定时器未超时期间暂时保留已经分离的用户的MM上下文,当PURGE定时器超时,SGSN启动用户删除流程。As mentioned above, after the implicit separation, the SGSN can immediately delete the user's MM context, or keep the user's MM context for a period of time. If the SGSN wants to delete the user's MM context immediately, it starts the PURGE timer, and temporarily reserves the separated user's MM context before the PURGE timer expires. When the PURGE timer expires, the SGSN starts the user deletion process.

用户删除流程是SGSN通知HLR,等到HLR应答后,删除此用户的MM上下文,并清理相关资源。The process of user deletion is that SGSN notifies HLR, and after HLR responds, deletes the MM context of this user and cleans up related resources.

图2是现有技术SGSN监控用户状态的方法流程图,从图2中可以看出,该方法包括如下步骤:Fig. 2 is the method flow chart of prior art SGSN monitoring subscriber status, as can be seen from Fig. 2, this method comprises the following steps:

步骤201:SGSN检测每个用户的状态。Step 201: SGSN detects the status of each user.

步骤202:判断用户状态是否迁移到STANDBY,如果是,则转到步骤203;否则结束。Step 202: Judging whether the user status has shifted to STANDBY, if yes, go to step 203; otherwise, end.

步骤203:为该用户启动一个移动可达定时器。Step 203: Start a mobile reachable timer for the user.

步骤204:判断用户状态是否迁移到READY,如果是,则转到步骤205;否则转到步骤206。Step 204: Judging whether the user status has shifted to READY, if yes, go to step 205; otherwise, go to step 206.

步骤206:SGSN停止该用户的移动可达定时器,然后结束。Step 206: The SGSN stops the mobile reachable timer of the user, and then ends.

步骤206:判断移动可达定时器是否超时,如果是,则转到步骤207;否则回到步骤204。Step 206: Determine whether the mobile reachable timer has expired, if yes, go to step 207; otherwise, go back to step 204.

步骤207:SGSN停止该移动可达定时器,并启动隐式分离流程,将用户状态迁移到IDLE。Step 207: The SGSN stops the mobile reachable timer, starts an implicit detach procedure, and transfers the user state to IDLE.

步骤208:判断用户的MS或SGSN是否支持SUPER CHARGE特性,如果是,则转到步骤209;否则转到步骤210。Step 208: Determine whether the user's MS or SGSN supports the SUPER CHARGE feature, if yes, go to step 209; otherwise go to step 210.

步骤209:SGSN暂时保留MM上下文,然后结束。Step 209: The SGSN temporarily reserves the MM context, and then ends.

步骤210:SGSN为该用户启动一个PURGE定时器。Step 210: SGSN starts a PURGE timer for the user.

步骤211:判断用户状态是否迁移到READY,如果是,则转到步骤214;否则转到步骤212。Step 211: Judging whether the user status has shifted to READY, if yes, go to step 214; otherwise, go to step 212.

步骤212:判断PURGE定时器是否超时,如果是,则转到步骤213;否则回到步骤211。Step 212: Determine whether the PURGE timer has expired, if yes, go to step 213; otherwise, go back to step 211.

步骤213:SGSN通知HLR,并在接收到HLR应答之后,删除用户的MM和PDP上下文,并清理相关资源,然后结束。Step 213: The SGSN notifies the HLR, and after receiving the HLR response, deletes the user's MM and PDP context, cleans up related resources, and ends.

步骤214:SGSN停止PURGE定时器,然后结束。Step 214: The SGSN stops the PURGE timer, and then ends.

从现有技术的技术方案可以看出,SGSN需要为每一个处于非READY状态的MS启动一个定时器。但是该方法在SGSN负荷较大的状态下,启动的定时器的数量非常巨大。根据中国第三代移动通信技术专家组制定的业务模型中的一个典型的统计估算数据,对于一个用户容量为5万的SGSN,SGSN设备控制的处于非READY状态的MS约为48600个,那么,SGSN需要同时启动约48600个定时器,来实现其对非READY状态的移动用户的监控。It can be seen from the technical solutions of the prior art that the SGSN needs to start a timer for each MS in the non-READY state. However, this method starts a very large number of timers in a state where the SGSN is heavily loaded. According to a typical statistical estimation data in the business model formulated by China's third-generation mobile communication technology expert group, for an SGSN with a user capacity of 50,000, the number of MSs in the non-READY state controlled by the SGSN equipment is about 48,600, then, SGSN needs to start about 48600 timers at the same time to realize its monitoring of mobile users in non-READY state.

在实际应用中,现有技术存在很多缺陷:In actual application, there are many defects in the prior art:

首先,定时器消耗大量系统资源,并阻碍SGSN设备集成度的进一步提高。在SGSN设备中,如果同时启动大量定时器,将对系统的稳定性带来巨大且不可预知的风险,而且,设置大量定时器必将造成无法进一步缩小SGSN设备的体积,因此不利于进一步提高SGSN设备的集成度。First of all, the timer consumes a lot of system resources and hinders the further improvement of the integration of SGSN equipment. In SGSN equipment, if a large number of timers are started at the same time, it will bring huge and unpredictable risks to the stability of the system. Moreover, setting a large number of timers will inevitably make it impossible to further reduce the size of the SGSN equipment, so it is not conducive to further improving the SGSN The degree of integration of the device.

其次,使用大量定时器不利于集中管理。由于定时器在用户状态迁移时已经启动,因此当SGSN维护人员需要动态调整定时器的超时时长,已经启动的定时器无法立即对此调整生效,这将导致在设备人员更改SGSN设备的定时器超时时长后,SGSN设备中的定时器的超时时长不一致。Second, using a large number of timers is not conducive to centralized management. Since the timer has already been started when the user state transitions, when the SGSN maintenance personnel need to dynamically adjust the timeout period of the timer, the timer that has been started cannot take effect immediately for this adjustment, which will cause the timer to time out when the equipment personnel change the SGSN device After the timeout period, the timeout period of the timer in the SGSN device is inconsistent.

第三,使用大量定时器不利于SGSN从整体上进行流量控制。由于对用户的监控任务属于低优先级任务,所以在SGSN设备负荷突然增加时,需要将监控任务占用的资源分配给具有高优先级任务,如流量控制任务,但是如果定时器已经启动,就无法回收监控任务占用的资源,分配给诸如流量控制任务之类的高优先级任务,也就无法对这部分监控流程进行流量控制。Third, the use of a large number of timers is not conducive to the flow control of the SGSN as a whole. Since the monitoring tasks for users are low-priority tasks, when the load of SGSN equipment suddenly increases, the resources occupied by the monitoring tasks need to be allocated to tasks with high priority, such as flow control tasks, but if the timer has been started, it cannot Reclaim the resources occupied by monitoring tasks and allocate them to high-priority tasks such as flow control tasks, so it is impossible to control the flow of this part of the monitoring process.

发明内容Contents of the invention

本发明的主要目的在于提供一种SGSN监控移动用户状态的方法,该方法减少移动用户状态监控任务所占用的系统资源。The main purpose of the present invention is to provide a method for SGSN to monitor the status of mobile users, which reduces the system resources occupied by the task of monitoring the status of mobile users.

本发明的目的是通过如下技术方案实现的:The purpose of the present invention is achieved through the following technical solutions:

一种服务通用分组无线业务支持节点(SGSN)监控移动用户状态的方法,包括如下步骤:A method for serving a general packet radio service support node (SGSN) to monitor a mobile subscriber state, comprising the steps:

A、预先设置用于定期触发SGSN扫描包含用户状态和用户状态切换时刻的用户状态信息的定时器,用于判断SGSN是否启动隐式分离流程的移动可达定时参数,用于启动用户删除流程的清除定时参数,和用于指向用户状态信息在SGSN中存储位置的位置指针;A. Pre-set the timer used to periodically trigger the SGSN to scan the user status information including the user status and the user status switching time, the mobile reachable timing parameter for judging whether the SGSN starts the implicit separation process, and the timing parameter for starting the user deletion process Clear the timing parameters and the location pointer used to point to the storage location of the user state information in the SGSN;

B、判断定时器是否到达定时时间,如果是,则转到步骤C;否则,返回步骤B;B. Judging whether the timer has reached the timing time, if yes, then go to step C; otherwise, return to step B;

C、SGSN扫描位置指针指向的用户状态信息,如果用户状态为待命,则执行步骤D;如果用户状态为空闲,则执行步骤E;如果用户状态为准备,则位置指针指向下一个用户状态信息,然后返回步骤C;C, SGSN scans the user status information pointed to by the location pointer, if the user status is standby, then perform step D; if the user status is idle, then perform step E; if the user status is ready, then the location pointer points to the next user status information, Then return to step C;

D、判断当前时刻和用户状态切换时刻的时间差是否大于或等于预先设置的移动可达定时参数,如果是,则SGSN启动隐式分离流程,位置指针指向下一个用户状态信息,然后返回步骤C;否则,位置指针指向下一个用户状态信息,然后返回步骤C;D. Judging whether the time difference between the current moment and the user state switching moment is greater than or equal to the preset mobile reachable timing parameter, if yes, the SGSN starts the implicit separation process, the location pointer points to the next user state information, and then returns to step C; Otherwise, the location pointer points to the next user state information, and then returns to step C;

E、判断当前时刻和用户状态切换时刻的时间差是否大于或等于预先设置的清除定时参数,如果是,则SGSN启动用户删除流程,位置指针指向下一个用户状态信息,然后返回步骤C;否则,位置指针指向下一个用户状态信息,然后返回步骤C。E. Judging whether the time difference between the current moment and the user state switching moment is greater than or equal to the preset clearing timing parameter, if yes, the SGSN starts the user deletion process, the location pointer points to the next user state information, and then returns to step C; otherwise, the location The pointer points to the next user state information, and then returns to step C.

步骤A进一步包括:预先设置用于限定SGSN扫描的用户状态信息数的扫描步长;Step A further includes: pre-setting the scanning step size for limiting the number of user status information scanned by the SGSN;

步骤B和步骤C之间进一步包括:判断SGSN是否扫描了扫描步长所限定的用户状态信息数,如果是,则在内存中存储位置指针,回到步骤B;否则转到步骤C。Between step B and step C, further include: judging whether the SGSN has scanned the number of user state information limited by the scan step size, if yes, storing the location pointer in memory, and returning to step B; otherwise, go to step C.

所述用户状态信息是用户的移动管理上下文。The user state information is the user's mobility management context.

本发明的方法是利用一个定时器触发循环扫描任务,扫描SGSN中存储的所有移动用户的MM上下文,如果某用户处于STANDBY状态或者IDLE状态,就将SGSN设备当前时刻和此用户的MM上下文中记录的状态迁移时刻相比较,如果时间差超过SGSN设备配置的定时器的超时时长,就分别启动隐式分离处理流程和用户删除流程。而现有技术的方法是对每一个状态进入STANDBY或IDLE的移动用户分配一个专用的定时器,所以,需要在SGSN设备中同时启动大量定时器,不仅给系统的稳定性带来很大风险,也不利于SGSN设备进一步提高集成度。从以上的对比可以看出,本发明的方法不仅可以提高系统的稳定性,还有利于提高SGSN设备的集成度。The method of the present invention utilizes a timer to trigger a cycle scanning task, scans the MM contexts of all mobile users stored in the SGSN, if a certain user is in the STANDBY state or IDLE state, the current moment of the SGSN device and the MM context of the user are recorded Compared with the state transition time, if the time difference exceeds the timeout period of the timer configured by the SGSN device, the implicit separation process and the user deletion process are respectively started. And the method of prior art is to each state enters the mobile user of STANDBY or IDLE to distribute a dedicated timer, so, need to start a large amount of timers simultaneously in SGSN equipment, not only brings very big risk to the stability of the system, It is also unfavorable for the SGSN equipment to further improve the integration level. It can be seen from the above comparison that the method of the present invention can not only improve the stability of the system, but also help to improve the integration degree of the SGSN equipment.

本发明的方法在每次执行循环扫描任务时,都采用SGSN设备当前配置的定时参数,所以设备维护人员对定时参数的修改能够立即生效。而在现有技术的方法中,只要定时器已经启动,这部分定时器的参数就不能改变,所以,设备维护人员在更改定时器参数的时候,无法进行整体性更改。从以上的对比可以看出,本发明的方法提高了SGSN监控用户状态的实时性。The method of the present invention adopts the timing parameter currently configured by the SGSN device every time the cycle scanning task is executed, so the modification of the timing parameter by the device maintenance personnel can take effect immediately. However, in the method of the prior art, as long as the timer has been started, the parameters of this part of the timer cannot be changed. Therefore, when the equipment maintenance personnel change the timer parameters, they cannot make overall changes. It can be seen from the above comparison that the method of the present invention improves the real-time performance of SGSN monitoring user status.

本发明的方法可以通过修改循环扫描任务的扫描参数和定时触发器的时长来降低本任务所带来的开销,从而支援SGSN设备实施流量控制。而在现有技术的方法中,如果定时器已经启动,SGSN就无法对这部分流程进行流量控制,在SGSN负荷增大的时候,不利于SGSN实施流量控制。从以上对比可以看出,本发明的方法有利于SGSN在必要时实施整体的流量控制。The method of the present invention can reduce the overhead brought by this task by modifying the scanning parameters of the cyclic scanning task and the duration of the timing trigger, thereby supporting the SGSN equipment to implement flow control. However, in the prior art method, if the timer has already been started, the SGSN cannot perform flow control on this part of the process, and it is not conducive to the SGSN to implement flow control when the SGSN load increases. It can be seen from the above comparison that the method of the present invention is beneficial for the SGSN to implement overall flow control when necessary.

此外,在本发明的方法中,移动用户的状态切换时刻在MM上下文中保存,这样,可以通过备份MM上下文来备份用户的状态切换时刻,在SGSN设备发生故障时,可以从备份的MM上下文中恢复用户的状态切换时刻。而在现有技术的方法中,如果SGSN设备发生故障,已经启动的定时器的信息全部丢失,无法进行恢复,虽然可以通过批量重启定时器来避免该问题,但是批量重启又产生批量超时的问题。从以上的对比可以看出,本发明的方法有利于保证监控数据的安全性和完整性。In addition, in the method of the present invention, the state switching time of the mobile user is stored in the MM context, so that the state switching time of the user can be backed up by backing up the MM context, and when the SGSN equipment fails, it can be retrieved from the backed up MM context Restores the user's state transition moment. And in the method of prior art, if SGSN equipment breaks down, the information of the timer that has started is all lost, can't recover, although can avoid this problem by restarting timer in batches, but restarting in batches produces batch timeout problem again . It can be seen from the above comparison that the method of the present invention is beneficial to ensure the security and integrity of monitoring data.

附图说明Description of drawings

图1是GPRS系统构架的示意图。Figure 1 is a schematic diagram of the GPRS system architecture.

图2是SGSN利用移动可达定时器和PURGE定时器对移动用户状态进行监控的方法流程图。Fig. 2 is a flowchart of a method for SGSN to monitor the state of a mobile user by using a mobile reachable timer and a PURGE timer.

图3是根据本发明的SGSN利用定时器触发的循环扫描任务对移动用户状态进行监控的方法流程图。Fig. 3 is a flowchart of a method for monitoring the state of a mobile user by the SGSN using a timer-triggered cycle scanning task according to the present invention.

图4是根据本发明的SGSN利用定时器触发的循环扫描任务对移动用户状态进行监控的示意图。Fig. 4 is a schematic diagram of the SGSN monitoring the state of the mobile user by using the cycle scanning task triggered by the timer according to the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更清楚,下面结合附图和具体实施方式对本发明作进一步描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

本发明的方法是设置一个定时器,也称定时触发器,定时触发一个循环扫描任务,该循环扫描任务按照一定的步长扫描SGSN设备中用户的MM上下文,如果某用户处于STANDBY状态或者IDLE状态,就将SGSN设备当前时刻和此用户的MM上下文中记录的状态迁移时刻相比较,如果时间差超过SGSN设备配置的定时参数,就分别启动隐式分离处理流程和用户删除流程。The method of the present invention is to set a timer, also known as a timing trigger, to trigger a cyclic scanning task regularly. The cyclic scanning task scans the MM context of the user in the SGSN device according to a certain step size. If a certain user is in the STANDBY state or the IDLE state , the current time of the SGSN device is compared with the state transition time recorded in the MM context of the user, and if the time difference exceeds the timing parameter configured by the SGSN device, the implicit separation process and the user deletion process are respectively started.

本发明实现的前提是:在某用户由其它状态迁移到STANDBY或IDLE时,SGSN在此用户的MM上下文中记录状态迁移的时间。The premise of the present invention is that when a certain user transitions from other states to STANDBY or IDLE, the SGSN records the state transition time in the MM context of the user.

本发明的方法和现有技术的方法最大的区别在于,现有技术对设备中每个用户的状态进行单独监控,而本发明的方法是对SGSN设备中所有用户的状态进行整体监控。The biggest difference between the method of the present invention and the method of the prior art is that the prior art monitors the status of each user individually in the device, while the method of the present invention monitors the status of all users in the SGSN device as a whole.

图3是根据本发明的SGSN监控用户状态的方法流程图,从图3中可以看出,该方法包括如下步骤:Fig. 3 is the method flowchart according to SGSN monitoring user state of the present invention, as can be seen from Fig. 3, this method comprises the following steps:

步骤301:SGSN设置移动可达定时参数和清除(PURGE)定时参数。Step 301: The SGSN sets the mobile reachable timing parameter and the PURGE timing parameter.

移动可达定时参数的对应现有技术中移动可达定时器的超时时长;PURGE定时参数对应现有技术中PURGE定时器的超时时长。The mobile reachable timing parameter corresponds to the timeout duration of the mobile reachable timer in the prior art; the PURGE timing parameter corresponds to the timeout duration of the PURGE timer in the prior art.

步骤302:SGSN设置一个定时任务,也称为一个循环扫描任务,该扫描任务用于扫描SGSN中所有用户的MM上下文。Step 302: The SGSN sets a scheduled task, also called a cyclic scan task, which is used to scan the MM contexts of all users in the SGSN.

设置该扫描任务的扫描步长,扫描步长是单次扫描的用户个数,扫描步长根据网络的具体需要而定,当SGSN设备负荷增加时,为了降低本流程所带来的开销,支援SGSN设备的整体流量控制,可以减小扫描步长,或者通过将扫描步长设为0来暂停此循环扫描任务;当SGSN设备负荷减少时,可适当增大扫描步长。Set the scan step of the scan task. The scan step is the number of users in a single scan. The scan step depends on the specific needs of the network. When the load of the SGSN device increases, in order to reduce the overhead caused by this process, support The overall flow control of the SGSN device can reduce the scan step size, or suspend the cycle scan task by setting the scan step size to 0; when the load of the SGSN device decreases, the scan step size can be appropriately increased.

步骤303:SGSN中设置一个定时触发器,用于定期触发步骤302启动的定时任务。Step 303: A timing trigger is set in the SGSN for periodically triggering the timing task started in step 302.

该定时触发器触发循环扫描任务,每次触发之后扫描任务根据扫描步长来扫描一定数量移动用户的MM上下文,扫描完毕之后任务停止,等待定时触发器的下一次触发信号。The timing trigger triggers a cyclic scanning task. After each trigger, the scanning task scans the MM contexts of a certain number of mobile users according to the scanning step. After the scanning is completed, the task stops and waits for the next trigger signal of the timing trigger.

定时触发器的值是循环扫描任务的扫描时间间隔,扫描时间间隔和步骤302确定的扫描步长结合在一起,决定扫描任务的扫描速度,扫描速度也根据网络的具体情况而定。需要注意的是,扫描时间间隔不应小于扫描步长所需的最短扫描时间。The value of the timing trigger is the scanning time interval of the cyclic scanning task. The scanning time interval and the scanning step determined in step 302 are combined to determine the scanning speed of the scanning task. The scanning speed is also determined according to the specific conditions of the network. It should be noted that the scan time interval should not be less than the minimum scan time required by the scan step.

优选地,扫描时间间隔为0.1秒,扫描步长为20。Preferably, the scanning time interval is 0.1 second, and the scanning step is 20.

步骤304:定时触发器发出触发信号,SGSN启动循环扫描任务。Step 304: the timing trigger sends out a trigger signal, and the SGSN starts a cyclic scanning task.

步骤305:SGSN扫描位置指针指向的存储在SGSN设备内存中的用户MM上下文。Step 305: The SGSN scans the user MM context pointed to by the location pointer and stored in the memory of the SGSN device.

步骤306:判断用户的状态,如果是READY,则转到步骤3 13;如果是STANDBY,则转到步骤307;如果是IDLE,则转到步骤309。Step 306: judge the state of the user, if it is READY, then go to step 313; if it is STANDBY, then go to step 307; if it is IDLE, then go to step 309.

步骤307:比较当前时刻和此用户的MM上下文中记录的状态从READY迁移到STANDBY的时刻,计算当前时刻和状态迁移时刻的时间差。Step 307: Comparing the current time with the time when the user's MM context records the state transition from READY to STANDBY, and calculating the time difference between the current time and the state transition time.

步骤308:判断时间差是否大于或等于SGSN设备配置的移动可达定时参数,如果是,则转到步骤309;否则转到步骤313。Step 308: Judging whether the time difference is greater than or equal to the mobile reachable timing parameter configured by the SGSN device, if yes, go to step 309; otherwise, go to step 313.

步骤309:启动隐式分离流程,将该用户的状态从STANDBY迁移到IDLE,并设置用户的MM上下文的状态切换时刻为当前时刻,然后回到步骤305,继续扫描下一个用户的MM上下文。Step 309: start the implicit separation process, migrate the user's state from STANDBY to IDLE, and set the state switching time of the user's MM context as the current time, then return to step 305, and continue to scan the next user's MM context.

步骤310:比较当前时刻和此用户的MM上下文中记录的状态从STANDBY迁移到IDLE的时刻,计算当前时刻和状态迁移时刻的时间差。Step 310: Comparing the current moment with the moment when the user's state transitions from STANDBY to IDLE recorded in the MM context, and calculating the time difference between the current moment and the state transition moment.

步骤311:判断时间差是否大于或等于SGSN设备配置的PURGE定时参数,如果是,则转到步骤312;否则转到步骤313。Step 311: Judging whether the time difference is greater than or equal to the PURGE timing parameter configured by the SGSN device, if yes, go to step 312; otherwise, go to step 313.

步骤312:启动用户删除流程,SGSN通知HLR,并接收到HLR应答之后,删除该用户的MM上下文,然后回到步骤305,继续扫描下一个用户的MM上下文。Step 312: Start the user deletion process, the SGSN notifies the HLR, and after receiving the HLR response, deletes the MM context of the user, then returns to step 305, and continues to scan the MM context of the next user.

步骤313:位置指针指向当前用户MM上下文的下一个用户MM上下文,并判断本次扫描任务是否已经扫描了扫描步长设定数量的用户的MM上下文,如果是,转到步骤314;否则回到步骤305,继续扫描下一个用户的MM上下文。Step 313: The location pointer points to the next user MM context of the current user MM context, and judge whether the scanning task has scanned the MM contexts of users with the set number of scanning steps, if yes, go to step 314; otherwise, return to Step 305, continue to scan the MM context of the next user.

步骤314:将位置指针存储在内存中,然后等待定时触发器的触发信号,转到步骤304。Step 314: Store the location pointer in the memory, then wait for the trigger signal of the timing trigger, and go to step 304.

步骤301到步骤303是SGSN对循环扫描任务的配置,步骤的执行没有先后顺序,可以并行执行,也可以按照任意顺序先后执行。Steps 301 to 303 are the SGSN's configuration of the cyclic scanning task. The execution of the steps has no sequence and can be executed in parallel or sequentially in any order.

图4是根据本发明的SGSN利用定时器触发的循环扫描任务对移动用户状态进行监控的示意图,从图4中可以看出,SGSN按照步长每次扫描一个区间中用户的MM上下文,扫描步长是一次扫描的用户数,当本次扫描完成之后,扫描任务结束,等待定时触发器的触发信号。从图4中还可以看出,用户的MM上下文中包括一个存储状态切换时刻的字段,当用户状态发生变化时,更新此字段为当前时刻。Fig. 4 is the synoptic diagram that SGSN utilizes the cyclic scanning task triggered by the timer to monitor the state of mobile users according to the present invention. As can be seen from Fig. 4, SGSN scans the MM context of users in an interval according to the step size at a time, and the scanning step The length is the number of users in one scan. When the scan is completed, the scan task ends and waits for the trigger signal of the timing trigger. It can also be seen from FIG. 4 that the user's MM context includes a field storing the state switching time. When the user state changes, this field is updated to the current time.

在本发明的方法中,移动用户的状态切换时刻保存在MM上下文中,可以通过SGSN的备份机制将MM上下文即时备份到备板上,这样,即使SGSN设备中业务处理单元发生故障,仍然可以从备份的MM上下文中恢复出每个移动用户的超时时刻,以保证隐式分离流程和用户删除流程的正常进行。In the method of the present invention, the state switching of the mobile user is stored in the MM context at all times, and the MM context can be backed up to the standby board in real time through the backup mechanism of the SGSN. The timeout time of each mobile user is recovered from the backup MM context, so as to ensure the normal progress of the implicit separation process and user deletion process.

以上所述的实施例是本发明在GPRS系统中的应用,但是本发明不仅限于应用在GPRS系统中,还可以应用于其它移动通信系统,例如WCDMA系统。The above-mentioned embodiment is the application of the present invention in the GPRS system, but the present invention is not limited to the application in the GPRS system, and can also be applied to other mobile communication systems, such as the WCDMA system.

在具体的实施过程中可对根据本发明的方法进行适当的改进,以适应具体情况的具体需要。因此可以理解,根据本发明的具体实施方式只是起示范作用,并不用以限制本发明的保护范围。Appropriate improvements can be made to the method according to the present invention in the specific implementation process to meet the specific needs of specific situations. Therefore, it can be understood that the specific implementation manners according to the present invention are only exemplary, and are not intended to limit the protection scope of the present invention.

Claims (3)

1, a kind of method of service universal grouping wireless business supporting node SGSN monitoring mobile subscriber state is characterized in that this method comprises the steps:
A, set in advance and be used for regularly triggering the timer that SGSN scanning comprises the user state information of User Status and User Status switching instant, be used to judge whether SGSN starts moving of implicit detach flow process and can reach timing parameters, being used to start the user deletes the removing timing parameters of flow process and is used in reference to position indicator pointer to user state information memory location in SGSN;
B, judge whether timer arrives timing, if then forward step C to; Otherwise, return step B;
The user state information of C, SGSN scanning position pointed, if User Status for awaiting orders, execution in step D then; If User Status is idle, then execution in step E; If User Status is preparation, then position indicator pointer points to next user state information, returns step C then;
Whether D, the time difference of judging current time and User Status switching instant can reach timing parameters more than or equal to moving of setting in advance, if then SGSN starts the implicit detach flow process, position indicator pointer points to next user state information, returns step C then; Otherwise position indicator pointer points to next user state information, returns step C then;
E, judge current time and User Status switching instant time difference whether more than or equal to the removing timing parameters that sets in advance, if then SGSN starts the user and deletes flow process, position indicator pointer points to next user state information, returns step C then; Otherwise position indicator pointer points to next user state information, returns step C then.
2, the method for SGSN according to claim 1 monitoring mobile subscriber state is characterized in that steps A further comprises: the scanning step that sets in advance the user state information number that is used to limit SGSN scanning;
Further comprise between step B and the step C: judge whether SGSN has scanned the user state information number that scanning step limited, if then memory location pointer in internal memory is got back to step B; Otherwise forward step C to.
3, the method for SGSN monitoring mobile subscriber state according to claim 1 and 2 is characterized in that described user state information is user's a mobile management context.
CNB2004100310019A 2004-04-05 2004-04-05 Method of supporting node monitoring mobile user state by service universal packet wireless service Expired - Fee Related CN1332534C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100310019A CN1332534C (en) 2004-04-05 2004-04-05 Method of supporting node monitoring mobile user state by service universal packet wireless service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100310019A CN1332534C (en) 2004-04-05 2004-04-05 Method of supporting node monitoring mobile user state by service universal packet wireless service

Publications (2)

Publication Number Publication Date
CN1681252A CN1681252A (en) 2005-10-12
CN1332534C true CN1332534C (en) 2007-08-15

Family

ID=35067689

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100310019A Expired - Fee Related CN1332534C (en) 2004-04-05 2004-04-05 Method of supporting node monitoring mobile user state by service universal packet wireless service

Country Status (1)

Country Link
CN (1) CN1332534C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179838B (en) * 2006-11-10 2012-03-21 华为技术有限公司 Network concealed separation method of subscriber terminal
CN101247611B (en) * 2007-02-14 2010-10-20 华为技术有限公司 Method and system for state management of user equipment
CN101883313B (en) * 2009-05-07 2014-10-01 中国移动通信集团河南有限公司 Mobile network element monitoring and control method and monitoring center
CN101932035B (en) * 2009-06-19 2014-06-11 中兴通讯股份有限公司 Method for improving single downlink service performance of general packet radio service system and system
CN102884832B (en) * 2011-05-11 2015-06-03 华为技术有限公司 Network congestion processing method and system
CN102291295B (en) * 2011-07-29 2014-11-05 电信科学技术研究院 Management method and equipment for packet data network (PDN) connection
WO2014172896A1 (en) 2013-04-26 2014-10-30 华为技术有限公司 Data transmission method, base station and wireless communications device
CN113723876A (en) * 2021-08-17 2021-11-30 上海东普信息科技有限公司 Logistics timeliness management and control method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997037504A1 (en) * 1996-04-01 1997-10-09 Nokia Telecommunications Oy Controlling operating states of a mobile station in a packet radio system
CN1273749A (en) * 1998-06-26 2000-11-15 诺基亚网络有限公司 Management of packet-switched connections in a communication network
EP1313340A1 (en) * 2001-11-12 2003-05-21 Lucent Technologies Inc. Mobile telecommunications system with improved management of its radio resources
CN1451248A (en) * 2000-08-25 2003-10-22 诺基亚公司 Monitoring connection to user terminal in telecommuncations system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997037504A1 (en) * 1996-04-01 1997-10-09 Nokia Telecommunications Oy Controlling operating states of a mobile station in a packet radio system
CN1273749A (en) * 1998-06-26 2000-11-15 诺基亚网络有限公司 Management of packet-switched connections in a communication network
CN1451248A (en) * 2000-08-25 2003-10-22 诺基亚公司 Monitoring connection to user terminal in telecommuncations system
EP1313340A1 (en) * 2001-11-12 2003-05-21 Lucent Technologies Inc. Mobile telecommunications system with improved management of its radio resources

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GPRS网络中的移动性管理 柳蕾,电信快报,第3卷 2003 *

Also Published As

Publication number Publication date
CN1681252A (en) 2005-10-12

Similar Documents

Publication Publication Date Title
CN113784418B (en) Session management method and device
CN112788085B (en) Data caching method and device
US20190357298A1 (en) Mobile network optimization processing method, device, and system
WO2014117653A1 (en) Method, device and terminal equipment for cleaning up memory
WO2012119512A1 (en) Processing method of heart beat message, acquisition method of heart beat period, and access network device
CN109756994B (en) Method and device for recovering terminal state, base station and terminal
CN115190570B (en) Methods and corresponding equipment for light-connection control of user equipment
CN1332534C (en) Method of supporting node monitoring mobile user state by service universal packet wireless service
CN103945535A (en) Paging optimizing method, device and system, and quick path releasing method and device
CN102883464A (en) Gx interface resource releasing method and device
WO2020228689A1 (en) Data transmission method, apparatus, and device
CN101247619A (en) Wireless communication system and alarm synchronization method thereof
CN105491664B (en) A method and device for paging a terminal
CN102573022A (en) Method and device for saving power for mobile terminal
CN102238267A (en) Mobile terminal and communication service condition conversion control method thereof
CN105337892A (en) Data processing method and data processing device
CN106792615B (en) For restoring the method and system of the online charging state of user
EP2432273B1 (en) Method and system for reporting measurement report between network elements
CN107205271B (en) Network out-of-step state processing method, network access method and device
CN103517353A (en) Method for processing data transmission and terminal
JP2016536882A (en) RRC status control method, apparatus and device
CN101325738B (en) Method and apparatus for repairing fault of mobile communication core network register
CN102883297B (en) A kind of method and system of activated terminals
CN102264057B (en) Method and device for processing mobile management context
CN104581822A (en) Method, system and device for service state transition of user equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070815

CF01 Termination of patent right due to non-payment of annual fee