WO2017084445A1 - 一种网管系统中WebSocket推送告警信息的方法及系统 - Google Patents

一种网管系统中WebSocket推送告警信息的方法及系统 Download PDF

Info

Publication number
WO2017084445A1
WO2017084445A1 PCT/CN2016/101365 CN2016101365W WO2017084445A1 WO 2017084445 A1 WO2017084445 A1 WO 2017084445A1 CN 2016101365 W CN2016101365 W CN 2016101365W WO 2017084445 A1 WO2017084445 A1 WO 2017084445A1
Authority
WO
WIPO (PCT)
Prior art keywords
time slice
current time
window
alarm information
websocket
Prior art date
Application number
PCT/CN2016/101365
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 WO2017084445A1 publication Critical patent/WO2017084445A1/zh

Links

Images

Classifications

    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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

  • the present invention relates to the technical field of network communication, and in particular, to a method and system for pushing information of a WebSocket in a network management system.
  • HTML5 defines the WebSocket protocol, which implements full-duplex communication between the browser and the server, which can save server resources and bandwidth and achieve real-time communication.
  • WebSocket can be used to push alarm information to the browser client in real time in the network management system.
  • the general network management system uses WebSocket to push information.
  • the network management server receives the alarm information reported by a device, and sends the alarm information to each client through WebSocket.
  • the client receives the WebSocket from the network management server. After the message, parse the message and refresh the page.
  • the network management server will continuously send a message to the client, and the client will continuously parse the message and refresh the page. This puts a burden on the server/browser client while increasing network throughput.
  • the object of the present invention is to provide a method and system for pushing information of WebSockets in a network management system.
  • the network management server caches alarm information that needs to be sent, and monitors the need to push in a unit time slice.
  • the number of alarms is dynamically adjusted to the size of the time slice window of the WebSocket push alarm information.
  • the alarm information in the time slice window is combined into an alarm message and sent to the client. This ensures the real-time performance of the alarm message and reduces the network. Throughput.
  • the present invention provides a method for pushing information of WebSockets in a network management system, including the following steps: setting a unit time slice and a maximum time slice of a WebSocket push alarm information;
  • the time slice window caches the alarm information reported by the device received by the current time slice window network management server, and merges the cached alarm information into one piece of information and pushes it to the client through the WebSocket at the end of the current time slice window; monitoring the current time
  • the number of alarm information pushed by the slice window, the number of alarm information pushed by the unit time slice is calculated; if the number of alarm information pushed by the unit time slice is less than the lower limit of the preset threshold, the size of the current time slice window is reduced; If the number of alarm information pushed by the unit time slice is greater than the upper limit of the preset threshold, the size of the current time slice window is increased; if the number of alarm information pushed by the unit time slice is between the preset lower limit and the upper limit of the preset threshold
  • the current time slice window when the size of the current time slice window is reduced, the current time slice window is reduced by one unit time slice.
  • the unit time slice when the size of the current time slice window is reduced, if the reduced current time slice window is less than or equal to the unit time slice, the unit time slice is used as the current time slice window.
  • the current time slice window when the size of the current time slice window is increased, the current time slice window is increased by one unit time slice.
  • the maximum time slice is taken as the current time slice window.
  • the present invention further provides a system for pushing information of WebSockets in a network management system, which is characterized by comprising: a setting module, a cache pushing module, a monitoring computing module, and an adjusting module;
  • the setting module is configured to set a size of a unit time slice and a maximum time slice of the WebSocket push alarm information
  • the cache push module is configured to cache the alarm information reported by the device received by the current time slice window network management server by using the unit time slice as the current time slice window, and merge the cached alarm information when the current time slice window ends. Push a message to the client via WebSocket;
  • the monitoring calculation module is configured to monitor the number of alarm information pushed by the current time slice window, and calculate the number of alarm information pushed by the unit time slice;
  • the adjusting module is configured to reduce the size of the current time slice window when the number of the alarm information pushed by the unit time slice is less than the preset lower limit; when the number of the alarm information pushed by the unit time slice is greater than the upper limit of the preset threshold The size of the current time slice window is increased; the number of alarm information pushed by the unit time slice is between the preset lower threshold and the upper limit of the preset threshold, and the size of the current time slice window is kept unchanged.
  • the current time slice window when the size of the current time slice window is reduced, the current time slice window is reduced by one single The size of the bit time slice.
  • the unit time slice when the size of the current time slice window is reduced, if the reduced current time slice window is less than or equal to the unit time slice, the unit time slice is used as the current time slice window.
  • the current time slice window when the size of the current time slice window is increased, the current time slice window is increased by one unit time slice.
  • the maximum time slice is taken as the current time slice window.
  • the method and system for pushing the alarm information by the WebSocket in the network management system of the present invention have the following beneficial effects:
  • FIG. 1 is a schematic diagram of a WebSocket push alarm information in a network management system in the prior art
  • FIG. 2 is a flow chart showing a method for pushing email information of WebSocket in the network management system of the present invention
  • FIG. 3 is a schematic diagram of WebSocket push alarm information in a network management system according to the present invention.
  • FIG. 4 is a schematic structural diagram of a system for pushing information of WebSockets in a network management system according to the present invention.
  • the method and system for pushing the alarm information by the WebSocket in the network management system of the present invention caches the alarm information that needs to be pushed, and combines the alarm information in the time slice window and sends the alarm information together to the client; and simultaneously monitors the alarm message pushed in the unit time slice. If the number of alarm messages in the unit time slice exceeds the preset threshold, the size of the time slice window is increased; if the number of alarm information in the unit time slice is less than the preset threshold, the size of the time slice window is reduced.
  • the method for pushing the alarm information by the WebSocket in the network management system of the present invention includes the following steps:
  • Step S1 setting a unit time slice and a maximum time slice size of the WebSocket push alarm information.
  • the unit time slice is the minimum time interval required for WebSocket to push alarm information.
  • the maximum time slice is the maximum time interval defined by the WebSocket push alarm information. Set the unit time slice to T0 and the maximum time slice to TP. Preferably, the maximum time slice is an integer multiple of a unit time slice.
  • Step S2 The unit time slice is used as the current time slice window, and the alarm information reported by the device received by the current time slice window network management server is cached, and the cached alarm information is merged into one piece of information when the current time slice window ends. WebSocket is pushed to the client.
  • the network management server performs a push for each of the received alarm information.
  • the alarm information received by the current time slice window is first cached on the network management server. Set the current time slice window to TK.
  • Step S3 Monitor the number of alarm information pushed by the current time slice window, and calculate the number of alarm information pushed by the unit time slice.
  • the number of alarm information pushed by the current time slice window is m
  • Step S4 If the number of the alarm information pushed by the unit time slice is less than the preset threshold lower limit, the size of the current time slice window is reduced; if the number of the alarm information pushed by the unit time slice is greater than the upper limit of the preset threshold, the increase is performed.
  • the current time slice window is reduced by one unit time slice. More preferably, if the reduced current time slice window is less than or equal to a unit time slice, the unit time slice is taken as the current time slice window.
  • the current time slice window is increased by one unit time slice. More preferably, if the increased current time slice window is greater than or equal to the maximum time slice, the maximum time slice is taken as the current time slice window.
  • the alarm information 1 is sent in the T1 time slice window, and the alarm information 2 and 3 are sent in the T2 time slice window, and the alarm information 4 is sent.
  • 5, 6, and 7 are sent in the T3 time slice window, and so on, and the alarm information m is sent out in the Tm time slice window.
  • the system for pushing the alarm information of the WebSocket in the network management system of the present invention includes a setting module 1, a cache pushing module 2, a monitoring computing module 3, and an adjusting module 4.
  • the setting module 1 is used to set the size of the unit time slice and the maximum time slice of the WebSocket push alarm information.
  • the unit time slice is the minimum time interval required for WebSocket to push alarm information.
  • the maximum time slice is the maximum time interval defined by the WebSocket push alarm information. Set the unit time slice to T0 and the maximum time slice to TP. Preferably, the maximum time slice is an integer multiple of a unit time slice.
  • the cache push module 2 is connected to the setting module 1 and is configured to use the unit time slice as the current time slice window to cache the alarm information reported by the device received by the current time slice window network management server, and at the end of the current time slice window, The cached alarm information is merged into one piece of information and pushed to the client through WebSocket.
  • the network management server performs a push for each of the received alarm information.
  • the alarm information received by the current time slice window is first cached on the network management server. Set the current time slice window to TK.
  • the monitoring calculation module 3 is connected to the cache push module 2, and is configured to monitor the number of alarm information pushed by the current time slice window, and calculate the number of alarm information pushed by the unit time slice.
  • the number of alarm information pushed by the current time slice window is m
  • the adjustment module 4 is connected to the setting module 1 and the monitoring calculation module 3, and is configured to reduce the size of the current time slice window when the number of alarm information pushed by the unit time slice is less than the lower limit of the preset time limit; When the number of alarms is greater than the upper threshold, the size of the current time slice window is increased. The number of alarms pushed in the unit time slice is between the preset threshold lower limit and the preset upper threshold, and the current time slice window is maintained. The size does not change.
  • the current time slice window is reduced by one unit time slice. More preferably, if the reduced current time slice window is less than or equal to a unit time slice, the unit time slice is taken as the current time slice window.
  • the current time slice window is increased by one unit time slice. More preferably, if the increased current time slice window is greater than or equal to the maximum time slice, the maximum time slice is taken as the current time slice window.
  • the method and system for pushing the alarm information by the WebSocket in the network management system of the present invention increases the current time slice window pushed in the case where the amount of alarm information pushed by the unit time slice is relatively large; and compares the amount of the push information in the unit time slice In a small case, the current time slice window is pushed smaller; multiple alarm information is combined into one message and pushed through WebSocket, which reduces the communication pressure of the server/client and ensures the real-time performance of the alarm message push. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种网管系统中WebSocket推送告警信息的方法及系统,包括设置WebSocket推送告警信息的单位时间片和最大时间片的大小;将单位时间片作为当前时间片窗口,对当前时间片窗口网管服务器接收到的设备上报的告警信息进行缓存,并在当前时间片窗口结束时,将缓存的告警信息合并为一条信息通过WebSocket推送至客户端;监测当前时间片窗口所推送的告警信息的数目,计算单位时间片所推送的告警信息的数目;根据单位时间片所推送的告警信息的数目的大小实时调整当前时间片窗口的大小。本发明的网管系统中WebSocket推送告警信息的方法及系统减少了服务器/客户端的通信压力,保证了告警消息推送的实时性。

Description

一种网管系统中WebSocket推送告警信息的方法及系统
本申请要求2015年11月18日提交的申请号为:201510797303.5、发明名称为“一种网管系统中WebSocket推送告警信息的方法及系统”的中国专利申请的优先权,其全部内容合并在此。
技术领域
本发明涉及网络通信的技术领域,特别是涉及一种网管系统中WebSocket推送告警信息的方法及系统。
背景技术
在浏览器中通过http仅能实现单向的通信,comet可以一定程度上模拟双向通信,但效率较低,并需要服务器有较好的支持。flash中的socket和xmlsocket可以实现真正的双向通信,通过flex ajax bridge,可以在javascript中使用这两项功能。面对这种状况,HTML5定义了WebSocket协议,其实现了浏览器与服务器全双工通信,从而能够更好的节省服务器资源和带宽并达到实时通讯。
WebSocket作为HTML5引入的web应用的双工通信协议,可以用于网管系统中实时向浏览器客户端推送告警信息。如图1所示,一般网管系统中用WebSocket推送信息的做法是,网管服务器接收到一条设备上报的告警信息,即将告警信息通过WebSocket推送到各个客户端;客户端接收到网管服务器发来的WebSocket消息后,解析消息,刷新页面。
然而,在某个时间段告警消息量比较大的情况下,网管服务器会不停的向客户端发送消息,客户端会不停地解析消息,刷新页面。这会给服务器/浏览器客户端带来负担,同时增加了网络吞吐量。
发明内容
鉴于以上所述现有技术的缺点,本发明的目的在于提供一种网管系统中WebSocket推送告警信息的方法及系统,网管服务器对需要发送的告警信息进行缓存,通过监测单位时间片中需要推送的告警信息数目,动态调整WebSocket推送告警信息的时间片窗口的大小,将时间片窗口内的告警信息合并为一条告警消息发送至客户端,从而既能保证告警消息推送的实时性,又能减少网络吞吐量。
为实现上述目的及其他相关目的,本发明提供一种网管系统中WebSocket推送告警信息的方法,包括以下步骤:设置WebSocket推送告警信息的单位时间片和最大时间片的大小;将单位时间片作为当前时间片窗口,对当前时间片窗口网管服务器接收到的设备上报的告警信息进行缓存,并在当前时间片窗口结束时,将缓存的告警信息合并为一条信息通过WebSocket推送至客户端;监测当前时间片窗口所推送的告警信息的数目,计算单位时间片所推送的告警信息的数目;若单位时间片所推送的告警信息的数目小于预设阈值下限,则减小当前时间片窗口的大小;若单位时间片所推送的告警信息的数目大于预设阈值上限,则增大当前时间片窗口的大小;若单位时间片所推送的告警信息的数目介于预设阈值下限和预设阈值上限之间,则保持当前时间片窗口的大小不变。
于本发明的一实施例中,减小当前时间片窗口的大小时,将当前时间片窗口减少一个单位时间片的大小。
于本发明的一实施例中,减小当前时间片窗口的大小时,若减小后的当前时间片窗口小于等于单位时间片,则将单位时间片作为当前时间片窗口。
于本发明的一实施例中,增大当前时间片窗口的大小时,将当前时间片窗口增加一个单位时间片的大小。
于本发明的一实施例中,增大当前时间片窗口的大小时,若增大后的当前时间片窗口大于等于最大时间片,则将最大时间片作为当前时间片窗口。
同时,本发明还提供一种网管系统中WebSocket推送告警信息的系统,其特征在于:包括设置模块、缓存推送模块、监测计算模块和调整模块;
所述设置模块用于设置WebSocket推送告警信息的单位时间片和最大时间片的大小;
所述缓存推送模块用于将单位时间片作为当前时间片窗口,对当前时间片窗口网管服务器接收到的设备上报的告警信息进行缓存,并在当前时间片窗口结束时,将缓存的告警信息合并为一条信息通过WebSocket推送至客户端;
所述监测计算模块用于监测当前时间片窗口所推送的告警信息的数目,计算单位时间片所推送的告警信息的数目;
所述调整模块用于在单位时间片所推送的告警信息的数目小于预设阈值下限时,减小当前时间片窗口的大小;在单位时间片所推送的告警信息的数目大于预设阈值上限时,增大当前时间片窗口的大小;在单位时间片所推送的告警信息的数目介于预设阈值下限和预设阈值上限之间,保持当前时间片窗口的大小不变。
于本发明的一实施例中,减小当前时间片窗口的大小时,将当前时间片窗口减少一个单 位时间片的大小。
于本发明的一实施例中,减小当前时间片窗口的大小时,若减小后的当前时间片窗口小于等于单位时间片,则将单位时间片作为当前时间片窗口。
于本发明的一实施例中,增大当前时间片窗口的大小时,将当前时间片窗口增加一个单位时间片的大小。
于本发明的一实施例中,增大当前时间片窗口的大小时,若增大后的当前时间片窗口大于等于最大时间片,则将最大时间片作为当前时间片窗口。
如上所述,本发明的网管系统中WebSocket推送告警信息的方法及系统,具有以下有益效果:
(1)在单位时间片推送告警信息量比较大的情况下,增加推送的当前时间片窗口;
(2)在单位时间片推送告警信息量比较小的情况下,较小推送的当前时间片窗口;
(3)将多条告警信息合入一条消息中通过WebSocket进行推送,减少了服务器/客户端的通信压力,保证了告警消息推送的实时性。
附图说明
图1显示为现有技术中网管系统中WebSocket推送告警信息的示意图;
图2显示为本发明的网管系统中WebSocket推送告警信息的方法的流程图;
图3显示为本发明中网管系统中WebSocket推送告警信息的示意图;
图4显示为本发明的网管系统中WebSocket推送告警信息的系统的结构示意图。
元件标号说明
1        设置模块
2        缓存推送模块
3        监测计算模块
4        调整模块
具体实施方式
以下通过特定的具体实例说明本发明的实施方式,本领域技术人员可由本说明书所揭露的内容轻易地了解本发明的其他优点与功效。本发明还可以通过另外不同的具体实施方式加以实施或应用,本说明书中的各项细节也可以基于不同观点与应用,在没有背离本发明的精神下进行各种修饰或改变。需说明的是,在不冲突的情况下,以下实施例及实施例中的特征 可以相互组合。
需要说明的是,以下实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图式中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。
本发明的网管系统中WebSocket推送告警信息的方法及系统对需要推送的告警信息进行缓存,并将时间片窗口中的告警信息合并后一起发送到客户端;同时监测单位时间片中推送的告警消息的数目,若单位时间片中告警消息的数目超过预设阈值,则增加时间片窗口的大小;若单位时间片中告警信息的数目小于预设阈值,则减少时间片窗口的大小。
参照图2,本发明的网管系统中WebSocket推送告警信息的方法包括以下步骤:
步骤S1、设置WebSocket推送告警信息的单位时间片和最大时间片的大小。
其中,单位时间片即为WebSocket推送告警信息所需的最小时间间隔。最大时间片即为WebSocket推送告警信息所限定的最大时间间隔。设定单位时间片为T0,最大时间片为TP。优选地,最大时间片为单位时间片的整数倍。
步骤S2、将单位时间片作为当前时间片窗口,对当前时间片窗口网管服务器接收到的设备上报的告警信息进行缓存,并在当前时间片窗口结束时,将缓存的告警信息合并为一条信息通过WebSocket推送至客户端。
与现有技术中,网管服务器针对接收到的每条告警信息进行一次推送不同,本发明中首先将当前时间片窗口接收到的告警信息在网管服务器上缓存。设当前时间片窗口为TK。
步骤S3、监测当前时间片窗口所推送的告警信息的数目,计算单位时间片所推送的告警信息的数目。
具体地,设当前时间片窗口所推送的告警信息的数目为m,则单位时间片所推送的告警信息的数目n=m*T0/TK。
步骤S4、若单位时间片所推送的告警信息的数目小于预设阈值下限,则减小当前时间片窗口的大小;若单位时间片所推送的告警信息的数目大于预设阈值上限,则增大当前时间片窗口的大小;若单位时间片所推送的告警信息的数目介于预设阈值下限和预设阈值上限之间,则保持当前时间片窗口的大小不变。
优选地,减小当前时间片窗口的大小时,将当前时间片窗口减少一个单位时间片的大小。更优选地,若减小后的当前时间片窗口小于等于单位时间片,则将单位时间片作为当前时间片窗口。
优选地,增大当前时间片窗口的大小时,将当前时间片窗口增加一个单位时间片的大小。更优选地,若增大后的当前时间片窗口大于等于最大时间片,则将最大时间片作为当前时间片窗口。
如图3所示,当采用本发明的网管系统中WebSocket推送告警信息的方法后,将告警信息1在T1时间片窗口发出,将告警信息2和3在T2时间片窗口发出,将告警信息4、5、6和7在T3时间片窗口发出,以此类推,将告警信息m在Tm时间片窗口发出。通过这样的告警信息推送方法,能够既能保证告警消息推送的实时性,又能减少网络吞吐量。
参照图4,本发明的网管系统中WebSocket推送告警信息的系统包括设置模块1、缓存推送模块2、监测计算模块3和调整模块4。
设置模块1用于设置WebSocket推送告警信息的单位时间片和最大时间片的大小。
其中,单位时间片即为WebSocket推送告警信息所需的最小时间间隔。最大时间片即为WebSocket推送告警信息所限定的最大时间间隔。设定单位时间片为T0,最大时间片为TP。优选地,最大时间片为单位时间片的整数倍。
缓存推送模块2与设置模块1相连,用于将单位时间片作为当前时间片窗口,对当前时间片窗口网管服务器接收到的设备上报的告警信息进行缓存,并在当前时间片窗口结束时,将缓存的告警信息合并为一条信息通过WebSocket推送至客户端。
与现有技术中,网管服务器针对接收到的每条告警信息进行一次推送不同,本发明中首先将当前时间片窗口接收到的告警信息在网管服务器上缓存。设当前时间片窗口为TK。
监测计算模块3与缓存推送模块2相连,用于监测当前时间片窗口所推送的告警信息的数目,计算单位时间片所推送的告警信息的数目。
具体地,设当前时间片窗口所推送的告警信息的数目为m,则单位时间片所推送的告警信息的数目n=m*T0/TK。
调整模块4与设置模块1和监测计算模块3相连,用于在单位时间片所推送的告警信息的数目小于预设阈值下限时,减小当前时间片窗口的大小;在单位时间片所推送的告警信息的数目大于预设阈值上限时,增大当前时间片窗口的大小;在单位时间片所推送的告警信息的数目介于预设阈值下限和预设阈值上限之间,保持当前时间片窗口的大小不变。
优选地,减小当前时间片窗口的大小时,将当前时间片窗口减少一个单位时间片的大小。更优选地,若减小后的当前时间片窗口小于等于单位时间片,则将单位时间片作为当前时间片窗口。
优选地,增大当前时间片窗口的大小时,将当前时间片窗口增加一个单位时间片的大小。 更优选地,若增大后的当前时间片窗口大于等于最大时间片,则将最大时间片作为当前时间片窗口。
综上所述,本发明的网管系统中WebSocket推送告警信息的方法及系统在单位时间片推送告警信息量比较大的情况下,增加推送的当前时间片窗口;在单位时间片推送告警信息量比较小的情况下,较小推送的当前时间片窗口;将多条告警信息合入一条消息中通过WebSocket进行推送,减少了服务器/客户端的通信压力,保证了告警消息推送的实时性。所以,本发明有效克服了现有技术中的种种缺点而具高度产业利用价值。
上述实施例仅例示性说明本发明的原理及其功效,而非用于限制本发明。任何熟悉此技术的人士皆可在不违背本发明的精神及范畴下,对上述实施例进行修饰或改变。因此,举凡所属技术领域中具有通常知识者在未脱离本发明所揭示的精神与技术思想下所完成的一切等效修饰或改变,仍应由本发明的权利要求所涵盖。

Claims (10)

  1. 一种网管系统中WebSocket推送告警信息的方法,其特征在于:包括以下步骤:
    设置WebSocket推送告警信息的单位时间片和最大时间片的大小;
    将单位时间片作为当前时间片窗口,对当前时间片窗口网管服务器接收到的设备上报的告警信息进行缓存,并在当前时间片窗口结束时,将缓存的告警信息合并为一条信息通过WebSocket推送至客户端;
    监测当前时间片窗口所推送的告警信息的数目,计算单位时间片所推送的告警信息的数目;
    若单位时间片所推送的告警信息的数目小于预设阈值下限,则减小当前时间片窗口的大小;若单位时间片所推送的告警信息的数目大于预设阈值上限,则增大当前时间片窗口的大小;若单位时间片所推送的告警信息的数目介于预设阈值下限和预设阈值上限之间,则保持当前时间片窗口的大小不变。
  2. 根据权利要求1所述的网管系统中WebSocket推送告警信息的方法,其特征在于:减小当前时间片窗口的大小时,将当前时间片窗口减少一个单位时间片的大小。
  3. 根据权利要求1所述的网管系统中WebSocket推送告警信息的方法,其特征在于:减小当前时间片窗口的大小时,若减小后的当前时间片窗口小于等于单位时间片,则将单位时间片作为当前时间片窗口。
  4. 根据权利要求1所述的网管系统中WebSocket推送告警信息的方法,其特征在于:增大当前时间片窗口的大小时,将当前时间片窗口增加一个单位时间片的大小。
  5. 根据权利要求1所述的网管系统中WebSocket推送告警信息的方法,其特征在于:增大当前时间片窗口的大小时,若增大后的当前时间片窗口大于等于最大时间片,则将最大时间片作为当前时间片窗口。
  6. 一种网管系统中WebSocket推送告警信息的系统,其特征在于:包括设置模块、缓存推送模块、监测计算模块和调整模块;
    所述设置模块用于设置WebSocket推送告警信息的单位时间片和最大时间片的大小;
    所述缓存推送模块用于将单位时间片作为当前时间片窗口,对当前时间片窗口网管服务器接收到的设备上报的告警信息进行缓存,并在当前时间片窗口结束时,将缓存的告警 信息合并为一条信息通过WebSocket推送至客户端;
    所述监测计算模块用于监测当前时间片窗口所推送的告警信息的数目,计算单位时间片所推送的告警信息的数目;
    所述调整模块用于在单位时间片所推送的告警信息的数目小于预设阈值下限时,减小当前时间片窗口的大小;在单位时间片所推送的告警信息的数目大于预设阈值上限时,增大当前时间片窗口的大小;在单位时间片所推送的告警信息的数目介于预设阈值下限和预设阈值上限之间,保持当前时间片窗口的大小不变。
  7. 根据权利要求6所述的网管系统中WebSocket推送告警信息的系统,其特征在于:减小当前时间片窗口的大小时,将当前时间片窗口减少一个单位时间片的大小。
  8. 根据权利要求6所述的网管系统中WebSocket推送告警信息的系统,其特征在于:减小当前时间片窗口的大小时,若减小后的当前时间片窗口小于等于单位时间片,则将单位时间片作为当前时间片窗口。
  9. 根据权利要求6所述的网管系统中WebSocket推送告警信息的系统,其特征在于:增大当前时间片窗口的大小时,将当前时间片窗口增加一个单位时间片的大小。
  10. 根据权利要求6所述的网管系统中WebSocket推送告警信息的系统,其特征在于:增大当前时间片窗口的大小时,若增大后的当前时间片窗口大于等于最大时间片,则将最大时间片作为当前时间片窗口。
PCT/CN2016/101365 2015-11-18 2016-09-30 一种网管系统中WebSocket推送告警信息的方法及系统 WO2017084445A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510797303.5 2015-11-18
CN201510797303.5A CN105262629B (zh) 2015-11-18 2015-11-18 一种网管系统中WebSocket推送告警信息的方法及系统

Publications (1)

Publication Number Publication Date
WO2017084445A1 true WO2017084445A1 (zh) 2017-05-26

Family

ID=55102146

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101365 WO2017084445A1 (zh) 2015-11-18 2016-09-30 一种网管系统中WebSocket推送告警信息的方法及系统

Country Status (2)

Country Link
CN (1) CN105262629B (zh)
WO (1) WO2017084445A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868207A (zh) * 2021-10-09 2021-12-31 北京中水科水电科技开发有限公司 一种信息冗余抖动特征的压缩展示方法及系统
CN114070712A (zh) * 2021-07-14 2022-02-18 北京天元创新科技有限公司 消息不落地的网管告警处理方法及装置
CN115412422A (zh) * 2022-08-08 2022-11-29 浪潮云信息技术股份公司 一种动态窗口调整系统

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262629B (zh) * 2015-11-18 2018-04-06 上海斐讯数据通信技术有限公司 一种网管系统中WebSocket推送告警信息的方法及系统
CN108111326A (zh) * 2016-11-24 2018-06-01 中国移动通信有限公司研究院 一种抑制告警风暴的方法及装置
CN106790428B (zh) * 2016-12-01 2019-12-31 腾讯音乐娱乐(深圳)有限公司 一种数据传输方法及装置
CN107231350B (zh) * 2017-05-24 2020-05-19 北京潘达互娱科技有限公司 一种消息处理方法与装置
CN108881456A (zh) * 2018-06-29 2018-11-23 郑州云海信息技术有限公司 一种数据交互系统、服务端及其数据交互方法及系统
CN109275156B (zh) * 2018-11-28 2021-07-09 成都西加云杉科技有限公司 一种wifi网络告警信息控制方法及系统
CN111294218B (zh) * 2018-12-06 2022-07-26 云智慧(北京)科技有限公司 信息处理方法、装置、系统及存储介质
CN110730206A (zh) * 2019-09-06 2020-01-24 浪潮金融信息技术有限公司 一种应用于新零售平台数据展示的数据服务方案
CN114124646B (zh) * 2022-01-26 2022-06-24 天津七一二移动通信有限公司 一种WebSocket方式的综合网络管理系统及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004008675A2 (en) * 2002-07-12 2004-01-22 Xcellenet, Inc. System and method for managing bandwidth utilization
CN101729567A (zh) * 2009-12-14 2010-06-09 北京神州泰岳软件股份有限公司 基于Socket协议的Web告警监控系统及方法
CN102571739A (zh) * 2011-05-26 2012-07-11 中兴通讯股份有限公司 批量数据的传输方法及装置
CN103259683A (zh) * 2013-05-16 2013-08-21 烽火通信科技股份有限公司 基于HTML5的Web网管系统二级缓存推送方法
CN105262629A (zh) * 2015-11-18 2016-01-20 上海斐讯数据通信技术有限公司 一种网管系统中WebSocket推送告警信息的方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102118275A (zh) * 2009-12-30 2011-07-06 大唐移动通信设备有限公司 一种告警风暴的处理方法及处理装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004008675A2 (en) * 2002-07-12 2004-01-22 Xcellenet, Inc. System and method for managing bandwidth utilization
CN101729567A (zh) * 2009-12-14 2010-06-09 北京神州泰岳软件股份有限公司 基于Socket协议的Web告警监控系统及方法
CN102571739A (zh) * 2011-05-26 2012-07-11 中兴通讯股份有限公司 批量数据的传输方法及装置
CN103259683A (zh) * 2013-05-16 2013-08-21 烽火通信科技股份有限公司 基于HTML5的Web网管系统二级缓存推送方法
CN105262629A (zh) * 2015-11-18 2016-01-20 上海斐讯数据通信技术有限公司 一种网管系统中WebSocket推送告警信息的方法及系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070712A (zh) * 2021-07-14 2022-02-18 北京天元创新科技有限公司 消息不落地的网管告警处理方法及装置
CN114070712B (zh) * 2021-07-14 2024-05-24 北京天元创新科技有限公司 消息不落地的网管告警处理方法及装置
CN113868207A (zh) * 2021-10-09 2021-12-31 北京中水科水电科技开发有限公司 一种信息冗余抖动特征的压缩展示方法及系统
CN115412422A (zh) * 2022-08-08 2022-11-29 浪潮云信息技术股份公司 一种动态窗口调整系统
CN115412422B (zh) * 2022-08-08 2024-02-20 浪潮云信息技术股份公司 一种动态窗口调整系统

Also Published As

Publication number Publication date
CN105262629B (zh) 2018-04-06
CN105262629A (zh) 2016-01-20

Similar Documents

Publication Publication Date Title
WO2017084445A1 (zh) 一种网管系统中WebSocket推送告警信息的方法及系统
US9800691B2 (en) Stream processing using a client-server architecture
GB2575138A8 (en) Big data in process control systems
GB2525832A (en) Scalable flow and congestion control in a network
WO2015004276A3 (en) Adaptive data streaming method with push messages control
FR2916600B1 (fr) Procede et dispositif de transmission de donnees
ITMI20130867A1 (it) Configurazioni ul-dl adattative in una rete eterogenea di tdd
WO2012064856A3 (en) Methods for reducing latency in network connections and systems thereof
RU2620720C2 (ru) Система обработки информации, способ управления, сервер, устройство обработки информации и носитель данных
JP2016525256A (ja) 冗長データアクセスを提供するための方法および装置
WO2012064857A3 (en) Methods for ruducing latency in network connections using automatic redirects and systems thereof
Oku et al. Cache Digests for HTTP/2
CN104168274A (zh) 数据获取请求的处理方法、客户端及服务器
WO2017024976A1 (zh) 实时信息的展现方法和装置
WO2017140103A1 (zh) 差分数据传输的方法、装置及系统
WO2017008492A1 (zh) 一种拥塞控制方法及网络节点
CN104348877B (zh) 一种发送Http请求消息的方法及装置
KR101579525B1 (ko) 웹 서비스 어댑터 및 이를 포함하는 통합 sns 게이트웨이
Teranishi et al. A sensor data stream recovery scheme for event-driven IoT applications
US8930563B2 (en) Scalable and extendable stream processing
Eqbal Alam et al. Derandomized Distributed Multi-resource Allocation with Little Communication Overhead
Momeni Milajerdi et al. A Composite-Metric Based Path Selection Technique for the Tor Anonymity Network
Liu et al. A Multi-Interface Remote Monitoring and Control System Architecture Based on Embedded Server
Amjad Hossain et al. ZePoP: A Distributed Leader Election Protocol using the Delay-based Closeness Centrality for Peer-to-Peer Applications
Sahal et al. Poster: On Evaluating the Impact of Changes in IoT Data Streams Rate over Query Window Configurations

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

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

Country of ref document: EP

Kind code of ref document: A1