WO2017000650A1 - 一种刷新通知的方法和装置 - Google Patents

一种刷新通知的方法和装置 Download PDF

Info

Publication number
WO2017000650A1
WO2017000650A1 PCT/CN2016/080556 CN2016080556W WO2017000650A1 WO 2017000650 A1 WO2017000650 A1 WO 2017000650A1 CN 2016080556 W CN2016080556 W CN 2016080556W WO 2017000650 A1 WO2017000650 A1 WO 2017000650A1
Authority
WO
WIPO (PCT)
Prior art keywords
notification
client terminal
server
identifier
subscription
Prior art date
Application number
PCT/CN2016/080556
Other languages
English (en)
French (fr)
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 WO2017000650A1 publication Critical patent/WO2017000650A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Definitions

  • This document relates to, but is not limited to, optical transport network management techniques, and relates to a method and apparatus for refreshing notifications.
  • the server has many types of notifications to be processed, such as resource notification (including resource creation, modification, deletion notification, etc.), alarm notification (including alarm generation, modification, disappearance notification, etc.).
  • resource notification including resource creation, modification, deletion notification, etc.
  • alarm notification including alarm generation, modification, disappearance notification, etc.
  • the notification of the update related status needs to be sent to the client terminal related to the service for refresh display.
  • the related methods of refreshing notifications generally include:
  • the server sends a notification to the client terminal in a broadcast manner, and the client terminal receives the notification, decapsulates the notified packet header, decodes the decapsulated notification, and determines whether it is self-care according to the type of data change of the decoded notification.
  • the notification corresponding to the service if yes, refresh display according to the decoded notification; if not, discard the decoded notification.
  • the client terminal since the client terminal needs to decode each received notification, and the server broadcasts all the notifications, the number of notifications that the client terminal needs to process is large, and a large number of invalid
  • the notification also occupies the communication channel between the client terminal and the server, which undoubtedly increases the communication pressure between the client terminal and the server.
  • the embodiment of the invention provides a method and device for refreshing notifications, which can reduce the number of notifications processed by the client terminal and reduce the communication pressure between the client terminal and the server.
  • the embodiment of the invention provides a method for refreshing a notification, including:
  • the server After receiving the data change type of the subscription condition and the notification from the client terminal, the server searches for the service identifier corresponding to the subscription condition;
  • the server saves a correspondence between the client terminal identifier, the found service identifier, and the notified data change type
  • the server searches for the data change type of the notification and the client terminal identifier corresponding to the service identifier in the notification in the corresponding relationship;
  • the server encapsulates the packet header to the notification, and sends the encapsulated notification to the client terminal corresponding to the found client terminal identifier.
  • the method further includes:
  • the server allocates a subscription operation identifier to the client terminal, and sends the allocated subscription operation identifier to the client terminal.
  • the correspondence between the server saves the client terminal identifier, the found service identifier, and the notified data change data includes:
  • the server saves a correspondence between the client terminal identifier, the found service identifier, the notified data change type, and the subscription operation identifier.
  • the method further includes:
  • the server encapsulates the packet header for the notification, including:
  • the server encapsulates the found subscription operation identifier in the message header of the notification.
  • the method further includes: when the server receives the data change type of the canceled subscription condition and the canceled notification from the client terminal, the server searches for the service identifier corresponding to the canceled subscription condition And deleting the correspondence between the service identifier corresponding to the canceled subscription condition, the data change type corresponding to the canceled notification, and the client terminal identifier, which are found in the saved relationship.
  • the client terminal identifier includes an internet protocol IP address of the client terminal, or a media access control MAC address.
  • the embodiment of the present invention further provides a method for refreshing a notification, including:
  • the client terminal sends the data change type of the subscription condition and the notification to the server;
  • the client terminal After receiving the notification from the server, the client terminal decapsulates the packet header of the notification, decodes the decapsulated notification, and refreshes according to the decoded notification.
  • the method further includes:
  • the method further includes:
  • the client terminal searches for the subscription condition corresponding to the subscription operation identifier in the packet header obtained by decapsulation in the saved correspondence relationship.
  • the method further includes:
  • the client terminal When the client terminal does not find the subscription condition corresponding to the subscription operation identifier in the packet header obtained by the decapsulation in the saved correspondence, the client terminal discards the decapsulated notification.
  • the method further includes:
  • the client terminal sends a client terminal identifier to the server.
  • the embodiment of the invention further provides a server, which at least includes:
  • a first receiving module configured to receive a data change type of a subscription condition and a notification from the client terminal
  • a search module configured to: after the first receiving module receives the data change type of the subscription condition and the notification from the client terminal, search for the service identifier corresponding to the subscription condition; when the notification needs to be sent, the corresponding relationship Find the type of data change for the notification and the notification The client terminal identifier corresponding to the service identifier;
  • the first sending module is configured to encapsulate the packet header of the notification, and send the encapsulated notification to the client terminal corresponding to the found client terminal identifier;
  • the storage module is configured to save a correspondence between the client terminal identifier, the found service identifier, and the notified data change type.
  • the server further includes:
  • An allocating module configured to receive a notification message, and allocate a subscription operation identifier to the client terminal;
  • the first receiving module is configured to:
  • a data change type of the subscription condition and the notification from the client terminal is received, and a notification message is sent to the distribution module.
  • the searching module is further configured to:
  • the data change type of the notification and the subscription operation identifier corresponding to the service identifier in the notification are searched for in the corresponding relationship.
  • the first sending module is configured to:
  • the storage module is configured to:
  • the correspondence between the client terminal identifier, the found service identifier, the notified data change type, and the subscription operation identifier is saved.
  • the first receiving module is further configured to:
  • the lookup module is further configured to:
  • the storage module is further configured to:
  • the embodiment of the invention further provides a client terminal, which at least includes:
  • a second sending module configured to send a data change type of the subscription condition and the notification to the server
  • the refresh module is configured to, after receiving the notification from the server, decapsulate the notified packet header, decode the decapsulated notification, and refresh according to the decoded notification.
  • the client terminal further includes: a second receiving module, configured to receive a subscription operation identifier from the server, and save a correspondence between the subscription operation identifier and the subscription condition;
  • the refresh module is set to:
  • Decapsulating the packet header of the notification searching for the subscription condition corresponding to the subscription operation identifier in the packet header obtained by decapsulation in the saved correspondence, decoding the decapsulated notification, and refreshing according to the decoded notification .
  • the refresh module is further configured to:
  • the decapsulated notification is discarded.
  • the second sending module is configured to:
  • the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and the method and application for implementing a refresh notification applied by the server side when the computer executable instructions are executed The method of refresh notification on the client terminal side.
  • the technical solution provided by the embodiment of the present invention includes: after receiving the data change type of the subscription condition and the notification from the client terminal, the server searches for the service identifier corresponding to the subscription condition; the server saves the client terminal identifier and finds the Correspondence between the service identifier and the data change type of the notification; when the server needs to send the notification, the server searches for the data change type of the notification and the client terminal identifier corresponding to the service identifier in the notification in the corresponding relationship; the server encapsulates the packet with the notification The header sends the encapsulated notification to the client terminal corresponding to the found client terminal identifier.
  • the server only sends a notification to the client terminal corresponding to the found client terminal identifier, thereby reducing the number of notifications processed by the client terminal and reducing the communication pressure between the client terminal and the server.
  • FIG. 1 is a flowchart of a method for refreshing a notification according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a client terminal according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for refreshing a notification, including:
  • Step 100 The client terminal sends a subscription condition and a data change type of the notification to the server.
  • the subscription condition may be a combination of any attribute of the service, such as the location of the service, the type of the service, the size of the service, and the name of the service.
  • the client terminal may also send the client terminal identifier to the server.
  • the client terminal identifier may be an Internet Protocol (IP) address of the client terminal, or a Media Access Control (MAC) address.
  • IP Internet Protocol
  • MAC Media Access Control
  • the client terminal can send the subscription condition and the data change type of the notification to the server according to its own needs.
  • Step 101 After receiving the data change type of the subscription condition and the notification from the client terminal, the server searches for the service identifier corresponding to the subscription condition.
  • Step 102 The server saves a correspondence between the client terminal identifier, the found service identifier, and the notified data change type.
  • the method saves the correspondence between the client terminal identifier, the found service identifier, and the notified data change data.
  • the method further includes: the server assigning a subscription operation identifier to the client terminal, and transmitting the assigned subscription operation identifier to the client terminal.
  • the correspondence between the server saves the client terminal identifier, the found service identifier, and the notified data change type includes:
  • the server saves the correspondence between the client terminal identifier, the found service identifier, the notified data change type, and the subscription operation identifier.
  • the server can optionally assign a subscription operation identifier to the client terminal, as long as it can distinguish the subscription conditions sent by different client terminals.
  • step 101 when the server searches for the service identifier corresponding to the subscription condition, the subscription condition matches the attribute of the service corresponding to the service identifier. If the subscription condition matches one of the attributes of the service, the service is the service to be searched.
  • the service identifier corresponding to the subscription condition may be one or multiple.
  • Step 103 When the server needs to send a notification, the server searches for the data change type of the notification and the client terminal identifier corresponding to the service identifier in the notification in the corresponding relationship;
  • the notification contains the attributes of the updated service.
  • step 103 the data change type of the notification in the correspondence relationship and the client terminal identifier corresponding to the service identifier in the notification include:
  • the data change type of the notification and the client terminal identifier and the subscription operation identifier corresponding to the service identifier in the notification are searched for in the correspondence relationship.
  • Step 104 The server encapsulates the packet header to the notification, and sends the encapsulated notification to the client terminal corresponding to the found client terminal identifier.
  • the server encapsulates the packet header into the notification, and the server encapsulates the found subscription operation identifier in the packet header of the notification.
  • the subscription operation identifier may be encapsulated in a new field or a reserved field in the header of the notification.
  • the searched subscription operation identifiers are encapsulated in the notified packet header and sent to the client terminal corresponding to the corresponding client terminal identifier, that is, the notification is notified.
  • the plurality of copies are copied, and a subscription operation identifier corresponding to a client terminal is encapsulated in the header of each notification.
  • the server only sends a notification to the client terminal corresponding to the found client terminal identifier, thereby reducing the number of notifications processed by the client terminal.
  • the step 101 and the step 103 further include: the client terminal receives the subscription operation identifier from the server, and saves the correspondence between the subscription operation identifier and the subscription condition.
  • Step 105 After receiving the notification from the server, the client terminal decapsulates the packet header of the received notification, decodes the decapsulated notification, and refreshes according to the decoded notification.
  • performing refresh according to the decoded notification includes:
  • the service corresponding to the found subscription condition is refreshed according to the decoded notification.
  • the method further includes:
  • the client terminal searches for the subscription condition corresponding to the subscription operation identifier in the packet header obtained by decapsulation in the saved correspondence.
  • the client terminal If the client terminal does not find the subscription condition corresponding to the subscription operation identifier in the packet header obtained by the decapsulation in the saved correspondence, the client terminal discards the decapsulated notification.
  • the server only sends a notification to the client terminal corresponding to the found client terminal identifier, thereby reducing the number of notifications processed by the client terminal and reducing the communication pressure between the client terminal and the server.
  • the method further includes:
  • the client terminal sends the canceled subscription condition and the data change type of the canceled notification to the server; after receiving the canceled subscription condition sent by the client terminal and the data change type of the canceled notification, the server searches for the service identifier corresponding to the canceled subscription condition, and The correspondence between the service identifier found in the correspondence relationship saved by itself, the data change type of the canceled notification, and the client terminal identifier of the canceled subscription condition is deleted.
  • an embodiment of the present invention further provides a server, including at least:
  • a first receiving module configured to receive a data change type of a subscription condition and a notification from the client terminal
  • a search module configured to: after the first receiving module receives the data change type of the subscription condition and the notification from the client terminal, search for the service identifier corresponding to the subscription condition; when the notification needs to be sent, the corresponding relationship Searching for the data change type of the notification and the client terminal identifier corresponding to the service identifier in the notification;
  • the first sending module is configured to encapsulate the packet header of the notification, and send the encapsulated notification to the client terminal corresponding to the found client terminal identifier;
  • the storage module is configured to save a correspondence between the client terminal identifier, the found service identifier, and the notified data change type.
  • the server of the embodiment of the present invention further includes:
  • An allocating module configured to receive a notification message, and allocate a subscription operation identifier to the client terminal;
  • the first receiving module is set to:
  • the data change type of the subscription condition and the notification from the client terminal is received, and a notification message is sent to the distribution module.
  • the search module is set to:
  • the data change type of the notification and the client terminal identifier and the subscription operation identifier corresponding to the service identifier in the notification are searched for in the corresponding relationship.
  • the first sending module is configured to:
  • the client terminal sends the assigned subscription operation identifier to the client terminal; encapsulate the discovered subscription operation identifier In the notified packet header, the encapsulated notification is sent to the client terminal corresponding to the found client terminal identifier.
  • the storage module is configured to:
  • the correspondence between the client terminal identifier, the found service identifier, the notified data change type, and the subscription operation identifier is saved.
  • the first receiving module is further configured to:
  • the lookup module is also set to:
  • the storage module is also set to:
  • the correspondence between the service identifier corresponding to the canceled subscription condition, the data change type of the canceled notification, and the client terminal identifier is deleted in the correspondence relationship saved by itself.
  • the present invention further provides a client terminal, including at least:
  • a second sending module configured to send a data change type of the subscription condition and the notification to the server
  • the refresh module is configured to, after receiving the notification from the server, decapsulate the notified packet header, decode the decapsulated notification, and refresh according to the decoded notification.
  • the client terminal of the embodiment of the present invention further includes:
  • a second receiving module configured to receive a subscription operation identifier from the server, and save a correspondence between the subscription operation identifier and the subscription condition
  • the refreshing module is configured to: decapsulate the notified packet header, and find the subscription condition corresponding to the subscription operation identifier in the decapsulated packet header in the saved correspondence, and perform the decapsulated notification Decoding, refresh according to the decoded notification.
  • the refresh module is further configured to:
  • the decapsulated notification is discarded.
  • the second sending module is configured to:
  • the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores computer executable instructions, and the method and application for implementing a refresh notification applied by the server side when the computer executable instructions are executed The method of refresh notification on the client terminal side.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • the above technical solution reduces the number of notifications processed by the client terminal and reduces the communication pressure between the client terminal and the server.

Abstract

一种刷新通知的方法,包括:服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,查找所述订阅条件对应的业务标识;所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系;所述服务器在需要发送通知时,在所述对应关系中查找所述通知的数据变更类型和所述通知中的业务标识对应的客户终端标识;所述服务器对所述通知封装报文头,将所述封装后的通知发送给查找到的客户终端标识对应的客户终端。通过上述技术方案,服务器只向查找到的客户终端标识对应的客户终端发送通知,从而减少了客户终端处理通知的数量,同时降低了客户终端和服务器之间的通讯压力。

Description

一种刷新通知的方法和装置 技术领域
本文涉及但不限于光传送网络管理技术,涉及一种刷新通知的方法和装置。
背景技术
在光传送网络管理系统中,服务器有许多类型的通知需要处理,如资源通知(包括资源的创建、修改、删除通知等)、告警通知(包括告警的产生、修改、消失通知等)等。每一种通知在更新相关状态后,都需要将更新相关状态的通知发送给与该业务相关的客户终端进行刷新显示。
相关的刷新通知的方法大致包括:
服务器以广播的方式向客户终端发送通知,客户终端接收到通知,对通知的报文头进行解封装,对解封装后的通知进行解码,根据解码后的通知的数据变更类型判断是否是自身关心的业务对应的通知,如果是,则根据解码后的通知进行刷新显示;如果不是,则丢弃解码后的通知。
相关的刷新通知的方法中,由于客户终端需要对每一个接收到的通知进行解码,而服务器对所有的通知均进行广播发送,因此,客户终端需要处理的通知的数量较多,同时大量的无效通知还占用了客户终端和服务器之间的通讯通道,无疑增加了客户终端和服务器之间的通讯压力。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提出了一种刷新通知的方法和装置,能够减少客户终端处理通知的数量,同时降低客户终端和服务器之间的通讯压力。
本发明实施例提出了一种刷新通知的方法,包括:
服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,查找所述订阅条件对应的业务标识;
所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系;
所述服务器在需要发送通知时,在所述对应关系中查找所述通知的数据变更类型和所述通知中的业务标识对应的客户终端标识;
所述服务器对所述通知封装报文头,将所述封装后的通知发送给查找到的客户终端标识对应的客户终端。
可选地,所述服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,在所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更数据之间的对应关系之前,所述方法还包括:
所述服务器为所述客户终端分配订阅操作标识,将分配的订阅操作标识发送给所述客户终端。
可选地,所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更数据之间的对应关系包括:
所述服务器保存客户终端标识、查找到的业务标识、通知的数据变更类型和订阅操作标识之间的对应关系。
可选地,所述服务器在需要发送通知时,所述方法还包括:
在所述对应关系中查找所述通知的数据变更类型和所述通知中的业务标识对应的订阅操作标识。
可选地,所述服务器对所述通知封装报文头包括:
所述服务器将查找到的订阅操作标识封装在所述通知的报文头中。
可选地,所述方法还包括:当所述服务器接收到来自所述客户终端的取消的订阅条件和取消的通知的数据变更类型时,所述服务器查找所述取消的订阅条件对应的业务标识,将自身保存的对应关系中查找到的所述取消的订阅条件对应的业务标识、所述取消的通知对应的数据变更类型和所述客户终端标识之间的对应关系删除。
可选地,所述客户终端标识包括所述客户终端的互联网协议IP地址、或媒体接入控制MAC地址。
本发明实施例还提出了一种刷新通知的方法,包括:
客户终端向服务器发送订阅条件和通知的数据变更类型;
当客户终端接收到来自服务器的通知后,对所述通知的报文头进行解封装,对解封装后的通知进行解码,根据解码后的通知进行刷新。
可选地,所述客户终端向服务器发送订阅条件和通知的数据变更类型后,在所述客户终端接收到来自服务器的通知之前,所述方法还包括:
所述客户终端接收到来自所述服务器的订阅操作标识,并保存所述订阅操作标识和所述订阅条件之间的对应关系;
所述对所述通知的报文头进行解封装后,所述对解封装后的通知进行解码之前,所述方法还包括:
所述客户终端在保存的对应关系中查找解封装得到的报文头中的订阅操作标识对应的订阅条件。
可选地,所述方法还包括:
当所述客户终端在所述保存的对应关系中查找不到所述解封装得到的报文头中的订阅操作标识对应的订阅条件时,所述客户终端丢弃所述解封装后的通知。
可选地,所述客户终端向服务器发送订阅条件和通知的数据变更类型时,所述方法还包括:
所述客户终端向所述服务器发送客户终端标识。
本发明实施例还提出了一种服务器,至少包括:
第一接收模块,设置为接收到来自客户终端的订阅条件和通知的数据变更类型;
查找模块,设置为:在所述第一接收模块接收到来自客户终端的订阅条件和通知的数据变更类型后,查找所述订阅条件对应的业务标识;在需要发送通知时,在所述对应关系中查找所述通知的数据变更类型和所述通知中的 业务标识对应的客户终端标识;
第一发送模块,设置为对所述通知封装报文头,将封装后的通知发送给查找到的客户终端标识对应的客户终端;
存储模块,设置为保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系。
可选地,所述服务器还包括:
分配模块,设置为接收到通知消息,为所述客户终端分配订阅操作标识;
所述第一接收模块是设置为:
接收到来自客户终端的订阅条件和通知的数据变更类型,向所述分配模块发送通知消息。
可选地,所述查找模块还设置为:
在需要发送通知时,在对应关系中查找通知的数据变更类型和通知中的业务标识对应的订阅操作标识。
可选地,所述第一发送模块是设置为:
将分配的订阅操作标识发送给客户终端;将查找到的订阅操作标识封装在通知的报文头中,将封装后的通知发送给查找到的客户终端标识对应的客户终端。
可选地,所述存储模块是设置为:
保存客户终端标识、查找到的业务标识、通知的数据变更类型和订阅操作标识之间的对应关系。
可选地,所述第一接收模块还设置为:
接收到来自所述客户终端的取消的订阅条件和取消的通知的数据变更类型;
所述查找模块还设置为:
查找所述取消的订阅条件对应的业务标识;
所述存储模块还设置为:
将自身保存的对应关系中查找到的所述取消的订阅条件对应的业务标识、所述取消的通知的数据变更类型以及所述客户终端标识之间的对应关系删除。
本发明实施例还提出了一种客户终端,至少包括:
第二发送模块,设置为向服务器发送订阅条件和通知的数据变更类型;
刷新模块,设置为当接收到来自服务器的通知后,对所述通知的报文头进行解封装,对解封装后的通知进行解码,根据解码后的通知进行刷新。
可选地,所述客户终端还包括:第二接收模块,设置为接收到来自服务器的订阅操作标识,并保存订阅操作标识和所述订阅条件之间的对应关系;
所述刷新模块是设置为:
对通知的报文头进行解封装,在保存的对应关系中查找解封装得到的报文头中的订阅操作标识对应的订阅条件,对解封装后的通知进行解码,根据解码后的通知进行刷新。
可选地,所述刷新模块还设置为:
当在保存的对应关系中查找不到解封装得到的报文头中的订阅操作标识对应的订阅条件时,丢弃所述解封装后的通知。
可选地,所述第二发送模块是设置为:
向服务器发送客户终端标识、订阅条件和通知的数据变更类型。
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现应用在服务器侧的刷新通知的方法和应用在客户终端侧的刷新通知的方法。
与相关技术相比,本发明实施例提供的技术方案包括:服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,查找订阅条件对应的业务标识;服务器保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系;服务器在需要发送通知时,在对应关系中查找通知的数据变更类型和通知中的业务标识对应的客户终端标识;服务器对通知封装报文 头,将封装后的通知发送给查找到的客户终端标识对应的客户终端。通过上述技术方案,服务器只向查找到的客户终端标识对应的客户终端发送通知,从而减少了客户终端处理通知的数量,同时降低了客户终端和服务器之间的通讯压力。
在阅读并理解了附图和详细描述后,可以明白其它方面。
附图说明
下面对本发明实施例中的附图进行说明,实施例中的附图是用于对本申请的进一步理解,与说明书一起用于解释本申请,并不构成对本申请保护范围的限制。
图1为本发明实施例的刷新通知的方法的流程图;
图2为本发明实施例的服务器的结构组成示意图;
图3为本发明实施例的客户终端的结构组成示意图。
具体实施方式
下面结合附图对本发明实施例作进一步的描述,并不能用来限制本申请的保护范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的每种方式可以相互组合。
参见图1,本发明实施例提出了一种刷新通知的方法,包括:
步骤100、客户终端向服务器发送订阅条件和通知的数据变更类型。
本步骤中,订阅条件可以是业务的任意属性的组合,例如业务所在的位置、业务类型、业务大小、业务的名称等。
本步骤中,客户终端还可以向服务器发送客户终端标识。
其中,客户终端标识可以是客户终端的互联网协议(IP,Internet Protocol)地址、或媒体接入控制(MAC,Media Access Control)地址等。
本步骤中,客户终端可以根据自身的需求向服务器发送订阅条件和通知的数据变更类型。
步骤101、服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,查找订阅条件对应的业务标识;
步骤102、服务器保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系;
可选地,服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更数据之间的对应关系之前,所述方法还包括:服务器为客户终端分配订阅操作标识,并将分配的订阅操作标识发送给客户终端。
在本实施例中,服务器保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系包括:
服务器保存客户终端标识、查找到的业务标识、通知的数据变更类型和订阅操作标识之间的对应关系。
其中,服务器可以随意为客户终端分配订阅操作标识,只要能够区分不同的客户终端发送的订阅条件就可以。
在步骤101中,服务器查找订阅条件对应的业务标识时,将订阅条件与业务标识对应的业务的属性进行匹配,如果订阅条件与业务的其中一个属性匹配上,则该业务为所要查找的业务。
其中,订阅条件对应的业务标识可能是一个,也可能是多个。
步骤103、服务器在需要发送通知时,在对应关系中查找通知的数据变更类型和通知中的业务标识对应的客户终端标识;
在步骤103中,通知中包含有更新的业务的属性。
在步骤103中,在对应关系中查找通知的数据变更类型和通知中的业务标识对应的客户终端标识包括:
在对应关系中查找通知的数据变更类型和通知中的业务标识对应的客户终端标识和订阅操作标识。
步骤104、服务器对所述通知封装报文头,将封装后的通知发送给查找到的客户终端标识对应的客户终端;
服务器对所述通知封装报文头包括:服务器将查找到的订阅操作标识封装在所述通知的报文头中。
其中,可以将订阅操作标识封装在所述通知的报文头中的新增字段或保留字段。
其中,当查找到的客户终端标识和订阅操作标识有多个时,分别将查找到的订阅操作标识封装在通知的报文头中发送给对应的客户终端标识对应的客户终端,也就是将通知复制成多份,每一份通知的报文头中封装一个客户终端对应的订阅操作标识。
这样,服务器只向查找到的客户终端标识对应的客户终端发送通知,从而减少了客户终端处理通知的数量。
作为可选的步骤,步骤101和步骤103之间还包括:客户终端接收到来自服务器的订阅操作标识,并保存订阅操作标识和订阅条件之间的对应关系。
步骤105、当客户终端接收到来自服务器的通知后,对接收到的通知的报文头进行解封装,对解封装后的通知进行解码,根据解码后的通知进行刷新。
在本实施例中,根据解码后的通知进行刷新包括:
根据解码后的通知对查找到的订阅条件对应的业务进行刷新。
可选地,对所述通知的报文头进行解封装后,在对解封装后的通知进行解码之前,所述方法还包括:
客户终端在保存的对应关系中查找到解封装得到的报文头中的订阅操作标识对应的订阅条件。
如果客户终端在保存的对应关系中查找不到解封装得到的报文头中的订阅操作标识对应的订阅条件,客户终端则丢弃解封装后的通知。
通过本发明实施例的技术方案,服务器只向查找到的客户终端标识对应的客户终端发送通知,从而减少了客户终端处理通知的数量,同时降低了客户终端和服务器之间的通讯压力。
作为可选的步骤,该方法还包括:
客户终端向服务器发送取消的订阅条件和取消的通知的数据变更类型;服务器接收到客户终端发送的取消的订阅条件和取消的通知的数据变更类型后,查找取消的订阅条件对应的业务标识,将自身保存的对应关系中查找到的业务标识、取消的通知的数据变更类型和发送取消的订阅条件的客户终端标识之间的对应关系删除。
参见图2,本发明实施例还提出了一种服务器,至少包括:
第一接收模块,设置为接收到来自客户终端的订阅条件和通知的数据变更类型;
查找模块,设置为:在所述第一接收模块接收到来自客户终端的订阅条件和通知的数据变更类型后,查找所述订阅条件对应的业务标识;在需要发送通知时,在所述对应关系中查找所述通知的数据变更类型和所述通知中的业务标识对应的客户终端标识;
第一发送模块,设置为对所述通知封装报文头,将封装后的通知发送给查找到的客户终端标识对应的客户终端;
存储模块,设置为保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系。
可选地,本发明实施例的服务器还包括:
分配模块,设置为接收到通知消息,为所述客户终端分配订阅操作标识;
第一接收模块是设置为:
接收到来自客户终端的订阅条件和通知的数据变更类型,向分配模块发送通知消息。
本发明实施例的服务器中,查找模块是设置为:
在需要发送通知时,在对应关系中查找通知的数据变更类型和通知中的业务标识对应的客户终端标识和订阅操作标识。
本发明实施例的服务器中,第一发送模块是设置为:
将分配的订阅操作标识发送给客户终端;将查找到的订阅操作标识封装 在通知的报文头中,将封装后的通知发送给查找到的客户终端标识对应的客户终端。
本发明实施例的服务器中,存储模块是设置为:
保存客户终端标识、查找到的业务标识、通知的数据变更类型和订阅操作标识之间的对应关系。
本发明的服务器中,第一接收模块还设置为:
接收到来自客户终端的取消的订阅条件和取消的通知的数据变更类型;
查找模块还设置为:
查找取消的订阅条件对应的业务标识;
存储模块还设置为:
将自身保存的对应关系中查找到所述取消的订阅条件对应的业务标识、所述取消的通知的数据变更类型以及所述客户终端标识之间的对应关系删除。
参见图3,本发明还提出了一种客户终端,至少包括:
第二发送模块,设置为向服务器发送订阅条件和通知的数据变更类型;
刷新模块,设置为当接收到来自服务器的通知后,对所述通知的报文头进行解封装,对解封装后的通知进行解码,根据解码后的通知进行刷新。
可选地,本发明实施例的客户终端还包括:
第二接收模块,设置为接收到来自服务器的订阅操作标识,并保存订阅操作标识和所述订阅条件之间的对应关系;
所述刷新模块是设置为:对通知的报文头进行解封装,在保存的对应关系中查找到解封装得到的报文头中的订阅操作标识对应的订阅条件,对解封装后的通知进行解码,根据解码后的通知进行刷新。
本发明实施例的客户终端中,所述刷新模块还设置为:
当在保存的对应关系中查找不到解封装得到的报文头中的订阅操作标识对应的订阅条件时,丢弃所述解封装后的通知。
本发明实施例的客户终端中,所述第二发送模块是设置为:
向服务器发送客户终端标识,订阅条件和通知的数据变更类型。
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被执行时实现应用在服务器侧的刷新通知的方法和应用在客户终端侧的刷新通知的方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围,均应涵盖在本申请的权利要求范围当中。
工业实用性
上述技术方案减少了客户终端处理通知的数量,降低了客户终端和服务器之间的通讯压力。

Claims (21)

  1. 一种刷新通知的方法,包括:
    服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,查找所述订阅条件对应的业务标识;
    所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系;
    所述服务器在需要发送通知时,在所述对应关系中查找所述通知的数据变更类型和所述通知中的业务标识对应的客户终端标识;
    所述服务器对所述通知封装报文头,将所述封装后的通知发送给查找到的客户终端标识对应的客户终端。
  2. 根据权利要求1所述的方法,所述服务器接收到来自客户终端的订阅条件和通知的数据变更类型后,在所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更数据之间的对应关系之前,所述方法还包括:
    所述服务器为所述客户终端分配订阅操作标识,将分配的订阅操作标识发送给所述客户终端。
  3. 根据权利要求2所述的方法,其中,所述服务器保存客户终端标识、查找到的业务标识和通知的数据变更数据之间的对应关系包括:
    所述服务器保存客户终端标识、查找到的业务标识、通知的数据变更类型和订阅操作标识之间的对应关系。
  4. 根据权利要求2所述的方法,所述服务器在需要发送通知时,所述方法还包括:
    在所述对应关系中查找所述通知的数据变更类型和所述通知中的业务标识对应的订阅操作标识。
  5. 根据权利要求4所述的方法,其中,所述服务器对所述通知封装报文头包括:
    所述服务器将查找到的订阅操作标识封装在所述通知的报文头中。
  6. 根据权利要求1或2所述的方法,所述方法还包括:当所述服务器 接收到来自所述客户终端的取消的订阅条件和取消的通知的数据变更类型时,所述服务器查找所述取消的订阅条件对应的业务标识,将自身保存的对应关系中查找到的所述取消的订阅条件对应的业务标识、所述取消的通知对应的数据变更类型和所述客户终端标识之间的对应关系删除。
  7. 根据权利要求1或2所述的方法,其中,所述客户终端标识包括所述客户终端的互联网协议IP地址、或媒体接入控制MAC地址。
  8. 一种刷新通知的方法,包括:
    客户终端向服务器发送订阅条件和通知的数据变更类型;
    当客户终端接收到来自服务器的通知后,对所述通知的报文头进行解封装,对解封装后的通知进行解码,根据解码后的通知进行刷新。
  9. 根据权利要求8所述的方法,所述客户终端向服务器发送订阅条件和通知的数据变更类型后,在所述客户终端接收到来自服务器的通知之前,所述方法还包括:
    所述客户终端接收到来自所述服务器的订阅操作标识,并保存所述订阅操作标识和所述订阅条件之间的对应关系;
    所述对所述通知的报文头进行解封装后,所述对解封装后的通知进行解码之前,所述方法还包括:
    所述客户终端在保存的对应关系中查找解封装得到的报文头中的订阅操作标识对应的订阅条件。
  10. 根据权利要求9所述的方法,所述方法还包括:
    当所述客户终端在所述保存的对应关系中查找不到所述解封装得到的报文头中的订阅操作标识对应的订阅条件时,所述客户终端丢弃所述解封装后的通知。
  11. 根据权利要求8或9所述的方法,所述客户终端向服务器发送订阅条件和通知的数据变更类型时,所述方法还包括:
    所述客户终端向所述服务器发送客户终端标识。
  12. 一种服务器,包括:
    第一接收模块,设置为接收到来自客户终端的订阅条件和通知的数据变更类型;
    查找模块,设置为:在所述第一接收模块接收到来自客户终端的订阅条件和通知的数据变更类型后,查找所述订阅条件对应的业务标识;在需要发送通知时,在所述对应关系中查找所述通知的数据变更类型和所述通知中的业务标识对应的客户终端标识;
    第一发送模块,设置为对所述通知封装报文头,将封装后的通知发送给查找到的客户终端标识对应的客户终端;
    存储模块,设置为保存客户终端标识、查找到的业务标识和通知的数据变更类型之间的对应关系。
  13. 根据权利要求12所述的服务器,所述服务器还包括:
    分配模块,设置为接收到通知消息,为所述客户终端分配订阅操作标识;
    所述第一接收模块是设置为:
    接收到来自客户终端的订阅条件和通知的数据变更类型,向所述分配模块发送通知消息。
  14. 根据权利要求13所述的服务器,其中,所述查找模块还设置为:
    在需要发送通知时,在对应关系中查找通知的数据变更类型和通知中的业务标识对应的订阅操作标识。
  15. 根据权利要求13所述的服务器,其中,所述第一发送模块是设置为:
    将分配的订阅操作标识发送给客户终端;将查找到的订阅操作标识封装在通知的报文头中,将封装后的通知发送给查找到的客户终端标识对应的客户终端。
  16. 根据权利要求13所述的服务器,其中,所述存储模块是设置为:
    保存客户终端标识、查找到的业务标识、通知的数据变更类型和订阅操作标识之间的对应关系。
  17. 根据权利要求12或13所述的服务器,其中,
    所述第一接收模块还设置为:
    接收到来自所述客户终端的取消的订阅条件和取消的通知的数据变更类型;
    所述查找模块还设置为:
    查找所述取消的订阅条件对应的业务标识;
    所述存储模块还设置为:
    将自身保存的对应关系中查找到的所述取消的订阅条件对应的业务标识、所述取消的通知的数据变更类型以及所述客户终端标识之间的对应关系删除。
  18. 一种客户终端,包括:
    第二发送模块,设置为向服务器发送订阅条件和通知的数据变更类型;
    刷新模块,设置为当接收到来自服务器的通知后,对所述通知的报文头进行解封装,对解封装后的通知进行解码,根据解码后的通知进行刷新。
  19. 根据权利要求18所述的客户终端,所述客户终端还包括:第二接收模块,设置为接收到来自服务器的订阅操作标识,并保存订阅操作标识和所述订阅条件之间的对应关系;
    所述刷新模块是设置为:
    对通知的报文头进行解封装,在保存的对应关系中查找解封装得到的报文头中的订阅操作标识对应的订阅条件,对解封装后的通知进行解码,根据解码后的通知进行刷新。
  20. 根据权利要求19所述的客户终端,其中,所述刷新模块还设置为:
    当在保存的对应关系中查找不到解封装得到的报文头中的订阅操作标识对应的订阅条件时,丢弃所述解封装后的通知。
  21. 根据权利要求18或19所述的客户终端,其中,所述第二发送模块是设置为:
    向服务器发送客户终端标识、订阅条件和通知的数据变更类型。
PCT/CN2016/080556 2015-07-01 2016-04-28 一种刷新通知的方法和装置 WO2017000650A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510379170.X 2015-07-01
CN201510379170.XA CN106331041A (zh) 2015-07-01 2015-07-01 一种刷新通知的方法和装置

Publications (1)

Publication Number Publication Date
WO2017000650A1 true WO2017000650A1 (zh) 2017-01-05

Family

ID=57607691

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080556 WO2017000650A1 (zh) 2015-07-01 2016-04-28 一种刷新通知的方法和装置

Country Status (2)

Country Link
CN (1) CN106331041A (zh)
WO (1) WO2017000650A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920328B (zh) * 2018-06-28 2022-04-19 中国联合网络通信集团有限公司 发现终端应用变更的方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079082A1 (en) * 2009-06-11 2012-03-29 Zte Corporation User Data Convergence Network System and Method for Subscription to Notification
CN103518350A (zh) * 2012-05-14 2014-01-15 华为技术有限公司 群组通信的方法、系统、群组服务器和群组成员设备
CN103618800A (zh) * 2013-12-05 2014-03-05 华为技术有限公司 订阅通知的实现方法和装置
CN103795689A (zh) * 2012-10-29 2014-05-14 中兴通讯股份有限公司 资源订阅方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079082A1 (en) * 2009-06-11 2012-03-29 Zte Corporation User Data Convergence Network System and Method for Subscription to Notification
CN103518350A (zh) * 2012-05-14 2014-01-15 华为技术有限公司 群组通信的方法、系统、群组服务器和群组成员设备
CN103795689A (zh) * 2012-10-29 2014-05-14 中兴通讯股份有限公司 资源订阅方法及装置
CN103618800A (zh) * 2013-12-05 2014-03-05 华为技术有限公司 订阅通知的实现方法和装置

Also Published As

Publication number Publication date
CN106331041A (zh) 2017-01-11

Similar Documents

Publication Publication Date Title
US11283650B2 (en) Method for sending virtual extensible local area network packet, computer device, and computer readable medium
US8086713B2 (en) Determining a subscriber device has failed gracelessly without issuing a DHCP release message and automatically releasing resources reserved for the subscriber device within a broadband network upon determining that another subscriber device requesting the reservation of a network address has the same context information as the failed subscriber device
US20170289033A1 (en) Address cache for tunnel endpoint associated with an overlay network
US20150326524A1 (en) Address resolution in software-defined networks
US20150236871A1 (en) Multicast Processing Method, Apparatus and System
WO2017054526A1 (zh) 一种arp条目生成方法和装置
US9641417B2 (en) Proactive detection of host status in a communications network
US10122548B2 (en) Services execution
TW201526654A (zh) 實現視訊通話的方法及系統
RU2540820C2 (ru) Способ и коммутатор для отправки пакета
US10075410B2 (en) Apparatus and methods for assigning internetwork addresses
CN106982163B (zh) 按需获取路由的方法及网关
EP4142219A1 (en) Message processing method and apparatus, announcement method and apparatus, network bridge node, source device, storage medium, and message processing system
WO2018103400A1 (zh) 无线保真Wi-Fi连接方法及相关产品
US20180039505A1 (en) Preventing flow interruption caused by migration of vm
US11936614B2 (en) Method and apparatus for sending reply packet, computing device, and storage medium
CN104168140A (zh) Vtep异常情况处理方法及装置
US10498836B2 (en) Network based service discovery via unicast messages
WO2019037664A1 (zh) 地址分配
CN114710549B (zh) 一种容器平台中网卡的动态管理方法、系统及业务节点
WO2019011247A1 (zh) Mac地址信息同步方法、设备及存储介质
US20130297825A1 (en) Method, switch, and system for processing a message
WO2017000650A1 (zh) 一种刷新通知的方法和装置
US8260942B2 (en) Cluster view performance
WO2023273957A1 (zh) 算力发布方法、算力更新方法及装置

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: 16817014

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: 16817014

Country of ref document: EP

Kind code of ref document: A1