WO2004045155A1 - Network traffic statistics method of ip device - Google Patents

Network traffic statistics method of ip device Download PDF

Info

Publication number
WO2004045155A1
WO2004045155A1 PCT/CN2003/000959 CN0300959W WO2004045155A1 WO 2004045155 A1 WO2004045155 A1 WO 2004045155A1 CN 0300959 W CN0300959 W CN 0300959W WO 2004045155 A1 WO2004045155 A1 WO 2004045155A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
statistical
traffic
network
statistics
Prior art date
Application number
PCT/CN2003/000959
Other languages
French (fr)
Chinese (zh)
Inventor
Jie Li
Libin Wang
Jianping Xie
Hui Yuan
Original Assignee
Huawei Technologies Co., Ltd.
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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to AU2003284790A priority Critical patent/AU2003284790A1/en
Publication of WO2004045155A1 publication Critical patent/WO2004045155A1/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/14Network analysis or design
    • H04L41/142Network analysis or design using statistical or mathematical methods
    • 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/052Network management architectures or arrangements using standardised network management architectures, e.g. telecommunication management network [TMN] or unified network management architecture [UNMA]

Definitions

  • the present invention relates to the field of data communications, and more particularly, to a method for counting network traffic of an IP (Internet Protocol) device.
  • IP Internet Protocol
  • the generation of detailed traffic statistics technology of IP equipment is mainly based on the following needs: After community users and corporate networks access the Internet, the application of establishing cross-regional connections through Internet service providers is becoming more and more common; in commercial operations In the community access service, the method of charging based solely on the quality of work service and traffic guarantee connection cannot meet the market demand. In the community access service, individual users have a long-term online connection, so there is a need to pay for traffic. Enterprise users use it for reasonable use. And monitoring networks, more and more attention is paid to the details of network usage; operators must rationalize and optimize existing networks and optimize network performance, which must also be based on detailed network traffic data.
  • the network traffic statistics technology of IP devices mainly has the following two methods: Existing technology 1.
  • a management information database (MIB) table is configured on the IP device, and the MIB table stores the information. Information about each port of the IP device and simple inbound and outbound network traffic information.
  • the network management software uses a single network management protocol (SNMP protocol).
  • SNMP protocol single network management protocol
  • the MIB table on the IP device can be used to obtain statistics on the inbound and outbound traffic of each interface.
  • SNMP protocol network management protocol
  • a packet forwarding statistical device is externally connected to an interface of an IP device, and detailed data traffic statistics are performed on the interface of the IP device.
  • the packet forwarding statistical device may adopt Lucent (Lucent ) Network counter (Netcounter), the network management software reads detailed statistics of the inbound and outbound traffic of the IP device interface from the packet forwarding statistics device.
  • the traffic acquisition method is universal, and no additional equipment is needed.
  • the related network traffic data provided by Table B is relatively simple, the traffic statistics obtained by the network management software are rough.
  • the sum of the outbound traffic and the inbound traffic of the interface cannot obtain the complete and detailed traffic statistics of the IP device, such as: unable to obtain the traffic analysis based on the source / destination address, the traffic analysis between the interfaces, and the traffic based on the application protocol analysis. Therefore, this technical solution cannot be used for the charging of individual users, nor can it achieve the optimization and monitoring of the performance of operators' corporate network users based on source / destination addresses and applications.
  • an additional packet forwarding statistics device is added, and the packet forwarding statistics device can only provide detailed traffic data of one IP interface of the IP device, and thus cannot perform traffic on multiple IP interfaces. For statistics, if you want to perform traffic statistics on each interface, you need to add a large number of packet forwarding statistics equipment, which is very costly.
  • the interface between the IP device and the IP backbone network needs to pass through this.
  • the packet forwarding statistics device is connected, and its traffic will be affected by statistical performance. It can be seen that adding the packet forwarding statistics device cannot provide complete IP device traffic information.
  • a network traffic statistics method for an IP device in which a computer for traffic statistics and an IP device being counted are connected through an IP network, and the method includes the following steps:
  • the computer for traffic statistics described above receives the original traffic data sent by the IP device, and stores the raw traffic data in a data cache queue;
  • step (1) Before step (1), the following steps are also included: (
  • step a the outbound traffic statistics reporting and inbound traffic statistics reporting functions of each interface of the IP device are respectively activated, and a plurality of types of raw traffic data required in the above configuration information are sent to a computer for traffic statistics.
  • the statistical strategy includes: a data aggregation method that classifies data according to key fields and value fields of the data being counted; an output method of statistical results, including text, database, and binary output methods; and a length of statistical time.
  • the step (1) further includes: after receiving the original traffic data sent by the IP device, the computer first checks the original traffic data according to a data aggregation method in the statistical policy, and filters out unnecessary The original traffic data is then stored in the data cache queue.
  • the step (2) further includes: after the computer reads the original traffic data from the data cache queue, first classify the read data according to a data aggregation method in the statistical strategy, and then press The statistical strategy performs statistical processing on the pre-processed data.
  • the step (2)) further includes determining whether the statistical time reaches a statistical time length in the statistical strategy, and if yes, outputting a statistical result within the statistical time length according to an output manner in the statistical strategy, and Saved on the computer hard disk or other storage medium , Otherwise, return to step (1).
  • the counted IP devices may be one or more.
  • the IP device may be an IP device group in which addresses or names of multiple IP devices are defined as a whole statistical object.
  • the method also includes the following online management steps:
  • the present invention has the following advantages:
  • the present invention does not need to increase equipment investment and is implemented by pure software, the network connection between the management computer and the IP equipment is free, simple, and easy to design and maintain;
  • the present invention can simultaneously manage and traffic statistics on multiple devices, and the statistical results can be used as the basis for monitoring and billing;
  • the present invention can support detailed traffic information such as source address / destination address, uplink and downlink traffic, service type, etc., thereby facilitating differentiated charging of cell services;
  • FIG. 1 is a schematic diagram of implementing traffic statistics using the snmp protocol in the prior art
  • FIG. 2 is a schematic diagram of implementing traffic statistics by adding a packet forwarding statistics device in the prior art
  • FIG. 3 is a schematic diagram of a network connection principle of the traffic statistics method of the present invention.
  • FIG. 5 is a schematic diagram of a complete statistical process in a traffic statistics method of the present invention.
  • Figure 6 is a schematic diagram of the workflow of the data receiving module shown in Figure 4.
  • FIG. 7 is a schematic diagram of the work flow of the data statistics module shown in FIG. 4;
  • FIG. 8 is a schematic diagram of the workflow of the online management module shown in FIG. 4. Mode for Carrying Out the Invention The present invention is described in detail below with reference to the drawings and specific embodiments.
  • the network connection principle of the traffic statistics method of this embodiment is shown in FIG. 3, where a computer 301 for network / traffic statistics recording, a computer 302 equipped with a traffic-based accounting software system, and network management / performance analysis and network monitoring software
  • the computer 303 is connected to multiple IP devices through an IP network.
  • the functions of the above three computers can also be realized by a network management computer.
  • the method of the present invention can be implemented by pure software on the basis of existing hardware.
  • the network In the network
  • IP devices can count their own detailed traffic and generate raw statistics. The following are the specific steps of the method according to the invention:
  • NS network flow
  • IP IP address
  • IP port Autonomous domain, service class (TOS), source / destination IP port
  • TOS service class
  • This NS device software module can enable the outbound traffic statistics reporting and inbound traffic statistics reporting function of each interface of the IP equipment according to the configuration;
  • the network flow device software module starts the outbound traffic statistics reporting and inbound traffic statistics reporting functions of each interface of the IP device according to the above configuration information, and sends a variety of raw traffic data required in the above configuration information to Computer 301 for traffic statistics recording.
  • a computer 301 for network / flow statistics recording is provided with network management flow statistics software.
  • the principle of the network management flow statistics software is shown in FIG. 4, which includes three sub-modules: a data receiving module 401 and a data statistics module 402. And online management module 403.
  • the data receiving module 401 receives the original traffic data from the cache queue; the data statistics module 402 statistically processes the original traffic data described in step b according to a customized statistical strategy, and stores the output statistical data in a network /
  • the traffic statistics record is stored in the hard disk or other storage medium of the computer 301.
  • the online management module 403 monitors the management commands sent by the management software, and controls the data receiving module 401 and the data statistics module 402 online.
  • the statistical strategy in the present invention includes: a data aggregation method that classifies data according to the key and value fields of the data being counted; an output method of the statistical result (such as an output method including text, database, and binary); and the length of the statistical time .
  • FIG. 5 The complete statistical process in the traffic statistics method of the present invention is shown in FIG. 5, which includes the workflow of the data receiving module 401 and the workflow of the data statistics module 402.
  • FIG. 6 is a schematic diagram of the work flow of the data receiving module 401.
  • the computer for network / traffic statistics recording is connected to multiple IP devices through the data receiving module 401, and simultaneously monitors multiple ports.
  • the work flow of the data receiving module 401 is the following steps: 501. Receive raw traffic data sent by multiple IP devices described in step b.
  • the original traffic data is verified according to a data aggregation manner in a pre-customized statistical strategy, and the original traffic data that is not required by the user is filtered out;
  • FIG. 7 is a schematic diagram of the workflow of the data statistics module 402.
  • the workflow of the data statistics module 402 includes the following steps:
  • Preprocess the read raw traffic data according to a data aggregation method of a pre-customized statistical strategy, for example, according to the address of the device sending the raw traffic data, the port number to receive the data, and the type of statistics in the raw data record.
  • Statistics of the outgoing / incoming interface according to the data type, the device supports the statistical data record format; according to the physical data of the device, such as the slot number; and the time information generated by the original data, such as the relative start time of the device, UTC The time (seconds since 1970) was pre-processed to preliminarily classify the raw data into various required types.
  • a time period can be set every 10 minutes, and then the output is customized. Output the statistical results within 10 minutes in the form of data file, database data or binary, and save them to the computer 301 hard disk or other storage medium for network / traffic statistics recording. This will get the required statistical results. .
  • the traffic-based accounting software system on computer 302 and the network management / performance analysis and network monitoring software on computer 303 can use these statistical results through network file sharing or remote access to the database, and can use predefined management protocols to control traffic Statistical software for remote online management.
  • FIG 8 shows the workflow of the online management module. As shown in Figure 8, the online management process has some independence from the statistical process shown in Figure 5. The specific steps are as follows:
  • 803 If the authority authentication is passed, analyze the control protocol, and then determine whether the received configuration command or query command is received.
  • the online management process will affect the initial configuration in step b above, for example, it will affect the traffic statistics configuration of the IP device; in addition, the statistical result obtained in step 507 may be queried, and the statistical result will be output to the issuer of the control command, so that Perform other operations such as billing and monitoring based on statistical results.
  • the method of the present invention can customize the statistical strategy according to needs without adding network equipment, and can obtain comprehensive and detailed traffic statistics of multiple IP equipment.
  • the network management flow statistics software and the network management performance analysis monitoring software based on the present invention and The billing software is independent of each other and can be installed on one or more computers as needed.
  • the traffic statistics method of the present invention can distinguish uplink / downlink traffic and can simultaneously count; it can also support group statistics of multiple devices on the network at the same time; in addition, the steps of the present invention
  • Source node mode using source IP address as a key aggregation
  • the destination node mode uses the destination IP address as a key aggregation
  • Source port mode using source port number as a key aggregation
  • the destination port mode uses the destination port number as a key aggregation
  • the bill service method is aggregated with six keywords: source IP address, destination IP address, source port number, destination port number, protocol type, and service type;
  • the network matrix mode is aggregated by six keywords: input interface index, output interface index, source IP subnet, destination IP subnet, subnet mask of source IP address, and subnet mask of destination IP address.
  • a simple autonomous system aggregation method using the four keywords of interface SNMP index, output interface index, source autonomous system number and destination autonomous system number to aggregate;
  • a single-source prefix aggregation method in which four keywords, namely, an interface index, a source autonomous system number, a source IP subnet, and a source IP address subnet mask are used to aggregate;
  • the destination prefix aggregation method is to aggregate four keywords: an output interface SNMP index, a destination autonomous system number, a destination IP subnet, and a destination IP address subnet mask.
  • the prefix aggregation method includes input interface index, output interface index, source autonomous system number, destination autonomous system number, source IP subnet, destination IP subnet, source IP address subnet mask, and destination IP address. Subnet mask aggregation of eight keywords;
  • the host matrix method of the autonomous system is aggregated with four keywords: source IP address, destination IP address, source system number and destination autonomous system number.
  • the host interface matrix mode is aggregated by source IP address, destination IP address, protocol name, input interface index and output interface index;

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a network traffic statistics method of IP devices in which computer for traffic statistics connects IP devices that to be statistical by IP network, characterized in that, realize traffic statistics according to following step: computer for traffic statistics receives original statistical data transmitted from IP device, and stores it into data buffer queue; the computer used to traffic statistics read data from said data buffer queue, and statistical process separately according to statistical policy, exporting corresponding statiscal result. by means of the foregoing method, it is possible that establish statistical policy according to require and acquire perfect and detailed traffic statistics data of multiple IP device in the case of not increace network device.

Description

一种 IP设备的网络流量统计方法  Network traffic statistics method of IP equipment
技术领域 本发明涉及数据通信领域, 更具体地说, 涉及一种 IP (网际协议) 设备的网络流量统计方法。 发明背景 在数据通信网络中, 随着人类网络信息交流的增加, 网络连接的复 杂性越来越高。 而随着数据通信网络的发展和基于商业的需要, 运营商 和网络管理设计人员越来越关注设备的详细通讯状况 , 数据通信产品基 于接口的详细流量数据统计技术应运而生。 TECHNICAL FIELD The present invention relates to the field of data communications, and more particularly, to a method for counting network traffic of an IP (Internet Protocol) device. BACKGROUND OF THE INVENTION In data communication networks, with the increase of human network information exchange, the complexity of network connections is getting higher and higher. With the development of data communication networks and business-based needs, operators and network management designers are paying more and more attention to the detailed communication status of equipment. Data communication products based on detailed traffic data statistics technology have emerged at the historic moment.
IP设备的详细流量统计技术的产生主要基于以下种种需要: 小区用 户和企业网接入互联网 (Internet )后, 通过 Internet服务提供商建立跨 地区连接的应用正在变得越来越普遍; 在商业运作中, 单纯根据工作服 务质量和流量保证的连接进行收费的方式, 已不能满足市场需求; 而在 小区接入服务中,个人用户由于长期在线,所以存在按流量付费的需求; 企业用户为了合理使用和监控网络, 对于网络使用细节情况也越来越关 注; 运营商要合理调整优化现有网络, 对网络进行性能优化, 也必须以 详细的网絡流量数据为基础。  The generation of detailed traffic statistics technology of IP equipment is mainly based on the following needs: After community users and corporate networks access the Internet, the application of establishing cross-regional connections through Internet service providers is becoming more and more common; in commercial operations In the community access service, the method of charging based solely on the quality of work service and traffic guarantee connection cannot meet the market demand. In the community access service, individual users have a long-term online connection, so there is a need to pay for traffic. Enterprise users use it for reasonable use. And monitoring networks, more and more attention is paid to the details of network usage; operators must rationalize and optimize existing networks and optimize network performance, which must also be based on detailed network traffic data.
现有技术中 IP设备的网絡流量统计技术主要有以下两种方式: 现有技术一、如图 1所示,在 IP设备上配置一管理信息数据库 ( MIB ) 表, 在该 MIB表中存放该 IP设备各个端口信息和简单的出入端口网络 流量信息, 网络管理软件使用筒单网絡管理协议(SNMP 协议), 通过 IP设备上的 MIB表可取得各接口出入流量的统计数据。 目前大多数网 管软件均通过此方式提供网络性能分析数据。 In the prior art, the network traffic statistics technology of IP devices mainly has the following two methods: Existing technology 1. As shown in FIG. 1, a management information database (MIB) table is configured on the IP device, and the MIB table stores the information. Information about each port of the IP device and simple inbound and outbound network traffic information. The network management software uses a single network management protocol (SNMP protocol). The MIB table on the IP device can be used to obtain statistics on the inbound and outbound traffic of each interface. Currently most nets Management software provides network performance analysis data in this way.
现有技术二、如图 2所示,在 IP设备的接口处外挂报文转发统计设 备, 对该 IP设备的接口进行详细数据流量统计, 例如, 该报文转发统计 设备可采用朗讯公司(Lucent)的网络记录器 (Netcounter), 网管软件从该 报文转发统计设备上读取该 IP设备接口出入流量的详细统计数据。  Existing Technology 2. As shown in FIG. 2, a packet forwarding statistical device is externally connected to an interface of an IP device, and detailed data traffic statistics are performed on the interface of the IP device. For example, the packet forwarding statistical device may adopt Lucent (Lucent ) Network counter (Netcounter), the network management software reads detailed statistics of the inbound and outbound traffic of the IP device interface from the packet forwarding statistics device.
在上述的现有技术一中,流量获取方式筒单通用,不需要增加设备, 但是由于 B表提供的相关网络流量数据比较筒单,所以网管软件获得 的流量统计数据较粗糙, 一般只有每个接口的出流量之和与入流量之 和, 无法获得 IP设备的完善详细的流量统计数据, 例如: 无法获得基于 源地址 /目的地址的流量分析、接口间的流量分析、 以及基于应用协议的 流量分析。 因此该技术方案无法用于个人用户的计费, 也无法实现运营 商企业网用户基于源地址 /目的地址和应用的性能优化与监视。  In the above-mentioned prior art 1, the traffic acquisition method is universal, and no additional equipment is needed. However, because the related network traffic data provided by Table B is relatively simple, the traffic statistics obtained by the network management software are rough. The sum of the outbound traffic and the inbound traffic of the interface cannot obtain the complete and detailed traffic statistics of the IP device, such as: unable to obtain the traffic analysis based on the source / destination address, the traffic analysis between the interfaces, and the traffic based on the application protocol analysis. Therefore, this technical solution cannot be used for the charging of individual users, nor can it achieve the optimization and monitoring of the performance of operators' corporate network users based on source / destination addresses and applications.
在上述的现有技术二中, 额外增加了一台报文转发统计设备, 且该 报文转发统计设备只能提供 IP设备的一个 IP接口的详细流量数据, 从 而不能对多个 IP接口进行流量统计, 如果要对每个接口进行流量统计, 则需增加大量的报文转发统计设备, 成本非常高; 另外, 从图 2中可以 看出, IP设备的接口与 IP骨干网之间需经过该报文转发统计设备连接, 其流量会受到统计性能的影响, 可见增加了报文转发统计设备并不能提 供完善的 IP设备流量信息。 发明内容 本发明的目的在于提供一种 IP设备的网络流量统计方法,在不增加 网络设备的情况下,根据需要定制统计策略,获得多个 IP设备的完善详 细的流量统计数据。  In the above-mentioned prior art 2, an additional packet forwarding statistics device is added, and the packet forwarding statistics device can only provide detailed traffic data of one IP interface of the IP device, and thus cannot perform traffic on multiple IP interfaces. For statistics, if you want to perform traffic statistics on each interface, you need to add a large number of packet forwarding statistics equipment, which is very costly. In addition, it can be seen from Figure 2 that the interface between the IP device and the IP backbone network needs to pass through this. The packet forwarding statistics device is connected, and its traffic will be affected by statistical performance. It can be seen that adding the packet forwarding statistics device cannot provide complete IP device traffic information. SUMMARY OF THE INVENTION The object of the present invention is to provide a network traffic statistics method for IP devices. Without adding a network device, a statistical strategy can be customized according to needs to obtain comprehensive detailed traffic statistics data of multiple IP devices.
本发明为解决上述技术问题所采用的技术方案是: 一种 IP设备的网络流量统计方法,其中用于流量统计的计算机与被 统计的 IP设备之间通过 IP网络连接, 该方法包括以下步骤: The technical solutions adopted by the present invention to solve the above technical problems are: A network traffic statistics method for an IP device, in which a computer for traffic statistics and an IP device being counted are connected through an IP network, and the method includes the following steps:
(1)所述的用于流量统计的计算机接收由 IP设备发来的原始流量数 据, 存入数据緩存队列;  (1) The computer for traffic statistics described above receives the original traffic data sent by the IP device, and stores the raw traffic data in a data cache queue;
(2)从所述数据緩存队列中读取原始流量数据, 并按统计策略分别 进行统计处理, 输出统计结果。  (2) Read the original traffic data from the data cache queue, perform statistical processing according to the statistical strategy, and output the statistical result.
在步骤( 1 )之前还包括以下步骤: (  Before step (1), the following steps are also included: (
a、 根据需要统计的流量信息, 配置所述的 IP设备;  a. Configure the IP device according to the required traffic information;
b、 根据步骤 a中的配置信息分别启动所述 IP设备各接口的出流量 统计上报和入流量统计上报功能, 并将上述配置信息中需要的多种原始 流量数据发送到用于流量统计的计算机。  b. According to the configuration information in step a, the outbound traffic statistics reporting and inbound traffic statistics reporting functions of each interface of the IP device are respectively activated, and a plurality of types of raw traffic data required in the above configuration information are sent to a computer for traffic statistics. .
所述统计策略包括: 按被统计数据的关键字段和值字段要求进行分 类的数据聚合方式; 统计结果的输出方式, 包含文本、 数据库及二进制 输出方式; 以及, 统计时间的长度。  The statistical strategy includes: a data aggregation method that classifies data according to key fields and value fields of the data being counted; an output method of statistical results, including text, database, and binary output methods; and a length of statistical time.
所述步骤( 1 )进一步包括, 所述计算机接收到由 IP设备发来的原 始流量数据后, 先按所述统计策略中的数据聚合方式对这些原始流量数 据进行校验, 过滤掉不需要的原始流量数据, 再将剩余的原始流量数据 存入数据緩存队列。  The step (1) further includes: after receiving the original traffic data sent by the IP device, the computer first checks the original traffic data according to a data aggregation method in the statistical policy, and filters out unnecessary The original traffic data is then stored in the data cache queue.
所述步驟(2 )进一步包括, 所述计算机从所述数据緩存队列中读 取原始流量数据后, 先按所述统计策略中的数据聚合方式对所读取的数 据进行分类预处理, 再按所述的统计策略对预处理后的数据进行统计处 理。  The step (2) further includes: after the computer reads the original traffic data from the data cache queue, first classify the read data according to a data aggregation method in the statistical strategy, and then press The statistical strategy performs statistical processing on the pre-processed data.
所述步骤(2 ) )进一步包括, 判断统计时间是否到达所述统计策略 中的统计时间长度, 如果是, 则按所述统计策略中的输出方式输出所述 统计时间长度内的统计结果, 并保存在所述计算机硬盘或其它存储介质 中, 否则, 返回步骤(1 )。 The step (2)) further includes determining whether the statistical time reaches a statistical time length in the statistical strategy, and if yes, outputting a statistical result within the statistical time length according to an output manner in the statistical strategy, and Saved on the computer hard disk or other storage medium , Otherwise, return to step (1).
所述被统计的 IP设备可以是一个或多个。  The counted IP devices may be one or more.
所述 IP设备可以是将多个 IP设备的地址或名称定义为一个整体统 计对象的 IP设备组。  The IP device may be an IP device group in which addresses or names of multiple IP devices are defined as a whole statistical object.
该方法还包括以下在线管理步骤:  The method also includes the following online management steps:
(a) 实时监听由 IP网络发来的控制命令;  (a) Real-time monitoring of control commands from the IP network;
(b) 收到控制命令后, 进行权限鉴定;  (b) After receiving the control order, conduct authority verification;
(c) 如果权限鉴定通过, 则进行控制协议的分析处理, 然后判断所 收到 .的是配置命令还是查询命令;  (c) If the authority authentication is passed, analyze the control protocol, and then determine whether the received command is a configuration command or a query command;
(d) 如果是配置命令, 则在线调整数据统计模块和数据接收模块的 工作状态;  (d) if it is a configuration command, adjust the working status of the data statistics module and the data receiving module online;
(e) 如果是查询命令, 则直接从所述计算机硬盘或其它存储介质的 数据文件或数据库中取出需要查询的数据;  (e) if it is a query command, directly fetching the data to be queried from the data file or database of the computer hard disk or other storage medium;
(f)将上述配置命令或查询命令的处理结果按协议封装后, 经控制 端口发送到控制命令发出者。 (f) After encapsulating the processing result of the above configuration command or query command according to the protocol, it is sent to the control command issuer via the control port.
与现有技术相比, 本发明具有以下优点:  Compared with the prior art, the present invention has the following advantages:
a、 由于本发明不需要增加设备投资, 通过纯软件实现, 所以管理 计算机与 IP设备之间的网络连接自由、 简单, 易于设计维护;  a. Since the present invention does not need to increase equipment investment and is implemented by pure software, the network connection between the management computer and the IP equipment is free, simple, and easy to design and maintain;
b、 本发明可同时对多台设备进行管理、 流量统计, 其统计结果可 以作为监控和计费的基础;  b. The present invention can simultaneously manage and traffic statistics on multiple devices, and the statistical results can be used as the basis for monitoring and billing;
c、 由于本发明可支持源地址 /目的地址、 上下行流量、 业务类型、 等详细流量信息, 从而方便进行小区业务区分计费;  c. Since the present invention can support detailed traffic information such as source address / destination address, uplink and downlink traffic, service type, etc., thereby facilitating differentiated charging of cell services;
d、 由于本发明可提供多设备基于端口的详细出入流量信息, 所以 能够支持 VPN (虚拟私有网络)组网方式下的流量计费。 图 1是现有技术中使用 snmp协议实现流量统计的示意图; 图 2是现有技术中通过增设报文转发统计设备实现流量统计的示意 图; d. Since the present invention can provide detailed port-based inbound and outbound traffic information of multiple devices, it can support traffic accounting in a VPN (Virtual Private Network) networking mode. FIG. 1 is a schematic diagram of implementing traffic statistics using the snmp protocol in the prior art; FIG. 2 is a schematic diagram of implementing traffic statistics by adding a packet forwarding statistics device in the prior art;
图 3是本发明流量统计方法的网络连接原理示意图;  3 is a schematic diagram of a network connection principle of the traffic statistics method of the present invention;
图 4是本发明中网管流量统计的原理框图;  4 is a principle block diagram of network management traffic statistics in the present invention;
图 5是本发明流量统计方法中的完整统计流程示意图;  FIG. 5 is a schematic diagram of a complete statistical process in a traffic statistics method of the present invention;
图 6是图 4中所示数据接收模块的工作流程示意图;  Figure 6 is a schematic diagram of the workflow of the data receiving module shown in Figure 4;
图 7是图 4中所示数据统计模块的工作流程示意图;  FIG. 7 is a schematic diagram of the work flow of the data statistics module shown in FIG. 4;
图 8是图 4中所示在线管理模块的工作流程示意图。 实施本发明的方式 下面结合附图及具体实施例对本发明进行详细描述。  FIG. 8 is a schematic diagram of the workflow of the online management module shown in FIG. 4. Mode for Carrying Out the Invention The present invention is described in detail below with reference to the drawings and specific embodiments.
本实施例流量统计方法的网络连接原理如图 3所示, 其中用于网络 /流量统计记录的计算机 301、 装有基于流量的计费软件系统的计算机 302和装有网管 /性能分析及网络监控软件的计算机 303与多个 IP设备之 间通过 IP网络连接。上述的三个计算机的功能也可由一个网管计算机来 实现。  The network connection principle of the traffic statistics method of this embodiment is shown in FIG. 3, where a computer 301 for network / traffic statistics recording, a computer 302 equipped with a traffic-based accounting software system, and network management / performance analysis and network monitoring software The computer 303 is connected to multiple IP devices through an IP network. The functions of the above three computers can also be realized by a network management computer.
本发明的方法可在现有硬件的基础上, 通过纯软件实现。 网络中的 The method of the present invention can be implemented by pure software on the basis of existing hardware. In the network
IP设备可统计自身的详细流量, 生成原始统计数据。 以下是本发明所述 方法的具体步驟: IP devices can count their own detailed traffic and generate raw statistics. The following are the specific steps of the method according to the invention:
a、 在需要统计详细流量的 IP设备上增加网流(NS, Net Stream ) 设备软件模块,该模块可在 IP报文转发的过程中提取信息,可区分流量 的源 /目的地址、 源 /目的自治域、 服务类别 (TOS )、 源 /目的 IP端口、 本 IP设备的报文出入接口等,该 NS设备软件模块可根据配置分别启动 IP设备各接口的出流量统计上报和入流量统计上 4艮功能; a. Add a network flow (NS, Net Stream) device software module to the IP device that needs to collect detailed traffic statistics. This module can extract information during the process of IP packet forwarding, and can distinguish the source / destination address and source / destination of the traffic. Autonomous domain, service class (TOS), source / destination IP port, This NS device software module can enable the outbound traffic statistics reporting and inbound traffic statistics reporting function of each interface of the IP equipment according to the configuration;
b、 根据需要统计的流量信息, 配置需进行流量统计的 IP设备, 也 就是将配置信息发送到需要流量统计的 IP设备的 IP地址和端口, 确定 需统计哪些 IP设备的哪些数据; 这些 IP设备的网流设备软件模块根据 上述的配置信息分别启动所述 IP设备各接口的出流量统计上报和入流 量统计上报功能, 并将上述配置信息中需要的多种原始流量数据发送到 用于网络 /流量统计记录的计算机 301。  b. According to the required traffic information, configure the IP devices that need to be counted, that is, send the configuration information to the IP addresses and ports of the IP devices that need to be counted, and determine which IP devices need to be counted and which data; The network flow device software module starts the outbound traffic statistics reporting and inbound traffic statistics reporting functions of each interface of the IP device according to the above configuration information, and sends a variety of raw traffic data required in the above configuration information to Computer 301 for traffic statistics recording.
以上两步骤操作是实现后续步驟的基础。  The above two-step operation is the basis for the subsequent steps.
本发明中,用于网络 /流量统计记录的计算机 301中装有网管流量统 计软件,该网管流量统计软件的原理如图 4所示,其中包括三个子模块: 数据接收模块 401、 数据统计模块 402 以及在线管理模块 403。 其中, 数据接收模块 401接收緩存队列发来的原始流量数据;数据统计模块 402 根据定制的统计策略, 统计处理步骤 b中所述的原始流量数据, 并将输 出的统计数据存储在用于网络 /流量统计记录的计算机 301 的硬盘或其 它存储介质中; 在线管理模块 403监听管理软件发来的管理命令, 对数 据接收模块 401和数据统计模块 402进行在线控制。 本发明中的统计策 略包括: 按被统计数据的关键字段和值字段要求进行分类的数据聚合方 式; 统计结果的输出方式 (例如包含文本、 数据库及二进制等输出方式); 以及统计时间的长度。  In the present invention, a computer 301 for network / flow statistics recording is provided with network management flow statistics software. The principle of the network management flow statistics software is shown in FIG. 4, which includes three sub-modules: a data receiving module 401 and a data statistics module 402. And online management module 403. The data receiving module 401 receives the original traffic data from the cache queue; the data statistics module 402 statistically processes the original traffic data described in step b according to a customized statistical strategy, and stores the output statistical data in a network / The traffic statistics record is stored in the hard disk or other storage medium of the computer 301. The online management module 403 monitors the management commands sent by the management software, and controls the data receiving module 401 and the data statistics module 402 online. The statistical strategy in the present invention includes: a data aggregation method that classifies data according to the key and value fields of the data being counted; an output method of the statistical result (such as an output method including text, database, and binary); and the length of the statistical time .
本发明流量统计方法中的完整的统计流程如图 5所示, 其中包括数 据接收模块 401的工作流程和数据统计模块 402的工作流程。 图 6是数 据接收模块 401的工作流程示意图, 从图 4和图 6中可以看出, 用于网 络 /流量统计记录的计算机通过数据接收模块 401与多个 IP设备连接, 并同时监听多个端口, 该数据接收模块 401的工作流程为以下步骤: 501、 接收由步骤 b中所述的多个 IP设备发来的原始流量数据;The complete statistical process in the traffic statistics method of the present invention is shown in FIG. 5, which includes the workflow of the data receiving module 401 and the workflow of the data statistics module 402. FIG. 6 is a schematic diagram of the work flow of the data receiving module 401. As can be seen from FIG. 4 and FIG. 6, the computer for network / traffic statistics recording is connected to multiple IP devices through the data receiving module 401, and simultaneously monitors multiple ports. The work flow of the data receiving module 401 is the following steps: 501. Receive raw traffic data sent by multiple IP devices described in step b.
502、 按预先定制的统计策略中的数据聚合方式对这些原始流量数 据进行校验, 过滤掉用户不需要的原始流量数据; 502. The original traffic data is verified according to a data aggregation manner in a pre-customized statistical strategy, and the original traffic data that is not required by the user is filtered out;
503、 将剩余的原始流量数据存入数据緩存队列, 等待数据统计模 块取用。  503. Store the remaining original traffic data in the data cache queue, and wait for the data statistics module to retrieve it.
图 7是数据统计模块 402的工作流程示意图, 数据统计模块 402的 工作流程包括以下步骤:  FIG. 7 is a schematic diagram of the workflow of the data statistics module 402. The workflow of the data statistics module 402 includes the following steps:
504、 从步骤 503 中所述数据接收模块 401的数据緩存队列中读取 原始流量数据;  504. Read the original traffic data from the data buffer queue of the data receiving module 401 described in step 503.
505、 按预先定制的统计策略的数据聚合方式对所读取的原始流量 数据进行预处理, 例如: 按发送此原始流量数据的设备地址, 接收此数 据的端口号, 原始数据记录中的统计类型, 分出 /入接口统计; 按数据类 型, 设备支持的统计数据记录格式; 按原始数据相关的设备物理信息, 如槽位号;以及按原始数据产生的时间信息,如设备启动相对时间, UTC 时间 (从 1970年以来的秒数)进行预处理, 将原始数据初步分为多种 所需类型。  505: Preprocess the read raw traffic data according to a data aggregation method of a pre-customized statistical strategy, for example, according to the address of the device sending the raw traffic data, the port number to receive the data, and the type of statistics in the raw data record. Statistics of the outgoing / incoming interface; according to the data type, the device supports the statistical data record format; according to the physical data of the device, such as the slot number; and the time information generated by the original data, such as the relative start time of the device, UTC The time (seconds since 1970) was pre-processed to preliminarily classify the raw data into various required types.
506、 按照预先定制的统计策略, 对上述预处理后的数据分别进行 统计处理, 图 7中只画出了三种统计策略, 实际上可以有多种不同的统 计策略, 通过定制的统计策略, 可获得按不同主键值聚合方式进行流量 统计的统计结果, 由此可按流量的源地址 /目的地址, 源地址 /目的地址 自治域、 服务类别 (TOS )、 源地址 /目的地址 IP端口、 转发设备的报文 出入接口、 应用层协议或网络层协议等进行区分并进行相应的流量统 计。  506. Perform statistical processing on the pre-processed data according to a pre-customized statistical strategy. In FIG. 7, only three statistical strategies are drawn. In fact, there can be multiple different statistical strategies. Through customized statistical strategies, You can obtain the statistical results of traffic statistics according to the aggregation of different primary key values. From this, you can use the source address / destination address, source address / destination address autonomous domain, service type (TOS), source address / destination address IP port, The inbound and outbound packets, application layer protocols, or network layer protocols of the forwarding device are distinguished, and corresponding traffic statistics are performed.
507、 当对不同统计策略的数据进行统计处理的时间达到预定的统 计时间长度后, 例如可设定每 10分钟为一个时间段, 再按定制的输出 方式分别以数据文件、 数据库数据或二进制的方式输出这 10分钟内的 统计结果,并保存在用于网络 /流量统计记录的计算机 301硬盘或其它存 储介质中, 这就得到了所需的统计结果。 计算机 302上的基于流量的计 费软件系统和计算机 303 上的网管 /性能分析及网络监控软件可通过网 络文件共享方式或远程访问数据库使用这些统计结果, 并可使用预定义 的管理协议, 对流量统计软件进行远程在线管理。 507. After the time for performing statistical processing on the data of different statistical strategies reaches a predetermined statistical time length, for example, a time period can be set every 10 minutes, and then the output is customized. Output the statistical results within 10 minutes in the form of data file, database data or binary, and save them to the computer 301 hard disk or other storage medium for network / traffic statistics recording. This will get the required statistical results. . The traffic-based accounting software system on computer 302 and the network management / performance analysis and network monitoring software on computer 303 can use these statistical results through network file sharing or remote access to the database, and can use predefined management protocols to control traffic Statistical software for remote online management.
图 8为在线管理模块的工作流程, 如图 8所示, 在线管理流程相对 于图 5中所示的统计流程有一定的独立性, 其具体步骤如下:  Figure 8 shows the workflow of the online management module. As shown in Figure 8, the online management process has some independence from the statistical process shown in Figure 5. The specific steps are as follows:
801、 实时监听由 IP网络发来的控制命令;  801. Real-time monitor the control command sent by the IP network.
802、 收到控制命令后, 进行权限鉴定;  802. Perform permission authentication after receiving the control command.
803、 如果权限鉴定通过, 则进行控制协议的分析处理, 然后判断 所收到的是一个配置命令还是查询命令;  803: If the authority authentication is passed, analyze the control protocol, and then determine whether the received configuration command or query command is received.
804、 如果是配制命令, 则在线调整数据统计模块和数据接收模块 的工作状态, 例如调配统计策略;  804. If it is a preparation command, adjust the working status of the data statistics module and the data receiving module online, for example, deploy a statistical strategy;
805、 如果是查询命令, 则直接从用于网络 /流量统计记录的计算机 301硬盘或其它存储介质的数据文件或数据库中取出需要查询的数据; 805. If it is a query command, directly retrieve the data to be queried from the data file or database of the computer 301 hard disk or other storage medium for network / traffic statistics recording;
806、 将上述配置命令或查询命令的处理结果按协议封装后, 经控 制端口发送到控制命令发出者。 806. After the processing result of the configuration command or the query command is encapsulated according to the protocol, it is sent to the control command issuer through the control port.
可见, 在线管理流程会影响上述步骤 b中的初始配置, 例如影响对 IP设备的流量统计配置;另外还可查询上述步骤 507中所得的统计结果, 将统计结果输出到控制命令的发出者, 以便针对统计结果做出其它如计 费、 监控等操作。  It can be seen that the online management process will affect the initial configuration in step b above, for example, it will affect the traffic statistics configuration of the IP device; in addition, the statistical result obtained in step 507 may be queried, and the statistical result will be output to the issuer of the control command, so that Perform other operations such as billing and monitoring based on statistical results.
综上所述, 本发明的方法在不增加网络设备的情况下, 根据需要定 制统计策略,可获得多个 IP设备的完善详细的流量统计数据。本发明中 所涉及的网管流量统计软件和以之为基础的网管性能分析监控软件与 计费软件相互独立, 可根据需要安装在一台或多台计算机上。 根据 IP 设备的自身特性, 本发明的流量统计方法可区分上行 /下行流量, 并可同 时统计; 还可同时支持网络上多设备的分組统计; 另外, 本发明的步骤In summary, the method of the present invention can customize the statistical strategy according to needs without adding network equipment, and can obtain comprehensive and detailed traffic statistics of multiple IP equipment. The network management flow statistics software and the network management performance analysis monitoring software based on the present invention and The billing software is independent of each other and can be installed on one or more computers as needed. According to the characteristics of the IP device, the traffic statistics method of the present invention can distinguish uplink / downlink traffic and can simultaneously count; it can also support group statistics of multiple devices on the network at the same time; in addition, the steps of the present invention
506中, 还可扩展的以下 22种数据聚合方式: In 506, the following 22 data aggregation methods can also be extended:
(1)、 源节点方式, 以源 IP地址为关键字聚合;  (1) Source node mode, using source IP address as a key aggregation;
(2)、 目的节点方式, 以目的 IP地址为关键字聚合;  (2) The destination node mode uses the destination IP address as a key aggregation;
(3)、 主机节点方式, 以源、 目的 IP地址为关键字聚合;  (3) Host node mode, using source and destination IP addresses as keywords for aggregation;
(4)、 源端口方式, 以源端口号为关键字聚合;  (4) Source port mode, using source port number as a key aggregation;
(5)、 目的端口方式, 以目的端口号为关键字聚合;  (5) The destination port mode uses the destination port number as a key aggregation;
(6)、 协议方式, 以协议名称为关键字聚合;  (6) Agreement method, using the name of the agreement as a keyword aggregation;
(7)、 详细目的节点方式, 以目的 IP地址、 源端口号、 目的端口号 以及协议名称为关键字聚合;  (7) Detailed destination node mode, using destination IP address, source port number, destination port number, and protocol name as keywords for aggregation;
(8)、 详细主机节点方式, 以源 IP地址、 目的 IP地址、 源端口号、 目的端口号以及协议名称为关键字聚合;  (8) Detailed host node method, using source IP address, destination IP address, source port number, destination port number, and protocol name as keywords for aggregation;
(9)、 详细接口方式, 以源 IP地址、 目的 IP地址、 输入接口索引、 输出接口索引以及下一跳 IP地址五个关键字聚合;  (9) Detailed interface mode, aggregated by five keywords: source IP address, destination IP address, input interface index, output interface index, and next hop IP address;
(10)、 话单服务方式, 以源 IP地址、 目的 IP地址、 源端口号、 目 的端口号、 协议类型以及服务类型六个关键字聚合;  (10) The bill service method is aggregated with six keywords: source IP address, destination IP address, source port number, destination port number, protocol type, and service type;
(11)、 自治域聚合方式, 以源自治域号和目的自治域号为关键字聚 合;  (11) Autonomous domain aggregation mode, using the source autonomous domain number and the destination autonomous domain number as keywords to aggregate;
(12)、 网络矩阵方式, 以输入接口索引、输出接口索引、 源 IP子网、 目的 IP子网、源 IP地址的子网掩码以及目的 IP地址的子网掩码六个关 键字聚合;  (12) The network matrix mode is aggregated by six keywords: input interface index, output interface index, source IP subnet, destination IP subnet, subnet mask of source IP address, and subnet mask of destination IP address.
(13)、 详细源节点方式, 以源 IP地址、 源端口号、 目的端口号以及 协议名称四个关键字聚合; (14)、 详细自治系统矩阵方式, 以源 IP地址、 目的 IP地址、 源端 口号、 目的端口号、 协议名称、 输入接口索引、 输出接口索引以及源自 治系统号和目的自治系统号九个关键字聚合; (13) Detailed source node mode, aggregated by four keywords: source IP address, source port number, destination port number, and protocol name; (14) Detailed autonomous system matrix method, with nine keys: source IP address, destination IP address, source port number, destination port number, protocol name, input interface index, output interface index, source autonomous system number and destination autonomous system number Word aggregation
(15)、 简单自治系统聚合方式, 以接口 SNMP索引、输出接口索引、 源自治系统号和目的自治系统号四个关键字聚合;  (15) A simple autonomous system aggregation method, using the four keywords of interface SNMP index, output interface index, source autonomous system number and destination autonomous system number to aggregate;
(16)、 筒单协议端口聚合方式, 以源端口号、 目的端口号、 协议名 称聚合;  (16) A single protocol port aggregation method, which uses source port number, destination port number, and protocol name to aggregate;
(17)、 筒单源前缀聚合方式, 以输入接口索引、 源自治系统号、 源 IP子网和源 IP地址的子网掩码四个关键字聚合;  (17) A single-source prefix aggregation method, in which four keywords, namely, an interface index, a source autonomous system number, a source IP subnet, and a source IP address subnet mask are used to aggregate;
(18)、 目的前缀聚合方式, 以输出接口 SNMP索引、 目的自治系统 号、 目的 IP子网和目的 IP地址的子网掩码四个关键字聚合;  (18) The destination prefix aggregation method is to aggregate four keywords: an output interface SNMP index, a destination autonomous system number, a destination IP subnet, and a destination IP address subnet mask.
(19)、 前缀聚合方式, 以输入接口索引、 输出接口索引、 源自治系 统号、 目的自治系统号、 源 IP子网、 目的 IP子网、 源 IP地址的子网掩 码和目的 IP地址的子网掩码八个关键字聚合;  (19) The prefix aggregation method includes input interface index, output interface index, source autonomous system number, destination autonomous system number, source IP subnet, destination IP subnet, source IP address subnet mask, and destination IP address. Subnet mask aggregation of eight keywords;
(20)、 自治系统主机矩阵方式, 以源 IP地址、 目的 IP地址、 源自 治系统号和目的自治系统号四个关键字聚合;  (20). The host matrix method of the autonomous system is aggregated with four keywords: source IP address, destination IP address, source system number and destination autonomous system number.
(21)、 主机接口矩阵方式, 以源 IP地址、 目的 IP地址、 协议名称、 输入接口索引和输出接口索引聚合;  (21) The host interface matrix mode is aggregated by source IP address, destination IP address, protocol name, input interface index and output interface index;
(22)、 详细话单方式, 以源 IP地址、 目的 IP地址、 源端口号、 目 的端口号、 协议名称、 服务类型、 输入接口索引和输出接口索引八个关 键字聚合。  (22) Detailed call list mode, aggregated by eight keywords: source IP address, destination IP address, source port number, destination port number, protocol name, service type, input interface index and output interface index.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉该技术的人在本发明所揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。  The above are only the preferred embodiments of the present invention, but the scope of protection of the present invention is not limited to this. Anyone familiar with the technology can easily think of changes or replacements within the technical scope disclosed by the present invention. , Should be covered within the protection scope of the present invention.

Claims

权利要求书 Claim
1、 一种 IP设备的网络流量统计方法, 其中用于流量统计的计算机 与被统计的 IP设备之间通过 IP网络连接, 其特征在于, 该方法包括以 下步骤: 1. A network traffic statistics method for an IP device, wherein a computer used for traffic statistics is connected to an IP device being counted through an IP network, and the method includes the following steps:
(1) 所述的用于流量统计的计算机接收由 IP设备发来的原始流量数 据, 存入数据緩存队列;  (1) The computer for traffic statistics receives the original traffic data sent by the IP device, and stores the raw traffic data into a data cache queue;
(2)从所述数据緩存队列中读取原始流量数据, 并按统计策略分别 进行统计处理, 输出统计结果。  (2) Read the original traffic data from the data cache queue, perform statistical processing according to the statistical strategy, and output the statistical result.
2、 根据权利要求 1所述的方法, 其特征在于, 在步骤( 1 )之前还 包括以下步骤:  2. The method according to claim 1, further comprising the following steps before step (1):
a、 根据需要统计的流量信息, 配置所述的 IP设备;  a. Configure the IP device according to the required traffic information;
b、 根据步骤 a中的配置信息分别启动所述 IP设备各接口的出流量 统计上报和入流量统计上报功能, 并将上述配置信息中需要的多种原始 流量数据发送到用于流量统计的计算机。  b. According to the configuration information in step a, the outbound traffic statistics reporting and inbound traffic statistics reporting functions of each interface of the IP device are respectively activated, and a plurality of types of raw traffic data required in the above configuration information are sent to a computer for traffic statistics. .
3、 根据权利要求 1 所述的方法, 其特征在于, 所述的原始流量数 据是由 IP设备上的网流设备软件模块提取的。  3. The method according to claim 1, wherein the original traffic data is extracted by a network flow device software module on the IP device.
4、 根据权利要求 1所述的方法, 其特征在于, 所述统计策略包括: 按被统计数据的关键字段和值字段要求进行分类的数据聚合方式; 统计 结果的输出方式, 包含文本、 数据库及二进制输出方式; 以及, 统计时 间的长度。  4. The method according to claim 1, wherein the statistical strategy comprises: a data aggregation method for classifying according to a key field and a value field of the data to be counted; an output method of the statistical result, including a text and a database And binary output mode; and, the length of statistical time.
5、 根据权利要求 4所述的方法, 其特征在于, 所述步骤(1 )进一 步包括,所述计算机接收到由 IP设备发来的原始流量数据后,先按所述 统计策略中的数据聚合方式对这些原始流量数据进行校验, 过滤掉不需 要的原始流量数据, 再将剩余的原始流量数据存入数据緩存队列。 5. The method according to claim 4, characterized in that the step (1) further comprises: after the computer receives the original traffic data sent by the IP device, first aggregate the data according to the data in the statistical policy. This method verifies these original traffic data, filters out unnecessary original traffic data, and stores the remaining original traffic data in the data cache queue.
6、 根据权利要求 4所述的方法, 其特征在于, 所述步骤(2 )进一 步包括, 所述计算机从所述数据緩存队列中读取原始流量数据后, 先按 所述统计策略中的数据聚合方式对所读取的数据进行分类预处理, 再按 所述的统计策略对预处理后的数据进行统计处理。 6. The method according to claim 4, wherein the step (2) further comprises: after the computer reads the original traffic data from the data buffer queue, first according to the data in the statistical policy The read data is classified and preprocessed in an aggregation mode, and then the preprocessed data is statistically processed according to the statistical strategy described.
7、 根据权利要求 6所述的方法, 其特征在于, 所述步骤(2 ) )进一 步包括, 判断统计时间是否到达所述统计策略中的统计时间长度, 如果 果, 并保存在所述计算机硬盘或其它存储介质中, 否则, 返回步骤(1 )。  7. The method according to claim 6, characterized in that the step (2)) further comprises: judging whether the statistical time reaches the statistical time length in the statistical strategy, and if it is, save it on the computer hard disk Or other storage media, otherwise, return to step (1).
8、根据权利要求 1-7中任一项所述的方法, 其特征在于, 所述被统 计的 IP设备可以是一个或多个。  8. The method according to any one of claims 1 to 7, wherein the number of IP devices to be counted may be one or more.
9、 根据权利要求 1-7中任一项所述的方法, 其特征在于, 所述 IP 设备可以是将多个 IP设备的地址或名称定义为一个整体统计对象的 IP 设备组。  9. The method according to any one of claims 1 to 7, wherein the IP device is an IP device group that defines addresses or names of multiple IP devices as an overall statistical object.
10、 根据权利要求 1-7中任一项所述的方法, 其特征在于, 该方法 还包括以下在线管理步驟:  10. The method according to any one of claims 1 to 7, wherein the method further comprises the following online management steps:
(a) 实时监听由 IP网络发来的控制命令;  (a) Real-time monitoring of control commands from the IP network;
(b) 收到控制命令后, 进行权限鉴定;  (b) After receiving the control order, conduct authority verification;
(c) 如果权限鉴定通过, 则进行控制协议的分析处理, 然后判断所 收到的是配置命令还是查询命令;  (c) If the authority authentication is passed, analyze the control protocol and determine whether the configuration command or query command is received;
(d) 如果是配置命令, 则在线调整数据统计模块和数据接收模块的 工作状态;  (d) if it is a configuration command, adjust the working status of the data statistics module and the data receiving module online;
(e) 如果是查询命令, 则直接从所述计算机硬盘或其它存储介质的 数据文件或数据库中取出需要查询的数据;  (e) if it is a query command, directly fetching the data to be queried from the data file or database of the computer hard disk or other storage medium;
(f)将上述配置命令或查询命令的处理结果按协议封装后, 经控制 端口发送到控制命令发出者。  (f) After encapsulating the processing result of the above configuration command or query command according to the protocol, it is sent to the control command issuer via the control port.
PCT/CN2003/000959 2002-11-14 2003-11-13 Network traffic statistics method of ip device WO2004045155A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2003284790A AU2003284790A1 (en) 2002-11-14 2003-11-13 Network traffic statistics method of ip device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN02152505.6 2002-11-14
CNB021525056A CN100438411C (en) 2002-11-14 2002-11-14 Network traffic statistical method of IP device

Publications (1)

Publication Number Publication Date
WO2004045155A1 true WO2004045155A1 (en) 2004-05-27

Family

ID=32304082

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2003/000959 WO2004045155A1 (en) 2002-11-14 2003-11-13 Network traffic statistics method of ip device

Country Status (3)

Country Link
CN (1) CN100438411C (en)
AU (1) AU2003284790A1 (en)
WO (1) WO2004045155A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8592895B2 (en) 2005-06-10 2013-11-26 Fairchild Semiconductor Corporation Field effect transistor with source, heavy body region and shielded gate
WO2014075549A1 (en) * 2012-11-16 2014-05-22 Hangzhou H3C Technologies Co., Ltd. Traffic Distribution for an Edge Device
CN106095870A (en) * 2016-06-06 2016-11-09 乐视控股(北京)有限公司 Data balancing verification method and device
CN113472881A (en) * 2021-06-30 2021-10-01 四川虹美智能科技有限公司 Statistical method and device for online terminal equipment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006279636A (en) * 2005-03-30 2006-10-12 Hitachi Ltd Consistency guarantee management system for inter-client communication log
CN100365996C (en) * 2005-08-06 2008-01-30 华为技术有限公司 Method for statistics of service flow based on IPv6
CN101197687B (en) * 2006-12-04 2011-04-27 华为技术有限公司 Method and system for network flux statistics
CN101202700B (en) * 2006-12-12 2011-08-03 华为技术有限公司 Method, apparatus and system for flow control of point-to-point file sharing
CN104426712A (en) * 2013-08-27 2015-03-18 中兴通讯股份有限公司 Traffic statistical method and device, and network device
CN103618637A (en) * 2013-12-17 2014-03-05 昆山中创软件工程有限责任公司 Network flow value acquisition method and device
CN105490865A (en) * 2014-09-17 2016-04-13 中兴通讯股份有限公司 Method and device for implementing flow analysis
CN105119768A (en) * 2015-06-26 2015-12-02 华为技术有限公司 Field-programmable gate array FPGA and data storage method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001001272A2 (en) * 1999-06-30 2001-01-04 Apptitude, Inc. Method and apparatus for monitoring traffic in a network
WO2001010109A2 (en) * 1999-07-31 2001-02-08 Telefonaktiebolaget Lm Ericsson (Publ) Charging control in a mobile telecommunications system
CN1395391A (en) * 2001-07-09 2003-02-05 深圳市中兴通讯股份有限公司 Charging method for connecting wideband into network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001001272A2 (en) * 1999-06-30 2001-01-04 Apptitude, Inc. Method and apparatus for monitoring traffic in a network
WO2001010109A2 (en) * 1999-07-31 2001-02-08 Telefonaktiebolaget Lm Ericsson (Publ) Charging control in a mobile telecommunications system
CN1395391A (en) * 2001-07-09 2003-02-05 深圳市中兴通讯股份有限公司 Charging method for connecting wideband into network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8592895B2 (en) 2005-06-10 2013-11-26 Fairchild Semiconductor Corporation Field effect transistor with source, heavy body region and shielded gate
WO2014075549A1 (en) * 2012-11-16 2014-05-22 Hangzhou H3C Technologies Co., Ltd. Traffic Distribution for an Edge Device
CN106095870A (en) * 2016-06-06 2016-11-09 乐视控股(北京)有限公司 Data balancing verification method and device
CN113472881A (en) * 2021-06-30 2021-10-01 四川虹美智能科技有限公司 Statistical method and device for online terminal equipment
CN113472881B (en) * 2021-06-30 2023-08-15 四川虹美智能科技有限公司 Statistical method and device for online terminal equipment

Also Published As

Publication number Publication date
AU2003284790A1 (en) 2004-06-03
CN1501622A (en) 2004-06-02
CN100438411C (en) 2008-11-26

Similar Documents

Publication Publication Date Title
US11582593B2 (en) Adapting network policies based on device service processor configuration
US6308148B1 (en) Network flow data export
US8630630B2 (en) Enhanced roaming services and converged carrier networks with device assisted services and a proxy
EP2461520B1 (en) Service-centric communication network monitoring
US6892309B2 (en) Controlling usage of network resources by a user at the user's entry point to a communications network based on an identity of the user
US8275830B2 (en) Device assisted CDR creation, aggregation, mediation and billing
CN100369418C (en) Statistical method of data stream
US20060080434A1 (en) Dynamic configuration of network devices to enable data transfers
AU2011305456B2 (en) Service offer set publishing to device agent with on-device service selection
CN101626323A (en) Method and device for monitoring network data flow
WO2003067372A2 (en) Controlling concurrent usage of network resources by multiple users at an entry point to a communications network based on identities of the users
WO2004045155A1 (en) Network traffic statistics method of ip device
WO2004040842A1 (en) Method of data gathering of a user network
US7855972B2 (en) Creating, modifying and storing service abstractions and role abstractions representing one or more packet rules
WO2001067679A1 (en) A platform of information switch
AU2010208316B2 (en) Device assisted CDR creation, aggregation, mediation and billing
US20060149841A1 (en) Application session management for flow-based statistics
WO2016109970A1 (en) Network entity and service policy management method
WO2021121086A1 (en) Traffic scheduling method, electronic device and storage medium
CN109768900B (en) Method and system for processing second-level performance of network element
US7865410B1 (en) Aggregation of user usage data for accounting systems in dynamically configured networks
JP4065436B2 (en) Method and system for building and communicating data about network access and service transactions in a communication network
US7457855B2 (en) Network configuration management
KR100277708B1 (en) Traffic management method using internet terminal in next generation intelligent network
KR100722656B1 (en) Real-time service qulity providing system, media, and method thereof

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SC SD SE SG SK SL TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP

WWW Wipo information: withdrawn in national office

Country of ref document: JP