CN101420667A - A kind of method of short message gateway processing waiting receipt message - Google Patents

A kind of method of short message gateway processing waiting receipt message Download PDF

Info

Publication number
CN101420667A
CN101420667A CNA2007101241804A CN200710124180A CN101420667A CN 101420667 A CN101420667 A CN 101420667A CN A2007101241804 A CNA2007101241804 A CN A2007101241804A CN 200710124180 A CN200710124180 A CN 200710124180A CN 101420667 A CN101420667 A CN 101420667A
Authority
CN
China
Prior art keywords
receipt
message
storage
internal storage
short message
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
CNA2007101241804A
Other languages
Chinese (zh)
Other versions
CN101420667B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2007101241804A priority Critical patent/CN101420667B/en
Publication of CN101420667A publication Critical patent/CN101420667A/en
Application granted granted Critical
Publication of CN101420667B publication Critical patent/CN101420667B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method of short message gateway processing waiting receipt message, it is arranged on the Short Message Service Gateway, and comprises that step is as follows: when described Short Message Service Gateway started, application had the internal storage of a pre-sizing, and its external memory storage of initialization; Described Short Message Service Gateway receives the note request of upper level network element, and after being forwarded to lower level network element success, and the message of this wait receipt is deposited in the described internal storage; The message of clearing up the part waiting receipt in the described internal storage is saved in the described external memory storage; After described Short Message Service Gateway is received receipt from lower level network element, the corresponding message of inquiry in described internal storage and exterior storage.The inventive method is owing to adopted the mode of classification storage, realization is to the storage and the inquiry of waiting receipt message, realized both having the high-speed of full memory cache, had the big capacity of full external memory storage buffer memory again, had the big capacity characteristics of performance and storage concurrently.

Description

A kind of method of short message gateway processing waiting receipt message
Technical field
The present invention relates to the method that a kind of short message service is handled, specifically, relate to a kind of method of short message gateway processing waiting receipt message.
Background technology
Along with the continuous development of short message service, the note flow constantly increases, and the disposal ability of Short Message Service Gateway is also constantly proposed new requirement.Because note system has adopted storage to transmit and the receipt charging way, so Short Message Service Gateway receiving the note of upper level network element, and after note is forwarded to lower level network element, can not produce ticket at once, returns receipt to upper level network element; Must be behind the receipt of receiving corresponding message transmit status of showing of lower level network element (or success fail), and must find the message of receipt correspondence, could produce ticket, and to upper level network element forwarding receipt.
Short Message Service Gateway is before receiving the receipt of lower level network element like this, message that must the buffer memory waiting receipt.Because receipt just can return from the previous stage network element after 48 hours the latest, therefore it is very huge needing the message buffered amount, thus, buffering and processing method Deng receipt message are very huge to the disposal ability influence of Short Message Service Gateway, also are to improve the problem that the Short Message Service Gateway disposal ability need solve.
Industry has two kinds of receipt processing methods usually at present:
1, the message total caching that will wait receipt is in internal memory, when receipt when lower level network element is returned, directly in internal memory, search its corresponding message, produce ticket, and transmit receipt to upper level network element.The advantage of this method is fastest, can obtain good performance; Shortcoming is the restriction that is subjected to memory size.
As shown in Figure 1, be the schematic flow sheet of message total caching in internal memory that prior art will wait receipt, this Short Message Service Gateway is after receiving the note request that upper level network element sends over, promptly transmit this note request to lower level network element, then with the message stores of waiting receipt in internal storage 110, up to the corresponding receipt of receiving this message from lower level network element; That message of this receipt correspondence of inquiry from described internal storage, and processing such as charge are transmitted this receipt to upper level network element then.
2, the message total caching that will wait receipt is externally in the memory (as file, database), when receipt when lower level network element is returned, its corresponding message of inquiry produces ticket from external memory storage, and transmits receipt to upper level network element.The advantage of this method is, capacity is big, can a large amount of message of buffer memory; Shortcoming is that performance is low, can't satisfy the requirement to several thousand note disposal abilities of Short Message Service Gateway per second.
As shown in Figure 2, it is the message total caching that will the wait receipt schematic flow sheet in the memory externally of prior art, this Short Message Service Gateway is after receiving the note request that upper level network element sends over, promptly transmit this note request to lower level network element, then with the message stores of waiting receipt in external memory storage 120, up to the corresponding receipt of receiving this message from lower level network element; That message of this receipt correspondence of inquiry from described external memory storage, and processing such as charge are transmitted this receipt to upper level network element then.
Obviously, processing speed is fast when using internal storage, but capacity is restricted; And use the external memory storage capacity can use up greatly, but speed ability can not guarantee.
Therefore, there is defective in prior art, has yet to be improved and developed.
Summary of the invention
The method that the purpose of this invention is to provide a kind of short message gateway processing waiting receipt message, the mode that adopts classification to store realizes storage and inquiry to waiting receipt message, takes into account the requirement of Short Message Service Gateway to performance and memory capacity.
Technical scheme of the present invention comprises:
A kind of method of short message gateway processing waiting receipt message, it is arranged on the Short Message Service Gateway, and comprises that step is as follows:
When A, the startup of described Short Message Service Gateway, application has the internal storage of a pre-sizing, and its external memory storage of initialization;
B, described Short Message Service Gateway receive the note request of upper level network element, and after being forwarded to lower level network element success, and the message of this wait receipt is deposited in the described internal storage;
The message of the part waiting receipt in C, the described internal storage of cleaning is saved in the described external memory storage;
After D, described Short Message Service Gateway are received receipt from lower level network element, the corresponding message of inquiry in described internal storage and exterior storage.
Described method wherein, also comprises after the described step D:
E, find the message of receipt correspondence after, produce ticket according to the short message sending status in the receipt, and transmit this receipt to upper level network element.
Described method, wherein, described step D also comprises:,
D1, described Short Message Service Gateway are inquired about corresponding message in internal storage;
If D2 does not find in this internal storage, the message of inquiry return receipt correspondence in the described external memory storage then.
Described method, wherein, described step C also comprises:
Preestablish described internal storage occupancy ratio, when the message stores of waiting receipt reaches this ratio,, be saved in the external memory storage, and from this internal storage, remove depositing the message of internal storage the earliest in.
Described method, wherein, described step C also comprises:
Described Short Message Service Gateway preestablishes maximum storage time, and makes regular check on this internal storage, is saved in the external memory storage depositing the waiting receipt message of this internal storage above this maximum storage time in, and removes from this internal storage.
Described method, wherein, described external memory storage adopts database to realize.
Described method wherein, during from the message of the corresponding waiting receipt of external memory storage inquiry, uses independent database thread to carry out database manipulation among the described step D.
Described method wherein, is used the described message that waits receipt of submeter storage in the described external memory storage.
The method of a kind of short message gateway processing waiting receipt message provided by the present invention, owing to adopted the mode of classification storage, realization is to the storage and the inquiry of waiting receipt message, wherein the first order is an internal storage, the second level is external memory storage, realized both having the high-speed of full memory cache, had the big capacity of full external memory storage buffer memory again, had the big capacity characteristics of performance and storage concurrently.
Description of drawings
Fig. 1 is that the message of prior art waiting receipt all is buffered in running environment flow chart in the internal memory;
Fig. 2 is that the message of prior art waiting receipt all is buffered in running environment flow chart in the database;
Fig. 3 is the running environment flow chart that the message of the inventive method waiting receipt adopts hierarchical cache.
Embodiment
Below in conjunction with accompanying drawing, will describe implementation method of the present invention and handling process in detail.
In the method for short message gateway processing waiting receipt message of the present invention, its corresponding software program comprises data in the management of management to internal storage, external memory storage and the internal storage data synchronization, the parts such as message of memory and external memory storage inquiry waiting receipt internally in the external memory storage at least.
Its specific implementation step comprises as shown in Figure 3:
A, when Short Message Service Gateway system start-up, at first application has a certain size internal storage and initialization external memory storage.
B, Short Message Service Gateway receive the note request message that upper level network element issues, and transmit this note request to lower level network element, after the success, the message of this wait receipt are preserved in the internal storage of applying in the steps A.
If this internal storage occupancy has reached certain proportion, the waiting receipt message that then will deposit this internal storage earlier the earliest in is saved in the external memory storage, and remove in the memory internally, can be stored in the internal storage once more to guarantee these waiting receipt message.
C, described Short Message Service Gateway system make regular check on its internal storage, with depositing the waiting receipt message that internal storage has surpassed certain hour in, are saved in the external memory storage, and remove in the memory internally; The message that its access time does not surpass the fixed time then continues to be retained in the internal storage;
After corresponding receipt is received from lower level network element by D, described Short Message Service Gateway system, the message of inquiry return receipt correspondence in described internal storage at first; If in this internal storage, do not find the message of receipt correspondence, then in external memory storage, continue the pairing message of inquiry return receipt, up to finding.Find after the message of receipt correspondence, produce ticket, and transmit this receipt to upper level network element according to the short message sending status in the receipt.Finish whole short message service process.
Following external memory storage is an example to adopt database, and it is as follows to specify step:
Step 1: initialization.According to the Design Treatment ability of Short Message Service Gateway and the statistical law of lower level network element receipt message time-delay return time, the capacity of definite internal storage that need distribute and the maximum storage time of the medium receipt message of internal storage; The affirmation principle of internal storage capacity is, message buffering as much as possible in internal storage, can directly be found in internal memory such as the receipt message that waits that guarantees 80%, takes into account the total capacity restriction of internal storage simultaneously.According to the internal storage capacity allocation internal storage of determining with internal storage clearance time T0 is set, set up database and connect.
Step 2: Short Message Service Gateway system forwards short message arrives after the lower level network element success, with the waiting receipt message stores of correspondence in the middle of internal storage, if the occupancy of internal storage reaches certain ratio, then will remove in the memory internally, and be saved in the middle of the database above the message of occupancy.Occupancy can be configured according to the system configuration situation herein, under the extreme case, can only keep the free space that can store a piece of news.
Step 3: system regularly carries out the internal storage cleaning operation, when the message of finding to have waiting receipt has surpassed the maximum storage time T0 that sets in advance the memory time in internal storage, then will remove in the memory internally, and be saved in the middle of the database above the message of memory time.
Step 4: after receipt is received from lower level network element by system, the message of inquiry return receipt correspondence in internal storage at first; If do not find corresponding message in the internal storage, the message of inquiry return receipt correspondence in the database then.Find after the corresponding message, produce ticket, and transmit this receipt to upper level network element according to the short message sending status in the receipt.Finish the note handling process.
In above step 2, step 3, the step 4, system can improve access of database efficient in the following way in access time during the storehouse:
Use independent database thread to carry out database manipulation, when the message that waits receipt need be put in storage and need be inquired about from database, all give independent database thread to finish, block the Business Processing thread to prevent accessing database; After the message that inquires the receipt correspondence, the Business Processing thread is finished follow-up call list again, transmits the operation of receipt.
The described message of receipt that waits is used the submeter storage in database, promptly according to specific branch surface condition such as subscriber directory number, the submeter number is got surplus, the message of receipt such as grade is kept in the different database tables, can improve the turnover efficient of database like this.
The inventive method is owing to adopted the scheme of above-mentioned employing classification storage, realization is to the storage and the inquiry of waiting receipt message, the message stores and the inquiry that have realized reciprocity receipt the time had both had the high-speed of full memory cache, the big capacity that has full external memory storage buffer memory again has the big capacity characteristics of performance and storage concurrently.
Should be understood that illustrating of above-mentioned each concrete steps is comparatively detailed, can not therefore think the restriction to scope of patent protection of the present invention, scope of patent protection of the present invention should be as the criterion with claims.

Claims (8)

1, a kind of method of short message gateway processing waiting receipt message, it is arranged on the Short Message Service Gateway, and comprises that step is as follows:
When A, the startup of described Short Message Service Gateway, application has the internal storage of a pre-sizing, and its external memory storage of initialization;
B, described Short Message Service Gateway receive the note request of upper level network element, and after being forwarded to lower level network element success, and the message of this wait receipt is deposited in the described internal storage;
The message of the part waiting receipt in C, the described internal storage of cleaning is saved in the described external memory storage;
After D, described Short Message Service Gateway are received receipt from lower level network element, the corresponding message of inquiry in described internal storage and exterior storage.
2, method according to claim 1 is characterized in that, also comprises after the described step D:
E, find the message of receipt correspondence after, produce ticket according to the short message sending status in the receipt, and transmit this receipt to upper level network element.
3, method according to claim 2 is characterized in that, described step D also comprises:,
D1, described Short Message Service Gateway are inquired about corresponding message in internal storage;
If D2 does not find in this internal storage, the message of inquiry return receipt correspondence in the described external memory storage then.
4, method according to claim 3 is characterized in that, described step C also comprises:
Preestablish described internal storage occupancy ratio, when the message stores of waiting receipt reaches this ratio,, be saved in the external memory storage, and from this internal storage, remove depositing the message of internal storage the earliest in.
5, method according to claim 3 is characterized in that, described step C also comprises:
Described Short Message Service Gateway preestablishes maximum storage time, and makes regular check on this internal storage, is saved in the external memory storage depositing the waiting receipt message of this internal storage above this maximum storage time in, and removes from this internal storage.
According to the arbitrary described method of claim 1 to 5, it is characterized in that 6, described external memory storage adopts database to realize.
7, method according to claim 6 is characterized in that, during from the message of the corresponding waiting receipt of external memory storage inquiry, uses independent database thread to carry out database manipulation among the described step D.
8, method according to claim 7 is characterized in that, uses the described message that waits receipt of submeter storage in the described external memory storage.
CN2007101241804A 2007-10-24 2007-10-24 Method for short message gateway processing waiting receipt message Expired - Fee Related CN101420667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101241804A CN101420667B (en) 2007-10-24 2007-10-24 Method for short message gateway processing waiting receipt message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101241804A CN101420667B (en) 2007-10-24 2007-10-24 Method for short message gateway processing waiting receipt message

Publications (2)

Publication Number Publication Date
CN101420667A true CN101420667A (en) 2009-04-29
CN101420667B CN101420667B (en) 2012-07-04

Family

ID=40631214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101241804A Expired - Fee Related CN101420667B (en) 2007-10-24 2007-10-24 Method for short message gateway processing waiting receipt message

Country Status (1)

Country Link
CN (1) CN101420667B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959153A (en) * 2009-07-20 2011-01-26 中兴通讯股份有限公司 Method and system for monitoring receipt return condition of data traffic system
CN102469582A (en) * 2010-11-01 2012-05-23 普天信息技术研究院有限公司 Method and device for paging called user equipment
CN103051515A (en) * 2011-10-17 2013-04-17 多玩娱乐信息技术(北京)有限公司 Method and system for obtaining instant message state information
CN106921712A (en) * 2015-12-28 2017-07-04 阿里巴巴集团控股有限公司 A kind of method for processing business and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI109511B (en) * 1997-06-03 2002-08-15 Nokia Corp Short message routing
GB2350973A (en) * 1999-06-11 2000-12-13 Nokia Mobile Phones Ltd Simultaneously fetching page content and link content in a mobile web browser
CN100562147C (en) * 2006-08-15 2009-11-18 华为技术有限公司 A kind of message forwarding method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959153A (en) * 2009-07-20 2011-01-26 中兴通讯股份有限公司 Method and system for monitoring receipt return condition of data traffic system
WO2011009337A1 (en) * 2009-07-20 2011-01-27 中兴通讯股份有限公司 Method and monitoring system for monitoring data service system
CN102469582A (en) * 2010-11-01 2012-05-23 普天信息技术研究院有限公司 Method and device for paging called user equipment
CN102469582B (en) * 2010-11-01 2014-07-16 普天信息技术研究院有限公司 Method and device for paging called user equipment
CN103051515A (en) * 2011-10-17 2013-04-17 多玩娱乐信息技术(北京)有限公司 Method and system for obtaining instant message state information
CN103051515B (en) * 2011-10-17 2015-12-09 多玩娱乐信息技术(北京)有限公司 A kind of method and system obtaining instant message state information
CN106921712A (en) * 2015-12-28 2017-07-04 阿里巴巴集团控股有限公司 A kind of method for processing business and device
CN106921712B (en) * 2015-12-28 2020-07-03 阿里巴巴集团控股有限公司 Service processing method and device

Also Published As

Publication number Publication date
CN101420667B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN110113420B (en) NVM-based distributed message queue management system
CN101488928B (en) Internet enterprise group communication device and internet enterprise group communication method
US6505241B2 (en) Network intermediate node cache serving as proxy to client node to request missing data from server
CN107231395A (en) Date storage method, device and system
CN100530195C (en) File reading system and method of distributed file systems
CN107888657A (en) Low latency distributed memory system
CN101227379B (en) Method and system for implementation of data synchronization
CN102063406B (en) Network shared Cache for multi-core processor and directory control method thereof
CN101986284B (en) Dynamic recovery system for waste space of virtual machine image file
CN105184540A (en) Intelligent express delivery cabinet system control method
CN102339283A (en) Access control method for cluster file system and cluster node
CN101706817B (en) Distributed file system and garbage data cleaning method thereof
CN101420667B (en) Method for short message gateway processing waiting receipt message
CN101635741B (en) Method and system thereof for inquiring recourses in distributed network
CN102281332A (en) Distributed cache array and data updating method thereof
CN105578426A (en) Communication information transmitting method and communication information transmitting device
CN107870982A (en) Data processing method, system and computer-readable recording medium
CN103761255A (en) Method and system for optimizing data storage of NoSQL mode
CN102025512B (en) Service operation support system, service fulfillment method and device
CN101855839B (en) Method for doubly backing up files asynchronously
CN101547414B (en) Short message billing system and method
CN106776798A (en) A kind of cluster file system is client-based to propagate caching method
CN101068375A (en) System, platform and method for realizing short message value-added service
CN103441865A (en) Method and system for managing IP addresses, BRASes and Portal server
CN101004741A (en) Modified hash method, and application

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20161024