CN100589403C - Method for implementing accounting multicase data flow based on user - Google Patents

Method for implementing accounting multicase data flow based on user Download PDF

Info

Publication number
CN100589403C
CN100589403C CN 200510114772 CN200510114772A CN100589403C CN 100589403 C CN100589403 C CN 100589403C CN 200510114772 CN200510114772 CN 200510114772 CN 200510114772 A CN200510114772 A CN 200510114772A CN 100589403 C CN100589403 C CN 100589403C
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
multicast
user
traffic
time
method
Prior art date
Application number
CN 200510114772
Other languages
Chinese (zh)
Other versions
CN1956389A (en )
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
Grant date

Links

Abstract

This invention relates to a method for estimating multicast data flow with user as a unit in a network device, which relates to network devices using mainstream ASIC chips including a router and a three-layer exchanger. This invention includes: recording the on-line state of each user by a network device and joining and leaving time in each group and sampling and recording multicast data flow in real time, which estimates multicast dataflow with user as a unit, increases sample frequency according to the rule of estimation of sample to stabilize data in an accurate sphere to guarantee the stability and reliability of data.

Description

一种基于用户实现统计组播数据流量的方法 One way to achieve user of multicast traffic based

技术领域 FIELD

本发明涉及一种在网络设备中,以用户为单位统计组播数据流量的方法。 The present invention relates to a network device, a method of multicast unit of user data traffic. 本发明所述方法涉及到各种使用主流ASIC芯片的网络设备,包括路由器和三层交换机等。 The present invention relates to a method of using a variety of network devices mainstream ASIC chip, comprising three routers and switches.

背景技术 Background technique

组播是解决点到多点传播并且不会增加额外带宽的最佳方案。 Multicast is a point-spread and does not solve the best solution to increase the extra bandwidth.

随着网络的普及以及带宽的增加,很多特色服务,尤其是收费服务(如网络电视、网络点播等)都依赖它完成,这些业务都是以后运营商的利润增长点。 With the increased popularity of the network and bandwidth, many special services, especially fee-based services (such as network television, network-on-demand, etc.) are dependent on the completion of it, these businesses are operating profit growth point of business in the future. 可以预见在不久的将来,组播的运用将会更加广泛。 It is foreseeable that in the near future, the use of multicast will be more extensive.

目前,限制组播应用的一个关键技术就是基于用户的组播数据流量统计。 Currently, the limit multicast applications is a key technology that is user-based multicast traffic statistics. 这是局方计费的基础,也是运营商利润关键增长点。 This is the basis of the Bureau billing, operators profit is the key to growth. 如果能够彻底解决这个问题,必将极大促进组播的使用。 If we can solve this problem, it will greatly promote the use of multicast.

基于用户流量的统计过程非常复杂,而且需要消耗很大资源,因此,迄今还没有很好的解决方法。 Based on statistical process user traffic is very complex and need to consume a lot of resources, so far there is no good solution.

发明内容 SUMMARY

针对上述问题,本发明的目的在于提供一种基于用户实现统计组播数据流量的方法。 For the above problems, an object of the present invention to provide a method of multicast data based on user traffic achieved. 本发明以用户为单位统计组播数据流量,依据采样统计的规律,通过增加采样频率,把数据稳定在一个精确的范围,确保数据的稳定性和可靠性。 The present invention is in units of users of multicast traffic, according to the law of statistical sampling, by increasing the sampling frequency, the data is stable in a precise range, to ensure the stability and reliability of data.

本发明的构思在于:通过实时获取组播数据流速,能够准确获得单位时间内组播数据的流量。 Concept of the present invention is: acquiring the multicast real-time data flow rate, the flow rate can be obtained accurately multicast data per unit time.

这与实际使用情况非常吻合,组播数据一般都是提供诸如网络点播、网络电视等流服务, 一个短时间内,流量基本是稳定的。 This is consistent with the actual use of multicast data stream generally provide services such as network-on-demand, network television, a short period of time, the flow rate is basically stable. 把采样到的流量数据经过累加到采样时刻的在线用户帐户上,就得到了每个用户的每个组播组的流量。 The sample to flow through the accumulated data to the sampling time online user account, you get the traffic for each multicast group for each user.

本发明具体是这样实现的: In particular the present invention is implemented as follows:

一种基于用户实现统计组播数据流量的方法,包括如下处理:第一步骤,通过网络设备记录每个用户的在线状态,记录每个用户在每一个组的加入和离开的时间; A method of multicast traffic implement user-based, the processing comprising: a first step, the network device records the online status of each user, each user record time added to each group of departure;

第二步骤,网络设备实时采样并记录当前所有组播数据流量,并以此得到单位时间内的流速; A second step, the network device records the current real-time sampling and all the multicast traffic, and thus obtained flow rate per unit time;

第三步骤,遍历当前的用户记录,根据用户在采样周期中每个组的在线状态和该组的流速,得出这段时间内每个用户在每个组所获得的流量; 第四步骤,把流量数据累加到用户帐户上。 A third step of traversing the current user record, the user according to the flow rate in the sampling period of the online status of each group and that group, the flow rate obtained during this period for each user in each group obtained; a fourth step, the accumulated traffic data to the user's account. 所述网络设备是交换机,或路由器。 The network device is a switch or router. 所述第二步骤: The second step:

通过芯片提供的一个或者多个计数器,在单位时间内依次对所有注册的组播流进行统计采样,获得当前的组播流量。 , Followed by one or more chip counters provided within the unit time to all registered multicast stream of statistical sampling, to obtain the current multicast traffic. 所述第二步骤: The second step:

通过在网络设备的交换芯片和微处理器之间增加一个组播流量检测装置,通过设置芯片对组播流进行控制,使组播流在正常转发同时也送一份到检测装置,达到实时检测、并记录, 以获得当前的组播流量。 By switching between the microprocessor chip and a multicast network device to increase the flow rate detecting means, control the multicast packets through the chip set, so that the multicast stream forwarded also to send a detection means to achieve real-time detection and records, in order to obtain the current multicast traffic.

所述交换芯片和组播流量检测装置之间可以是任何一种能够传递数据包的接口。 Between the chip and the exchange of multicast traffic detection means may be any one capable of transferring packet interfaces.

通过流镜像实现所述芯片对组播流进行控制。 Controlling the flow of multicast traffic mirroring is implemented by the chip.

根据需要,本发明可以提供每个用户在每个组的流量,为局方差异性服务收费提供了极为有用的数据,应该是以后组播应用中必不可少的功能。 According to need, the present invention can provide each user traffic in each group, to provide a very useful data for the variance of the opposite sex service bureau charges, it should be in the future multicast applications essential to the function.

目前市场上尚没有任何一种产品具有这种功能。 There is currently no market any product with this function. 本发明的实现将极大提高产品的竞争力。 Implementation of the invention will greatly enhance the competitiveness of their products. 通过本发明可以向局方着重宣传基于用户流量计费的概念,提高产品知名度。 We can focus on the concept of propaganda based on user traffic accounting, improve product awareness to the Council by the present invention.

附图说明 BRIEF DESCRIPTION

图l是组播速率釆样流程图; Figure l is a flowchart illustrating a multicast rate preclude like;

图2是利用芯片流镜像原理的组播流量检测装置原理图; 图3是更新用户帐户流程图。 FIG 2 is a principle of using the chip flow diagram mirroring multicast traffic detection apparatus; FIG. 3 is a flowchart illustrating the update user account.

具体实施方式 detailed description

以下结合附图对本发明作进一步说明-本发明所述方法包括如下处理: Conjunction with the drawings of the present invention will be further described - the present invention is a process comprising:

4第一、要求交换机(或路由器)记录每个用户的在线状态,记录每个用户在每一个组的加入和离开的时间。 4 a first request switch (or router) the online status of each user record, the user records each time added to each group of departure.

第二、实时采样并记录组播数据流量。 Second, real-time sampling and recording multicast data traffic. 有两种方法可以获得当前的组播流量: There are two ways to obtain the current multicast traffic:

第一种方法,利用芯片提供的一个或者多个计数器,在一个短时间片内依次对所有注册的组播流进行统计采样。 The first method, one or more chips using a counter provided, sequentially statistical sampling of all multicast streams registered in the sheet for a short time. 具体流程如图l所示。 DETAILED process shown in Figure l.

第二种方法,在交换机中增加一个组播流量检测装置,通过设置芯片对组播流进行控制(比如流镜像功能),使组播流在正常转发同时也送一份到检测装置,达到实时检测,并记录。 The second method, an increase in the exchange of multicast traffic detection means performs control (such as traffic mirroring) of the multicast packets through the chip set, so that the multicast stream forwarded also to send a detection means to achieve real-time detecting and recording. 具体结构如图2所示,图中,芯片和检测装置之间可以是任何一种能够传递数据包的接口。 Specific structure shown in Figure 2, there is, between the chip and the detection means may be any interface capable of transmitting data packets. 以交换机为例说明本发明的具体实施方式,主要有以下步骤: DETAILED DESCRIPTION example, the switch embodiment of the present invention, mainly the following steps:

1、 交换机为每个用户创建一个帐户,实时检查并记录每一个用户的在线状态,记录下每个用户在每一个组的加入、离开时间; 1, the switch for each user to create an account, check and record real-time online status of each user, each user record in each group join and leave time;

2、 交换机每单位时间对当前所以组播流进行流量采样,并以此计算出单位时间内的流速; 2, the switch per unit of time so that the current multicast traffic stream sample, and thus the calculated velocity per unit time;

3、 遍历当前的用户记录,根据用户在釆样周期中每个组的在线状态和该组的流速,计算出这段时间内每个用户在每个组所获得的流量; 3, the current traversing the user records, in accordance with the flow rate of the user and the online status of each group in the group Bian sample period, during which time the flow rate is calculated for each user in each group obtained;

4、 把流量数据累加到帐户上。 4, the flow of data to accumulate on the account.

如图3所示,进一步给出的是更新用户帐户的流程处理图。 As shown in FIG 3, further update the user account is given of the processing flow of FIG.

Claims (6)

  1. 1、一种基于用户实现统计组播数据流量的方法,包括如下处理: 第一步骤,通过网络设备记录每个用户的在线状态,记录每个用户在每一个组的加入和离开的时间; 第二步骤,网络设备实时采样并记录当前所有组播数据流量,并以此得到单位时间内的流速; 第三步骤,遍历当前的用户记录,根据用户在采样周期中每个组的在线状态和该组的流速,得出这段时间内每个用户在每个组所获得的流量; 第四步骤,把流量数据累加到用户帐户上。 1, the statistical method based on the user data traffic based on multicast, the processing comprising: a first step, the network device records the online status of each user, each user record time added to each group of departure; first step two, the network device records the current real-time sampling and all the multicast traffic, and thus obtained flow rate per unit time; a third step of traversing the current user record, the user and the online status of each group in the sampling period group velocity, flow rate obtained during this time for each user in each group obtained; a fourth step, the accumulated traffic data to the user account.
  2. 2、 如权利要求l所述基于用户实现统计组播数据流量的方法,其特征在于: 所述网络设备是交换机或路由器。 2. A method as claimed in claim l users to achieve the statistical traffic based on multicast, characterized in that: said network device is a switch or router.
  3. 3、 如权利要求1或2所述基于用户实现统计组播数据流量的方法,其特征在于所述第二步骤中采样当前所有组播数据流量具体为:通过芯片提供的一个或者多个计数器,在单位时间内依次对所有注册的组播流进行统计采样,获得当前的组播流量。 3, based on a user as claimed implemented method of multicast traffic in claim 1 or 2, wherein said second step of sampling the current all multicast traffic is specifically: one or more chips provided by the counter, followed by statistical sampling of all registered multicast streams in a unit of time, to get the current multicast traffic.
  4. 4、 如权利要求1或2所述基于用户实现统计组播数据流量的方法,其特征在于所述第二步骤中采样当前所有组播数据流量具体为:通过在网络设备的交换芯片和微处理器之间增加一个组播流量检测装置,通过设置芯片对组播流进行控制,使组播流在正常转发同时也送一份到检测装置,达到实时检测、并记录, 以获得当前的组播流量。 4, a user implemented method as claimed in of multicast traffic based on the claim 1 or 2, characterized in that said second current sampling step all multicast traffic is specifically: the switch chip and the micro-processing by the network device is added between a multicast flow rate detecting means, controls the multicast packets through the chip set, so that the multicast stream forwarded also to send a detection means, to detect in real time, and records, to obtain a current multicast flow.
  5. 5、 如权利要求4所述基于用户实现统计组播数据流量的方法,其特征在于-所述交换芯片和组播流量检测装置之间可以是任何一种能够传递数据包的接口。 5. The method of claim 4 users implement multicast traffic statistics based on claim wherein - said multicast traffic exchanged between the chip and the detection means may be any one capable of transferring packet interfaces.
  6. 6、 如权利要求4所述基于用户实现统计组播数据流量的方法,其特征在于: 通过流镜像实现所述芯片对组播流进行控制。 6. A method as claimed in user implemented multicast traffic statistics based on the claim 4, wherein: the multicast flow control is realized by the chip flow mirroring.
CN 200510114772 2005-10-27 2005-10-27 Method for implementing accounting multicase data flow based on user CN100589403C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510114772 CN100589403C (en) 2005-10-27 2005-10-27 Method for implementing accounting multicase data flow based on user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510114772 CN100589403C (en) 2005-10-27 2005-10-27 Method for implementing accounting multicase data flow based on user

Publications (2)

Publication Number Publication Date
CN1956389A true CN1956389A (en) 2007-05-02
CN100589403C true CN100589403C (en) 2010-02-10

Family

ID=38063504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510114772 CN100589403C (en) 2005-10-27 2005-10-27 Method for implementing accounting multicase data flow based on user

Country Status (1)

Country Link
CN (1) CN100589403C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014040240A1 (en) * 2012-09-12 2014-03-20 华为技术有限公司 On-line charging method, device and network system
CN103441892B (en) * 2013-08-16 2017-02-22 大连梯耐德网络技术有限公司 Multi-user traffic statistics system based on radio and television networks

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324163A (en) 2000-05-13 2001-11-28 三星电子株式会社 Device and method for testing data transfer rate
CN1395391A (en) 2001-07-09 2003-02-05 深圳市中兴通讯股份有限公司 Charging method for connecting wideband into network
CN1437352A (en) 2002-02-04 2003-08-20 华为技术有限公司 Data flow quantity statistical method
CN1501622A (en) 2002-11-14 2004-06-02 华为技术有限公司 Network traffic statistical method of IP device
CN1507200A (en) 2002-12-07 2004-06-23 华为技术有限公司 Radio LAN service system and method charging based on user's data flow rate

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324163A (en) 2000-05-13 2001-11-28 三星电子株式会社 Device and method for testing data transfer rate
CN1395391A (en) 2001-07-09 2003-02-05 深圳市中兴通讯股份有限公司 Charging method for connecting wideband into network
CN1437352A (en) 2002-02-04 2003-08-20 华为技术有限公司 Data flow quantity statistical method
CN1501622A (en) 2002-11-14 2004-06-02 华为技术有限公司 Network traffic statistical method of IP device
CN1507200A (en) 2002-12-07 2004-06-23 华为技术有限公司 Radio LAN service system and method charging based on user's data flow rate

Also Published As

Publication number Publication date Type
CN1956389A (en) 2007-05-02 application

Similar Documents

Publication Publication Date Title
Holbrook et al. IP multicast channels: EXPRESS support for large-scale single-source applications
US20060146703A1 (en) Dynamic quality-of-service mapping apparatus and method through hybrid monitoring in digital home service
US20130031575A1 (en) System for monitoring a video network and methods for use therewith
US5600632A (en) Methods and apparatus for performance monitoring using synchronized network analyzers
US20050129017A1 (en) Multicast flow accounting
US6615262B2 (en) Statistical gathering framework for extracting information from a network multi-layer stack
US7076547B1 (en) System and method for network performance and server application performance monitoring and for deriving exhaustive performance metrics
US20070010231A1 (en) Connection and data application billing
US20040264443A1 (en) Digital subscriber line access network with improved authentication, authorization, accounting and configuration control for multicast services
US20050238000A1 (en) System and method for computing demand placed on a packet-switched network by streaming media communication
US20080239972A1 (en) System and method of performance monitoring of multicast services with mobility support
US20040049576A1 (en) Method and apparatus for session reconstruction
CN1937511A (en) Charged information acquisition system and method, and charge realizing system and method
US20030099199A1 (en) Bandwidth allocation credit updating on a variable time basis
US20080127245A1 (en) On demand dynamic advertisement insertion in an internet protocol stream
US6950439B1 (en) Method for providing summary information about recipients of IP multicast sessions
EP1202528A2 (en) Browser-based monitoring system and method for IP-based services
Campbell et al. QoS adaptive transports: Delivering scalable media to the desktop
US20080010379A1 (en) Method and system for content charging
US6963912B1 (en) Method and apparatus for session reconstruction
Marques Neto et al. A characterization of broadband user behavior and their e-business activities
CN1540920A (en) Method for implementing controllable multicast operation
CN1747391A (en) Signalling bearing accounting method in multi-media subsystem
CN101720075A (en) Method and device for reporting service information
CN1395391A (en) Charging method for connecting wideband into network

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted