CN101986649B - Shared data center used in telecommunication industry billing system - Google Patents

Shared data center used in telecommunication industry billing system Download PDF

Info

Publication number
CN101986649B
CN101986649B CN201010564776.8A CN201010564776A CN101986649B CN 101986649 B CN101986649 B CN 101986649B CN 201010564776 A CN201010564776 A CN 201010564776A CN 101986649 B CN101986649 B CN 101986649B
Authority
CN
China
Prior art keywords
shared
memory space
data center
data
shared data
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.)
Active
Application number
CN201010564776.8A
Other languages
Chinese (zh)
Other versions
CN101986649A (en
Inventor
李志�
刘羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tydic Information Technology Co ltd
Original Assignee
Shenzhen Tydic Information Technology 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 Shenzhen Tydic Information Technology Co ltd filed Critical Shenzhen Tydic Information Technology Co ltd
Priority to CN201010564776.8A priority Critical patent/CN101986649B/en
Publication of CN101986649A publication Critical patent/CN101986649A/en
Application granted granted Critical
Publication of CN101986649B publication Critical patent/CN101986649B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Be applied to the shared data center of telecommunications billing system
Technical field
The present invention relates to share 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 universal memory database, as TimesTen, Altibase etc. manages the shared data in charge system.Existing direct management with universal memory database under the mode of sharing data: because what adopt is universal memory database, be optimized for telecommunications industry feature separately so limited it; Resources occupation rate is high, inside has extra consumption, and efficiency data query is low and memory consumption is large; Start-up loading speed is slow, from abnormal recovery time long, can not meet 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 meeting 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: share data center server end, it has the shared memory space that is used for storing shared data of dynamic extending, this shared memory space can load and share data from database, the shared data that load are organized in this shared memory space by easy-to-look-up designated data structure, the shared data based shared data variation that derives from database and shared data center client in shared memory space is upgraded automatically, use Read-Write Locks to guarantee the read-write safety of shared memory space, share data center's 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 from the memory headroom of application program itself according to described designated data structure.
Wherein, described shared data center server end is used multistage local file buffer memory to preserve in real time the reflection of shared memory space, when this shared data center restarts, can select to load and share data to described shared memory space from this multistage local file buffer memory.
Wherein, described Read-Write Locks is used signal lamp to realize.
Wherein, described designated data structure is a kind of or several in hash, word tree or balanced binary tree.
Wherein, in described shared memory space, the actual physical address of internal memory adopts the mode of virtual mouse information and the combination of superblock information to represent.
To sum up, the shared data center that the present invention is applied to telecommunications billing system at storage mode with search on algorithm and be optimized, reduces memory consumption for the data characteristics of telecommunications industry when meeting high efficiency inquiry; Use multistage local file buffer memory, preserve in real time memory mapping, restart speed very fast.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, by the specific embodiment of the present invention is described in detail, will make technical scheme of the present invention and other beneficial effects apparent.
In accompanying drawing,
Fig. 1 is the modular structure schematic diagram of the present invention shared data center of being applied to telecommunications billing system;
Fig. 2 is the schematic diagram that the present invention is applied to the BILLING part in NGBSS.
Embodiment
Referring to Fig. 1, it is applied to the modular structure schematic diagram of 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: share data center server end 1 and shared data center client 2, share data center server end 1 and be connected with database 3 communications that store shared data, share data center's client 2 and be connected with application program 5 communications as visitor.Sharing data center server end 1 and shared data center client 2 is the names of the function in data sharing process by both, can be server end and the client in computer network, also can be server end and the client in functional module, that is to say that shared data center server end 1 and shared data center client 2 can be positioned on same computer, also can lay respectively on different computers.Database 3 is for storing the shared data of telecommunications billing system, and such as customer data, plan of operation etc., these need to share the data of using in charging process, and database 3 can be the universal memory database of existing employing TimesTen or Altibase.All kinds of business process that need accessing shared data in application program 5 finger telecommunications billing systems, be for example arranged in the telecommunication business Room for the service terminal of people's operation with and the miscellaneous service interface of upper operation, concrete as wholesale price, tire out account, preferential business etc.
Share the shared memory space 11 that is used for storing shared data that data center server end 1 has dynamic extending, this shared memory space 11 can load and share data from database 3, the shared data that load are organized in this shared memory space 11 by easy-to-look-up designated data structure, the shared data based shared data variation that derives from database 3 and shared data center client 2 in shared memory space 11 is upgraded automatically, uses Read-Write Locks 12 to guarantee the read-write safety of shared memory space 11; Share data center's client 2, it provides the application program 5 that application programming interfaces 21 are provided as visitor to call, described shared memory space 11 is mapped to the memory headroom 51 of application program 5 own, 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 shared data center server end 1, first open up initial shared memory space 11, and according to service condition dynamic expansion shared memory space 11; From database 3, load data; To sharing data, by designated data structure, in shared memory space 11, organize with easy-to-look-up; Automatically upgrade the data in shared memory space 11; Provide the action of 12 pairs of shared data center server ends 1 of Read-Write Locks 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 visitor; Shared memory space 11 is mapped to the memory headroom 51 of application program 5 own, according to specified requirements, from the memory headroom 51 of itself, searches data.
Shared data center server end 1 of the present invention can also be used multistage local file buffer memory 4 to preserve in real time the reflection of shared memory space 11, when shared data center restarts, except selecting to load and share data from database 3, also can select to load and share data to shared memory space 11 from multistage local file buffer memory 4.Multistage local file buffer memory 4 is realized by shared data center server end 1, from database 3 has loaded and in real-time update data procedures, the local file buffer memory that creates or revise, its method be memory mirror DUMP (copying) after shared memory space 11 interior tissues are completed to local disk, multistagely mean that cache file is divided into basic document, delta file by the time.When restarting or extremely starting, first-selection is recovered data from multistage local file buffer memory 4, multistage local file buffer memory 4 by the check information of file header being guaranteed to the version of file is correct, integrality and promptness.When again starting, preferentially from local disk, load rather than from database 3, load again, can avoid larger I/O expense and the expense of reorganization data.By using multistage local file buffer memory 4, preserve in real time memory mapping, restart speed very fast, comparable for the first time from 15 to 20 times of database startup raisings.
A kind of or several that the designated data structure of data can be in hash, word tree or balanced binary tree shares in shared memory space 11 inner tissues.By built-in HASH (hash), TRIE TREE (word tree), AVL TREE (balanced binary tree) scheduling algorithm, can at storage mode, be optimized with searching on algorithm for the data characteristics of telecommunications industry, when meeting high efficiency inquiry, reduce memory consumption.
Shared data center of the present invention can also provide various aids, for example: 1) shared memory space reader, is used for checking the data cases in shared drive; 2) share data center server end operation tool, be used for specified data object again to refresh; 3) performance adjustment device, collects certain data objects search efficiency index and analyzes, and provides algorithm for reference.
Read-Write Locks 12 can be used signal lamp to realize, the signal lamp (semaphore) of the system 5 (SYSTEMV) that for example Linux supports.Signal lamp is mainly used in synchronous or the access of mutual exclusion to shared resource, and its invention derives from " signal lamp " in 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 to 1, if result is for negative, is finished, and process obtains resource, otherwise process sleeps to wait for other process releasing resource of resource; V operation is releasing resource, adds 1 to the value of signal lamp, discharges a process of waiting for because carrying out P operation.In the present invention, adopt signal lamp mainly to reach the object that guarantees data consistency: 1) to guarantee that only there is the person of writing in arbitrary moment in change shared memory space; 2) guarantee that at the synchronization of reading shared memory space, not writing person is changing with a slice shared memory space; 3) support a plurality of reader's parallel processings; 4) guarantee Writer-priority.Read-Write Locks 12 is created by shared data center server end 1, shares the interface that data center's client 2 provides operation Read-Write Locks 12, and client can operate Read-Write Locks and guarantee read-write safety before read-write like this.
The detailed process of obtaining read lock can be as follows:
1) judge whether write operation queuing lock is zero, if non-vanishing, the 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).
Obtain write the detailed process of lock can be as follows:
1) write operation is queued up to lock and is added one.
2) whether reader's quantity is zero, if non-vanishing, block and waits for.
3) obtain and write lock.
4) write operation.
5) discharge and write lock.
6) write operation is queued up to lock and is subtracted one.
In shared memory space 11, the actual physical address of internal memory adopts the mode of virtual mouse information and the combination of superblock information to represent.Virtual address is comprised of three parts: piece, page, page bias internal, use SUPERBLOCK (superblock) to preserve the necessary basis data that addressing is relevant (memory block number, memory block first address, page table), 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 is described as follows:
1, adopt virtual mouse, by virtual mouse, coordinate information in SUPER BLOCK (superblock) can determine the actual physical address of its sensing.
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 in two pointed left and right, 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 virtual mouse.Other data structures, comprise that array is also to represent its address by virtual mouse in shared memory space 11 inside.
3, virtual mouse by 8 bytes totally 64 BIT form, front 8 BIT represent memory block sequence number (shared memory space 11 may consist of a plurality of memory blocks), thereafter 24 BIT are used for representing a page sequence number (memory block consists of N page), and last 32 BIT are used for representing a page bias internal.
4, in SUPER BLOCK (superblock), record this shared memory space 11 and comprised several memory blocks, the first address of each memory block, each memory block comprises how many pages, the size of page (in a memory block, the size of page is fixed).
5, virtual mouse information+superblock information=actual physical address, thus the process in shared memory space 11 inner addressing completed.
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 center server end 1, load 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 inquiry location; As long as relate to the operation of shared memory space 11 internal datas, all can pass through virtual addressing.
As shown in Figure 2, it is specifically 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 in existing NGBSS all can adopt the framework shown in Fig. 2 to realize.Share data center 10 and from comprise the database of plan of operation 31 and customer data 32, load the shared memory space that customer data and business rule (comprising three family data, set meal rule etc.) Zhi You read-only memory district 111He read/write memory district 112 form, the line index tissue of going forward side by side.The business process such as the traffic control framework of charging part comprises collection, guide, wholesale price, tired account for 50 times, preferential, letter is controlled, entered an item of expenditure in the accounts, the built-in shared data center of these business process client (form with object instance embodies), by sharing the data in the interface 22 accessing shared data centers 10 that data center's client object provides, data are comprised to the read-write operation of Data Update and data acquisition.Usage data 40, as the database of the multistage local file buffer memory of storage, is preserved memory mapping in real time, makes shared data center 10 restart speed very fast.In this concrete application, share data center 10 shared data center kit 13 is also provided, it is by a series of miscellaneous function module compositions independently, comprise the 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 business main flow, main purpose is to provide man-machine interface easily.
To sum up, the shared data center that the present invention is applied to telecommunications billing system at storage mode with search on algorithm and be optimized, reduces memory consumption for the data characteristics of telecommunications industry when meeting high efficiency inquiry; Use multistage local file buffer memory, preserve in real time memory mapping, restart speed very fast.
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 the accompanying claim of the present invention.

Claims (3)

1. a shared data center that is applied to telecommunications billing system, is characterized in that, comprising:
Share data center server end, it has the shared memory space that is used for storing shared data of dynamic extending, this shared memory space loads and shares data from database, the shared data that load are organized in this shared memory space by easy-to-look-up designated data structure, the shared data based shared data variation that derives from database and shared data center client in shared memory space is upgraded automatically, uses Read-Write Locks to guarantee the read-write safety of shared memory space;
Share data center's 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 from the memory headroom of application program itself according to described designated data structure;
Shared memory space reader, is used for checking the data cases in shared memory space;
Share data center server end operation tool, be used for specified data object again to refresh;
Performance adjustment device, collects certain data objects search efficiency index and analyzes, and provides algorithm for reference;
Described shared data center server end is used multistage local file buffer memory to preserve in real time the reflection of shared memory space, when this shared data center restarts, selection loads and shares data to described shared memory space from this multistage local file buffer memory, described multistage local file buffer memory is served as reasons and is shared data center server end from database has loaded and in real-time update data procedures, the local file buffer memory that creates or revise, the implementation method of described multistage local file buffer memory is that the memory mirror after shared memory space interior tissue is completed copies on the local disk of sharing data center server end, when restarting or extremely starting, first-selection is recovered data from multistage local file buffer memory, described multistage local file buffer memory is by guaranteeing that to the check information of file header the version of file is correct, integrality and promptness,
Read-Write Locks is by being used signal lamp to realize, utilize described signal lamp to realize " PV operation " inter process synchronization mechanism, wherein, P operation in PV operation is to obtain resource, the value of signal lamp is subtracted to 1, if result, for negative, is not finished, process obtains resource, otherwise process sleeps to wait for other process releasing resource; V operation in PV operation is releasing resource, adds 1 to the value of signal lamp, discharges a process of waiting for because carrying out P operation.
2. 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 or several in hash, word tree or balanced binary tree.
3. the shared data center that is applied to telecommunications billing system as claimed in claim 1, is characterized in that, in described shared memory space, the actual physical address of internal memory adopts the mode of virtual mouse information and the combination of superblock information to represent.
CN201010564776.8A 2010-11-29 2010-11-29 Shared data center used in telecommunication industry billing system Active CN101986649B (en)

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 CN101986649A (en) 2011-03-16
CN101986649B true 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)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
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
CN102722405B (en) * 2012-06-06 2015-05-13 新浪网技术(中国)有限公司 Counting method and system in high concurrent and multithreaded application
CN103136025B (en) * 2013-02-04 2016-08-03 深圳市硅格半导体有限公司 The method and apparatus of multi-stage loading program
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
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

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN101986649A (en) 2011-03-16

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
CN101814045B (en) Data organization method for backup services
CN101233498B (en) Data operations in flash memories utilizing direct data file stroage
CN101866359B (en) Small file storage and visit method in avicade file system
CN103164490B (en) A kind of efficient storage implementation method of not fixed-length data and device
US20060047926A1 (en) Managing multiple snapshot copies of data
CN101382953A (en) Interface system for accessing file system in user space and file reading and writing method
CN101526927B (en) Data processing method and data processing device of Flash file system
CN100424699C (en) Attribute extensible object file system
CN101916290B (en) Managing method of internal memory database and device
CN106682110B (en) Image file storage and management system and method based on Hash grid index
CN105117417A (en) Read-optimized memory database Trie tree index method
CN103279502B (en) A kind of framework and method with the data de-duplication file system be combined with parallel file system
CN101968795A (en) Cache method for file system with changeable data block length
CN101488153A (en) Method for implementing high-capacity flash memory file system in embedded type Linux
CN102880678A (en) Embedded real-time memory database
CN111177019B (en) Memory allocation management method, device, equipment and storage medium
CN104598394A (en) Data caching method and system capable of conducting dynamic distribution
CN105159616A (en) Disk space management method and device
CN105589881A (en) Data processing method and device
CN101477477A (en) Kernel spacing isolation method, spacing management entity and system
CN103186622A (en) Updating method of index information in full text retrieval system and device thereof
CN101236564A (en) Mass data high performance reading display process
CN114676072A (en) Data processing method and device

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