WO2007019808A1 - Method and system for acquiring the traffic information in real time - Google Patents

Method and system for acquiring the traffic information in real time Download PDF

Info

Publication number
WO2007019808A1
WO2007019808A1 PCT/CN2006/002108 CN2006002108W WO2007019808A1 WO 2007019808 A1 WO2007019808 A1 WO 2007019808A1 CN 2006002108 W CN2006002108 W CN 2006002108W WO 2007019808 A1 WO2007019808 A1 WO 2007019808A1
Authority
WO
WIPO (PCT)
Prior art keywords
counter
traffic
traffic information
statistical
processing module
Prior art date
Application number
PCT/CN2006/002108
Other languages
French (fr)
Chinese (zh)
Inventor
Ye Yan
Xiaohai Yuan
Jian Ying
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.
Publication of WO2007019808A1 publication Critical patent/WO2007019808A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/58Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on statistics of usage or network monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/01Details of billing arrangements
    • H04M2215/0188Network monitoring; statistics on usage on called/calling number

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for acquiring traffic information in real time. Background technique
  • the traffic information includes information about the call status of the exchange, the amount of call services, and the quality of the network.
  • the operator operates, maintains, and manages the exchange and its surrounding networks based on the traffic information, and designs for the operator. Provide reference data for business management.
  • the requirements for telecommunication users' traffic statistics function are more and more comprehensive, and the performance requirements are getting higher and higher.
  • FIG. 1 shows a schematic diagram of an existing principle for obtaining traffic information.
  • the traffic statistics server is used to implement the post-mortem statistics function of traffic.
  • the switch service processing module (SM, Switch Module) sends the call information to the traffic statistics server through the front management module (FAM) at the end of the call, and the traffic statistics server classifies, counts, and stores the information.
  • FAM front management module
  • the traffic statistics report is output to the user, wherein the pre-switch management module is a high-speed, massive, and secondary external memory of the switch.
  • the traffic information statistics server needs to perform statistics according to the information sent by the switch service processing module, and the information that can be sent from the service processing module to the traffic statistics server is limited, the traffic information statistics function is not comprehensive.
  • the service processing module must send the information of each call to the traffic statistics server, and the traffic statistics server also needs to save all the information to its memory (such as a hard disk).
  • the traffic statistics server When the traffic is high, the performance of the service processing module and the traffic statistics server will be a test, which reduces the reliability of the system.
  • the service processing module After the end of each call, the service processing module sends the call information to the traffic statistics server, which causes the information collected by the traffic statistics server to have a certain delay, and the real-time performance of the statistics is inevitably affected.
  • FIG. 2 is a schematic diagram showing another implementation principle of acquiring traffic information. It uses the business processing module for post-event statistics, and the statistical function is implemented in each business processing module.
  • the service processing module collects the call at the end of the call. At the end of each statistical period, the statistics are sent to the BAM (Behind Administration Module) through the Pre-Switch Management Module (FAM).
  • the post-switch management module is also a high-speed, massive, and two-level external storage device of the switch, which can save statistical results, synthesize the statistical results, and form a report output to the user.
  • a method for obtaining traffic information in real time includes: preset at least one counter in a service processing module;
  • the service processing module uses the counter to collect traffic data and perform traffic statistics.
  • the counter is preset by the following steps:
  • the method further includes setting a statistical task, a statistical period, and a statistical object.
  • the method further includes:
  • the service processing module transmits the traffic statistics result to the relevant management module.
  • the statistics of the event class ontology are implemented according to the following steps:
  • the counter of the event is accumulated as the event occurs
  • the service processing module records the counter value at the beginning and end of the statistical period, and calculates the difference. More suitably, follow the steps below to obtain the traffic class ontology data:
  • the occupied line number counter and the traffic auxiliary counter are set, and the traffic auxiliary counter is used to record the accumulated value of the occupied line number in time;
  • the service processing module scans the traffic assist counter and the sample count counter at the beginning and end of the statistical period, respectively, and calculates the traffic volume in the statistical period T by the following formula:
  • Traffic (the traffic assist amount at the end of the statistical period - the traffic assist amount at the start of the statistical cycle) / The number of samples in the statistical period.
  • the occupied line number counter n and the traffic volume auxiliary counter U are set, and r represents the number of lines occupied at the current time.
  • r represents the number of lines occupied at the current time.
  • U is the cumulative value of the number of scan lines in time; i is the time of the i-th sample point; j is the time of the j-th sample point; the time indicating the i-th sample point is used in the statistical object group The number of objects.
  • a fixed counter is set to record the traffic data.
  • a semi-fixed counter is set, the enumeration value is expanded according to the object number, an index value is generated, and counting and related operations are performed according to the index value.
  • a common counter area is set, and the counter in the common counter area is dynamically allocated according to the set statistical task.
  • a system for acquiring traffic information in real time comprising:
  • At least one counter preset in the service processing module, is configured to collect traffic data; and the traffic data processing module performs statistical processing on the traffic data collected by the counter to obtain traffic information.
  • the counter is formed by one or more fixed bytes in the shared memory by setting a shared memory in the service processing module.
  • the counter is a fixed counter;
  • the counter is a semi-fixed counter, and the enumeration value is expanded according to the object number, an index value is generated, and counting and related operations are performed according to the index value.
  • the system also includes a management module for receiving and managing traffic statistics results from the service processing module.
  • the present invention uses the embedded counter method to perform traffic information statistics, and only accumulates or subtracts the counter at each program point. At the end of the statistical period, the counter value is taken to form a statistical report output to the switch management module. In this way, the efficiency of traffic information statistics can be improved, the number of simultaneous statistics tasks is increased, and the traffic statistics function is enhanced.
  • Traffic statistics are calculated using the embedded counter method. Each time the program reaches a statistical point, the corresponding counter is counted, which improves the real-time and accuracy of traffic information statistics.
  • FIG. 1 is a schematic diagram of an implementation principle of acquiring traffic information in the prior art
  • FIG. 2 is a schematic diagram of another implementation principle of acquiring traffic information in the prior art
  • FIG. 3 is a flowchart of a method for acquiring traffic information according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a statistical data curve of an event class ontology in accordance with an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of statistics of a traffic class ontology according to an embodiment of the present invention. detailed description
  • Switch refers to communication devices with switching functions, such as fixed network switches, wireless switches, softswitch devices, and Service Control Point (SCP).
  • SCP Service Control Point
  • Traffic statistics Also known as traffic measurement, traffic measurement, load measurement, traffic statistics. It measures on the exchange and its surrounding telephone networks, providing data on the measurement, planning, operation, and management of the telephone network.
  • Ontology Indicates the amount of data that must be collected for a measurement (such as traffic, number of calls, average duration, etc.).
  • Object refers to various physical or logical entities being measured and combinations thereof (eg, line group, Relay circuit group, common control unit, auxiliary unit, destination, etc.).
  • Measurement unit A specific type of measurement that specifies what can be measured, what is measured, and how it is measured.
  • Traffic volume The percentage of time that the device handles traffic as a percentage of the total duration, dimensionless, in Ireland (Erl), traffic usage, call traffic, etc.
  • Event A hardware or software action that occurs in a switch or surrounding network and is generated by the user or hardware or software and has a clear physical or logical meaning, called an event.
  • the number of occurrences of an event is an important part of the traffic information statistics, and the operation of the switch and the surrounding network can be described based on the value of these event times.
  • the method mainly includes: pre-embedding at least one counter in each service processing module SM; setting a statistical task, a statistical period, and a statistical object;
  • the processing module uses the counter to collect the traffic data and obtain the traffic information statistics result;
  • the service processing module transmits the traffic information statistics result to the switch management module BAM through the pre-switch management module FAM.
  • the method for pre-embedding the counter specifically includes a global shared memory as a counter area in each service processing module, and every 4 bytes in the memory serves as a counter.
  • the application of the business processing module accumulates (++) or subtracts (-) operations on a counter in the counter area in a contracted manner for statistical purposes.
  • the implementation of the embedded counter method mainly involves two aspects. One is to use the counter to count the various types of ontology. In the present invention, for each type of ontology (such as event class, traffic class, timely long class ontology, etc.), There are some differences in the specific processing methods. The second is how to manage these counters.
  • FIG. 4 is a schematic diagram showing statistical data of an event class ontology in an embodiment of the present invention.
  • the best thing about the counter structure is to do the accumulation. Therefore, for the "calls”, “occupied times”, “XXX times” and other ontology, you only need to simply ++ on the counters representing these ontology at the corresponding software process points.
  • the counter of the event is accumulated as the event occurs.
  • SM accesses the counter at the beginning and end of the statistical period T, and the difference is the number of events occurring during this statistical period.
  • a counter can serve statistical tasks for various statistical periods.
  • FIG. 5 is a schematic diagram showing the statistics of the traffic class ontology in the embodiment of the present invention. For the ontology of the traffic class, such as "occupied traffic", it is not only related to the number of occupations, but also related to the duration of each occupation. Therefore, traffic is measured by indirect scanning.
  • individual lines in the object (such as relay circuits in the trunk group) are scanned to obtain the number of lines occupied at different times... n m . .n is the number of buses in the statistic object. If the sampling interval Tp is sufficiently small, the traffic in the period can be approximated by the following equation:
  • USAGE represents the traffic volume (ie traffic intensity); M represents the number of samples in the statistical period; i represents the time of the i-th sample point; ni indicates that the time of the i-th sample point is in the statistical object group The number of objects in the state of use.
  • an "occupied line number counter” is used to indicate the number of lines occupied at the current time, ni.
  • the application module adds 1 to the "occupied line number counter” and ends with "occupied line”.
  • the number counter is decremented by 1. In this way, there is no need to scan each line, and the "Occupied Line Count Counter" always records the number of lines currently occupied in the statistics object at the current sample time.
  • a counter U (called the traffic auxiliary counter) is used to record the accumulated value of ni:
  • U represents the cumulative value of the number of scan lines in time
  • i represents the time of the i-th sample point
  • j represents the time of the j-th sample point
  • ni represents the moment of the i-th sample point is in the statistical object group The number of objects in the state of use.
  • Another counter S is used to record the total number of samples from the start of the system to a certain time, called the count counter. Therefore, the traffic volume in the statistical period T is:
  • USAGE represents the traffic volume (ie traffic intensity); Uj 2 represents the traffic assistance amount at the end of the statistical period (in ⁇ order number); 1 ⁇ indicates the statistical cycle start time In units of traffic volume assistance; M represents the number of samples in the statistical period, ie Sj 2 -Sji.
  • the traffic auxiliary counter and the sampling count counter are accumulated over time, and the SM scans the traffic auxiliary counter and the sampling number counter at the beginning and the end of the statistical cycle, respectively, and the difference and sampling of the two.
  • the quotient of the number of times is the traffic volume of the cycle.
  • M is the constant obtained from the statistical period set by the statistical task.
  • the duration information has an average duration of time, a duration of congestion, and the like.
  • the average occupancy time (occupied total duration / occupancy count)
  • the unit is the sampling interval T p (seconds)
  • Average occupancy time (occupation traffic assistance amount / occupancy count) * ⁇ ⁇ (seconds) Due to the large number of objects to be counted, it is unrealistic to statically assign a counter to each statistical item of each object in the switch. of. Therefore, different types of counters need to be designed to meet various statistical requirements.
  • the object When there is only one object in the measurement unit, for example: For global measurement of traffic, the object is "all subscriber lines". Only one set of counters is needed to count the body of this object. Such counters are called fixed counters. Fixed counters are allocated at system initialization and the number does not change with the SM configuration. The fixed counter can be described by an array: unsigned long main_counter[MAX_FIX_COUNTER_NUM]; The application can use the fixed class counter to correspond to the enumeration value of the ontology as an array of counters. Subscript, counting and refreshing.
  • the number of entities is only related to the largest tuple of the number of configurations of the object, such as the statistics of the relay group.
  • This type of counter is called a semi-fixed counter. Semi-fixed counters can also be described in arrays:
  • Unsigned long main_counter [MAX_HFIX_COUNTER_NlJM]; Unlike the fixed counter, the number of objects of the measurement unit using the semi-fixed counter has a multi-value value that is "expanded" according to the object number, thereby generating an index value, and counting and refreshing operations according to the index value.
  • the index of the counter takes the following form:
  • n length * n + ( entity - entity — begin )
  • length is the number of ontology of a measurement unit
  • entity_begin is the starting enumeration value of the ontology of a measurement unit, ie MS—H— XXX—XXX— ENTITY—BEGIN + 1
  • entity is the unified numbered body of a measurement unit
  • each measurement unit object does not correspond to a group of counters, but there is a common counter area common to all of these objects. The size of this common counter area is fixed. Only when the BAM has set up a statistical task, assigns a set of counters to the corresponding statistical object. This counter is released when the task is completed and deleted.
  • the embedded counter and the post-analysis method may be used at the same time, and the measurement unit with less global class and the number of objects may be counted by using a pre-embedded counter, and for a specific object.
  • the measurement unit that performs statistics (for example, statistics on the call situation of a certain user) is statistically analyzed by means of post-mortem analysis. In this way, the advantages of the two methods can be taken into account, and the traffic information statistics function can be unified and efficient.
  • the method of using the embedded counter is used to perform traffic information statistics, only in each Program points perform ++ and one operations on the counter. At the end of the statistical period, the counter value is taken to form a statistical report output to the BAM. In this way, the efficiency of traffic information statistics can be improved, the number of tasks simultaneously counted is increased, and the comprehensiveness of the traffic information statistics function is enhanced.
  • the traffic counter is calculated by using the embedded counter method. Whenever the program reaches a statistical point, the corresponding counter is counted, which improves the real-time performance and accuracy of the traffic information statistics.

Abstract

A method and system for acquiring the traffic information in real time, and the method includes: presetting at least one counter in the service module; and the service module using the said counter for collecting the traffic information and implementing the traffic statistics. The inventive system includes: at least one counter preset in the service module, which is used for collecting the traffic information; a traffic data processing module, which is used for implementing the statistics of the traffic data collected by the counter and obtaining the traffic information. With the invention, the efficiency of the traffic statistics can be improved, the number of the statistical tasks implemented concurrently can be increased, and the traffic statistics function can be enhanced. In addition, the real-time ability and the accuracy of the traffic statistics can also be improved.

Description

一种实时获取话 ^言息的方法及系统  Method and system for real-time access to words
技术领域 本发明涉及通信技术领域, 具体涉及实时获取话务信息的方法及系 统。 背景技术 TECHNICAL FIELD The present invention relates to the field of communications technologies, and in particular, to a method and system for acquiring traffic information in real time. Background technique
现有交换机一般均提供话务信息统计的功能。 话务信息包括交换局 的呼叫状况、 呼叫服务廣量及网路质量等方面的信息, 运营商根据话务 信息对交换局及其周围网络进行操作、 维护和管理, 并为运营商的设计 规划和经营管理提供参考数据。 随着交换技术的发展, 交换机容量的扩 大, 电信用户对话务信息统计功能的要求越来越全面、 性能要求也越来 越高。  Existing switches generally provide traffic statistics. The traffic information includes information about the call status of the exchange, the amount of call services, and the quality of the network. The operator operates, maintains, and manages the exchange and its surrounding networks based on the traffic information, and designs for the operator. Provide reference data for business management. With the development of switching technology and the expansion of switch capacity, the requirements for telecommunication users' traffic statistics function are more and more comprehensive, and the performance requirements are getting higher and higher.
如图 1所示为现有的一种获取话务信息实现原理示意图, 采用话务 统计服务器单独实现话务的事后统计功能。 交换机业务处理模块(SM, Switch Module ) 在呼叫结束时通过交换机前管理模块 (FAM , Front Administration Module )将呼叫信息发送给话务统计服务器,话务统计服 务器对这些信息进行分类、 统计、 存储, 最后形成话务统计报告输出给 用户, 其中交换机前管理模块是交换机的高速、 海量、 二级外存储器。  Figure 1 shows a schematic diagram of an existing principle for obtaining traffic information. The traffic statistics server is used to implement the post-mortem statistics function of traffic. The switch service processing module (SM, Switch Module) sends the call information to the traffic statistics server through the front management module (FAM) at the end of the call, and the traffic statistics server classifies, counts, and stores the information. Finally, the traffic statistics report is output to the user, wherein the pre-switch management module is a high-speed, massive, and secondary external memory of the switch.
由于话务统计服务器需要根据交换机业务处理模块发送的信息进行 统计, 而能从业务处理模块发送到话务统计服务器的信息有限, 这就会 导致话务信息统计功能不全面。  Since the traffic statistics server needs to perform statistics according to the information sent by the switch service processing module, and the information that can be sent from the service processing module to the traffic statistics server is limited, the traffic information statistics function is not comprehensive.
业务处理模块必须将每一个呼叫的信息都发送给话务统计服务器, 话务统计服务器也需要将所有信息都保存到其存储器(如硬盘)里。 当 话务量高的时候, 对业务处理模块和话务统计服务器的性能都将是一种 考验, 降低了系統的可靠性。  The service processing module must send the information of each call to the traffic statistics server, and the traffic statistics server also needs to save all the information to its memory (such as a hard disk). When the traffic is high, the performance of the service processing module and the traffic statistics server will be a test, which reduces the reliability of the system.
业务处理模块在每一个呼叫结束后将呼叫信息发送到话务统计服务 器, 导致话务统计服务器统计到的信息存在有一定的延迟, 统计的实时 性必然受到影响。  After the end of each call, the service processing module sends the call information to the traffic statistics server, which causes the information collected by the traffic statistics server to have a certain delay, and the real-time performance of the statistics is inevitably affected.
另外, 这种方式增加了运营商的运行、 维护成本。 运营商必须额外 维护外置服务器的软硬件系统。 In addition, this approach increases the operator's operating and maintenance costs. Operator must add extra Maintain the software and hardware systems of the external server.
如图 2所示为现有的另一种获取话务信息的实现原理示意图。 其采 用业务处理模块进行事后统计的, 统计功能在各个业务处理模块实现。 业务处理模块在呼叫结束时对呼叫进行统计, 在每个统计周期结束时, 将统计结果通过交换机前管理模块(FAM )发送到交换机后管理模块 ( BAM, Behind Administration Module ) 中。 该交换机后管理模块同样 是交换机的高速、 海量、 二级外存储设备, 其可保存统计结果, 将该统 计结果进行综合, 并形成报告输出给用户。  FIG. 2 is a schematic diagram showing another implementation principle of acquiring traffic information. It uses the business processing module for post-event statistics, and the statistical function is implemented in each business processing module. The service processing module collects the call at the end of the call. At the end of each statistical period, the statistics are sent to the BAM (Behind Administration Module) through the Pre-Switch Management Module (FAM). The post-switch management module is also a high-speed, massive, and two-level external storage device of the switch, which can save statistical results, synthesize the statistical results, and form a report output to the user.
上述话务信息统计方案都是采用事后分析的方法, 其统计功能不全 面, 实时性不高。 另外, 由于统计功能在各个业务处理模块实现, 为了 防止话务统计功能对整个系统性能造成大的影响, 交换机能同时支持的 统计任务数受到限制。 发明内容  The above traffic information statistics schemes all adopt post-analysis methods, and their statistical functions are not comprehensive and the real-time performance is not high. In addition, because the statistics function is implemented in each service processing module, in order to prevent the traffic statistics function from having a large impact on the overall system performance, the number of statistical tasks that the switch can support at the same time is limited. Summary of the invention
本发明的目的是提供一种实时检测话务信息的方法和系统, 以提高 话务统计的准确性和实时性。  It is an object of the present invention to provide a method and system for detecting traffic information in real time to improve the accuracy and real-time performance of traffic statistics.
根据本发明提供的一种实时获取话务信息的方法, 包括: 在业务处理模块中预设至少一个计数器;  A method for obtaining traffic information in real time according to the present invention includes: preset at least one counter in a service processing module;
业务处理模块利用所述计数器釆集话务数据, 并进行话务统计。 优选地, 通过下列步骤预设计数器:  The service processing module uses the counter to collect traffic data and perform traffic statistics. Preferably, the counter is preset by the following steps:
设置共享内存作为计数器区, 并将该共享内存中的一个或多个固定 字节设为一个计数器。  Set shared memory as the counter area and set one or more fixed bytes in the shared memory to one counter.
更适宜地, 改方法还包括设定统计任务、 统计周期、 统计对象。 该方法进一步包括:  More suitably, the method further includes setting a statistical task, a statistical period, and a statistical object. The method further includes:
业务处理模块将该话务统计结果传送给相关管理模块。  The service processing module transmits the traffic statistics result to the relevant management module.
优选地, 按照下列步骤实现对事件类本体进行统计:  Preferably, the statistics of the event class ontology are implemented according to the following steps:
设置一个计数器;  Set a counter;
随事件的发生对该事件的计数器进行累加;  The counter of the event is accumulated as the event occurs;
业务处理模块在统计周期的起始和结束时分别记录该计数器值, 并 计算其差值。 更适宜地, 按照下列步驟获取话务量类本体数据: The service processing module records the counter value at the beginning and end of the statistical period, and calculates the difference. More suitably, follow the steps below to obtain the traffic class ontology data:
设置占用线数计数器及话务量辅助计数器, 话务量辅助计数器用于 记录占用线数在时间上的累加值;  The occupied line number counter and the traffic auxiliary counter are set, and the traffic auxiliary counter is used to record the accumulated value of the occupied line number in time;
设置采样次数计数器, 用于记录统计周期内的采样次数;  Set a sampling number counter for recording the number of sampling times in the statistical period;
业务处理模块在统计周期的起始和结束时分别扫描话务量辅助计数 器和釆样次数计数器, 并用下述公式计算统计周期 T内的话务量:  The service processing module scans the traffic assist counter and the sample count counter at the beginning and end of the statistical period, respectively, and calculates the traffic volume in the statistical period T by the following formula:
话务量 = (统计周期内末时刻的话务量辅助量 -统计周期起始时刻 的话务量辅助量) /统计周期内的采样次数。  Traffic = (the traffic assist amount at the end of the statistical period - the traffic assist amount at the start of the statistical cycle) / The number of samples in the statistical period.
具体地, 设置占用线数计数器 n及话务量辅助计数器 U, r表示在当 前时刻处于占用的线路数, 在每条线的占用开始时, 对占用线数计数器 加 1 , 结束时对占用线数计数器减 1; 所述话务量辅助计数器 U用于记录 的累加值, 通过下述公式获得:
Figure imgf000005_0001
Specifically, the occupied line number counter n and the traffic volume auxiliary counter U are set, and r represents the number of lines occupied at the current time. When the occupation of each line starts, the occupied line number counter is incremented by one, and the occupied line is ended. The counter is decremented by one; the accumulative value used by the traffic assist counter U for recording is obtained by the following formula:
Figure imgf000005_0001
其中, U表示扫描线数在时间上的累计值; i表示第 i个采样点的时刻; j表示第 j个采样点的时刻; 表示第 i个采样点的时刻被统计对象组中处 于使用状态的对象个数。  Where U is the cumulative value of the number of scan lines in time; i is the time of the i-th sample point; j is the time of the j-th sample point; the time indicating the i-th sample point is used in the statistical object group The number of objects.
更适宜地, 当测量对象为一个时, 设置固定计数器, 记录话务数据。 当测量对象有多个时, 设置半固定计数器, 对枚举值按照对象序号 扩展, 生成索引值, 根据该索引值进行计数及相关操作。  More suitably, when the measurement object is one, a fixed counter is set to record the traffic data. When there are multiple measurement objects, a semi-fixed counter is set, the enumeration value is expanded according to the object number, an index value is generated, and counting and related operations are performed according to the index value.
更适宜地, 当测量对象有多个时, 设置一个公用的计数器区, 并根 据设置的统计任务, 动态分配所述公用计数器区中的计数器。  More suitably, when there are a plurality of measurement objects, a common counter area is set, and the counter in the common counter area is dynamically allocated according to the set statistical task.
根据本发明还提供一种实时获取话务信息的系统, 包括:  According to the present invention, there is also provided a system for acquiring traffic information in real time, comprising:
至少一个计数器, 预设在业务处理模块中, 用于采集话务数据; 话务数据处理模块, 对所述计数器采集的话务数据统计处理, 得到 话务信息。  At least one counter, preset in the service processing module, is configured to collect traffic data; and the traffic data processing module performs statistical processing on the traffic data collected by the counter to obtain traffic information.
更适宜地, 所述计数器通过在业务处理模块中设置共享内存, 由该 共享内存中的一个或多个固定字节构成。  More suitably, the counter is formed by one or more fixed bytes in the shared memory by setting a shared memory in the service processing module.
更适宜地, 当测量对象为一个时, 所述计数器为固定计数器; 当测量对象为多个时, 所述计数器为半固定计数器, 对枚举值按照 对象序号扩展, 生成索引值, 根据该索引值进行计数及相关操作。 Preferably, when the measurement object is one, the counter is a fixed counter; When there are a plurality of measurement objects, the counter is a semi-fixed counter, and the enumeration value is expanded according to the object number, an index value is generated, and counting and related operations are performed according to the index value.
该系统还包括管理模块, 用于接收和管理来自业务处理模块的话务 统计结果。  The system also includes a management module for receiving and managing traffic statistics results from the service processing module.
本发明釆用预埋计数器的方法进行话务信息统计, 仅是在各个程序 点对计数器进行累加或累減的操作。 在统计周期结束时, 再取计数器值 形成统计报告输出到交换机后管理模块。 这样就可以提高话务信息统计 的效率, 也增加了同时统计的任务数目, 并增强了话务统计功能。  The present invention uses the embedded counter method to perform traffic information statistics, and only accumulates or subtracts the counter at each program point. At the end of the statistical period, the counter value is taken to form a statistical report output to the switch management module. In this way, the efficiency of traffic information statistics can be improved, the number of simultaneous statistics tasks is increased, and the traffic statistics function is enhanced.
使用预埋计数器的方法进行话务统计, 程序每走到一个统计点, 相 应的计数器就会进行计数, 这样就提高了话务信息统计的实时性及准确 性。 附图说明  Traffic statistics are calculated using the embedded counter method. Each time the program reaches a statistical point, the corresponding counter is counted, which improves the real-time and accuracy of traffic information statistics. DRAWINGS
图 1是现有的一种获取话务信息的实现原理示意图;  1 is a schematic diagram of an implementation principle of acquiring traffic information in the prior art;
图 2是现有的另一种获取话务信息的实现原理示意图;  2 is a schematic diagram of another implementation principle of acquiring traffic information in the prior art;
图 3是根据本发明实施例的获取话务信息的方法流程图;  3 is a flowchart of a method for acquiring traffic information according to an embodiment of the present invention;
图 4是根据本发明的实施例中对事件类本体进行统计数据曲线示意 图;  4 is a schematic diagram of a statistical data curve of an event class ontology in accordance with an embodiment of the present invention;
图 5是根据本发明的实施例中对话务量类本体进行统计的示意图。 具体实施方式  FIG. 5 is a schematic diagram of statistics of a traffic class ontology according to an embodiment of the present invention. detailed description
首先对本发明中所涉及的一些技术术语说明如下:  First, some technical terms involved in the present invention are explained as follows:
交换机: 泛指具有交换功能的通信设备, 比如固网交换机、 无线交 换机、 软交换设备、 业务控制点 (SCP, Service Control Point )等。  Switch: Refers to communication devices with switching functions, such as fixed network switches, wireless switches, softswitch devices, and Service Control Point (SCP).
话务统计: 又称话务测量、 业务量测量、 负荷测量、 业务量统计。 它在交换局及其周围电话网络上进行测量, 提供可据此进行电话网络的 量度、 规划设计、 运行和管理的数据。  Traffic statistics: Also known as traffic measurement, traffic measurement, load measurement, traffic statistics. It measures on the exchange and its surrounding telephone networks, providing data on the measurement, planning, operation, and management of the telephone network.
本体: 表示为某种测量必须收集数据的量(例如话务量、呼叫次数、 平均占用时长等)。  Ontology: Indicates the amount of data that must be collected for a measurement (such as traffic, number of calls, average duration, etc.).
对象: 指被测量的各种物理或逻辑的实体及其组合(例如, 户线群、 中继电路群、 公共控制部件、 辅助部件、 目的地等)。 Object: Refers to various physical or logical entities being measured and combinations thereof (eg, line group, Relay circuit group, common control unit, auxiliary unit, destination, etc.).
测量单元: 一类具体的测量, 明确可以测量什么、对什么进行测量、 怎样测量。  Measurement unit: A specific type of measurement that specifies what can be measured, what is measured, and how it is measured.
话务量: 设备处理话务的时长占总时长的百分比, 无量纲量, 单位 为爱尔兰 (Erl ), 分占用话务量、 通话话务量等。  Traffic volume: The percentage of time that the device handles traffic as a percentage of the total duration, dimensionless, in Ireland (Erl), traffic usage, call traffic, etc.
事件: 交换机或周围的网络中发生的, 由用户或硬件或软件产生的, 有明确物理或逻辑含义的一个硬件或软件动作, 称为一个事件。 事件发 生的次数是话务信息统计的一个重要内容, 可以根据这些事件次数值描 述交换机及周围网络的运行的情况。  Event: A hardware or software action that occurs in a switch or surrounding network and is generated by the user or hardware or software and has a clear physical or logical meaning, called an event. The number of occurrences of an event is an important part of the traffic information statistics, and the operation of the switch and the surrounding network can be described based on the value of these event times.
图 3是根据本发明实施例获取话务信息的方法流程图, 参照图 3 , 主 要包括:在每个业务处理模块 SM中预埋至少一个计数器;设定统计任务、 统计周期、 统计对象; 业务处理模块利用计数器采集话务数据并获得话 务信息统计结果; 业务处理模块将该话务信息统计结果通过交换机前管 理模块 FAM传送给交换机后管理模块 BAM。  3 is a flowchart of a method for obtaining traffic information according to an embodiment of the present invention. Referring to FIG. 3, the method mainly includes: pre-embedding at least one counter in each service processing module SM; setting a statistical task, a statistical period, and a statistical object; The processing module uses the counter to collect the traffic data and obtain the traffic information statistics result; the service processing module transmits the traffic information statistics result to the switch management module BAM through the pre-switch management module FAM.
其中, 所述预埋计数器的方法, 具体来说是在每个业务处理模块中 都设有一块全局性的共享内存作为计数器区,内存中的每 4个字节充当一 个计数器。 业务处理模块的应用程序采用约定的方式, 对计数器区中的 某个计数器进行累加 (++ )或累减( - -)操作, 以达到统计的目的。 预埋计数器方法的实现主要涉及两个方面, 其一是使用计数器对各类本 体的统计, 在本发明中, 对于每类本体(如事件类、 话务量类及时长类 本体等) , 其具体的处理方法有些差别, 其二是如何管理这些计数器。  The method for pre-embedding the counter specifically includes a global shared memory as a counter area in each service processing module, and every 4 bytes in the memory serves as a counter. The application of the business processing module accumulates (++) or subtracts (-) operations on a counter in the counter area in a contracted manner for statistical purposes. The implementation of the embedded counter method mainly involves two aspects. One is to use the counter to count the various types of ontology. In the present invention, for each type of ontology (such as event class, traffic class, timely long class ontology, etc.), There are some differences in the specific processing methods. The second is how to manage these counters.
下面对本发明中涉及到的各类本体的统计方法进行说明:  The following describes the statistical methods of various types of ontology involved in the present invention:
图 4示出了本发明的实施例中对事件类本体进行统计数据曲线示意 图。 计数器结构最擅长的是进行累加。 因此对于 "试呼次数" 、 "占用 次数" 、 "XXX次数" 等本体, 只需在相应的软件流程点上简单地在代表 这些本体的计数器上 ++即可。 事件的计数器随事件的发生而累加, SM 在统计周期 T的起始和结束时分别访问该计数器, 所得差值即为这个统 计周期内发生的事件数。 釆用这种 "计数器累加, 作差取统计结果" 的 方法, 一个计数器可以为各种不同统计周期的统计任务服务。 图 5示出了本发明的实施例中对话务量类本体进行统计的示意图。 对于话务量类的本体, 如 "占用话务量" , 不仅与占用次数有关, 而且与每一次占用的时长有关。 因此, 话务量采用间接扫描的方法。 FIG. 4 is a schematic diagram showing statistical data of an event class ontology in an embodiment of the present invention. The best thing about the counter structure is to do the accumulation. Therefore, for the "calls", "occupied times", "XXX times" and other ontology, you only need to simply ++ on the counters representing these ontology at the corresponding software process points. The counter of the event is accumulated as the event occurs. SM accesses the counter at the beginning and end of the statistical period T, and the difference is the number of events occurring during this statistical period. Using this method of "counter accumulating, making statistical results", a counter can serve statistical tasks for various statistical periods. FIG. 5 is a schematic diagram showing the statistics of the traffic class ontology in the embodiment of the present invention. For the ontology of the traffic class, such as "occupied traffic", it is not only related to the number of occupations, but also related to the duration of each occupation. Therefore, traffic is measured by indirect scanning.
在统计周期 T内, 划分为 M个釆样点, 釆样间隔时间 Tp, 则丁 = ]\ Τρ。 在每个采样点上, 扫描对象中的个体线路(例如中继群中的中继电 路) , 得到不同时刻占用的线数 ...... nm。 .n为该统计对象内的总线数。 如果采样间隔 Tp足够小, 则该周期内的话务量可以近似用下式表示: In the statistical period T, it is divided into M sample points, and the sample interval time Tp is D ==\ Τρ. At each sampling point, individual lines in the object (such as relay circuits in the trunk group) are scanned to obtain the number of lines occupied at different times... n m . .n is the number of buses in the statistic object. If the sampling interval Tp is sufficiently small, the traffic in the period can be approximated by the following equation:
USAGE = USAGE =
M 其中: USAGE 表示话务量(即话务强度); M表示统计周期内的采样 次数; i表示第 i个釆样点的时刻; ni表示第 i个采样点的时刻被统计对象组 中处于使用状态的对象个数。  M where: USAGE represents the traffic volume (ie traffic intensity); M represents the number of samples in the statistical period; i represents the time of the i-th sample point; ni indicates that the time of the i-th sample point is in the statistical object group The number of objects in the state of use.
显然, 为获得 ni的值,每一个釆样间隔 Tp都扫描 N条线的状态会导致 很多运算量。 为此, 用一个 "占用线数计数器" 表示在当前时刻处于占 用的线路数 ni , 在每条线的占用开始时, 由应用模块对 "占用线数计数 器"加 1 , 结束时对 "占用线数计数器" 减 1。 这样, 无需扫描每条线路, "占用线数计数器" 就始终记录当前釆样时刻统计对象中正在占用的线 路数目。  Obviously, in order to obtain the value of ni, the state of scanning N lines for each sample interval Tp results in a lot of calculations. To this end, an "occupied line number counter" is used to indicate the number of lines occupied at the current time, ni. At the beginning of the occupation of each line, the application module adds 1 to the "occupied line number counter" and ends with "occupied line". The number counter is decremented by 1. In this way, there is no need to scan each line, and the "Occupied Line Count Counter" always records the number of lines currently occupied in the statistics object at the current sample time.
采用一个计数器 U (称为话务量辅助计数器) , 来记录 ni的累加值:
Figure imgf000008_0001
A counter U (called the traffic auxiliary counter) is used to record the accumulated value of ni:
Figure imgf000008_0001
其中: U表示扫描线数在时间上的累计值; i表示第 i个采样点的时刻; j 表示第 j个采样点的时刻; ni表示第 i个釆样点的时刻被统计对象组中处于 使用状态的对象个数。 Where: U represents the cumulative value of the number of scan lines in time; i represents the time of the i-th sample point; j represents the time of the j-th sample point; ni represents the moment of the i-th sample point is in the statistical object group The number of objects in the state of use.
采用另一个计数器 S记录从系统启动开始到某时刻的采样次数的总 数, 称为釆样次数计数器。 因此, 统计周期 T内的话务量是:  Another counter S is used to record the total number of samples from the start of the system to a certain time, called the count counter. Therefore, the traffic volume in the statistical period T is:
USAGE = (Uj2-Uji)/M USAGE = (Uj 2 -Uji)/M
其中: USAGE表示话务量(即话务强度) ; Uj2表示统计周期内末时刻 (以釆样序数为单位)的话务量辅助量; 1^表示统计周期起始时刻 (以 釆样序数为单位)话务量辅助量; M表示统计周期内的采样次数, 即 Sj2-Sji。 Where: USAGE represents the traffic volume (ie traffic intensity); Uj 2 represents the traffic assistance amount at the end of the statistical period (in 釆 order number); 1^ indicates the statistical cycle start time In units of traffic volume assistance; M represents the number of samples in the statistical period, ie Sj 2 -Sji.
与事件计数器类似, 话务量辅助计数器和采样次数计数器随时间的 推移而累加, SM在统计周期的起始和结束时分别扫描话务量辅助计数器 和采样次数计数器, 二者的差值与采样次数之商即为该周期的话务量。  Similar to the event counter, the traffic auxiliary counter and the sampling count counter are accumulated over time, and the SM scans the traffic auxiliary counter and the sampling number counter at the beginning and the end of the statistical cycle, respectively, and the difference and sampling of the two. The quotient of the number of times is the traffic volume of the cycle.
综上所述, 为统计一个话务量, 需要动用 3个计数器: 占用线数计数 器 n、 话务量辅助计数器 U、 采样次数计数器 S。 其中 U是 n随时间的累加 值, S是随时间推移的釆样次数的流水值。某一段时间内话务量的值由下 式给出:  In summary, in order to count a traffic, three counters need to be used: the occupied line counter n, the traffic auxiliary counter U, and the sampling counter S. Where U is the accumulated value of n over time, and S is the running value of the number of times over time. The value of traffic during a certain period of time is given by:
USAGE ^ (Uj.-Uj /CSj Sj  USAGE ^ (Uj.-Uj /CSj Sj
由于话务信息检测统计通常是以预定的周期得出统计结果的, 也就 是说, 对某一个特定的统计任务, M (即 SjrSjO是一个固定的量。 因此, 为简化设计, 只动用 2个计数器: 占用线数计数器 n、 话务量辅助计数器 U, 这样话务量的计算公式为:  Since the traffic information detection statistics usually result in statistical results at a predetermined cycle, that is, for a particular statistical task, M (ie, SjrSjO is a fixed amount. Therefore, to simplify the design, only 2 are used. Counter: The line number counter n and the traffic auxiliary counter U are used. The calculation formula of the traffic volume is:
USAGE = (Uj2-Uj /M USAGE = (Uj 2 -Uj /M
其中 M是^ ^艮具统计任务设定的统计周期得到的常量。  Where M is the constant obtained from the statistical period set by the statistical task.
而对于时长类本体, 在统计的本体中, 时长信息有平均占用时长、 拥塞时长等。以平均占用时长为例,在一般情况下,平均占用时长 = (占 用总时长 /占用次数) , 单位是采样间隔 Tp (秒), 如果要换算成以秒或分 表示的时长, 需要采用以下公式: For the duration class ontology, in the statistical ontology, the duration information has an average duration of time, a duration of congestion, and the like. Taking the average occupancy time as an example, in general, the average occupancy time = (occupied total duration / occupancy count), the unit is the sampling interval T p (seconds), if you want to convert to the length in seconds or minutes, you need to use the following formula:
平均占用时长 = (占用话务量辅助量 / 占用次数) *ΤΡ (秒) 由于需统计的对象的数量巨大, 对每一个交换机中的对象的每一个 统计项目都静态分配一个计数器是不现实的。 因此, 需要设计不同类型 的计数器以满足各类统计的要求。 Average occupancy time = (occupation traffic assistance amount / occupancy count) *Τ Ρ (seconds) Due to the large number of objects to be counted, it is unrealistic to statically assign a counter to each statistical item of each object in the switch. of. Therefore, different types of counters need to be designed to meet various statistical requirements.
测量单元中的对象只有一个时, 例如: 对全局发话话务的测量, 对 象为 "所有用户线" 。 只需要一套计数器统计这一个对象的本体, 这类 计数器称为固定计数器。 固定计数器在系统初始化时就已经分配, 其数 目不随着 SM的配置情况而发生变化。 固定计数器可以用数組描述: unsigned long main_counter[MAX_FIX_COUNTER_NUM]; 应用程序可以使用固定类计数器对应本体的枚举值作为计数器数組 的下标, 进行计数及刷新操作。 When there is only one object in the measurement unit, for example: For global measurement of traffic, the object is "all subscriber lines". Only one set of counters is needed to count the body of this object. Such counters are called fixed counters. Fixed counters are allocated at system initialization and the number does not change with the SM configuration. The fixed counter can be described by an array: unsigned long main_counter[MAX_FIX_COUNTER_NUM]; The application can use the fixed class counter to correspond to the enumeration value of the ontology as an array of counters. Subscript, counting and refreshing.
测量单元中的对象有多个时,但对一个 SM来说, 该实体数目只与对 象的配置数目的最大元组有关, 例如对中继群的统计。 这类计数器称为 半固定计数器。 半固定计数器也可以用数组描述:  When there are multiple objects in the measurement unit, for one SM, the number of entities is only related to the largest tuple of the number of configurations of the object, such as the statistics of the relay group. This type of counter is called a semi-fixed counter. Semi-fixed counters can also be described in arrays:
unsigned long main_counter [MAX_HFIX_COUNTER_NlJM]; 与固定计数器不同, 采用半固定计数器的测量单元的对象个数有多 举值按照对象序号 "扩展" , 从而生成索引值, 根据该索引值进行计数 及刷新操作。 计数器的索引采用以下的形式:  Unsigned long main_counter [MAX_HFIX_COUNTER_NlJM]; Unlike the fixed counter, the number of objects of the measurement unit using the semi-fixed counter has a multi-value value that is "expanded" according to the object number, thereby generating an index value, and counting and refreshing operations according to the index value. The index of the counter takes the following form:
index = length * n + ( entity - entity— begin ) 其中: length是某个测量单元的本体的数量; entity_begin是某个测量单元 的本体的起始枚举值, 即 MS— H— XXX— XXXX— ENTITY— BEGIN + 1; entity是某个测量单元的统一编号的本体; n是某个测量单元对象的序号, 如局向 3 , 则 n=3。  Index = length * n + ( entity - entity — begin ) where: length is the number of ontology of a measurement unit; entity_begin is the starting enumeration value of the ontology of a measurement unit, ie MS—H— XXX—XXXX— ENTITY—BEGIN + 1; entity is the unified numbered body of a measurement unit; n is the sequence number of a measurement unit object, such as office direction 3, then n=3.
测量单元中的对象有多个, 并且对一个 SM来说, 该实体数目非常多 There are multiple objects in the measurement unit, and for a SM, the number of entities is very large.
(例如对用户线的统计, 一个模块中允许配的用户线数是 6688 ) 。 如果 采用静态分配这些计数器, 计数器所消耗的存储器数目将会是系统不能 忍受的。 因此需要动态的分配计数器。 (For example, the statistics of the subscriber line, the number of subscriber lines allowed in one module is 6688). If these counters are statically assigned, the amount of memory consumed by the counters will be unacceptable to the system. Therefore, a dynamic allocation counter is required.
动态分配计数器: 即系统初始化后, 每个测量单元对象并不对应一 组计数器, 但有一个公用的计数器区给所有的这些对象公用, 这个公用 计数器区的大小是固定的。 只有当 BAM设置了统计任务, 才给相应的统 计对象分配一套计数器使用。 当任务完成并被删除时, 这套计数器才被 释放。  Dynamically assigning counters: After the system is initialized, each measurement unit object does not correspond to a group of counters, but there is a common counter area common to all of these objects. The size of this common counter area is fixed. Only when the BAM has set up a statistical task, assigns a set of counters to the corresponding statistical object. This counter is released when the task is completed and deleted.
在本发明的其他实施例中, 也可以同时使用预埋计数器和事后分析 的方法, 对全局类及对象数目比较少的测量单元可以采用预埋计数器的 方法进行统计, 而对某个具体的对象进行统计的测量单元(例如统计某 个用户的呼叫情况)采用事后分析的方法进行统计。 这样可以兼顾两种 方法的优点, 使得话务信息统计功能达到全面和高效的统一。  In other embodiments of the present invention, the embedded counter and the post-analysis method may be used at the same time, and the measurement unit with less global class and the number of objects may be counted by using a pre-embedded counter, and for a specific object. The measurement unit that performs statistics (for example, statistics on the call situation of a certain user) is statistically analyzed by means of post-mortem analysis. In this way, the advantages of the two methods can be taken into account, and the traffic information statistics function can be unified and efficient.
在本发明中, 使用预埋计数器的方法进行话务信息统计, 仅是在各 个程序点对计数器进行 ++及一的操作。 在统计周期结束时, 再取计数器 值形成统计报告输出到 BAM。 这样就可以提高话务信息统计的效率, 也 增加了同时统计的任务数目, 并增强了话务信息统计功能的全面性。 In the present invention, the method of using the embedded counter is used to perform traffic information statistics, only in each Program points perform ++ and one operations on the counter. At the end of the statistical period, the counter value is taken to form a statistical report output to the BAM. In this way, the efficiency of traffic information statistics can be improved, the number of tasks simultaneously counted is increased, and the comprehensiveness of the traffic information statistics function is enhanced.
另外, 使用预埋计数器的方法进行话务统计, 程序每走到一个统计 点, 相应的计数器就会进行计数, 这样就提高了话务信息统计的实时性 及准确性。  In addition, the traffic counter is calculated by using the embedded counter method. Whenever the program reaches a statistical point, the corresponding counter is counted, which improves the real-time performance and accuracy of the traffic information statistics.
上述实施例是用于说明和解释本发明的原理的。 可以理解, 本发明 的具体实施方式不限于此。 对于本领域技术人员而言, 在不脱离本发明 的实质和范围的前提下进行的各种变更和修改均涵盖在本发明的保护范 围之内。  The above embodiments are intended to illustrate and explain the principles of the invention. It is to be understood that the specific embodiments of the present invention are not limited thereto. Various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims

权 利 要 求 Rights request
1、 一种实时获取话务信息的方法, 其特征在于, 包括:  A method for acquiring traffic information in real time, which is characterized by comprising:
在业务处理模块中预设至少一个计数器;  Presetting at least one counter in the service processing module;
业务处理模块利用所述计数器采集话务数据, 并进行话务统计。  The service processing module uses the counter to collect traffic data and perform traffic statistics.
2、 根据权利要求 1所述实时获取话务信息的方法, 其特征在于, 还包括预先设定统计任务、 统计周期、 统计对象。 2. The method for acquiring traffic information in real time according to claim 1, further comprising setting a statistical task, a statistical period, and a statistical object in advance.
3、 根据权利要求 1所述的实时获取话务信息的方法, 其特征在于, 进一步包括:  The method for acquiring traffic information in real time according to claim 1, further comprising:
业务处理模块将该话务信息统计结果传送给相关管理模块。  The service processing module transmits the traffic information statistics result to the relevant management module.
4、根据权利要求 1所述实时获取话务信息的方法, 其特征在于, 通 过下列步骤预设计数器:  A method for real-time access to traffic information according to claim 1, wherein the counter is preset by the following steps:
设置共享内存作为计数器区, 并将该共享内存中的一个或多个固定 字节设为一个计数器。  Set shared memory as the counter area and set one or more fixed bytes in the shared memory to one counter.
5、根据权利要求 1至 4任一项所述的实时获取话务信息的方法,其特 征在于, 按照下列步骤实现对事件类本体进行统计:  The method for acquiring traffic information in real time according to any one of claims 1 to 4, characterized in that the event class ontology is calculated according to the following steps:
设置一个计数器;  Set a counter;
随事件的发生对该事件的计数器进行累加;  The counter of the event is accumulated as the event occurs;
业务处理模块在统计周期的起始和结束时分别记录该计数器值, 并 计算其差值。  The service processing module records the counter value at the beginning and end of the statistical period, and calculates the difference.
6、根据权利要求 1至 4中任一项所述实时获取话务信息的方法,其特 征在于, 按照下列步骤获取话务量类本体数据:  The method for real-time acquisition of traffic information according to any one of claims 1 to 4, characterized in that the traffic volume class ontology data is obtained according to the following steps:
设置占用线数计数器及话务量辅助计数器, 话务量辅助计数器用于 记录占用线数在时间上的累加值;  The occupied line number counter and the traffic auxiliary counter are set, and the traffic auxiliary counter is used to record the accumulated value of the occupied line number in time;
设置采样次数计数器, 用于统计周期内的采样次数;  Set a sampling number counter for counting the number of samplings in the period;
业务处理模块在统计周期的起始和结束时分别扫描话务量辅助计数 器和采样次数计数器, 并用下述公式计算统计周期 T内的话务量:  The service processing module scans the traffic assist counter and the sample count counter at the beginning and end of the statistical period, respectively, and calculates the traffic in the statistical period T by the following formula:
话务量 = (统计周期内末时刻的话务量辅助量 -统计周期起始时刻 的话务量辅助量) /统计周期内的采样次数。  Traffic = (the traffic assist amount at the end of the statistical period - the traffic assist amount at the start of the statistical cycle) / The number of samples in the statistical period.
7、 根据权利要求 6所述实时获取话务信息的方法, 其特征在于, 具 体包括: 7. The method for acquiring traffic information in real time according to claim 6, wherein: Body includes:
设置占用线数计数器 n及话务量辅助计数器 U, ni表示在当前时刻处 于占用的线路数, 在每条线的占用开始时, 对占用线数计数器加 1, 结束 时对占用线数计数器减 1 ;所述话务量辅助计数器 U用于记录 ni的累加值, 通过下述公式获得:
Figure imgf000013_0001
Set the occupied line number counter n and the traffic auxiliary counter U, where ni is the number of lines occupied at the current time. When the occupation of each line starts, the occupied line number counter is incremented by one, and the occupied line number counter is decreased at the end. 1; The traffic auxiliary counter U is used to record the accumulated value of ni, obtained by the following formula:
Figure imgf000013_0001
其中, U表示扫描线数在时间上的累计值; i表示第 i个采样点的时刻; j表示第 j个釆样点的时刻; ni表示第 i个采样点的时刻被统计对象组中处于 使用状态的对象个数。  Where U is the cumulative value of the number of scan lines in time; i is the time of the i-th sample point; j is the time of the j-th sample point; ni is the time at which the i-th sample point is in the statistical object group The number of objects in the state of use.
8、根据权利要求 1至 4中任一项所述实时获取话务信息的方法,其特 征在于, 当测量对象为一个时, 设置固定计数器。  A method of real-time acquisition of traffic information according to any one of claims 1 to 4, wherein a fixed counter is set when the measurement object is one.
9、根据权利要求 1至 4中任一项所述的实时获取话务信息的方法,其 特征在于, 当测量对象有多个时, 设置半固定计数器, 对枚举值按照对 象序号扩展, 生成索引值, 根据该索引值进行计数及相关操作。  The method for real-time acquisition of traffic information according to any one of claims 1 to 4, wherein when there are a plurality of measurement objects, a semi-fixed counter is set, and the enumeration value is expanded according to the object number to generate The index value is counted according to the index value and related operations.
10、 根据权利要求 1至 4中任一项所述实时获取话务信息的方法, 其特征在于,  The method for acquiring traffic information in real time according to any one of claims 1 to 4, characterized in that
当测量对象有多个时, 设置一个公用的计数器区, 并根据设置的统 计任务, 动态分配所述公用计数器区中的计数器。  When there are multiple measurement objects, a common counter area is set, and the counters in the common counter area are dynamically allocated according to the set statistical tasks.
1 1、 一种实时获取话务信息的系统, 其特征在于, 包括:  1 1. A system for acquiring traffic information in real time, characterized in that:
至少一个计数器, 预设在业务处理模块中, 用于采集话务数据; 话务数据处理模块, 对所述计数器采集的话务数据统计处理, 得到 话务信息。  At least one counter, preset in the service processing module, is configured to collect traffic data; and the traffic data processing module performs statistical processing on the traffic data collected by the counter to obtain traffic information.
12、根据权利要求 11所述的实时获取话务信息的系统,其特征在于, 所述计数器通过在业务处理模块中设置共享内存, 由该共享内存中的一 个或多个固定字节构成。  The system for acquiring traffic information in real time according to claim 11, wherein the counter is constituted by one or more fixed bytes in the shared memory by setting a shared memory in the service processing module.
13、根据权利要求 11所述的实时获取话务信息的系统,其特征在于, 当测量对象为一个时, 所述计数器为固定计数器;  The system for acquiring traffic information in real time according to claim 11, wherein when the measurement object is one, the counter is a fixed counter;
当测量对象为多个时, 所述计数器为半固定计数器, 对枚举值按照 对象序号扩展, 生成索引值, 根据该索引值进行计数及相关操作。 When the measurement object is multiple, the counter is a semi-fixed counter, and the enumeration value is followed. The object serial number is expanded, an index value is generated, and counting and related operations are performed according to the index value.
14、根据权利要求 11所述的实时获取话务信息的系统,其特征在于, 还包括:  The system for acquiring traffic information in real time according to claim 11, further comprising:
管理模块, 用于接收和管理来自业务处理模块的话务统计结果。  A management module, configured to receive and manage traffic statistics results from the service processing module.
PCT/CN2006/002108 2005-08-19 2006-08-18 Method and system for acquiring the traffic information in real time WO2007019808A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2005100367810A CN1889602A (en) 2005-08-19 2005-08-19 Method for realizing real-time traffic statistics
CN200510036781.0 2005-08-19

Publications (1)

Publication Number Publication Date
WO2007019808A1 true WO2007019808A1 (en) 2007-02-22

Family

ID=37578859

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002108 WO2007019808A1 (en) 2005-08-19 2006-08-18 Method and system for acquiring the traffic information in real time

Country Status (2)

Country Link
CN (1) CN1889602A (en)
WO (1) WO2007019808A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697600B (en) * 2009-09-27 2012-05-09 中兴通讯股份有限公司 Method and device for automatically analyzing and processing polyphonic ringtone data
CN103365965B (en) * 2013-06-21 2016-12-07 大唐移动通信设备有限公司 A kind of aggregation process method and apparatus of data
CN105228187A (en) * 2015-09-14 2016-01-06 北京佳讯飞鸿电气股份有限公司 A kind of method of real-time statistics telephone traffic
CN106572276A (en) * 2015-10-09 2017-04-19 中兴通讯股份有限公司 Telephone traffic reporting and gathering method, business processing and telephone traffic gathering device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10308964A (en) * 1997-05-08 1998-11-17 Nippon Telegr & Teleph Corp <Ntt> Traffic information collection system
CN1304249A (en) * 2000-03-11 2001-07-18 深圳市中兴通讯股份有限公司 Method for implementing telephone traffic collection and traffic calculation
CN1471269A (en) * 2002-05-21 2004-01-28 �ʼ�Kpn��˾ System, tool and method for monitoring network and corresponding network
EP1471686A2 (en) * 2003-04-25 2004-10-27 Alcatel IP Networks, Inc. Optimizing use of statistics counters

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10308964A (en) * 1997-05-08 1998-11-17 Nippon Telegr & Teleph Corp <Ntt> Traffic information collection system
CN1304249A (en) * 2000-03-11 2001-07-18 深圳市中兴通讯股份有限公司 Method for implementing telephone traffic collection and traffic calculation
CN1471269A (en) * 2002-05-21 2004-01-28 �ʼ�Kpn��˾ System, tool and method for monitoring network and corresponding network
EP1471686A2 (en) * 2003-04-25 2004-10-27 Alcatel IP Networks, Inc. Optimizing use of statistics counters

Also Published As

Publication number Publication date
CN1889602A (en) 2007-01-03

Similar Documents

Publication Publication Date Title
RU2585971C1 (en) Network monitoring and subscriber identification in real time using request triggered device
JP2002505060A (en) Telecommunications performance management system
US7894361B1 (en) System and method for network capacity engineering
JP3896879B2 (en) Traffic monitoring system
CN101843134A (en) Method and monitoring component for network traffic monitoring
WO2008102204A2 (en) Systems and methods for session records correlation
WO2007019808A1 (en) Method and system for acquiring the traffic information in real time
Liu et al. Efficient 3g budget utilization in mobile participatory sensing applications
WO2011140874A1 (en) Method and apparatus for evaluating behavior of user equipment in standby state
WO2012034445A1 (en) Method and device for measuring system performance in real time
CN114339719A (en) DPI data acquisition method and related device
WO2011153838A1 (en) Traffic collection system, method and device
WO2014022995A1 (en) Method and device for managing shared network
CN100438411C (en) Network traffic statistical method of IP device
KR100681000B1 (en) Apparatus and method for measuring per-flow information of traffic
CN110972199B (en) Flow congestion monitoring method and device
WO2010020164A1 (en) Routing method for realizing next generation call center hierarchical service
WO2023078149A1 (en) Charging method, apparatus and system
JP3210926B2 (en) Communication service control system and method
WO2022152230A1 (en) Information flow identification method, network chip, and network device
Estrin et al. An assessment of state and lookup overhead in routers
KR20010045587A (en) Integrated processor device of accounting data and method thereof
CN100536593C (en) Optimizing method for distributing small area resource in mobile communication network and its system
CN100473238C (en) Method for counting base station performance data
JP5482028B2 (en) Information processing apparatus, transmission apparatus, and information processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06775426

Country of ref document: EP

Kind code of ref document: A1