WO2011137830A1 - Message pushing method of service delivery platform, relevant device and system - Google Patents

Message pushing method of service delivery platform, relevant device and system Download PDF

Info

Publication number
WO2011137830A1
WO2011137830A1 PCT/CN2011/074739 CN2011074739W WO2011137830A1 WO 2011137830 A1 WO2011137830 A1 WO 2011137830A1 CN 2011074739 W CN2011074739 W CN 2011074739W WO 2011137830 A1 WO2011137830 A1 WO 2011137830A1
Authority
WO
WIPO (PCT)
Prior art keywords
notification message
user terminal
message
notification
unit
Prior art date
Application number
PCT/CN2011/074739
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2011137830A1 publication Critical patent/WO2011137830A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/06Transport layer protocols, e.g. TCP [Transport Control Protocol] over wireless
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • SMS Short Message
  • MMS Mobile Broadcast
  • Push Mail business such as BlackBerry's mail active push service
  • IM instant messaging
  • CAB Convergent Address Book
  • the user terminal receives different messages, such as the short message is sent by the traditional signaling network; the multimedia message is first sent a push (PUSH) message notification, and then through the general packet wireless service (GPRS, General Packet Radio Service) Download message content; SNS does not have a unified standard, SNS needs to send a notification message to the user terminal first, prompting — The user has a notification to add a friend request, a friend status update, and a log update. The user terminal then views the detailed class through GPRS.
  • PUSH push
  • GPRS General Packet Radio Service
  • the SDP platform needs to send messages according to different data service channels. There is no unified delivery channel, which makes the network utilization less efficient. If the user terminal wants to use multiple services at the same time, it needs to be established according to different protocol channels. Different connections are used to receive messages, which causes the power consumption of the user terminal battery to be too fast, and the user terminal also needs to support a plurality of protocol notification mechanisms, which complicates the development of the user terminal software. Summary of the invention
  • the SDP message pushing method of the service delivery platform includes: acquiring a first notification message sent by the service platform; performing unified protocol conversion on the first notification message to obtain a second notification message unified by the protocol; Sending the second notification message to the user terminal.
  • the SDP message pushing method includes: receiving a second notification message sent by the SDP message pushing device, where the second notification message is sent by the SDP message pushing device
  • the first notification message sent by the platform is obtained by the unified protocol conversion; establishing an IM network connection with the user terminal; preferentially transmitting the second notification message to the user terminal by using the IM network connection; determining to pass the IM network Whether the connection sends the second notification message fails, if yes, establishes a transmission control protocol TCP connection with the user terminal, and sends a second notification message to the user terminal through the TCP connection, or directly to the user terminal by means of a short message Send a second notification message.
  • the embodiment of the present invention has the following advantages:
  • the SDP platform can receive the first notification message of the service platform by using the SDP message pushing device.
  • the first notification message with different protocols performs unified protocol conversion, obtains a second notification message unified by the protocol, and then sends the second notification message to the user terminal through the IM server, thereby greatly improving the efficiency of network utilization;
  • the user terminal is also Only the protocol supporting the selected delivery channel is needed, which simplifies the development process of the user terminal software.
  • a unified delivery channel can be used, and the user terminal can establish only one type of connection receiving notification message, which saves The power consumption of the user terminal.
  • the SDP message pushing device first sends a second unified notification message to the IM server, and then the second notification message is sent by the IM server to the user terminal.
  • the manner in which the second notification message is specifically sent in this embodiment will be described in detail in the following embodiments.
  • the SDP message pushing device acquires the protocol type of the first notification message, and then decapsulates the first notification message to obtain the message content (ie, the message body), and queries the corresponding unified in the protocol type mapping relationship according to the protocol type of the first notification message. Agreement
  • protocol conversion mode in this embodiment is only an example. In the actual application, the protocol conversion may also be performed in other manners, which is not limited herein.
  • step 204 is triggered; if the delivery mode is conditional delivery, step 205 is triggered.
  • the specific delivery method can be confirmed by the user in advance of the content registered in the SDP message pushing device. Certainly, it can also be determined by the operator based on factors such as network status, network bandwidth, and user requirements. Which party determines the delivery method, which is not limited here.
  • the SDP message pushing device sends a second notification message to the IM server immediately after processing a second notification message, so that the IM server is sent to the user.
  • the terminal sends the second notification message.
  • the notification policy includes a notification policy set by the system and a notification policy set by the user.
  • the system preset notification policy is a default policy that is valid for all users.
  • the SDP message pushing device delivers the system-preferred notification policy; the user-set notification policy is based on the user's own The preferences and requirements of custom notification strategies.
  • the specific delivery manner may be based on network status, network bandwidth, and user.
  • - Determine requirements and other conditions to improve network utilization efficiency and user experience.
  • the SDP message pushing method in the embodiment of the present invention is described below with reference to a specific embodiment.
  • another embodiment of the SDP message pushing method in the embodiment of the present invention includes:
  • the content of the steps 301 and 302 in the embodiment is the same as the content of the steps 201 and 202 in the embodiment shown in FIG. 2, and details are not described herein again.
  • the SDP message pushing device sends a second unified notification message to the IM server, so that the IM server sends the second notification message to the user terminal.
  • the second notification message is resent to the IM server according to the preset retransmission rule.
  • the preset retransmission rule may be: resending the second notification message to the IM server, and requesting the IM server to actively connect to the user terminal by using the TCP mode, and the IM server actively connects to the TCP server multiple times. - After the user terminal sends the second notification message is still unsuccessful, the IM server is required to send the second notification message by using the short message mode.
  • the above-mentioned retransmission rule is only an example in the actual application.
  • the retransmission rule can also have another retransmission process, which is not limited herein.
  • the determining mechanism of step 309 determines whether the second notification message is successfully sent by the IM server, and if successful, deletes the cached second notification message. If not, the retransmission mechanism is triggered. Steps 309 to 311 are optional in the embodiment, and are not specifically limited.
  • the delivery mode is the conditional expression
  • the user can freely set the notification policy according to his own needs (eg, the environment in which the user is located), and reduce the notification message.
  • the IM server preferentially transmits the second notification message to the user terminal through the IM network connection.
  • the IM server of the present invention has three channels of IM, TCP, and SMS, because the general SDP message pushing device uniformly converts the first notification message into the XMPP protocol.
  • the second notification message, and the XMPP protocol is the default protocol of the IM channel, so the IM server preferentially selects the IM network connection to send the second notification message.
  • the IM server clears the TCP counter.
  • the TCP counter records the number of times the IM server initiates an active connection to the user terminal. When a certain threshold is exceeded, the IM server will not initiate a TCP connection.
  • the IM server determines whether the second notification message is sent through the IM network connection, and if so, triggers step 407; if not, triggers step 406. Whether the second notification message is sent through the IM network connection fails can be judged according to the protocol between the IM server and the terminal. — —
  • the message delivery device feeds back the success report, so that the message pushing device deletes The cache of the second notification message.
  • the IM server determines whether the IP status of the user terminal is available, and if not, directly triggers step 412; if available, triggers step 408.
  • the IM server determines whether the TCP connection with the user terminal is successful. If successful, it triggers step 411; if not, updates the TCP counter, increments the TCP connection failure count by one, and triggers step 410.
  • the IM server determines whether the accumulated calculation of the TCP counter reaches the preset value. If yes, the direct contact step 412 is performed and the IP status of the user terminal is set to be unavailable; if not, the TCP connection is continuously established with the user terminal.
  • the TCP connection is used for the purpose.
  • the user terminal sends a second notification message, and after the transmission succeeds, the TCP channel is closed, and the reconnection notification message is sent to the user terminal, where the reconnection notification message is used to indicate that the user terminal actively initiates the reconnection request.
  • the second notification message is sent to the user terminal by using the short message mode, and after the transmission is successful, the reconnection notification message is sent to the user terminal, where the reconnection notification message is used to indicate that the user terminal initiates the initiative. Reconnect the request.
  • the backup is sent by using the standby TCP channel, and then the short message is sent, so that the user can receive the online connection as much as possible. Notifications improve the user experience.
  • the IM server receives the new second notification message again, and determines whether the new second notification message contains the IM message. If yes, the step 3 is triggered. If not, the step 4 is triggered.
  • the device will be every two according to the notification policy — —
  • the second notification message is merged into a new second notification message, such as: [(mail.CD3 ); ( QQ. AB2 )]. Or assume that the condition of the notification policy is issued every 5 minutes, and the second notification message reaches three.
  • the second notification message buffered by the SDP message pushing device within the 5 minutes includes: (mail.CD3),
  • the SDP message pushing device transmits a second notification message to the IM server according to the notification policy.
  • the issued notification policy can be sent one or several times at a time and set by the user. It can be sent one by one when it is delivered, or it can be merged and sent first, as long as it meets the set notification policy.
  • the IM server establishes an XMPP connection with the user terminal, records the IP address of the user terminal, the current IP status, and clears the TCP calculator.
  • the IM server determines whether the TCP connection with the user terminal is successful. If successful, it triggers step 512; if not, updates the TCP counter, increments the TCP connection failure count by one, and triggers step 511.
  • the IM server determines whether the accumulated calculation of the TCP counter reaches the preset value. If so, the direct contact step 513 is set and the IP status of the user terminal is set to be unavailable; if not, the TCP connection is continuously established with the user terminal.
  • the third notification message is sent by using the short message; if the TCP connection between the IM server and the user terminal is unsuccessful, the second notification message is sent to the user terminal by the short message mode, and the step 514 is triggered to return the status report of the successful transmission.
  • an embodiment of the SDP message pushing apparatus of the present invention for performing the foregoing SDP message pushing method.
  • an embodiment of the SDP message pushing apparatus in the embodiment of the present invention includes:
  • the notification message obtaining unit 601 is configured to: obtain a first notification message sent by the service platform; and the protocol conversion unit 602 is configured to: after the notification message obtaining unit acquires the first notification message, perform unified protocol conversion on the first notification message, to obtain The second notification message is unified by the protocol; the notification message sending unit 603 is configured to send the second notification message to the user terminal by using the IM server after obtaining the second notification message unified by the protocol.
  • the SDP message pushing apparatus in the embodiment of the present invention may further include:
  • the receiving unit 701 is configured to receive a second notification message sent by the SDP message pushing device, where the second notification message is obtained by the SDP message pushing device to perform a unified protocol conversion on the first notification message sent by the service platform.
  • the TCP count control unit 7052 is configured to perform a clear operation on the TCP counter before the second connection unit 705 establishes a TCP connection with the user terminal.
  • the TCP counter unit 7053 is configured to: when the TCP connection is unsuccessful, the TCP counter is incremented by one; the state determining unit 7054 is configured to determine, before the second connection unit establishes a TCP connection with the user terminal, whether the IP status of the user terminal is available, if If not available, triggering the third sending unit to perform a corresponding operation, and if available, establishing a TCP connection with the user terminal;
  • the value judging unit 7056 is configured to determine whether the TCP counter reaches the preset value. If yes, the third sending unit 707 is triggered to perform a corresponding operation, and the triggering unit 7051 records that the IP status of the user terminal is unavailable. If not, Then, the second connection unit 705 is triggered to establish a TCP connection with the user terminal.
  • the specific interaction process of each unit of the IM server in the embodiment of the present invention is as follows: The receiving unit 701 receives the second notification message sent by the SDP message pushing device, and in order to forward the second notification message, the first connecting unit 702 establishes an IM network connection with the user terminal. And record The IP address of the user terminal, after the connection is established, the first sending unit 703 preferentially transmits a second notification message to the user terminal through the IM network connection.
  • the transmission judging unit 704 judges whether or not the transmission of the second notification message via the IM network connection is failed based on the protocol between the IM server and the terminal. If yes, the second connection unit 705 is triggered to establish a transmission control protocol TCP connection with the user terminal, or the third sending unit 707 directly sends the second notification message to the user terminal in a short message manner.
  • the second notification message is sent by using the TCP channel, and the second notification message is sent to the user terminal in a short message manner.
  • the recording unit 7051 records whether the IP status of the user terminal is available, the TCP count control unit 7052 clears the TCP counter, and then the state judging unit 7054 determines whether the IP status of the user terminal is Available, if not available, triggers the third transmitting unit 707 directly, and if available, establishes a TCP connection with the user terminal.
  • the connection determining unit 7055 determines whether the establishment of the TCP connection is successful.
  • an embodiment of the SDP message pushing system of the present invention for performing the foregoing SDP message pushing method is described.
  • an embodiment of the SDP message pushing system in the embodiment of the present invention includes:
  • the SDP message pushing device 801 is configured to acquire a first notification message sent by the service platform; — A notification message is used for unified protocol conversion, and a second notification message unified by the protocol is obtained; the second notification message is sent to the user terminal by the IM server.
  • the IM server 802 is configured to receive a second notification message sent by the SDP message pushing device, establish an IM network connection with the user terminal, and send the second notification message to the user terminal preferentially through the IM network connection; Whether the second notification message is sent, if yes, establishing a transmission control protocol TCP connection with the user terminal, and sending a second notification message to the user terminal through the TCP connection, or directly sending the second notification message to the user terminal in a short message manner.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Embodiments of the present invention disclose a message pushing method of a service delivery platform, relevant device and system, which can improve the utilization rate of a network, simplify the software development of user terminals, and save power of user terminals. The method of the embodiments of the present invention includes: obtaining a first notification message transmitted by a service platform; performing unified protocol conversion for the first notification message to obtain a second notification message with the unified protocol; and transmitting the second notification message to a user terminal via an Instant Message (IM) server. The embodiments of the present invention also provide an apparatus for realizing the method and a relevant system.

Description

一 一  One by one
一种业务分发平台消息推送方法、 相关设备及系统 本申请要求于 2010 年 9 月 2 日提交中国专利局、 申请号为 201010273420.9, 发明名称为 "一种业务分发平台消息推送方法、 相关设备 及系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信领域, 尤其涉及一种业务分发平台 (SDP,  The present invention claims to be submitted to the Chinese Patent Office on September 2, 2010, and the application number is 201010273420.9, and the invention name is "a service delivery platform message pushing method, related equipment and system" The priority of the Chinese Patent Application, the entire contents of which is incorporated herein by reference. TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a service distribution platform (SDP,
Delivery Platform) 消息推送方法、 相关设备及系统。 背景技术 Delivery Platform) Message Push Method, Related Devices and Systems. Background technique
随着第三代移动通信 3G时代的到来, 用户终端上将能够使用越来越多 的数据业务, 除了传统的短信、 彩信业务以外, 还可以使用社交网络服务 ( SNS, Social Network Service), 推送邮件 (Push Mail ) 业务, 如黑莓 的邮件主动推送业务; 即时消息 (IM, Instant Message )服务, 融合地址 簿 ( CAB, Convergent Address Book )等。  With the advent of the 3G era of the third generation mobile communication, more and more data services will be available on the user terminal. In addition to the traditional SMS and MMS services, the social network service (SNS) can also be used. Push Mail business, such as BlackBerry's mail active push service; instant messaging (IM, Instant Message) service, Convergent Address Book (CAB).
为提升用户在用户终端上使用以上业务的体验, 可以定制一款社交网络 手机, 依托 SDP平台, 可以实现打电话、 访问社交网络、 即时消息、 查看好 友信息、 同步通信簿、 收邮件等功能。  In order to enhance the user's experience of using the above services on the user terminal, a social network mobile phone can be customized, and the SDP platform can be used to make calls, access social networks, instant messages, view good friends information, synchronize the address book, and receive mail.
现有的技术方案中, 各种数据业务, 用户终端接收消息的通道皆不同, 如短信是传统信令网络下发; 彩信是先下发一条推送(PUSH)消息通知, 再 通过通用分组无线业务 ( GPRS, General Packet Radio Service ) 下载消息 内容; SNS没有统一的标准, SNS需要先下发通知消息到用户终端, 提示用 — — 户有添加好友请求、好友状态更新、 日志更新的通知, 用户终端再通过 GPRS 查看详细类容; IM 需遵循访问启动协议 ( SIP, Session Initiation Protocol ), 可扩展消息与存在协议 ( XMPP , Extensible Messaging and Presence Protocol )标准; CAB需遵循可扩展标记语言配置访问协议 ( XCAP, XML Configuration Access Protocol )和同步的标记语言协议 ( SYNCML, Synchronization Markup Language )规范; Push Mail业务采用电子由 牛通 知 (ΕΜΝ, Email notification ) 消息或交互式邮件存取协议 -空闲模式 ( IMAP-IDLE, Internet Mail Access Protoco卜 IDLE ) 下发通知消息。 In the existing technical solutions, various data services, the user terminal receives different messages, such as the short message is sent by the traditional signaling network; the multimedia message is first sent a push (PUSH) message notification, and then through the general packet wireless service (GPRS, General Packet Radio Service) Download message content; SNS does not have a unified standard, SNS needs to send a notification message to the user terminal first, prompting — The user has a notification to add a friend request, a friend status update, and a log update. The user terminal then views the detailed class through GPRS. The IM needs to follow the SIP (Session Initiation Protocol), the extensible message and the presence protocol (XMPP, Extensible Messaging and Presence Protocol standards; CABs are subject to the Extensible Markup Language Configuration Access Protocol (XCAP) and Synchronization Markup Language (SYNCML) specifications; Push Mail services are electronically notified by Bulls ( ΕΜΝ, Email notification ) The message or the interactive mail access protocol - IMAP-IDLE (Internet Mail Access Protoco ID IDLE) issues a notification message.
SDP平台需要根据不同的数据业务收发消息的通道来下发消息, 没有统 一的下发通道,造成网络利用的效率不高;用户终端若想同时使用多个业务, 则需要根据不同的协议通道建立不同的连接以接收消息, 这样会导致用户终 端电池的电量消耗过快, 且用户终端也需要支持多种协议的通知机制, 使用 户终端软件的开发变得复杂。 发明内容 The SDP platform needs to send messages according to different data service channels. There is no unified delivery channel, which makes the network utilization less efficient. If the user terminal wants to use multiple services at the same time, it needs to be established according to different protocol channels. Different connections are used to receive messages, which causes the power consumption of the user terminal battery to be too fast, and the user terminal also needs to support a plurality of protocol notification mechanisms, which complicates the development of the user terminal software. Summary of the invention
本发明实施例提供了一种业务分发平台消息推送方法、 相关设备及系 统, 能够提高网络利用率, 简化用户终端软件开发, 并节省用户终端电量。  The embodiment of the invention provides a service delivery platform message pushing method, related device and system, which can improve network utilization, simplify user terminal software development, and save user terminal power.
本发明实施例提供的业务分发平台 SDP消息推送方法, 包括: 获取业务 平台发送的第一通知消息; 对所述第一通知消息进行统一协议转换, 得到协 议统一的第二通知消息; 通过 IM服务器向用户终端发送所述第二通知消息。  The SDP message pushing method of the service delivery platform provided by the embodiment of the present invention includes: acquiring a first notification message sent by the service platform; performing unified protocol conversion on the first notification message to obtain a second notification message unified by the protocol; Sending the second notification message to the user terminal.
本发明实施例提供的 SDP消息推送方法, 包括: 接收 SDP消息推送装置 所发送的第二通知消息, 所述第二通知消息是由 SDP消息推送装置对由业务 — — 平台发送的第一通知消息进行统一协议转换所得到; 与用户终端建立 IM 网 络连接; 优先通过所述 IM网络连接向所述用户终端发送所述第二通知消息; 判断通过所述 IM 网络连接发送第二通知消息是否失败, 若是, 则与用户终 端建立传输控制协议 TCP连接并通过所述 TCP连接向所述用户终端发送第二 通知消息, 或直接以短消息的方式向所述用户终端发送第二通知消息。 The SDP message pushing method provided by the embodiment of the present invention includes: receiving a second notification message sent by the SDP message pushing device, where the second notification message is sent by the SDP message pushing device The first notification message sent by the platform is obtained by the unified protocol conversion; establishing an IM network connection with the user terminal; preferentially transmitting the second notification message to the user terminal by using the IM network connection; determining to pass the IM network Whether the connection sends the second notification message fails, if yes, establishes a transmission control protocol TCP connection with the user terminal, and sends a second notification message to the user terminal through the TCP connection, or directly to the user terminal by means of a short message Send a second notification message.
本发明实施例提供的 SDP消息推送装置, 包括: 通知消息获取单元, 用 于获取业务平台发送的第一通知消息; 协议转换单元, 用于当通知消息获取 单元获取到所述第一通知消息之后, 对所述第一通知消息进行统一协议转 换, 得到协议统一的第二通知消息; 通知消息发送单元, 用于在得到协议统 一的第二通知消息之后,通过 IM服务器向用户终端发送所述第二通知消息。 本发明实施例提供的 IM服务器, 包括: 接收单元, 用于接收 SDP消息 推送装置所发送的第二通知消息, 所述第二通知消息是由 SDP消息推送装置 对由业务平台发送的第一通知消息进行统一协议转换所得到; 第一连接单 元, 用于当接收单元接收到所述第二通知消息之后, 与用户终端建立 IM 网 络连接; 第一发送单元, 用于当第一连接单元与用户终端建立 IM 网络连接 之后, 优先通过所述 IM网络连接向所述用户终端发送所述第二通知消息。 本发明实施例提供的 SDP消息推送系统, 包括: SDP消息推送装置, 用 于获取业务平台发送的第一通知消息,对所述第一通知消息进行统一协议转 换, 得到协议统一的第二通知消息, 通过 IM服务器向用户终端发送所述第 二通知消息; IM服务器,用于接收 SDP消息推送装置所发送的第二通知消息, 与用户终端建立 IM网络连接,优先通过所述 IM网络连接向所述用户终端发 送所述第二通知消息, 判断通过所述 IM 网络连接发送第二通知消息是否失 — — 败, 若是, 则与用户终端建立传输控制协议 TCP连接并通过所述 TCP连接向 所述用户终端发送第二通知消息, 或直接以短消息的方式向所述用户终端发 送第二通知消息。 The SDP message pushing apparatus provided by the embodiment of the present invention includes: a notification message obtaining unit, configured to acquire a first notification message sent by a service platform; and a protocol conversion unit, configured to: after the notification message acquiring unit acquires the first notification message, And performing a unified protocol conversion on the first notification message to obtain a second notification message that is unified by the protocol. The notification message sending unit is configured to send the first message to the user terminal by using the IM server after obtaining the second notification message that is unified by the protocol. Two notification messages. The IM server provided by the embodiment of the present invention includes: a receiving unit, configured to receive a second notification message sent by an SDP message pushing device, where the second notification message is a first notification sent by the SDP message pushing device to the service platform The first connection unit is configured to establish an IM network connection with the user terminal after receiving the second notification message by the receiving unit, where the first sending unit is configured to be the first connecting unit and the user. After the terminal establishes an IM network connection, the second notification message is sent to the user terminal preferentially through the IM network connection. The SDP message pushing system provided by the embodiment of the present invention includes: an SDP message pushing device, configured to acquire a first notification message sent by a service platform, perform unified protocol conversion on the first notification message, and obtain a second notification message unified by the protocol. Sending, by the IM server, the second notification message to the user terminal; the IM server is configured to receive the second notification message sent by the SDP message pushing device, establish an IM network connection with the user terminal, and preferentially connect to the office through the IM network. Transmitting, by the user terminal, the second notification message, determining whether the second notification message is sent by using the IM network connection - if, if yes, establishing a transmission control protocol TCP connection with the user terminal and transmitting a second notification message to the user terminal through the TCP connection, or directly sending the second notification message to the user terminal in a short message manner .
从以上技术方案可以看出, 本发明实施例具有以下优点: 当用户终端数 据业务较多, 需要下发的消息较多时, SDP平台可以通过 SDP消息推送装置 接收业务平台的第一通知消息,对协议不同的第一通知消息进行统一协议转 换, 得到协议统一的第二通知消息, 然后通过 IM服务器向用户终端发送所 述第二通知消息, 从而大大提高了网络利用的效率; 其次, 用户终端也仅需要支持所选择下发通道的协议, 简化了用户终端 软件的开发过程; 再次, 本发明实施例中可以釆用统一的下发通道, 用户终端可以只建立 一种连接接收通知消息, 节省了用户终端的耗电量。 附图说明  As can be seen from the foregoing technical solutions, the embodiment of the present invention has the following advantages: When the user terminal has more data services and needs to send more messages, the SDP platform can receive the first notification message of the service platform by using the SDP message pushing device. The first notification message with different protocols performs unified protocol conversion, obtains a second notification message unified by the protocol, and then sends the second notification message to the user terminal through the IM server, thereby greatly improving the efficiency of network utilization; second, the user terminal is also Only the protocol supporting the selected delivery channel is needed, which simplifies the development process of the user terminal software. Again, in the embodiment of the present invention, a unified delivery channel can be used, and the user terminal can establish only one type of connection receiving notification message, which saves The power consumption of the user terminal. DRAWINGS
图 1是本发明实施例 SDP消息推送方法的一个流程示意图;  1 is a schematic flowchart of a method for pushing an SDP message according to an embodiment of the present invention;
图 2是本发明实施例 SDP消息推送方法的另一个流程示意图; 图 3是本发明实施例 SDP消息推送方法的一个具体流程示意图; 图 4是本发明实施例 SDP消息推送方法的另一个具体流程示意图; 图 5是本发明实施例 SDP消息推送方法的另一个流程示意图; 图 6是本发明实施例消息推送装置的逻辑结构示意图;  2 is a schematic flowchart of another method for pushing an SDP message according to an embodiment of the present invention; FIG. 3 is a schematic flowchart of a method for pushing an SDP message according to an embodiment of the present invention; FIG. 4 is another specific process of a method for pushing an SDP message according to an embodiment of the present invention; FIG. 5 is a schematic diagram of another flow of an SDP message pushing method according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a logical structure of a message pushing apparatus according to an embodiment of the present invention;
图 7是本发明实施例 IM服务器的逻辑结构示意图; — — 图 8是本发明实施例 SDP消息推送系统的逻辑结构示意图。 具体实施方式 7 is a schematic diagram showing the logical structure of an IM server according to an embodiment of the present invention; - Figure 8 is a schematic diagram showing the logical structure of an SDP message pushing system according to an embodiment of the present invention. detailed description
本发明实施例提供了一种业务分发平台消息推送方法、 相关设备及系 统, 能够提高网络利用率, 简化用户终端软件开发, 并节省用户终端电量。  The embodiment of the invention provides a service delivery platform message pushing method, related device and system, which can improve network utilization, simplify user terminal software development, and save user terminal power.
请参阅图 1 , 本发明实施例中业务分发平台 SDP消息推送方法的一个实 施例包括:  Referring to FIG. 1, an embodiment of a service delivery platform SDP message pushing method in an embodiment of the present invention includes:
101、 获取第一通知消息;  101. Obtain a first notification message.
SDP消息推送装置获取业务平台发送的第一通知消息, 该第一通知消息 包括通知消息的类型、 接收方地址以及消息内容, 该通知消息的内容不是指 消息的具体内容,指的是该消息的条数等信息,如: ( ma i l. A. 2 ),其中 "ma i l" 指的是消息的类型, "A" 指的是接收方的地址, "2" 指的是消息的条数。 The SDP message pushing device acquires a first notification message sent by the service platform, where the first notification message includes a type of the notification message, a recipient address, and a message content, where the content of the notification message does not refer to the specific content of the message, and refers to the message. The number of pieces, such as: ( ma i l. A. 2 ), where "ma il" refers to the type of message, "A" refers to the address of the recipient, and "2" refers to the number of messages. .
在实际应用中, 消息内容还可以包括发送方的姓名和 /或地址, 此处具 体不做限定。  In practical applications, the message content may also include the sender's name and/or address, which is not limited herein.
该第一通知消息可以是 SNS , Ema i l或 CAB等业务平台所发送的, 也可 以是其他业务平台所发送的, 此处具体不作限定。  The first notification message may be sent by a service platform such as an SNS, an Ema i l or a CAB, or may be sent by another service platform, and is not specifically limited herein.
102、 统一协议转换;  102. Unified protocol conversion;
SDP消息推送装置获取到了各个业务平台所发送的第一通知消息后, 由 于各个业务平台所使用的协议存在着不同, 所以需要对这些第一通知消息进 行统一协议转换, 得到协议统一的第二通知消息。 After the SDP message pushing device obtains the first notification message sent by each service platform, since the protocols used by the service platforms are different, it is necessary to perform unified protocol conversion on the first notification messages to obtain a second unified notification of the protocol. Message.
103、 发送第二通知消息; — — 103. Send a second notification message. — —
SDP消息推送装置先向 IM服务器发送协议统一的第二通知消息,然后再 由 IM服务器向用户终端发送该第二通知消息。 本实施例中具体发送第二通知消息的方式将在后续的实施例中进行详 细描述。  The SDP message pushing device first sends a second unified notification message to the IM server, and then the second notification message is sent by the IM server to the user terminal. The manner in which the second notification message is specifically sent in this embodiment will be described in detail in the following embodiments.
SDP消息推送装置获取业务平台的第一通知消息, 对协议不同的第一通 知消息进行统一协议转换, 得到协议统一的第二通知消息, 然后通过 IM服 务器向用户终端发送第二通知消息, 从而大大提高了网络利用的效率; 其次, 用户终端也仅需要支持所选择下发通道的协议, 简化了用户终端 软件的开发过程; 再次, 本发明实施例中可以釆用统一的下发通道, 用户终端可以只建立 一种连接接收通知消息, 节省了用户终端的耗电量。 在发送第二通知消息时, 具体的下发方式可以根据网络状态、 网络带宽 和用户需求等情况进行确定, 为了便于理解, 下面以一具体实施例对本发明 实施例中的 SDP消息推送方法进行描述,请参阅图 2 ,本发明实施例中的 SDP 消息推送方法另一实施例包括: The SDP message pushing device obtains the first notification message of the service platform, performs unified protocol conversion on the first notification message with different protocols, obtains the second notification message that is unified by the protocol, and then sends the second notification message to the user terminal through the IM server, thereby greatly The efficiency of the network is improved. Secondly, the user terminal only needs to support the protocol of the selected delivery channel, which simplifies the development process of the user terminal software. Again, in the embodiment of the present invention, a unified delivery channel, the user terminal can be used. It is possible to establish only one type of connection receiving notification message, which saves power consumption of the user terminal. When the second notification message is sent, the specific delivery mode may be determined according to the network status, the network bandwidth, and the user requirements. For the sake of easy understanding, the SDP message pushing method in the embodiment of the present invention is described in a specific embodiment. Referring to FIG. 2, another embodiment of the SDP message pushing method in the embodiment of the present invention includes:
201、本实施例中的步骤 201的内容与前述图 1所示的实施例中步骤 101 的内容相同, 此处不再赘述。  The content of the step 201 in the embodiment is the same as that of the step 101 in the embodiment shown in FIG. 1 , and details are not described herein again.
202、 统一协议转换;  202, unified protocol conversion;
SDP消息推送装置获取到了各个业务平台所发送的第一通知消息后, 由 于各个业务平台所使用的协议不同, 所以需要对这些第一通知消息进行统一 协议转换, 具体的统一协议转换可以包括: — — After the SDP message pushing device obtains the first notification message sent by each service platform, the protocol used by each service platform is different. Therefore, the first notification message needs to be converted into a unified protocol. The specific unified protocol conversion may include: — —
SDP消息推送装置获取第一通知消息的协议类型, 然后对第一通知消息 进行解封装得到消息内容(即消息体), 并根据第一通知消息的协议类型在 协议类型映射关系中查询对应的统一协议;  The SDP message pushing device acquires the protocol type of the first notification message, and then decapsulates the first notification message to obtain the message content (ie, the message body), and queries the corresponding unified in the protocol type mapping relationship according to the protocol type of the first notification message. Agreement
需要说明的是, 本实施例中, 在 SDP消息推送装置中存储了各种协议类 型统一转换为预置协议的映射关系, 和具体的参数转换内容, SDP消息推送 装置可以根据第一通知消息的协议类型在该映射关系中确定对应的统一协 议。  It should be noted that, in this embodiment, the SDP message pushing device stores the mapping relationship that the various protocol types are uniformly converted into the preset protocol, and the specific parameter conversion content, and the SDP message pushing device may be based on the first notification message. The protocol type determines the corresponding unified protocol in the mapping relationship.
查询到统一协议之后, 然后按照统一的协议对解封装得到的消息内容进 行重新封装, 则可以得到协议统一的第二通知消息。  After the unified protocol is queried, and then the content of the decapsulated message is re-encapsulated according to the unified protocol, a second notification message unified by the protocol can be obtained.
需要说明的是,本实施例中协议转换方式仅为一个例子,在实际应用中, 同样还可以釆用其他的方式进行协议转换, 具体此处不做限定。  It should be noted that the protocol conversion mode in this embodiment is only an example. In the actual application, the protocol conversion may also be performed in other manners, which is not limited herein.
203、 选择下发方式; 具体的下发方式可以根据网络状态、 网络带宽和用户需求等情况进行确 定, 具体的下发方式包括直接下发和条件式下发。 例如, 若当前网络状态拥挤, 不适宜逐条实时地下发第二通知消息, 即 不能直接下发, 则釆用条件式下发, 先将第二通知消息进行緩存, 然后按照 系统或用户所设置的通知策略进行下发。 再如, 若第二通知消息为用户预先在 SDP消息推送装置中登记的紧急消 息 (例如该第二通知消息为通知有重要客户发来邮件), 则 SDP消息推送装 置可以釆用直接下发。 若下发方式为直接下发, 则触发步骤 204; 若下发方式为条件式下发, 则触发步骤 205。 具体的下发方式可以由用户预先在 SDP 消息推送装置中登记的内容确 一 一 定, 也可以由运营商根据网络状态、 网络带宽和用户需求等因素来确定。 具 体由哪一方确定下发方式, 此处不作限定。 203. Selecting a delivery mode; the specific delivery mode may be determined according to the network status, network bandwidth, and user requirements, and the specific delivery mode includes direct delivery and conditional delivery. For example, if the current network status is congested, it is not appropriate to send the second notification message in real time, that is, the second notification message cannot be directly sent, and then the conditional delivery is performed, and the second notification message is first cached, and then set according to the system or the user. The notification policy is issued. For example, if the second notification message is an emergency message that the user has previously registered in the SDP message pushing device (for example, the second notification message is to notify the important customer to send an email), the SDP message pushing device can directly use the direct delivery. If the delivery mode is direct delivery, step 204 is triggered; if the delivery mode is conditional delivery, step 205 is triggered. The specific delivery method can be confirmed by the user in advance of the content registered in the SDP message pushing device. Certainly, it can also be determined by the operator based on factors such as network status, network bandwidth, and user requirements. Which party determines the delivery method, which is not limited here.
204、 直接下发; 若釆用的是直接下发, SDP消息推送装置则处理完一条第二通知消息后, 就马上向 IM服务器发送这条协议统一的第二通知消息,使得 IM服务器向用 户终端发送该第二通知消息。  204, directly issued; if the application is directly issued, the SDP message pushing device sends a second notification message to the IM server immediately after processing a second notification message, so that the IM server is sent to the user. The terminal sends the second notification message.
205、 条件式下发; 若釆用的是条件式下发, SDP消息推送装置则按照通知策略向 IM服务器 发送协议统一的第二通知消息, 使得 IM服务器向用户终端发送该第二通知 消息。  205. The conditional delivery is performed. If the conditional delivery is used, the SDP message pushing device sends a second unified notification message to the IM server according to the notification policy, so that the IM server sends the second notification message to the user terminal.
该通知策略包括系统预置的通知策略和用户设置的通知策略。 系统预置 的通知策略是对所有用户都有效的默认策略, 当用户没有自定义控制策略 时, SDP消息推送装置则釆用系统预置的通知策略下发; 用户设置的通知策 略是根据用户自身的喜好和需求自定义的通知策略。  The notification policy includes a notification policy set by the system and a notification policy set by the user. The system preset notification policy is a default policy that is valid for all users. When the user does not have a custom control policy, the SDP message pushing device delivers the system-preferred notification policy; the user-set notification policy is based on the user's own The preferences and requirements of custom notification strategies.
具体通知策略的内容包括通知消息下发的频率和通知消息一次所下发 的条数, 若用户的习惯是一周查看一次通知消息, 则通知消息下发的频率设 置为一周一次; 若用户的手机信息容量受限, 则可根据手机信息容量设置通 知消息一次所下发的条数; 或者用户基于自身各种条件因素的考虑, 可以同 时设置通知消息下发的频率和一次所下发的条数, 以更灵活的满足自身的需 求。  The content of the specific notification policy includes the frequency of the notification message and the number of times the notification message is sent. If the user's habit is to view the notification message once a week, the frequency of the notification message is set to once a week; If the information capacity is limited, the number of times the notification message is sent can be set according to the information capacity of the mobile phone; or the user can set the frequency of the notification message and the number of times the message is sent at the same time based on various factors of the user. To more flexibly meet their own needs.
本发明实施例中, 具体的下发方式可以根据网络状态、 网络带宽和用户 - - 需求等情况进行确定, 提高了网络利用效率和用户体验。 In the embodiment of the present invention, the specific delivery manner may be based on network status, network bandwidth, and user. - - Determine requirements and other conditions to improve network utilization efficiency and user experience.
在根据网络状态、 网络带宽和用户需求等情况确定了下发方式之后, 用 户还可以根据上述的条件来设置通知策略。 为了便于理解, 下面以一具体实施例对本发明实施例中的 SDP消息推送 方法进行描述, 请参阅图 3 , 本发明实施例中的 SDP消息推送方法另一实施 例包括:  After the delivery mode is determined according to the network status, network bandwidth, and user requirements, the user can also set the notification policy according to the above conditions. For the sake of understanding, the SDP message pushing method in the embodiment of the present invention is described below with reference to a specific embodiment. Referring to FIG. 3, another embodiment of the SDP message pushing method in the embodiment of the present invention includes:
301 ~ 302、本实施例中的步骤 301和 302的内容与前述图 2所示的实施 例中步骤 201和 202的内容相同, 此处不再赘述。  The content of the steps 301 and 302 in the embodiment is the same as the content of the steps 201 and 202 in the embodiment shown in FIG. 2, and details are not described herein again.
303、 选择下发方式; 具体的下发方式可以根据网络状态、 网络带宽和用户需求等情况进行确 定, 具体的下发方式包括直接下发和条件式下发。 若当前网络状态拥挤, 不适宜逐条实时地下发第二通知消息, 即不能直 接下发, 则釆用条件式下发, 先将第二通知消息进行緩存, 然后按照系统或 用户所设置的通知策略进行下发。 若下发方式为直接下发, 则触发步骤 304; 若下发方式为条件式下发, 则触发步骤 305。 具体的下发方式可以由用户通过手机终端预置的接收模式来确定, 也可 以由运营商根据网络状态、 网络带宽和用户需求等因素来确定。 具体由哪一 方确定下发方式, 此处不作限定。 303. Selecting the delivery mode. The specific delivery mode can be determined according to the network status, network bandwidth, and user requirements. The specific delivery mode includes direct delivery and conditional delivery. If the current network status is congested, it is not appropriate to send the second notification message in real time, that is, the second notification message cannot be sent directly, and then the conditional delivery is performed, and the second notification message is first cached, and then according to the notification policy set by the system or the user. Issued. If the delivery mode is direct delivery, step 304 is triggered; if the delivery mode is conditional delivery, step 305 is triggered. The specific delivery mode may be determined by the user through the receiving mode preset by the mobile terminal, or may be determined by the operator according to factors such as network status, network bandwidth, and user requirements. Which party determines the delivery method, which is not limited here.
304、 直接下发; — — 本实施例中的步骤 304的内容与前述图 2所示的实施例中步骤 204的内 容相同, 此处不再赘述。 304, directly issued; The content of the step 304 in the embodiment is the same as that of the step 204 in the embodiment shown in FIG. 2, and details are not described herein again.
305、 緩存第二通知消息; 若下发方式为条件式下发, SDP消息推送装置则先緩存第二通知消息。  305. The second notification message is cached. If the delivery mode is conditional delivery, the SDP message pushing device first caches the second notification message.
306、 判断是否需要合并; 根据通知策略判断是否需要对緩存后的第二通知消息进行合并, 若不需 要, 则直接触发步骤 308; 若需要, 则触发步骤 307。 该通知策略的内容包括通知消息下发的频率和通知消息一次所下发的 条数, 例如, 通知策略为每 5分钟将所有的第二通知消息发送给 IM服务器, 每次只能下发 5条第二通知消息,但 SDP消息推送装置在 5分钟内緩存了 10 条第二通知消息, 则此时就需要对第二通知消息进行合并。 306. Determine whether the merging needs to be performed. Determine whether the queried second notification message needs to be merged according to the notification policy. If not, directly trigger step 308; if necessary, trigger step 307. The content of the notification policy includes the frequency of the notification message and the number of times the notification message is sent. For example, the notification policy sends all the second notification messages to the IM server every 5 minutes. The second notification message, but the SDP message pushing device caches 10 second notification messages within 5 minutes, then the second notification message needs to be merged at this time.
307、 合并第二通知消息; 根据该通知策略对緩存后的第二通知消息进行合并,得到新的第二通知 消息。  307. Combine the second notification message, and merge the cached second notification message according to the notification policy to obtain a new second notification message.
例如, 若步骤 306中确定需要进行合并, 则 SDP消息推送装置将 5分钟 内緩存的 10条第二通知消息合并为 5条以内新的第二通知消息。  For example, if it is determined in step 306 that the merging needs to be performed, the SDP message pushing device merges the 10 second notification messages buffered within 5 minutes into a new second notification message within 5 pieces.
308、 发送第二通知消息; 308. Send a second notification message.
SDP消息推送装置向 IM服务器发送协议统一的第二通知消息, 使得 IM 服务器向用户终端发送该第二通知消息。 The SDP message pushing device sends a second unified notification message to the IM server, so that the IM server sends the second notification message to the user terminal.
SDP消息推送装置具体可以通过以下方式发送第二通知消息: — — 一、 当达到预置周期时, 向 IM服务器发送该预置周期内緩存的所有第 二通知消息, 该预置周期可以为系统的预设值, 也可以是用户设定的; 二、 当緩存的第二通知消息达到预置数目时, 向 IM服务器发送緩存的 第二通知消息, 该预置数目可以为系统的预设值, 也可以是用户设定的; 三、 结合第二通知消息的数目和预置时间, 设置并列的条件进行发送。 如: 若緩存的第二通知消息达到预置数目, 则向 IM服务器发送緩存的第二 通知消息; 若緩存的第二通知消息未达到预置数目, 但緩存的时间达到预置 周期, 则向 IM服务器发送该预置周期内緩存的所有第二通知消息。 The SDP message pushing device may specifically send the second notification message by: — — 1. When the preset period is reached, all the second notification messages buffered in the preset period are sent to the IM server, and the preset period may be a preset value of the system, or may be set by the user; When the cached second notification message reaches the preset number, the cached second notification message is sent to the IM server, and the preset number may be a preset value of the system, or may be set by the user; The number of messages and the preset time are set and the conditions are set to be sent. For example, if the cached second notification message reaches the preset number, the cached second notification message is sent to the IM server; if the cached second notification message does not reach the preset number, but the buffered time reaches the preset period, then The IM server sends all the second notification messages buffered during the preset period.
309、 判断发送是否成功; 309. Determine whether the sending is successful.
SDP消息推送装置向 IM服务器发送协议统一的第二通知消息之后,判断 是否接收到 IM服务器反馈的发送成功报告, 若接收到, 则触发步骤 310; 若 没有收到, 则触发步骤 311。 After the SDP message pushing device sends the protocol-unified second notification message to the IM server, it is determined whether the transmission success report fed back by the IM server is received. If yes, the step 310 is triggered. If not, the step 311 is triggered.
310、 删除緩存; 若接收到 IM服务器反馈的发送成功报告, 且发送时釆用条件式下发, 则删除緩存的第二通知消息。 310. Delete the cache; if the sending success report fed back by the IM server is received, and the conditional delivery is sent when the sending is performed, the cached second notification message is deleted.
311、 重发第二通知消息; 若未接收到 IM服务器反馈的发送成功报告, 则按照预置的重发规则向 IM服务器重发该第二通知消息。 预置的重发规则可以为: 向 IM服务器重发该第二通知消息, 并要求 IM 服务器以 TCP方式主动连接用户终端, 当 IM服务器多次以 TCP方式主动连 — — 接用户终端发送该第二通知消息仍未成功, 则要求 IM服务器改用短信息方 式发送该第二通知消息。 上述的重发规则仅为实际应用中的一个例子, 可以理解的是, 重发规则 同样还可以有另外的重发过程, 具体此处不作限定。 本实施例中通过步骤 309的判断机制判断通过 IM服务器发送第二通知 消息是否成功, 若成功则删除緩存的第二通知消息, 若不成功, 则触发重发 机制。 步骤 309至 311为本实施例中的可选方案, 不作具体限定。 本发明实施例中, 详细地描述了当下发方式为条件式时, 用户可以更自 由的根据自身的需求(如: 身处的环境, 用户终端的性能)设定通知策略, 减少了通知消息下发的频率, 提高了通知消息的可靠性, 而且当用户终端没 有成功的收到第二通知消息时, 本发明提供了自动重发的机制, 使用户最大 可能的收到各业务平台所发送的消息, 更进一步的提高了网络利用效率和用 户服务体验。 上面是从 SDP消息推送装置侧的角度对本发明实施例中的 SDP消息推送 方法进行了描述, 下面从 IM服务器侧进行对本发明实施例中的 SDP消息推 送方法进行描述, 请参阅图 4 , 本发明实施例中的 SDP消息推送方法另一实 施例包括: 311. Resend the second notification message. If the transmission success report fed back by the IM server is not received, the second notification message is resent to the IM server according to the preset retransmission rule. The preset retransmission rule may be: resending the second notification message to the IM server, and requesting the IM server to actively connect to the user terminal by using the TCP mode, and the IM server actively connects to the TCP server multiple times. - After the user terminal sends the second notification message is still unsuccessful, the IM server is required to send the second notification message by using the short message mode. The above-mentioned retransmission rule is only an example in the actual application. It can be understood that the retransmission rule can also have another retransmission process, which is not limited herein. In this embodiment, the determining mechanism of step 309 determines whether the second notification message is successfully sent by the IM server, and if successful, deletes the cached second notification message. If not, the retransmission mechanism is triggered. Steps 309 to 311 are optional in the embodiment, and are not specifically limited. In the embodiment of the present invention, when the delivery mode is the conditional expression, the user can freely set the notification policy according to his own needs (eg, the environment in which the user is located), and reduce the notification message. The frequency of the transmission increases the reliability of the notification message, and when the user terminal does not successfully receive the second notification message, the present invention provides an automatic retransmission mechanism, so that the user can receive the maximum possible transmission from each service platform. The message further improves the network utilization efficiency and user service experience. The SDP message pushing method in the embodiment of the present invention is described above from the perspective of the SDP message pushing device side. The following describes the SDP message pushing method in the embodiment of the present invention from the IM server side. Referring to FIG. 4 , the present invention is described. Another embodiment of the SDP message pushing method in the embodiment includes:
401、 接收第二通知消息; 401. Receive a second notification message.
IM服务器接收 SDP消息推送装置所发送的第二通知消息,该第二通知消 息是由 SDP消息推送装置对由业务平台发送的第一通知消息进行统一协议转 换所得到。 — — The IM server receives the second notification message sent by the SDP message pushing device, and the second notification message is obtained by the SDP message pushing device performing unified protocol conversion on the first notification message sent by the service platform. — —
402、 建立 IM网络连接; 402. Establish an IM network connection.
IM服务器与用户终端建立 IM网络连接, 并记录用户终端的 IP地址。 The IM server establishes an IM network connection with the user terminal and records the IP address of the user terminal.
IM网络通道所使用的协议可以包括 XMPP协议和 S I P协议, 在实际应用 中, IM通道还可以使用其他即时通信协议, 具体此处不做限定。  The protocol used by the IM network channel may include the XMPP protocol and the S I P protocol. In actual applications, the IM channel may also use other instant communication protocols, which are not limited herein.
403、 发送第二通知消息; 403. Send a second notification message.
IM服务器优先通过该 IM网络连接向用户终端发送该第二通知消息, 本 发明的 IM服务器具有 IM、 TCP , SMS三种通道, 由于一般 SDP消息推送装置 会将第一通知消息统一转换为 XMPP协议的第二通知消息,而 XMPP协议是 IM 通道默认的协议, 所以 IM服务器会优先选择 IM网络连接发送该第二通知消 息。  The IM server preferentially transmits the second notification message to the user terminal through the IM network connection. The IM server of the present invention has three channels of IM, TCP, and SMS, because the general SDP message pushing device uniformly converts the first notification message into the XMPP protocol. The second notification message, and the XMPP protocol is the default protocol of the IM channel, so the IM server preferentially selects the IM network connection to send the second notification message.
404、 记录 IP状态, 清零 TCP计数器;  404, recording the IP status, clearing the TCP counter;
IM服务器记录该用户终端的 IP状态, IP状态用于指示用户终端当前的 IP地址是否可用。 The IM server records the IP status of the user terminal, and the IP status is used to indicate whether the current IP address of the user terminal is available.
IM服务器将 TCP计数器清零, TCP计数器记录了 IM服务器向用户终端 发起主动连接的次数,当超过某一阔值时, IM服务器将不会再发起 TCP连接。  The IM server clears the TCP counter. The TCP counter records the number of times the IM server initiates an active connection to the user terminal. When a certain threshold is exceeded, the IM server will not initiate a TCP connection.
405、 判断发送是否失败;  405. Determine whether the sending fails.
IM服务器判断通过该 IM网络连接发送第二通知消息是否失败, 若是, 则触发步骤 407; 若否, 则触发步骤 406。 通过 IM网络连接发送第二通知消息是否失败可以根据 IM服务器和终端 之间的协议来判断。 — — The IM server determines whether the second notification message is sent through the IM network connection, and if so, triggers step 407; if not, triggers step 406. Whether the second notification message is sent through the IM network connection fails can be judged according to the protocol between the IM server and the terminal. — —
406、 反馈发送成功报告; 406. The feedback is sent successfully.
若 IM服务器通过 IM网络连接向用户终端发送第二通知消息成功, 或通 过 TCP连接、 短信息方式向用户终端发送第二通知消息成功, 则向消息推送 装置反馈发送成功报告, 使得消息推送装置删除该第二通知消息的緩存。  If the IM server successfully sends the second notification message to the user terminal through the IM network connection, or sends the second notification message to the user terminal successfully through the TCP connection or the short message mode, the message delivery device feeds back the success report, so that the message pushing device deletes The cache of the second notification message.
407、 判断 IP状态是否可用;  407. Determine whether an IP status is available.
IM服务器判断该用户终端的 IP状态是否可用, 若不可用, 则直接触发 步骤 412; 若可用, 则触发步骤 408。  The IM server determines whether the IP status of the user terminal is available, and if not, directly triggers step 412; if available, triggers step 408.
408、 建立 TCP连接; 408. Establish a TCP connection.
IM服务器主动发起与用户终端的 TCP 连接, 用于与用户终端建立 TCP 网络通道, 发送第二通知消息。  The IM server actively initiates a TCP connection with the user terminal, and is configured to establish a TCP network channel with the user terminal, and send a second notification message.
409、 判断建立 TCP连接是否成功;  409. Determine whether the establishment of the TCP connection is successful.
IM服务器判断与用户终端建立 TCP连接是否成功,若成功,则触发步骤 411 ; 若不成功, 则更新 TCP计数器, 使 TCP连接失败计数加一, 并触发步 骤 410。  The IM server determines whether the TCP connection with the user terminal is successful. If successful, it triggers step 411; if not, updates the TCP counter, increments the TCP connection failure count by one, and triggers step 410.
410、 判断 TCP计数器是否达到阔值; 410, determining whether the TCP counter reaches a threshold;
IM服务器判断 TCP计数器的累加计算是否达到预置数值,若达到,则直 接触发步骤 412并设置该用户终端的 IP状态为不可用; 若未达到, 则继续 尝试与该用户终端建立 TCP连接。  The IM server determines whether the accumulated calculation of the TCP counter reaches the preset value. If yes, the direct contact step 412 is performed and the IP status of the user terminal is set to be unavailable; if not, the TCP connection is continuously established with the user terminal.
411、 通过 TCP发送第二通知消息;  411. Send a second notification message by using TCP.
若 IM服务器与用户终端建立 TCP连接成功, 则通过该 TCP连接向该用 — — 户终端发送第二通知消息, 在发送成功后关闭 TCP通道, 向用户终端发送重 连通知消息, 该重连通知消息用于指示用户终端主动发起重连请求。 If the IM server establishes a TCP connection with the user terminal successfully, the TCP connection is used for the purpose. The user terminal sends a second notification message, and after the transmission succeeds, the TCP channel is closed, and the reconnection notification message is sent to the user terminal, where the reconnection notification message is used to indicate that the user terminal actively initiates the reconnection request.
412、 通过短信息发送第二通知消息;  412. Send a second notification message by using a short message.
若 IM服务器与用户终端建立 TCP连接不成功, 通过短信息方式向用户 终端发送第二通知消息, 在发送成功后向用户终端发送重连通知消息, 该重 连通知消息用于指示用户终端主动发起重连请求。  If the TCP connection between the IM server and the user terminal is unsuccessful, the second notification message is sent to the user terminal by using the short message mode, and after the transmission is successful, the reconnection notification message is sent to the user terminal, where the reconnection notification message is used to indicate that the user terminal initiates the initiative. Reconnect the request.
本发明实施例在优先釆用 IM通道下发第二通知消息失败的情况下, 釆 用备用的 TCP通道下发, 其次再釆用短信息的方式下发, 使用户可以最大可 能的随时在线接收通知, 提高了用户体验。  In the embodiment of the present invention, when the second notification message is sent by using the IM channel, the backup is sent by using the standby TCP channel, and then the short message is sent, so that the user can receive the online connection as much as possible. Notifications improve the user experience.
当通过 TCP通道向用户终端发送第二通知消息, 或以短消息方式向用户 终端发送第二通知消息之后, IM服务器会向用户终端发送重连通知消息,用 于指示用户终端主动发起重连, 保证了在下一次通知消息下发时优先以 IM 通道下发, 同时提供给用户终端了一个统一的断连唤醒机制, 使得用户终端 不会胡乱的发起重连, 节省了用户终端的耗电量。  After the second notification message is sent to the user terminal through the TCP channel, or the second notification message is sent to the user terminal in the short message manner, the IM server sends a reconnection notification message to the user terminal to instruct the user terminal to initiate reconnection. It is ensured that the next notification message is delivered by the IM channel, and the user terminal is provided with a unified disconnection wake-up mechanism, so that the user terminal does not randomly initiate reconnection, thereby saving the power consumption of the user terminal.
在通过 IM 网络连接发送第二通知消息失败后, 还可以执行以下步骤, 断开 IM网络连接, 本发明实施例中的 SDP消息推送方法另一实施例包括: 一、 断开 IM网络连接;  After the second notification message is sent through the IM network connection, the following steps may be performed to disconnect the IM network. Another embodiment of the SDP message pushing method in the embodiment of the present invention includes: 1. Disconnecting the IM network;
IM服务器在建立 IM网络连接之后,由于通过 IM网络连接发送第二通知 消息失败, 所建立的 IM 网络连接可能长时间闲置, 浪费了网络资源, 故若 在一段预置时间之内,所建立的网络连接没有任何数据流传输,则断开该 IM 网络连接。 - - 二、 再次接收第二通知消息; After the IM server fails to send the second notification message through the IM network connection after the IM network connection is established, the established IM network connection may be idle for a long time, which wastes network resources, so if it is established within a preset time, If there is no data stream transmission on the network connection, disconnect the IM network. - - Second, receive the second notification message again;
IM服务器再次接收新的第二通知消息,并判断新的第二通知消息中是否 含有 IM消息, 若有, 则触发步骤三, 若没有, 则触发步骤四。 The IM server receives the new second notification message again, and determines whether the new second notification message contains the IM message. If yes, the step 3 is triggered. If not, the step 4 is triggered.
三、 重连 IM网络; 若该新的第二通知消息中包含有 IM消息, 则在 IM服务器接收到新的第 二通知消息后, 重新与用户终端建立 IM 网络连接, 便于更快速便捷的发送 新的第二通知消息。 四、 建立 TCP或短消息连接; 若该新的第二通知消息中没有包含有 IM消息的内容, 则与用户终端建 立传输控制协议 TCP连接并通过 TCP连接向该用户终端发送第二通知消息, 或直接以短消息的方式向该用户终端发送第二通知消息。 本实施例描述了在通过 IM 网络连接发送第二通知消息失败的情况下, 断开 IM网络连接, 节省了网络资源; 并在后续再收到新的第二通知消息时, 根据第二通知消息的内容判断该建立什么连接, 更有效的提高了发送第二通 知消息的效率。 为了便于理解, 下面以一具体应用场景对上述的实施例中描述的 SDP消 息推送方法再进行详细描述, 请参考图 5 , 具体为:  3. Reconnecting the IM network; if the new second notification message includes an IM message, after the IM server receives the new second notification message, re-establish an IM network connection with the user terminal, which facilitates faster and more convenient transmission. New second notification message. 4. Establishing a TCP or short message connection; if the new second notification message does not include the content of the IM message, establishing a transmission control protocol TCP connection with the user terminal and transmitting a second notification message to the user terminal through the TCP connection, Or sending the second notification message to the user terminal directly in the form of a short message. This embodiment describes that when the second notification message is sent through the IM network connection fails, the IM network connection is disconnected, the network resource is saved, and when the new second notification message is received subsequently, according to the second notification message. The content of the content determines which connection is established, and more effectively improves the efficiency of sending the second notification message. For the sake of easy understanding, the SDP message pushing method described in the foregoing embodiment is further described in detail in a specific application scenario. Referring to FIG. 5, specifically:
501、 业务平台发生事件, 下发通知; 业务平台发生事件, 需要下发通知, 这些事件如: 新增好友通知, 有新 邮件到达或好友博客更新通知, 业务平台需要调用 SDP消息推送装置的接口 — — 以发送通知。 称上述通知为第一通知消息, 第一通知消息的内容包括501. The service platform generates an event and sends a notification. If an event occurs on the service platform, a notification needs to be sent. These events are as follows: Add a friend notification, a new mail arrives or a friend blog update notification, and the service platform needs to call the interface of the SDP message push device. — — to send a notification. The above notification is referred to as a first notification message, and the content of the first notification message includes
( QQ. A. B. 2 ) , "QQ"表示是由 QQ业务平台下发的, "A"表示接收方地址, "B" 表示发送方地址, "2" 表示有两条消息。 (QQ. A. B. 2), "QQ" indicates that it is issued by the QQ service platform, "A" indicates the recipient address, "B" indicates the sender address, and "2" indicates that there are two messages.
502、 统一协议转换; 502, unified protocol conversion;
SDP消息推送装置调用与 IM服务器的通知接口,获取第一通知消息的协 议类型 (如: Ema i l釆用的是 IMAP协议 ), 并对第一通知消息进行解封装, 得到消息内容的参数; 然后根据该协议类型(IMAP协议)在协议类型映射关 系中查找对应的映射关系; 在 SDP消息推送装置中存储了各种协议类型统一 转换为预置协议类型的映射关系(如: 管理员设置了预置的协议类型为 XMPP 协议, 所有业务平台的通知消息的协议类型都统一转换为 XMPP协议, 则该 映射关系为: IMAP协议一 XMPP协议), 和具体的参数转换内容, 只要在协议 类型映射关系中查找到对应的映射关系, 进行相应参数的映射转换, 就可以 将第一通知消息转换为预置协议类型 (XMPP协议) 的第二通知消息。 The SDP message pushing device invokes the notification interface with the IM server, obtains the protocol type of the first notification message (eg, Ema il uses the IMAP protocol), and decapsulates the first notification message to obtain parameters of the message content; Searching for the corresponding mapping relationship in the protocol type mapping relationship according to the protocol type (IMAP protocol); storing the mapping relationship of various protocol types into a preset protocol type in the SDP message pushing device (for example: the administrator sets the pre-configuration The protocol type of the protocol is XMPP. The protocol types of the notification messages of all service platforms are uniformly converted to XMPP. The mapping relationship is: IMAP protocol-XMPP protocol, and the specific parameter conversion content, as long as the protocol type mapping relationship The first notification message is converted into a second notification message of a preset protocol type (XMPP protocol) by finding a corresponding mapping relationship and performing mapping conversion of the corresponding parameter.
503、 查询通知策略; 503. Query a notification policy;
SDP消息推送装置查询通知策略, 如果通知策略指示为直接下发, 则将 第二通知消息直接下发给 IM服务器; 如果通知策略指示为条件式下发, 则 先将接收的第二通知消息緩存下来。 假设通知策略所设置的条件是通知策略为每 5分钟将所有的第二通知消 息发送给 IM服务器, 每次只能下发 5条第二通知消息。 但 SDP消息推送装 置在该 5 分钟内緩存了 10 条第二通知消息, 其中包括: (ma i l. C. D. 3 ), ( QQ. A. B. 2 ), ( MSN. E. F. 2 )等, 则 SDP消息推送装置根据通知策略将每两 — — 条第二通知消息合并为一条新的第二通知消息, 如: 【(mail.C.D.3 ); ( QQ. A. B.2 )】。 或假设通知策略的条件是每 5分钟, 且第二通知消息达到三条时下发。 SDP 消息推送装置在该 5 分钟内緩存的第二通知消息包括: (mail.C.D.3),The SDP message pushing device queries the notification policy. If the notification policy indicates direct delivery, the second notification message is directly sent to the IM server. If the notification policy indicates that the conditional delivery is performed, the received second notification message is cached first. Come down. It is assumed that the condition set by the notification policy is that the notification policy sends all the second notification messages to the IM server every 5 minutes, and only five second notification messages can be delivered at a time. However, the SDP message pushing device caches 10 second notification messages in the 5 minutes, including: (ma i l. CD 3 ), ( QQ. AB 2 ), (MSN. EF 2 ), etc., then the SDP message is pushed. The device will be every two according to the notification policy — — The second notification message is merged into a new second notification message, such as: [(mail.CD3 ); ( QQ. AB2 )]. Or assume that the condition of the notification policy is issued every 5 minutes, and the second notification message reaches three. The second notification message buffered by the SDP message pushing device within the 5 minutes includes: (mail.CD3),
( QQ. A. B.2 ), (MSN. E. F.2 )等, 则 SDP消息推送装置根据通知策略将 3条 通知消息合并为一条新的第二通知消息, 如: [(mail.C.D.3); ( QQ. A. B.2 );(QQ. AB2), (MSN. EF2), etc., the SDP message pushing device combines the three notification messages into a new second notification message according to the notification policy, such as: [(mail.CD3); ( QQ . AB2 );
(MSN. E. F.2 )】。 (MSN. E. F.2)].
504、 发送第二通知消息; 504. Send a second notification message.
SDP消息推送装置根据通知策略向 IM服务器发送第二通知消息。下发的 通知策略可以每次发一条或若干条, 由用户设定。 下发时可以逐条发送, 或 先合并在一起再发送, 只要符合所设定的通知策略就行。  The SDP message pushing device transmits a second notification message to the IM server according to the notification policy. The issued notification policy can be sent one or several times at a time and set by the user. It can be sent one by one when it is delivered, or it can be merged and sent first, as long as it meets the set notification policy.
505、 与用户终端建立 XMPP连接;  505. Establish an XMPP connection with the user terminal.
IM服务器与用户终端建立 XMPP连接, 并记录用户终端的 IP地址、 当前 的 IP状态, 将 TCP计算器清零。 The IM server establishes an XMPP connection with the user terminal, records the IP address of the user terminal, the current IP status, and clears the TCP calculator.
506、 发送第二通知消息; 506. Send a second notification message.
IM服务器通过 XMPP连接发送第二通知消息。 The IM server sends a second notification message through the XMPP connection.
507、 判断通过 XMPP连接发送成败; 507. Determine the success or failure of sending through the XMPP connection;
IM服务器与用户终端进行数据链接的检测, 若 IM服务器在发送第二通 知消息后, 20秒内未收到用户终端的任何反馈, 则确定通过该 XMPP网络连 接发送第二通知消息失败, 触发步骤 508; — — 若收到用户终端的反馈, 则确定通过该 XMPP 网络连接发送第二通知消 息成功, 触发步骤 513返回成功发送的状态报告。 The IM server detects the data link with the user terminal. If the IM server does not receive any feedback from the user terminal within 20 seconds after sending the second notification message, it determines that the second notification message is sent through the XMPP network connection, and the triggering step is triggered. 508; — If the feedback from the user terminal is received, it is determined that the second notification message is successfully sent through the XMPP network connection, and the triggering step 513 returns a status report of the successful transmission.
508、 判断 IP状态是否可用; 508. Determine whether an IP status is available.
IM服务器判断该用户终端当前的 IP状态是否可用, 若不可用, 则直接 触发步骤 513通过短信息发送; 若可用, 则触发步骤 509。  The IM server determines whether the current IP status of the user terminal is available. If not, it directly triggers step 513 to send by short message; if available, triggers step 509.
509、 建立 TCP连接; 509. Establish a TCP connection.
IM服务器主动发起与用户终端的 TCP 连接, 用于与用户终端建立 TCP 网络通道, 发送第二通知消息。 The IM server actively initiates a TCP connection with the user terminal, and is configured to establish a TCP network channel with the user terminal, and send a second notification message.
510、 判断建立 TCP连接是否成功;  510. Determine whether the establishment of the TCP connection is successful.
IM服务器判断与用户终端建立 TCP连接是否成功,若成功,则触发步骤 512; 若不成功, 则更新 TCP计数器, 使 TCP连接失败计数加一, 并触发步 骤 511。  The IM server determines whether the TCP connection with the user terminal is successful. If successful, it triggers step 512; if not, updates the TCP counter, increments the TCP connection failure count by one, and triggers step 511.
511、 判断 TCP计数器是否达到阔值; 511. Determine whether the TCP counter reaches a threshold.
IM服务器判断 TCP计数器的累加计算是否达到预置数值,若达到,则直 接触发步骤 513并设置该用户终端的 IP状态为不可用; 若未达到, 则继续 尝试与该用户终端建立 TCP连接。  The IM server determines whether the accumulated calculation of the TCP counter reaches the preset value. If so, the direct contact step 513 is set and the IP status of the user terminal is set to be unavailable; if not, the TCP connection is continuously established with the user terminal.
512、 通过 TCP发送第二通知消息; 若 IM服务器与用户终端建立 TCP连接成功, 则通过该 TCP连接向该用 户终端发送第二通知消息, 在发送成功后关闭 TCP通道, 并触发步骤 514返 回成功发送的状态报告。 — — 512. Send a second notification message by using the TCP. If the IM server establishes a TCP connection with the user terminal, the second notification message is sent to the user terminal through the TCP connection. After the transmission succeeds, the TCP channel is closed, and the step 514 is successfully returned. Status report sent. — —
51 3、 通过短信息发送第二通知消息; 若 IM服务器与用户终端建立 TCP连接不成功, 通过短信息方式向用户 终端发送第二通知消息, 并触发步骤 514返回成功发送的状态报告。 The third notification message is sent by using the short message; if the TCP connection between the IM server and the user terminal is unsuccessful, the second notification message is sent to the user terminal by the short message mode, and the step 514 is triggered to return the status report of the successful transmission.
514、 返回成功发送的状态报告; 514. Return a status report that is successfully sent;
IM服务器向 SDP消息推送装置返回成功发送的状态报告。 The IM server returns a status report of successful transmission to the SDP message pushing device.
515、 删除第二通知消息; 515. Delete the second notification message.
SDP消息推送装置在收到 IM服务器返回的成功发送的状态报告后,删除 该 5分钟内緩存的第二通知消息。 After receiving the status report of the successful transmission returned by the IM server, the SDP message pushing device deletes the second notification message cached within 5 minutes.
下面对用于执行上述 SDP消息推送方法的本发明 SDP消息推送装置的实 施例进行说明, 其逻辑结构请参考图 6 , 本发明实施例中的 SDP消息推送装 置一个实施例包括:  The following describes an embodiment of the SDP message pushing apparatus of the present invention for performing the foregoing SDP message pushing method. For the logical structure of the SDP message pushing apparatus, an embodiment of the SDP message pushing apparatus in the embodiment of the present invention includes:
通知消息获取单元 601 : 用于获取业务平台发送的第一通知消息; 协议转换单元 602 :用于当通知消息获取单元获取到第一通知消息之后, 对该第一通知消息进行统一协议转换, 得到协议统一的第二通知消息; 通知消息发送单元 603: 用于在得到协议统一的第二通知消息之后, 通 过 IM服务器向用户终端发送第二通知消息。 本发明实施例中的 SDP消息推送装置还可以进一步包括:  The notification message obtaining unit 601 is configured to: obtain a first notification message sent by the service platform; and the protocol conversion unit 602 is configured to: after the notification message obtaining unit acquires the first notification message, perform unified protocol conversion on the first notification message, to obtain The second notification message is unified by the protocol; the notification message sending unit 603 is configured to send the second notification message to the user terminal by using the IM server after obtaining the second notification message unified by the protocol. The SDP message pushing apparatus in the embodiment of the present invention may further include:
查询单元 604 , 用于对第一通知消息进行统一协议转换得到协议统一的 第二通知消息之后,根据第一通知消息中的通知消息类型以及接收方地址查 询对应的通知策略;  The query unit 604 is configured to perform a unified protocol conversion on the first notification message to obtain a second notification message that is unified by the protocol, and then query the corresponding notification policy according to the type of the notification message in the first notification message and the address of the receiver;
策略判断单元 605 , 用于根据通知策略判断下发第二通知消息的方式为 直接下发或条件式下发, 若为直接下发, 则触发通知消息发送单元 603执行 - - 相应操作; 若为条件式下发, 则触发緩存单元 606执行相应操作; The policy judging unit 605 is configured to determine, according to the notification policy, that the second notification message is sent by the direct delivery or the conditional delivery, and if the direct delivery is performed, the trigger notification message sending unit 603 performs - - corresponding operation; if the conditional delivery is performed, the trigger cache unit 606 performs a corresponding operation;
緩存单元 606 , 用于当通知策略指示为条件式下发时, 根据通知策略对 第二通知消息进行緩存;  The cache unit 606 is configured to cache the second notification message according to the notification policy when the notification policy indicates that the conditional delivery is performed;
合并判断单元 607 , 用于根据通知策略对第二通知消息进行緩存之后, 判断是否需要对緩存后的第二通知消息进行合并, 若需要, 则触发合并单元 The merging judging unit 607 is configured to: after the second notification message is cached according to the notification policy, determine whether the second notification message needs to be merged, and if necessary, trigger the merging unit
608执行相应操作; 若不需要, 则直接触发通知消息发送单元 603执行相应 操作; 608 performs a corresponding operation; if not, directly triggers the notification message sending unit 603 to perform a corresponding operation;
合并单元 608 , 用于根据通知策略对緩存后的第二通知消息进行合并, 并得到新的第二通知消息, 触发通知消息发送单元 603执行相应操作。 本发明实施例中 SDP消息推送装置的协议转换单元 602还可以进一步包 括:  The merging unit 608 is configured to merge the cached second notification message according to the notification policy, and obtain a new second notification message, and trigger the notification message sending unit 603 to perform a corresponding operation. The protocol conversion unit 602 of the SDP message pushing apparatus in the embodiment of the present invention may further include:
协议类型获取单元, 用于获取第一通知消息的协议类型;  a protocol type obtaining unit, configured to acquire a protocol type of the first notification message;
解封装单元, 用于对第一通知消息进行解封装得到消息内容; 查找单元, 用于根据第一通知消息的协议类型在协议类型映射关系中查 询对应的统一协议类型; 封装单元, 用于按照统一协议类型对该消息内容进行封装, 得到第二通 知消息。 本发明实施例 SDP消息推送装置的各个单元具体的交互过程如下: 通知消息获取单元 601获取业务平台发送的第一通知消息, 协议转换单 元 602对获取到的第一通知消息进行统一协议转换,得到协议统一的第二通 知消息。 然后查询单元 604根据第一通知消息中的通知消息类型以及接收方地址 查询到对应的通知策略, 该通知策略的内容包括通知消息下发的频率和通知 — — 消息一次所下发的条数。 策略判断单元 605根据通知策略判断下发第二通知 消息的方式为直接下发或条件式下发。 若为直接下发, 则触发通知消息发送单元 603向 IM服务器发送该第二 通知消息, 使得 IM服务器向用户终端发送该第二通知消息; 若下发方式为条件式下发, 则緩存单元 606通知策略先緩存第二通知消 息, 緩存的主要目的有两个, 一是统一时间发送一定数量的第二通知消息; 二是当第二通知消息发送失败后进行重发。 然后合并判断单元 607根据通知 策略判断是否需要对緩存后的第二通知消息进行合并。 若需要, 则触发合并 单元 608根据通知策略对緩存后的第二通知消息进行合并, 并得到新的第二 通知消息,再触发通知消息发送单元 603向 IM服务器发送该第二通知消息; 若不需要, 则直接触发通知消息发送单元 603向 IM服务器发送该第二通知 消息。 下面对用于执行上述 SDP消息推送方法的本发明 IM服务器的实施例进 行说明,其逻辑结构请参考图 7 ,本发明实施例中的 IM服务器一个实施例包 括: a decapsulating unit, configured to decapsulate the first notification message to obtain a message content, and a searching unit, configured to query, according to a protocol type of the first notification message, a corresponding unified protocol type in a protocol type mapping relationship; The unified protocol type encapsulates the content of the message to obtain a second notification message. The specific interaction process of each unit of the SDP message pushing apparatus in the embodiment of the present invention is as follows: The notification message obtaining unit 601 acquires the first notification message sent by the service platform, and the protocol conversion unit 602 performs unified protocol conversion on the obtained first notification message, The second notification message of the agreement is unified. The query unit 604 then queries the corresponding notification policy according to the notification message type and the recipient address in the first notification message, and the content of the notification policy includes the frequency and notification of the notification message delivery. — — The number of messages sent by the message at a time. The policy judging unit 605 determines that the second notification message is delivered in a direct delivery or a conditional manner according to the notification policy. If the direct delivery is performed, the trigger notification message sending unit 603 sends the second notification message to the IM server, so that the IM server sends the second notification message to the user terminal; if the delivery mode is conditional delivery, the cache unit 606 The notification policy first caches the second notification message. The main purpose of the cache is two. One is to send a certain number of second notification messages in a unified time; the other is to resend after the second notification message fails to be sent. Then, the merge determination unit 607 determines whether it is necessary to merge the cached second notification message according to the notification policy. If necessary, the trigger merging unit 608 merges the cached second notification message according to the notification policy, and obtains a new second notification message, and the CRC message sending unit 603 sends the second notification message to the IM server; If necessary, the direct trigger notification message sending unit 603 sends the second notification message to the IM server. The following describes an embodiment of the IM server of the present invention for performing the foregoing SDP message pushing method. For the logical structure, refer to FIG. 7. An embodiment of the IM server in the embodiment of the present invention includes:
接收单元 701 , 用于接收 SDP消息推送装置所发送的第二通知消息, 第 二通知消息是由 SDP消息推送装置对由业务平台发送的第一通知消息进行统 一协议转换所得到;  The receiving unit 701 is configured to receive a second notification message sent by the SDP message pushing device, where the second notification message is obtained by the SDP message pushing device to perform a unified protocol conversion on the first notification message sent by the service platform.
第一连接单元 702 , 用于在接收单元 701接收到该第二通知消息之后, 与用户终端建立 IM网络连接; 第一发送单元 703 ,用于第一连接单元 702与用户终端建立 IM网络连接 之后, 优先通过该 IM网络连接向用户终端发送第二通知消息。 — — 发送判断单元 704 ,用于判断通过该 IM网络连接发送第二通知消息是否 失败, 若是, 则触发第二连接单元 705或第三发送单元 707执行相应操作; 第二连接单元 705 , 用于与用户终端建立传输控制协议 TCP连接; 第二发送单元 706 , 用于通过 TCP连接向用户终端发送第二通知消息; 第三发送单元 707 , 用于直接以短消息的方式向用户终端发送第二通知 消息。 The first connection unit 702 is configured to establish an IM network connection with the user terminal after the receiving unit 701 receives the second notification message, and the first sending unit 703 is configured to: after the first connection unit 702 establishes an IM network connection with the user terminal, Sending a second notification message to the user terminal preferentially through the IM network connection. The sending determining unit 704 is configured to determine whether the sending of the second notification message by the IM network connection fails, and if so, triggering the second connecting unit 705 or the third sending unit 707 to perform a corresponding operation; the second connecting unit 705 is configured to: Establishing a transmission control protocol TCP connection with the user terminal; a second sending unit 706, configured to send a second notification message to the user terminal by using a TCP connection; and a third sending unit 707, configured to send the second message to the user terminal directly by using a short message Notification message.
本发明实施例中的 IM服务器的第二连接单元 705还可以进一步包括: 记录单元 7051 , 用于在第一连接单元 702与用户终端建立 IM网络连接 之后, 记录用户终端的 IP状态是否可用;  The second connection unit 705 of the IM server in the embodiment of the present invention may further include: a recording unit 7051, configured to record, after the first connection unit 702 establishes an IM network connection with the user terminal, whether the IP status of the user terminal is available;
TCP计数控制单元 7052 , 用于在第二连接单元 705与用户终端建立 TCP 连接之前, 对 TCP计数器进行清零操作;  The TCP count control unit 7052 is configured to perform a clear operation on the TCP counter before the second connection unit 705 establishes a TCP connection with the user terminal.
TCP计数单元 7053 , 用于在建立 TCP连接不成功时, TCP计数器加一; 状态判断单元 7054 , 用于在第二连接单元与用户终端建立 TCP连接之 前, 判断用户终端的 IP状态是否可用, 若不可用, 则触发第三发送单元执 行相应操作, 若可用, 则与用户终端建立 TCP连接;  The TCP counter unit 7053 is configured to: when the TCP connection is unsuccessful, the TCP counter is incremented by one; the state determining unit 7054 is configured to determine, before the second connection unit establishes a TCP connection with the user terminal, whether the IP status of the user terminal is available, if If not available, triggering the third sending unit to perform a corresponding operation, and if available, establishing a TCP connection with the user terminal;
连接判断单元 7055 , 用于判断建立 TCP连接是否成功, 若成功, 则触发 第二发送单元 706执行相应操作, 若不成功, 则触发数值判断单元 7056和 TCP计数单元 7053执行相应操作;  The connection determining unit 7055 is configured to determine whether the establishment of the TCP connection is successful. If successful, the second sending unit 706 is triggered to perform a corresponding operation. If not, the trigger value determining unit 7056 and the TCP counting unit 7053 perform corresponding operations.
数值判断单元 7056 , 用于判断 TCP计数器是否达到预置数值, 若达到, 则触发第三发送单元 707执行相应操作, 并触发记录单元 7051记录该用户 终端的 IP状态为不可用, 若未达到, 则触发第二连接单元 705与用户终端 建立 TCP连接。 本发明实施例 IM服务器的各个单元具体的交互过程如下: 接收单元 701接收 SDP消息推送装置所发送的第二通知消息, 为了转发 第二通知消息, 第一连接单元 702与用户终端建立 IM网络连接, 并记录用 — — 户终端的 IP地址, 在连接建立后, 第一发送单元 703优先通过该 IM网络连 接向用户终端发送第二通知消息。 The value judging unit 7056 is configured to determine whether the TCP counter reaches the preset value. If yes, the third sending unit 707 is triggered to perform a corresponding operation, and the triggering unit 7051 records that the IP status of the user terminal is unavailable. If not, Then, the second connection unit 705 is triggered to establish a TCP connection with the user terminal. The specific interaction process of each unit of the IM server in the embodiment of the present invention is as follows: The receiving unit 701 receives the second notification message sent by the SDP message pushing device, and in order to forward the second notification message, the first connecting unit 702 establishes an IM network connection with the user terminal. And record The IP address of the user terminal, after the connection is established, the first sending unit 703 preferentially transmits a second notification message to the user terminal through the IM network connection.
发送判断单元 704根据 IM服务器和终端之间的协议来判断通过 IM网络 连接发送第二通知消息是否失败。 若是, 则触发第二连接单元 705与用户终 端建立传输控制协议 TCP连接, 或第三发送单元 707直接以短消息的方式向 用户终端发送第二通知消息。  The transmission judging unit 704 judges whether or not the transmission of the second notification message via the IM network connection is failed based on the protocol between the IM server and the terminal. If yes, the second connection unit 705 is triggered to establish a transmission control protocol TCP connection with the user terminal, or the third sending unit 707 directly sends the second notification message to the user terminal in a short message manner.
本发明实施例用 TCP通道发送第二通知消息优先于用短信消息发送, 具 体在什么时候建立 TCP连接,什么时候以短消息的方式向用户终端发送第二 通知消息, 在第二连接单元 705的子单元中有完整的判断机制: 在建立 TCP 连接之前, 记录单元 7051记录用户终端的 IP状态是否可用, TCP计数控制 单元 7052将 TCP计数器清零, 然后状态判断单元 7054判断用户终端的 IP 状态是否可用, 若不可用, 则直接触发第三发送单元 707 , 若可用, 则与用 户终端建立 TCP连接。 连接判断单元 7055判断建立 TCP连接是否成功, 若 成功,则触发第二发送单元 706通过 TCP连接向用户终端发送第二通知消息; 若不成功, 则触发 TCP计数单元 7053更新 TCP连接次数, 并触发数值判断 单元 7056判断 TCP计数器是否达到预置数值。 若达到阔值, 则触发第三发 送单元 707 , 若未达到, 则触发第二连接单元 705继续与用户终端建立 TCP 连接。  In the embodiment of the present invention, the second notification message is sent by using the TCP channel, and the second notification message is sent to the user terminal in a short message manner. There is a complete judgment mechanism in the subunit: Before establishing the TCP connection, the recording unit 7051 records whether the IP status of the user terminal is available, the TCP count control unit 7052 clears the TCP counter, and then the state judging unit 7054 determines whether the IP status of the user terminal is Available, if not available, triggers the third transmitting unit 707 directly, and if available, establishes a TCP connection with the user terminal. The connection determining unit 7055 determines whether the establishment of the TCP connection is successful. If successful, the second sending unit 706 is triggered to send a second notification message to the user terminal through the TCP connection. If not, the TCP counting unit 7053 is triggered to update the number of TCP connections, and triggers. The value judging unit 7056 judges whether or not the TCP counter has reached the preset value. If the threshold is reached, the third transmitting unit 707 is triggered. If not, the second connecting unit 705 is triggered to continue to establish a TCP connection with the user terminal.
下面对用于执行上述 SDP消息推送方法的本发明 SDP消息推送系统的实 施例进行说明, 其逻辑结构请参考图 8 , 本发明实施例中的 SDP消息推送系 统一个实施例包括:  An embodiment of the SDP message pushing system of the present invention for performing the foregoing SDP message pushing method is described. For the logical structure of the SDP message pushing system, an embodiment of the SDP message pushing system in the embodiment of the present invention includes:
SDP消息推送装置 801 , 用于获取业务平台发送的第一通知消息; 对第 — — 一通知消息进行统一协议转换, 得到协议统一的第二通知消息; 通过 IM服 务器向用户终端发送第二通知消息。 The SDP message pushing device 801 is configured to acquire a first notification message sent by the service platform; — A notification message is used for unified protocol conversion, and a second notification message unified by the protocol is obtained; the second notification message is sent to the user terminal by the IM server.
即时消息 IM服务器 802 ,用于接收 SDP消息推送装置所发送的第二通知 消息, 与用户终端建立 IM网络连接; 优先通过 IM网络连接向该用户终端发 送该第二通知消息; 判断通过 IM 网络连接发送第二通知消息是否失败, 若 是, 则与用户终端建立传输控制协议 TCP连接并通过 TCP连接向该用户终端 发送第二通知消息, 或直接以短消息的方式向该用户终端发送第二通知消 息。  The IM server 802 is configured to receive a second notification message sent by the SDP message pushing device, establish an IM network connection with the user terminal, and send the second notification message to the user terminal preferentially through the IM network connection; Whether the second notification message is sent, if yes, establishing a transmission control protocol TCP connection with the user terminal, and sending a second notification message to the user terminal through the TCP connection, or directly sending the second notification message to the user terminal in a short message manner. .
上述系统应用于如图 5实施例中所描述的应用场景。  The above system is applied to the application scenario described in the embodiment of FIG.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步 骤是可以通过程序来指令相关的硬件完成, 该程序可以存储于一种计算机可 读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。 以上对本发明所提供的一种业务分发平台消息推送方法、相关设备及系 统进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想, 在具体实施方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不 应理解为对本发明的限制。  A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, and the above mentioned storage medium may be It is a read-only memory, a disk or a disc. The above describes a service delivery platform message pushing method, related device and system provided by the present invention. For those skilled in the art, according to the idea of the embodiment of the present invention, the specific implementation manner and the application range are In the above, the contents of the specification are not to be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种业务分发平台 SDP消息推送方法, 其特征在于, 包括: 接收 SDP 消息推送装置所发送的第二通知消息, 所述第二通知消息是 由 SDP 消息推送装置对由业务平台发送的第一通知消息进行统一协议转换 所得到的;  A service delivery platform SDP message pushing method, comprising: receiving a second notification message sent by an SDP message pushing device, where the second notification message is sent by the SDP message pushing device to the service platform a notification message obtained by a unified protocol conversion;
与用户终端建立 IM网络连接;  Establish an IM network connection with the user terminal;
优先通过所述 IM网络连接向所述用户终端发送所述第二通知消息; 判断通过所述 IM网络连接发送第二通知消息是否失败, 若是, 则与用 户终端建立传输控制协议 TCP连接并通过所述 TCP连接向所述用户终端发 送第二通知消息, 或直接以短消息的方式向所述用户终端发送第二通知消 息。  Transmitting, by using the IM network connection, the second notification message to the user terminal; determining whether the second notification message is sent by using the IM network connection, and if yes, establishing a transmission control protocol TCP connection with the user terminal and passing the The TCP connection sends a second notification message to the user terminal, or directly sends a second notification message to the user terminal in a short message manner.
2、 根据权利要求 1所述的方法, 其特征在于, 所述与用户终端建立 IM 网络连接之后包括:  2. The method according to claim 1, wherein after the establishing an IM network connection with the user terminal, the method comprises:
记录用户终端的 IP状态, 并将 TCP计数器清零;  Record the IP status of the user terminal and clear the TCP counter;
所述与用户终端建立 TCP连接并通过所述 TCP连接向所述用户终端发 送第二通知消息, 或直接以短消息的方式向所述用户终端发送第二通知消息 包括:  The method of establishing a TCP connection with the user terminal, and sending the second notification message to the user terminal by using the TCP connection, or sending the second notification message to the user terminal directly by using a short message includes:
判断所述用户终端的 IP状态是否可用, 若不可用, 则直接以短消息的 方式向所述用户终端发送第二通知消息, 若可用, 与用户终端建立 TCP 连 接;  Determining whether the IP status of the user terminal is available, if not available, directly sending a second notification message to the user terminal in a short message manner, and if possible, establishing a TCP connection with the user terminal;
判断建立 TCP连接是否成功, 若成功, 则通过所述 TCP连接向所述用 户终端发送第二通知消息, 若不成功, 则更新 TCP计数器并判断 TCP计数 器是否达到预置数值, 若未达到, 则继续尝试与所述用户终端建立 TCP 连 接, 若达到, 则以短消息的方式向所述用户终端发送第二通知消息, 并设置 所述用户终端的 IP状态为不可用。  Determining whether the establishment of the TCP connection is successful. If successful, sending a second notification message to the user terminal through the TCP connection. If not, updating the TCP counter and determining whether the TCP counter reaches a preset value. If not, Continuing to try to establish a TCP connection with the user terminal. If yes, send a second notification message to the user terminal in a short message manner, and set the IP status of the user terminal to be unavailable.
3、 根据权利要求 1所述的方法, 其特征在于, 当通过 TCP通道向用户 终端发送第二通知消息, 或以短消息方式向用户终端发送第二通知消息之后 包括:  The method according to claim 1, wherein after the second notification message is sent to the user terminal through the TCP channel, or the second notification message is sent to the user terminal in the short message manner, the method includes:
向用户终端发送重连通知消息, 所述重连通知消息用于指示所述用户终 端主动发起重连请求; 接收用户终端发送的主动重连 IM网络的请求; Sending a reconnection notification message to the user terminal, where the reconnection notification message is used to indicate that the user terminal actively initiates a reconnection request; Receiving a request sent by the user terminal to actively reconnect to the IM network;
根据所述请求与所述用户终端建立 IM网络连接。  Establishing an IM network connection with the user terminal according to the request.
4、 根据权利要求 1所述的方法, 其特征在于, 所述与用户终端建立 IM 网络连接之后包括:  The method according to claim 1, wherein after the establishing an IM network connection with the user terminal, the method comprises:
若在预置时间内, 没有通过所述 IM网络连接发送第二通知消息, 则断 开所述 IM网络连接。  If the second notification message is not sent through the IM network connection within the preset time, the IM network connection is disconnected.
5、根据权利要求 4所述的方法, 其特征在于, 所述断开 IM网络连接之 后包括:  The method according to claim 4, wherein the disconnecting the IM network connection comprises:
若收到新的第二通知消息, 则判断所述新的第二通知消息中是否包含有 IM消息, 若有, 则与用户终端再次建立 IM网络连接。  If a new second notification message is received, it is determined whether the new second notification message includes an IM message, and if so, the IM network connection is established again with the user terminal.
6、 根据权利要求 1所述的方法, 其特征在于, 包括:  6. The method according to claim 1, comprising:
获取业务平台发送的第一通知消息;  Obtaining a first notification message sent by the service platform;
对所述第一通知消息进行统一协议转换, 得到协议统一的第二通知消 息。  Performing a unified protocol conversion on the first notification message to obtain a second notification message unified by the protocol.
7、 根据权利要求 6所述的方法, 其特征在于, 所述对第一通知消息进 行统一协议转换, 得到协议统一的第二通知消息包括:  The method according to claim 6, wherein the performing the unified protocol conversion on the first notification message to obtain the second notification message unified by the protocol comprises:
获取第一通知消息的协议类型;  Get the protocol type of the first notification message;
对所述第一通知消息进行解封装得到消息内容;  Decapsulating the first notification message to obtain a message content;
根据所述第一通知消息的协议类型在协议类型映射关系中查询对应的 统一协议;  Querying, according to the protocol type of the first notification message, a corresponding unified protocol in a protocol type mapping relationship;
按照所述统一协议对所述消息内容进行封装, 得到第二通知消息。  Encapsulating the message content according to the unified protocol to obtain a second notification message.
8、 根据权利要求 7所述的方法, 其特征在于, 所述第一通知消息包括: 通知消息类型, 接收方地址以及消息内容;  The method according to claim 7, wherein the first notification message comprises: a notification message type, a recipient address, and a message content;
所述对第一通知消息进行统一协议转换得到协议统一的第二通知消息 之后包括:  After the unified notification conversion of the first notification message to obtain the second notification message unified by the protocol, the method includes:
根据第一通知消息中的通知消息类型以及接收方地址查询对应的通知 策略;  Querying a corresponding notification policy according to the type of the notification message in the first notification message and the address of the recipient;
当所述通知策略指示为条件式下发时,根据所述通知策略对第二通知消 息进行緩存。  When the notification policy indicates that the conditional delivery is performed, the second notification message is cached according to the notification policy.
9、 根据权利要求 8所述的方法, 其特征在于, 所述根据通知策略对第 二通知消息进行緩存之后包括: 9. The method according to claim 8, wherein the notification policy is based on After the notification message is cached, it includes:
判断是否需要对緩存后的第二通知消息进行合并, 若需要, 则根据所述 通知策略对緩存后的第二通知消息进行合并, 得到新的第二通知消息。  Determining whether the cached second notification message needs to be merged, if necessary, combining the cached second notification message according to the notification policy to obtain a new second notification message.
10、 根据权利要求 8或 9所述的方法, 其特征在于, 所述通过所述 IM 网络连接向所述用户终端发送所述第二通知消息包括:  The method according to claim 8 or 9, wherein the sending the second notification message to the user terminal by using the IM network connection comprises:
当达到预置周期时, 向 IM服务器发送该时间周期内緩存的第二通知消 息;  When the preset period is reached, sending a second notification message cached in the time period to the IM server;
和 /或,  and / or,
当緩存的第二通知消息达到预置数目时, 向 IM服务器发送緩存的第二 通知消息。  When the cached second notification message reaches the preset number, the cached second notification message is sent to the IM server.
11、 根据权利要求 8所述的方法, 其特征在于, 当所述通知策略指示为 直接下发时, 所述通过所述 IM网络连接向所述用户终端发送所述第二通知 消息具体为: 直接向所述 IM服务器发送获得的第二通知消息。  The method according to claim 8, wherein when the notification policy indicates direct delivery, the sending the second notification message to the user terminal by using the IM network connection is specifically: The obtained second notification message is directly sent to the IM server.
12、 根据权利要求 8或 9所述的方法, 其特征在于, 所述通过所述 IM 网络连接向所述用户终端发送所述第二通知消息之后包括:  The method according to claim 8 or 9, wherein the sending the second notification message to the user terminal by using the IM network connection comprises:
判断是否接收到 IM服务器反馈的发送成功报告, 若接收到, 则删除緩 存的第二通知消息, 若未接收到, 则按照预置的重发规则向 IM服务器重发 所述第二通知消息。  It is judged whether the transmission success report fed back by the IM server is received, and if it is received, the cached second notification message is deleted, and if not received, the second notification message is resent to the IM server according to the preset retransmission rule.
13、 一种业务分发平台 SDP消息推送装置, 其特征在于, 包括: 通知消息获取单元, 用于获取业务平台发送的第一通知消息;  A service distribution platform SDP message pushing device, comprising: a notification message obtaining unit, configured to acquire a first notification message sent by a service platform;
协议转换单元, 用于当通知消息获取单元获取到所述第一通知消息之 后,对所述第一通知消息进行统一协议转换,得到协议统一的第二通知消息; 通知消息发送单元,用于在得到协议统一的第二通知消息之后 ,通过 IM 服务器向用户终端发送所述第二通知消息。  a protocol conversion unit, configured to perform a unified protocol conversion on the first notification message after obtaining the first notification message by the notification message obtaining unit, to obtain a second notification message unified by the protocol; and a notification message sending unit, configured to After obtaining the second notification message unified by the protocol, the second notification message is sent to the user terminal by the IM server.
14、根据权利要求 13所述的 SDP消息推送装置,其特征在于,所述 SDP 消息推送装置还包括:  The SDP message pushing device according to claim 13, wherein the SDP message pushing device further comprises:
查询单元, 用于所述对第一通知消息进行统一协议转换得到协议统一的 第二通知消息之后,根据第一通知消息中的通知消息类型以及接收方地址查 询对应的通知策略;  a querying unit, configured to perform a unified protocol conversion on the first notification message to obtain a second notification message unified by the protocol, and query the corresponding notification policy according to the type of the notification message in the first notification message and the address of the receiver;
策略判断单元, 用于根据所述通知策略判断下发第二通知消息的方式为 直接下发或条件式下发, 若为直接下发, 则触发通知消息发送单元执行相应 操作; 若为条件式下发, 则触发緩存单元执行相应操作; a policy determining unit, configured to determine, according to the notification policy, that the second notification message is sent If the conditional delivery is performed, the triggering buffer unit performs the corresponding operation; if the conditional delivery is performed, the triggering message sending unit performs the corresponding operation;
緩存单元, 用于当所述通知策略指示为条件式下发时, 根据所述通知策 略对第二通知消息进行緩存。  And a buffering unit, configured to cache the second notification message according to the notification policy when the notification policy indicates that the conditional delivery is performed.
15、根据权利要求 14所述的 SDP消息推送装置,其特征在于,所述 SDP 消息推送装置还包括:  The SDP message pushing device according to claim 14, wherein the SDP message pushing device further comprises:
合并判断单元, 用于当所述緩存单元根据通知策略对第二通知消息进行 緩存之后, 判断是否需要对緩存后的第二通知消息进行合并, 若需要, 则触 发合并单元执行相应操作; 若不需要, 则触发通知消息发送单元执行相应操 作;  a merging judging unit, configured to: after the buffering unit caches the second notification message according to the notification policy, determine whether the second notification message needs to be merged, if necessary, trigger the merging unit to perform a corresponding operation; If necessary, the trigger notification message sending unit performs a corresponding operation;
合并单元, 用于根据所述通知策略对緩存后的第二通知消息进行合并, 并得到新的第二通知消息, 触发通知消息发送单元执行相应操作。  And a merging unit, configured to merge the cached second notification message according to the notification policy, and obtain a new second notification message, and trigger the notification message sending unit to perform a corresponding operation.
16、 根据权利要求 13所述的 SDP消息推送装置, 其特征在于, 所述协 议转换单元包括:  The SDP message pushing apparatus according to claim 13, wherein the protocol conversion unit comprises:
协议类型获取单元, 用于获取第一通知消息的协议类型;  a protocol type obtaining unit, configured to acquire a protocol type of the first notification message;
解封装单元, 用于对所述第一通知消息进行解封装得到消息内容; 查找单元, 用于根据所述第一通知消息的协议类型在协议类型映射关系 中查询对应的统一协议;  a decapsulating unit, configured to decapsulate the first notification message to obtain a message content, and a searching unit, configured to query, according to a protocol type of the first notification message, a corresponding unified protocol in a protocol type mapping relationship;
封装单元, 用于按照所述统一协议对所述消息内容进行封装, 得到第二 通知消息。  And an encapsulating unit, configured to encapsulate the content of the message according to the unified protocol, to obtain a second notification message.
17、 一种即时消息 IM服务器, 其特征在于, 包括:  17. An instant messaging IM server, comprising:
接收单元, 用于接收 SDP 消息推送装置所发送的第二通知消息, 所述 第二通知消息是由 SDP 消息推送装置对由业务平台发送的第一通知消息进 行统一协议转换所得到;  a receiving unit, configured to receive a second notification message sent by the SDP message pushing device, where the second notification message is obtained by the SDP message pushing device performing a unified protocol conversion on the first notification message sent by the service platform;
第一连接单元, 用于当接收单元接收到所述第二通知消息之后, 与用户 终端建立 IM网络连接;  a first connecting unit, configured to establish an IM network connection with the user terminal after the receiving unit receives the second notification message;
第一发送单元,用于当第一连接单元与用户终端建立 IM网络连接之后 , 优先通过所述 IM网络连接向所述用户终端发送所述第二通知消息。  The first sending unit is configured to send the second notification message to the user terminal preferentially through the IM network connection after the first connection unit establishes an IM network connection with the user terminal.
18、 根据权利要求 17所述的 IM服务器, 其特征在于, 所述 IM服务器 还包括: 发送判断单元, 用于判断通过所述 IM网络连接发送第二通知消息是否 失败, 若是, 则触发第二连接单元或第三发送单元执行相应操作; The IM server according to claim 17, wherein the IM server further comprises: a sending determining unit, configured to determine whether the sending of the second notification message by using the IM network connection fails, and if yes, triggering the second connecting unit or the third sending unit to perform a corresponding operation;
第二连接单元, 用于与用户终端建立传输控制协议 TCP连接; 第二发送单元, 用于通过所述 TCP连接向所述用户终端发送第二通知 消息;  a second connection unit, configured to establish a transmission control protocol TCP connection with the user terminal, and a second sending unit, configured to send a second notification message to the user terminal by using the TCP connection;
第三发送单元, 用于直接以短消息的方式向所述用户终端发送第二通知 消息。  And a third sending unit, configured to send the second notification message to the user terminal directly in a short message manner.
19、根据权利要求 18所述的 IM服务器, 其特征在于, 所述第二连接单 元包括:  The IM server according to claim 18, wherein the second connecting unit comprises:
记录单元, 用于在第一连接单元与用户终端建立 IM网络连接之后, 记 录用户终端的 IP状态是否可用;  a recording unit, configured to record, after the first connection unit establishes an IM network connection with the user terminal, whether the IP status of the user terminal is available;
TCP计数控制单元, 用于在第二连接单元与用户终端建立 TCP连接之 前, 对 TCP计数器进行清零操作;  a TCP count control unit, configured to perform a clear operation on the TCP counter before the second connection unit establishes a TCP connection with the user terminal;
TCP计数单元, 用于在建立 TCP连接不成功时, 计数器加一; 状态判断单元, 用于在第二连接单元与用户终端建立 TCP 连接之前, 判断所述用户终端的 IP状态是否可用, 若不可用, 则触发第三发送单元执 行相应操作, 若可用, 则触发第二连接单元执行相应操作;  a TCP counting unit, configured to: when the TCP connection is unsuccessful, the counter is incremented by one; the state determining unit is configured to determine whether the IP state of the user terminal is available before the second connecting unit establishes a TCP connection with the user terminal, if not If yes, triggering the third sending unit to perform a corresponding operation, and if available, triggering the second connecting unit to perform a corresponding operation;
连接判断单元, 用于判断建立 TCP连接是否成功, 若成功, 则触发第 二发送单元执行相应操作, 若不成功, 则触发数值判断单元和 TCP计数单 元执行相应操作;  The connection determining unit is configured to determine whether the establishment of the TCP connection is successful. If successful, the second sending unit is triggered to perform a corresponding operation. If not, the trigger value determining unit and the TCP counting unit perform corresponding operations;
数值判断单元, 用于判断 TCP计数器是否达到预置数值, 若达到, 则 触发第三发送单元执行相应操作 , 并触发记录单元记录所述用户终端的 IP 状态为不可用, 若未达到, 则触发第二连接单元执行相应操作。  a value judging unit, configured to determine whether the TCP counter reaches a preset value, if yes, triggering the third sending unit to perform a corresponding operation, and triggering the recording unit to record that the IP status of the user terminal is unavailable, if not, triggering The second connection unit performs a corresponding operation.
20、 一种 SDP消息推送系统, 其特征在于, 包括:  20. An SDP message pushing system, comprising:
SDP消息推送装置, 用于获取业务平台发送的第一通知消息, 对所述第 一通知消息进行统一协议转换, 得到协议统一的第二通知消息, 通过 IM服 务器向用户终端发送所述第二通知消息;  The SDP message pushing device is configured to obtain a first notification message sent by the service platform, perform a unified protocol conversion on the first notification message, and obtain a second notification message that is unified by the protocol, and send the second notification to the user terminal by using the IM server. Message
IM服务器, 用于接收 SDP消息推送装置所发送的第二通知消息, 与用 户终端建立 IM网络连接, 优先通过所述 IM网络连接向所述用户终端发送 所述第二通知消息,判断通过所述 IM网络连接发送第二通知消息是否失败, 若是, 则与用户终端建立传输控制协议 TCP连接并通过所述 TCP连接向所 述用户终端发送第二通知消息, 或直接以短消息的方式向所述用户终端发送 第二通知消息。 An IM server, configured to receive a second notification message sent by the SDP message pushing device, establish an IM network connection with the user terminal, and send the second notification message to the user terminal preferentially through the IM network connection, and determine that the Whether the second network notification of the IM network connection fails to be sent, If yes, a transmission control protocol TCP connection is established with the user terminal, and the second notification message is sent to the user terminal through the TCP connection, or the second notification message is directly sent to the user terminal in a short message manner.
PCT/CN2011/074739 2010-09-02 2011-05-27 Message pushing method of service delivery platform, relevant device and system WO2011137830A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010273420.9A CN102143444B (en) 2010-09-02 2010-09-02 Method, relevant equipment and system for pushing service delivery platform message
CN201010273420.9 2010-09-02

Publications (1)

Publication Number Publication Date
WO2011137830A1 true WO2011137830A1 (en) 2011-11-10

Family

ID=44410613

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074739 WO2011137830A1 (en) 2010-09-02 2011-05-27 Message pushing method of service delivery platform, relevant device and system

Country Status (2)

Country Link
CN (1) CN102143444B (en)
WO (1) WO2011137830A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539510A (en) * 2014-12-02 2015-04-22 百纳(武汉)信息技术有限公司 Multi-protocol-based information pushing system and method
CN108390917A (en) * 2018-01-25 2018-08-10 珠海金山网络游戏科技有限公司 Intelligence sends message approach and device

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200146B (en) * 2012-01-04 2016-05-25 中国移动通信集团安徽有限公司 The method of data synchronization of terminal and server and device
CN103117915B (en) * 2013-01-15 2015-12-23 中国联合网络通信集团有限公司 The method and apparatus that a kind of message sends
CN104427551A (en) * 2013-08-22 2015-03-18 中兴通讯股份有限公司 A business message transmitting method and apparatus
CN103634409B (en) * 2013-12-12 2017-08-04 中国联合网络通信集团有限公司 Realize that mobile Internet applies always online method and system
CN104754018A (en) * 2013-12-31 2015-07-01 上海博泰悦臻网络技术服务有限公司 Message transmission method, device and system
CN104506414B (en) * 2014-12-17 2017-10-13 北京邮电大学 A kind of system and method that roundupization application is realized based on instant message pattern
CN105072181A (en) * 2015-08-07 2015-11-18 北京思特奇信息技术股份有限公司 Message data distribution system and method based on notice dispatching center
CN106658440B (en) * 2015-10-30 2020-10-23 华为技术有限公司 Message sending method, related device and system
CN105516937B (en) * 2015-11-27 2020-02-07 南威软件股份有限公司 Remote control method based on Android mobile phone system after mobile phone is lost
CN105491056A (en) * 2015-12-25 2016-04-13 深圳市金立通信设备有限公司 Information pushing method and terminal
CN105635996A (en) * 2015-12-29 2016-06-01 深圳市瑞铭无限科技有限公司 Mobile phone short message receiving method of intelligent wearable equipment and server thereof
CN107515885B (en) * 2016-06-17 2021-08-24 百度在线网络技术(北京)有限公司 Information pushing method and device
CN106549937B (en) * 2016-10-09 2020-03-17 武汉斗鱼网络科技有限公司 Unified access method and system suitable for different pushing SDKs
CN109120502B (en) * 2017-06-26 2022-05-20 中兴通讯股份有限公司 Communication method, device, system and storage medium for multi-service convergence platform
CN108156069A (en) * 2017-12-26 2018-06-12 中兴通讯股份有限公司 A kind of integration message system and message treatment method
CN109788070A (en) * 2019-02-28 2019-05-21 深圳点猫科技有限公司 A kind of websocket disconnection reconnecting method and device
CN113873449B (en) * 2021-09-15 2022-09-20 北京仁科互动网络技术有限公司 Short message sending method, cloud service system, electronic device and storage medium
CN113992352A (en) * 2021-09-27 2022-01-28 青岛海尔科技有限公司 Message pushing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212719A (en) * 2006-12-31 2008-07-02 华为技术有限公司 Method and system for implementing converged message service in radio communication network
CN101272544A (en) * 2008-05-05 2008-09-24 中兴通讯股份有限公司 Method and system for implementing amalgamation of short message and instant message
US20090187919A1 (en) * 2008-01-23 2009-07-23 Oracle International Corporation Service oriented architecture-based scim platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212719A (en) * 2006-12-31 2008-07-02 华为技术有限公司 Method and system for implementing converged message service in radio communication network
US20090187919A1 (en) * 2008-01-23 2009-07-23 Oracle International Corporation Service oriented architecture-based scim platform
CN101272544A (en) * 2008-05-05 2008-09-24 中兴通讯股份有限公司 Method and system for implementing amalgamation of short message and instant message

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539510A (en) * 2014-12-02 2015-04-22 百纳(武汉)信息技术有限公司 Multi-protocol-based information pushing system and method
CN108390917A (en) * 2018-01-25 2018-08-10 珠海金山网络游戏科技有限公司 Intelligence sends message approach and device
CN108390917B (en) * 2018-01-25 2021-02-02 珠海金山网络游戏科技有限公司 Intelligent message sending method and device

Also Published As

Publication number Publication date
CN102143444A (en) 2011-08-03
CN102143444B (en) 2014-01-01

Similar Documents

Publication Publication Date Title
WO2011137830A1 (en) Message pushing method of service delivery platform, relevant device and system
US9800680B2 (en) File transfer system, device and method
KR100677497B1 (en) Duplicated notification processing method in a terminal
EP2063590B1 (en) A method and system for transmitting email and a push mail server
US7711782B2 (en) Event notification method in wireless communications system
KR101524313B1 (en) METHOD FOR A REQUEST AND RESPONSE OF AN INSTANT MESSAGE DISPOSITION NOTIFICATION IN A CONVERGED-IP message SERVICE AND SYSTEM THEREOF
WO2018214865A1 (en) Processing method for message acknowledgement, related apparatus, storage medium and processor
WO2007041913A1 (en) A method for processing a deferred message
EP1932074A1 (en) Group communications
WO2008043261A1 (en) Convergent message system
US20080244023A1 (en) Methods and systems for performing server-based mobile chat
WO2007033549A1 (en) An offline message transmission method
JP5753316B2 (en) Interface between RESTful web service and packet-switched network for text messaging
WO2007056928A1 (en) Adapting method and system for mobile mail terminal
EP2160051A1 (en) Methods and devices for messaging
WO2009074064A1 (en) Method and system for sending multimedia message and multimedia message center
WO2007025432A1 (en) A method for realizing information transfer service, the system and the terminal thereof
WO2011160378A1 (en) Method and apparatus for processing call failure
WO2007003101A1 (en) A method, apparatus and system for saving an instant message
US10097593B2 (en) Method and system for universal chat gateways
US10063648B2 (en) Relaying mobile communications
US20120011260A1 (en) Method and system for transmitting large message mode converged IP messaging
WO2010037281A1 (en) Short message value-added service processing method, device and system
WO2008003217A1 (en) A method and appratus and system for transfering short message
WO2008037117A1 (en) System for processing timing task of multimedia message and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11777249

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11777249

Country of ref document: EP

Kind code of ref document: A1