CN101945014B - Method and device for counting rate - Google Patents

Method and device for counting rate Download PDF

Info

Publication number
CN101945014B
CN101945014B CN2010102948551A CN201010294855A CN101945014B CN 101945014 B CN101945014 B CN 101945014B CN 2010102948551 A CN2010102948551 A CN 2010102948551A CN 201010294855 A CN201010294855 A CN 201010294855A CN 101945014 B CN101945014 B CN 101945014B
Authority
CN
China
Prior art keywords
information
current
online
network management
ap
Prior art date
Application number
CN2010102948551A
Other languages
Chinese (zh)
Other versions
CN101945014A (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
Application filed by 杭州华三通信技术有限公司 filed Critical 杭州华三通信技术有限公司
Priority to CN2010102948551A priority Critical patent/CN101945014B/en
Publication of CN101945014A publication Critical patent/CN101945014A/en
Application granted granted Critical
Publication of CN101945014B publication Critical patent/CN101945014B/en

Links

Abstract

The invention discloses a method and a device for counting rate. The method comprises the following steps that: network management equipment reads current flow information and current online time length information of AP equipment from AC equipment; the network management equipment compares the current online time length information with previously recorded online time length information; when the current online time length information is consistent with the previously recorded online time length information, the network management equipment determines that the current flow information is invalid; and when the current online time length information is inconsistent with the previously recorded online time length information, the network management equipment determines the rate information of the AP equipment according to the current flow information and the current online time length information. In the method and the device, the flow and the rate of the AP equipment can be accurately determined.

Description

一种速率统计的方法和装置 A method and apparatus of rate statistics

技术领域 FIELD

[0001] 本发明涉及通信技术领域,特别是涉及一种速率统计的方法和装置。 [0001] The present invention relates to communication technologies, and particularly to a method and apparatus for rate statistics. 背景技术 Background technique

[0002] WLAN(ffireless Local Area Networks,无线局域网)提供了一种局域网的无线连接服务,能够提供高速的无线数据接入,和传统的有线接入方式相比,无线局域网让网络的使用更加自由,彻底摆脱了线缆和端口位置的束缚,而且无线局域网具有便于携带,易于移动的优点,免去或减少了繁杂的网络布线,只需要安放一个或多个AP(ACCesS Point,接入点)设备就可以建立覆盖整个建筑或地区的局域网络。 [0002] WLAN (ffireless Local Area Networks, wireless local area network) provides a wireless LAN connection service that provides high-speed wireless data access, and compared to traditional wired access, wireless local area network to make use of more freedom , broken free of the cable and the port locations, and portable wireless LAN has advantages of easy movement, eliminating or reducing the complexity of the network cabling, need only place one or more AP (aCCesS point, an access point) equipment can be established covering the entire building local area network or region. 其中,在无线局域网中,AC (Access Controller,无线控制器)设备用于对无线局域网中的AP设备进行控制和管理。 Wherein, in wireless LAN, AC (Access Controller, the wireless controller) device for controlling and managing the AP in a WLAN.

[0003] 具体的,随着无线局域网的大量应用,越来越多的场合开始使用无线AP作为接入点,而为了降低成本,简化管理,并提高安全性,AC+AP(即Fit AP)的组网方式被广泛采用, 通过采用AC+AP的组网方式(即AC集中式管理的方式),可以方便网络的部署。 [0003] Specifically, the wireless LAN with the large number of applications, more and more occasions to start using a wireless AP as an access point, and in order to reduce costs, simplify management, and improve security, AC + AP (i.e., AP Fit) networking widely used, by using the AC + AP networking (i.e., centralized management AC mode), the network can be easily deployed.

[0004] 在实际应用中,当网管设备需要统计AP设备的速率时,由于AP设备的所有管理均由AC设备完成,则AP设备需要将自身的流量信息上报给AC设备,然后网管设备从AC设备上获取相关流量信息,并用一段时间内的流量除以时间长度,从而可以计算出AP设备的速率。 [0004] In practical applications, the network management device when the AP needs to count rate, since all the AP management apparatus is completed by the AC, the AP device itself needs to be reported to the AC flow rate information, and network management equipment from the AC acquiring traffic information related to the device, and a flow rate divided by the length of time over a period of time, can be calculated so that the rate of the AP.

[0005] 正常情况下,AP设备以一定的时间间隔上传数据,但是,当AC设备与AP设备的流量过大时,则会导致AP设备的报文无法及时上传到AC设备,这种情况下,在AC设备上统计时会出现某段时间的流量为0,而之后的时间段流量会变得很大的情况,从而导致网管设备在统计AP设备的速率时,流量统计、速率统计数据异常。 [0005] Under normal circumstances, the AP at regular intervals uploaded data, however, when the flow of the AP and the AC excessive, will cause packets to the AP can not be uploaded to the AC in time, this situation will appear when traffic statistics on AC equipment certain period of time is zero, and the time period after the flow will become a great situation leading network management device when the AP's rate statistics, traffic statistics, data error rate statistics .

[0006] 如图1所示的性能采集数据与真实数据的对比示意图,可以看出,3_6s的时间段内,真实的数据为具有AP设备的流量,但是3-6s内AP设备没有及时上报数据,导致AC设备上的数据没有更新,性能采集数据为3-6s内流量为0,性能采集数据与真实数据相比误差很大。 [0006] Comparative performance data collection schematic diagram shown in Figure 1 with real data, it can be seen, 3_6s period, data having a real traffic AP device, but the device did not 3-6s AP report data , cause the data on the AC is not updated, the performance data collected within 3-6s flow 0, performance data collection errors compared with the real data great.

发明内容 SUMMARY

[0007] 本发明提供一种速率统计的方法和装置,以准确确定AP设备的流量和速率。 [0007] The present invention provides a method and apparatus of rate statistics, and to accurately determine the flow rate of the AP.

[0008] 为了达到上述目的,本发明提出了一种速率统计的方法,应用于包括网管设备、AC 设备和AP设备的系统中,该方法包括以下步骤: [0008] To achieve the above object, the present invention provides a method of statistical rate, applied to a system network management device, the AC device and the AP, the method comprising the steps of:

[0009] 所述网管设备从所述AC设备上读取所述AP设备的当前流量信息和当前在线时长fn息; [0009] The network management device reads the apparatus from the AP the AC current traffic information and current information when the long line fn;

[0010] 所述网管设备记录所述当前在线时长信息,并比较所述当前在线时长信息与之前记录的在线时长信息; [0010] The length of the network management information recording device currently online, and comparing the long-length information recorded information online before the current line;

[0011] 当所述当前在线时长信息与之前记录的在线时长信息一致时,所述网管设备确定所述当前流量信息无效;[0012] 当所述当前在线时长信息与之前记录的在线时长信息不一致时,所述网管设备根据所述当前流量信息和所述当前在线时长信息确定所述AP设备的速率信息。 [0011] When the current online time information online prior consistent length information, the network management device determines the current traffic information is not valid; [0012] when the current online time information online prior inconsistent length information when the network management device determines rate information length information of the AP when the device information and the current line according to the current flow.

[0013] 所述网管设备从所述AC设备上读取所述AP设备的当前流量信息和当前在线时长信息,具体包括: [0013] The network management device reads the apparatus from the AC current flow and the current AP device information online time information comprises:

[0014] 所述网管设备通过SNMP方式从所述AC设备上同时读取所述AP设备的当前流量信息和当前在线时长信息。 Duration information [0014] The network management device reads the AP through SNMP device from the device while the AC current flow and the current online information.

[0015] 比较所述当前在线时长信息与之前记录的在线时长信息,之前还包括: [0015] comparing the long online time information previously recorded information online current, before further comprising:

[0016] 所述网管设备比较所述当前流量信息与之前记录的流量信息; [0016] The network management device and comparing the current traffic flow information is recorded before the information;

[0017] 当所述当前流量信息与之前记录的流量信息一致时,所述网管设备执行比较所述当前在线时长信息与之前记录的在线时长信息的操作。 [0017] When the same information and the current traffic flow information previously recorded, comparing the network management apparatus performing the operation information when the long record length information and online time before the current line.

[0018] 所述网管设备记录所述当前在线时长信息,并比较所述当前在线时长信息与之前记录的在线时长信息,之后还包括: [0018] The network management device online time of the current recording information, and comparing the long online time information previously recorded information currently online, the method further comprises:

[0019] 所述网管设备删除之前记录的在线时长信息。 [0019] length information recorded prior to the online network management device to delete.

[0020] 所述网管设备根据所述当前流量信息和所述当前在线时长信息确定所述AP设备的速率信息,具体包括: [0020] The rate information of the network management device to the AP device current traffic information and the current time information is determined according to the long line, comprises:

[0021] 所述网管设备计算所述AP设备的速率信息为:(当前流量信息-之前记录的流量信息)/(当前在线时长信息-之前记录的在线时长信息)。 [0021] The network management apparatus of the AP computing device :( rate information is traffic information of the current - Long previously recorded information online) - flow information) / (length of the current online information previously recorded.

[0022] 一种速率统计的网管设备,应用于包括所述网管设备、AC设备和AP设备的系统中,其特征在于,该网管设备包括: [0022] A rate statistics of the network management device, the network management device applied to a system, device, and the AC in the AP, wherein the network management device comprising:

[0023] 读取模块,用于从所述AC设备上读取所述AP设备的当前流量信息和当前在线时长信息; [0023] The reading module configured to read the current traffic information of the AP and the current time information from said line length AC device;

[0024] 记录模块,与所述读取模块连接,用于记录所述读取模块读取的所述当前在线时长信息; [0024] The recording module, connected with the read module, the read module for reading the recording current when the line length information;

[0025] 比较模块,与所述记录模块连接,用于比较所述当前在线时长信息与之前记录的在线时长信息; [0025] The comparison module connected with the recording module, for comparing the duration information of the current online information long before the recording time line;

[0026] 确定模块,与所述比较模块连接,用于当所述当前在线时长信息与之前记录的在线时长信息一致时,确定所述当前流量信息无效; [0026] The determining module connected to the comparison module, configured to, when the time duration information coincides with line length information before recording said current line, determining the current flow rate information is invalid;

[0027] 当所述当前在线时长信息与之前记录的在线时长信息不一致时,根据所述当前流量信息和所述当前在线时长信息确定所述AP设备的速率信息。 [0027] When the current line is inconsistent long duration information previously recorded information online, the current flow rate in accordance with said information and the current line length information for determining the rate information of the AP device.

[0028] 所述读取模块,具体用于通过SNMP方式从所述AC设备上同时读取所述AP设备的当前流量信息和当前在线时长信息。 [0028] The reading module for reading the particular device from the AP at the same time the AC current flow through SNMP online time information and current information.

[0029] 所述比较模块,还用于比较所述当前流量信息与之前记录的流量信息。 [0029] The comparison module is further configured to compare the flow rate information recorded before the current traffic information.

[0030] 还包括: [0030] further comprises:

[0031] 删除模块,与所述记录模块连接,用于删除所述记录模块之前记录的在线时长信肩、ο [0031] The deletion module, connected with the recording module, when the shoulder line for long letter before deleting the recorded recording module o

[0032] 所述确定模块,具体用于计算所述AP设备的速率信息为:(当前流量信息-之前记录的流量信息)/(当前在线时长信息-之前记录的在线时长信息)。 [0032] The determining module is configured to calculate the rate information for the AP device :( current traffic information - traffic information previously recorded) / (length of the current online information - Long previously recorded information online).

[0033] 与现有技术相比,本发明至少具有以下优点: [0033] Compared with the prior art, the present invention has at least the following advantages:

[0034] 通过比较当前在线时长信息和之前记录的在线时长信息,当二者一致时不记录当前流量信息,只有当二者不一致时才确定AP设备的速率信息,从而准确确定AP设备的流量和速率,并可以有效的解决异常情况下AP设备流量统计、速率统计不准确的问题,不会出现流量、速率数据异常等情况。 [0034] By comparing the current length information when the long-line and online information before recording, recording is not consistent when both current traffic information, only if the two are inconsistent rate information when determining AP device, to accurately determine the flow of the AP and rate, and can effectively solve the exceptional circumstances the AP traffic statistics, the rate of the problem of inaccurate statistics, the situation will not flow, the rate of abnormal data.

[0035] 附图说明 [0035] BRIEF DESCRIPTION OF DRAWINGS

[0036] 图1是现有技术中性能采集数据与真实数据的对比示意图; [0036] FIG. 1 is a schematic diagram of comparison of performance data and real data collected prior art;

[0037] 图2是本发明提供的一种速率统计的方法流程图; [0037] FIG. 2 is a rate of the present invention provides a flowchart of statistical methods;

[0038] 图3是本发明应用场景下性能采集数据与真实数据的对比示意图; [0038] FIG. 3 is a schematic diagram of comparison of performance data and the actual data collection application scenario of the present invention;

[0039] 图4是本发明中提出的网管设备的结构图。 [0039] FIG 4 is a configuration diagram of the network management device of the present invention proposed.

[0040] 具体实施方式 [0040] DETAILED DESCRIPTION

[0041] 本发明中,网管设备从AC设备上获取AP设备流量信息的同时,从AC设备上获取该AP设备的在线时长信息,通过比较当前在线时长信息与之前记录的在线时长信息,当二者一致时,则确定当前流量信息无效,不记录该当前流量信息;当二者不一致时,则确定AP 设备的流量信息和速率信息,从而准确确定AP设备的流量和速率。 [0041] In the invention, the network management apparatus acquires the AP traffic information from the AC device while obtaining long information line that the AP from the AC length information by comparing the current length information online when online before, when two when the same person, it is determined that the current traffic information is invalid, the current traffic information is not recorded; when the two do not coincide, the flow rate information and information of the AP is determined, and to accurately determine the flow rate of the AP.

[0042] 下面结合附图对本发明进行详细描述。 DRAWINGS The invention is described in detail [0042] below in conjunction.

[0043] 如图2所示,为本发明提出的一种速率统计的方法,该方法应用于包括网管设备、 AC设备和AP设备的系统中,AC设备和AP设备构成AC+Fit AP的组网方式,网管设备用于对AC设备和AP设备进行监控,并统计AP设备的流量和速率,该方法包括以下步骤: One rate [0043] 2, the present invention proposes a statistical method is applied to a system including a network management device, the AC devices and AP devices, the AC device and the AP configured AC + Fit AP group network mode, AC network management device for monitoring the device and the AP, and the AP count rate and the flow rate, the method comprising the steps of:

[0044] 步骤201,网管设备从AC设备上读取AP设备的当前流量信息和当前在线时长信肩、ο [0044] Step 201, the network management device reads the AP from the current traffic information and the AC line current when the channel length of the shoulder, o

[0045] 该当前流量信息可以为AP设备当前的空口流量,该当前在线时长信息可以为AP 设备当前累计的在线时间。 [0045] The current traffic information may be the AP of the current flow of air interface, the AP length information may be accumulated when the current time line currently online.

[0046]具体的,网管设备可通过 SNMP (Simple Network Management Protocol,简单网络管理协议)方式从AC设备上同时读取AP设备的当前流量信息和当前在线时长信息。 [0046] Specifically, the network management device may be SNMP (Simple Network Management Protocol, Simple Network Management Protocol) reads from the AP at the same time on the AC current traffic information and the length information of the current through the line.

[0047] 例如,网管设备使用SNMP多变量绑定的方式从AC设备上读取AP设备的当前流量信息及AP设备的当前在线时长信息,即同时请求读取当前流量信息和当前在线时长信息。 When the current line length information [0047] For example, using the SNMP network management device reads multiple variable bindings from the AP on the AC current traffic information and the AP device, i.e. simultaneously requesting a read current information and current traffic information online time.

[0048] 步骤202,网管设备记录当前在线时长信息,并比较当前在线时长信息与之前记录的在线时长信息。 [0048] Step 202, network device information currently online record length, and a long length of recording information of the current online information prior to the time line. 如果当前在线时长信息与之前记录的在线时长信息一致时,转到步骤203 ;如果当前在线时长信息与之前记录的在线时长信息不一致时,转到步骤204。 If the current online time online information of the previously recorded information is consistent length, go to Step 203; if the current line length information is inconsistent, the information goes to step 204 and the length of the line before recording.

[0049] 在实际应用中,网管设备可以只保存最近一次采集数据时的在线时长信息,此时, 步骤202之后网管设备还需要删除之前记录的在线时长信息。 [0049] In practical applications, the network management device can be saved only when the line length of the last information data acquisition, this time, after the step 202 the network management device further require long online information recorded before deleting. 当然,网管设备也可以保存最近多次(例如5次)采集数据时的在线时长信息,此时,步骤202之后网管设备需要删除5次之前记录的在线时长信息。 Of course, the network management device may be stored online time information recently collected data a plurality of times (e.g. 5 times) In this case, after step 202 the network management device need to remove the long-line information previously recorded five times. 本发明中以保存最近一次采集数据时的在线时长信息为例进行说明。 In the present invention, information stored online time of the last data acquisition is described as an example.

[0050] 例如,网管设备在上一时刻从AC设备上读取到了流量信息1和在线时长信息1 时,需要记录该在线时长信息1,而当该网管设备在当前时刻从AC设备上读取到了流量信息2和在线时长信息2时,网管设备需要记录当前在线时长信息2,并比较当前在线时长信息2与之前记录的在线时长信息(即在线时长信息1),另外,网管设备还需要删除之前记录的在线时长信息2。 [0050] For example, the network management device reads in a moment from the AC device to the traffic information length information of a time duration information 1, the logging of the line 1 and line, and when the network device reads from the AC current time long messages 2:00, the network management equipment needed to record the current online time information 2:00 to traffic information 2 and on-line, long information online and compare current online time information recorded 2 before (long information 1:00 ie online). in addition, network management equipment also need to remove before long record of online information 2.

[0051] 需要说明的是,执行本步骤之前,网管设备还可以比较当前流量信息(即流量信息2)与之前记录的流量信息(即流量信息1),只有当流量信息2和流量信息1相同(即流量信息2对应时刻与流量信息1对应时刻的时间段内流量为0)时,才执行本步骤;而当流量信息2和流量信息1不同时,则说明流量信息发生了变化,此时,在线时长信息2和在线时长信息1是不同的,可以直接根据流量信息2、在线时长信息2确定AP设备的速率信息, 该确定过程将在后续步骤中说明,在此不再赘述。 [0051] Incidentally, before performing this step, the network management device can also compare the current traffic information (i.e., traffic information 2) with the flow rate information previously recorded (i.e. flow information 1), only when the same traffic information 2 and the flow rate information 1 (i.e. flow information corresponding to the time 2 to the flow rate information corresponding to a time period of flow rate is 0), before this step is performed; and when the flow rate information and 2 flow rate information is not identical, then the flow of information is changed, this time , online time information 2 and line length information 1 are different, depending on the flow rate information 2, length information 2 determines the AP when the line rate information, the determination process will be described directly in the subsequent step, are not repeated herein.

[0052] 步骤203,网管设备确定当前流量信息无效。 [0052] Step 203, the network management device determines the current traffic information is invalid.

[0053] 其中,如果当前在线时长信息与之前记录的在线时长信息一致时,则说明在线时长信息没有发生变化,此时,流量信息也没有发生变化,即当前流量信息无效,AP设备在两次时间间隔内并没有将流量信息上报给AC设备,这种情况下,网管设备确定当前流量信息无效,AC设备上的数据没有更新,并不需要记录本次流量数据。 [0053] wherein, coincides with the long message if the current online time information online previously recorded, then the length information is not changed when the line, this time, flow information has not changed, i.e., the current traffic information is invalid, the AP device twice no traffic information to a time interval AC device, in this case, the network management device determines the current traffic information is invalid, the data is not updated on the AC device, it does not need to record this data traffic.

[0054] 需要注意的是,在线时长信息没有发生变化时,流量信息也没有发生变化的原因具体为: [0054] It should be noted that the reason for the length of time online information has not changed, there is no change in the flow of information specifically:

[0055] 在AC设备上,AP设备每次上报数据时,AC设备均需要更新该AP设备对应的流量信息,以及该AP设备对应的在线时长信息。 When the [0055] on the AC device, each data reports the AP, AC devices require update traffic information corresponding to the AP device, and a long line information corresponding to the AP device. 因此,当AP设备对应的在线时长信息没有发生变化时,则说明AP设备并没有上报数据,显而易见的,AP设备对应的流量信息也不会发生变化。 Thus, when the duration information is not changed when the line corresponding to the AP, it indicates the AP does not report data, it is apparent, the flow rate information corresponding to the AP does not change.

[0056] 步骤204,网管设备根据当前流量信息和当前在线时长信息确定AP设备的速率信肩、ο [0056] Step 204, the network management device according to the current traffic channel shoulder online time information and current information to determine the rate of the AP, o

[0057] 其中,当AP设备对应的在线时长信息发生变化时,则说明AP设备已经上报过数据,此时,无论AP设备对应的流量信息是否发生变化,均需要确定AP设备的速率信息以及AP设备对应的流量信息。 [0057] wherein, when the AP corresponding online time information is changed, it indicates the AP has been reported over the data, this time, regardless of the flow rate information of an AP corresponding to the changed or not, are required to determine the rate of the AP information and AP flow rate information corresponding to the device.

[0058] 具体的,根据当前流量信息和当前在线时长信息确定AP设备的速率信息的方式包括但不限于:网管设备计算AP设备的速率信息为:(当前流量信息-之前记录的流量信息)/(当前在线时长信息-之前记录的在线时长信息)。 [0058] Specifically, according to the current traffic information and current online time information for determining the AP rate mode information include, but are not limited to: calculating the AP rate network device information :( current traffic information - traffic information previously recorded) / (current online time information - information online long before recording).

[0059] 为了更加清楚的阐述本发明提供的技术方案,以下结合一种具体的应用场景对本发明进行详细描述。 [0059] In order to more clearly illustrate the technical solutions of the present invention is provided below in conjunction with a particular application scenario of the present invention will be described in detail.

[0060] 本应用场景下,在时间tl时,网管设备从AC设备上获取AP设备的空口流量(tl 时刻的当前流量信息)为100M,AP设备的在线时间(tl时刻的当前在线时长信息)为500秒。 [0060] Under this scenario, at time tl, the network management apparatus acquires air interface flow (current traffic information tl time) to 100M of the AP from the AC devices, the online time of the AP (current online duration tl time information) 500 seconds.

[0061] 在时间t2时,网管设备从AC设备上获取AP设备的空口流量(t2时刻的当前流量信息)为100M,AP设备的在线时间(t2时刻的当前在线时长信息)为500秒,通过比较t2 时刻的当前在线时长信息与tl时刻的当前在线时长信息(对于时间t2来讲,tl时刻的当前在线时长信息为之前记录的在线时长信息),可知二者相同,t2时刻的当前流量信息无效,tl时刻到t2时刻之间,在AC设备上并没有该AP设备的数据更新,并不需要记录t2时刻的当前流量信息。 [0061] at time t2, the network management apparatus acquires the AP from the AC air interface flow (current traffic information time t2) is 100M, online time (current time line length information time t2) AP device 500 seconds, by online time information of the current of the current online time information tl time comparison time t2 (for time t2 in terms of online time information of the current tl time is long information online previously recorded), found that both the same, the current traffic information of time t2 invalid, tl to the time between the time t2, the AC device is not in the AP data updating device does not need to record time t2 current traffic information.

[0062] 在时间t3时,网管设备从AC设备上获取AP设备的空口流量(t3时刻的当前流量信息)为110M,AP设备的在线时间(t3时刻的当前在线时长信息)为600秒,通过比较t3时刻的当前在线时长信息与t2时刻的当前在线时长信息(对于时间t3来讲,t2时刻的当前在线时长信息为之前记录的在线时长信息),可知二者相同,t3时刻的当前流量信息有效,t2时刻到t3时刻之间,在AC设备上有该AP设备的数据更新,此时,需要记录t3时刻的当前流量信息为110M,在线时间信息为600秒;并根据当前流量信息和当前在线时长信息确定AP设备的速率信息,在确定AP设备的速率信息时,速率为:(当前流量信息-之前记录的流量信息)/ (当前在线时长信息-之前记录的在线时长信息),即(110-100) / (600-500)。 [0062] at time t3, the network management apparatus acquires the AP from the AC air interface flow (current traffic information time t3) is 110M, online time (current time line length information time t3) the AP 600 seconds, by online time information of the current of the current online time information and the time t2 comparison time t3 (for a time t3 in terms of online time information of the current time t2 is long information online previously recorded), it found that both the same, the current traffic information time t3 effective, t2 between the time t3, the data of the AP updates on the AC device, this time, the current flow necessary to record information to the time t3 110M, time information line 600 seconds; and based on current traffic information and current length information for determining the AP when the line rate information, when determining the AP rate information, rate :( current traffic information - traffic information previously recorded) / (current time line length information - length information online before recording), i.e., ( 110-100) / (600-500).

[0063] 综上所述,通过比较当前在线时长信息和之前记录的在线时长信息,只有当二者一致时才确定AP设备的速率信息,当二者不一致时不记录当前流量信息,从而准确确定AP 设备的流量和速率,并可以有效的解决异常情况下AP设备流量统计、速率统计不准确的问题,不会出现流量、速率数据异常等情况。 [0063] In summary, when comparing the current length information and line length information previously recorded when online, only when both the AP determines if the same information rate, when both of the recording current traffic information is inconsistent, to accurately determine the AP flow rate and equipment, and can effectively solve the exceptional circumstances the AP traffic statistics, rate statistics is not accurate, will not flow, data rate and abnormal situations.

[0064] 如图3所示,为采用本发明提供的技术方案后,性能采集数据与真实数据的对比示意图,可以看出,3-6s的时间段内,由于AC设备上的数据没有更新,则网管设备丢弃了采集到的无效数据,性能采集数据与真实数据相比误差很小,而且与图1相比,显著提高了数据统计的准确性。 [0064] 3, after using the technical solution provided by the invention, schematic comparison of the performance data and real data acquisition, it can be seen, the period of 3-6s, since the data is not updated on the AC device, the network management device discards the invalid data collected, data collection performance in comparison with the real data error is small compared to FIG. 1 but, significantly improves the accuracy of the statistical data.

[0065] 另外,针对现有技术中在速率计算时,采用的是网管设备两次采样的数据之差除以两次采样的时间间隔,而AP设备上报AC设备时也有一定时间间隔,使得计算的速率精度上可能存在差异的问题。 [0065] Further, for the prior art at rate calculation using the difference data of the network management equipment two samples divided by the time interval of two samples, while the AP reported by the AC there is a certain time interval, so that the calculation There may be differences in the rate of accuracy problems. 本发明中,通过使用AP设备实际的在线时长信息计算速率,可以更精确的计算流量、速率信息。 In the present invention, by using the AP information calculating the actual rate at which the long line can be more accurately calculate the flow rate information.

[0066] 基于与上述方法同样的发明构思,本发明还提出了一种速率统计的网管设备,应用于包括所述网管设备、AC设备和AP设备的系统中,如图4所示,该网管设备包括: [0066] The above-described method based on the same inventive concept, the present invention also proposes a network management apparatus rate statistics, applied to a system including a network management device, and the AC device in the AP, shown in Figure 4, the network management equipment includes:

[0067] 读取模块11,用于从所述AC设备上读取所述AP设备的当前流量信息和当前在线时长信息; [0067] The reading module 11 for reading the information of the current flow and the current AP device online time information from the AC device;

[0068] 记录模块12,与所述读取模块11连接,用于记录所述读取模块11读取的所述当前在线时长信息; [0068] The recording module 12 is connected to the reading module 11, for recording the reading length information of the read module 11 is online;

[0069] 比较模块13,与所述记录模块12连接,用于比较所述当前在线时长信息与之前记录的在线时长信息; [0069] The comparison module 13, the recording module 12 is connected, information used for long-line recording duration information comparing the current time with the previous line;

[0070] 确定模块14,与所述比较模块13连接,用于当所述当前在线时长信息与之前记录的在线时长信息一致时,确定所述当前流量信息无效; [0070] The determining module 14, and the comparison module 13 is connected, when the line current for recording information and long before the time duration information coincides with line, determining the current traffic information is invalid;

[0071] 当所述当前在线时长信息与之前记录的在线时长信息不一致时,根据所述当前流量信息和所述当前在线时长信息确定所述AP设备的速率信息。 [0071] When the current line is inconsistent long duration information previously recorded information online, the current flow rate in accordance with said information and the current line length information for determining the rate information of the AP device.

[0072] 所述读取模块11,具体用于通过SNMP方式从所述AC设备上同时读取所述AP设备的当前流量信息和当前在线时长信息。 [0072] The reading module 11, particularly when used for long reading the AP information from the device while the AC current flow through SNMP information and current line.

[0073] 所述比较模块13,还用于比较所述当前流量信息与之前记录的流量信息。 [0073] The comparison module 13, for further information flow is recorded before comparing the current traffic information.

[0074] 该网管设备还包括: [0074] The network management device further comprising:

[0075] 删除模块15,与所述记录模块12连接,用于删除所述记录模块12之前记录的在线时长信息。 [0075] deleting module 15, connected to the recording module 12, a long line before information recording module 12 to delete the record.

[0076] 所述确定模块14,具体用于计算所述AP设备的速率信息为:(当前流量信息-之前记录的流量信息)/(当前在线时长信息-之前记录的在线时长信息)。 [0076] The determining module 14, particularly the AP device for calculating a rate of the current traffic information :( Information - Information Flow) / (length of the current online information previously recorded - long line previously recorded information).

[0077] 其中,本发明装置的各个模块可以集成于一体,也可以分离部署。 [0077] wherein each module of the present invention may be integrated in one apparatus, may be deployed separately. 上述模块可以合并为一个模块,也可以进一步拆分成多个子模块。 The above-described modules may be combined into one module, or split into multiple submodules.

[0078] 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式来实现。 [0078] By the above described embodiments, those skilled in the art can understand that the present invention may be implemented by hardware, it may also be implemented by software plus a necessary universal hardware platform. 基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是⑶-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Based on such understanding, the technical solutions of the present invention may be embodied in a software product out, the software product may be stored in a nonvolatile storage medium (which may be ⑶-ROM, U disk, mobile hard disk), and includes several instructions that enable a computer device (may be a personal computer, a server, or network device) to execute the methods according to embodiments of the present invention.

[0079] 本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。 [0079] Those skilled in the art will be appreciated the drawings are merely schematic diagram of a preferred embodiment, the modules or processes in the accompanying drawings are not necessarily embodiments of the present invention it is necessary.

[0080] 本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。 [0080] Those skilled in the art will be appreciated apparatus embodiment that the modules can be distributed in accordance with an embodiment of the apparatus of the embodiment may be performed according to the present embodiment which are different from one case or more devices. 上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。 Modules of the embodiments may be combined into one module, or split into multiple submodules.

[0081 ] 上述本发明序号仅仅为了描述,不代表实施例的优劣。 [0081] Reference only used for description of the present invention, the merits of the embodiments do not represent embodiments.

[0082] 以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。 Only a few [0082] The above disclosed specific embodiments of the present invention, however, the present invention is not limited thereto, anyone skilled in the art can think of variations shall fall within the scope of the present invention.

Claims (10)

1. 一种速率统计的方法,应用于包括网管设备、AC设备和AP设备的系统中,其特征在于,该方法包括以下步骤:所述网管设备从所述AC设备上读取所述AP设备的当前流量信息和当前在线时长信息;所述网管设备记录所述当前在线时长信息,并比较所述当前在线时长信息与之前记录的在线时长信息;当所述当前在线时长信息与之前记录的在线时长信息一致时,所述网管设备确定所述当前流量信息无效;当所述当前在线时长信息与之前记录的在线时长信息不一致时,所述网管设备根据所述当前流量信息和所述当前在线时长信息确定所述AP设备的速率信息。 CLAIMS 1. A method of rate statistics, applied to a network management device, and the AC system of the AP, which is characterized in that, the method comprising the steps of: the network management device reads the apparatus from the AC AP device current traffic information and current online time information; length information of the network management device to record the current online time information, and comparing the current record length information before line when line; when online the current online time information previously recorded coincides with the length information, the network management device determines the current traffic information is invalid; when the current online information online time before recording long information is inconsistent, the network management device and the current time information according to the current length of the flow line determining rate information of the AP information device.
2.如权利要求1所述的方法,其特征在于,所述网管设备从所述AC设备上读取所述AP 设备的当前流量信息和当前在线时长信息,具体包括:所述网管设备通过SNMP方式从所述AC设备上同时读取所述AP设备的当前流量信息和当前在线时长信息。 2. The method according to claim 1, wherein said network management device reads the current traffic information and the current AP device information from the online duration of the AC device, comprises: the network management device by SNMP the AP device reads from the device while the AC current duration information and current traffic information online.
3.如权利要求1所述的方法,其特征在于,比较所述当前在线时长信息与之前记录的在线时长信息,之前还包括:所述网管设备比较所述当前流量信息与之前记录的流量信息; 当所述当前流量信息与之前记录的流量信息一致时,所述网管设备执行比较所述当前在线时长信息与之前记录的在线时长信息的操作。 3. The method according to claim 1, wherein said long information length comparing online information recorded before the current time line, until further comprising: a network management device and comparing the current traffic flow information before the information recording ; when the current traffic information is consistent with the previously recorded information flow, said network management device performs a comparison of the operation information when the long record length information and online time before the current line.
4.如权利要求1所述的方法,其特征在于,所述网管设备记录所述当前在线时长信息, 并比较所述当前在线时长信息与之前记录的在线时长信息,之后还包括:所述网管设备删除之前记录的在线时长信息。 4. The method according to claim 1, wherein said network management device online time of the current recording information, and comparing the current length information and duration information previously recorded online when online, the method further comprises: the network management long online information recorded before the device removed.
5.如权利要求1所述的方法,其特征在于,所述网管设备根据所述当前流量信息和所述当前在线时长信息确定所述AP设备的速率信息,具体包括:所述网管设备计算所述AP设备的速率信息为:(当前流量信息-之前记录的流量信息)/(当前在线时长信息-之前记录的在线时长信息)。 The network management device calculates: 5. A method as claimed in claim 1, wherein said network management device the information rate of the traffic information AP device and the length information to determine when the current according to a current line, comprises said rate information to the AP information of the current traffic :( - long previously recorded information online) - flow information) / (length of the current online information previously recorded.
6. 一种速率统计的网管设备,应用于包括所述网管设备、AC设备和AP设备的系统中, 其特征在于,该网管设备包括:读取模块,用于从所述AC设备上读取所述AP设备的当前流量信息和当前在线时长信息;记录模块,与所述读取模块连接,用于记录所述读取模块读取的所述当前在线时长信息;比较模块,与所述记录模块连接,用于比较所述当前在线时长信息与之前记录的在线时长信息;确定模块,与所述比较模块连接,用于当所述当前在线时长信息与之前记录的在线时长信息一致时,确定所述当前流量信息无效;当所述当前在线时长信息与之前记录的在线时长信息不一致时,根据所述当前流量信息和所述当前在线时长信息确定所述AP设备的速率信息。 A rate statistics of the network management device, applied to a system including a network management device, the AC and AP devices, wherein the network management device comprising: reading means for reading from said AC device the current flow rate information and the current AP device online time information; recording module connected to the read module, the read module for reading the recording current when the line length information; comparison module, the recording module is connected, for comparing the current length information online long time online information previously recorded; determining module, connected with the comparison module length information coincides with the time when the line length of the current line and the previously recorded information for determining the the current traffic information is invalid; when the current line is inconsistent long duration information previously recorded information online, the information rate of the information for determining the length of the device when the AP and the current online information according to the current flow.
7.如权利要求6所述的网管设备,其特征在于,所述读取模块,具体用于通过SNMP方式从所述AC设备上同时读取所述AP设备的当前流量信息和当前在线时长信息。 7. The network management device according to claim 6, wherein said reading module for reading the particular device from the AP at the same time the AC current flow through SNMP online time information and current information .
8.如权利要求6所述的网管设备,其特征在于,所述比较模块,还用于比较所述当前流量信息与之前记录的流量信息。 8. The network management apparatus according to claim 6, wherein the comparison module is further configured to compare the flow rate information recorded before the current traffic information.
9.如权利要求6所述的网管设备,其特征在于,还包括:删除模块,与所述记录模块连接,用于删除所述记录模块之前记录的在线时长信息。 9. The network management apparatus according to claim 6, characterized in that, further comprising: a deleting module, connected with the recording means for recording the duration information online module before deleting the record.
10.如权利要求6所述的网管设备,其特征在于,所述确定模块,具体用于计算所述AP设备的速率信息为:(当前流量信息-之前记录的流量信息)/(当前在线时长信息-之前记录的在线时长信息)。 10. The network management device according to claim 6, wherein the determining module is configured to calculate the rate information for the AP device :( current traffic information - traffic information previously recorded) / (time length of the current line information - long online information previously recorded).
CN2010102948551A 2010-09-28 2010-09-28 Method and device for counting rate CN101945014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102948551A CN101945014B (en) 2010-09-28 2010-09-28 Method and device for counting rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102948551A CN101945014B (en) 2010-09-28 2010-09-28 Method and device for counting rate

Publications (2)

Publication Number Publication Date
CN101945014A CN101945014A (en) 2011-01-12
CN101945014B true CN101945014B (en) 2012-05-23

Family

ID=43436798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102948551A CN101945014B (en) 2010-09-28 2010-09-28 Method and device for counting rate

Country Status (1)

Country Link
CN (1) CN101945014B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337802A (en) * 2015-11-17 2016-02-17 中国联合网络通信集团有限公司 Method and device for monitoring network flow
CN106412884A (en) * 2016-11-24 2017-02-15 北京小米移动软件有限公司 WIFI connection management method and apparatus thereof
WO2018170869A1 (en) * 2017-03-24 2018-09-27 华为技术有限公司 Data transmission rate calculation method and related apparatus
CN108259225B (en) * 2017-12-20 2019-06-21 中国联合网络通信集团有限公司 A kind of network capacity extension appraisal procedure, device and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006031834A2 (en) 2004-09-13 2006-03-23 Interdigital Technology Corporation Method and apparatus for determining and managing congestion in a wireless communications system
CN1992657A (en) 2005-12-26 2007-07-04 中兴通讯股份有限公司 Load-balancing method of wireless LAN

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006031834A2 (en) 2004-09-13 2006-03-23 Interdigital Technology Corporation Method and apparatus for determining and managing congestion in a wireless communications system
CN1992657A (en) 2005-12-26 2007-07-04 中兴通讯股份有限公司 Load-balancing method of wireless LAN

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈侃等.集中式WLAN网络无线资源管理研究.《计算机工程》.2007,第33卷(第8期),

Also Published As

Publication number Publication date
CN101945014A (en) 2011-01-12

Similar Documents

Publication Publication Date Title
US10218818B2 (en) Matching encoder output to network bandwidth
Li et al. Localized fault-tolerant topology control in wireless ad hoc networks
US7120678B2 (en) Method and apparatus for configurable data collection on a computer network
CN101106767B (en) Area quality information acquisition system
US9338740B2 (en) Method and apparatus for selecting a wireless access point
US20060109793A1 (en) Network simulation apparatus and method for analyzing abnormal network
CN1838600B (en) Sensor network system and data transfer method for sensing data
CN102739802B (en) Service application-oriented IT centralized operation and maintenance analyzing system
Michalevsky et al. Powerspy: Location tracking using mobile device power analysis
US20120026878A1 (en) Method For Configuration Of A Load Balancing Algorithm In A Network Device
RU2411671C2 (en) Measurement and monitoring of qos in wireless networks with service limitation
US9031561B2 (en) Method and system for optimizing cellular networks operation
KR100617310B1 (en) Apparatus for detecting abnormality of traffic in network and method thereof
TW200917685A (en) Radio measurement procedure in wireless communication system
CN102576345A (en) Dynamic management of network flows
CN101119256A (en) Sensor network system and data processing method for sensor network
Ghosh et al. Modeling and characterization of large-scale Wi-Fi traffic in public hot-spots
CN102130800B (en) Device and method for detecting network access abnormality based on data stream behavior analysis
CN102783097B (en) Packet transfer system, control apparatus, transfer apparatus, method of creating processing rules
US7983155B2 (en) Systems and methods for testing a network
GB2411542A (en) Method of data gathering of a user network
CN101617502B (en) Self-configuring wireless network location system
GB2406465B (en) System and method of network fault monitoring
CN102055525B (en) loop detection and control method
CN103269355A (en) Intelligent skynet application platform

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03