[go: up one dir, main page]

WO2012100570A1 - Method, system and terminal for managing network traffic data - Google Patents

Method, system and terminal for managing network traffic data Download PDF

Info

Publication number
WO2012100570A1
WO2012100570A1 PCT/CN2011/081286 CN2011081286W WO2012100570A1 WO 2012100570 A1 WO2012100570 A1 WO 2012100570A1 CN 2011081286 W CN2011081286 W CN 2011081286W WO 2012100570 A1 WO2012100570 A1 WO 2012100570A1
Authority
WO
WIPO (PCT)
Prior art keywords
traffic data
terminal
network traffic
update frequency
server
Prior art date
Application number
PCT/CN2011/081286
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 WO2012100570A1 publication Critical patent/WO2012100570A1/en

Links

Classifications

    • 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/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • H04L41/048Network management architectures or arrangements comprising network management agents or mobile agents therefor mobile agents
    • 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/75Indicating network or usage conditions on the user display

Definitions

  • the present invention relates to the field of communications, and in particular, to a method, system, and terminal for managing network traffic data.
  • BACKGROUND OF THE INVENTION Widgets ie, widgets
  • widgets are lightweight web applications developed based on web technologies for customization.
  • Widgets may be applied to many mainstream software, and may become a new carrier for future Internet advertising. However, widgets are in the early stage of development in the mobile Internet field, and many related functions and applications are not perfect.
  • the Internet-based monthly subscription package launched by various operators is actively promoting the deployment of mobile Internet services. For example, the user cares about how much network traffic the terminal has used this month, or how much network traffic remains in the monthly subscription.
  • the control of the terminal network traffic is usually performed by the terminal in real time after the timer generates a preset timing interrupt.
  • the way of hardware interruption depends on the timer, and it is necessary to monitor each data packet received or sent by the terminal, and waste the central processing unit (CPU) resource of the terminal, especially for the embedded terminal.
  • CPU central processing unit
  • the present invention provides a management scheme for network traffic data, so as to at least solve the problem that the terminal uses the hardware interrupt mode to monitor its network traffic data in the related art, resulting in wasted CPU resources.
  • a method of managing network traffic data is provided.
  • the method for managing network traffic data includes: the terminal side sends a query instruction of the network traffic data to the server side by using the widget application, where the query instruction includes a preset update frequency of the traffic data; and the server side receives and parses the query instruction, The network traffic data information corresponding to the terminal side is obtained according to the updated traffic data update frequency, and the obtained network traffic data information is sent to the terminal side.
  • the method further includes: setting a traffic data update frequency in the widget application.
  • the sending, by the terminal side, the query instruction to the server side by using the widget application comprises: the terminal side launching a widget application for counting its network data traffic; and the widget application's widget engine generating the query instruction.
  • the method further includes: the terminal side displaying the received network traffic data information to the user through an operation interface of the widget application.
  • the display refresh frequency of the running interface of the widget application is consistent with the frequency of the traffic data update.
  • the server side obtains network traffic data information corresponding to the terminal side according to the updated traffic data update frequency, and sends the acquired network traffic data information to the terminal side, including: the server side periodically periodically updates the frequency according to the traffic data.
  • the network traffic data information corresponding to the terminal side stored on the server side is read; the server side packs the network traffic data information into a notification message data packet and transmits it to the terminal side through a network transmission protocol.
  • the network transmission protocol includes at least one of the following: a short message service, a PUSH, a session initiation protocol, and a hypertext transfer protocol.
  • the terminal includes: a sending module, configured to send a query instruction of the network traffic data to the server by using the widget application, wherein the query instruction includes a preset traffic data update frequency; and the receiving module is configured to receive, according to the traffic data, the update The network traffic data information corresponding to the terminal acquired by the frequency, wherein the traffic data update frequency is parsed by the server from the received query command from the terminal.
  • the terminal further includes: a display module, configured to display the received network traffic data information to the user through an operation interface of the widget application.
  • a management system of network traffic data is also provided.
  • the management system of the network traffic data includes the above terminal and the server, wherein the server comprises: receiving the analytical decyne, setting the receiving query from the terminal, and parsing the traffic from the query. And a data sending module, configured to send the network traffic data information acquired by the acquiring module to the terminal, and the data sending module is configured to send the network traffic data information corresponding to the terminal according to the update frequency of the traffic data parsed by the receiving parsing module.
  • the method of actively acquiring the network traffic data of the terminal from the server side by using the widget service solves the problem that the terminal uses the hardware interrupt mode to monitor the network traffic data and wastes the CPU resources in the related art, thereby saving system resources and increasing The flexibility of the system improves the user experience.
  • FIG. 1 is a flowchart of a method for managing network traffic data according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram of a terminal according to an embodiment of the present invention
  • FIG. 3 is a diagram of a terminal according to a preferred embodiment of the present invention.
  • 4 is a structural block diagram of a network traffic data management system according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a system for managing network traffic data according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a system according to the present invention.
  • a flow diagram of a method for managing network traffic data BEST MODE FOR CARRYING OUT THE INVENTION
  • BEST MODE FOR CARRYING OUT THE INVENTION BEST MODE FOR CARRYING OUT THE INVENTION
  • the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • a method for managing network traffic data is provided. 1 is a flowchart of a method for managing network traffic data according to an embodiment of the present invention. As shown in FIG.
  • Step S102 A terminal side sends a query instruction of network traffic data to a server side by using a widget application,
  • the query instruction includes a preset traffic data update frequency.
  • Step S104 The server side receives and parses the query command, and obtains network traffic data information corresponding to the terminal side according to the analyzed traffic data update frequency, and acquires the network traffic data. The information is sent to the terminal side.
  • the traffic data update frequency is set in the widget application.
  • the developer (ie, the publisher) of the widget application may set the frequency of the traffic data update frequency before the widget application is released, or set the parameter to be open during development, and the user may be in the After installing the widget application on the terminal, configure it yourself. This will increase the personalization of the system.
  • the terminal side starts a widget application for counting its network data traffic; the widget application's widget engine generates a query instruction.
  • the method can obtain the network traffic data of the terminal stored by the network side (BP, server) by using the widget application, and does not need to collect statistics on the traffic data of the terminal by the terminal side, thereby saving the system resources of the terminal and improving the processing performance of the terminal.
  • the terminal side displays the received network traffic data information to the user through the running interface of the widget application.
  • the widget application can be used to display the network traffic data information of the terminal, which expands the function of the widget application and improves the user experience.
  • the display refresh frequency of the running interface of the widget application is consistent with the frequency of the traffic data update. This method can improve the real-time and accuracy of the system.
  • the server side periodically reads the network traffic data information corresponding to the terminal side stored on the server side according to the time interval of the traffic data update frequency; the server side packages the network traffic data information into the notification message data.
  • the packet is sent to the terminal side through a network transmission protocol.
  • the network transmission protocol may include, but is not limited to: Short Message Service (SMS), PUSH (Push Information or Service Information), Session Initiation Protocol (SIP), Hypertext. Hypertext Transport Protocol (HTTP).
  • SMS Short Message Service
  • PUSH Push Information or Service Information
  • SIP Session Initiation Protocol
  • HTTP Hypertext. Hypertext Transport Protocol
  • the method is simple and practical, and has high operability.
  • the terminal 20 includes: a sending module 22, configured to send a query instruction for sending network traffic data to a server by using a widget application, where the query command includes a pre-command
  • the receiving data module is configured to receive the network traffic data information corresponding to the terminal 20 obtained by the server according to the traffic data update frequency, where the traffic data update frequency is the query received by the server from the terminal 20 Parsed in the instruction.
  • the method for actively acquiring the network traffic data of the terminal 20 from the server side by using the widget service solves the problem that the terminal uses the hardware interrupt mode to monitor the network traffic data and wastes the CPU resources in the related art, thereby saving system resources. , increased system flexibility and improved user experience.
  • 3 is a structural block diagram of a terminal according to a preferred embodiment of the present invention.
  • the obtaining module 424 is coupled to the receive parsing module 422 and configured to parse the traffic data according to the receive parsing module 422.
  • the update frequency acquires the network traffic data information corresponding to the terminal 20; and the data sending module 426 is coupled to the obtaining module 424 and the receiving module 24 of the terminal 20, and is configured to send the network traffic data information acquired by the obtaining module 424 to the terminal 20.
  • the system includes a terminal side and a server side, where the terminal side includes a traffic update setting module 502 and a query request generating module 504.
  • the traffic update setting module 502 is configured to set the update frequency of the network traffic data in the widget management setting item after the user installs the widget application on the terminal side, that is, the widget engine counts the network traffic data size every other time.
  • the query request generating module 504 is configured to generate a query request command for the network traffic data of the terminal by using the widget engine, and the command includes the update frequency data that has been set by the user, and registers with the server side.
  • the data packing module 510 is configured to, after receiving the terminal side query request command on the server side, read the network traffic data size value of the terminal at regular intervals according to the update frequency therein, and package the packet into a notification message data packet according to a fixed format.
  • the statistical result transmission module 512 is configured to send the generated message data packet from the server side to the terminal client in a corresponding network transmission method.
  • the network transmission protocol herein may be one of SMS, PUSH, SIP, or other suitable protocols.
  • the statistics result parsing module 506 is configured to parse the notification message data packet received from the server by the widget engine, thereby obtaining the currently generated network traffic data size value.
  • the traffic display module 508 is configured to display, by the terminal side, the network traffic data to the user through an interface of a specific widget application runtime in the query request generation module.
  • the above modules jointly complete the function of managing network traffic data through the widget application mode, and the terminal side sends a network traffic data query request command to the server side, the command includes the traffic data update frequency actively set by the user, and the server side follows the same update frequency to the terminal.
  • the side feedback network traffic statistics packet, the terminal side parses the received data packet and synchronizes and refreshes the display in the running interface of the widget application.
  • the refresh frequency of the widget running interface is consistent with the user setting update frequency of the traffic update setting module.
  • the network traffic data of each query can be synchronized and displayed in the widget.
  • the network traffic data is managed by the widget application, and the widget service (ie, the widget application) is used for data statistics, and the method of counting and transmitting the number of data packets on the terminal side is discarded, and the server side actively acquires on demand from the server side.
  • the traffic data saves the design and implementation of the user prompt interface, and is flexibly displayed through the widget running form.
  • Embodiment 2 This embodiment provides a method for managing network traffic data by using a widget.
  • the method includes the following steps: Step 1: The user can set the update frequency of the network traffic data according to his preference in the widget management setting menu item. This update frequency indicates how often the widget engine updates the network traffic data value. Step 2: After the specific widget application for displaying the data traffic on the terminal is started on the terminal side, the widget engine on the terminal processes the query request command for generating the network traffic data, and the instruction is provided with the user setting. Good update frequency data, register with the server side, and tell the server side how often the network traffic value value of the machine is fed back.
  • Step 3 After receiving the terminal side query request command, the server side obtains the network traffic data size of the terminal at a fixed time according to the update frequency, and packages the obtained data into a notification message data packet according to a certain format, and prepares transmission.
  • Step 4 The generated message data packet is transmitted from the server side to the terminal side in a corresponding network transmission method.
  • the network transmission protocol may adopt one of SMS, PUSH or SIP, or may be other suitable protocols.
  • Step 5 The terminal side widget engine performs the parsing of the notification message data packet to obtain the currently generated network traffic data size value information.
  • Step 6 The network traffic data value parsed by the terminal side widget engine from the message data packet is transmitted to the widget application that has been started in step 2 by calling the relevant interface provided by the widget engine, and the widget receives the new data. Activate the display refresh of the running interface. This ensures that the refresh frequency of the widget application running interface is the same as the update frequency set by the user in step 1, so that the network traffic data of each query can be displayed synchronously in the widget. It can be seen that, compared with the prior art, the method for managing network traffic data by using the widget in the embodiment does not discard the method of counting and transmitting data on the terminal side, but uses the widget service to perform data statistics, and presses from the server side.
  • FIG. 6 is a schematic flowchart of a method for managing network traffic data according to Embodiment 3 of the present invention. As shown in FIG. 6, the method may include the following steps: Step S602: A user sets a present according to his or her preferences in a widget management setting menu item. The update frequency of the terminal network traffic data. This update frequency indicates how long the interval is, the widget engine performs an update of the network traffic data value.
  • Step S604 starting a specific widget application for statistically displaying online data traffic on the terminal side, the widget application is a specially developed widget application, and the runtime interface is to display the network traffic data generated by the local machine or the local month. The remaining monthly package flow data that can be used.
  • Step S606 the widget engine on the terminal processes the query request instruction for generating the network traffic data, and the data information attached to the command must contain the value of the interval that the user has set in step S602.
  • the query request command may perform communication registration to the server side through a protocol such as HTTP, and notify the server side to perform an operation of feeding back the network traffic data size to the terminal every interval interval.
  • Step S610 after receiving the terminal side query request instruction, the server side parses the instruction, and records the value of the interval therein, and then completes the network traffic data size statistics of the terminal that obtains the initiation request every interval interval of the interval. operating.
  • Step S612 the server side generates the notification message data packet according to the PUSH message body format specified by the WAP PUSH protocol.
  • Step S614 the generated notification message data packet is transmitted from the server side to the terminal side by using a WAP PUSH protocol transmission method.
  • Step S616 the terminal side performs the parsing of the PUSH message, so as to obtain the current network traffic data size value information of the current terminal.
  • Step S618 the terminal side transmits the network traffic data size value parsed from the PUSH message to the widget application that has been started in step S604, and the widget application refreshes the running interface immediately after receiving the new data. This ensures that the widget application running interface performs a display refresh every interval of interval. Therefore, the network traffic data of the terminal is correctly displayed when the widget application is running.
  • the network traffic widget statistical method can actively obtain traffic data from the server side as needed, and provides a new idea of network traffic management on the terminal, and through the widget.
  • the embodiment of the present invention relates to a widget service in the field of mobile Internet, and realizes real-time monitoring of the traffic volume brought by a terminal accessing a network address by using a widget application having a network service capability, and accurately counting network traffic data generated by the terminal.
  • the resulting data is presented to the user through the widget runtime interface. This can effectively help users to control the data traffic on the Internet. It has good practical significance for users who have opened the Internet traffic tariff for a monthly subscription.
  • the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

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

Abstract

Disclosed are a method, system and terminal for managing network traffic data. The method includes: the terminal side sends a query instruction for network traffic data to the server side through a widget application, wherein the query instruction includes the preset traffic data update frequency; and the server side receives and parses the query instruction, acquires network traffic data information corresponding to the terminal side according to the traffic data update frequency obtained from parsing, and sends the acquired network traffic data information to the terminal side. Through the present invention, the system resources are saved, the flexibility of the system is increased, and the user experience is improved.

Description

网络流量数据的管理方法及系统、 终端 技术领域 本发明涉及通信领域, 尤其涉及一种网络流量数据的管理方法及系统、 终端。 背景技术 Widget (即, 微件) 是轻量级的 Web应用程序, 基于 Web技术开发, 用于定制 The present invention relates to the field of communications, and in particular, to a method, system, and terminal for managing network traffic data. BACKGROUND OF THE INVENTION Widgets (ie, widgets) are lightweight web applications developed based on web technologies for customization.
Internet服务。用户可以制作或者下载 widget应用放到个人计算机(Personal Computer, 简称为 PC)桌面、 网页、 手机等终端上, 它们能够像本地应用那样运行, 并且, 用户 可以不必受限于界面大小, 通过移动互联网浏览个性化页面, 享受个性化的移动互联 网服务。 典型的 widget有时钟、 天气预报、 股票、 音乐播放器, 以及可以访问终端设 备信息和网络服务能力的高级应用等等。 随着 widget标准化的推广, 其发展空间必将 更加开阔, 已经有越来越多的移动运营商开始重视这项业务。 widget可能被应用到诸 多主流软件里, 也许会成为未来互联网广告的新载体。 但 widget在移动互联网领域处 于刚开始发展阶段, 很多相关的功能和应用还不够完善。 目前, 移动互联网的用户日益增多, 对于上网查询获取信息的需求越来越强烈, 因而产生的数据流量成为用户非常关心的一个问题。 各家运营商推出的上网资费包月 套餐活动, 就是在积极的推广移动互联网业务的部署。 例如, 用户关心本月终端已经 使用了多少网络流量, 或者包月套餐中还剩余多少网络流量。 在现有技术中,终端网络流量的控制通常是终端在定时器产生预设的定时中断后, 对终端的收发数据包进行实时统计处理。然而,这种硬件中断的方式需要依赖定时器, 并且需要监控终端收到或发出的每一个数据包,比较浪费终端的中央处理单元(Central Processing Unit, 简称为 CPU) 资源, 尤其对于嵌入式终端系统而言, CPU资源更加 宝贵。 发明内容 本发明提供了一种网络流量数据的管理方案, 以至少解决上述相关技术中终端采 用硬件中断方式来监控其网络流量数据而导致 CPU资源浪费的问题。 为了实现上述目的, 根据本发明的一个方面, 提供了一种网络流量数据的管理方 法。 根据本发明的网络流量数据的管理方法, 包括: 终端侧通过 widget应用向服务器 侧发送网络流量数据的查询指令, 其中, 查询指令包括预设的流量数据更新频率; 服 务器侧接收并解析查询指令, 根据解析得到的流量数据更新频率获取与终端侧对应的 网络流量数据信息, 并将获取的网络流量数据信息发送至终端侧。 优选地, 终端侧通过 widget应用向服务器侧发送网络流量数据的查询指令之前, 该方法还包括: 在 widget应用中设置流量数据更新频率。 优选地, 终端侧通过 widget应用向服务器侧发送查询指令包括: 终端侧启动用于 统计其网络数据流量的 widget应用; widget应用的 widget引擎生成查询指令。 优选地,服务器侧将获取的网络流量数据信息发送至终端侧之后, 该方法还包括: 终端侧将接收到的网络流量数据信息通过 widget应用的运行界面显示给用户。 优选地, widget应用的运行界面的显示刷新频率与流量数据更新频率保持一致。 优选地, 服务器侧根据解析得到的流量数据更新频率获取与终端侧对应的网络流 量数据信息, 并将获取的网络流量数据信息发送至终端侧包括: 服务器侧按照流量数 据更新频率的时间间隔周期性地读取保存在服务器侧的与终端侧对应的网络流量数据 信息; 服务器侧将网络流量数据信息打包成通知消息数据包通过网络传输协议发送至 终端侧。 优选地, 上述网络传输协议包括以下至少之一: 短消息服务、 PUSH、会话发起协 议、 超文本传输协议。 为了实现上述目的, 根据本发明的另一方面, 还提供了一种终端。 根据本发明的终端, 包括: 发送模块, 设置为通过 widget应用向服务器发送网络 流量数据的查询指令, 其中, 查询指令包括预设的流量数据更新频率; 接收模块, 设 置为接收服务器根据流量数据更新频率获取的与终端对应的网络流量数据信息,其中, 该流量数据更新频率为服务器从接收到的来自终端的查询指令中解析得到的。 优选地, 该终端还包括: 显示模块, 设置为将接收到的网络流量数据信息通过 widget应用的运行界面显示给用户。 为了实现上述目的,根据本发明的再一方面,还提供了网络流量数据的管理系统。 根据本发明的网络流量数据的管理系统, 包括上述终端和服务器, 其中, 服务器 包括: 接收解析樽炔, 设詈为接收来自终端的杳询指今, 并从杳询指今中解析出流量 数据更新频率; 获取模块, 设置为根据接收解析模块解析出的流量数据更新频率获取 与终端对应的网络流量数据信息; 以及数据发送模块, 设置为将获取模块获取的网络 流量数据信息发送至终端。 通过本发明, 采用 widget业务主动从服务器侧获取终端的网络流量数据的方式, 解决了相关技术中终端采用硬件中断方式来监控其网络流量数据而导致 CPU 资源浪 费的问题, 节省了系统资源, 增加了系统的灵活性, 提高了用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的网络流量数据的管理方法的流程图; 图 2是根据本发明实施例的终端的结构框图; 图 3是根据本发明优选实施例的终端的结构框图; 图 4是根据本发明实施例的网络流量数据的管理系统的结构框图; 图 5是根据本发明实施例一的管理网络流量数据的系统的示意图; 以及 图 6是根据本发明实施例三的管理网络流量数据的方法的流程示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 根据本发明实施例, 提供了一种网络流量数据的管理方法。 图 1是根据本发明实 施例的网络流量数据的管理方法的流程图, 如图 1所示, 该方法包括以下步骤: 步骤 S102,终端侧通过 widget应用向服务器侧发送网络流量数据的查询指令,其 中, 查询指令包括预设的流量数据更新频率; 步骤 S104, 服务器侧接收并解析查询指令, 根据解析得到的流量数据更新频率获 取与终端侧对应的网络流量数据信息, 并将获取的网络流量数据信息发送至终端侧。 通过上述步骤,采用 widget业务主动从服务器侧获取终端的网络流量数据的方式, 解决了相关技术中终端采用硬件中断方式来监控其网络流量数据而导致 CPU 资源浪 费的问题, 节省了系统资源, 增加了系统的灵活性, 提高了用户体验。 优选地, 在步骤 S102之前, 在 widget应用中设置流量数据更新频率。 在具体实 施过程中, 可以是 widget应用的开发商 (即, 发布者)在 widget应用发布之前已将该 流量数据更新频率设置好, 或者开发时将该参数设置为开放式的, 可以是用户在终端 上安装该 widget应用后, 自行配置。 这样可以增加系统的个性化设置。 优选地, 在步骤 S102中, 终端侧启动用于统计其网络数据流量的 widget应用; widget应用的 widget引擎生成查询指令。 该方法可以利用 widget应用来获取网络侧 ( BP, 服务器)存储的该终端的网络流量数据, 无需终端侧对自身流量数据进行统计, 节省了终端的系统资源, 提高了终端的处理性能。 优选地, 在步骤 S104之后, 终端侧将接收到的网络流量数据信息通过 widget应 用的运行界面显示给用户。这样可以利用 widget应用来显示终端的网络流量数据信息, 拓展了 widget应用的功能, 提高了用户体验。 优选地, widget应用的运行界面的显示刷新频率与流量数据更新频率保持一致。 该方法可以提高系统的实时性和准确性。 优选地,在步骤 S104中,服务器侧按照流量数据更新频率的时间间隔周期性地读 取保存在服务器侧的与终端侧对应的网络流量数据信息; 服务器侧将网络流量数据信 息打包成通知消息数据包通过网络传输协议发送至终端侧。 优选地, 网络传输协议可以包括但不限于: 短消息服务 (Short Message Service, 简称为 SMS)、PUSH (推入信息或服务信息)、会话发起协议(Session Initiation Protocol, 简称为 SIP)、 超文本传输协议 (Hypertext Transport Protocol, 简称为 HTTP)。 该方法 简单实用、 可操作性强。 对应于上述方法, 本发明实施例还提供了一种终端。 图 2是根据本发明实施例的 终端的结构框图, 如图 2所示, 该终端 20包括: 发送模块 22, 设置为通过 widget应 用向服务器发送网络流量数据的查询指令, 其中, 查询指令包括预设的流量数据更新 频率; 接收模块 24, 设置为接收服务器根据流量数据更新频率获取的与终端 20对应 的网络流量数据信息, 其中, 该流量数据更新频率为服务器从接收到的来自终端 20 的查询指令中解析得到的。 通过上述终端 20, 使用 widget业务主动从服务器侧获取终端 20的网络流量数据 的方式, 解决了相关技术中终端采用硬件中断方式来监控其网络流量数据而导致 CPU 资源浪费的问题, 节省了系统资源, 增加了系统的灵活性, 提高了用户体验。 图 3是根据本发明优选实施例的终端的结构框图,如图 3所示,该终端 20还包括: 显示模块 26, 耦合至接收模块 24, 设置为将接收到的网络流量数据信息通过 widget 应用的运行界面显示给用户。 根据本发明实施例, 还提供了一种网络流量数据的管理系统。 图 4是根据本发明 实施例的网络流量数据的管理系统的结构框图, 如图 4所示, 该系统 40包括终端 20 和服务器 42, 其中, 服务器 42包括: 接收解析模块 422, 耦合至终端 20的发送模块 22, 设置为接收来自终端 20的查询指令, 并从查询指令中解析出流量数据更新频率; 获取模块 424,耦合至接收解析模块 422, 设置为根据接收解析模块 422解析出的流量 数据更新频率获取与终端 20对应的网络流量数据信息; 以及数据发送模块 426, 耦合 至获取模块 424和终端 20的接收模块 24, 设置为将获取模块 424获取的网络流量数 据信息发送至终端 20。 下面结合优选实施例和附图对上述实施例的实现过程进行详细说明。 实施例一 本实施例提供了一种通过 widget应用来管理网络流量数据的系统, 用以实现终端 上网络流量数据的统计、 更新、 显示等等功能。 图 5是根据本发明实施例一的管理网 络流量数据的系统的示意图, 如图 5所示, 该系统包括终端侧和服务器侧, 其中, 终 端侧包括流量更新设置模块 502、查询请求生成模块 504、统计结果解析模块 506和流 量显示模块 508,服务器侧包括数据打包模块 510和统计结果传输模块 512, 以下对各 模块进行详细说明。 流量更新设置模块 502, 设置为用户在终端侧安装 widget应用后, 在 widget管理 设置项中设置网络流量数据的更新频率, 即, 每隔多少时间 widget引擎统计一次网络 流量数据大小。 查询请求生成模块 504, 设置为启动终端侧的特定 widget应用后, 通过 widget引 擎生成一条本终端网络流量数据的查询请求指令, 该指令包括用户已经设置好的更新 频率数据, 向服务器侧进行注册。 数据打包模块 510, 设置为服务器侧的接收到终端侧查询请求指令后, 根据其中 的更新频率, 每隔一定时间读取该终端的网络流量数据大小值, 按照固定格式打包成 通知消息数据包。 统计结果传输模块 512, 设置为服务器侧将生成的消息数据包以相应的网络传输 方法从服务器侧发送至终端客户端。 例如, 这里网络传输协议可以是 SMS、 PUSH, SIP其中的一种, 也可以是其他合适的协议。 统计结果解析模块 506, 设置为终端侧通过 widget引擎解析从服务器收到的通知 消息数据包, 从而得出当前已产生的网络流量数据大小值。 流量显示模块 508, 设置为终端侧将网络流量数据通过查询请求生成模块中特定 的 widget应用运行时的界面显示给用户。 上述模块共同完成通过 widget应用方式来管理网络流量数据的功能, 终端侧向服 务器侧发送网络流量数据查询请求指令, 该指令包括用户主动设置的流量数据更新频 率, 服务器侧按照同样的更新频率向终端侧反馈网络流量统计数据包, 终端侧对接收 到的数据包进行解析并同步在 widget应用的运行界面中刷新显示。 优选地, widget运行界面的刷新频率与流量更新设置模块的用户设置更新频率保 持一致。 这样就可以实现每次查询到的网络流量数据在 widget中同步显示。 可见, 本实施例是通过 widget应用来管理网络流量数据, 采用 widget业务 (即, widget应用) 来进行数据统计, 摒弃了在终端侧进行收发数据包数量统计的做法, 从 服务器侧按需主动获取流量数据, 节省了用户提示界面的设计实现工作, 通过 widget 运行形式来灵活展示。 实施例二 本实施例提供了一种通过 widget管理网络流量数据的方法,该方法包括以下步骤: 步骤 1 : 用户在 widget管理设置菜单项中可以按照自己的喜好, 设置网络流量数 据的更新频率, 此更新频率标志着每隔多长时间, widget引擎进行一次网络流量数据 值的更新操作。 步骤 2: 在终端侧启动用于统计显示上网数据流量的特定 widget应用后, 终端上 的 widget引擎后台处理生成网络流量数据的查询请求指令, 该指令附带上用户已设置 好的更新频率数据, 向服务器侧进行注册, 告知服务器侧每隔多长时间反馈一次本机 的网络流量数值大小值。 步骤 3 : 服务器侧接收到终端侧查询请求指令后, 根据其中的更新频率, 每隔固 定时间获取该终端的网络流量数据大小, 并将获取得到的数据按照一定格式打包成通 知消息数据包, 准备传输。 步骤 4: 生成的消息数据包以相应的网络传输方法从服务器侧传输至终端侧。 这 里网络传输协议可以采用 SMS、 PUSH或 SIP其中的一种, 也可以是其他合适的协议。 步骤 5: 终端侧 widget引擎进行通知消息数据包的解析, 从而获取当前已产生的 网络流量数据大小值信息。 步骤 6: 终端侧 widget引擎将从消息数据包中解析得出的网络流量数据值, 通过 调用 widget引擎提供的相关接口,传给步骤 2中已经启动的 widget应用程序,该 widget 收到新数据后激活运行界面的显示刷新。这样可以保证 widget应用运行界面的刷新频 率与步骤 1 中用户设置的更新频率一致, 从而使得每次查询到的网络流量数据在 widget中能够同步显示。 可见, 本实施例提供的通过 widget管理网络流量数据的方法与现有技术相比, 摒 弃了在终端侧进行收发数据包数量统计的做法,而是采用 widget业务来进行数据统计, 从服务器侧按需主动获取流量数据, 提供了终端上网络流量管理的新方法, 同时节省 了用户提示界面的设计实现工作, 并且丰富了终端用户体验。 实施例三 在本实施例中, 假设采用 WAP PUSH协议作为传输方式, 进行网络流量数据的反 馈。 图 6是根据本发明实施例三的管理网络流量数据的方法的流程示意图, 如图 6所 示, 该方法可以包括以下步骤: 步骤 S602,用户在 widget管理设置菜单项中按照自己喜好,设置本终端网络流量 数据的更新频率, 此更新频率标志着每隔多长时间(interval), widget引擎进行一次网 络流量数据值的更新操作。 需要说明的是, 在该步骤之前, 终端应该已经具备了对 widget业务的支持能力。 步骤 S604,在终端侧启动用于统计显示上网数据流量的特定 widget应用,该 widget 应用是专门开发的一个 widget应用, 其运行时的界面就是显示本机已产生的网络流量 数据或者本机当月还剩余可使用的包月套餐流量数据。 步骤 S606,终端上的 widget引擎后台处理生成网络流量数据的查询请求指令,该 指令附带的数据信息必须含有步骤 S602中用户已设置好的 interval的值。 步骤 S608,查询请求指令可以通过 HTTP等协议方式,向服务器侧进行通讯注册, 告知服务器侧每隔 interval大小的时间间隔,就进行一次向终端反馈其网络流量数据大 小的操作。 步骤 S610, 服务器侧接收到终端侧查询请求指令后, 解析该指令, 并记录下其中 的 interval的值, 之后每隔 interval大小的时间间隔, 就完成一次获取发起请求的终端 的网络流量数据大小统计操作。 步骤 S612, 服务器侧将获取得到的数据按照 WAP PUSH协议规定的 PUSH消息 体格式, 生成通知消息数据包。 步骤 S614, 生成的通知消息数据包通过 WAP PUSH协议传输方法, 从服务器侧 传输至终端侧。 步骤 S616, 终端侧进行 PUSH消息的解析, 从而获取本终端目前的网络流量数据 大小值信息。由于每隔 interval大小的时间间隔,服务器侧便会发送一次通知消息数据 包, 所以终端侧也需要每隔 interval大小的时间间隔, 就进行一次 PUSH消息的解析。 步骤 S618, 终端侧将从 PUSH消息中解析得出的网络流量数据大小值, 传给步骤 S604中已经启动的 widget应用, 该 widget应用收到新数据后立刻刷新运行界面。 这 样可以保证 widget应用运行界面每隔 interval大小的时间间隔, 进行一次显示刷新。 从而使得终端的网络流量数据情况, 在 widget应用运行时得到了正确显示。 通过上述步骤, 实现了通过 widget应用管理终端网络流量数据的方法, 这种网络 流量 widget统计方法可以从服务器侧按需主动获取流量数据, 提供了终端上网络流量 管理的新思路, 并且通过 widget的形式显示结果, 提高了终端用户体验。 综上所述, 本发明实施例涉及移动互联网领域的 widget业务, 通过具备网络服务 能力的 widget小应用来实现实时监控终端访问网络地址带来的流量大小, 精确统计终 端已产生的网络流量数据, 并将得到的这些数据通过 widget运行界面展示给用户。 这 样可以有效地帮助用户控制上网数据流量,对于开通了上网流量资费包月的用户来说, 有良好的实用意义。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而可以将 它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限 制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 Internet service. Users can create or download widget applications on personal computers (Personal Computers, PCs) desktops, web pages, mobile phones, etc. They can run like local applications, and users can be mobile Internet without having to be limited by interface size. Browse personalized pages and enjoy personalized mobile internet services. Typical widgets have clocks, weather forecasts, stocks, music players, and advanced applications that have access to terminal device information and web services capabilities. With the promotion of widget standardization, its development space will be more open, and more and more mobile operators have begun to pay attention to this service. Widgets may be applied to many mainstream software, and may become a new carrier for future Internet advertising. However, widgets are in the early stage of development in the mobile Internet field, and many related functions and applications are not perfect. At present, the number of users of the mobile Internet is increasing, and the demand for accessing information through the Internet is becoming more and more intense. Therefore, the generated data traffic has become a problem that users are very concerned about. The Internet-based monthly subscription package launched by various operators is actively promoting the deployment of mobile Internet services. For example, the user cares about how much network traffic the terminal has used this month, or how much network traffic remains in the monthly subscription. In the prior art, the control of the terminal network traffic is usually performed by the terminal in real time after the timer generates a preset timing interrupt. However, the way of hardware interruption depends on the timer, and it is necessary to monitor each data packet received or sent by the terminal, and waste the central processing unit (CPU) resource of the terminal, especially for the embedded terminal. In terms of systems, CPU resources are more valuable. SUMMARY OF THE INVENTION The present invention provides a management scheme for network traffic data, so as to at least solve the problem that the terminal uses the hardware interrupt mode to monitor its network traffic data in the related art, resulting in wasted CPU resources. In order to achieve the above object, according to an aspect of the present invention, a method of managing network traffic data is provided. The method for managing network traffic data according to the present invention includes: the terminal side sends a query instruction of the network traffic data to the server side by using the widget application, where the query instruction includes a preset update frequency of the traffic data; and the server side receives and parses the query instruction, The network traffic data information corresponding to the terminal side is obtained according to the updated traffic data update frequency, and the obtained network traffic data information is sent to the terminal side. Preferably, before the terminal side sends the query instruction of the network traffic data to the server side by using the widget application, the method further includes: setting a traffic data update frequency in the widget application. Preferably, the sending, by the terminal side, the query instruction to the server side by using the widget application comprises: the terminal side launching a widget application for counting its network data traffic; and the widget application's widget engine generating the query instruction. Preferably, after the server side sends the acquired network traffic data information to the terminal side, the method further includes: the terminal side displaying the received network traffic data information to the user through an operation interface of the widget application. Preferably, the display refresh frequency of the running interface of the widget application is consistent with the frequency of the traffic data update. Preferably, the server side obtains network traffic data information corresponding to the terminal side according to the updated traffic data update frequency, and sends the acquired network traffic data information to the terminal side, including: the server side periodically periodically updates the frequency according to the traffic data. The network traffic data information corresponding to the terminal side stored on the server side is read; the server side packs the network traffic data information into a notification message data packet and transmits it to the terminal side through a network transmission protocol. Preferably, the network transmission protocol includes at least one of the following: a short message service, a PUSH, a session initiation protocol, and a hypertext transfer protocol. In order to achieve the above object, according to another aspect of the present invention, a terminal is also provided. The terminal according to the present invention includes: a sending module, configured to send a query instruction of the network traffic data to the server by using the widget application, wherein the query instruction includes a preset traffic data update frequency; and the receiving module is configured to receive, according to the traffic data, the update The network traffic data information corresponding to the terminal acquired by the frequency, wherein the traffic data update frequency is parsed by the server from the received query command from the terminal. Preferably, the terminal further includes: a display module, configured to display the received network traffic data information to the user through an operation interface of the widget application. In order to achieve the above object, according to still another aspect of the present invention, a management system of network traffic data is also provided. The management system of the network traffic data according to the present invention includes the above terminal and the server, wherein the server comprises: receiving the analytical decyne, setting the receiving query from the terminal, and parsing the traffic from the query. And a data sending module, configured to send the network traffic data information acquired by the acquiring module to the terminal, and the data sending module is configured to send the network traffic data information corresponding to the terminal according to the update frequency of the traffic data parsed by the receiving parsing module. Through the invention, the method of actively acquiring the network traffic data of the terminal from the server side by using the widget service solves the problem that the terminal uses the hardware interrupt mode to monitor the network traffic data and wastes the CPU resources in the related art, thereby saving system resources and increasing The flexibility of the system improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a flowchart of a method for managing network traffic data according to an embodiment of the present invention; FIG. 2 is a structural block diagram of a terminal according to an embodiment of the present invention; FIG. 3 is a diagram of a terminal according to a preferred embodiment of the present invention. 4 is a structural block diagram of a network traffic data management system according to an embodiment of the present invention; FIG. 5 is a schematic diagram of a system for managing network traffic data according to an embodiment of the present invention; and FIG. 6 is a schematic diagram of a system according to the present invention. A flow diagram of a method for managing network traffic data. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. According to an embodiment of the present invention, a method for managing network traffic data is provided. 1 is a flowchart of a method for managing network traffic data according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps: Step S102: A terminal side sends a query instruction of network traffic data to a server side by using a widget application, The query instruction includes a preset traffic data update frequency. Step S104: The server side receives and parses the query command, and obtains network traffic data information corresponding to the terminal side according to the analyzed traffic data update frequency, and acquires the network traffic data. The information is sent to the terminal side. Through the above steps, the method of actively acquiring the network traffic data of the terminal from the server side by using the widget service solves the problem that the terminal uses the hardware interrupt mode to monitor the network traffic data and wastes the CPU resources in the related technology, thereby saving system resources and increasing The flexibility of the system improves the user experience. Preferably, before step S102, the traffic data update frequency is set in the widget application. In the specific implementation process, the developer (ie, the publisher) of the widget application may set the frequency of the traffic data update frequency before the widget application is released, or set the parameter to be open during development, and the user may be in the After installing the widget application on the terminal, configure it yourself. This will increase the personalization of the system. Preferably, in step S102, the terminal side starts a widget application for counting its network data traffic; the widget application's widget engine generates a query instruction. The method can obtain the network traffic data of the terminal stored by the network side (BP, server) by using the widget application, and does not need to collect statistics on the traffic data of the terminal by the terminal side, thereby saving the system resources of the terminal and improving the processing performance of the terminal. Preferably, after the step S104, the terminal side displays the received network traffic data information to the user through the running interface of the widget application. In this way, the widget application can be used to display the network traffic data information of the terminal, which expands the function of the widget application and improves the user experience. Preferably, the display refresh frequency of the running interface of the widget application is consistent with the frequency of the traffic data update. This method can improve the real-time and accuracy of the system. Preferably, in step S104, the server side periodically reads the network traffic data information corresponding to the terminal side stored on the server side according to the time interval of the traffic data update frequency; the server side packages the network traffic data information into the notification message data. The packet is sent to the terminal side through a network transmission protocol. Preferably, the network transmission protocol may include, but is not limited to: Short Message Service (SMS), PUSH (Push Information or Service Information), Session Initiation Protocol (SIP), Hypertext. Hypertext Transport Protocol (HTTP). The method is simple and practical, and has high operability. Corresponding to the foregoing method, an embodiment of the present invention further provides a terminal. 2 is a structural block diagram of a terminal according to an embodiment of the present invention. As shown in FIG. 2, the terminal 20 includes: a sending module 22, configured to send a query instruction for sending network traffic data to a server by using a widget application, where the query command includes a pre-command The receiving data module is configured to receive the network traffic data information corresponding to the terminal 20 obtained by the server according to the traffic data update frequency, where the traffic data update frequency is the query received by the server from the terminal 20 Parsed in the instruction. Through the terminal 20, the method for actively acquiring the network traffic data of the terminal 20 from the server side by using the widget service solves the problem that the terminal uses the hardware interrupt mode to monitor the network traffic data and wastes the CPU resources in the related art, thereby saving system resources. , increased system flexibility and improved user experience. 3 is a structural block diagram of a terminal according to a preferred embodiment of the present invention. As shown in FIG. 3, the terminal 20 further includes: a display module 26 coupled to the receiving module 24, configured to apply the received network traffic data information through the widget. The running interface is displayed to the user. According to an embodiment of the invention, a management system for network traffic data is also provided. 4 is a structural block diagram of a network traffic data management system according to an embodiment of the present invention. As shown in FIG. 4, the system 40 includes a terminal 20 and a server 42. The server 42 includes: a receiving and analyzing module 422 coupled to the terminal 20 The sending module 22 is configured to receive the query command from the terminal 20 and parse the traffic data update frequency from the query command. The obtaining module 424 is coupled to the receive parsing module 422 and configured to parse the traffic data according to the receive parsing module 422. The update frequency acquires the network traffic data information corresponding to the terminal 20; and the data sending module 426 is coupled to the obtaining module 424 and the receiving module 24 of the terminal 20, and is configured to send the network traffic data information acquired by the obtaining module 424 to the terminal 20. The implementation process of the above embodiment will be described in detail below in conjunction with the preferred embodiments and the accompanying drawings. Embodiment 1 This embodiment provides a system for managing network traffic data through a widget application, which is used to implement statistics, update, display, and the like of network traffic data on a terminal. FIG. 5 is a schematic diagram of a system for managing network traffic data according to the first embodiment of the present invention. As shown in FIG. 5, the system includes a terminal side and a server side, where the terminal side includes a traffic update setting module 502 and a query request generating module 504. The statistical result parsing module 506 and the traffic display module 508, the server side includes a data packing module 510 and a statistical result transmission module 512, and each module will be described in detail below. The traffic update setting module 502 is configured to set the update frequency of the network traffic data in the widget management setting item after the user installs the widget application on the terminal side, that is, the widget engine counts the network traffic data size every other time. The query request generating module 504 is configured to generate a query request command for the network traffic data of the terminal by using the widget engine, and the command includes the update frequency data that has been set by the user, and registers with the server side. The data packing module 510 is configured to, after receiving the terminal side query request command on the server side, read the network traffic data size value of the terminal at regular intervals according to the update frequency therein, and package the packet into a notification message data packet according to a fixed format. The statistical result transmission module 512 is configured to send the generated message data packet from the server side to the terminal client in a corresponding network transmission method. For example, the network transmission protocol herein may be one of SMS, PUSH, SIP, or other suitable protocols. The statistics result parsing module 506 is configured to parse the notification message data packet received from the server by the widget engine, thereby obtaining the currently generated network traffic data size value. The traffic display module 508 is configured to display, by the terminal side, the network traffic data to the user through an interface of a specific widget application runtime in the query request generation module. The above modules jointly complete the function of managing network traffic data through the widget application mode, and the terminal side sends a network traffic data query request command to the server side, the command includes the traffic data update frequency actively set by the user, and the server side follows the same update frequency to the terminal. The side feedback network traffic statistics packet, the terminal side parses the received data packet and synchronizes and refreshes the display in the running interface of the widget application. Preferably, the refresh frequency of the widget running interface is consistent with the user setting update frequency of the traffic update setting module. In this way, the network traffic data of each query can be synchronized and displayed in the widget. It can be seen that, in this embodiment, the network traffic data is managed by the widget application, and the widget service (ie, the widget application) is used for data statistics, and the method of counting and transmitting the number of data packets on the terminal side is discarded, and the server side actively acquires on demand from the server side. The traffic data saves the design and implementation of the user prompt interface, and is flexibly displayed through the widget running form. Embodiment 2 This embodiment provides a method for managing network traffic data by using a widget. The method includes the following steps: Step 1: The user can set the update frequency of the network traffic data according to his preference in the widget management setting menu item. This update frequency indicates how often the widget engine updates the network traffic data value. Step 2: After the specific widget application for displaying the data traffic on the terminal is started on the terminal side, the widget engine on the terminal processes the query request command for generating the network traffic data, and the instruction is provided with the user setting. Good update frequency data, register with the server side, and tell the server side how often the network traffic value value of the machine is fed back. Step 3: After receiving the terminal side query request command, the server side obtains the network traffic data size of the terminal at a fixed time according to the update frequency, and packages the obtained data into a notification message data packet according to a certain format, and prepares transmission. Step 4: The generated message data packet is transmitted from the server side to the terminal side in a corresponding network transmission method. Here, the network transmission protocol may adopt one of SMS, PUSH or SIP, or may be other suitable protocols. Step 5: The terminal side widget engine performs the parsing of the notification message data packet to obtain the currently generated network traffic data size value information. Step 6: The network traffic data value parsed by the terminal side widget engine from the message data packet is transmitted to the widget application that has been started in step 2 by calling the relevant interface provided by the widget engine, and the widget receives the new data. Activate the display refresh of the running interface. This ensures that the refresh frequency of the widget application running interface is the same as the update frequency set by the user in step 1, so that the network traffic data of each query can be displayed synchronously in the widget. It can be seen that, compared with the prior art, the method for managing network traffic data by using the widget in the embodiment does not discard the method of counting and transmitting data on the terminal side, but uses the widget service to perform data statistics, and presses from the server side. Actively obtaining traffic data, providing a new method for network traffic management on the terminal, saving design and implementation of the user prompt interface, and enriching the end user experience. Embodiment 3 In this embodiment, it is assumed that the WAP PUSH protocol is used as the transmission mode to perform feedback of network traffic data. FIG. 6 is a schematic flowchart of a method for managing network traffic data according to Embodiment 3 of the present invention. As shown in FIG. 6, the method may include the following steps: Step S602: A user sets a present according to his or her preferences in a widget management setting menu item. The update frequency of the terminal network traffic data. This update frequency indicates how long the interval is, the widget engine performs an update of the network traffic data value. It should be noted that before this step, the terminal should already have the ability to support the widget service. Step S604, starting a specific widget application for statistically displaying online data traffic on the terminal side, the widget application is a specially developed widget application, and the runtime interface is to display the network traffic data generated by the local machine or the local month. The remaining monthly package flow data that can be used. Step S606, the widget engine on the terminal processes the query request instruction for generating the network traffic data, and the data information attached to the command must contain the value of the interval that the user has set in step S602. In step S608, the query request command may perform communication registration to the server side through a protocol such as HTTP, and notify the server side to perform an operation of feeding back the network traffic data size to the terminal every interval interval. Step S610, after receiving the terminal side query request instruction, the server side parses the instruction, and records the value of the interval therein, and then completes the network traffic data size statistics of the terminal that obtains the initiation request every interval interval of the interval. operating. Step S612, the server side generates the notification message data packet according to the PUSH message body format specified by the WAP PUSH protocol. Step S614, the generated notification message data packet is transmitted from the server side to the terminal side by using a WAP PUSH protocol transmission method. Step S616, the terminal side performs the parsing of the PUSH message, so as to obtain the current network traffic data size value information of the current terminal. Since the server side sends a notification message packet every interval interval, the terminal side also needs to parse the PUSH message every interval of the interval. Step S618, the terminal side transmits the network traffic data size value parsed from the PUSH message to the widget application that has been started in step S604, and the widget application refreshes the running interface immediately after receiving the new data. This ensures that the widget application running interface performs a display refresh every interval of interval. Therefore, the network traffic data of the terminal is correctly displayed when the widget application is running. Through the above steps, a method for managing terminal network traffic data through a widget application is realized. The network traffic widget statistical method can actively obtain traffic data from the server side as needed, and provides a new idea of network traffic management on the terminal, and through the widget. The form displays the results and improves the end user experience. In summary, the embodiment of the present invention relates to a widget service in the field of mobile Internet, and realizes real-time monitoring of the traffic volume brought by a terminal accessing a network address by using a widget application having a network service capability, and accurately counting network traffic data generated by the terminal. The resulting data is presented to the user through the widget runtime interface. This can effectively help users to control the data traffic on the Internet. It has good practical significance for users who have opened the Internet traffic tariff for a monthly subscription. It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple of these modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种网络流量数据的管理方法, 包括: 1. A method for managing network traffic data, comprising:
终端侧通过 widget应用向服务器侧发送网络流量数据的查询指令, 其中, 所述查询指令包括预设的流量数据更新频率;  The terminal side sends a query instruction of the network traffic data to the server side by using the widget application, where the query instruction includes a preset traffic data update frequency;
所述服务器侧接收并解析所述查询指令, 根据解析得到的所述流量数据更 新频率获取与所述终端侧对应的网络流量数据信息, 并将获取的所述网络流量 数据信息发送至所述终端侧。  The server side receives and parses the query instruction, acquires network traffic data information corresponding to the terminal side according to the analyzed traffic data update frequency, and sends the obtained network traffic data information to the terminal. side.
2. 根据权利要求 1所述的方法, 其中, 所述终端侧通过所述 widget应用向所述服 务器侧发送网络流量数据的查询指令之前, 还包括: The method according to claim 1, wherein the terminal side further includes: before the sending, by the widget application, the query instruction of the network traffic data to the server side,
在所述 widget应用中设置所述流量数据更新频率。  The traffic data update frequency is set in the widget application.
3. 根据权利要求 1所述的方法, 其中, 所述终端侧通过所述 widget应用向所述服 务器侧发送所述查询指令包括: The method according to claim 1, wherein the sending, by the terminal side, the query instruction to the server side by using the widget application comprises:
所述终端侧启动用于统计其网络数据流量的所述 widget应用; 所述 widget应用的 widget引擎生成所述查询指令。  The terminal side starts the widget application for counting its network data traffic; the widget application of the widget application generates the query instruction.
4. 根据权利要求 1所述的方法, 其中, 所述服务器侧将获取的所述网络流量数据 信息发送至所述终端侧之后, 还包括: The method according to claim 1, wherein, after the server side sends the acquired network traffic data information to the terminal side, the method further includes:
所述终端侧将接收到的所述网络流量数据信息通过所述 widget应用的运行 界面显示给用户。  The terminal side displays the received network traffic data information to the user through an operation interface of the widget application.
5. 根据权利要求 4所述的方法, 其中, 所述 widget应用的运行界面的显示刷新频 率与所述流量数据更新频率保持一致。 The method according to claim 4, wherein a display refresh frequency of the running interface of the widget application is consistent with the traffic data update frequency.
6. 根据权利要求 1至 5中任一项所述的方法, 其中, 所述服务器侧根据解析得到 的所述流量数据更新频率获取与所述终端侧对应的网络流量数据信息, 并将获 取的所述网络流量数据信息发送至所述终端侧包括: The method according to any one of claims 1 to 5, wherein the server side acquires network traffic data information corresponding to the terminal side according to the analyzed traffic data update frequency, and acquires the obtained Sending the network traffic data information to the terminal side includes:
所述服务器侧按照所述流量数据更新频率的时间间隔周期性地读取保存在 所述服务器侧的与所述终端侧对应的所述网络流量数据信息;  The server side periodically reads the network traffic data information corresponding to the terminal side stored on the server side according to the time interval of the traffic data update frequency;
所述服务器侧将所述网络流量数据信息打包成通知消息数据包通过网络传 输协议发送至所述终端侧。 The server side packages the network traffic data information into a notification message data packet and sends the data packet to the terminal side through a network transmission protocol.
7. 根据权利要求 6所述的方法, 其中, 所述网络传输协议包括以下至少之一: 短 消息服务 SMS、 PUSH, 会话发起协议 SIP、 超文本传输协议 HTTP。 The method according to claim 6, wherein the network transmission protocol comprises at least one of the following: short message service SMS, PUSH, session initiation protocol SIP, hypertext transfer protocol HTTP.
8. 一种终端, 包括: 8. A terminal comprising:
发送模块,设置为通过 widget应用向服务器发送网络流量数据的查询指令, 其中, 所述查询指令包括预设的流量数据更新频率;  a sending module, configured to send, by the widget application, a query instruction for sending network traffic data to the server, where the query instruction includes a preset traffic data update frequency;
接收模块, 设置为接收所述服务器根据所述流量数据更新频率获取的与所 述终端对应的网络流量数据信息, 其中, 该流量数据更新频率为所述服务器从 接收到的来自所述终端的所述查询指令中解析得到的。  a receiving module, configured to receive network traffic data information corresponding to the terminal acquired by the server according to the traffic data update frequency, where the traffic data update frequency is received by the server from the terminal Decomposed in the query instruction.
9. 根据权利要求 8所述的终端, 其中, 还包括: 显示模块, 设置为将接收到的所述网络流量数据信息通过所述 widget应用 的运行界面显示给用户。 The terminal according to claim 8, further comprising: a display module, configured to display the received network traffic data information to the user through an operation interface of the widget application.
10. 一种网络流量数据的管理系统,包括权利要求 8或 9的所述终端和所述服务器, 其中, 所述服务器包括: A management system for network traffic data, comprising the terminal of claim 8 or 9, and the server, wherein the server comprises:
接收解析模块, 设置为接收来自所述终端的所述查询指令, 并从所述查询 指令中解析出所述流量数据更新频率;  Receiving a parsing module, configured to receive the query instruction from the terminal, and parse the traffic data update frequency from the query instruction;
获取模块, 设置为根据所述接收解析模块解析出的所述流量数据更新频率 获取与所述终端对应的网络流量数据信息; 以及  An acquiring module, configured to acquire network traffic data information corresponding to the terminal according to the traffic data update frequency parsed by the receiving parsing module;
数据发送模块, 设置为将所述获取模块获取的所述网络流量数据信息发送 至所述终端。  And a data sending module, configured to send the network traffic data information acquired by the acquiring module to the terminal.
PCT/CN2011/081286 2011-01-25 2011-10-25 Method, system and terminal for managing network traffic data WO2012100570A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110027253.4 2011-01-25
CN201110027253.4A CN102045205B (en) 2011-01-25 2011-01-25 The management method of network flow data and system, terminal

Publications (1)

Publication Number Publication Date
WO2012100570A1 true WO2012100570A1 (en) 2012-08-02

Family

ID=43911019

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/081286 WO2012100570A1 (en) 2011-01-25 2011-10-25 Method, system and terminal for managing network traffic data

Country Status (2)

Country Link
CN (1) CN102045205B (en)
WO (1) WO2012100570A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577459A (en) * 2014-10-08 2016-05-11 腾讯科技(深圳)有限公司 Traffic monitoring method, traffic monitoring system, cloud server and client
CN112291207A (en) * 2020-10-16 2021-01-29 武汉中科通达高新技术股份有限公司 Method and device for acquiring front-end equipment catalog

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045205B (en) * 2011-01-25 2016-08-24 中兴通讯股份有限公司 The management method of network flow data and system, terminal
CN102420872B (en) * 2011-12-06 2013-12-04 公安部交通管理科学研究所 Hyper text transfer protocol (HTTP)-data-stream-based transmission management framework
CN103188629B (en) * 2011-12-31 2016-08-10 中国移动通信集团江苏有限公司 Flow bootstrap technique between a kind of networks with different systems and device
CN102595243B (en) * 2012-02-10 2015-03-11 深圳创维-Rgb电子有限公司 Method and device for monitoring network flux in television set and television set
CN103368869B (en) * 2012-04-03 2017-09-19 富泰华工业(深圳)有限公司 Network traffic management system and method
CN104202759A (en) * 2014-09-05 2014-12-10 上海斐讯数据通信技术有限公司 WIFI (Wireless Fidelity) traffic statistical method
CN104486414B (en) * 2014-12-15 2018-04-03 北京国双科技有限公司 Network data methods of exhibiting and device
CN106603475A (en) * 2015-10-19 2017-04-26 广州爱九游信息技术有限公司 Communication data transmission method and device
CN107193606B (en) * 2017-05-26 2020-12-11 北京小米移动软件有限公司 Application distribution method and device
CN107203398B (en) * 2017-05-26 2020-11-13 北京小米移动软件有限公司 Application distribution method and device
CN108768777A (en) * 2018-05-31 2018-11-06 连尚(新昌)网络科技有限公司 Flow information inquiry, flow information providing method, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159671A (en) * 2007-10-29 2008-04-09 中兴通讯股份有限公司 Flux auditing method
US20090307300A1 (en) * 2008-06-10 2009-12-10 Iskoot Inc. Method and system for executing an application on a mobile device
CN101888396A (en) * 2009-05-12 2010-11-17 华为技术有限公司 Method for calling equipment capability, micro-technical equipment and server
CN102045205A (en) * 2011-01-25 2011-05-04 中兴通讯股份有限公司 Management method of network flow data, management system and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159671A (en) * 2007-10-29 2008-04-09 中兴通讯股份有限公司 Flux auditing method
US20090307300A1 (en) * 2008-06-10 2009-12-10 Iskoot Inc. Method and system for executing an application on a mobile device
CN101888396A (en) * 2009-05-12 2010-11-17 华为技术有限公司 Method for calling equipment capability, micro-technical equipment and server
CN102045205A (en) * 2011-01-25 2011-05-04 中兴通讯股份有限公司 Management method of network flow data, management system and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577459A (en) * 2014-10-08 2016-05-11 腾讯科技(深圳)有限公司 Traffic monitoring method, traffic monitoring system, cloud server and client
CN105577459B (en) * 2014-10-08 2020-05-05 腾讯科技(深圳)有限公司 Flow monitoring method and system, cloud server and client
CN112291207A (en) * 2020-10-16 2021-01-29 武汉中科通达高新技术股份有限公司 Method and device for acquiring front-end equipment catalog
CN112291207B (en) * 2020-10-16 2022-11-25 武汉中科通达高新技术股份有限公司 Method and device for acquiring front-end equipment catalog

Also Published As

Publication number Publication date
CN102045205A (en) 2011-05-04
CN102045205B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2012100570A1 (en) Method, system and terminal for managing network traffic data
EP2625624B1 (en) Distribution of content and behavior to disparate platforms
US8073423B2 (en) Intelligent information control repository
CN101480017B (en) Method and device for providing service notification in network environment
CN111611091B (en) A service calling method, device and medium for a business object
CN101420325B (en) Automatic deployment method, apparatus and system for software package
CN103069755B (en) Use the method and system that the instant message of multiple client instance transmits
KR20110076954A (en) Optimizing Polling on Low Resource Devices
KR20070092486A (en) Method and system for providing content based dynamic wallpaper service
WO2021051747A1 (en) Data update method, system and device, electronic device, and computer storage medium
CN101471953A (en) Information transmission method, system and device
CN109842637A (en) A kind of Distributed Services register method and device
CN109391676A (en) Terminal equipment control method, terminal device and computer readable storage medium
US8433301B2 (en) Method and system for automatically providing contents from a service provider to a mobile telephonic terminal
CN103207802B (en) Operation system of software and method
CN101277491A (en) An advertising monitoring system and method
CN105786511A (en) Implementation method for terminal device Web application management
JP2012230555A (en) Information distribution system and information distribution method
JP2008108007A (en) Communication terminal, communication system, and method for downloading content file
CN105791349A (en) Data analysis method, device, system, terminal and server
CN103069854A (en) Device for providing device management package and method for receiving the device management package
CN111416795B (en) Data synchronization method, device, computing equipment and medium
KR20130094593A (en) System and method for producing in-application advertisement for mobile, and apparatus applied to the same
WO2023020071A1 (en) Upgrade package acquisition method and smart device
JP7425555B2 (en) Notification methods, computer systems, and computer programs in a multi-device environment

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

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

Country of ref document: EP

Kind code of ref document: A1