CN104735103A - Method and device for managing distributed data and method and device for receiving distributed data - Google Patents

Method and device for managing distributed data and method and device for receiving distributed data Download PDF

Info

Publication number
CN104735103A
CN104735103A CN201310705903.5A CN201310705903A CN104735103A CN 104735103 A CN104735103 A CN 104735103A CN 201310705903 A CN201310705903 A CN 201310705903A CN 104735103 A CN104735103 A CN 104735103A
Authority
CN
China
Prior art keywords
user
account identification
data
sequence number
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.)
Granted
Application number
CN201310705903.5A
Other languages
Chinese (zh)
Other versions
CN104735103B (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 Henan Co Ltd
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 invention relates to the technical field of communication, in particular to a method and device for managing distributed data and a method and device for receiving the distributed data. The method and device for managing the distributed data and the method and device for receiving the distributed data aim at solving the problems that in a distributed charging system in the prior art, as resources of charging servers can not be shared, the use conditions of the resources of the different charging servers are different, and the resources of the charging servers in the charging system can not be efficiently used. According to the method and device for managing the distributed data and the method and device for receiving the distributed data, as serial numbers are determined for user identifications to serve as account identifications, a sequence number is distributed for each process, remainders obtained in the mode that the serial numbers of the account identifications are divided by the total number of the processes capable of running in all the charging servers in the system serve as sequence numbers of the processes corresponding to the account identifications, and all the account identifications are distributed into the processes in an approximately-even mode to enable the numbers of users corresponding to the charging servers are approximately equal, the resources of the charging servers in the system are reasonably used, load balance between the different charging servers is achieved, and the use rate of the resources in the system is increased.

Description

A kind of management of distributed data and method of reseptance, device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of management and method of reseptance, device of distributed data.
Background technology
Along with people's living standard improves constantly, mobile communication subscriber amount is increased sharply year by year, how can the consumption data of process user real-time, more and more receives the concern of operator and user.
In prior art, the mode of charging process is the administrative districts and cities according to division in an administrative province, carries out charging for each city configures an accounting server.After data server receives a user data, judge the institute possession of this user data respective user according to user ID, this user data is sent to the accounting server that user institute possession is corresponding.Multiple memory space is comprised, the corresponding charging procedures of each memory space in the accounting server that user institute possession is corresponding; After receiving a user data, according to user data, accounting server determines that corresponding memory space carries out charging process.When the customer volume in a city is comparatively large, or when user data is more, the occupied rate of resource of the accounting server that this city will be caused corresponding is higher, even occurs the situation of inadequate resource; And the customer volume in other city is less, the utilance of the resource of the accounting server that this city is corresponding is just lower.In existing charge processing method, different accounting servers receives the user data of different cities, and carries out charging, when carrying out charging process according to the charging policy that this city is formulated, need to rely on these data to process, therefore the resource of different charge server cannot be shared.
In the distributed integration system of therefore prior art, because the resource of accounting server cannot be shared, cause the resource utilization of different accounting servers different, cause the accounting server resource in charge system effectively to utilize.
Summary of the invention
The embodiment of the present invention provides a kind of distribution and charging method, device of distributed data, to solve in the distributed integration system of prior art, because the resource of accounting server cannot be shared, cause the resource utilization of different accounting servers different, cause the problem that the accounting server resource in charge system cannot effectively utilize.
Embodiments provide a kind of distribution method of distributed data, the method comprises:
Data server receives user data, determines corresponding account identification according to the user ID in user data;
Described data server determines the process of this user data being carried out to charging process according to account identification, determines the user ID of account mark correspondence, the corresponding relation of record user identifications and process;
Described data server determines the accounting server that described process is corresponding, and described user data and user ID are sent to corresponding accounting server with the corresponding relation of process;
Wherein said account identification is a sequence number; The total quantity of the process that described data server can run according to whole accounting server is each course allocation sequence number; The remainder that the sequence number of account identification obtains divided by the total quantity of described process by described data server is as the sequence number of process corresponding to account mark; Described data server determines according to the sequence number of process the accounting server that this process is corresponding.
By determining that for the user ID of user a sequence number is as account identification in above-described embodiment, for each course allocation sequence number, the remainder that the total quantity of the process can run divided by accounting server whole in system by the sequence number of account number obtains is as the sequence number of process corresponding to account mark; Adopting said method the whole accounts in system to be similar to average is dispensed in each process, make the number of users approximately equal that each accounting server is corresponding, achieve the accounting server resource in Appropriate application system, and the load balancing achieved between different charge server, improve the resource utilization in system.
Further, data server described in the embodiment of the present invention determines corresponding account identification according to the user ID in user data, specifically comprises:
Described data server prestores the corresponding relation of user ID and account identification, the account identification that the user ID determined in this user data according to the user ID prestored and the corresponding relation of account identification is corresponding.
Prestore the corresponding relation of user ID and account identification in above-described embodiment in data server, after receiving user data, determine the account identification that user ID in user data is corresponding.
Also comprise in the embodiment of the present invention:
The account identification that described data server is corresponding to described user ID changes, and determines the account identification after the change that user ID is corresponding, the corresponding relation of the account identification after storing user ID and changing;
The entry-into-force time of the corresponding relation of described data server determination user ID and the account identification after changing; Before the received letter of acceptance time, the corresponding account identification before changing of described data server determination user ID; The received letter of acceptance time, the account identification after described data server determination user ID correspondence changes.
The entry-into-force time of the corresponding relation of data server determination user ID and the account identification after changing in above-described embodiment, determine when to determine the account identification after changing according to user ID according to the entry-into-force time.As user changes corresponding account in this month, data server upgrades the corresponding relation of user ID and account identification at once, but the corresponding relation of the address of original user ID and memory space is still used in this month, the corresponding relation of the account identification after initially using user ID and change next month, the convenient account corresponding to user carries out data monitoring.
Data server described in the embodiment of the present invention determines corresponding account identification according to the user ID in user data, specifically comprises:
Described data server is determined not store account identification corresponding to this user ID in the corresponding relation of user ID and the account identification prestored, then described data server stochastic generation sequence number, using this sequence number as account identification corresponding to this user ID.
In above-described embodiment when user uses this user ID first, data server generates a sequence number as account, so that determine the process of this user data being carried out to charging process according to account identification for it.
The embodiment of the present invention also comprises:
The quantity of described data server determination accounting server changes, and redefines the total quantity of the process that whole accounting server can run, and is each course allocation sequence number again;
The sequence number of account identification is obtained a remainder divided by the total quantity of the process redefined by described data server, using the sequence number of this remainder as the process after renewal corresponding to account identification; Described data server determines according to the sequence number of the process after renewal the accounting server that this process is corresponding.
When after charge system dilatation in above-described embodiment, data server distributes account again according to the total quantity of the process that the accounting server after dilatation can run, and makes the server in the charge system after dilatation realize load balancing.
The embodiment of the present invention additionally provides a kind of method of reseptance of distributed data, and the method comprises:
Accounting server receives the user data of data server transmission and the corresponding relation of user ID and process;
User data is sent in process corresponding to accounting server according to user ID with the corresponding relation of process by described accounting server;
The process of described accounting server determines corresponding charging regulation according to user ID, carries out charging process according to the charging regulation determined to described user data.
In above-described embodiment, accounting server determines the process of carrying out charging process according to the corresponding relation of user ID and process, and process determines according to user ID charging regulation user data being carried out to charging process.Owing to storing whole charging regulations in the process of accounting server, charging process can be carried out according to the user ID of the user data received to user data, avoid accounting server can only carry out charging process problem to the user data of fixed area.
Embodiments provide a kind of management devices of distributed data, this device comprises:
Account identification determining unit, for receiving user data, determines corresponding account identification according to the user ID in user data;
User data division unit, for determining the process of this user data being carried out to charging process according to account identification, determines the user ID of account mark correspondence, the corresponding relation of record user identifications and process;
User data transmitting element, for determining the accounting server that described process is corresponding, is sent to corresponding accounting server by described user data and user ID with the corresponding relation of process;
Wherein said account identification is a sequence number; Described user data division unit also for: according to the total quantity of the process that whole accounting server can run, be each course allocation sequence number; The remainder obtained divided by the total quantity of described process by the sequence number of account identification is as the sequence number of process corresponding to account mark; The accounting server that this process is corresponding is determined according to the sequence number of process.
By determining that for the user ID of user a sequence number is as account identification in above-described embodiment, for each course allocation sequence number, the remainder that the total quantity of the process can run divided by accounting server whole in system by the sequence number of account number obtains is as the sequence number of process corresponding to account mark; Adopting said method the whole accounts in system to be similar to average is dispensed in each process, make the number of users approximately equal that each accounting server is corresponding, achieve the accounting server resource in Appropriate application system, and the load balancing achieved between different charge server, improve the resource utilization in system.
Further, the determining unit of account identification described in the embodiment of the present invention specifically for:
Prestore the corresponding relation of user ID and account identification, the account identification that the user ID determined in this user data according to the user ID prestored and the corresponding relation of account identification is corresponding.
Prestore the corresponding relation of user ID and account identification in above-described embodiment in data server, after receiving user data, determine the account identification that user ID in user data is corresponding.
The determining unit of account identification described in the embodiment of the present invention also for:
The account identification corresponding to described user ID changes, and determines the account identification after the change that user ID is corresponding, the corresponding relation of the account identification after storing user ID and changing; The entry-into-force time of the corresponding relation of the account identification after determining user ID and changing; Before the received letter of acceptance time, determine the corresponding account identification before changing of user ID; The received letter of acceptance time, determine the account identification after the change of user ID correspondence.
The entry-into-force time of the corresponding relation of data server determination user ID and the account identification after changing in above-described embodiment, determine when to determine the account identification after changing according to user ID according to the entry-into-force time.As user changes corresponding account in this month, data server upgrades the corresponding relation of user ID and account identification at once, but the corresponding relation of the address of original user ID and memory space is still used in this month, the corresponding relation of the account identification after initially using user ID and change next month, the convenient account corresponding to user carries out data monitoring.
The determining unit of account identification described in the embodiment of the present invention specifically for:
Determine not store account identification corresponding to this user ID in the corresponding relation of user ID and the account identification prestored, then stochastic generation sequence number, using this sequence number as account identification corresponding to this user ID.
In above-described embodiment when user uses this user ID first, data server generates a sequence number as account, so that determine the process of this user data being carried out to charging process according to account identification for it.
The division unit of user data described in the embodiment of the present invention also for:
Determining that the quantity of accounting server changes, redefine the total quantity of the process that whole accounting server can run, is each course allocation sequence number again; The sequence number of account identification is obtained a remainder divided by the total quantity of the process redefined, using the sequence number of this remainder as the process after renewal corresponding to account identification; Sequence number according to the process after renewal determines the accounting server that this process is corresponding.
When after charge system dilatation in above-described embodiment, data server distributes account again according to the total quantity of the process that the accounting server after dilatation can run, and makes the server in the charge system after dilatation realize load balancing.
The embodiment of the present invention additionally provides a kind of receiving system of distributed data, and this device comprises:
Data receipt unit, for receiving the user data and the corresponding relation of user ID and process that data server sends;
Data transmission unit, for being sent in process corresponding to accounting server with the corresponding relation of process by user data according to user ID;
Charging processing unit, for determining corresponding charging regulation according to user ID, carries out charging process according to the charging regulation determined to described user data.
In above-described embodiment, device determines the process of carrying out charging process according to the corresponding relation of user ID and process, and process determines according to user ID charging regulation user data being carried out to charging process.Owing to storing whole charging regulations in the process of device, charging process can be carried out according to the user ID of the user data received to user data, avoid accounting server can only carry out charging process problem to the user data of fixed area.
By determining that for the user ID of user a sequence number is as account identification in the embodiment of the present invention, for each course allocation sequence number, the remainder that the total quantity of the process can run divided by accounting server whole in system by the sequence number of account number obtains is as the sequence number of process corresponding to account mark; Adopting said method the whole accounts in system to be similar to average is dispensed in each process, make the number of users approximately equal that each accounting server is corresponding, achieve the accounting server resource in Appropriate application system, and the load balancing achieved between different charge server, improve the resource utilization in system.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the management method of a kind 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 the schematic flow sheet of the concrete management method of a kind of distributed data in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet that in the embodiment of the present invention, a kind of user ID changes the method for corresponding process;
Fig. 5 is the schematic flow sheet of the sending method of a kind of distributed data in the embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the method for reseptance of a kind of distributed data in the embodiment of the present invention;
Fig. 7 is the schematic diagram of the management devices of a kind of distributed data in the embodiment of the present invention;
Fig. 8 is the schematic diagram of the receiving system of a kind of distributed data in the embodiment of the present invention.
Embodiment
Embodiments provide a kind of distribution and charging method, device of distributed data, average be dispensed in each process due to the whole accounts in system are similar to, make the number of users approximately equal that each accounting server is corresponding, achieve the accounting server resource in Appropriate application system, and the load balancing achieved between different charge server, improve the resource utilization in system.
Be further described below in conjunction with Figure of description.
As shown in Figure 1, be a kind of in embodiment of the present invention management method of distributed data, the method comprises:
Step 101: data server receives user data, determines corresponding account identification according to the user ID in user data;
Step 102: data server determines the process of this user data being carried out to charging process according to account identification, determines the user ID of account mark correspondence, the corresponding relation of record user identifications and process;
Step 103: the accounting server that data server determination process is corresponding, is sent to corresponding accounting server by user data and user ID with the corresponding relation of process;
Wherein account identification is a sequence number; The total quantity of the process that data server can run according to whole accounting server is each course allocation sequence number; The remainder that the sequence number of account identification obtains divided by the total quantity of process by data server is as the sequence number of process corresponding to account mark; Data server determines according to the sequence number of process the accounting server that this process is corresponding.
In step 101, data server determines corresponding account identification according to the user ID in user data, specifically comprises:
Data server prestores the corresponding relation of user ID and account identification, the account identification that the user ID determined in this user data according to the user ID prestored and the corresponding relation of account identification is corresponding.If data server is determined not store account identification corresponding to this user ID in the corresponding relation of user ID and the account identification prestored, then data server stochastic generation sequence number, using this sequence number as account identification corresponding to this user ID.
The wherein unique corresponding account identification of each user ID, each account identification at least one user ID corresponding.User ID is a mark corresponding to each terminal, and telephone number as corresponding in terminal just can as a user ID; Data server can be that a user ID generates an account identification.Account identification also can corresponding multiple user ID, as the employee of a company, and the corresponding user ID of a terminal of each employee, the corresponding same account identification of whole user ID that whole user terminals of all employees are corresponding.
Preferably, also comprise in step 101: the account identification that data server is corresponding to user ID changes, determine the account identification after the change that user ID is corresponding, the corresponding relation of the account identification after storing user ID and changing; The entry-into-force time of the corresponding relation of data server determination user ID and the account identification after changing; Before the received letter of acceptance time, the corresponding account identification before changing of data server determination user ID; The received letter of acceptance time, the account identification after data server determination user ID correspondence changes.
When the account identification that data server is corresponding to user ID changes, the entry-into-force time of the corresponding relation of the account identification after setting user ID simultaneously and changing, and the out-of-service time of the corresponding relation of user ID and account identification before changing, the out-of-service time is slightly later than the entry-into-force time; When before the received letter of acceptance time, the corresponding account identification before changing of data server determination user ID; After the received letter of acceptance time, the account identification after data server determination user ID correspondence changes, and user data is sent to simultaneously process corresponding to account identification before changing and process that after changing, account identification is corresponding; After arriving the out-of-service time, the account identification after data server determination user ID correspondence changes, and user data is only sent to process corresponding to the account identification after change.
In step 102, data server determines the process of this user data being carried out to charging process according to account identification, determine the user ID of account mark correspondence, the corresponding relation of record user identifications and process, specifically comprise: the total quantity N of the process that whole accounting server can run in data server certainty annuity, and be each course allocation sequence number, sequence number is from 0 ~ N-1, and wherein N is positive integer; The sequence number of data server determination account identification, obtains a remainder by the sequence number of account identification divided by the total quantity N of process, using the remainder that obtains as process corresponding to account mark, determines corresponding accounting server according to the numbering of process.As there being 5 accounting servers in system, have 57 processes, the process sequence number of No. 1 accounting server is from 0 ~ 11, the process sequence number of No. 2 accounting servers is from 12 ~ 23, the process sequence number of No. 3 accounting servers is from 24 ~ 35, the process sequence number of No. 4 accounting servers is from 36 ~ 47, the process sequence number of No. 5 accounting servers is from 48 ~ 57, the remainder obtained when an account identification correspondence is 15, the sequence number then determining process corresponding to account mark is 15, sequence number be 15 process be arranged in No. 2 accounting servers, then the account identifies corresponding accounting server is No. 2 servers, the user ID corresponding according to account mark, the corresponding relation of the user ID that record account mark is corresponding and process sequence number.The quantity of the process run in each accounting server can be identical also can not be identical.The quantity of the process that each accounting server can run is more, the dilatancy of charge system is also better, but the disposal ability of each accounting server is limited, therefore, the quantity of the process of each server operation is determined according to the quantity of active user and the disposal ability of charge processor.
Preferably in the embodiment of the present invention adopt except method of residues determines the process that each account identification is corresponding, account identification mean allocation to the method for each process also can be applicable to the present invention by other, will not enumerate at this.
Also comprise in step 102: after user ID changes corresponding account identification, process corresponding to user ID is upgraded according to account identification, and user ID with change after the corresponding relation of account identification come into force while, the user ID of Trigger update and the corresponding relation of process come into force; And arriving the out-of-service time in user ID and the corresponding relation of account identification before changing, the user ID before Trigger update and the corresponding relation of process lost efficacy; Determine that user data corresponding to this user ID in the former process that user ID is corresponding is all disposed, by migration of subscriber data corresponding for the user ID in former process in the process after upgrading.
Also comprising in step 102: the quantity of data server determination accounting server changes, and redefines the total quantity of the process that whole accounting server can run, is each course allocation sequence number again; The sequence number of account identification is obtained a remainder divided by the total quantity of the process redefined by data server, using the sequence number of this remainder as the process after renewal corresponding to account identification; Data server determines according to the sequence number of the process after renewal the accounting server that this process is corresponding.Data server is by the process after the Data Migration in the process before renewal corresponding for account identification to renewal corresponding to account identification.
Be illustrated in figure 2 the schematic diagram of Data Migration in the embodiment of the present invention, wherein 21 is the memory space storing user data corresponding to user ID in process before changing corresponding to user ID, and 22 is the memory space storing user data corresponding to user ID in the process after change corresponding to user ID; T 0for user ID changes the moment of corresponding process, T 1for coming into force the moment of the process after user ID and change, T 2for user ID and the inefficacy moment of process before changing; 201 is Data Migration preparation window, and 202 is Data Migration window, and 203 is data scrubbing window; T 0time data server receives the information that user ID changes corresponding process, prepares the memory space MDB of process before changing 1in user data corresponding to user ID move, now user data is still sent in process before changing by data server; The moment T that comes into force of the process after arriving user ID and changing 1, process is before changing by memory space MDB 1in migration of subscriber data to the memory space MDB of process after changing 2in, now user data is sent in process before changing and the process after changing by data server simultaneously; When arriving the inefficacy moment T of user ID with process before changing 2, user data is only sent in the process after change by data server simultaneously, and clears up the memory space MDB of process before changing simultaneously 1in user data, complete Data Migration.
As shown in Figure 3, be a kind of in the embodiment of the present invention concrete management method of distributed data, the method comprises:
Step 301: data server be user ID stochastic generation sequence number as account identification, storage accounts mark and the corresponding relation of user ID;
Step 302: data server determines the total quantity of the process that whole accounting server can run, and be each course allocation sequence number;
Step 303: the total quantity of the memory space that the quantity determination accounting server of the memory space that data server divides according to each accounting server comprises;
Step 304: the remainder that the sequence number of account identification obtains divided by the total quantity of process by data server is as the sequence number of process corresponding to account mark;
Step 305: data server determines corresponding accounting server according to the sequence number of process;
Step 306: data server, according to the corresponding relation of account identification and user ID, determines the corresponding relation of user ID and process, and process ends.
As shown in Figure 4, for user ID a kind of in the embodiment of the present invention changes the method for corresponding process, the method comprises:
Step 401: data server receives the information that user ID changes corresponding account identification;
Step 402: the account identification after the change that data server determination user ID is corresponding;
Step 403: data server arranges the entry-into-force time of the account identification after change corresponding to user ID, and the out-of-service time of account identification before changing corresponding to user ID;
Step 404: the process that the account identification after the change that data server determination user ID is corresponding is corresponding; Store the corresponding relation of the process of user ID after changing, and process ends.
As shown in Figure 5, be a kind of in embodiment of the present invention sending method of distributed data, the method comprises:
Step 501: data server receives user data;
Step 502: data server judges whether process corresponding to the user ID in this user data changes, if change, then performs step 503, otherwise performs step 504;
Step 503: user data is sent in corresponding process with the corresponding relation of process according to user ID by data server, and process ends;
Step 504: data server judges whether the entry-into-force time of the process after arriving user ID and changing, if arrive, then performs step 505, otherwise performs step 506;
Step 505: user data is sent in the process after change by data server, and process ends;
Step 506: user data is sent in process before changing by data server, and process ends.
As shown in Figure 6, be a kind of in embodiment of the present invention method of reseptance of distributed data, the method comprises:
Step 601: accounting server receives the user data of data server transmission and the corresponding relation of user ID and process;
Step 602: user data is sent in process corresponding to accounting server according to user ID with the corresponding relation of process by accounting server;
Step 603: the process of accounting server determines corresponding charging regulation according to user ID, carries out charging process according to the charging regulation determined to user data.
The process that wherein in step 602, accounting server is corresponding with the corresponding relation determination user ID of process according to the user ID prestored; Accounting server receives the user data of data server transmission and the corresponding relation of user ID and process, determines the process that user ID is corresponding, is sent to by user data in corresponding process.
In step 603, the process of accounting server determines corresponding charging regulation according to user ID, carries out charging process according to the charging regulation determined to user data; Store whole charging regulations in each process, according to the user ID received, determine to carry out charging process to the user data received by the charging regulation that this user ID is corresponding.
Based on same inventive concept, a kind of management devices of distributed data is additionally provided in the embodiment of the present invention, the principle of dealing with problems due to this device is similar to the management method of a kind of distributed data of the embodiment of the present invention, therefore the enforcement of this device see the enforcement of method, can repeat part and repeats no more.
As shown in Figure 7, be a kind of in embodiment of the present invention management devices of distributed data, this device comprises:
Account identification determining unit 701, for receiving user data, determines corresponding account identification according to the user ID in user data;
User data division unit 702, for determining the process of this user data being carried out to charging process according to account identification, determines the user ID of account mark correspondence, the corresponding relation of record user identifications and process;
User data transmitting element 703, for determining the accounting server that process is corresponding, is sent to corresponding accounting server by user data and user ID with the corresponding relation of process;
Wherein account identification is a sequence number; User data division unit 702 also for: according to the total quantity of the process that whole accounting server can run, be each course allocation sequence number; The remainder obtained divided by the total quantity of described process by the sequence number of account identification is as the sequence number of process corresponding to account mark; The accounting server that this process is corresponding is determined according to the sequence number of process.
Account identification determining unit 701 specifically for the corresponding relation prestoring user ID and account identification, the account identification that the user ID determined in this user data according to the user ID prestored and the corresponding relation of account identification is corresponding.The user ID prestored if determine with do not store account identification corresponding to this user ID in the corresponding relation of account identification, then stochastic generation sequence number, using this sequence number as account identification corresponding to this user ID.
The wherein unique corresponding account identification of each user ID, each account identification at least one user ID corresponding.User ID is a mark corresponding to each terminal, and telephone number as corresponding in terminal just can as a user ID; Data server can be that a user ID generates an account identification.Account identification also can corresponding multiple user ID, as the employee of a company, and the corresponding user ID of a terminal of each employee, the corresponding same account identification of whole user ID that whole user terminals of all employees are corresponding.
Preferably, account identification determining unit 701 this be used for: the account identification corresponding to user ID changes, and determines the account identification after the change that user ID is corresponding, the corresponding relation of account identification after storing user ID and changing; The entry-into-force time of the corresponding relation of the account identification after determining user ID and changing; Before the received letter of acceptance time, determine the corresponding account identification before changing of user ID; The received letter of acceptance time, determine the account identification after the change of user ID correspondence.
When the account identification corresponding to user ID changes, the entry-into-force time of the corresponding relation of the account identification after setting user ID simultaneously and changing, and the out-of-service time of the corresponding relation of user ID and account identification before changing, the out-of-service time is slightly later than the entry-into-force time; When before the received letter of acceptance time, determine the corresponding account identification before changing of user ID; After the received letter of acceptance time, determine user ID correspondence change after account identification, and user data is sent to simultaneously process corresponding to account identification before changing and process that after changing, account identification is corresponding; After arriving the out-of-service time, determine the account identification after the change of user ID correspondence, and user data is only sent to process corresponding to the account identification after change.
User data division unit 702 specifically for the total quantity N of the process that whole accounting server can run in data server certainty annuity, and is each course allocation sequence number, and sequence number is from 0 ~ N-1, and wherein N is positive integer; The sequence number of data server determination account identification, obtains a remainder by the sequence number of account identification divided by the total quantity N of process, using the remainder that obtains as process corresponding to account mark, determines corresponding accounting server according to the numbering of process.The quantity of the process run in each accounting server can be identical also can not be identical.The quantity of the process that each accounting server can run is more, the dilatancy of charge system is also better, but the disposal ability of each accounting server is limited, therefore, the quantity of the process of each server operation is determined according to the quantity of active user and the disposal ability of charge processor.
Preferably in the embodiment of the present invention adopt except method of residues determines the process that each account identification is corresponding, account identification mean allocation to the method for each process also can be applicable to the present invention by other, will not enumerate at this.
User data division unit 702 also for: after user ID changes corresponding account identification, process corresponding to user ID is upgraded according to account identification, and user ID with change after the corresponding relation of account identification come into force while, the user ID of Trigger update and the corresponding relation of process come into force; Arrive the out-of-service time in user ID and the corresponding relation of account identification before changing, the user ID before Trigger update and the corresponding relation of process lost efficacy; Determine that user data corresponding to this user ID in the former process that user ID is corresponding is all disposed, by migration of subscriber data corresponding for the user ID in former process in the process after upgrading.
User data division unit 702 also for: determining that the quantity of accounting server changes, redefine the total quantity of the process that whole accounting server can run, is each course allocation sequence number again; The sequence number of account identification is obtained a remainder divided by the total quantity of the process redefined, using the sequence number of this remainder as the process after renewal corresponding to account identification; Sequence number according to the process after renewal determines the accounting server that this process is corresponding.By in the process after the Data Migration in the process before renewal corresponding for account identification to renewal corresponding to account identification.
As shown in Figure 8, be a kind of in embodiment of the present invention receiving system of distributed data, this device comprises:
Data receipt unit 801, for receiving the user data and the corresponding relation of user ID and process that data server sends;
Data transmission unit 802, for being sent in process corresponding to accounting server with the corresponding relation of process by user data according to user ID;
Charging processing unit 803, for determining corresponding charging regulation according to user ID, carries out charging process according to the charging regulation determined to user data.
Wherein data transmission unit 802 is specifically for the process corresponding with the corresponding relation determination user ID of process according to the user ID prestored; Receive the user data of data server transmission and the corresponding relation of user ID and process, determine the process that user ID is corresponding, user data is sent in corresponding process.
Charging processing unit 803 determines corresponding charging regulation specifically for the process of: accounting server according to user ID, carries out charging process according to the charging regulation determined to user data; Store whole charging regulations in each process, according to the user ID received, determine to carry out charging process to the user data received by the charging regulation that this user ID is corresponding.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. a management method for distributed data, is characterized in that, the method comprises:
Data server receives user data, determines corresponding account identification according to the user ID in user data;
Described data server determines the process of this user data being carried out to charging process according to account identification, determines the user ID of account mark correspondence, the corresponding relation of record user identifications and process;
Described data server determines the accounting server that described process is corresponding, and described user data and user ID are sent to corresponding accounting server with the corresponding relation of process;
Wherein said account identification is a sequence number; The total quantity of the process that described data server can run according to whole accounting server is each course allocation sequence number; The remainder that the sequence number of account identification obtains divided by the total quantity of described process by described data server is as the sequence number of process corresponding to account mark; Described data server determines according to the sequence number of process the accounting server that this process is corresponding.
2. the method for claim 1, is characterized in that, described data server determines corresponding account identification according to the user ID in user data, specifically comprises:
Described data server prestores the corresponding relation of user ID and account identification, the account identification that the user ID determined in this user data according to the user ID prestored and the corresponding relation of account identification is corresponding.
3. method as claimed in claim 2, it is characterized in that, the method also comprises:
The account identification that described data server is corresponding to described user ID changes, and determines the account identification after the change that user ID is corresponding, the corresponding relation of the account identification after storing user ID and changing;
The entry-into-force time of the corresponding relation of described data server determination user ID and the account identification after changing; Before the received letter of acceptance time, the corresponding account identification before changing of described data server determination user ID; The received letter of acceptance time, the account identification after described data server determination user ID correspondence changes.
4. method as claimed in claim 2, is characterized in that, described data server determines corresponding account identification according to the user ID in user data, specifically comprises:
Described data server is determined not store account identification corresponding to this user ID in the corresponding relation of user ID and the account identification prestored, then described data server stochastic generation sequence number, using this sequence number as account identification corresponding to this user ID.
5. the method for claim 1, is characterized in that, the method also comprises:
The quantity of described data server determination accounting server changes, and redefines the total quantity of the process that whole accounting server can run, and is each course allocation sequence number again;
The sequence number of account identification is obtained a remainder divided by the total quantity of the process redefined by described data server, using the sequence number of this remainder as the process after renewal corresponding to account identification; Described data server determines according to the sequence number of the process after renewal the accounting server that this process is corresponding.
6. a method of reseptance for distributed data, is characterized in that, the method comprises:
Accounting server receives the user data of data server transmission and the corresponding relation of user ID and process;
User data is sent in process corresponding to accounting server according to user ID with the corresponding relation of process by described accounting server;
The process of described accounting server determines corresponding charging regulation according to user ID, carries out charging process according to the charging regulation determined to described user data.
7. a management devices for distributed data, is characterized in that, this device comprises:
Account identification determining unit, for receiving user data, determines corresponding account identification according to the user ID in user data;
User data division unit, for determining the process of this user data being carried out to charging process according to account identification, determines the user ID of account mark correspondence, the corresponding relation of record user identifications and process;
User data transmitting element, for determining the accounting server that described process is corresponding, is sent to corresponding accounting server by described user data and user ID with the corresponding relation of process;
Wherein said account identification is a sequence number; Described user data division unit also for: according to the total quantity of the process that whole accounting server can run, be each course allocation sequence number; The remainder obtained divided by the total quantity of described process by the sequence number of account identification is as the sequence number of process corresponding to account mark; The accounting server that this process is corresponding is determined according to the sequence number of process.
8. device as claimed in claim 7, is characterized in that, described account identification determining unit specifically for:
Prestore the corresponding relation of user ID and account identification, the account identification that the user ID determined in this user data according to the user ID prestored and the corresponding relation of account identification is corresponding.
9. device as claimed in claim 8, is characterized in that, described account identification determining unit also for:
The account identification corresponding to described user ID changes, and determines the account identification after the change that user ID is corresponding, the corresponding relation of the account identification after storing user ID and changing; The entry-into-force time of the corresponding relation of the account identification after determining user ID and changing; Before the received letter of acceptance time, determine the corresponding account identification before changing of user ID; The received letter of acceptance time, determine the account identification after the change of user ID correspondence.
10. device as claimed in claim 8, is characterized in that, described account identification determining unit specifically for:
Determine not store account identification corresponding to this user ID in the corresponding relation of user ID and the account identification prestored, then stochastic generation sequence number, using this sequence number as account identification corresponding to this user ID.
11. devices as claimed in claim 7, is characterized in that, described user data division unit also for:
Determining that the quantity of accounting server changes, redefine the total quantity of the process that whole accounting server can run, is each course allocation sequence number again; The sequence number of account identification is obtained a remainder divided by the total quantity of the process redefined, using the sequence number of this remainder as the process after renewal corresponding to account identification; Sequence number according to the process after renewal determines the accounting server that this process is corresponding.
The receiving system of 12. 1 kinds of distributed datas, is characterized in that, this device comprises:
Data receipt unit, for receiving the user data and the corresponding relation of user ID and process that data server sends;
Data transmission unit, for being sent in process corresponding to accounting server with the corresponding relation of process by user data according to user ID;
Charging processing unit, for determining corresponding charging regulation according to user ID, carries out charging process according to the charging regulation determined to described user data.
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 true CN104735103A (en) 2015-06-24
CN104735103B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547758A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 A kind of method and apparatus of data branch mailbox
CN106941532A (en) * 2017-03-30 2017-07-11 北京奇艺世纪科技有限公司 A kind of data transmission method and device applied to distributed system
CN107818170A (en) * 2017-11-14 2018-03-20 北京思特奇信息技术股份有限公司 A kind of method and system for accessing data-base recording
CN107959697A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 Source Data Acquisition method and system in big data off-line calculation
CN111064586A (en) * 2020-03-16 2020-04-24 成都吉胜科技有限责任公司 Distributed parallel charging method

Citations (5)

* 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
US20100248685A1 (en) * 2007-10-30 2010-09-30 Xiangyang Li Method, apparatus and system for supporting distributed ims charging
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

Patent Citations (5)

* 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
US20100248685A1 (en) * 2007-10-30 2010-09-30 Xiangyang Li Method, apparatus and system for supporting distributed ims charging
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547758A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 A kind of method and apparatus of data branch mailbox
CN106547758B (en) * 2015-09-17 2021-02-02 创新先进技术有限公司 Data binning method and device
CN107959697A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 Source Data Acquisition method and system in big data off-line calculation
CN107959697B (en) * 2016-10-17 2019-12-06 腾讯科技(深圳)有限公司 Source data acquisition method and system in big data offline calculation
CN106941532A (en) * 2017-03-30 2017-07-11 北京奇艺世纪科技有限公司 A kind of data transmission method and device applied to distributed system
CN107818170A (en) * 2017-11-14 2018-03-20 北京思特奇信息技术股份有限公司 A kind of method and system for accessing data-base recording
CN107818170B (en) * 2017-11-14 2021-09-28 北京思特奇信息技术股份有限公司 Method and system for accessing database records
CN111064586A (en) * 2020-03-16 2020-04-24 成都吉胜科技有限责任公司 Distributed parallel charging method

Also Published As

Publication number Publication date
CN104735103B (en) 2018-08-28

Similar Documents

Publication Publication Date Title
US20220141110A1 (en) Managing data transfers over network connections based on priority and a data usage plan
CN104735103A (en) Method and device for managing distributed data and method and device for receiving distributed data
CN102984783B (en) Method and apparatus for controlling terminal's access to wireless network
CN102255813B (en) Method, server and system for dispatching group shared traffic
CN108810971A (en) Internet of things data transmission method, internet-of-things terminal and computer readable storage medium
CN112465615B (en) Method, device and system for processing bill data
US20160150396A1 (en) System and method for tracking communications network resources and utilizing non-reusable, obligated network resources to support the communications network resources
KR20110023126A (en) Real time charging system and method for modification control of quality of service and charging
CN109040970A (en) Method and terminal device are handled in plan of operation based on cloud computing
CN104182282A (en) Overload protection system and method for server
CN112395075A (en) Resource processing method and device and resource scheduling system
CN103186853A (en) Mobile payment method, device and system for server side and client side
CN104348928A (en) Method for assigning address resources, management device, request device, and system
CN108401231A (en) A kind of charging method, device and system
CN102316483B (en) A kind of EVDO system ensures the method and device of applied business QoS
CN101594642B (en) Resource allocation method and resource allocation device used for communication network element device
CN101754389A (en) Resource control method, device and system
CN102932838A (en) Method and equipment for short-delay resource management and wireless access network equipment
CN103139925A (en) Upstream data dispatch method used for local thermodynamic equilibrium (LTE) system and device
KR100882940B1 (en) Method and system for managing of communication fee
CN103974224A (en) Credit control method and equipment
CN104052778A (en) Distributed phone bill statistical method, device thereof and system thereof
CN103198404A (en) Phone wallet loss reporting method based on short messages and system thereof
CN103634416A (en) Equipment number management method and platform
US8538448B2 (en) Round robin assignment based communication system

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