WO2011006385A1 - 话单信息性能统计方法及装置 - Google Patents

话单信息性能统计方法及装置 Download PDF

Info

Publication number
WO2011006385A1
WO2011006385A1 PCT/CN2010/072061 CN2010072061W WO2011006385A1 WO 2011006385 A1 WO2011006385 A1 WO 2011006385A1 CN 2010072061 W CN2010072061 W CN 2010072061W WO 2011006385 A1 WO2011006385 A1 WO 2011006385A1
Authority
WO
WIPO (PCT)
Prior art keywords
statistical
item
memory
module
bill information
Prior art date
Application number
PCT/CN2010/072061
Other languages
English (en)
French (fr)
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 EP10799383.4A priority Critical patent/EP2456253A4/en
Priority to US13/259,317 priority patent/US20120173555A1/en
Publication of WO2011006385A1 publication Critical patent/WO2011006385A1/zh

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
    • H04M15/41Billing record details, i.e. parameters, identifiers, structure of call data record [CDR]
    • 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/43Billing software details
    • 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/44Augmented, consolidated or itemized billing statement or bill presentation
    • 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/70Administration or customization aspects; Counter-checking correct charges
    • 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/70Administration or customization aspects; Counter-checking correct charges
    • H04M15/73Validating charges
    • 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/80Rating or billing plans; Tariff determination aspects
    • 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/49Connection to several service providers
    • 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/82Criteria or parameters used for performing billing operations
    • 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/82Criteria or parameters used for performing billing operations
    • H04M15/8221Message based

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for implementing short message performance statistics.
  • BACKGROUND OF THE INVENTION With the rapid development of wireless networks, short messages As a function of mobile phones, it is very popular and has become an indispensable part of everyday life. In the whole wireless network architecture that implements short message function, short message center is the most important network link, which can provide various kinds of network links. Basic data.
  • SMSC Short Message Service
  • Q AS query analysis system
  • Query Analyzed System mainly short analysis
  • the message is recorded, and the performance statistics are generated and stored in the database for query analysis.
  • Extend Short Message Entity ESME: For example, various information stations, manual stations, etc.
  • CDRs Short messages
  • the record file generated by the center contains thousands of records, each of which is a fixed-length format.
  • Statistical group A group of thousands of statistical items with the same attribute.
  • Statistics item The most basic data that can be displayed in the terminal. The units that belong to the statistical group have specific statistical conditions.
  • the commercial mode of implementing the performance statistics function is as follows: The user sends a short message through a terminal such as a mobile phone or a computer application software (such as Fetion Fetion), and the short message center (SMSC) receives the short message and continues to deliver the short message.
  • a terminal such as a mobile phone or a computer application software (such as Fetion Fetion)
  • SMSC short message center
  • various information of the short message (for example, calling number, called number, message content, etc.) is written into the physical file in a fixed length recording format, and the physical file is called ⁇ L Bills.
  • the CDR is uploaded to the Query Analysis System (QAS) through the File Transfer Protocol (FTP).
  • the statistic program of the Query Analysis System is the statistical item of the operator's demand and the statistical conditions of these statistics in the CDR.
  • the bills are parsed, the statistics are stored in the memory, and the statistics are periodically downloaded to the database for query and analysis.
  • the query analysis system dominates and is widely used commercially, in conjunction with a short message center, to provide performance statistics to operators.
  • the performance statistics are a series of statistics items proposed by the operator, for example, some statistics items used by China Mobile's GSM network short message center.
  • the query analysis system QAS in the prior art is a statistical item and the statistical conditions corresponding to these statistical items are all solidified in the statistical program. That is to say, such statistical programs basically use program language code (for example, C language).
  • program language code for example, C language
  • the version cannot be flexibly modified once it is used.
  • operators' demand for data is changing with each passing day, new demands are often raised, and new statistics are needed to support the development of the project.
  • These statistical item requirements are constantly changing, for example, adding, deleting, 4 tampering, and so on.
  • the query analysis system program has a problem with the use of statistical conditions, in order to ensure the correctness of the data, the version has to be replaced. If you need to repair the data and update the version, you must recompile the production version, and then develop a test version, test version, release version, write upgrade documentation, and then field upgrades, etc.
  • a complete set of business processes very complicated, increased the possibility of error Sex, and the time period drags on, the problem is not solved quickly, which affects the user's use.
  • the statistical conditions corresponding to the statistical items and statistical items in the related technology are solidified in the program, which is inconvenient to modify, and increases the development cycle and maintenance cost. Currently, no effective solution has been proposed.
  • the present invention has been made in view of the fact that statistical conditions corresponding to statistical items and statistical items existing in the related art are solidified in a program, are inconvenient to modify, and increase the development cycle and maintenance cost. Therefore, the main object of the present invention is to provide A method and apparatus for implementing short message performance statistics to solve the above problems.
  • a method of implementing short message performance statistics includes: writing statistical items and statistical conditions corresponding to the statistical items to the configuration file; storing statistical items and statistical conditions in the configuration file into the memory; And statistical conditions to analyze the bill information stored in the memory, and generate statistical data.
  • the statistical items and the statistical conditions are written into the configuration file in the following format: the field name of the statistical item, the data type of the statistical item, ⁇ the file type corresponding to the statistical item [the time information in the bill, and the corresponding item of the statistical item) Statistical conditions] ⁇ .
  • the method before parsing the bill information stored in the memory, the method further includes: periodically searching whether the statistical data exists in the memory; if present, storing the existing statistical data in the database periodically or quantitatively; If it exists, it obtains the bill information and stores it in the memory. Further, the statistical items in the configuration file and the statistical conditions corresponding to the statistical items are edited to update the statistical items and the statistical conditions.
  • the bill information may be at least one of a short message, a multimedia message, and wireless application protocol information.
  • an apparatus for implementing short message performance statistics comprising: a first configuration module, configured to write a statistical item and a statistical condition corresponding to the statistical item
  • the second configuration module is configured to store the statistical items in the configuration file and the statistical conditions corresponding to the statistical items in the memory
  • the third configuration module is configured to store the bill information in the memory
  • the bill information is parsed according to the statistical conditions corresponding to the statistics item and the statistical item, and the statistical increment is generated and stored in the memory.
  • the first configuration module is further configured to write the statistical item and the statistical condition into the configuration file in the following format: a field name of the statistical item, a data type of the statistical item, and a file type corresponding to the statistical item.
  • the parsing module includes: a searching module, configured to periodically search whether the statistical data exists in the memory; and a storage module, configured to periodically or quantitatively analyze the existing statistical data if the search module determines that the statistical data exists.
  • the storage module is configured to obtain the bill information and store it in the memory if the search module determines that there is no statistical data.
  • the first configuration module includes: an editing module, configured to edit a statistical item in the configuration file and a statistical condition corresponding to the statistical item to update the statistical item and the statistical condition.
  • the device further includes: a decomposition module, configured to decompose the bill information after acquiring the bill information from the memory, and send the decomposed bill information to the parsing module.
  • a decomposition module configured to decompose the bill information after acquiring the bill information from the memory, and send the decomposed bill information to the parsing module.
  • FIG. 1 is a flowchart of a method for implementing short message performance statistics according to an embodiment of the present invention
  • FIG. 2 is a view showing a position structure of a query analysis system of an application in an entire short message system according to an embodiment of the present invention
  • 3 is a flow chart of a statistical program of a query analysis system applied to a preferred embodiment of the present invention
  • FIG. 4 is a structural block diagram of an apparatus for implementing performance statistics according to an embodiment of the present invention
  • FIG. 5 is a preferred embodiment of the present invention.
  • the embodiment of the present invention provides a method for realizing short message performance statistics, in which the statistical conditions corresponding to the statistical items and the statistical items in the related art are solidified in the program, which is inconvenient to modify, and the development cycle and the maintenance cost are increased.
  • the method includes: writing a statistical item and a statistical condition corresponding to the statistical item to the configuration file; writing the statistical item and the statistical condition in the configuration file to the memory; ⁇ parsing the statistical item and the statistical condition into the memory Single message, generate statistics; store statistics in the database.
  • FIG. 1 is a flowchart of a method for implementing short message performance statistics according to an embodiment of the present invention.
  • step S 102 The statistical condition corresponding to the statistical item is written in the configuration file;
  • Step S104 the statistical item configured in the configuration file and the statistical condition corresponding to the statistical item are written into the memory;
  • Step S106 the CDR written in the memory is parsed according to the statistical item and the statistical condition Information, generating statistics.
  • the statistical item and the statistical condition corresponding to the statistical item are written into the configuration file, the bill information stored in the memory is parsed, and the statistical data is generated, and the corresponding statistical items and statistical items in the related art are solved.
  • FIG. 2 is a location of an application system in the entire short message system according to an embodiment of the present invention. Structure diagram. As shown in FIG.
  • the system mainly includes: a short message center (or a multimedia message center, a Wireless Application Protocol (WAP) gateway), an FTP module, a statistical program (processing core), a database system, and a WEB system.
  • the processing core is a statistical program, and the statistical program may include: a configuration editing module, a configuration reading module, a searching module, a storage module, an obtaining module, a scanning module, a decomposition module, a parsing module, and a data downloading module.
  • the FTP module needs to ensure that the CDRs are uploaded to the original directory read by the Query Analysis System, and the CDRs cannot be lost during the FTP process. Otherwise, data loss is easy.
  • Step S302 categorizing the statistical items of the operator requirements into various statistical groups in the configuration file.
  • the statistical conditions corresponding to the statistics and statistics are written in the configuration file in a certain format.
  • Item3 The location of the statistical group where the statistics item is located
  • Ommsucccnt The name of the field in the database of the statistics item, as the name of the statistical item; Int: the data type of the statistical item;
  • ZXUT The file type corresponding to the statistics item, which is the abbreviation of the CDR in the program, which is the order from which it is used;
  • TrcTime the time granularity value in the file corresponding to the statistical item, the time granularity value is from the bill record;
  • the calculation of the operator taking the result value as an increment of the statistic.
  • Step S304 the statistical program system starts, and the statistical items and statistical conditions in the configuration file are read into the memory.
  • the scanned bill information can be stored in the memory through the scanning module in real time.
  • the statistics items and statistical conditions in the configuration file can be read into the memory to form an organization form in memory to implement statistics item and statistical condition configuration to ensure the implementation of the solution.
  • Step S306 determining whether the system searches for memory in the memory. If there is data download, go to step 4 to gather S312, and call the download module to download; otherwise, go to step S308. .
  • Step S308 decomposing the bill information to obtain a bill record. In the specific implementation process, if the bill record is not obtained, the operation of step S306 is continued. It can be seen that in the absence of data download and no bills, the system will wait a few seconds to wait, avoiding the loop too fast and causing system load.
  • step S310 if a bill is obtained, a record is generated, and the record is parsed and counted. At this time, the corresponding statistical condition used by each statistical item to be counted is counted, and the statistical result data is generated and stored in the memory. For example, you can use the data increment algorithm to locate the pointer to the location of the statistics item in memory to ensure the implementation of the scheme.
  • the statistical program parses the bill, and each of the parsed records is counted according to the statistical items in the memory and the corresponding statistical conditions to generate statistical data (for example, a record can be obtained from the bill file, through the dynamic library. Analyze this record and get the source of the statistics). Statistics and conditions of the current bill configuration are counted.
  • the statistics are searched in the memory buffer to find the location that matches the time and parameters.
  • the statistics are searched in the memory buffer to find the corresponding time and parameters.
  • the flushing area is accumulated according to the configured statistical method. If the buffer is full, the data of the current buffer is put into the library state. In step S312, the statistical data is stored in the database. Count all the records of this CDR and end the analysis. The process returns to step S306. It should be noted that, in the preferred embodiment, the statistical program can store the statistical data in a database periodically or quantitatively.
  • the query page can select the time and parameters to query.
  • the implementation process of the embodiment of the present invention is described in detail, and statistical items and statistical conditions are visually embodied in the configuration file, which not only facilitates maintenance and modification, but also reduces development time and reduces maintenance cost. . It can be seen that a query analysis system that can adapt to the increasing demand for statistics and flexible tampering of statistical conditions guarantees the normal operation of the entire system. Often important.
  • an apparatus for implementing short message performance statistics is provided. 4 is a structural block diagram of an apparatus for implementing performance statistics according to an embodiment of the present invention. As shown in FIG. 4, the statistical program processing apparatus 100 includes: a first configuration module 2, a second configuration module 4, a third configuration module 6, and a parsing module 8.
  • the first configuration module 2 is described in detail below.
  • the second configuration module 4 is coupled to the first configuration module 2, and configured to use the statistical item in the configuration file and the statistical item. Corresponding statistical conditions are stored in the memory;
  • the third configuration module 6 is coupled to the second configuration module 4 for storing the bill information in the memory;
  • the parsing module 8 is coupled to the third configuration module 6 for The statistical item and the statistical condition corresponding to the statistical item parse the bill information, generate a statistical increment, and store the data in the memory.
  • the first configuration module 2 is further configured to write the statistical items and the statistical conditions into the configuration file in the following format: a field name of the statistical item, a data type of the statistical item, and a file type corresponding to the statistical item [in the bill] Time information, statistical conditions corresponding to the statistics item] ⁇ .
  • FIG. 5 is a structural block diagram of an apparatus for implementing performance statistics according to a preferred embodiment of the present invention. As shown in FIG.
  • the parsing module 8 may further include: a searching module 82, configured to periodically search for whether statistical data already exists in the memory;
  • the storage module 84 is coupled to the search module 82, for storing the existing statistical data in the database periodically or quantitatively in the case that the search module 82 determines that the statistical data exists;
  • the obtaining module 86 is coupled to the search module 82, In the case where the search module 82 determines that there is no statistical data, the bill information is acquired and stored in the memory.
  • the first configuration module 2 includes: an editing module 22, configured to edit a statistical item in the configuration file and a statistical condition corresponding to the statistical item to update the statistical item and the statistical condition.
  • the device may further include a decomposition module 10, coupled to the third configuration module 6 and the parsing module 8, configured to decompose the bill information after acquiring the bill information from the memory, and send the decomposed bill information to the parsing module.
  • a decomposition module 10 coupled to the third configuration module 6 and the parsing module 8, configured to decompose the bill information after acquiring the bill information from the memory, and send the decomposed bill information to the parsing module.
  • the embodiment of the present invention can be applied to other items, such as a multimedia message center, a WAP gateway, and the like, in addition to being applied to a short message system.
  • the statistical item and the statistical condition corresponding to the statistical item are written into the configuration file.
  • the method of parsing the bill information stored in the memory and generating the statistical data solves the problem that the statistical conditions corresponding to the statistical items and the statistical items in the related technology are solidified in the program, which is inconvenient to modify, and increases the development cycle and the maintenance cost. Increased system performance time and reduced system maintenance costs.
  • the embodiments of the present invention can more effectively improve the work efficiency and stability of the research and development personnel and the field maintenance personnel, and provide the query and statistical services for the user (operator) to the maximum extent.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

话单信息<1"生能统计方法 ^^置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种实现短消息性能统计的方法 及装置。 背景技术 随着无线网络的快速发展, 短消息作为手机的一个功能非常普及, 已经 是曰常生活不可或缺的一个部分。在实现短消息功能的整个无线网络架构中, 短消息中心是最重要的一个网络环节,这个网络环节能够提供各种基础数据。 网络运营商 (例如, 中国移动, 中国联通, 中国电信等) 能够使用这些数据 来监控短消息中心的运行状态、 应对短信用户的投诉、 上报数据进行月度、 年度的汇总工作, 以及能够根据数据的波动情况来对短消息中心的运行设备 进行监控, 决定设备是否更换扩容等等。 这种数据叫做性能统计数据。 在相关技术中, 存在以下技术术语: 短消息业务中心 ( Short Message Service Center, 简称为 SMSC ): 负责 短消息的接收和下发, 重试, 鉴权, 能够产生短消息记录文件供第三方软件 (例如, 查询分析系统 Q AS )使用。 查询分析系统 ( Query Analyzed System, QAS ): 主要是解析短消息 ΐ己 录文件, 生成性能统计数据, 存入数据库, 供查询分析。 短消息扩展实体 ( Extend Short Message Entity,简称为 ESME ): 例如, 各种信息台, 人工台等。 话单: 短消息中心产生的纪录文件, 包含若千记录, 每条记录都是定长 的定格式。 统计组: 一组若千个有相同性质归属统计项的统称。 统计项: 可以在终端展示数据的最基本的单位, 属于统计组, 有特定的 统计条件。 统计条件: 产生某个统计项增量的计算表达式, ^^如由话单的一条记录 获得两个值 A和 B, 在 A>=B的情况下, 统计项 X累加 1 , 那么该统计项 X 的统计条件就是 A>=B。 这个是最筒单的统计条件。 目前, 商用的实现性能统计功能的模式流程为: 用户通过手机, 电脑应 用软件(如飞信 Fetion等)等终端将短消息发送出去, 短消息中心( SMSC ) 在接收到短消息并且继续下发给目的用户的流程中, 会将这条短消息的各种 信息 (例如, 主叫号码, 被叫号码, 消息内容等等) 以定长记录格式写入物 理文件中, 这种物理文件叫^ L话单。 话单通过文件传输协议 ( File Transfer Protocol, 简称为 FTP ) 上传给查询分析系统(QAS ), 查询分析系统的统计 程序 #居运营商需求的统计项以及这些统计项在话单中的统计条件去解析话 单, 产生统计数据存入内存, 并定时将统计数据下载到数据库中, 供查询和 分析使用。 在该生成性能统计数据的流程中, 查询分析系统占据主导地位, 得到了 广泛的商用, 配合短消息中心, 用来提供性能统计数据给运营商。 其中, 性能统计数据就是运营商提出的一系列统计项, 例如, 中国移动 的 GSM网短消息中心使用的一些统计项。 现有技术中的查询分析系统 QAS是统计项以及这些统计项对应的统计 条件都是固化在统计程序中。 也就是说这样的统计程序基本上都采用程序语 言代码 (例如, C语言)。 在该技术中, 版本一旦使用就无法灵活修改。 但是, 随着网络的快速发展, 运营商对数据的需求日新月异, 经常提出 新需求, 需要新的统计项的数据来支持项目的发展。 这些统计项需求是不断 变 4 的, 例如, 增加、 删除、 4爹改等。 另外, 如果查询分析系统程序出现统计条件使用错误的问题, 为了保证 数据的正确性, 就不得不替换版本。 如果需要修复数据和更新版本, 就必须 重新编译制作版本, 进而开发测试版本、 测试部测试版本、 发布版本、 编写 升级文档、 然后现场升级等等一整套业务流程, 非常复杂, 增加了出错的可 能性, 而且时间周期拖的比较长, 问题得不到快速的解决, 影响了用户的使 用。 针对相关技术中统计项和统计项对应的统计条件固化在程序中,不便于 修改, 增加了研发周期和维护成本的问题, 目前尚未提出有效的解决方案。 发明内容 针对相关技术中存在的统计项和统计项对应的统计条件固化在程序中, 不便于修改, 增加了研发周期和维护成本的问题而提出本发明, 为此, 本发 明的主要目的在于提供一种实现短消息性能统计的方法及装置, 以解决上述 问题。 为了实现上述目的, #居本发明的一个方面,提供了一种实现短消息性 能统计的方法。 才艮据本发明的实现短消息性能统计的方法包括:将统计项和与统计项对 应的统计条件写入到配置文件; 将配置文件中的统计项以及统计条件存入内 存; #居统计项和统计条件解析存入内存的话单信息, 生成统计数据。 进一步地,将统计项和统计条件以如下格式写入到配置文件中: 统计项 的字段名, 统计项的数据类型, {统计项对应的文件类型 [话单中的时间信息, 统计项对应的统计条件] }。 进一步地, 在解析存入内存的话单信息之前, 该方法还包括: 周期性地 搜索内存中是否已经存在统计数据; 如果存在, 则将已经存在的统计数据定 时或定量地存入数据库; 如果不存在, 则获取话单信息并将其存入内存。 进一步地, 编辑配置文件中的统计项和与统计项对应的统计条件, 以更 新统计项和统计条件。 进一步地, 话单信息可以为短消息、 彩信、 和无线应用协议信息中的至 少之一。 为了实现上述目的,才 据本发明的另一方面,提供了一种实现短消息性 能统计的装置, 该装置包括: 第一配置模块, 用于将统计项和与统计项对应 的统计条件写入到配置文件中; 第二配置模块, 用于将配置文件中的统计项 以及统计项对应的统计条件存入内存; 第三配置模块, 用于将话单信息存入 内存; 解析模块, 用于 4艮据统计项和统计项对应的统计条件解析话单信息, 生成统计增量, 存入内存。 进一步地,第一配置模块还用于将统计项和统计条件以如下格式写入到 配置文件中: 统计项的字段名, 统计项的数据类型, {统计项对应的文件类型
[话单中的时间信息, 统计项对应的统计条件] }。 进一步地, 解析模块包括: 搜索模块, 用于周期性地搜索内存中是否已 经存在统计数据; 存储模块, 用于在搜索模块确定存在统计数据的情况下, 将已经存在的统计数据定时或定量地存入到数据库; 获取模块, 用于在搜索 模块确定不存在统计数据的情况下, 获取话单信息并将其存入内存。 进一步地, 第一配置模块包括: 编辑模块, 用于编辑配置文件中的统计 项和与统计项对应的统计条件, 以更新统计项和统计条件。 进一步地, 该装置还包括: 分解模块, 用于从内存中获取话单信息之后 分解话单信息, 并将分解后的话单信息发给解析模块。 通过本发明实现短消息性能统计的方法及装置,采用将统计项和与统计 项对应的统计条件写入到配置文件; 将配置文件中的统计项以及统计条件存 入内存; 根据统计项和统计条件解析存入内存的话单信息, 生成统计数据, 解决了相关技术中统计项和统计项对应的统计条件固化在程序中, 不便于修 改, 增加了研发周期和维护成本的问题, 进而达到了将统计项和统计条件直 观地在配置文件中体现出来, 不仅便于维护和修改, 而且减少了研发时间, 降低了维护成本效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据本发明实施例的实现短消息性能统计的方法的流程图; 图 2 是根据本发明实施例的应用的查询分析系统在整个短消息系统中 的位置结构图; 图 3 是 #居本发明优选实施例的应用的查询分析系统的统计程序的流 程图; 图 4是根据本发明实施例的实现性能统计的装置的结构框图; 图 5是根据本发明优选实施例的实现性能统计的装置的结构框图。 具体实施方式 考虑到相关技术中统计项和统计项对应的统计条件固化在程序中,不便 于修改, 增加了研发周期和维护成本的问题, 本发明实施例提供了一种实现 短消息性能统计的方法, 该方法包括: 将统计项和与统计项对应的统计条件 写入到配置文件; 将配置文件中的统计项以及统计条件写入内存; ^^据统计 项和统计条件解析存入内存的话单信息, 生成统计数据; 将统计数据存入数 据库。 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互组合。 下面^ 1夺参考附图并结合实施例来详细说明本发明。 4 据本发明的实施例, 提供了一种实现短消息性能统计的方法。 图 1是根据本发明实施例的实现短消息性能统计的方法的流程图; 如图 1所示, 该方法包括如下的步 4聚 S 102至步 4 S 106: 步骤 S 102, 将统计项和统计项对应的统计条件写在配置文件; 步驟 S 104, 将配置文件中配置的统计项以及统计项对应的统计条件写 入内存; 步驟 S 106, 根据统计项和统计条件解析写入内存的话单信息, 生成统 计数据。 通过本发明实施例,采用将统计项和与统计项对应的统计条件写入到配 置文件, 解析存入内存的话单信息, 并生成统计数据的方式, 解决了相关技 术中统计项和统计项对应的统计条件固 4匕在程序中, 不便于爹改, 增加了研 发周期和维护成本的问题, 提高了系统性能。 需要说明的是, 在本发明实施例中, 运营商可以更新存入(即, 写入) 配置文件中的统计项或统计条件(例如, 进行统计项的增加、 删除、 修改等 操作), 从而避免了查询分析系统程序的软件的更新 (即, 升级), 有效地降 低了系统的维护成本。 下面将结合实例对本发明实施例的实现过程进行详细描述: 图 2 是根据本发明实施例的应用的系统的在整个短消息系统中的位置 结构图。 如图 2所示, 该系统主要包括: 短消息中心(或者彩信中心、 无线应用 协议 ( Wireless Application Protocol, 简称为 WAP ) 网关)、 FTP模块、 统计 程序 (处理核心)、 数据库系统、 WEB系统。 其中, 处理核心是统计程序, 该统计程序可以包括: 配置编辑模块、 配置读取模块、 搜索模块、 存储模块、 获取模块、 扫描模块、 分解模块、 解析模块、 数据下载模块。 在具体实施过程中, FTP模块需要保证话单上传到查询分析系统读取的 原始目录, 而且话单在 FTP过程中不能丟失, 否则易产生数据丢失。 图 3 是 #居本发明优选实施例的应用的查询分析系统的统计程序的流 程图, 包括以下步 ¾ : 步骤 S302, 将运营商需求的统计项根据归属成各种统计组, 在配置文 件中按照格式和数据类型配置好后, 将统计项和统计项对应的统计条件以某 种格式写在配置文件中。 例如, 在配置文件中, 每个统计项的配置格式可以 如下: Item3=ommsucccnt, int, {ZXUT[TrcTime, (MO&&
(PPS==1) )*DlvCount ]} 格式说明:
Item3 : 统计项所在统计组的位置;
Ommsucccnt: 统计项在数据库中的字段名, 作为统计项的称呼; Int: 统计项的数据类型;
ZXUT: 统计项对应的文件类型, 是话单在程序中的简称, 就是来自哪 种话单;
TrcTime: 统计项对应的文件中的时间粒度值, 该时间粒度值来自话单 记录; (MO && (PPS==l))*DlvCount: 该统计项对应的统计条件, 组织形式和 高级编程语言的编程格式类似的格式。 就是说采用的是与 (&& )或 (|| ) 非 (!)乘(* ) 除(/ )加 (+ )减 (- ) 大于 (> ) 小于 (< )等于 (== )等等运 算符的计算, 将结果值作为该统计项的一个增量。 步骤 S304, 统计程序系统启动, 将配置文件中的统计项和统计条件读 入内存。 具体地, 可以通过扫描模块实时不停的扫描, 将扫描到的话单信息 存入内存。 例如, 可以将配置文件中的统计项和统计条件读入内存, 形成内 存中的组织形式来实现统计项和统计条件配置化, 以保证该方案的实现。 步骤 S306, 判断系统搜索内存中是否有可下载的数据。 如果有数据下 载, 进入步 4聚 S312, 调用下载模块进行下载; 否则, 进入步骤 S308。。 步骤 S308, 分解话单信息, 获取话单记录。 在具体实施过程中, 如果 没有获取到话单记录, 则继续步骤 S306 的运行。 可见, 在没有数据下载并 且没有话单的情况下, 系统会延迟几秒等待, 避免循环过快, 造成系统负荷。 步骤 S310, 如果获取到话单, 则会产生记录, 将记录进行解析统计, 这个时候会将每一个需要统计的统计项采用的对应的统计条件进行统计, 并 且产生统计结果数据, 存入内存。 例如, 可以将统计增量使用数据结构算法 定位到内存中统计项所在位置指针以保证该方案的实现。 优选地, 统计程序解析话单, 将解析出来的每一条记录都根据内存中的 统计项以及对应的统计条件进行统计, 生成统计数据 (例如, 可以从话单文 件中获取一条记录, 通过动态库分析这条记录, 获得统计数据源)。 居当前 话单配置的统计项和条件进行统计, 将统计结果在内存緩冲区中搜索, 寻找 符合时间和参数的位置, 将统计结果在内存緩冲区中搜索, 找到对应时间和 参数的緩冲区, 则根据配置的统计方式累加.如果緩冲区已满, 则将当前緩冲 区的数据置入库状态。 步骤 S312, 将统计数据入库。 将这个话单的所有记录都统计完毕, 结 束这次解析。 返回步骤 S306。 需要说明的是, 在本优选的实施例中, 统计程序可以将统计数据定时或 者定量的存入数据库。 查询页面可以选择时间和参数进行查询。 在上述优选实施例中,详细说明了本发明实施例的实现过程, 将统计项 和统计条件直观地在配置文件中体现出来, 不仅便于维护和 ί 改, 而且减少 了研发时间, 降低了维护成本。 由此可见, 一个能适应统计需求的日益增多 以及统计条件的灵活爹改的查询分析系统, 对于保证整个系统的正常运转非 常重要。 冲艮据本发明的实施例, 提供了一种实现短消息性能统计的装置。 图 4是根据本发明实施例的实现性能统计的装置的结构框图。 如图 4所示, 该统计程序处理装置 100包括: 第一配置模块 2、 第二配 置模块 4、 第三配置模块 6、 解析模块 8, 下面对该结构进行详细说明 第一配置模块 2 , 用于将统计项和与统计项对应的统计条件写入到配置 文件中; 第二配置模块 4, 耦合至第一配置模块 2, 用于将所述配置文件中 的统计项以及所述统计项对应的统计条件存入内存; 第三配置模块 6 , 耦合 至第二配置模块 4 , 用于将话单信息存入所述内存; 解析模块 8, 耦合至第 三配置模块 6, 用于 据所述统计项和所述统计项对应的所述统计条件解析 所述话单信息, 生成统计增量, 存入所述内存。 优选地,第一配置模块 2还用于将统计项和统计条件以如下格式写入到 配置文件中: 统计项的字段名, 统计项的数据类型, {统计项对应的文件类型 [话单中的时间信息, 统计项对应的统计条件] }。 图 5是根据本发明优选实施例的实现性能统计的装置的结构框图,如图 5所示, 解析模块 8还可以包括: 搜索模块 82 , 用于周期性地搜索内存中是 否已经存在统计数据; 存储模块 84, 耦合至搜索模块 82, 用于在搜索模块 82确定存在统计数据的情况下,将已经存在的统计数据定时或定量地存入到 数据库; 获取模块 86, 耦合至搜索模块 82 , 用于在搜索模块 82确定不存在 统计数据的情况下, 获取话单信息并将其存入内存。 优选地, 第一配置模块 2 包括: 编辑模块 22 , 用于编辑配置文件中的 统计项和与统计项对应的统计条件, 以更新统计项和统计条件。 优选地, 该装置还可以包括分解模块 10, 耦合至第三配置模块 6和解 析模块 8 , 用于从内存中获取话单信息之后分解话单信息, 并将分解后的话 单信息发给解析模块 8。 另外, 本发明实施例除了应用在短消息系统中, 还可以应用到其他多种 项目使用话单进行统计的项目中, 例如, 彩信中心, WAP网关等。 本发明实施例采用将统计项和与统计项对应的统计条件写入到配置文 件, 解析存入内存的话单信息, 并生成统计数据的方式, 解决了相关技术中 统计项和统计项对应的统计条件固化在程序中, 不便于修改, 增加了研发周 期和维护成本的问题, 提高了系统性能时间, 降低了系统的维护成本。 综上所述,釆用本发明实施例能够更有效地提高研发人员和现场维护人 员的工作效率和稳定性, 最大限度地为用户(运营商)提供查询和统计良务。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。

Claims

权 利 要 求 书
1. 一种话单信息性能统计的方法, 其特征在于, 包括:
将统计项和与统计项对应的统计条件写入到配置文件;
^"所述配置文件中的所述统计项以及所述统计条件存入内存; 冲艮据所述统计项和所述统计条件解析存入所述内存的话单信息,生 成统计数据。
2. 根据权利要求 1所述的方法, 其特征在于, 将所述统计项和所述统计条 件以如下格式写入到所述配置文件中:
所述统计项的字段名, 所述统计项的数据类型, {所述统计项对应 的文件类型 [所述话单中的时间信息, 所述统计项对应的所述统计条 件: |}。
3. 据权利要求 1所述的方法, 其特征在于, 解析存入所述内存的话单信 息之前, 所述方法还包括:
周期性地搜索所述内存中是否已经存在统计数据;
如果存在, 则将所述已经存在的统计数据定时或定量地存入数据 库; 如果不存在, 则获取话单信息并将其存入所述内存。
4. 根据权利要求 1所述的方法, 其特征在于, 还包括:
编辑所述配置文件中的所述统计项和与所述统计项对应的统计条 件, 以更新所述统计项和所述统计条件。
5. 根据权利要求 1到 4中任一项所述的方法, 其特征在于, 所述话单信息 可以为短消息、 彩信、 和无线应用协议信息中的至少之一。
6. 一种话单信息性能统计装置, 其特征在于, 包括:
第一配置模块,用于将统计项和与统计项对应的统计条件写入到配 置文件中; 第二配置模块,用于将所述配置文件中的统计项以及所述统计项对 应的统计条件存入内存;
第三配置模块, 用于将话单信息存入所述内存;
解析模块,用于# -据所述统计项和所述统计项对应的所述统计条件 解析所述话单信息, 生成统计增量, 存入所述内存。
7. 根据权利要求 6所述的装置, 其特征在于, 所述第一配置模块还用于将 所述统计项和所述统计条件以如下格式写入到所述配置文件中:
所述统计项的字段名, 所述统计项的数据类型, {所述统计项对应 的文件类型 [所述话单中的时间信息, 所述统计项对应的所述统计条 件: |}。
8. 据权利要求 6所述的装置, 其特征在于, 所述解析模块包括:
搜索模块, 用于周期性地搜索所述内存中是否已经存在统计数据; 存储模块, 用于在所述搜索模块确定存在所述统计数据的情况下, 将所述已经存在的统计数据定时或定量地存入到数据库;
获取模块, 用于在所述搜索模块确定不存在所述统计数据的情况 下, 获取话单信息并将其存入所述内存。
9. 根据权利要求 6所述的装置, 其特征在于, 所述第一配置模块包括: 编辑模块,用于编辑所述配置文件中的所述统计项和与所述统计项 对应的统计奈件, 以更新所述统计项和所述统计条件。
10. 根据权利要求 6至 9中任一项所述的装置, 其特征在于, 所述装置还包 括:
分解模块,用于从所述内存中获取所述话单信息之后分解所述话单 信息, 并将分解后的所述话单信息发给所述解析模块。
PCT/CN2010/072061 2009-07-15 2010-04-22 话单信息性能统计方法及装置 WO2011006385A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP10799383.4A EP2456253A4 (en) 2009-07-15 2010-04-22 STATISTICAL PROCESS AND DEVICE FOR OUTPUT OF INVOICE INFORMATION
US13/259,317 US20120173555A1 (en) 2009-07-15 2010-04-22 Method and device for realizing the statistic operation of call record information performance

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNA2009101600026A CN101610531A (zh) 2009-07-15 2009-07-15 话单信息性能统计方法及其装置
CN200910160002.6 2009-07-15

Publications (1)

Publication Number Publication Date
WO2011006385A1 true WO2011006385A1 (zh) 2011-01-20

Family

ID=41484058

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/072061 WO2011006385A1 (zh) 2009-07-15 2010-04-22 话单信息性能统计方法及装置

Country Status (4)

Country Link
US (1) US20120173555A1 (zh)
EP (1) EP2456253A4 (zh)
CN (1) CN101610531A (zh)
WO (1) WO2011006385A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610531A (zh) * 2009-07-15 2009-12-23 中兴通讯股份有限公司 话单信息性能统计方法及其装置
CN101925039A (zh) * 2010-08-09 2010-12-22 中兴通讯股份有限公司 计费话单的预警方法及装置
CN102737110A (zh) * 2012-04-11 2012-10-17 佳都新太科技股份有限公司 一种能在大量的移动性动态数据中灵活快速准确实时的提供用户需要数据的方法
CN104994220B (zh) * 2015-05-18 2016-08-24 北京奇虎科技有限公司 一种数据处理方法和系统
CN109145027A (zh) * 2017-06-19 2019-01-04 中兴通讯股份有限公司 数据统计方法、装置、设备及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7031733B2 (en) * 2002-10-25 2006-04-18 Siemens Communications, Inc. Online short message service (SMS) monitoring tool
CN1905408A (zh) * 2006-08-04 2007-01-31 华为技术有限公司 一种消息监控的方法和装置
CN101610531A (zh) * 2009-07-15 2009-12-23 中兴通讯股份有限公司 话单信息性能统计方法及其装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020106070A1 (en) * 2000-10-27 2002-08-08 Elsey Nicholas J. Technique for effectively capturing and processing event data
US7236795B2 (en) * 2004-02-26 2007-06-26 Lucent Technologies Inc. Controlling processor load in a wireless telecommunications network node
US7941491B2 (en) * 2004-06-04 2011-05-10 Messagemind, Inc. System and method for dynamic adaptive user-based prioritization and display of electronic messages
US9288078B2 (en) * 2005-03-25 2016-03-15 Qualcomm Incorporated Apparatus and methods for managing content exchange on a wireless device
US20080056144A1 (en) * 2006-09-06 2008-03-06 Cypheredge Technologies System and method for analyzing and tracking communications network operations
CN100589606C (zh) * 2007-10-24 2010-02-10 中兴通讯股份有限公司 一种短消息查询分析系统及方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7031733B2 (en) * 2002-10-25 2006-04-18 Siemens Communications, Inc. Online short message service (SMS) monitoring tool
CN1905408A (zh) * 2006-08-04 2007-01-31 华为技术有限公司 一种消息监控的方法和装置
CN101610531A (zh) * 2009-07-15 2009-12-23 中兴通讯股份有限公司 话单信息性能统计方法及其装置

Also Published As

Publication number Publication date
US20120173555A1 (en) 2012-07-05
EP2456253A1 (en) 2012-05-23
EP2456253A4 (en) 2016-04-27
CN101610531A (zh) 2009-12-23

Similar Documents

Publication Publication Date Title
US20050232175A1 (en) System and method for provisioning device management tree parameters over a client provisioning protocol
US8874091B2 (en) Automatic device capabilities change notification
RU2298225C2 (ru) Обработка транзакций
US8315252B2 (en) Mass multimedia messaging
CN101248680B (zh) 在无线通信网络中基于规则的数据收集和管理
WO2011006385A1 (zh) 话单信息性能统计方法及装置
US20080056144A1 (en) System and method for analyzing and tracking communications network operations
CN104994219A (zh) 一种数据处理方法和系统
CN111142905A (zh) 一种ota升级方法、ota服务器及ota升级系统
US7308462B1 (en) Methods and systems for building and distributing audio packages
CN103796207A (zh) 一种虚假用户号码识别方法及装置
CN103491522A (zh) 终端适配方法和装置
CN102340791A (zh) 一种用于实现数据一致性的系统和方法
CN104994220A (zh) 一种数据处理方法和系统
CN101877071A (zh) 一种数据更新方法、装置及系统
CN101383852B (zh) 实现个人专用数字报刊的系统和方法
CN110445934A (zh) 通话信息处理方法、系统、终端及可读存储介质
CN101080045B (zh) 消息筛选分发系统和方法
CN112988740B (zh) 一种基于多个数据源的配电网数据收纳方法
CN101217755B (zh) 一种用于数据采集的前置机系统和方法
CN102137341B (zh) 一种基于彩信实现交互的方法、系统及设备
CN211630177U (zh) 设备数据的采集系统
CN114153895A (zh) 一种实时数仓框架的搭建方法以及实时数仓框架
CN101674538A (zh) 一种电信增值业务消息记录方法及系统
CN112887925A (zh) 短信推送方法、边缘服务器节点和业务服务器节点

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10799383

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2010799383

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 13259317

Country of ref document: US