CN1407754A - Charging marker generating method in radio data communication system - Google Patents

Charging marker generating method in radio data communication system Download PDF

Info

Publication number
CN1407754A
CN1407754A CN 01131410 CN01131410A CN1407754A CN 1407754 A CN1407754 A CN 1407754A CN 01131410 CN01131410 CN 01131410 CN 01131410 A CN01131410 A CN 01131410A CN 1407754 A CN1407754 A CN 1407754A
Authority
CN
China
Prior art keywords
charging identifier
data communication
wireless data
charging
generation method
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
CN 01131410
Other languages
Chinese (zh)
Other versions
CN1194501C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 01131410 priority Critical patent/CN1194501C/en
Publication of CN1407754A publication Critical patent/CN1407754A/en
Application granted granted Critical
Publication of CN1194501C publication Critical patent/CN1194501C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Meter Arrangements (AREA)

Abstract

A method for generating charge labels in wireless data communication system is carried out by producing only one label for each actuated context, which cannot be duplicated in a quite long time. It includes reading out the present value as the n higher digits of reference, adding one when a system resets once, taking the present value of change label counter and adding one onto it as the m-n lower digits, counting after system returns to zero, combinating the higher n digits with the lower m-n digits as the charge label of the present actuated context.

Description

The generation method of charging identifier in the wireless data communication system
Technical field
The present invention relates to technology relevant in the wireless data communication system with charging, in general packet radio service (GPRS) business of mobile communications network, for charging gateway (CG) and charging center provide a kind of simply, the generation method of charging identifier (Charge ID) efficiently.
Background technology
In general packet radio service (GPRS) business and Wideband Code Division Multiple Access (WCDMA) (WCDMA) network, need charge for each context, context is used for the activation in user's online, the record user is transmitted required necessary information of data and charging identifier information such as (Charge ID), and charging identifier wherein provides to accounting module as rates ground.A user may have a plurality of contexts and be activated, a charging identifier identifies a context uniquely, therefore charging gateway (CG) and charging center requirement charging identifier can not repeat in a period of time, so that accurately, reliably each user is chargeed.
Charging identifier is normally generated by GGSN (GGSN) equipment, and the charging identifier that just requires to be generated by GGSN must not repeat in a period of time.
The method of existing generation charging identifier roughly has following three kinds:
1. direct summation, directly generate by counter, context of every activation, counter is carried out the one-accumulate operation, will be through the charging identifier of the Counter Value after the operation that adds up as current context, the great advantage of this method is simple, but when system reset (taking place at random), specifically can be that the veneer of preserving the charging identifier counter is when resetting, the counter that then the generates charging identifier New count of laying equal stress on that also can reset, thus can not satisfy the requirement that in a period of time, can not repeat to charging identifier;
2. the timing time according to system clock distributes generation, the time of the system clock when being about to current activation context though this method can solve the defective of first method, requires time precision must be accurate to millisecond as charging identifier, otherwise, if activated a plurality of contexts in 1 second, the charging identifier of a plurality of repetitions will occur, in addition, after the system reset, if the Adjustment System time (fact proved that this situation often takes place), also might cause the repetition of charging identifier this moment;
3. the method that adds up and combine with side-play amount, use for reference first kind of accumulation method, add up at system's run duration and distribute to generate, and periodically current count value is write in the flash memory (Flash), when situation that generation systems resets, then take out the charging identifier count value that is kept among the Flash, add then after the predetermined side-play amount as the follow-up fiducial value that adds up, periodically count value is write in the flash memory again, read during for next system reset, thereby solved the defective of first method, but between the time interval (timing) of this method requirement preservation (writing) current count value and the side-play amount corresponding relation must be arranged, because if side-play amount is too little, then the context number that activates again behind the last preservation charging identifier before the system reset situation that charging identifier repeats will occur greater than side-play amount; And if side-play amount is too big, charging identifier again can very fast backrush; And, can influence system effectiveness because the count value that need periodically preserve charging identifier is write Flash continually.
More than the same problem of three kinds of methods all be the resolution system influence that resets the charging identifier uniqueness is brought well, the efficient of charging identifier generation method is not high in other words.
Summary of the invention
The objective of the invention is to design the generation method of charging identifier in a kind of wireless data communication system, be used to improve direct summation, according to the timing time apportion design of system clock and the defective of the method that combines with side-play amount that adds up, the generation method of designed charging identifier should be simply, efficiently, can satisfy the requirement of charging center or charging gateway, the problem that charging identifier repeats promptly can not take place in the quite a long time.
The technical scheme that realizes the object of the invention is such: the generation method of charging identifier in a kind of wireless data communication system is characterized in that comprising following treatment step:
A. read currency in the memory as the high n position of charging identifier;
B. the value with current charging identifier counter adds the low m-n position of 1 back as charging identifier;
C. make up the charging identifier of the low m-n position of the high n position of charging identifier and charging identifier as current activation message.
Currency in the described memory is a fiducial value when resetting in system.
Currency in the described memory is 1 the value of adding up after the every generation of system once resets that begins from fiducial value.
Described charging identifier counter counts from zero after system resets.
Currency in the described memory is in system reset 2 nBackrush takes place in inferior back.
Currency in the described memory is to utilize the reset counter of an initial value for fiducial value, adds 1 value of operating again in the write memory after each system reset.
The resource number of described charging identifier is 2 M-nIndividual, m, n are positive integer.
Described n is smaller or equal to 8.
Described m is 32, and described n is 4.
The present invention adopts the high n position (n be generally less than equal 8) of the reset count of system as charging identifier (as 32), can effectively prevent from like this to cause the charging identifier problem of backrush at short notice after the system reset.
The beneficial effect of the inventive method is: realization is simple and efficient is high.Can effectively solve in the background technology in the direct summation defective of the rapid backrush of charging identifier after the board resetting; Can effectively solve in the background technology and divide timing, because of revising the charging identifier backrush problem that system clock causes according to system clock; And because the inventive method is is only just read and write primary memory when system reset, and do not resemble add up in the background technology with the side-play amount associated methods in, need periodically read-write memory, thereby improved efficient.
For example, under certain system specification, charging identifier resource number has 2 M-nIndividual, at m=32, n=4, the context number that system's per second activates is 50 o'clock, the time rewind of charging identifier is about 62 days.
Description of drawings
Fig. 1 is the structural representation by a kind of charging identifier of the inventive method enforcement.
Embodiment
The inventive method is to preserve a fiducial value in a nonvolatile memory (FLASH), and every generation primary system adds 1 when restarting, and then writes among the FLASH, reads when generation systems resets next time.Therefore, in the running when this fiducial value resets in system, remain unchanged, but increase progressively by 1 along with the system reset number of times, form the reset count value, promptly the reset count value is a global variable.When generating charging identifier, be that (broom is in real system as the high n position of 32 charging identifier with fiducial value (when generation systems does not reset) or reset count value (generation systems reset back), n=4), the low 32-n position of charging identifier is then adopted from zero adding up and is distributed the way that generates.The charging identifier that is generated is exactly high n position and the combining of 32-n position.
Specific algorithm is as follows:
Chargeld=(g_RestartCounter<<28)/g_ChargeldCounter&0x0fffffff):g_ChargeldCounter++;
Wherein, ChargeId represents the charging identifier of current generation;
G_RestartCounter is global variable, adds from fiducial value accumulative total when resetting each time in system to be kept at the Flash reset count value that reads when resetting once more for system after 1;
G_ChargeIdCounter is a global variable, at system's normal operation period, adds the 1 low level charging identifier count value that generates by accumulative total, counts from zero after resetting;
When generating charging identifier, high 4 with g_RestartCounter so for the charging identifier of this generation, the g_ChargeIdCounter that adds up after each the generation is low 28 of charging identifier, has so just generated new charging identifier.
As shown in fig. 1,32 charging identifier, add up after system reset in its high n position, and add up at system's normal operation period in its 32-n position.
Can calculate the time that the charging identifier backrush takes place according to above-mentioned generation method, design charges is designated 32, and a high position is the n position.
1. system's normal operation period:
Charging identifier resource number=2 32-n, the context number that the system per second of setting up departments activates is Ns,
The charging identifier time rewind is T ID, T then ID=2 32-n/ Ns (second) (formula 1),
Get n=4, Ns=50, T so ID=5368709.12 (seconds), convert all day long, be approximately 62 days, can satisfy the requirement of present charging center fully.
2. during system's fluctuation of service:
According to method of the present invention, can calculate after system reset 2 times, backrush (if system's frequent recovery within a certain period of time, this system is exactly disabled so) just may take place in charging identifier.
Can release from formula one, (Ns counted in the context that the per second kind can activate) fixes under the General System specification, so it is more little to work as the n value, the charging identifier time rewind is just long more, but also corresponding requirements system more and more stable (when n=0, just identical) with first kind of scheme in the background technology.
Method of the present invention is through using in GGSN product G GSN pilot scale, and obtaining turns round stablizes, charges good result accurately.

Claims (9)

1. the generation method of charging identifier in the wireless data communication system is characterized in that comprising following treatment step:
A. read currency in the memory as the high n position of charging identifier;
B. the value with current charging identifier counter adds the low m-n position of 1 back as charging identifier;
C. make up of the charging of the low m-n position of the high n position of charging identifier and charging identifier as current activation message
Sign.
2. the generation method of charging identifier in a kind of wireless data communication system according to claim 1 is characterized in that: the currency in the described memory is a fiducial value when resetting in system.
3. the generation method of charging identifier in a kind of wireless data communication system according to claim 1 is characterized in that: the currency in the described memory is 1 the value of adding up after the every generation of system once resets that begins from fiducial value.
4. the generation method of charging identifier in a kind of wireless data communication system according to claim 1 is characterized in that: described charging identifier counter counts from zero after system resets.
5. the generation method of charging identifier in a kind of wireless data communication system according to claim 1, it is characterized in that: the currency in the described memory is in system reset 2 nBackrush takes place in inferior back.
6. according to the generation method of charging identifier in claim 1 or the 3 or 5 described a kind of wireless data communication systems, it is characterized in that: the currency in the described memory, be to utilize the reset counter of an initial value, after each system reset, add 1 value of operating again in the write memory for fiducial value.
7. the generation method of charging identifier in a kind of wireless data communication system according to claim 1 is characterized in that: the resource number of described charging identifier is 2 M-nIndividual, m, n are positive integer.
8. according to the generation method of charging identifier in claim 1 or the 7 described a kind of wireless data communication systems, it is characterized in that: described n is smaller or equal to 8.
9. according to the generation method of charging identifier in claim 1 or the 7 described a kind of wireless data communication systems, it is characterized in that: described m is 32, and described n is 4.
CN 01131410 2001-09-07 2001-09-07 Charging marker generating method in radio data communication system Expired - Fee Related CN1194501C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 01131410 CN1194501C (en) 2001-09-07 2001-09-07 Charging marker generating method in radio data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 01131410 CN1194501C (en) 2001-09-07 2001-09-07 Charging marker generating method in radio data communication system

Publications (2)

Publication Number Publication Date
CN1407754A true CN1407754A (en) 2003-04-02
CN1194501C CN1194501C (en) 2005-03-23

Family

ID=4670561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 01131410 Expired - Fee Related CN1194501C (en) 2001-09-07 2001-09-07 Charging marker generating method in radio data communication system

Country Status (1)

Country Link
CN (1) CN1194501C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006047951A1 (en) * 2004-11-04 2006-05-11 Huawei Technologies Co., Ltd. An assigning method of charging identifier of application service

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006047951A1 (en) * 2004-11-04 2006-05-11 Huawei Technologies Co., Ltd. An assigning method of charging identifier of application service

Also Published As

Publication number Publication date
CN1194501C (en) 2005-03-23

Similar Documents

Publication Publication Date Title
US9070463B2 (en) Flash memory module for realizing high reliability
Davidson et al. The displacement effect of reemployment bonus programs
Glasser The age replacement problem
US20100023797A1 (en) Sequencing technique to account for a clock error in a backup system
AU1750700A (en) Accounting and billing based on network use
US20130315259A1 (en) Method and Apparatus for Internal/External Memory Packet and Byte Counting
CN101799788B (en) Level-to-level administration method and system of storage resources
US7525998B2 (en) Feature implementation in a real time stamp distribution system
CN101038541A (en) Method for generating random number
CN1194501C (en) Charging marker generating method in radio data communication system
US20020174260A1 (en) Electronic mail transfer agent with a persistent queue, and related method of operation
AU2002367058A1 (en) Method and system for rapidly projecting and forecasting pharmaceutical market information
CN112559592A (en) Real-time data processing method, device and equipment
CN101729709B (en) Method and device for processing branch ticket
CN109241057B (en) Digital ID generation method for distributed system
CN110955639A (en) Data processing method and device
CN102710502B (en) Network speed-limiting method and device based on time wasting
US20120089627A1 (en) System and methods for performing machine-implemented tasks
US6760764B1 (en) Real time stamp distribution
CN112748858A (en) Method, electronic device and computer program product for managing disk array
Burgdörfer Inverted cusps in electron spectra near zero velocity in an attractive Coulomb field
CN112766469B (en) Method and device for generating pulse signal
US7924908B2 (en) Rake receiver interface
CN106878169B (en) Service routing method and device
CN102158840A (en) Service supporting method and system for 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
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050323

Termination date: 20140907

EXPY Termination of patent right or utility model