CN100438687C - Method for ensuring general wireless packet business to support node business continuity - Google Patents
Method for ensuring general wireless packet business to support node business continuity Download PDFInfo
- Publication number
- CN100438687C CN100438687C CNB2004100741541A CN200410074154A CN100438687C CN 100438687 C CN100438687 C CN 100438687C CN B2004100741541 A CNB2004100741541 A CN B2004100741541A CN 200410074154 A CN200410074154 A CN 200410074154A CN 100438687 C CN100438687 C CN 100438687C
- Authority
- CN
- China
- Prior art keywords
- path
- signaling paths
- signaling
- counter
- disconnected
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域 technical field
本发明涉及网络通信技术领域,具体涉及一种保证通用无线分组业务支持节点间业务连续性的方法。The invention relates to the technical field of network communication, in particular to a method for ensuring service continuity between general wireless packet service support nodes.
背景技术 Background technique
UMTS(通用移动通信系统)是采用WCDMA(宽带码分多址)空中接口技术的第三代移动通信系统,通常也将UMTS系统称为WCDMA通信系统。UMTS系统采用了与第二代移动通信系统类似的结构,包括RAN(无线接入网络)和CN(核心网络),其中RAN用于处理所有与无线有关的功能,而CN处理UMTS系统内所有的话音呼叫和数据连接,并实现与外部网络的交换和路由功能。UTRAN(UMTS陆地无线接入网)、CN与UE(用户设备)一起构成了整个UMTS系统,其网络结构如图1所示,其中:UMTS (Universal Mobile Telecommunications System) is a third-generation mobile communication system that adopts WCDMA (Wideband Code Division Multiple Access) air interface technology, and the UMTS system is usually also called a WCDMA communication system. The UMTS system adopts a structure similar to that of the second generation mobile communication system, including RAN (Radio Access Network) and CN (Core Network), where RAN is used to handle all wireless-related functions, while CN handles all Voice calls and data connections, and realize switching and routing functions with external networks. UTRAN (UMTS Terrestrial Radio Access Network), CN and UE (User Equipment) together constitute the entire UMTS system, and its network structure is shown in Figure 1, where:
RNC(无线网络控制器)完成基站的控制管理功能,UTRAN与用户设备通过Uu接口相连接,通过Iu接口与CN相连。The RNC (Radio Network Controller) completes the control and management functions of the base station, the UTRAN is connected to the user equipment through the Uu interface, and is connected to the CN through the Iu interface.
CN从逻辑上分为CS(电路交换域)和PS(分组交换域)。其中,MSC/VLR(移动交换中心/访问者定位寄存器)、GMSC(关口移动业务交换中心)属于CS域,SGSN(服务GPRS支持节点)、GGSN(网关GPRS支持节点)属于PS域。HLR(归属位置寄存器)属于CS域和PS域共有的功能节点。MSC/VLR(移动业务交换中心/拜访位置寄存器)完成CS域的控制、管理、鉴权和加密等功能,GMSC是MSC的网管,负责与其他固定或者移动网络的连接。CN is logically divided into CS (Circuit Switched Domain) and PS (Packet Switched Domain). Among them, MSC/VLR (Mobile Switching Center/Visitor Location Register), GMSC (Gateway Mobile Service Switching Center) belong to CS domain, SGSN (Serving GPRS Support Node), GGSN (Gateway GPRS Support Node) belong to PS domain. The HLR (Home Location Register) belongs to a functional node shared by the CS domain and the PS domain. MSC/VLR (Mobile Switching Center/Visitor Location Register) completes the functions of CS domain control, management, authentication and encryption. GMSC is the network management of MSC and is responsible for connection with other fixed or mobile networks.
SGSN和GGSN是WCDMA核心网分组交换域的功能节点,通过Gn/Gp接口相连接。其中,SGSN是连接接入网和GGSN的设备,完成PS域的路由转发、移动管理、会话管理、鉴权和加密等功能。GGSN是同外部IP分组网络的接口,提供数据包在WCDMA移动网和外部数据网之间的路由和封装。SGSN and GGSN are functional nodes in the packet switching domain of the WCDMA core network, and are connected through the Gn/Gp interface. Among them, the SGSN is a device connecting the access network and the GGSN, and performs functions such as route forwarding, mobility management, session management, authentication, and encryption in the PS domain. GGSN is the interface with the external IP packet network, and provides routing and encapsulation of data packets between the WCDMA mobile network and the external data network.
SGSN和GGSN之间的接口是基于GTP(GPRS隧道协议)实现隧道传输功能,包括信令面GTP-C(GTP控制面协议)和用户面GTP-U(GTP用户面协议)。GTP-C完成隧道的管理和其他信令消息的传输功能,GTP-U传输用户面的数据包。3GPP29060协议规范定义了GTP。The interface between SGSN and GGSN is based on GTP (GPRS Tunneling Protocol) to realize tunnel transmission function, including signaling plane GTP-C (GTP Control Plane Protocol) and user plane GTP-U (GTP User Plane Protocol). GTP-C completes tunnel management and other signaling message transmission functions, and GTP-U transmits user plane data packets. The 3GPP29060 protocol specification defines GTP.
在WCDMA中,手机的数据报文在SGSN和GGSN直接通过GTP封装进行承载,即GGSN的Gn接口和SGSN之间通过GTP的隧道进行数据和信令的交互,通过信令交互GGSN和SGSN建立合法用户的PDP(分组数据协议)上下文等信息,在此基础上GGSN将从无线接入网侧接收的数据报文还原成IP报文后通过Gi接口和外部分组数据网络进行数据交互。In WCDMA, the data packets of the mobile phone are directly carried by GTP encapsulation between the SGSN and the GGSN, that is, the Gn interface of the GGSN and the SGSN exchange data and signaling through the GTP tunnel, and the GGSN and the SGSN establish legal Based on information such as the user's PDP (Packet Data Protocol) context, the GGSN restores the data message received from the wireless access network side into an IP message, and then performs data interaction with the external packet data network through the Gi interface.
在GTP协议中,包含路径管理功能。所述路径是指一对GSN之间传输信令和数据的通路,由各自端点的IP地址/UDP(用户数据报文协议)端口号构成,可以分为信令路径和数据路径;路径协议是指在GSN之间用于承载GTP协议的UDP/IP协议。In the GTP protocol, path management functions are included. Described path refers to the path of transmission signaling and data between a pair of GSN, is made up of IP address/UDP (User Datagram Protocol) port number of respective endpoint, can be divided into signaling path and data path; Path protocol is Refers to the UDP/IP protocol used to carry the GTP protocol between GSNs.
目前,在GSN中对信令路径的处理即依照GTP协议的规定,具体实现过程如下:At present, the processing of the signaling path in the GSN is in accordance with the provisions of the GTP protocol, and the specific implementation process is as follows:
GSN中保存有维护路径信息的信令路径表,信令路径记录了本GSN和其他GSN节点的信令传输通路,包括:发送Echo Req路径位置,最大信令路径数,当前使用的路径数等信息。其功能是维护等待应答的请求信令队列,并记录数据通路信息(比如源,目的地址,路径上的上下文个数等)。The signaling path table for maintaining path information is stored in the GSN. The signaling path records the signaling transmission path between the local GSN and other GSN nodes, including: the location of the sending Echo Req path, the maximum number of signaling paths, the number of currently used paths, etc. information. Its function is to maintain the queue of request signaling waiting for response, and record data path information (such as source, destination address, number of contexts on the path, etc.).
信令路径在系统初始化时一次性分配,因此信令路径表在系统初始化时即确定。由GSN中的资源管理模块负责对信令路径表进行维护。资源管理模块维护一个空闲路径链,记录链头、链尾,当需要分配路径表项时,从链表表头开始分配,当释放路径表项时,加入到链表表尾,该链表使用路径表中的一个域来实现。The signaling path is allocated once when the system is initialized, so the signaling path table is determined when the system is initialized. The resource management module in the GSN is responsible for maintaining the signaling path table. The resource management module maintains an idle path chain, records the chain head and the chain tail, when the path entry needs to be allocated, it starts from the head of the linked list, and when the path entry is released, it is added to the end of the linked list, and the linked list uses the path table A domain to achieve.
GSN定时发送ECHO请求消息,并等待对端GSN的回应,当信令路径上发送的ECHO请求消息超时后,增加路径上的超时次数;若超时次数大于设定的阈值时,信令路径断掉,释放路径上的请求消息等待队列,触发此信令路径断告警,并进行删除此信令路径上的上下文的操作。GSN regularly sends ECHO request messages and waits for the response from the peer GSN. When the ECHO request message sent on the signaling path times out, the number of timeouts on the path is increased; if the number of timeouts is greater than the set threshold, the signaling path is disconnected. , release the request message waiting queue on the path, trigger the signaling path disconnection alarm, and perform the operation of deleting the context on the signaling path.
现有方案虽然完全遵循协议的描述,但是没有全面考虑实际网上设备运行的情况。由于网络的连接情况可能非常复杂,网络的性能也不一定保持很好的水平,而且GPRS骨干网上的QOS(服务质量)等性能问题也没有完全解决,网络的拥塞不可避免。在这种情况下,难免出现GGSN与某一个SGSN因为网络拥塞等原因导致的暂时通讯中断,或者GGSN向SGSN发送的请求报文丢失。这样就有可能导致GGSN和SGSN暂时的连接中断造成对应路径上的所有用户的删除。由于在目前的网络环境下两个设备连接暂时中断的情况是不可避免的,因此这样的做法实际上并不合理。Although the existing schemes fully follow the description of the protocol, they do not fully consider the operation of the actual network equipment. Because the connection situation of the network may be very complicated, the performance of the network may not maintain a good level, and performance problems such as QOS (Quality of Service) on the GPRS backbone network have not been completely resolved, and the congestion of the network is inevitable. In this case, it is unavoidable that the temporary communication between the GGSN and a certain SGSN is interrupted due to reasons such as network congestion, or the request message sent by the GGSN to the SGSN is lost. In this way, it is possible to temporarily interrupt the connection between the GGSN and the SGSN and cause deletion of all users on the corresponding path. Since the temporary interruption of the connection between two devices is inevitable in the current network environment, such an approach is actually unreasonable.
另外,删除信令路径上面的上下文之前,信令路径检测定时器会根据上下文检测信令路径断,上报路径断告警戒线,按照现有技术方案,如果该信令路径上有多个上下文就有可能触发多个相同的告警日志,当此信令路径上有大量上下文时候,打印和上报的告警日志就有可能完全占用了系统的CPU(中央处理单元)资源,从而使得系统无法工作,严重时会导致系统重启。In addition, before deleting the context on the signaling path, the signaling path detection timer will detect that the signaling path is broken according to the context, and report the warning line of the path breaking. According to the existing technical solution, if there are multiple contexts on the signaling path, the It is possible to trigger multiple identical alarm logs. When there are a large number of contexts on this signaling path, the printed and reported alarm logs may completely occupy the CPU (Central Processing Unit) resources of the system, thus making the system unable to work. Serious will cause the system to reboot.
发明内容 Contents of the invention
本发明的目的是提供一种保证通用无线分组业务支持节点间业务连续性的方法,以克服现有技术中由于网络的暂时故障导致所有用户掉线以及由于信令路径断引起的重复告警的缺点,使系统在网络拥塞情况下充分保证业务处理的连续性。The purpose of the present invention is to provide a method for ensuring the continuity of services between GPRS support nodes, so as to overcome the shortcomings in the prior art that all users are disconnected due to a temporary failure of the network and the repeated alarms caused by the disconnection of the signaling path , so that the system can fully guarantee the continuity of business processing under the condition of network congestion.
为此,本发明提供如下的技术方案:For this reason, the present invention provides following technical scheme:
一种保证通用无线分组业务支持节点间业务连续性的方法,所述方法包括:A method for ensuring service continuity between GPRS support nodes, the method comprising:
A、初始化通用无线分组业务支持节点间预先建立的信令路径表,并通过通用无线分组业务隧道协议中的路径管理消息对所述信令路径表中的信令路径进行检测;A. Initialize the pre-established signaling path table between GPRS support nodes, and detect the signaling path in the signaling path table through the path management message in the GPRS tunneling protocol;
B、当检测到所述信令路径断掉后,触发路径断告警,并将信令路径表中对应的路径状态设置为路径断状态,延迟预定时间;B. When it is detected that the signaling path is disconnected, a path disconnection alarm is triggered, and the corresponding path state in the signaling path table is set as the path disconnection state, and the predetermined time is delayed;
C、根据所述预定时间内所述信令路径上信息的变化处理所述信令路径上的上下文。C. Process the context on the signaling path according to the change of the information on the signaling path within the predetermined time.
所述步骤A之前,还包括:Before said step A, also include:
A1、建立信令路径表,所述信令路径表包括:发送响应请求的路径位置,最大信令路径数,当前使用的路径数,数据路径信息,路径断计数器,路径状态,所述路径状态包括:空闲状态,正常状态,路径断状态。A1. Establish a signaling path table, the signaling path table includes: the location of the path sending the response request, the maximum number of signaling paths, the number of currently used paths, data path information, path break counter, path status, and the path status Including: idle state, normal state, path disconnected state.
所述初始化通用无线分组业务支持节点间预先建立的信令路径表包括:The pre-established signaling path table between the initialized GPRS support nodes includes:
A21、将所述信令路径表中各表项对应的路径状态设置为空闲状态;A21. Setting the path state corresponding to each entry in the signaling path table to an idle state;
A22、将所述信令路径表中各表项对应的路径断计数器置0;A22. Set the path break counter corresponding to each entry in the signaling path table to 0;
A23、设定所述路径断计数器的阈值。A23. Set the threshold of the path break counter.
所述对所述信令路径表中的信令路径进行检测包括:The detecting the signaling path in the signaling path table includes:
A31、建立路径检测机制;A31. Establish a path detection mechanism;
A32、根据所述路径检测机制对所述信令路径表中的信令路径进行检测。A32. Detect the signaling path in the signaling path table according to the path detection mechanism.
所述步骤A31具体为:设定所述路径管理消息中的T3定时器及N3计数器,所述T3定时器,用于预设消息的响应时间,所述N3计数器,用于预设消息的重传次数。The step A31 is specifically: setting the T3 timer and the N3 counter in the path management message, the T3 timer is used for the response time of the preset message, and the N3 counter is used for resetting the preset message. number of passes.
所述步骤A32包括:Described step A32 comprises:
从所述信令路径表中选择被检测信令路径;selecting a detected signaling path from the signaling path table;
在所述被检测信令路径上发送路径管理消息;sending a path management message on the detected signaling path;
如果在所述T3定时器定时时间内收到对端的回应消息,则保护该信令路径为正常状态;If a response message from the opposite end is received within the time specified by the T3 timer, then the signaling path is protected as a normal state;
否则,以所述T3定时器设定的频率,重复发送路径管理消息;Otherwise, at the frequency set by the T3 timer, repeatedly send the path management message;
如果在所述N3计数器的超时次数范围内收到对端的回应消息,则保护该信令路径为正常状态;If the response message from the opposite end is received within the timeout range of the N3 counter, then protect the signaling path as a normal state;
否则,设置该信令路径为路径断状态。Otherwise, set the signaling path to the path disconnected state.
所述步骤C包括:Described step C comprises:
C1、启动空闲路径检测机制所述空闲路径检测机制包括:T3定时器,用于预设消息的响应时间;C1. Start the idle path detection mechanism. The idle path detection mechanism includes: T3 timer, which is used to preset the response time of the message;
C2、当所述T3定时器超时后,累加所述路径断计数器;C2. When the T3 timer expires, accumulating the path break counter;
C3、当所述路径断计数器的累加值超过所述阈值后,删除对应信令路径上的上下文。C3. When the accumulated value of the path disconnection counter exceeds the threshold, delete the context on the corresponding signaling path.
所述步骤C还包括:Said step C also includes:
如果在所述预定时间内所述信令路径上有上下文激活或更新或对端通用无线分组业务支持节点发送的响应请求消息,则将所述信令路径表中对应表项的路径断计数器清0。If there is a context activation or update on the signaling path within the predetermined time, or a response request message sent by the peer GPRS support node, then clear the path disconnection counter of the corresponding entry in the signaling path table 0.
所述通用无线分组业务支持节点包括:网关通用无线分组业务支持节点和/或服务通用无线分组业务支持节点。The GPRS support node includes: a gateway GPRS support node and/or a serving GPRS support node.
由以上本发明提供的技术方案可以看出,本发明在GSN设备连接过程中,通过路径管理消息对路径检测,检测到路径断后并不马上删除该路径上的用户上下文信息,而是保持一预定的时间,在该预定时间内,由于网络暂时故障或拥塞的排除,使该路径可能重新有上下文激活或更新或ECHO请求,这样,有可能使该信令路径重新回到正常状态,避免了现有技术中由于网络的暂时故障造成的用户上下文去活,同时减少了不必要的信令路径断告警,从而提高了系统的容错能力,增强了系统的稳定性;通过增加信令路径表中的状态和检测次数计数器,使系统在复杂的网络环境下,保证了用户业务连续性,并且避免了大量重复信令路径断告警降低系统性能甚至引起单板重启的影响;同时在网络的长时间故障下又能有效地清除用户,避免对用户的多余计费等问题。As can be seen from the technical solution provided by the present invention above, the present invention detects the path through the path management message during the GSN device connection process, and does not immediately delete the user context information on the path after detecting that the path is broken, but keeps a predetermined During the predetermined time, due to the elimination of temporary network failure or congestion, the path may have context activation or update or ECHO request again, so that it is possible to make the signaling path return to the normal state, avoiding the present In the existing technology, the user context is deactivated due to the temporary failure of the network, and at the same time, unnecessary signaling path disconnection alarms are reduced, thereby improving the fault tolerance of the system and enhancing the stability of the system; by increasing the signaling path table The status and detection times counter enable the system to ensure the continuity of user services in a complex network environment, and avoid the impact of a large number of repeated signaling path disconnection alarms that degrade system performance and even cause board restarts; It can effectively clear the users and avoid problems such as redundant billing for users.
附图说明 Description of drawings
图1是通用移动通信系统网络单元结构示意图;Fig. 1 is a schematic diagram of the network unit structure of the universal mobile communication system;
图2是本发明方法的流程图;Fig. 2 is a flow chart of the inventive method;
图3是通过空闲路径检测机制对信令路径进行检测的流程图;Fig. 3 is a flow chart of detecting a signaling path through an idle path detection mechanism;
图4是本发明方法中在预定时间内进行空闲路径检测的流程图。Fig. 4 is a flow chart of performing idle path detection within a predetermined time in the method of the present invention.
具体实施方式 Detailed ways
本发明的核心在于通过路径管理消息对路径检测时采用激活机制,在信令路径表项中增加“路径断”状态指示,即当检测到路径断后将该路径设置为“路径断”状态,此时,并不马上删除该路径上的用户上下文信息,而是保持一预定的时间,如果在这预定时间内该路径上重新有上下文激活或更新或ECHO请求,则将该路径重新设置为“正常”状态,即激活该路径,而且将路径状态作为告警的必要条件,路径断后无论ECHO检测还是删除信令操作均不再触发路径断告警。以此避免现有技术中检测到路径断后立即删除该路径上的用户上下文信息的处理方式在网络暂时故障情况下对系统产生的影响,保持GSN(通用无线分组业务支持节点)间业务的连续性。The core of the present invention is to use the activation mechanism when detecting the path through the path management message, and add a "path broken" status indication in the signaling path entry, that is, when the path is detected to be broken, the path is set to the "path broken" state. , the user context information on the path will not be deleted immediately, but will be kept for a predetermined time. If there is a context activation or update or ECHO request on the path within the predetermined time, the path will be reset to "normal" ” state, that is, activate the path, and take the path state as a necessary condition for the alarm. After the path is broken, no matter the ECHO detection or the delete signaling operation will no longer trigger the path broken alarm. In this way, the processing method of deleting the user context information on the path immediately after detecting that the path is broken in the prior art can avoid the impact on the system in the case of a temporary network failure, and maintain the continuity of services between GSNs (General Packet Radio Service Support Nodes) .
本技术领域人员知道,3GPP协议29060规定,路径管理消息共有三种:Echo Request(Echo请求)消息,Echo Response(Echo响应)消息,VersionNot Supported(GTP版本不支持)消息,分别说明如下:Those skilled in the art know that 3GPP protocol 29060 stipulates that there are three kinds of path management messages: Echo Request (Echo request) message, Echo Response (Echo response) message, VersionNot Supported (GTP version does not support) message, respectively as follows:
1.Echo Request消息:在路径上发送,检测对端的GSN或RNC是否正常。Echo Request消息在“在用路径”上发送。一个路径“在用”是指至少有一个PDP上下文使用该路径连接到对端GSN。Echo Request消息的发送间隔应该不小于60秒。一个GSN或RNC设备应该随时可以接收Echo Request消息,并且回应Echo Response消息,GSN或RNC发Echo Request消息是可选的。1. Echo Request message: sent on the path to detect whether the GSN or RNC at the opposite end is normal. Echo Request messages are sent on the "active path". A path "in use" means that at least one PDP context uses this path to connect to the peer GSN. The sending interval of the Echo Request message should not be less than 60 seconds. A GSN or RNC device should be able to receive Echo Request messages at any time and respond to Echo Response messages. It is optional for GSN or RNC to send Echo Request messages.
2.Echo Response消息:本消息作为Echo Request消息的响应。2. Echo Response message: This message is the response to the Echo Request message.
3.Version Not Supported消息:本消息只包含GTP头部,指明该UDP/IP地址上的GTP实体所支持的GTP协议版本。3. Version Not Supported message: This message only contains the GTP header, indicating the GTP protocol version supported by the GTP entity on the UDP/IP address.
应用GTP协议路径管理消息的Echo Request消息和Echo Response消息来检测信令路径和数据路径的联通性。Echo Request消息发往对端GSN,对端设备收到后返回Echo Response消息,如果本端GSN设备在一定时间内收不到响应消息,则认为路径断。Use the Echo Request message and Echo Response message of the GTP protocol path management message to detect the connectivity of the signaling path and the data path. The Echo Request message is sent to the peer GSN, and the peer device returns an Echo Response message after receiving it. If the local GSN device does not receive a response message within a certain period of time, the path is considered broken.
为了保证信令消息的可靠投递,每条路径维护一个送往对等实体的信令消息队列。在队列前端的消息如果是定义了响应的请求消息,在发送时将带上序号,并且一直保留到收到了相应的响应为止。每条路径都有自己的路径表。在一个路径表中,每个未决的请求消息的序号是唯一的。GSN或RNC在等待响应期间可能有多个未决的请求。在发送信令请求消息时,应启动T3定时器(预置响应时间),并应设定请求次数N3(预置重传次数)。To ensure reliable delivery of signaling messages, each path maintains a queue of signaling messages sent to peer entities. If the message at the front of the queue is a request message with a defined response, it will be sent with a serial number and kept until the corresponding response is received. Each path has its own path table. In a routing table, the sequence number of each pending request message is unique. A GSN or RNC may have multiple pending requests while waiting for a response. When sending a signaling request message, the T3 timer (preset response time) should be started, and the number of requests N3 (preset retransmission times) should be set.
本发明就是在使用该协议对路径进行管理的基础上,在对路径进行检测时,检测到路径断后,使该路径上的用户上下文信息保持预定时间,等确信该路径的确是断掉后再删除上下文信息。In the present invention, on the basis of using the protocol to manage the path, when the path is detected, after detecting that the path is broken, the user context information on the path is kept for a predetermined time, and then deleted after confirming that the path is indeed broken contextual information.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.
参照图2,图2是本发明方法的流程图,包括以下步骤:With reference to Fig. 2, Fig. 2 is the flowchart of the inventive method, comprises the following steps:
步骤201:建立信令路径表,所述信令路径表包括:发送响应请求的路径位置,最大信令路径数,当前使用的路径数,数据路径信息,路径断计数器,路径状态,所述路径状态包括:空闲状态,正常状态,路径断状态。Step 201: Establish a signaling path table, the signaling path table includes: the location of the path sending the response request, the maximum number of signaling paths, the number of currently used paths, data path information, path break counter, path status, the path The states include: idle state, normal state, and path disconnected state.
步骤202:初始化信令路径表,对该信令路径表需要初始化以下内容:Step 202: Initialize the signaling path table, the signaling path table needs to initialize the following content:
(1)将信令路径表中各表项对应的路径状态设置为空闲状态;(1) The path state corresponding to each entry in the signaling path table is set to an idle state;
(2)将信令路径表中各表项对应的路径断计数器置0;(2) Set the path break counter corresponding to each entry in the signaling path table to 0;
(3)设定路径断计数器的阈值。(3) Set the threshold of the path break counter.
可见,与现有技术方案相比,本发明修改了信令路径的结构:It can be seen that, compared with the prior art solution, the present invention modifies the structure of the signaling path:
为了在信令路径暂时中断的情况下保存信令路径信息,从而保存信令上下文不变,将信令路径状态在现有技术的“空闲”和“正常”两种状态的基础上增加了“路径断”状态,而且,通过该状态保证同一条信令路径断掉后只能触发一个告警,而且当检测到信令路径断掉时并不立刻删除上下文,而是暂时保持上下文一预定时间,根据该预定时间内该信令路径上信息的变化情况再做具体处理,或者删除上下文,或者重新恢复该路径为正常状态。同时,为了维持一定时间的信令路径断状态,但又不至于永久维持,在信令路径结构中还增加了路径断计数器,即使路径断掉后,仍然对该信令路径通过GTP协议的EchoRequest消息进行检测,根据检测次数累加该计数器,当此计数器达到设定的阈值时再删除该路径上的上下文信息。In order to save the signaling path information when the signaling path is temporarily interrupted, so as to keep the signaling context unchanged, the signaling path state is added to the two states of "idle" and "normal" in the prior art. In addition, through this state, only one alarm can be triggered after the same signaling path is disconnected, and the context is not deleted immediately when the signaling path is detected to be disconnected, but the context is temporarily maintained for a predetermined time, According to the change of information on the signaling path within the predetermined time, specific processing is performed, or the context is deleted, or the path is restored to a normal state. At the same time, in order to maintain the disconnection state of the signaling path for a certain period of time, but not permanently, a path disconnection counter is added to the signaling path structure. Even after the path is disconnected, the signaling path still passes the EchoRequest of the GTP protocol. The message is detected, the counter is accumulated according to the number of detections, and the context information on the path is deleted when the counter reaches the set threshold.
步骤203:建立路径检测机制。Step 203: Establish a path detection mechanism.
步骤204:根据建立的路径检测机制对信令路径表中的信令路径进行检测。Step 204: Detect the signaling paths in the signaling path table according to the established path detection mechanism.
也就是应用GTP协议路径管理消息的Echo Request消息和Echo Response消息来检测信令路径和数据路径的联通性。为此,需要设定路径管理消息中的T3定时器及N3计数器。然后,依次对信令路径表中的信令路径进行检测,具体检测方式与现有技术中相同,即由GSN上的资源管理模块维护一个空闲路径链,记录链头、链尾,当需要分配路径表项时,从链表表头开始分配;当释放路径表项时,加入到链表表尾,该链表使用路径表中的一个域来实现。对于每一条信令路径,定时发送Echo Request消息,并等待回应,当信令路径上发送的Echo Request消息超时,即超过设定的T3定时器的定时时间,增加路径上的超时次数;若超时次数大于设定的N3计数器的值,则认为信令路径断掉。That is, the Echo Request message and the Echo Response message of the GTP protocol path management message are used to detect the connectivity of the signaling path and the data path. To this end, it is necessary to set the T3 timer and N3 counter in the path management message. Then, the signaling paths in the signaling path table are detected in turn, and the specific detection method is the same as in the prior art, that is, the resource management module on the GSN maintains an idle path chain, records the chain head and the chain tail, and when it is necessary to allocate When the path entry is allocated, it is allocated from the head of the linked list; when the path entry is released, it is added to the end of the linked list, and the linked list is implemented using a field in the path table. For each signaling path, send the Echo Request message regularly and wait for the response. When the Echo Request message sent on the signaling path times out, that is, exceeds the set T3 timer time, increase the number of timeouts on the path; if it times out If the number of times is greater than the value of the set N3 counter, it is considered that the signaling path is disconnected.
图3是对每条信令路径进行检测的流程,包括以下步骤:Figure 3 is a process for detecting each signaling path, including the following steps:
步骤301:设定T3定时器和N3计数器。Step 301: Set T3 timer and N3 counter.
步骤302:从信令路径表中选择所需检测的信令路径。Step 302: Select the signaling path to be detected from the signaling path table.
步骤303:启动T3定时器。Step 303: Start the T3 timer.
步骤304:通过该信令路径发送Echo Request(Echo请求)消息。Step 304: Send an Echo Request (Echo request) message through the signaling path.
在该消息中包含本端设备支持的GTP协议版本号,可以是3GPP(第三代移动通信标准化伙伴项目)规定的GTP协议的V0和V1两种版本。The message includes the version number of the GTP protocol supported by the local device, which may be V0 and V1 of the GTP protocol specified by 3GPP (Third Generation Mobile Communications Standardization Partnership Project).
Echo Request消息的源地址为本端设备的网络地址,目的地址为对端设备的网络地址。这些网络地址在建网时已预先配置在各端点设备的路由表中。The source address of the Echo Request message is the network address of the local device, and the destination address is the network address of the peer device. These network addresses have been pre-configured in the routing table of each endpoint device when the network is built.
然后,进到步骤305:判断T3定时器是否超时。Then, go to step 305: judge whether the T3 timer expires.
如果T3定时器未超时,则到步骤306:接收对端设备的Echo回应消息。If the T3 timer has not expired, go to step 306: receive the Echo response message from the peer device.
对于Echo Request消息,对端的回应消息可能有两种:Echo Response(Echo响应)消息;Version Not Supported(GTP版本不支持)消息。在EchoResponse消息中包含对端设备支持的GTP协议版本号。For the Echo Request message, there may be two types of response messages from the peer: Echo Response (Echo response) message; Version Not Supported (GTP version does not support) message. The EchoResponse message includes the version number of the GTP protocol supported by the peer device.
如果收到Echo Response消息,则认为和对端设备间接口联通,表明对端正在活动,并且GTP协议运行正常;If an Echo Response message is received, it is considered that the interface with the peer device is connected, indicating that the peer device is active and the GTP protocol is running normally;
如果收到Version Not Supported消息,则认为和对端设备间接口联通,表明对端正在活动,但不支持本端的GTP协议版本。If a Version Not Supported message is received, it is considered that the interface with the peer device is connected, indicating that the peer device is active, but does not support the GTP protocol version of the local end.
这样,表明该信令路径正常,于是,进到步骤307:保持该路径为正常状态。In this way, it indicates that the signaling path is normal, so go to step 307: keep the path as normal.
如果T3定时器超时,则到步骤308:N3计数器减1,表明已完成了一次检测。If the T3 timer expires, then go to step 308: the N3 counter is decremented by 1, indicating that a detection has been completed.
然后,进到步骤309:判断检测次数是否为0,也就是说是否已完成了N3次检测;Then, go to step 309: judge whether the number of detections is 0, that is to say whether N3 detections have been completed;
如果已完成N3次检测,则表明在时长为N3*T3时间后还未收到对端设备的响应,此时,可认为和对端设备间的路径已中断,进到步骤310:设置该路径为路径断状态。If N3 detections have been completed, it indicates that the response from the peer device has not been received after the duration of N3*T3. At this time, it can be considered that the path between the peer device and the peer device has been interrupted. Go to step 310: set the path It is the broken state of the path.
如果还未完成N3次检测,则返回步骤303:重新启动T3定时器。If the N3 detections have not been completed, return to step 303: restart the T3 timer.
当检测到路径断后,需要上报路径断告警,然后,需要将该信令路径对应的路径状态设置为路径断状态。When a path disconnection is detected, a path disconnection alarm needs to be reported, and then the path status corresponding to the signaling path needs to be set to the path disconnection state.
即进到步骤205:当检测到所述信令路径断掉后,延迟预定时间,在该预定时间内,首先要触发路径断告警,然后将信令路径表中对应的信令路径设置为路径断状态。That is, go to step 205: when it is detected that the signaling path is disconnected, delay for a predetermined time, and within the predetermined time, first trigger a path disconnection alarm, and then set the corresponding signaling path in the signaling path table as the path off state.
设置了信令路径为路径断状态,此后,只要该路径为路径断状态,则无论ECHO检测还是删除信令操作均不能触发路径断告警。这样,因为信令路径有了路径断状态,即使删除上下文时也不再发送告警消息和打印告警日志。保证了同一路径上不再重复发送路径断告警,避免了大量路径断告警和日志的产生引起CPU被独占,甚至导致单板重启的严重影响。After the signaling path is set to be in the path disconnection state, after that, as long as the path is in the path disconnection state, neither the ECHO detection nor the signaling deletion operation can trigger the path disconnection alarm. In this way, because the signaling path has a path broken state, even when the context is deleted, no alarm message is sent and the alarm log is no longer printed. It ensures that the path disconnection alarm is not sent repeatedly on the same path, and avoids a large number of path disconnection alarms and logs that cause the CPU to be monopolized, and even cause serious impacts on board restarts.
然后,进到步骤206:根据预定时间内信令路径上信息的变化处理该信令路径上的上下文。Then, go to step 206: process the context on the signaling path according to the change of the information on the signaling path within a predetermined time.
该信令路径上有上下文激活或更新时,需要从空闲路径链中分配一个路径表项或者累加现有路径上的上下文计数。同时,将此信令路径状态重新设置为正常状态,并将信令路径表中对应表项的路径断计数器置0。When the context is activated or updated on the signaling path, it is necessary to allocate a path entry from the idle path chain or accumulate the context count on the existing path. At the same time, the signaling path state is reset to a normal state, and the path disconnection counter of the corresponding entry in the signaling path table is set to 0.
这样,保证了当信令路径断掉时,此信令路径仍有可能恢复正常。即如果在预定时间内该信令路径上有上下文激活或更新或对端GSN节点发送的响应请求消息,此信令路径断的计数器立即置0,以使路径断计数器不超过设定的阈值,进而保证上下文不被立刻删除。In this way, it is ensured that when the signaling path is disconnected, the signaling path may still be restored to normal. That is, if there is a context activation or update or a response request message sent by the peer GSN node on the signaling path within a predetermined time, the counter of this signaling path disconnection is immediately set to 0, so that the path disconnection counter does not exceed the set threshold, This ensures that the context is not deleted immediately.
除做以上处理外,在路径状态断后,还需要启动上述空闲路径检测机制。保持路径断状态一定时间后确认该路径没有恢复可能的情况下再删除该路径。In addition to the above processing, after the path state is disconnected, the above-mentioned idle path detection mechanism needs to be started. Keep the path disconnected for a certain period of time and then delete the path after confirming that the path cannot be restored.
在预定时间内进行空闲路径检测,每当T3定时器超时后,就累加该路径对应的路径断计数器;当该路径断计数器的累加值超过设定的阈值后,删除对应信令路径上的所有上下文,最后删除此信令路径。Idle path detection is performed within a predetermined time, and whenever the T3 timer expires, the path disconnection counter corresponding to the path is accumulated; when the accumulated value of the path disconnection counter exceeds the set threshold, all traffic on the corresponding signaling path is deleted context, and finally delete this signaling path.
在预定时间内进行空闲路径检测的流程如图4所示,包括以下步骤:The process of performing idle path detection within a predetermined time is shown in Figure 4, including the following steps:
步骤401:设定路径断计数器阈值。Step 401: Set a path break counter threshold.
步骤402:启动空闲路径检测机制。Step 402: Start an idle path detection mechanism.
步骤403:启动T3定时器。Step 403: Start the T3 timer.
步骤404:判断定时器T3是否超时。Step 404: Determine whether the timer T3 expires.
如果T3定时器未超时,则到步骤405:接收对端的Echo请求消息。也就是说,在预定时间内,该信令路径上重新收到了对端的Echo请求消息,说明该路径重新“复活”了。If the T3 timer has not expired, go to step 405: receive the Echo request message from the opposite end. That is to say, within a predetermined time, the Echo request message from the opposite end is received again on the signaling path, indicating that the path is "resurrected" again.
进到步骤406:将路径断计数器清0。Go to step 406: clear the path break counter.
然后,进到步骤411:设置该路径为正常状态。Then, go to step 411: set the path as a normal state.
如果T3定时器超时,则进到步骤407:将路径断计数器加1。If the T3 timer expires, go to step 407: add 1 to the path disconnection counter.
然后,进到步骤408:判断路径断计数器是否超过设定的阈值。Then, go to step 408: determine whether the path break counter exceeds the set threshold.
如果路径断计数器已超过阈值,则进到步骤409:删除该路径上的上下文信息。If the path break counter has exceeded the threshold, go to step 409: delete the context information on the path.
然后,进到步骤410:删除该路径。Then, go to step 410: delete the path.
如果路径断计数器还未超过阈值,则返回步骤403:重新启动T3定时器。If the path break counter has not exceeded the threshold, return to step 403: restart the T3 timer.
例如,对GGSN和SGSN之间的某条信令路径进行检测:For example, to detect a signaling path between GGSN and SGSN:
对于GGSN节点,需要从GGSN向SGSN发送Echo请求消息,SGSN向GGSN发送Echo响应消息。For the GGSN node, it is necessary to send an Echo request message from the GGSN to the SGSN, and the SGSN sends an Echo response message to the GGSN.
正常情况下,SGSN收到GGSN发送的Echo请求消息后,要向GGSN回应Echo响应消息,如果在T3定时时间内,GGSN收到Echo响应消息,则认为该路径为正常状态;重新等待T3定时器超时后,继续发送Echo请求消息。Under normal circumstances, after receiving the Echo request message sent by the GGSN, the SGSN will respond to the Echo response message to the GGSN. If the GGSN receives the Echo response message within the T3 time limit, the path is considered to be in a normal state; wait for the T3 timer again After the timeout, continue sending Echo request messages.
如果在T3定时时间内,GGSN未收到Echo响应消息,此时,启动N3计数器计数,每发送一次Echo请求消息,如果在T3定时时间内,GGSN未收到Echo响应消息,则N3计数器增1,依此类推。如果在N3超过设定的阈值前,GGSN收到SGSN的Echo响应消息,则将N3计数器复位,重新置为0;否则认为该信令路径断。此时,并不马上删除上下文,而是设置该信令路径的状态为路径断状态,同时启动对应该信令路径的路径断计数器,用ECHO循环定时器T3作为时钟源,每次到时间就累加信令路径断计数器。如果此计数器没有超过阈值(具体域值大小等参数可以用网管进行配置)时,又收到Echo响应消息,则恢复上下文,并将信令路径断计数器清零;否则,当计数到超过设定的阈值时,此时认为此信令路径完全断掉了,于是删除该路径上的上下文信息,最后删除此信令路径。If the GGSN does not receive the Echo response message within the T3 timing time, at this time, the N3 counter is started to count, and each time an Echo request message is sent, if the GGSN does not receive the Echo response message within the T3 timing time, the N3 counter is incremented by 1 ,So on and so forth. If the GGSN receives the Echo response message from the SGSN before N3 exceeds the set threshold, it resets the N3 counter to 0; otherwise, it considers that the signaling path is disconnected. At this time, the context is not deleted immediately, but the state of the signaling path is set as the path broken state, and the path broken counter corresponding to the signaling path is started at the same time, and the ECHO cycle timer T3 is used as the clock source. Accumulate the signaling path disconnection counter. If the counter does not exceed the threshold (the parameters such as the specific field value can be configured by the network management system), and an Echo response message is received, the context will be restored, and the signaling path disconnection counter will be cleared; otherwise, when the count exceeds the set When the threshold is , it is considered that the signaling path is completely disconnected, so the context information on the path is deleted, and finally the signaling path is deleted.
对于SGSN节点,需要从SGSN向GGSN发送Echo请求消息,GGSN向SGSN发送Echo响应消息。For the SGSN node, it is necessary to send an Echo request message from the SGSN to the GGSN, and the GGSN sends an Echo response message to the SGSN.
检测过程和前面所述相同,在此不再赘述。The detection process is the same as that described above, and will not be repeated here.
虽然通过实施例描绘了本发明,本领域普通技术人员知道,本发明有许多变形和变化而不脱离本发明的精神,希望所附的权利要求包括这些变形和变化而不脱离本发明的精神。While the invention has been described by way of example, those skilled in the art will appreciate that there are many variations and changes to the invention without departing from the spirit of the invention, and it is intended that the appended claims cover such variations and changes without departing from the spirit of the invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100741541A CN100438687C (en) | 2004-09-01 | 2004-09-01 | Method for ensuring general wireless packet business to support node business continuity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100741541A CN100438687C (en) | 2004-09-01 | 2004-09-01 | Method for ensuring general wireless packet business to support node business continuity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1744757A CN1744757A (en) | 2006-03-08 |
CN100438687C true CN100438687C (en) | 2008-11-26 |
Family
ID=36139905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100741541A Expired - Fee Related CN100438687C (en) | 2004-09-01 | 2004-09-01 | Method for ensuring general wireless packet business to support node business continuity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100438687C (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146306B (en) * | 2006-09-13 | 2010-06-23 | 中兴通讯股份有限公司 | A service quality decline pre-alarming method based on alarming information |
CN101188527B (en) * | 2007-12-24 | 2012-03-14 | 杭州华三通信技术有限公司 | A heartbeat detection method and device |
CN101772194B (en) * | 2008-12-26 | 2013-02-27 | 中兴通讯股份有限公司 | General packet radio service tunnel user plane path keep-alive method and system |
CN102355456B (en) * | 2011-09-01 | 2014-04-02 | 大唐移动通信设备有限公司 | Management method and device for restart counter |
CN110688532B (en) * | 2019-09-03 | 2022-06-21 | 视联动力信息技术股份有限公司 | A transaction management method and device |
CN113259874B (en) * | 2021-07-07 | 2021-10-26 | 中兴通讯股份有限公司 | Message processing method, electronic device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001063947A1 (en) * | 2000-02-21 | 2001-08-30 | Telefonaktiebolaget Lm Ericsson (Publ) | Method of call control to minimize delays in launching multimedia or voice calls in a packet-switched radio telecommunications network |
CN1265593C (en) * | 2002-11-19 | 2006-07-19 | 华为技术有限公司 | Detecting method of reachability among IP network equipments and its application in public dialing network platform accessing backup |
-
2004
- 2004-09-01 CN CNB2004100741541A patent/CN100438687C/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001063947A1 (en) * | 2000-02-21 | 2001-08-30 | Telefonaktiebolaget Lm Ericsson (Publ) | Method of call control to minimize delays in launching multimedia or voice calls in a packet-switched radio telecommunications network |
CN1265593C (en) * | 2002-11-19 | 2006-07-19 | 华为技术有限公司 | Detecting method of reachability among IP network equipments and its application in public dialing network platform accessing backup |
Non-Patent Citations (3)
Title |
---|
GPRS Tunnelling Protocol (GTP) across the Gn and Gp Interface. 1-58,3rd Generation Partnership Project,TechnicalSpecificationGroup Core Network,Genaral Packet RadioService (GPRS). 1999 * |
GPRS Tunnelling Protocol (GTP) across the Gn and Gp Interface. 9-15,35,3rd Generation Partnership Project,TechnicalSpecificationGroup Core Network,Genaral Packet RadioService (GPRS). 1999 * |
GTP协议分析及在GSN中实现. 王田,张伟.重庆工商大学学报(自然科学版),第21卷第1期. 2004 * |
Also Published As
Publication number | Publication date |
---|---|
CN1744757A (en) | 2006-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017063427A1 (en) | Communication method and apparatus, and terminal | |
JP2019525553A (en) | Efficient delivery method and apparatus for low frequency small data | |
CN102769932B (en) | Method and device used for data transmission in circuit domain backspace | |
CN101150380A (en) | Method and apparatus for handling radio link failure in a wireless communication system | |
EP1318633B1 (en) | Mobile/portable terminal and PDP context management method used therefor in constantly-on state | |
JP4186480B2 (en) | Mobile portable terminal and always-on PDP context management method used therefor | |
KR20160021262A (en) | Conversion method for transmission mechanism, user equipment and base station | |
CN102362513A (en) | A short message processing method, device and system | |
CN100469181C (en) | Mobile communication method and wireless control device | |
CN115550858B (en) | Voice call fallback method, device and storage medium | |
CN108370555B (en) | Method and device for sending downlink data notification message | |
CN100438687C (en) | Method for ensuring general wireless packet business to support node business continuity | |
US8116272B2 (en) | Method for dealing with the packet domain gateway support node errors | |
KR20170088598A (en) | Method for Transmitting Downlink Packet Data in Core Network with Separation of User Plane and Control Plane | |
EP1928143B1 (en) | System and method for maintaining packet protocol context | |
KR20170084776A (en) | Method and apparatus for transmitting control message in mobile communication system based on software defined network | |
CN103051612B (en) | Fire compartment wall and prevent method of network attack | |
CN100466595C (en) | Error indication message processing method | |
RU2003132459A (en) | METHOD AND SYSTEM FOR REQUESTING INFORMATION OF THE POSITION AND STATUS OF THE NODE SUBSCRIBER IN THE INTELLECTUAL NETWORK | |
CN104754632A (en) | Method and device of reporting UE (user equipment) neighborhood position in wireless communication network | |
WO2014201771A1 (en) | Method for releasing wireless link resource and user equipment | |
WO2012130064A1 (en) | Method and system for transmitting data | |
WO2011035719A1 (en) | Method and system for releasing local connections | |
CN101494588B (en) | Fast route opening method for air interface | |
CN103167602B (en) | Based on method, system and femto gateway that the data of Home eNodeB are transmitted |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081126 Termination date: 20130901 |