CN101986649A - Shared data center used in telecommunication industry billing system - Google Patents
Shared data center used in telecommunication industry billing system Download PDFInfo
- Publication number
- CN101986649A CN101986649A CN2010105647768A CN201010564776A CN101986649A CN 101986649 A CN101986649 A CN 101986649A CN 2010105647768 A CN2010105647768 A CN 2010105647768A CN 201010564776 A CN201010564776 A CN 201010564776A CN 101986649 A CN101986649 A CN 101986649A
- Authority
- CN
- China
- Prior art keywords
- shared
- shared data
- memory space
- data center
- billing system
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a shared data center used in a telecommunication industry billing system. The shared data center comprises a shared data center server and a shared data center client, wherein the shared data center server is provided with a shared memory space capable of being dynamically expanded and used for storing shared data, the shared data can be loaded from a database in the shared memory space, the loaded shared data are organized in the shared memory space according to a specified data structure, the shared data in the shared memory space are automatically updated according to the change, and the read-write security of the shared memory space is ensured by using a read-write lock; and the shared data center client provides an application program interface for calling an application program of a visitor, the shared memory space is mapped into the memory space of the application program, and the application program searches the shared data from the memory space thereof according to the specified data structure. According to the data characteristics of the telecommunication industry, the invention optimizes storage mode and search algorithm so as to reduce memory consumption at the same time of meeting efficient query.
Description
Technical field
The present invention relates to the shared data center, relate in particular to a kind of shared data center that is applied to telecommunications billing system.
Background technology
At present, telecommunications industry mainly adopts the universal memory database, waits the shared data of managing in the charge system as TimesTen, Altibase.Manage under the mode of shared data at the existing universal memory database that directly uses:, be optimized at the telecommunications industry characteristics separately so limited it because employing is the universal memory database; The resources occupation rate height, in have additive decrementation, efficiency data query is low and memory consumption is big; Start-up loading speed is slow, from unusual recovery time long, can not satisfy the telecommunications industry needs.
Summary of the invention
Therefore, the object of the present invention is to provide a kind of shared data center that is applied to telecommunications billing system, it can reduce memory consumption when satisfying the high efficiency inquiry.
For achieving the above object, the invention provides a kind of shared data center that is applied to telecommunications billing system, comprise: shared data central server end, but it has the shared memory space that is used for storing shared data of dynamic expansion, this shared memory space can load shared data from database, the shared data that loads is organized in this shared memory space by easy-to-look-up designated data structure, shared data in the shared memory space changes renewal automatically according to the shared data that derives from database and shared data center client, uses Read-Write Locks to guarantee the read-write safety of shared memory space; Shared data center client, it provides application programming interfaces to be provided as visitor's application call, described shared memory space is mapped to the memory headroom of application program itself, and application program is searched shared data according to described designated data structure from the memory headroom of application program itself.
Wherein, described shared data central server end uses multistage local file buffer memory to preserve the reflection of shared memory space in real time, when restart at this shared data center, can select to load shared data to described shared memory space from this multistage local file buffer memory.
Wherein, described Read-Write Locks uses signal lamp to realize.
Wherein, described designated data structure is a kind of in hash, word tree or the balanced binary tree or some kinds.
Wherein, the actual physical address of internal memory adopts the mode of virtual mouse information and the combination of superblock information to represent in the described shared memory space.
To sum up, the shared data center needle that the present invention is applied to telecommunications billing system at storage mode with search on the algorithm and be optimized, reduces memory consumption to the data characteristics of telecommunications industry when satisfying the high efficiency inquiry; Use multistage local file buffer memory, preserve memory mapping in real time, it is very fast to restart speed.
Description of drawings
Below in conjunction with accompanying drawing,, will make technical scheme of the present invention and other beneficial effects apparent by the specific embodiment of the present invention is described in detail.
In the accompanying drawing,
Fig. 1 is applied to the modular structure schematic diagram at the shared data center of telecommunications billing system for the present invention;
Fig. 2 is applied to the schematic diagram of the BILLING part among the NGBSS for the present invention.
Embodiment
Referring to Fig. 1, it is applied to the modular structure schematic diagram at the shared data center of telecommunications billing system for the present invention.The shared data center that is applied to telecommunications billing system of the present invention, comprise: shared data central server end 1 and shared data center client 2, shared data central server end 1 is connected with database 3 communications that store shared data, and shared data center client 2 is connected with application program 5 communications as the visitor.Shared data central server end 1 and shared data center client 2 are by both function names in data sharing process, can be server end and the client in the computer network, also can be server end and the client in the functional module, that is to say that shared data central server end 1 and shared data center client 2 can be positioned on the same computer, also can lay respectively on the different computers.Database 3 is used to store the shared data of telecommunications billing system, for example customer data, plan of operation etc. these in charging process, need data that share to use, database 3 can be the universal memory database of existing TimesTen of employing or Altibase.Application program 5 refers to need to visit in the telecommunications billing systems all kinds of business process of shared data, for example be arranged in the telecommunication business Room for the service terminal of people's operation with and go up the miscellaneous service interface of operation, concrete as wholesale price, tire out account, preferential business etc.
But shared data central server end 1 has the shared memory space 11 that is used for storing shared data of dynamic expansion, this shared memory space 11 can load shared data from database 3, the shared data that loads is organized in this shared memory space 11 by easy-to-look-up designated data structure, shared data in the shared memory space 11 changes renewal automatically according to the shared data that derives from database 3 and shared data center client 2, uses Read-Write Locks 12 to guarantee the read-write safety of shared memory space 11; Shared data center client 2, its application program 5 that provides application programming interfaces 21 to be provided as the visitor is called, described shared memory space 11 is mapped to the memory headroom 51 of application program 5 itself, and application program 5 is searched shared data according to described designated data structure from the memory headroom 51 of itself.That is to say,, at first open up initial shared memory space 11 at shared data central server end 1, and according to operating position dynamic expansion shared memory space 11; From database 3 loading datas; Shared data is organized in shared memory space 11 with easy-to-look-up by designated data structure; Automatically upgrade the data in the shared memory space 11; Provide the action of 12 pairs of shared data central servers of Read-Write Locks end 1 and shared data center client 2 to carry out synchronously.In shared data center client, provide one group of application programming interfaces (API) 21 to call for the visitor; Shared memory space 11 is mapped to the memory headroom 51 of application program 5 itself, from the memory headroom 51 of itself, searches data according to specified requirements.
Shared data central server end 1 of the present invention can also use multistage local file buffer memory 4 to preserve the reflection of shared memory space 11 in real time, when restart at the shared data center, except that selecting to load the shared data, also can select to load shared data to shared memory space 11 from multistage local file buffer memory 4 from database 3.Multistage local file buffer memory 4 is realized by shared data central server end 1, be after database 3 loadings are finished and the real-time update data procedures, the local file buffer memory of creating or revising, its method be memory mirror DUMP (duplicating) after shared memory space 11 interior tissues are finished to local disk, multistage is that the expression cache file is divided into basic document, delta file by the time.Restart or when starting unusually first-selection from multistage local file buffer memory 4 restore data, multistage local file buffer memory 4 by the check information to file header guarantee that the version of file is correct, integrality and promptness.When starting once more, preferentially load rather than load from database 3 again, can avoid the bigger I/O expense and the expense of reorganization data from local disk.By using multistage local file buffer memory 4, preserve memory mapping in real time, it is very fast to restart speed, and start from database and improve 15 to 20 times the comparable first time.
The designated data structure of shared memory space 11 inner tissue's shared data can be a kind of in hash, word tree or the balanced binary tree or some kinds.By built-in HASH (hash), TRIE TREE (word tree), AVL TREE (balanced binary tree) scheduling algorithm, can be optimized with searching on the algorithm at storage mode at the data characteristics of telecommunications industry, when satisfying the high efficiency inquiry, reduce memory consumption.
Shared data of the present invention center can also provide various aids, and for example: 1) shared memory space reader is used for checking the data cases in the shared drive; 2) shared data central server end operation tool is used for specified data object is refreshed again; 3) performance adjustment device, collection certain data objects search efficiency index is also analyzed, and provides algorithm for reference.
Read-Write Locks 12 can use signal lamp to realize the signal lamp (semaphore) of the system 5 (SYSTEMV) that for example Linux supported.Signal lamp be mainly used in synchronously or mutual exclusion to the visit of shared resource, its invention derives from " signal lamp " in the train running system, utilizes signal lamp can realize " PV operation " this inter process synchronization mechanism.P operation is to obtain resource, and the value of signal lamp is subtracted 1, if the result for negative then be finished, process obtains resource, otherwise the process sleep discharges resource to wait for other process of resource; V operation then is to discharge resource, adds 1 for the value of signal lamp, discharges one because of carrying out the process that the P operation is waited for.In the present invention, adopt signal lamp mainly to reach the purpose that guarantees data consistency: to guarantee that 1) only there is the person of writing in arbitrary moment in the change shared memory space; 2) guarantee that not writing the person at the synchronization of reading shared memory space is changing with a slice shared memory space; 3) support a plurality of reader's parallel processings; 4) guarantee that the person of writing is preferential.Read-Write Locks 12 is created by shared data central server end 1, and shared data center client 2 provides the interface of operation Read-Write Locks 12, and client can be operated Read-Write Locks and be guaranteed read-write safety before read-write like this.
The detailed process of obtaining read lock can be as follows:
1) judges whether write operation queuing lock is zero, if non-vanishing then end to be written such as obstruction.
2) obtain read lock (reader's quantity adds).
3) read operation.
4) discharge read lock (reader's quantity subtracts).
Obtaining the detailed process of writing lock can be as follows:
1) write operation queuing lock adds one.
2) whether reader's quantity is zero, if non-vanishing then block and wait for.
3) obtain and write lock.
4) write operation.
5) lock is write in release.
6) write operation queuing lock subtracts one.
The actual physical address of internal memory adopts the mode of virtual mouse information and the combination of superblock information to represent in the shared memory space 11.The virtual address is made up of three parts: piece, page or leaf, page or leaf bias internal, use SUPERBLOCK (superblock) to preserve the relevant necessary basis data (memory block number, memory block first address, page table) of addressing, adopting such addressing method is the basis of improving memory usage, reducing memory fragmentation and dynamic expansion common memory section.
The addressing method of shared memory space 11 specifies as follows:
1, adopts virtual mouse, can determine the actual physical address of its sensing by the information among the virtual mouse cooperation SUPER BLOCK (superblock).
2, in shared memory space 11, data are organized, may be applied to various data structures, as array, balanced binary tree, HASH table, TRIE tree etc.For instance, each node of balanced binary tree needs two nodes about two pointed, and its node definition may be following form:
Struct?node
{
TDATA?data;
vaddr?left;
vaddr?right;
}
Wherein left and two members' of right type is exactly a virtual mouse.Other data structures comprise that array also is to represent its address by virtual mouse in shared memory space 11 inside.
3, virtual mouse by 8 bytes totally 64 BIT constitute, preceding 8 BIT represent memory block sequence number (shared memory space 11 may be made of a plurality of memory blocks), thereafter 24 BIT are used for expression page or leaf sequence number (memory block is made of N page or leaf), and last 32 BIT are used for expression page or leaf bias internal.
4, in SUPER BLOCK (superblock), write down this shared memory space 11 and comprised several memory blocks, the first address of each memory block, what pages each memory block comprises, the size of page (size of page is fixed in memory block).
5, virtual mouse information+superblock information=actual physical address, thus finish in shared memory space 11 inner addressing process.
6, this addressing algorithm is encapsulated in bottom, and all operations that relate to shared memory space 11 all can be applied to.At shared data central server end 1, loading data, organize index all can use virtual addressing; In shared data center client 2, no matter read-write all can be used virtual addressing when the inquiry location; All can pass through virtual addressing as long as relate to the operation of shared memory space 11 internal datas.
As shown in Figure 2, it specifically is applied to NGBSS (New Generation BusinessSupport System for the present invention, the schematic diagram of BILLING (charging) part a new generation's OSS), the BILLING part among the existing NGBSS all can adopt framework shown in Figure 2 to realize.Shared data center 10 loads customer data and business rule (comprising three family data, set meal rule etc.) to the shared memory space of being made up of read-only memory district 111 and read/write memory district 112, the line index tissue of going forward side by side from the database that comprises plan of operation 31 and customer data 32.The traffic control framework of the part of chargeing comprises collection, guide, wholesale price, tired account, preferential, business process such as letter is controlled, entered an item of expenditure in the accounts for 50 times, the built-in shared data of these business process center client (form with object instance embodies), data in the interface 22 visit shared data centers 10 that provide by shared data center client object comprise the read-write operation that Data Update and data are obtained to data.Use data 40 as the multistage local file data in buffer of storage storehouse, preserve memory mapping in real time, it is very fast to make shared data center 10 restart speed.In this concrete application, shared data center 10 also provides shared data central tool bag 13, it is made of a series of miscellaneous function modules independently, comprise modules such as data customization, Refresh Data, lasting data, fast quick-recovery, business reorganization, debugging acid, performance evaluation and service adjustment, itself stay out of professional main flow, main purpose provides man-machine interface easily.
To sum up, the shared data center needle that the present invention is applied to telecommunications billing system at storage mode with search on the algorithm and be optimized, reduces memory consumption to the data characteristics of telecommunications industry when satisfying the high efficiency inquiry; Use multistage local file buffer memory, preserve memory mapping in real time, it is very fast to restart speed.
The above; for the person of ordinary skill of the art; can make other various corresponding changes and distortion according to technical scheme of the present invention and technical conceive, and all these changes and distortion all should belong to the protection range of accompanying Claim of the present invention.
Claims (5)
1. a shared data center that is applied to telecommunications billing system is characterized in that, comprising:
Shared data central server end, but it has the shared memory space that is used for storing shared data of dynamic expansion, this shared memory space can load shared data from database, the shared data that loads is organized in this shared memory space by easy-to-look-up designated data structure, shared data in the shared memory space changes renewal automatically according to the shared data that derives from database and shared data center client, uses Read-Write Locks to guarantee the read-write safety of shared memory space;
Shared data center client, it provides application programming interfaces to be provided as visitor's application call, described shared memory space is mapped to the memory headroom of application program itself, and application program is searched shared data according to described designated data structure from the memory headroom of application program itself.
2. the shared data center that is applied to telecommunications billing system as claimed in claim 1, it is characterized in that, described shared data central server end uses multistage local file buffer memory to preserve the reflection of shared memory space in real time, when restart at this shared data center, can select to load shared data to described shared memory space from this multistage local file buffer memory.
3. the shared data center that is applied to telecommunications billing system as claimed in claim 1 is characterized in that, described Read-Write Locks uses signal lamp to realize.
4. the shared data center that is applied to telecommunications billing system as claimed in claim 1 is characterized in that, described designated data structure is a kind of in hash, word tree or the balanced binary tree or some kinds.
5. the shared data center that is applied to telecommunications billing system as claimed in claim 1 is characterized in that, the actual physical address of internal memory adopts the mode of virtual mouse information and the combination of superblock information to represent in the described shared memory space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010564776.8A CN101986649B (en) | 2010-11-29 | 2010-11-29 | Shared data center used in telecommunication industry billing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010564776.8A CN101986649B (en) | 2010-11-29 | 2010-11-29 | Shared data center used in telecommunication industry billing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101986649A true CN101986649A (en) | 2011-03-16 |
CN101986649B CN101986649B (en) | 2014-01-15 |
Family
ID=43710952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010564776.8A Active CN101986649B (en) | 2010-11-29 | 2010-11-29 | Shared data center used in telecommunication industry billing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101986649B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102722405A (en) * | 2012-06-06 | 2012-10-10 | 新浪网技术(中国)有限公司 | Counting method in high concurrent and multithreaded application and system |
CN102790683A (en) * | 2011-05-16 | 2012-11-21 | 北大方正集团有限公司 | Real-time market data processing method, server and system |
CN103136025A (en) * | 2013-02-04 | 2013-06-05 | 深圳市硅格半导体有限公司 | Multistage program loading method and device |
CN105787083A (en) * | 2016-03-02 | 2016-07-20 | 深圳市元征科技股份有限公司 | Data processing method and device |
CN106205080A (en) * | 2016-08-26 | 2016-12-07 | 爱普(福建)科技有限公司 | The method of a kind of man machine interface amendment alarm limits and system |
CN106469155A (en) * | 2015-08-17 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of basic data processing method, apparatus and system |
CN106708825A (en) * | 2015-07-29 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Data file processing method and system |
CN107862097A (en) * | 2017-12-21 | 2018-03-30 | 上海新炬网络技术有限公司 | A kind of table data intelligence method for cleaning based on TimesTen memory banks |
CN109298953A (en) * | 2018-08-29 | 2019-02-01 | 北京机电工程研究所 | A kind of device and method of shared drive reading and writing data |
CN111143357A (en) * | 2019-12-13 | 2020-05-12 | 江苏未来智慧信息科技有限公司 | High-speed data query platform based on shared memory |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1503525A (en) * | 2002-11-26 | 2004-06-09 | 华为技术有限公司 | IP network system for realizing safety verification and method thereof |
CN101082928A (en) * | 2007-06-25 | 2007-12-05 | 腾讯科技(深圳)有限公司 | Method for accessing database and data-base mapping system |
CN101729342A (en) * | 2009-11-30 | 2010-06-09 | 江西省电力公司 | Realization method of real-time memory calculation data structure of mixed mobile power system |
-
2010
- 2010-11-29 CN CN201010564776.8A patent/CN101986649B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1503525A (en) * | 2002-11-26 | 2004-06-09 | 华为技术有限公司 | IP network system for realizing safety verification and method thereof |
CN101082928A (en) * | 2007-06-25 | 2007-12-05 | 腾讯科技(深圳)有限公司 | Method for accessing database and data-base mapping system |
CN101729342A (en) * | 2009-11-30 | 2010-06-09 | 江西省电力公司 | Realization method of real-time memory calculation data structure of mixed mobile power system |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102790683A (en) * | 2011-05-16 | 2012-11-21 | 北大方正集团有限公司 | Real-time market data processing method, server and system |
CN102722405A (en) * | 2012-06-06 | 2012-10-10 | 新浪网技术(中国)有限公司 | Counting method in high concurrent and multithreaded application and system |
CN103136025A (en) * | 2013-02-04 | 2013-06-05 | 深圳市硅格半导体有限公司 | Multistage program loading method and device |
CN103136025B (en) * | 2013-02-04 | 2016-08-03 | 深圳市硅格半导体有限公司 | The method and apparatus of multi-stage loading program |
CN106708825A (en) * | 2015-07-29 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Data file processing method and system |
CN106708825B (en) * | 2015-07-29 | 2019-09-27 | 腾讯科技(深圳)有限公司 | A kind of data file processing method and system |
CN106469155A (en) * | 2015-08-17 | 2017-03-01 | 阿里巴巴集团控股有限公司 | A kind of basic data processing method, apparatus and system |
CN105787083A (en) * | 2016-03-02 | 2016-07-20 | 深圳市元征科技股份有限公司 | Data processing method and device |
CN106205080A (en) * | 2016-08-26 | 2016-12-07 | 爱普(福建)科技有限公司 | The method of a kind of man machine interface amendment alarm limits and system |
CN107862097A (en) * | 2017-12-21 | 2018-03-30 | 上海新炬网络技术有限公司 | A kind of table data intelligence method for cleaning based on TimesTen memory banks |
CN109298953A (en) * | 2018-08-29 | 2019-02-01 | 北京机电工程研究所 | A kind of device and method of shared drive reading and writing data |
CN109298953B (en) * | 2018-08-29 | 2021-12-10 | 北京机电工程研究所 | Device and method for reading and writing shared memory data |
CN111143357A (en) * | 2019-12-13 | 2020-05-12 | 江苏未来智慧信息科技有限公司 | High-speed data query platform based on shared memory |
Also Published As
Publication number | Publication date |
---|---|
CN101986649B (en) | 2014-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101986649B (en) | Shared data center used in telecommunication industry billing system | |
CN100468402C (en) | Sort data storage and split catalog inquiry method based on catalog tree | |
CN102158546B (en) | Cluster file system and file service method thereof | |
CN107463447B (en) | B + tree management method based on remote direct nonvolatile memory access | |
CN100426259C (en) | Virtual access method of storage document data | |
CN101866359B (en) | Small file storage and visit method in avicade file system | |
CN105378687B (en) | Access the method and relevant device of file | |
CN100456264C (en) | Magnetic disk space management and managing system | |
CN100424699C (en) | Attribute extensible object file system | |
CN103164490B (en) | A kind of efficient storage implementation method of not fixed-length data and device | |
CN101488153A (en) | Method for implementing high-capacity flash memory file system in embedded type Linux | |
CN105117417A (en) | Read-optimized memory database Trie tree index method | |
CN108710578A (en) | Date storage method based on flash memory and device | |
CN106775446A (en) | Based on the distributed file system small documents access method that solid state hard disc accelerates | |
CN110347852A (en) | It is embedded in the file system and file management method of key assignments storage system extending transversely | |
CN103279502B (en) | A kind of framework and method with the data de-duplication file system be combined with parallel file system | |
CN102880678A (en) | Embedded real-time memory database | |
CN102915340A (en) | Expanded B+ tree-based object file system | |
WO2004109545A2 (en) | Database access system, method of accessing a database, and method of designing a database access system | |
CN105159616A (en) | Disk space management method and device | |
CN102982151A (en) | Method for merging multiple physical files into one logic file | |
CN105589881A (en) | Data processing method and device | |
CN107766355B (en) | Hierarchical data management method, hierarchical data management system and instant messaging system | |
CN101236564A (en) | Mass data high performance reading display process | |
CN101510332A (en) | Method and apparatus for managing memory space of smart card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |