CN100589488C - Network-grade sparing method and apparatus for conversation primary protocl application system - Google Patents

Network-grade sparing method and apparatus for conversation primary protocl application system Download PDF

Info

Publication number
CN100589488C
CN100589488C CN 200610032916 CN200610032916A CN100589488C CN 100589488 C CN100589488 C CN 100589488C CN 200610032916 CN200610032916 CN 200610032916 CN 200610032916 A CN200610032916 A CN 200610032916A CN 100589488 C CN100589488 C CN 100589488C
Authority
CN
China
Prior art keywords
server
user agent
sip
request message
backup
Prior art date
Application number
CN 200610032916
Other languages
Chinese (zh)
Other versions
CN1893432A (en
Inventor
楷 文
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN 200610032916 priority Critical patent/CN100589488C/en
Publication of CN1893432A publication Critical patent/CN1893432A/en
Application granted granted Critical
Publication of CN100589488C publication Critical patent/CN100589488C/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L29/00Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00
    • H04L29/02Communication control; Communication processing
    • H04L29/06Communication control; Communication processing characterised by a protocol
    • H04L29/0602Protocols characterised by their application
    • H04L29/06027Protocols for multimedia communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/10Signalling, control or architecture
    • H04L65/1003Signalling or session protocols
    • H04L65/1006SIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/80QoS aspects

Abstract

The invention discloses method for backing up SIP application system, server of using the method, and SIP application system. The SIP application system includes client ends of network connected useragent, server of user agent, and stand by server of user agent. The method includes steps: based on first request message sent from client end of user agent to server of user agent to generate secondrequest message, the said first and second request messages include state data; sending the second request message to stand by server of user agent; after receiving the second request message, the stand by server of user agent creates status data. Using message in SIP to accomplish backing up related status data, the method does not need relevant network equipment to support private protocol dedicated design for backing up purpose. Features are: high generality and expansibility.

Description

会话初始协议应用系统的网络级备份方法、设备技术领域本发明涉及一种会话初始协议(SIP )应用系统的网络级备份方法及采用该方法的i殳备和SIP应用系统。 Session Initiation Protocol network level backup application methods Technical Field The present invention relates to a Session Initiation Protocol network level backup method (SIP) application systems and apparatus using i Shu and SIP applications of the method. 背景技术为了达到99. 999%的电信服务可靠性要求,通常提供电信服务的每个网络设备内部有相应的可靠性机制。 BACKGROUND OF THE INVENTION In order to achieve 99.999% reliability requirements of the telecommunication service, network internal to each device typically provides a corresponding telecommunications service reliability mechanisms. 例如,网络设备通常由多块处理板组成,处理板间配置为主备用关系,正常情况下业务由主用工作板提供。 For example, the network device usually consists of a plurality of processing panels, arranged between the main processing board-standby relationship, a service provided by the main plate working normally. 当主用工作板故障,相应的备用工作板升为主用接替故障板的工作,保证了业务提供的连续性。 When the master work board failure, the standby respective work plate with the main rise to replace the faulty work plate, to ensure the continuity of service provided. 除设备内的可靠性机制外,运营商也关心网络的可靠性。 In addition to the reliability of the mechanism within the device, operators are also concerned about the reliability of the network. 为用户提供服务的某个网络设备因不可控因素,如地震、洪水等而彻底故障。 A network device to provide users with services due to uncontrollable factors, such as earthquakes, floods and complete failure. 运营商希望将该网络设备故障的影响减小到最低,继续为用户提供相应服务。 Operators want to reduce the impact of network device failures to a minimum, continue to provide the appropriate services. 网络可靠性有很多具体实现方案,网络可靠性的实现通常需要在两个主、备网络设备间备份或多或少的业务数据。 Network reliability many specific implementation, the network usually needs to achieve reliable data backup service is more or less between the two main and backup network device. IETF RFC3261所定义的SIP协议,作为一种在两方或多方间创建、 修改、终结会话的应用层协议,当前已得到业界的广泛支持,已广泛应用于各类多媒体会话的建立中。 SIP protocol as defined by IETF RFC3261 as a between two or more parties to create, modify, end the application layer protocol session, the current has been widely supported by the industry, has been widely used to establish various types of multimedia session. 比如,3GPP的IMS网络以SIP协议为基础。 For example, 3GPP IMS network is based on a SIP protocol. SIP协议也可用于基于互联网(Internet)的各类会话控制。 SIP protocol can also be used on various types of session control Internet (Internet) is. 以SIP协议为基础的应用系统将越来越多地部署在电信运营商的网络中,为用户提供高质量的电信服务。 A SIP protocol-based applications will increasingly be deployed in the service provider network, to provide users with high-quality telecommunications services. 本发明关注SIP应用系统中,在主、备网络设备间备份业务数据的方法。 The present invention concerns SIP application system, a method for backing up data traffic between the main and backup network device. 图l是一种现有技术的在主、备网络设备间备份业务数据的结构示意图。 Figure l is a schematic view of a prior art backup service data structure between the main and backup network device. 如图l所示,服务器P1为用户Bob提供服务。 As shown in FIG l, P1 is a server to provide the service user Bob. 为保证主用服务器P1故障时,Bob仍然能够得到服务(接听Alice的呼叫),Bob 的终端配置了两个SIP服务器PI和P2的IP地址。 P1 is the primary server to ensure fault, Bob still get service (answering call Alice), Bob's SIP server terminal is configured with two IP addresses PI and P2. Bob终端在发起注册(REGISTER)时,分别同时注册在两个服务器。 Bob when the terminal initiates a registration (REGISTER), are simultaneously registered in both the server. 当Alice的终端发现PI故障,将INVITE请求发往备用服务器P2。 When Alice's terminal finds PI failure, the INVITE request to a secondary server P2. 因Bob在P2已注册,因此P2可以为Bob服务,将来自Alice的呼叫请求(4) INVITE转发给Bob的终端。 Bob has been registered by P2, P2 may thus serve to Bob, Alice's request from the call (4) forwards the INVITE to Bob's terminal. 在该方案中,达到同步SIP服务器PI与P2关于Bob的注册数据的目的,是通过Bob终端配置两个服务器地址,发起注册、注销时, 同时分别与两个服务器交互而完成的。 In this embodiment, the SIP server to achieve synchronization purposes PI and P2 on Bob's registration data, the server address is configured by two Bob terminal initiates registration, logoff, simultaneously interacting with both servers accomplished. 为了使主、备用服务器中用户注册数据保持同步,用户终端要分别向主、备服务器发送注册请求并接收相应响应。 To make the master, standby server to synchronize the user registration data, the user terminal sends a registration request to the master, respectively, and receive a corresponding response standby server. 相当于用户终端分别在主、备服务器上进行了注册,数据同步是由终端完成的。 Corresponding to each user terminal is registered on the primary and backup servers, data synchronization is performed by a terminal. 在该方案中,为同步网络设备间的数据而增加了对用户终端的要求,而实际的用户终端一般不支持这样的特殊功能,因此该方案不通用。 In this embodiment, data synchronization between the network device and adds the requirement of the user terminal, the actual user terminal typically does not support such special features, so this solution is not universal. 图2是另一种现有技术的在主、备网络设备间备份业务数据的结构示意图。 FIG 2 is a schematic diagram of a data backup service of another prior art structure between the main and backup network device. 为使网络设备间的数据同步方案与终端无关,可在主、备服务器间进行数据动态实时备份。 Program to synchronize data between the terminal device-independent network, dynamic real-time data can be backed up across the primary and backup servers. 如图2所示,Bob只需要注册到服务器Pl 上,其注册相关数据被实时备份到服务器P2。 2, Bob only needs to be registered on the server Pl, which registration data is backed up to the server in real time P2. 当P1故障时,P2也可以为Bob提供服务。 When the fault P1, P2 can also provide services for Bob. 图中Dl与D2为商业数据库,例如SQL服务器, 接口" ( 3) database replication"为商业数据库提供的实时数据备份接口。 Figure Dl and D2 to commercial databases, such as SQL Server real-time data backup interface, the interface "(3) database replication" to commercial databases provide. 通过商业数据库提供的复制机制进行数据备份,显然要求网络设备的实现采用了现有的商用数据库技术。 Data backup through replication mechanisms provided by the database business, apparently required to achieve network equipment uses existing commercial database technology. 但网络设备的实现,基于成本、效率等各方面因素,绝大多数不会采用商用数据库。 But for network equipment, based on cost, efficiency and other factors, the vast majority will not use commercial databases. 如果网络设备的实现没有采用商用数据库,目前也存在通过私有协议在需同步数据的网络设备间传递备份数据的情形。 If the implementation does not use a network device commercial database, it is also present in the case of transfer of the backup data to be synchronized between devices through a private data network protocol. 但私有协议的可扩展性不强,往往与具体要备份的数据相关联。 But scalability private agreement is not strong, often associated with specific data to be backed up. 当增加了新的备份需求,要相应修改私有协议,不是一种通用的方法。 When adding a new backup needs to be modified accordingly private agreement, not a common method. 发明内容本发明的目的是针对SIP应用系统提供克服以上困难的备份方法、 采用该方法的i殳备和系统。 SUMMARY OF THE INVENTION The present invention overcomes the above difficulties is to provide a backup method for SIP applications, this method of preparation and i Shu system. 根据第一方面,本发明提供一种SIP应用系统的网络级备份方法, 所述SIP应用系统包括通过网络相连的用户代理客户端、用户代理服务器和备用用户代理服务器,所述方法包括步骤:所述用户代理服务器基于自用户代理客户端发送给用户代理服务器的第一请求消息,产生第二请求消息,其中所述第一和第二请求消息包括状态数据;所述用户代理服务器将第二请求消息发送给备用用户代理服务器;所述备用用户代理服务器接收到第二请求消息后,创建状态数据。 According to a first aspect, the present invention provides a method of network-wide backup SIP application system, the application system comprising a SIP user agent client connected via a network, the user agent server and standby server user agent, said method comprising the steps of: the said user agent server based on the first request message sent from the user agent client to user agent server, generating a second request message, wherein the request message comprises a first and second state data; the user agent server a second request message is sent to the backup user agent server; the backup server user agent after receiving the second request message, creating status data.

在第一方面中,优选的是,所述产生步骤和发送步骤是由所述用户代理服务器完成的。 In a first aspect, it is preferable that the generating and transmitting steps are performed by the user agent server.

优选的是,所述SIP应用系统包括SIP代理服务器(Proxy),所述产生步骤和发送步骤由该SIP代理服务器在收到来自用户代理服务器的针对第一请求消息的成功响应消息后完成。 Preferably, the system includes a SIP application the SIP proxy server (the Proxy) of the generating and transmitting steps performed by the SIP proxy server receives a response from the user agent server a first message for a successful request message.

优选的是,所述产生第二请求消息的步骤包括,通过在第一请求消息的route (路由)头域中添加备用用户代理服务器的地址而产生第二请求消息。 Preferably, the step of generating a second request message comprises generating the second request message by adding the address of the secondary user agent server in the first route request message (routing) header field.

优选的是,所述状态数据包括订阅状态数据或注册状态数据。 Preferably, the status data comprising status data registered subscription status data. 优选的是,所述方法包括一个确认响应消息由备用用户代理服务 Preferably, the method includes an acknowledgment response message by the standby service user agent

器返回给第二请求消息的发送者,且不被该发送者继续路由的步骤。 Returns to the sender of the second request message, the steps are not transmitted to continue the route. 优选的是,所述第二消息的超时数值是用户代理服务器确定的超 Preferably, the timeout value of the second message is determined by super user agent server

时数值。 When the value.

根据第四方面,提供一种在SIP应用系统中的SIP代理服务器, 所述SIP应用系统包括通过网络和SIP代理服务器相连的用户代理客户端、用户代理服务器和备用用户代理服务器,所述SIP代理服务器包括:基于自用户代理客户端发送给用户代理服务器的第一请求消息, 产生第二请求消息的装置,其中所述第一和第二请求消息包括状态数据;将第二请求消息发送给备用用户代理服务器的装置,从而备用用户代理服务器接收到第二请求消息后,创建状态数据。 According to a fourth aspect, there is provided a SIP proxy server in a SIP application system, said application system includes a SIP user agent client connected via a network and a SIP proxy server, the user agent server and standby server user agent, the SIP proxy the server comprising: based on a first request sent from the user agent client to user agent server's message, the second request message generating means, wherein said first and second status data comprises a request message; transmitting a second request message to the backup user agent server apparatus, so that the standby server user agent receiving the second request message, creating status data.

在第四方面中,优选地,所述SIP代理服务器包括接收来自备用用户代理服务器的确认响应消息且不将其继续路由的装置。 In a fourth aspect, preferably, the SIP proxy server includes receiving an acknowledgment from the backup server, a message to the user agent does not continue to route the response.

优选地,所述SIP代理服务器包括将来自用户代理客户端的第一请求消息发送给用户代理服务器的装置。 Preferably the first request message, the SIP proxy server includes a user agent client from the transmitting apparatus to the user agent server.

根据第六方面,提供一种SIP应用系统,包括用户代理客户端、 用户代理服务器、如第四方面所述的SIP代理服务器和如第三方面所述的备用用户代理服务器。 According to a sixth aspect, there is provided a SIP application system comprising a user agent client, a user agent server, as a fourth aspect according to the SIP proxy server and the standby server user agent as in the third aspect.

需要指出,请求消息和状态数据有关是指依据SIP协议,相关服务器可以从该请求生成所述的状态数据。 It is noted that data relating to the status request message, and means based on the SIP protocol, the server can generate a correlation of the data from the request.

本发明利用SIP协议消息完成相关状态数据的备份,不需要相关 The present invention is related to using the SIP protocol message state data backup is completed, no correlation

6的网络设备支持专门为备份目的设计的私有协议,通用性和扩展性强。 Network Device Support 6 specifically for the purpose of backup proprietary protocol design, versatility and scalability. 附图说明 BRIEF DESCRIPTION

下面将以举例的形式参照附图对本发明的实施方案进行更详细的 The following example will be with reference to the drawings in the form of embodiment of the present invention in more detail

说明,其中: Description, including:

图l是一种现有技术的在主、备网络设备间备份业务数据的组网示意图; Figure l is a schematic view of a prior art backup of network traffic data between main and backup network device;

图2是另一种现有技术的在主、备网络设备间备份业务数据的组网示意图; FIG 2 is a networking diagram of another service data prior art backup between main and backup network device;

图3是用户订阅其注册状态事件的流程的示意图; 图4是用户订阅成功时订阅状态数据的分布示意图; 图5是根据本发明的一个实施方案的网络设备间备份订阅状态数据的流程示意图; FIG 3 is a schematic view of a user subscription process which registration state event; FIG. 4 is a profile schematic view subscription status data when the user subscription is successful; FIG. 5 is a schematic diagram backup subscription between a network device according to one embodiment of the present invention, status data flow;

图6是SIP服务器与备份实体的内部实现机制的示意图; 图7a-d是图5中消息3 -消息6的实际例子;图8是网络设备间备份注册状态数据的流程的示意图; 图9是根据本发明另一个实施方案的SIP应用系统的结构示意图; 图IO是图9所示的SIP应用系统通过SIP消息进行状态数据备份的流程示意图。 FIG 6 is a schematic view of an internal SIP server and backup physical realization mechanism; Figures 7a-d is 5 Message 3 - actual example of a message. 6; FIG. 8 is a schematic diagram between the network device backup registration status of data flow; FIG. 9 is SIP application system schematic structure of another embodiment of the present invention; Figure IO is a flow diagram of the SIP application state data backup system shown in FIG. 9 by a SIP message. 具体实施方式 Detailed ways

网络设备间的数据备份, 一般不需要备份呼叫状态相关数据(呼叫状态变化非常频繁,数据量大,只在设备内部主、备板间进行实时备份),而是针对用户在网络设备的注册状态数据、订阅状态数据等数据量不大,变化不频繁的重要数据进行实时备份。 Backup data between network devices, generally do not need backup data call status (call state changes very frequently, the amount of data, real-time backup only within and between the primary and backup board equipment), but for the user registration status in the network device small amount of data, subscription status data, changes are not frequent backups of important data in real time.

SIP注册过程可参见RFC3261第10章"Registrations" 。 SIP registration process can be found in Chapter RFC3261 section 10 "Registrations". SIP 订阅的基本过程可参见RFC3265。 The basic process SIP subscription can be found in RFC3265. 基于RFC3265的架构,由其他RFC 定义具体的事件订阅机制。 RFC3265-based architecture, by other specific RFC defining event subscription mechanism. 例如RFC3680 (A SIP Event Package for Reg is trat ions )定义了注册状态事件的订阅和通知机制。 For example RFC3680 (A SIP Event Package for Reg is trat ions) defines the subscription and notification mechanism registration status events. 通过该机制, 用户可订阅其在网络设备的注册状态。 Through this mechanism, the user can subscribe to its registration status in the network device. 当该用户注册状态发生变化, 可获得及时的NOTIFY通知。 When the user registration status changes, to get timely notification NOTIFY. 例如,用户通过多个不同终端同时注册在服务器,用户进入实验室再以实验室终端注册。 For example, a plurality of different user terminals at the same time registered in the server, then the user enters the lab to lab terminal registration. 用户通过网络设备发来的注册状态事件通知,了解自己共在哪些终端上进行了注册。 Sent to the user via the network device registration state event notification, conducted a total understanding of their registration on which the terminal. 注册状态事件订阅机制还可用在其他场合,具体可参考RFC3680第三章"Usage Scenarios"。 Registration state event subscription mechanism can also be used on other occasions, specifically refer to RFC3680 chapter "Usage Scenarios".

本发明将以"订阅和注册状态数据"在网络设备间的备份为例说明本发明的具体实现。 The present invention will be "subscription and registration status data" in the backup network device between an example of the present invention is embodied.

图3是用户订阅其注册状态事件的流程的示意图。 Figure 3 is a schematic flow of its registered users to subscribe to a state event. 如图3所示, 步骤1-4,用户终端UE通过SIP服务器的认证后,在SIP服务器注册成功。 3, in step 1-4, the user terminal UE after the authentication of the SIP server, the SIP server registration is successful. 步骤5-6, UE收到对注册请求REGISTER的200响应后,发送SUBSCRIBE (即,订阅)消息订阅其自身注册状态事件。 Step 5-6, UE 200 after receiving a response to the registration request REGISTER, and transmits the SUBSCRIBE (i.e., subscriber) message subscription registration state event itself. UE收到对SUBSCRIBE的200响应,维护相应的SIP Dialog (对话)状态以及订阅Subscription (订阅)状态。 UE received 200 responses to SUBSCRIBE, maintaining appropriate SIP Dialog (Dialogue) status and subscription Subscription (subscription) status. 步骤7-8,因业务需要,例如运营商更改用户签约数据,需要终端发起重新注册,SIP服务器向UE发NOTIFY (通知)请求以通知其注册状态改变,此NOTIFY请求的发送基于步骤5-6中用户终端与SIP服务器间建立的SIP对话及订阅状态。 Step 7-8, the business needs, for example, the operator changes the user subscription data, the terminal needs to initiate a re-registration, the SIP server to the UE NOTIFY (notification) request to inform it of the status register changes, based on the transmission of this NOTIFY request of step 5-6 between the user terminal and the SIP server to establish a SIP dialog and subscription status.

对话是SIP协议的基本概念之一,对话是在两个用户代理(UA) 间持续一段时间的点对点的联系,由Call-ID、 From Tag、 To Tag等来唯一标识。 Dialogue is one of the basic concepts of the SIP protocol, dialogue is the point of contact for a period of time between two user agent (UA), the Call-ID, From Tag, To Tag and other uniquely identified. 对话中保存一些状态数据,如路由集等。 Dialogue to preserve some state data, such as routing sets.

成功的订阅除了创建对话之外,也会创建订阅。 In addition to creating a successful subscription dialogue, will create a subscription. 订阅也是SIP协议的基本概念之一。 Subscribe SIP protocol is one of the basic concepts. 订阅包含对应的对话指针、事件包名称、订阅定时器以及与具体事件相关的状态。 Subscribe to include dialogue pointer corresponding event package name, subscription timers and state associated with specific events. 后续SIP服务器发向终端的事件通 Subsequent SIP event server sent to the terminal through

知NOTIFY,以及后续终端通过SUBSCRIBE消息进行订阅状态的更新, 都要基于已建立的对话和订阅。 I know NOTIFY, and subsequent terminal to update subscription status by the SUBSCRIBE message, to be based on dialogue and subscription established.

图4是用户订阅成功时订阅状态数据的分布示意图。 FIG 4 is a schematic view of the distribution state of the subscription data when the user subscription is successful. 如图4所示, 当用户订阅成功,在用户终端与SIP服务器都保存了与该订阅相关的对话和订阅。 4, when a user subscribes to succeed, the user terminal and the SIP server are stored associated with the subscription dialogue and subscriptions.

任何用户注册状态的改变都会通过NOTIFY消息通知终端。 User registration state change to any terminal through a NOTIFY message notification. 当SIP 服务器故障,用户在该SIP服务器上的注册状态实际丟失了,这本身也是注册状态的改变,也应该通知订阅注册状态事件的终端。 When the SIP server failure, the user registration status on the SIP server's actual loss, which in itself is a change of state registration should also notify subscribers terminal registration status events. 但SIP 服务器在本身故障的情况下无法发出任何通知消息。 But in the case of SIP server failure itself can not issue any notification messages. 如能将与用户订阅相关的订阅状态数据(即前述的对话和订阅)保存在备用实体,备用实体可基于保存的SIP对话及订阅,生成NOTIFY通知终端相应的注册状态已失效。 The user can subscribe to a subscription-related state data (i.e., the dialogue and subscription) stored in the backup entity, the entity may be based on the standby SIP dialog and save subscription, the terminal generates a corresponding NOTIFY registration state notification has expired.

图5是根据本发明的一个实施方案的网络设备间备份订阅状态数据(对话和订阅)的流程的示意图。 FIG 5 is a schematic diagram of a backup subscription between network devices of the present invention, the embodiment of status data (dialog and subscriptions) the process. 两个网络设备间备份订阅状态数据的流程如下。 Backup subscription status data between two network devices of the process is as follows.

步骤1-2,用户终端在SIP服务器注册成功。 Step 1-2, the user terminal is successfully registered SIP server.

步骤3-4,终端发起用户注册状态事件订阅。 Steps 3-4, the user terminal initiates a registration state event subscription. SIP服务器接收该订阅请求,并回送对SUBSCRIBE的200响应表明接受该订阅。 The SIP server receives the subscription request, sending back a response to the SUBSCRIBE 200 indicates acceptance of the subscription. SIP月良务器保存了与该订阅相关的对话及订阅信息。 SIP month good service saves the session associated with the subscription and subscription information.

步骤5-6, SIP服务器要将对话以及订阅信息备份到备用实体, 向备用实体发送一个与消息3类似的SUBSCRIBE请求消息来达到这一目的。 Step 5-6, SIP session server want to backup and backup entity subscription information, and sending a message similar to 3 SUBSCRIBE request message to the backup entity for this purpose. 备用实体依据收到的SUBSCRIBE请求生成对话及订阅,向SIP 服务器回送200响应。 SUBSCRIBE spare entity based on receipt of a request to generate dialogue and subscribe to the SIP server to send back a 200 response. SIP服务器收到200响应,表明订阅状态数据备份成功。 SIP server receives a 200 response, indicating a successful subscription status data backup.

图6是SIP服务器与备份实体的内部实现机制的示意图。 FIG 6 is a schematic view of an internal backup server SIP entities implementation mechanism. 如图6 所示,步骤1-2, SIP服务器接收到SUBSCRIBE请求后,终结该请求。 6, steps 1-2, SIP server receives the SUBSCRIBE request, the request is terminated. Server APP模块接受该订阅并向终端回送200响应表明订阅成功。 Server APP module to accept the subscription and transmits back a 200 response indicates that the subscription is successful. 对话、订阅也相应被创建和保存。 Dialogue, subscription accordingly be created and saved. 通常的订阅流程到这里结束。 The usual subscription process ends here. 步骤3,根据本发明,SIP服务器的应用层判断需要将订阅状态数据备份到相应的备用实体(例如,依据配置信息),通过接口3,通知备份(Backup)模块进行后续处理。 Step 3, according to the present invention, a SIP server determines an application layer required to subscribe to a state corresponding standby data backup entity (e.g., depending on the configuration information), for subsequent processing through the interface 3, notification backup (Backup) module.

步骤4,备份模块能通过SIP协议栈接口获得SIP服务器从终端接收的SUBSCRIBE请求消息,由于要将该请求路由到备用实体,在SUBSCRIBE请求中增加Route头域包含目的备份实体地址,通过SIP 协议栈事务层(Transaction)将该请求发到相应的备用实体。 Step 4, the backup module is obtained by SIP stack interfaces SIP server receives the SUBSCRIBE request message from the terminal, due to the request is routed to an alternate entity, increasing the Route header field contains the physical address for backup purposes, a SIP SUBSCRIBE request in the protocol stack transaction layer (transaction) the request sent to the respective backup entities.

步骤5-6,备用实体接收到SUBSCRIBE请求,依据SIP协议要求的处理过程,将创建对话以及订阅等订阅状态数据,并依据SUBSCRIBE 请求中携带的Via头域回送200响应到SIP服务器。 Step 5-6, the backup entity receives the SUBSCRIBE request, according to the SIP protocol processing required to create the session subscription status and subscription data and the like, and based on the Via header of the SUBSCRIBE request carries the 200 response sent back to the SIP server. 由于是备用实体, 收到SUBSCRIBE请求,不按SIP协议处理流程对收到的请求继续做路由。 Since backup entity is received SUBSCRIBE request, not according to the processing flow of the SIP protocol to continue routing the received request. 一方面,备用实体可以将自身定位为相对于SIP服务器的备用服务器,凡是来自SIP服务器的请求消息均不再作继续路由。 In one aspect, the backup entity may itself be positioned with respect to the backup server of the SIP server, a request message from the SIP server who are no longer continue to make routes. 另一方面, SIP服务器在发给备用实体的请求时,也可以通过添加特定的指示来表明是做备份用途,例如,备用实体依据接收的请求中的Route头域中所携带的指示参数来判断自身对该请求做备用实体角色。 On the other hand, sent to the SIP server when the requesting entity standby, or by adding a specific indication is made to indicate backup purposes, e.g., based on received requested alternative entity in the Route header field carried indicated parameters to determine the requesting entity to do their own backup role.

步骤7, SIP服务器从事务层接收到备用实体的200响应后,关联到相应的备份模块。 After step 7, SIP server 200 receives the response from the transaction layer to the standby entities associated to a respective backup module. 虽然该200响应中还有后续的Via头域,但备份模块此时并不将该200响应依据Via头域继续路由。 Although there is the subsequent response 200 Via header field, but this time is not the backup module 200 continues response based routing Via header.

通过以上流程,SIP服务器完成订阅状态数据在备用实体的备份。 Through the above process, SIP server to complete the backup data in the backup status subscription entity.

需要指出,在具体实现中,步骤3和步骤2的顺序可能有所不同。 It is noted that, in the specific implementation, the order of Step 2 and Step 3 may vary. 此外,SIP服务器也可以将Subscribe请求消息按照备用实体的IP地址发给备用实体,然后备用实体将与之对应的成功响应消息按照SIP 服务器的IP地址发送给SIP服务器。 In addition, the SIP server may be Subscribe request message to the standby spare physical IP addresses of the entity, then spare entity sends a message to the SIP server according to the IP address of the SIP server the corresponding successful response.

在SIP订阅机制的交互过程中,用户终端发送的Subscribe请求中包含Expire (超时)头域,向SIP服务器表明其希望的订阅周期。 During the interaction, the SIP subscription mechanism, the user terminal transmits the Subscribe request contains the Expire (timeout) header field, indicating that a desired period of subscription to the SIP server. 订阅周期结束前,终端需重新发送Subscribe请求更新订阅状态,否则SIP服务器将结束订阅。 Before the end of the subscription period, the terminal needs to re-send request Subscribe update subscription status, or SIP server will end the subscription. SIP服务器返回的20G响应也携带超时头域,确定最终的订阅周期(可缩短用户要求的订阅周期)。 20G response to the SIP server returns the header field also contain the timeout, to determine the final subscription period (user requirements can be shortened subscription period). 如SIP服务器200响应中超时的值与所接收Subscribe请求中超时的值不同, 则图6步骤4发给备用实体的Subscribe中的超时头域需为SIP服务器最终确定的订阅周期,而不是终端希望的订阅周期。 The super value when SIP server 200 in response to the value of the received different Super Subscribe request, step 6 in FIG. 4 is circulated Subscribe standby timeout entity header field for an SIP server to determine the final subscription period, instead of the terminal desired the subscription period. 这是因为备用实体没有决定订阅周期的逻辑判断功能,仅依据收到的Subscribe请求自动生成相应的对话和订阅。 This is because there is no spare physical decision logic subscription period determining function, based only on the Subscribe request received and automatically generate the appropriate subscription dialog.

当SIP服务器接收终端发出的用于更新已有订阅的SUBSCRIBE请求,同样按图6流程向备用实体发送SUBSCRIBE请求以更新备用实体的相应订阅状态数据。 Issued by the reception terminal when the SIP server for updating an existing subscription SUBSCRIBE request, sends a SUBSCRIBE request to update the same entity corresponding to the standby state to the standby subscription entity 6 according to the process of FIG.

终端没有发送订阅请求以刷新订阅状态而导致已有订阅的超时终止,SIP服务器不需要与备用实体交互,因订阅定时器功能通常属于SIP协议栈功能。 The terminal does not transmit a subscription request to subscribe to the refresh state timeout termination cause existing subscribers, does not need to interact with the SIP server backup entity, because the timer function generally belong to the subscription SIP Stack functions. 当没有收到用于刷新的订阅请求,备用实体上的订阅状态也会自动终止。 When not received subscription request for refreshing, on the alternate entity subscription status is also automatically terminated.

图7a-d是图5中消息3-消息6的实际例子。 FIGS. 7a-d is the actual message Example 5 3- message of FIG. 通过图7a所示的消息3,用户终端向SIP服务器发起事件订阅。 Message as shown by FIG. 7a 3, the user terminal initiates a subscription to the SIP event server. 通过图7b所示的消息4, SIP服务器回送200响应表明订阅成功。 Message shown in FIG. 4, SIP server returns a 200 response indicates successful subscribe FIG 7b. 通过图7c所示的消息5, SIP服务器通过向备用实体发送SUBSCRIBE请求来备份相关状态。 Message 5 shown by FIG. 7c, SIP SUBSCRIBE request sent by the server to the standby state backup-related entity. 其中添加Ha头域为自身地址,添加Route头域包含备用实体地址。 Ha header added thereto as the own address, add a Route header field contains the alternate physical address. 其中超时头域的值等于消息4中相应的超时值。 Wherein the value of the timeout header field equal to the corresponding 4 message timeout value. 通过图7d所示的消息6, SIP服务器收到来自备用实体的200响应,其中Via包含自身地址。 Message as shown by FIG. 7d 6, SIP server 200 receives a response from the alternate entity, wherein Via comprising its own address. 此时SIP服务器并不依据其他Via头域继续路由该200响应。 At this time, according to another SIP server does not route the Via header 200 continues response.

同理,当需要备份注册状态数据时,SIP服务器也可采用类似方法向备用实体发送REGISTER (即,注册)请求完成注册状态数据的时实备份。 Similarly, when the need to backup state data register, the SIP server sends a REGISTER method may also be employed similarly to the auxiliary entity (i.e., registration) request completion real backup data registration state. 图8是网络设备间备份注册状态数据的流程的示意图。 FIG 8 is a schematic view of the backup device registration status between the network data flow. 由于具体过程与订阅状态数据类似,故不再重复。 Since the specific process is similar to the subscription status data, thus it will not be repeated.

图9是根据本发明的另一个实施方案,SIP应用系统进行状态数据备份的结构示意图。 Figure 9 is another embodiment of the present invention, SIP application state data structure diagram of the system will be backed up. 在该实施方案中,通过网络设备SIP代理服务器(PROXY)将来自终端的请求按正常流程转发给SIP服务器,SIP服务器处理成功后,SIP代理服务器也将接收的来自终端的请求发送给备用实体。 In this embodiment, the request from the terminal is forwarded through the network device a SIP proxy server (the PROXY) normal flow of the SIP server, the SIP server process is successful, SIP proxy server also send request from the terminal received to the backup entities.

以注册为例,该实施方案的具体流程图如图IO所示。 In registration, the detailed flow chart of the embodiment shown in FIG. IO. 如图10,发送给备用实体的消息5 REGISTER与发往SIP服务器的消息2的差异,在于消息2是按通常的SIP消息路由方式生成的。 10, a difference in transmission message to the backup entities and 5 REGISTER message sent to the SIP server 2, the message 2 that is generated in the usual SIP message routing. 消息5是SIP代理服务器强行发往备用实体的,增加一个Route头域表明备用实体的地址。 5 is a SIP proxy message server entity to a secondary force, increasing a Route header field indicates that the spare address of the entity.

此实施方案的备份方法本质上与前面描述的方法是相同的,仅是将原先在SIP服务器所完成的备份工作(注册成功后,向备份服务器 The method essentially backup method of this embodiment is the same as previously described, and only after the completion of the original at a SIP server backups (successful registration, the backup server

发送REGISTER以备份状态数据)改在由SIP代理服务器来执行。 Sending a REGISTER in a backup state data) it is performed by a change in the SIP proxy server. 这里, SIP代理服务器需收到对REGISTER的2GG响应,确定注册成功后,再执行相应的备份任务。 Here, SIP proxy server must receive 2GG response to REGISTER determined after the registration is successful, then perform the appropriate backup tasks.

此外,结构示意图9中的SIP代理服务器,也可被替换为SIP实体B2BUA ( Back-to-Back User Agent)背靠背用户代理,此时备份处理过程与前述相同。 In addition, the structure 9 is a schematic diagram of a SIP proxy server, the proxy may be replaced as a SIP entity B2BUA (Back-to-Back User Agent) user back to back, this time with the same backup process. B2BUA向SIP服务器发送请求并收到成功响应后, 向备用实体发送相应请求以备份相关状态数据。 SIP B2BUA sends a request to the server, and a successful response is received, a request to send a corresponding backup-related state data to the backup entities.

本发明的技术方案利用SIP协议消息完成相关状态数据的备份, 不需要相关的网络设备支持专门为备份目的设计的私有协议,通用性和扩展性强。 Aspect of the present invention using the SIP protocol message related to backup state data is completed, the network device need not associated with private protocol designed specifically for backup purposes, versatility and expandability.

利用SIP消息在SIP服务器和相关备用实体间传递信息,可利用SIP消息的路由机制。 Using SIP messaging information between the SIP server and the entity associated standby, may utilize SIP message routing mechanism. SIP服务器和备用实体往往不在一处(否则无法达到容灾的效果),其间可以有其他网络设备,通过这些网络设备可完成SIP消息的路由。 SIP server, and a standby entity often not (or can not achieve the effect of the disaster), during which there may be other network devices, the network devices can be done through the route of the SIP message.

本发明前面的描述以发送SIP请求的实体为用户终端,接收SIP 请求的实体为SIP服务器的方式为例来说明。 In the foregoing description of the present invention, the entity sends an SIP request for the user terminal, the receiving entity is a SIP request SIP server will be described with an example embodiment. 实际上,本发明中发送SIP请求的实体并不限定于是终端,也可以是SIP服务器,本质上是SIP协议中的逻辑实体UAC(用户代理客户端),接收SIP请求的实体也不限定是SIP服务器,也可以是终端,本质上是SIP协议中的逻辑实体UAS (用户代理服务器端)。 Indeed, the present invention is a SIP request entity transmitting terminal is not limited so, but may be a SIP server, is a logical entity UAC (User Agent Client) essentially SIP protocol, the receiving entity is not defined SIP request is a SIP server, the terminal may be, it is a logical entity UAS (user agent server) in essentially the SIP protocol. 前述备用实体本质上也是UAS。 Entities are essentially the standby UAS.

需要指出,本发明的技术方案既可以由运行在网络服务器中的中央处理器(CPU)的软件来实现,也可以由独立的硬件组合完成。 It is noted that the technical solution of the present invention may be implemented by a central processor running in the network server (CPU) of software can be performed by a combination of independent hardware.

显而易见,在此描述的本发明可以有许多变化,这种变化不能认为偏离本发明的精神和范围。 Obviously, the invention described herein may have many variations, such variations are not regarded as a departure from the spirit and scope of the invention. 因此,所有对本领域技术人员显而易见的改变,都包括在本权利要求书的涵盖范围之内。 Therefore, all of the skilled person obvious modifications are included within the present scope of the claims of.

Claims (9)

1.一种会话初始协议SIP应用系统的网络级备份方法,所述SIP应用系统包括通过网络相连的用户代理客户端、用户代理服务器和备用用户代理服务器,所述方法包括步骤:所述用户代理服务器基于自用户代理客户端发送给用户代理服务器的第一请求消息,产生第二请求消息,其中所述第一和第二请求消息和拟备份的状态数据有关;所述用户代理服务器将第二请求消息发送给备用用户代理服务器;所述备用用户代理服务器接收到第二请求消息后,创建该状态数据。 Network level backup method for a Session Initiation Protocol SIP application system, said application system includes a SIP user agent client connected via a network, the user agent server and standby server user agent, said method comprising the steps of: the user agent transmitted from the server based on user agent client to user agent server a first request message, generating a second request message, wherein the first and second request messages and status data relating to the proposed backup; the second user agent server standby request message to the user agent server; spare the user agent server receiving the second request message, the status data is created.
2. 如权利要求1所述的网络级备份方法,其特征在于所述SIP应用系统包括SIP代理服务器,所述产生步骤和发送步骤由该SIP代理服务器在收到来自用户代理服务器的针对第一请求消息的成功响应消息后完成。 2. The network-level backup method according to claim 1, wherein said system comprises a SIP application the SIP proxy server, the first for generating and transmitting steps of the SIP proxy server receives from the user agent server successful completion of the request message, response message.
3. 如权利要求1-2之一所述的网络级备份方法,其特征在于所述产生第二请求消息的步骤包括,通过在第一请求消息的路由头域中添加备用用户代理服务器的地址而产生第二请求消息。 3. The network-level backup method according to one of claims 1-2, wherein said step of generating a second request message comprises, by adding a routing header field of the first request message of the proxy server address of the secondary user generating a second request message.
4. 如权利要求1-2之一所述的网络级备份方法,其特征在于所述状态数据包括订阅状态数据或注册状态数据。 4. The network-level backup method according to one of claims 1-2, wherein said status data includes data subscription status register or status data.
5. 如权利要求4所述的网络级备份方法,其特征在于所述第二消息的超时头域的数值是用户代理服务器确定的超时数值。 5. The network-level backup method according to claim 4, characterized in that the time-out value of the header field of the second message is determined by the user agent server timeout value.
6. 如权利要求1-2之一所述的网络级备份方法,其特征在于包括"个第二请求消息的确认响应消息由备用用户代理服务器返回给第二请求消息的发送者,且不被该发送者继续路由的步骤。 6. The network-level backup method according to one of claims 1-2, characterized by comprising a "second message confirmation request response message returned by the backup server to the second user agent sender of the request message, is not the step of routing the sender continues.
7. —种在SIP应用系统中的SIP代理服务器,所述SIP应用系统包括通过网络和SIP代理服务器相连的用户代理客户端、用户代理服务器和备用用户代理服务器,所述SIP代理服务器包括:基于自用户代理客户端发送给用户代理服务器的第一请求消息,产生第二请求消息的装置,其中所述第一和第二请求消息和拟备份的状态数据有关;将第二请求消息发送给备用用户代理服务器的装置,从而备用用户代理服务器接收到第二请求消息后,创建所述状态数据。 7. - species in the SIP application server in the SIP proxy, the SIP user agent application system includes a client connected via a network and a SIP proxy server, the user agent server and standby server user agent, the SIP proxy server comprising: based sent from the user agent client to user agent server a first request message, the second request message generating means, wherein said first and second request message and the status data related to the proposed backup; transmitting a second request message to the backup user agent server apparatus, so that the standby server user agent receiving the second request message, to create the status data.
8. 如权利要求7所述的SIP代理服务器,其特征在于包括接收来自备用用户代理服务器的确认响应消息且不将其继续路由的装置。 8. The SIP proxy server according to claim 7, comprising receiving an acknowledgment from the backup server a response message the user agent device will not continue its route.
9.如权利要求7所述的SIP代理服务器,其特征在于包括将来自用户代理客户端的第一请求消息发送给用户代理服务器的装置。 9. The SIP proxy server according to claim 7, characterized by comprising means from the user agent client a first request message sent to the user agent server.
CN 200610032916 2006-01-11 2006-01-11 Network-grade sparing method and apparatus for conversation primary protocl application system CN100589488C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610032916 CN100589488C (en) 2006-01-11 2006-01-11 Network-grade sparing method and apparatus for conversation primary protocl application system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200610032916 CN100589488C (en) 2006-01-11 2006-01-11 Network-grade sparing method and apparatus for conversation primary protocl application system
PCT/CN2006/003285 WO2007079647A1 (en) 2006-01-11 2006-12-05 A method, apparatus and system for network level backup of sip application system

Publications (2)

Publication Number Publication Date
CN1893432A CN1893432A (en) 2007-01-10
CN100589488C true CN100589488C (en) 2010-02-10

Family

ID=37597945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610032916 CN100589488C (en) 2006-01-11 2006-01-11 Network-grade sparing method and apparatus for conversation primary protocl application system

Country Status (2)

Country Link
CN (1) CN100589488C (en)
WO (1) WO2007079647A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647397B (en) * 2011-02-17 2016-12-21 中兴通讯股份有限公司 A kind of method and system of SIP meeting call protection
CN102685163A (en) * 2011-03-15 2012-09-19 中兴通讯股份有限公司 Method and system for protecting basic session in DSN (Distributed Service Network) VoIP (Voice over Internet Protocol) service system
CN102891833B (en) * 2011-07-21 2017-03-29 中兴通讯股份有限公司 Network disaster tolerance method and system
CN103152407A (en) * 2013-02-20 2013-06-12 浪潮电子信息产业股份有限公司 Method for designing integral data disaster recovery backup system
CN104486305B (en) * 2014-12-03 2017-10-31 中国电子科技集团公司第三十研究所 A kind of sip server state transition sharing method based on business trigger mechanism
CN105338006B (en) * 2015-12-15 2018-05-29 烽火通信科技股份有限公司 The method of callee side Session Initiation Protocol stack session status Backup and Restore in IMS systems

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230281B1 (en) 1998-08-26 2001-05-08 Lucent Technologies, Inc. Geographic redundancy protection method and apparatus for a communications network
WO2004028066A2 (en) 2002-09-20 2004-04-01 Tekelec Methods and systems for locating redundant telephony call processing hosts in geographically separate locations
CN1574979A (en) 2003-06-11 2005-02-02 西门子公司 Redundant operation of an end terminal relative to at least two communication nodes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7020707B2 (en) * 2001-05-30 2006-03-28 Tekelec Scalable, reliable session initiation protocol (SIP) signaling routing node

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230281B1 (en) 1998-08-26 2001-05-08 Lucent Technologies, Inc. Geographic redundancy protection method and apparatus for a communications network
WO2004028066A2 (en) 2002-09-20 2004-04-01 Tekelec Methods and systems for locating redundant telephony call processing hosts in geographically separate locations
CN1574979A (en) 2003-06-11 2005-02-02 西门子公司 Redundant operation of an end terminal relative to at least two communication nodes

Also Published As

Publication number Publication date
CN1893432A (en) 2007-01-10
WO2007079647A1 (en) 2007-07-19

Similar Documents

Publication Publication Date Title
Wang et al. ICEBERG: An Internet core network architecture for integrated communications
US7469299B2 (en) Bridging user agent and a proxy server for supporting network services
CN1297923C (en) System and methods for providing instant services in an internet protocol network
US8064342B2 (en) Load balancing session initiation protocol (SIP) servers
US8396972B2 (en) Session control apparatus, software applied to session control apparatus, communication control method, and network system
US8706892B2 (en) Communication system and server
US9667674B2 (en) Method, device, and system for connecting to a communication device
CN100493078C (en) A method and system to subscription of events using SIP protocol
CN101170553B (en) Method and device for realizing Internet protocol multi-media sub-system disaster tolerance
US20050201358A1 (en) Rotating media channels between resources of an emergency services network and conforming emergency systems
US20040133641A1 (en) Distributed services based on presence technology
JP5523012B2 (en) How to register an endpoint in the list of surviving network controllers in the controller sliding window
JP5379167B2 (en) SIP-HTTP application correlator
JP2005512421A (en) Service access and conference system and method in communication network
CN1640110B (en) Apparatus and method for computer telephone integration in packet switched telephone networks
US7707286B2 (en) Methods for managing presence information in a real-time communications network
US20070078986A1 (en) Techniques for reducing session set-up for real-time communications over a network
US20110307541A1 (en) Server load balancing and draining in enhanced communication systems
US8055778B2 (en) SIP user agent with simultaneous multiple registrations
US7978686B2 (en) System and method for feature-based services control using SIP
JP2005517356A (en) Method and apparatus for session release in a communication system
US6992974B1 (en) System and method for providing fault tolerance in a network telephony system
EP2179541B1 (en) Systems, methods, and computer program products for distributing application or higher layer communications network signaling entity operational status information among session initiation protocol (sip) entities
US10135806B2 (en) Method and system for creating a virtual SIP user agent by use of a WEBRTC enabled web browser
US8001250B2 (en) SIP and HTTP convergence in network computing environments

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted