CN104735103B - A kind of management of distributed data and method of reseptance, device - Google Patents

A kind of management of distributed data and method of reseptance, device Download PDF

Info

Publication number
CN104735103B
CN104735103B CN201310705903.5A CN201310705903A CN104735103B CN 104735103 B CN104735103 B CN 104735103B CN 201310705903 A CN201310705903 A CN 201310705903A CN 104735103 B CN104735103 B CN 104735103B
Authority
CN
China
Prior art keywords
account identification
user identifier
data
user
server
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
CN201310705903.5A
Other languages
Chinese (zh)
Other versions
CN104735103A (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.)
China Mobile Group Hunan Co Ltd
Original Assignee
China Mobile Group Hunan 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 China Mobile Group Hunan Co Ltd filed Critical China Mobile Group Hunan Co Ltd
Priority to CN201310705903.5A priority Critical patent/CN104735103B/en
Publication of CN104735103A publication Critical patent/CN104735103A/en
Application granted granted Critical
Publication of CN104735103B publication Critical patent/CN104735103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to fields of communication technology, more particularly to a kind of management and method of reseptance, the device of distributed data, in distributed integration system to solve the prior art, since the resource of accounting server can not be shared, the problem of causing the resource utilization of different accounting servers different, causing the accounting server resource in charge system that can not efficiently use.The embodiment of the present invention for user identifier by determining that a sequence number is used as account identification, for one serial number of each course allocation, the serial number of corresponding process is identified using the remainder that the total quantity for the process that whole accounting servers can be run in the sequence number of account number divided by system obtains as the account;It will be in the average distribution to each process of whole account number approximations, make the corresponding number of users approximately equal of each accounting server, it realizes rationally using the accounting server resource in system, and realizes the load balancing between different charge server, improve the resource utilization in system.

Description

A kind of management of distributed data and method of reseptance, device
Technical field
The present invention relates to the management of field of communication technology more particularly to a kind of distributed data and method of reseptance, device.
Background technology
As people's living standard is continuously improved, mobile communication subscriber amount is increased sharply year by year, how real-time place The consumption data for managing user, is increasingly paid close attention to by operator and user.
The mode of charging processing is the administrative districts and cities according to division in an administrative province in the prior art, is each city One accounting server of configuration carries out charging.After data server receives a user data, judged according to user identifier The user data corresponds to the institute possession of user, which is sent to the corresponding accounting server in user institute possession.User Include multiple memory spaces in the corresponding accounting server in institute possession, each memory space corresponds to a charging procedures;Work as reception To after a user data, accounting server determines that corresponding memory space carries out charging processing according to user data.When one When user volume in city is larger or user data is more, the resource that will result in the corresponding accounting server in the city is occupied It is higher with rate, or even there is the case where inadequate resource;And the user volume in other city is smaller, the corresponding charging clothes in the city The utilization rate of the resource of business device is with regard to relatively low.In existing charge processing method, different accounting servers receives different cities User data, and charging is carried out according to the charging policy that the city is formulated, when carrying out charging processing, need to rely on these data It is handled, therefore the resource of different charge server can not be shared.
Therefore in the distributed integration system of the prior art, since the resource of accounting server can not be shared, difference is caused Accounting server resource utilization it is different, cause the accounting server resource in charge system that can not efficiently use.
Invention content
The embodiment of the present invention provides distribution and charging method, the device of a kind of distributed data, to solve the prior art In distributed integration system, since the resource of accounting server can not be shared, the utilization of resources of different accounting servers is caused Situation is different, the problem of causing the accounting server resource in charge system that can not efficiently use.
An embodiment of the present invention provides a kind of distribution method of distributed data, this method includes:
Data server receives user data, and corresponding account identification is determined according to the user identifier in user data;
The data server determines the process that charging processing is carried out to the user data according to account identification, determines the account Family identifies corresponding user identifier, records the correspondence of user identifier and process;
The data server determines the corresponding accounting server of the process, by the user data and user identifier It is sent to corresponding accounting server with the correspondence of process;
The wherein described account identification is a sequence number;The data server can be run according to whole accounting servers Process total quantity, be one serial number of each course allocation;The data server is by the sequence number of account identification divided by institute State the serial number that the remainder that the total quantity of process obtains identifies corresponding process as the account;The data server is according to process Serial number determine the corresponding accounting server of the process.
It is each process by determining that a sequence number is used as account identification for the user identifier of user in above-described embodiment A serial number is distributed, by the total quantity for the process that whole accounting servers can be run in the sequence number of account number divided by system Obtained remainder identifies the serial number of corresponding process as the account;Whole account approximations in system are put down using the above method In equal distribution to each process, make the corresponding number of users approximately equal of each accounting server, realizes and rationally utilize system Accounting server resource in system, and the load balancing between different charge server is realized, it improves in system Resource utilization.
Further, data server described in the embodiment of the present invention is determined according to the user identifier in user data and is corresponded to Account identification, specifically include:
The data server prestores the correspondence of user identifier and account identification, according to pre-stored user Mark determines the corresponding account identification of the user identifier in the user data with the correspondence of account identification.
The correspondence for having prestored user identifier and account identification in above-described embodiment in data server, receives After user data, the corresponding account identification of user identifier in user data is determined.
Further include in the embodiment of the present invention:
The data server changes the corresponding account identification of the user identifier, determines that user identifier is corresponding Account identification after change, the correspondence of storage user identifier and the account identification after change;
The data server determines the entry-into-force time of user identifier and the correspondence of the account identification after change;It reaches Before entry-into-force time, the data server determines that user identifier corresponds to account identification before changing;Received letter of acceptance time, the number Determine that user identifier corresponds to the account identification after changing according to server.
The correspondence of account identification after data server determines user identifier and changes in above-described embodiment comes into force Time determined when to determine the account identification after change according to user identifier according to the entry-into-force time.As user changes in this month Corresponding account, data server updates the correspondence of user identifier and account identification at once, but still uses original in this month The correspondence of the address of some user identifiers and memory space, next month initially using user identifier and the account after change The correspondence of mark, it is convenient that data monitoring is carried out to the corresponding account of user.
Data server described in the embodiment of the present invention determines corresponding account mark according to the user identifier in user data Know, specifically includes:
The data server, which determines in the correspondence of pre-stored user identifier and account identification, does not store the use Family identifies corresponding account identification, then the data server generates a sequence number at random, using the sequence number as the user Identify corresponding account identification.
In above-described embodiment when user uses the user identifier for the first time, data server generates a sequence number for it and makees For account, in order to determine the process for carrying out charging processing to the user data according to account identification.
The embodiment of the invention also includes:
The data server determines that the quantity of accounting server changes, and redefining whole accounting servers can The total quantity of the process of operation is again each course allocation serial number;
The total quantity of the sequence number of account identification divided by the process redefined is obtained more than one by the data server Number, using the remainder as the serial number of the corresponding updated process of account identification;The data server according to it is updated into The serial number of journey determines the corresponding accounting server of the process.
In above-described embodiment after charge system dilatation, data server can be run according to the accounting server after dilatation The total quantity of process account is allocated again, so that the server in the charge system after dilatation is realized load balancing.
The embodiment of the present invention additionally provides a kind of method of reseptance of distributed data, and this method includes:
Accounting server receives the user data that data server is sent and the correspondence of user identifier and process;
User data is sent to accounting server by the accounting server according to the correspondence of user identifier and process In corresponding process;
The process of the accounting server determines corresponding charging regulation according to user identifier, according to determining charging regulation Charging processing is carried out to the user data.
Accounting server is determined according to the correspondence of user identifier and process in above-described embodiment carries out charging processing Process, process determine the charging regulation that charging processing is carried out to user data according to user identifier.Due to accounting server into Whole charging regulations is stored in journey, charging can be carried out to user data according to the user identifier of the user data received Processing avoids the problem of accounting server can only carry out charging processing to the user data of fixed area.
An embodiment of the present invention provides a kind of managing device of distributed data, which includes:
Account identification determination unit is determined according to the user identifier in user data and is corresponded to for receiving user data Account identification;
User data division unit, for determining the process for carrying out charging processing to the user data according to account identification, It determines that the account identifies corresponding user identifier, records the correspondence of user identifier and process;
User data transmission unit, for determining the corresponding accounting server of the process, by the user data and User identifier is sent to corresponding accounting server with the correspondence of process;
The wherein described account identification is a sequence number;The user data division unit is additionally operable to:According to whole chargings The total quantity for the process that server can be run is one serial number of each course allocation;By the sequence number of account identification divided by institute State the serial number that the remainder that the total quantity of process obtains identifies corresponding process as the account;Being determined according to the serial number of process should be into The corresponding accounting server of journey.
It is each process by determining that a sequence number is used as account identification for the user identifier of user in above-described embodiment A serial number is distributed, by the total quantity for the process that whole accounting servers can be run in the sequence number of account number divided by system Obtained remainder identifies the serial number of corresponding process as the account;Whole account approximations in system are put down using the above method In equal distribution to each process, make the corresponding number of users approximately equal of each accounting server, realizes and rationally utilize system Accounting server resource in system, and the load balancing between different charge server is realized, it improves in system Resource utilization.
Further, account identification determination unit described in the embodiment of the present invention is specifically used for:
The correspondence for prestoring user identifier and account identification, according to pre-stored user identifier and account identification Correspondence determine the corresponding account identification of user identifier in the user data.
The correspondence for having prestored user identifier and account identification in above-described embodiment in data server, receives After user data, the corresponding account identification of user identifier in user data is determined.
Account identification determination unit described in the embodiment of the present invention is additionally operable to:
The corresponding account identification of the user identifier is changed, determines the account mark after the corresponding change of user identifier Know, the correspondence of storage user identifier and the account identification after change;Determine user identifier and the account identification after change The entry-into-force time of correspondence;Before the received letter of acceptance time, determine that user identifier corresponds to account identification before changing;When received letter of acceptance Between, determine that user identifier corresponds to the account identification after change.
The correspondence of account identification after data server determines user identifier and changes in above-described embodiment comes into force Time determined when to determine the account identification after change according to user identifier according to the entry-into-force time.As user changes in this month Corresponding account, data server updates the correspondence of user identifier and account identification at once, but still uses original in this month The correspondence of the address of some user identifiers and memory space, next month initially using user identifier and the account after change The correspondence of mark, it is convenient that data monitoring is carried out to the corresponding account of user.
Account identification determination unit described in the embodiment of the present invention is specifically used for:
Determine pre-stored user identifier account corresponding with the user identifier is not stored in the correspondence of account identification Family identifies, then a sequence number is generated at random, using the sequence number as the corresponding account identification of the user identifier.
In above-described embodiment when user uses the user identifier for the first time, data server generates a sequence number for it and makees For account, in order to determine the process for carrying out charging processing to the user data according to account identification.
User data division unit described in the embodiment of the present invention is additionally operable to:
It determines that the quantity of accounting server changes, redefines the total of the process that whole accounting servers can be run Quantity is again each course allocation serial number;The total quantity of the sequence number of account identification divided by the process redefined is obtained One remainder, using the remainder as the serial number of the corresponding updated process of account identification;According to the serial number of updated process Determine the corresponding accounting server of the process.
In above-described embodiment after charge system dilatation, data server can be run according to the accounting server after dilatation The total quantity of process account is allocated again, so that the server in the charge system after dilatation is realized load balancing.
The embodiment of the present invention additionally provides a kind of reception device of distributed data, which includes:
Data receipt unit, the user data and user identifier for receiving data server transmission are corresponding with process Relationship;
Data transmission unit, for user data to be sent to billing of services according to the correspondence of user identifier and process In the corresponding process of device;
Charging processing unit, for determining corresponding charging regulation according to user identifier, according to determining charging regulation pair The user data carries out charging processing.
Device determines the process for carrying out charging processing according to the correspondence of user identifier and process in above-described embodiment, into Journey determines the charging regulation that charging processing is carried out to user data according to user identifier.Due to storing whole in the process of device Charging regulation, charging processing can be carried out to user data according to the user identifier of the user data received, avoid meter Take the problem of server can only carry out charging processing to the user data of fixed area.
By determining that a sequence number is used as account identification for the user identifier of user in the embodiment of the present invention, for each into Journey distributes a serial number, by the sum for the process that whole accounting servers can be run in the sequence number of account number divided by system The remainder measured identifies the serial number of corresponding process as the account;It is using the above method that whole accounts in system are approximate In average distribution to each process, makes the corresponding number of users approximately equal of each accounting server, realize reasonable utilization Accounting server resource in system, and the load balancing between different charge server is realized, it improves in system Resource utilization.
Description of the drawings
Fig. 1 is a kind of flow diagram of the management method of distributed data in the embodiment of the present invention;
Fig. 2 is the schematic diagram of Data Migration in the embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the specific management method of distributed data in the embodiment of the present invention;
Fig. 4 changes the flow diagram of the method for corresponding process for a kind of user identifier in the embodiment of the present invention;
Fig. 5 is a kind of flow diagram of the sending method of distributed data in the embodiment of the present invention;
Fig. 6 is a kind of flow diagram of the method for reseptance of distributed data in the embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of the managing device of distributed data in the embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of the reception device of distributed data in the embodiment of the present invention.
Specific implementation mode
An embodiment of the present invention provides a kind of distribution of distributed data and charging method, device, due to will be in system In the average distribution to each process of whole account approximations, make the corresponding number of users approximately equal of each accounting server, it is real Show the reasonable accounting server resource using in system, and realize the load balancing between different charge server, Improve the resource utilization in system.
It is further described with reference to the accompanying drawings of the specification.
As shown in Figure 1, for a kind of management method of distributed data in the embodiment of the present invention, this method includes:
Step 101:Data server receives user data, and corresponding account is determined according to the user identifier in user data Family identifies;
Step 102:Data server determines the process that charging processing is carried out to the user data according to account identification, determines The account identifies corresponding user identifier, records the correspondence of user identifier and process;
Step 103:Data server determines the corresponding accounting server of process, by user data and user identifier with into The correspondence of journey is sent to corresponding accounting server;
Wherein account identification is a sequence number;The process that data server can be run according to whole accounting servers Total quantity is one serial number of each course allocation;Data server obtains the total quantity of the sequence number of account identification divided by process To remainder identify as the account serial number of corresponding process;Data server determines that the process corresponds to according to the serial number of process Accounting server.
Data server determines corresponding account identification according to the user identifier in user data in step 101, specific to wrap It includes:
Data server prestores the correspondence of user identifier and account identification, according to pre-stored user identifier The corresponding account identification of the user identifier in the user data is determined with the correspondence of account identification.If data server determines Pre-stored user identifier account identification corresponding with the user identifier is not stored in the correspondence of account identification, then data Server generates a sequence number at random, using the sequence number as the corresponding account identification of the user identifier.
Uniquely a corresponding account identification, each account identification correspond at least one user's mark to wherein each user identifier Know.User identifier is the unique corresponding mark of each terminal, and such as corresponding telephone number of a terminal can serve as one A user identifier;Data server can be that a user identifier generates an account identification.One account identification can also be right Multiple user identifiers are answered, such as the employee of a company, the terminal-pair of each employee answer a user identifier, all employees' The corresponding whole user identifiers of whole user terminals correspond to the same account identification.
Preferably, further including in step 101:Data server changes the corresponding account identification of user identifier, really Determine the account identification after the corresponding change of user identifier, the correspondence of storage user identifier and the account identification after change;Number The entry-into-force time of user identifier and the correspondence of the account identification after change is determined according to server;Before the received letter of acceptance time, number Determine that user identifier corresponds to account identification before changing according to server;Received letter of acceptance time, data server determine user identifier Account identification after corresponding change.
When data server changes user identifier corresponding account identification, after concurrently setting user identifier and changing Account identification correspondence entry-into-force time and user identifier and the correspondence of account identification before changing failure Time, out-of-service time are slightly later than the entry-into-force time;Before the received letter of acceptance time, data server determines that user identifier corresponds to before changing Account identification;After the received letter of acceptance time, data server determines that user identifier corresponds to the account identification after change, and by user Data are sent to the process corresponding with account identification after change of the corresponding process of account identification before changing simultaneously;When reaching failure Between after, data server determine user identifier correspond to change after account identification, and by user data be only sent to change after The corresponding process of account identification.
Data server determines the process that charging processing is carried out to the user data according to account identification in step 102, really Determine the corresponding user identifier of account mark, records the correspondence of user identifier and process, specifically include:Data server is true Determine in system the total quantity N for the process that whole accounting servers can be run, and be one serial number of each course allocation, serial number from 0~N-1, wherein N are positive integer;Data server determines the sequence number of account identification, by the sequence number of account identification divided by into The total quantity N of journey obtains a remainder, and corresponding process is identified using obtained remainder as the account, true according to the number of process Fixed corresponding accounting server.If there is 5 accounting servers in system, share 57 processes, No. 1 accounting server into program Number from 0~11, No. 2 accounting server into program number from 12~23, No. 3 accounting servers into program number from 24~35, No. 4 Accounting server into program number from 36~47, No. 5 accounting servers into program number from 48~57, when an account identification pair The remainder that should be obtained is 15, it is determined that the account identifies the serial number 15 of corresponding process, and the process of serial number 15 is located at No. 2 meters Take in server, then it is No. 2 servers that the account, which identifies corresponding accounting server,;Corresponding user's mark is identified according to the account Know, the record account identifies corresponding user identifier and the correspondence into program number.Run in each accounting server into The quantity of journey can be it is identical can not also be identical.The quantity for the process that each accounting server can be run is more, charging system The dilatancy of system is also better, but the processing capacity of each accounting server is limited, therefore, the process of each server operation Quantity determined according to the quantity of active user and the processing capacity of charge processor.
Use preferable in the embodiment of the present invention determines the corresponding process of each account identification except method of residues, other can be incited somebody to action The method of account identification mean allocation to each process is also applied for the present invention, will not enumerate herein.
Further include in step 102:After user identifier changes corresponding account identification, user's mark is updated according to account identification Know corresponding process, and while the correspondence of user identifier and the account identification after change comes into force, triggers newer use Family is identified comes into force with the correspondence of process;And when the correspondence of user identifier and account identification before changing is reached and is failed Between, the correspondence of user identifier and process before triggering update fails;Determine the use in the corresponding former process of user identifier Family identifies corresponding user data and is all disposed, by the corresponding migration of subscriber data of user identifier in former process to update In process afterwards.
Further include in step 102:Data server determines that the quantity of accounting server changes, and redefines whole meters The total quantity for the process that expense server can be run, is again each course allocation serial number;Data server is by account identification The total quantity of sequence number divided by the process redefined obtains a remainder, using the remainder as the corresponding update of account identification after Process serial number;Data server determines the corresponding accounting server of the process according to the serial number of updated process.Data Server will be in the Data Migration in the process before the corresponding update of account identification to the corresponding updated process of account identification.
It is illustrated in figure 2 the schematic diagram of Data Migration in the embodiment of the present invention, wherein 21 be the corresponding change of user identifier The memory space of the corresponding user data of user identifier is stored in preceding process, 22 be the process after the corresponding change of user identifier The middle memory space for storing the corresponding user data of user identifier;T0At the time of corresponding process being changed for user identifier, T1For with Family mark comes into force the moment with the process after change, T2For the failure moment of user identifier and process before changing;201 be data Migration prepares window, and 202 be Data Migration window, and 203 be data scrubbing window;T0Time data server receives user's mark Know the information for changing corresponding process, prepares the memory space MDB of process before changing1In the corresponding user of user identifier Data are migrated, and user data is still sent in process before changing by data server at this time;When arrival user identifier With the moment T that comes into force of the process after change1, process before changing is by memory space MDB1In migration of subscriber data to change after Process memory space MDB2In, after user data is sent to process and change before changing by data server simultaneously at this time Process in;As the failure moment T for reaching user identifier and process before changing2, data server only by user data simultaneously It is sent in the process after change, and clears up the memory space MDB of process before changing simultaneously1In user data, complete number According to migration.
As shown in figure 3, for a kind of specific management method of distributed data in the embodiment of the present invention, this method includes:
Step 301:Data server is that user identifier generates a sequence number as account identification at random, stores account mark Know the correspondence with user identifier;
Step 302:Data server determines the total quantity for the process that whole accounting servers can be run, and for each into Journey distributes a serial number;
Step 303:The quantity for the memory space that data server is divided according to each accounting server determines billing of services The total quantity for the memory space that device includes;
Step 304:The remainder that data server obtains the total quantity of the sequence number of account identification divided by process is as this The serial number of the corresponding process of account identification;
Step 305:Data server determines corresponding accounting server according to the serial number of process;
Step 306:Data server determines user identifier and process according to the correspondence of account identification and user identifier Correspondence, and terminate this flow.
As shown in figure 4, for a kind of method that user identifier changes corresponding process in the embodiment of the present invention, this method packet It includes:
Step 401:The user identifier that data server receives changes the information of corresponding account identification;
Step 402:Data server determines the account identification after the corresponding change of user identifier;
Step 403:The entry-into-force time of the account identification after the corresponding change of user identifier, Yi Jiyong is arranged in data server Family identifies the out-of-service time of corresponding account identification before changing;
Step 404:Data server determines the corresponding process of account identification after the corresponding change of user identifier;Storage is used Family is identified in the correspondence of the process after change, and terminates this flow.
As shown in figure 5, for a kind of sending method of distributed data in the embodiment of the present invention, this method includes:
Step 501:Data server receives user data;
Step 502:Data server judges whether the corresponding process of user identifier in the user data changes, if It does not change, thens follow the steps 503, it is no to then follow the steps 504;
Step 503:User data is sent to according to user identifier with the correspondence of process corresponding by data server In process, and terminate this flow;
Step 504:Data server judges whether to reach the entry-into-force time of user identifier and the process after change, if arriving It reaches, thens follow the steps 505, it is no to then follow the steps 506;
Step 505:User data is sent in the process after change by data server, and terminates this flow;
Step 506:User data is sent in process before changing by data server, and terminates this flow.
As shown in fig. 6, for a kind of method of reseptance of distributed data in the embodiment of the present invention, this method includes:
Step 601:Accounting server receives the user data that data server is sent and pair of user identifier and process It should be related to;
Step 602:User data is sent to charging clothes by accounting server according to the correspondence of user identifier and process It is engaged in the corresponding process of device;
Step 603:The process of accounting server determines corresponding charging regulation according to user identifier, according to determining charging Rule carries out charging processing to user data.
Wherein accounting server determines user according to the correspondence of pre-stored user identifier and process in step 602 Identify corresponding process;Accounting server receives the user data of data server transmission and pair of user identifier and process It should be related to, determine the corresponding process of user identifier, user data is sent in corresponding process.
The process of accounting server determines corresponding charging regulation according to user identifier in step 603, according to determining meter Take rule and charging processing is carried out to user data;Whole charging regulations is stored in each process, according to the use received Family identifies, and determines the corresponding charging regulation of the user identifier, and charging processing is carried out to the user data received.
Based on same inventive concept, a kind of managing device of distributed data is additionally provided in the embodiment of the present invention, due to The principle that the device solves the problems, such as is similar to a kind of management method of distributed data of the embodiment of the present invention, therefore the reality of the device The implementation for the method for may refer to is applied, overlaps will not be repeated.
As shown in fig. 7, for a kind of managing device of distributed data in the embodiment of the present invention, which includes:
Account identification determination unit 701, for receiving user data, according to the user identifier determination pair in user data The account identification answered;
User data division unit 702, for according to account identification determine to the user data carry out charging processing into Journey determines that the account identifies corresponding user identifier, records the correspondence of user identifier and process;
User data transmission unit 703 marks user data and user for determining the corresponding accounting server of process Know and is sent to corresponding accounting server with the correspondence of process;
Wherein account identification is a sequence number;User data division unit 702 is additionally operable to:According to whole accounting servers The total quantity for the process that can be run is one serial number of each course allocation;By the sequence number of account identification divided by the process The obtained remainder of total quantity the serial number of corresponding process is identified as the account;Determine that the process corresponds to according to the serial number of process Accounting server.
Account identification determination unit 701 is specifically used for:The correspondence for prestoring user identifier and account identification, according to Pre-stored user identifier and the correspondence of account identification determine the corresponding account mark of the user identifier in the user data Know.If it is determined that pre-stored user identifier account mark corresponding with the user identifier is not stored in the correspondence of account identification Know, then a sequence number is generated at random, using the sequence number as the corresponding account identification of the user identifier.
Uniquely a corresponding account identification, each account identification correspond at least one user's mark to wherein each user identifier Know.User identifier is the unique corresponding mark of each terminal, and such as corresponding telephone number of a terminal can serve as one A user identifier;Data server can be that a user identifier generates an account identification.One account identification can also be right Multiple user identifiers are answered, such as the employee of a company, the terminal-pair of each employee answer a user identifier, all employees' The corresponding whole user identifiers of whole user terminals correspond to the same account identification.
Preferably, account identification determination unit 701 this be used for:The corresponding account identification of user identifier is changed, really Determine the account identification after the corresponding change of user identifier, the correspondence of storage user identifier and the account identification after change;Really Determine the entry-into-force time of user identifier and the correspondence of the account identification after change;Before the received letter of acceptance time, user identifier is determined Corresponding account identification before changing;The received letter of acceptance time determines that user identifier corresponds to the account identification after change.
When being changed to the corresponding account identification of user identifier, user identifier and the account identification after change are concurrently set Correspondence entry-into-force time and user identifier and the correspondence of account identification before changing out-of-service time, failure Time is slightly later than the entry-into-force time;Before the received letter of acceptance time, determine that user identifier corresponds to account identification before changing;Received letter of acceptance After time, determine that user identifier corresponds to the account identification after change, and user data is sent to account mark before changing simultaneously Know corresponding process process corresponding with account identification after change;After reaching the out-of-service time, after determining that user identifier corresponds to change Account identification, and by user data be only sent to change after the corresponding process of account identification.
User data division unit 702 is specifically used for:Data server determines that whole accounting servers can be transported in system The total quantity N of capable process, and be one serial number of each course allocation, for serial number from 0~N-1, wherein N is positive integer;Data take Business device determines the sequence number of account identification, and the total quantity N of the sequence number of account identification divided by process is obtained a remainder, will The remainder arrived identifies corresponding process as the account, and corresponding accounting server is determined according to the number of process.Each charging The quantity of the process run in server can be it is identical can not also be identical.The process that each accounting server can be run Quantity is more, and the dilatancy of charge system is also better, but the processing capacity of each accounting server is limited, therefore, each The quantity of the process of server operation is determined according to the quantity of active user and the processing capacity of charge processor.
Use preferable in the embodiment of the present invention determines the corresponding process of each account identification except method of residues, other can be incited somebody to action The method of account identification mean allocation to each process is also applied for the present invention, will not enumerate herein.
User data division unit 702 is additionally operable to:After user identifier changes corresponding account identification, according to account identification The corresponding process of user identifier is updated, and while the correspondence of user identifier and the account identification after change comes into force, is touched It sends out user identifier newer and the correspondence of process comes into force;It is arrived in the correspondence of user identifier and account identification before changing Up to the out-of-service time, the correspondence of user identifier and process before triggering update fails;Determine the corresponding former process of user identifier In the corresponding user data of the user identifier be all disposed, the corresponding user data of user identifier in former process is moved It moves in updated process.
User data division unit 702 is additionally operable to:It determines that the quantity of accounting server changes, redefines whole meters The total quantity for the process that expense server can be run, is again each course allocation serial number;By the sequence number of account identification divided by The total quantity of the process redefined obtains a remainder, using the remainder as the sequence of the corresponding updated process of account identification Number;The corresponding accounting server of the process is determined according to the serial number of updated process.Before the corresponding update of account identification In Data Migration to the corresponding updated process of account identification in process.
As shown in figure 8, for a kind of reception device of distributed data in the embodiment of the present invention, which includes:
Data receipt unit 801, user data and user identifier and process for receiving data server transmission Correspondence;
Data transmission unit 802, for user data to be sent to charging according to the correspondence of user identifier and process In the corresponding process of server;
Charging processing unit 803, for determining corresponding charging regulation according to user identifier, according to determining charging regulation Charging processing is carried out to user data.
Wherein data transmission unit 802 is specifically used for:Correspondence according to pre-stored user identifier and process is true Determine the corresponding process of user identifier;Receive user data and the user identifier pass corresponding with process of data server transmission System, determines the corresponding process of user identifier, user data is sent in corresponding process.
Charging processing unit 803 is specifically used for:The process of accounting server determines that corresponding charging is advised according to user identifier Then, charging processing is carried out to user data according to determining charging regulation;Whole charging regulations is stored in each process, According to the user identifier received, the corresponding charging regulation of the user identifier is determined, charging is carried out to the user data received Processing.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of management method of distributed data, which is characterized in that this method includes:
Data server receives user data, and corresponding account identification is determined according to the user identifier in user data;
The data server determines the process that charging processing is carried out to the user data according to account identification, determines that the account marks Know corresponding user identifier, records the correspondence of user identifier and process;
The data server determines the corresponding accounting server of the process, by the user data and user identifier with into The correspondence of journey is sent to corresponding accounting server;
The wherein described account identification is a sequence number;The data server according to whole accounting servers can run into The total quantity of journey is one serial number of each course allocation;The data server by the sequence number of account identification divided by it is described into The remainder that the total quantity of journey obtains identifies the serial number of corresponding process as the account;The data server is according to the sequence of process Number determine the corresponding accounting server of the process;
Wherein, include multiple memory spaces in accounting server, one charging procedures of each memory space correspondence.
2. the method as described in claim 1, which is characterized in that the data server is according to the user identifier in user data It determines corresponding account identification, specifically includes:
The data server prestores the correspondence of user identifier and account identification, according to pre-stored user identifier The corresponding account identification of the user identifier in the user data is determined with the correspondence of account identification.
3. method as claimed in claim 2, which is characterized in that this method further includes:
The data server changes the corresponding account identification of the user identifier, determines the corresponding change of user identifier Account identification afterwards, the correspondence of storage user identifier and the account identification after change;
The data server determines the entry-into-force time of user identifier and the correspondence of the account identification after change;Received letter of acceptance Before time, the data server determines that user identifier corresponds to account identification before changing;Received letter of acceptance time, the data clothes Business device determines that user identifier corresponds to the account identification after change.
4. method as claimed in claim 2, which is characterized in that the data server is according to the user identifier in user data It determines corresponding account identification, specifically includes:
The data server, which determines, does not store user mark in the correspondence of pre-stored user identifier and account identification Know corresponding account identification, then the data server generates a sequence number at random, using the sequence number as the user identifier Corresponding account identification.
5. the method as described in claim 1, which is characterized in that this method further includes:
The data server determines that the quantity of accounting server changes, and redefining whole accounting servers can run Process total quantity, be again each course allocation serial number;
The total quantity of the sequence number of account identification divided by the process redefined is obtained a remainder by the data server, will Serial number of the remainder as the corresponding updated process of account identification;The data server is according to the sequence of updated process Number determine the corresponding accounting server of the process.
6. a kind of method of reseptance of distributed data, which is characterized in that this method includes:
Accounting server receives the user data that data server is sent and the correspondence of user identifier and process;Wherein, The data server receives user data, and corresponding account identification, data are determined according to the user identifier in user data Server determines the process that charging processing is carried out to the user data according to account identification, determines that the account identifies corresponding user Mark records the correspondence of user identifier and process, wherein the account identification is a sequence number;The data server It is one serial number of each course allocation according to the total quantity for the process that whole accounting servers can be run;The data service The remainder that the total quantity of the sequence number of account identification divided by the process obtains is identified corresponding process by device as the account Serial number;The data server determines the corresponding accounting server of the process according to the serial number of process;
It is corresponding that user data according to user identifier is sent to accounting server by the accounting server with the correspondence of process Process in;
The process of the accounting server determines corresponding charging regulation according to user identifier, according to determining charging regulation to institute It states user data and carries out charging processing;
Wherein, include multiple memory spaces in accounting server, one charging procedures of each memory space correspondence.
7. a kind of managing device of distributed data, which is characterized in that the device includes:
Account identification determination unit determines corresponding account for receiving user data according to the user identifier in user data Family identifies;
User data division unit is determined for determining the process for carrying out charging processing to the user data according to account identification The account identifies corresponding user identifier, records the correspondence of user identifier and process;
User data transmission unit, for determining the corresponding accounting server of the process, by the user data and user Mark is sent to corresponding accounting server with the correspondence of process;
The wherein described account identification is a sequence number;The user data division unit is additionally operable to:According to whole billing of services The total quantity for the process that device can be run is one serial number of each course allocation;By the sequence number of account identification divided by it is described into The remainder that the total quantity of journey obtains identifies the serial number of corresponding process as the account;The process pair is determined according to the serial number of process The accounting server answered;
Wherein, include multiple memory spaces in accounting server, one charging procedures of each memory space correspondence.
8. device as claimed in claim 7, which is characterized in that the account identification determination unit is specifically used for:
The correspondence for prestoring user identifier and account identification, according to pair of pre-stored user identifier and account identification It should be related to the corresponding account identification of user identifier determined in the user data.
9. device as claimed in claim 8, which is characterized in that the account identification determination unit is additionally operable to:
The corresponding account identification of the user identifier is changed, determines the account identification after the corresponding change of user identifier, Store the correspondence of user identifier and the account identification after change;Determine that user identifier is corresponding with the account identification after change The entry-into-force time of relationship;Before the received letter of acceptance time, determine that user identifier corresponds to account identification before changing;The received letter of acceptance time, Determine that user identifier corresponds to the account identification after change.
10. device as claimed in claim 8, which is characterized in that the account identification determination unit is specifically used for:
Determine pre-stored user identifier account mark corresponding with the user identifier is not stored in the correspondence of account identification Know, then a sequence number is generated at random, using the sequence number as the corresponding account identification of the user identifier.
11. device as claimed in claim 7, which is characterized in that the user data division unit is additionally operable to:
It determines that the quantity of accounting server changes, redefines the sum for the process that whole accounting servers can be run Amount, is again each course allocation serial number;The total quantity of the sequence number of account identification divided by the process redefined is obtained one A remainder, using the remainder as the serial number of the corresponding updated process of account identification;Serial number according to updated process is true The corresponding accounting server of the fixed process.
12. a kind of reception device of distributed data, which is characterized in that the device includes:
Data receipt unit, user data and the user identifier pass corresponding with process for receiving data server transmission System;Wherein, the data server receives user data, and corresponding account mark is determined according to the user identifier in user data Know, data server determines the process that charging processing is carried out to the user data according to account identification, determines account mark pair The user identifier answered records the correspondence of user identifier and process, wherein the account identification is a sequence number;The number It is one serial number of each course allocation according to the total quantity for the process that server can be run according to whole accounting servers;It is described The remainder that data server obtains the total quantity of the sequence number of account identification divided by the process is identified as the account and is corresponded to Process serial number;The data server determines the corresponding accounting server of the process according to the serial number of process;
Data transmission unit, for user data to be sent to accounting server pair according to the correspondence of user identifier and process In the process answered;
Charging processing unit, for determining corresponding charging regulation according to user identifier, according to determining charging regulation to described User data carries out charging processing;
Wherein, include multiple memory spaces in accounting server, one charging procedures of each memory space correspondence.
CN201310705903.5A 2013-12-19 2013-12-19 A kind of management of distributed data and method of reseptance, device Active CN104735103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310705903.5A CN104735103B (en) 2013-12-19 2013-12-19 A kind of management of distributed data and method of reseptance, device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310705903.5A CN104735103B (en) 2013-12-19 2013-12-19 A kind of management of distributed data and method of reseptance, device

Publications (2)

Publication Number Publication Date
CN104735103A CN104735103A (en) 2015-06-24
CN104735103B true CN104735103B (en) 2018-08-28

Family

ID=53458536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310705903.5A Active CN104735103B (en) 2013-12-19 2013-12-19 A kind of management of distributed data and method of reseptance, device

Country Status (1)

Country Link
CN (1) CN104735103B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547758B (en) * 2015-09-17 2021-02-02 创新先进技术有限公司 Data binning method and device
CN107959697B (en) * 2016-10-17 2019-12-06 腾讯科技(深圳)有限公司 Source data acquisition method and system in big data offline calculation
CN106941532B (en) * 2017-03-30 2019-07-12 北京奇艺世纪科技有限公司 A kind of data transmission method and device applied to distributed system
CN107818170B (en) * 2017-11-14 2021-09-28 北京思特奇信息技术股份有限公司 Method and system for accessing database records
CN111064586B (en) * 2020-03-16 2020-06-12 成都吉胜科技有限责任公司 Distributed parallel charging method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296092A (en) * 2007-04-26 2008-10-29 华为技术有限公司 User service data charging method, system and equipment
CN101384015A (en) * 2008-09-28 2009-03-11 华为技术有限公司 Distributed telecommunication apparatus and service processing method for distributed telecommunication apparatus
CN102201922A (en) * 2010-03-22 2011-09-28 阿里巴巴集团控股有限公司 Data charging method and relevant apparatus
CN102238012A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Charging method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101843034B (en) * 2007-10-30 2013-04-03 朗讯科技公司 Method, apparatus and system for supporting distributed IMS charging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296092A (en) * 2007-04-26 2008-10-29 华为技术有限公司 User service data charging method, system and equipment
CN101384015A (en) * 2008-09-28 2009-03-11 华为技术有限公司 Distributed telecommunication apparatus and service processing method for distributed telecommunication apparatus
CN102201922A (en) * 2010-03-22 2011-09-28 阿里巴巴集团控股有限公司 Data charging method and relevant apparatus
CN102238012A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Charging method and system

Also Published As

Publication number Publication date
CN104735103A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
US20220141110A1 (en) Managing data transfers over network connections based on priority and a data usage plan
CN104735103B (en) A kind of management of distributed data and method of reseptance, device
CN111669719B (en) Method, system and related equipment for carrying out charging processing on network slice client
CN102984783B (en) Method and apparatus for controlling terminal's access to wireless network
CN106209402A (en) The telescopic method of a kind of virtual network function and equipment
CN103095853A (en) Cloud data center calculation capacity management system
CN102195851A (en) Load sharing method, system and access server
US8775627B2 (en) Discontinuous access management method using waiting ticket for resource allocation control, waiting ticket management method, and resource allocation control method
CN112465615B (en) Method, device and system for processing bill data
CN109040970A (en) Method and terminal device are handled in plan of operation based on cloud computing
CN108810971A (en) Internet of things data transmission method, internet-of-things terminal and computer readable storage medium
CN108696571A (en) Cloud storage service system, method, cloud service smart machine and electronic device
CN108401231A (en) A kind of charging method, device and system
CN106341787A (en) Vehicle reservation dispatching system and method
CN107172126A (en) A kind of domain name system server distribution method and server
CN101795302A (en) Method and system for identifying group users
CN110460486A (en) The monitoring method and system of service node
US8538448B2 (en) Round robin assignment based communication system
CN108809668A (en) A kind of authentication method, device and access device
CN110278226A (en) Load balance process method, apparatus and electronic equipment
CN110708165B (en) Multi-CA automatic scheduling method based on request response
CN110851512B (en) Data configuration method and device for open source framework
CN103401806B (en) Message processing method and device
CN108347403B (en) Method and device for distributing intermediate communication identification
CN101815273B (en) Communication support method and system based on number portability

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant