CN102752847A - Method and device for processing networking application - Google Patents
Method and device for processing networking application Download PDFInfo
- Publication number
- CN102752847A CN102752847A CN2011100977588A CN201110097758A CN102752847A CN 102752847 A CN102752847 A CN 102752847A CN 2011100977588 A CN2011100977588 A CN 2011100977588A CN 201110097758 A CN201110097758 A CN 201110097758A CN 102752847 A CN102752847 A CN 102752847A
- Authority
- CN
- China
- Prior art keywords
- packet
- storage queue
- working application
- bid
- link management
- 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
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for processing a networking application. According to the method, when each networking application in a mobile terminal is started, a registration request is transmitted to a link management tool in the mobile terminal; the link management tool verifies a bridge identifier (BID) carried in the registration request; if the BID passes the verification, the networking application is notified, and a storage queue is distributed to the networking application; each networking application is uniquely corresponding to one BID and one storage queue; the link management tool receives data packets transmitted by each networking application which passes the verification, and caches the received data packets to the corresponding storage queues according to the BID carried in the data packets; the link management tool polls each storage queue, takes out one data packet from each storage queue which is polled and is not empty, and transmits the data packet to a server; a return packet returned by the server is received, and the received return packet is transmitted to the corresponding networking application according to the BID carried in the return packet. The invention also discloses a device for processing the networking application. By adopting the technical scheme disclosed by the invention, a networking failure rate can be reduced.
Description
Technical field
The present invention relates to network technology, particularly a kind of processing method of working application and device.
Background technology
Along with the hardware performance of portable terminals such as mobile phone from strength to strength and the continuous intellectuality of operating system; The disposal ability of portable terminal has obtained very big lifting; Possessed the ability of moving a plurality of working application simultaneously; Usually, each working application all need with the server of network side between set up one and link.
And under present wireless network environment; The gateway of cellular carrier is can simultaneously treated link number limited, therefore possibly can't satisfy the increased requirement of working application, thereby causes the networking failure of working application; Especially in peak period, can further increase the networking mortality.To this problem, also there is not a kind of effective settling mode in the prior art.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of processing method of working application, can reduce the networking mortality.
Another object of the present invention is to provide a kind of processing unit of working application, can reduce the networking mortality.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of processing method of working application, this method comprises:
When each working application in the portable terminal started, the link management instrument in portable terminal sent register requirement; The link management instrument carries out verification to the identification identifier BID that carries in the register requirement, and verification is passed through, the notice working application, and be storage queue of working application distribution; The unique corresponding BID of each working application and a storage queue;
The link management instrument receives the packet that working application that each verification passes through is sent, according to the BID that wherein carries with the data pack buffer that receives in the storage queue of correspondence;
Each storage queue of link management instrument poll is polled to and for taking out a packet the empty storage queue, sends to server from each; Returning that reception server returns wrapped, and the bag that returns that will receive according to the BID that wherein carries sends to corresponding working application.
A kind of processing unit of working application, this device is arranged in portable terminal, comprising:
First processing unit; Each working application that is used for mobile terminal receive starts the register requirement that send the back; Identification identifier BID to wherein carrying carries out verification, and verification is passed through, the notice working application; And be that working application distributes a storage queue, the unique corresponding BID of each working application and a storage queue; Receive the packet that working application that each verification passes through is sent, according to the BID that wherein carries with the data pack buffer that receives in the storage queue of correspondence;
Second processing unit is used for each storage queue of poll, is polled to and for taking out a packet the empty storage queue, sends to server from each; Returning that reception server returns wrapped, and the bag that returns that will receive according to the BID that wherein carries sends to corresponding working application.
It is thus clear that; Adopt technical scheme of the present invention,, only need set up a link between itself and the server and get final product for each portable terminal; A plurality of working application in the portable terminal are shared this link; Thereby the link number that the gateway that has reduced cellular carrier need be handled, and then reduced the networking mortality, and improved the service efficiency of link; In addition, scheme according to the invention implements simple and convenient, is convenient to popularize.
Description of drawings
Fig. 1 is the flow chart of the inventive method embodiment.
Fig. 2 is the composition structural representation of apparatus of the present invention embodiment.
Embodiment
To the problem that exists in the prior art, the processing scheme of the working application among the present invention after a kind of improvement of proposition is installed a link management tool software, the forwarding of main responsible foundation, maintenance, disconnection and the packet that links etc. in portable terminal; Based on this link management instrument, can realize that a plurality of working application share a link.
For make technical scheme of the present invention clearer, understand, below with reference to the accompanying drawing embodiment that develops simultaneously, scheme according to the invention is done to specify further.
Fig. 1 is the flow chart of the inventive method embodiment.As shown in Figure 1, may further comprise the steps:
Step 11: when each working application in the portable terminal started, the link management instrument in portable terminal sent register requirement; The link management instrument carries out verification to the identification identifier (BID, Business Identification) that carries in the register requirement, and verification is passed through, the notice working application, and be storage queue of working application distribution; The unique corresponding BID of each working application and a storage queue.
In practical application, can be used for its identity is identified for fixing BID of each working application configuration in advance; After each working application starts; Can register to the link management instrument, promptly send register requirement, wherein carry the BID of self to the link management instrument; The link management instrument carries out verification to the BID that receives, and verification is passed through, the notice working application, and be storage queue of working application distribution, and initial condition, storage queue is empty.
If verification is not passed through, the link management instrument also need be notified working application, and is follow-up, and other processing can registered or carry out to working application again, owing to do not have direct relation with scheme according to the invention, so do not describe in detail.
Step 12: the link management instrument receives the packet that working application that each verification passes through is sent, according to the BID that wherein carries with the data pack buffer that receives in the storage queue of correspondence.
For each working application, the interface of link management instrument all is known, when verification through and when having packets need to send, each working application can be called the interface of link management instrument, the packet that needs are sent sends to the link management instrument; Carry self BID, particular content and the callback interface of self etc. in the packet that is sent; The link management instrument is according to the BID that wherein carries, with the data pack buffer that receives in the storage queue of correspondence.
Illustrate:
BID and storage queue that working application X is corresponding are respectively BID X and storage queue X, and after the link management instrument received the packet that working application X sends, the BID that discovery is wherein carried was BID X, then with the data pack buffer that receives in storage queue X.
Step 13: each storage queue of link management instrument poll is polled to and for taking out a packet the empty storage queue, sends to server from each.
In this step, the link management instrument can according to the distribution time by the order after arriving first, each storage queue of poll successively; And when being polled to each storage queue,, then therefrom take out a packet if it is not empty; Send to server, when taking out packet, can be according to the principle of first in first out.Like this, can guarantee that all working application all have the identical chance of giving out a contract for a project.
Illustrate:
Suppose to co-exist in 3 storage queues, be respectively storage queue 1, storage queue 2 and storage queue 3, wherein; Storage queue 1 distributes at first, and storage queue 3 is last (being up-to-date distribution) of distributing, in addition; Suppose that buffer memory has two packets in the storage queue 1, be respectively packet 1 and packet 2, packet 1 is cached in the storage queue 1 prior to packet 2; Storage queue 2 is empty, and buffer memory has 1 packet in the storage queue 3, is packet 3.So, the link management instrument will be according to the order of storage queue 1, storage queue 2, storage queue 3, each storage queue of poll successively; When being polled to storage queue 1, therefrom taking out packet 1 and send to server, when being polled to storage queue 2; Because it is empty; Skip, when being polled to storage queue 3, taking out packet 3 and send to server; Afterwards, the link management instrument can repeat said process, promptly carries out the poll line data bag of going forward side by side according to the order of storage queue 1, storage queue 2, storage queue 3 once more and sends.
In addition; The link management instrument can at first confirm whether establish link between self and the server before the packet that takes out is sent to server, if; Then utilize the link of being set up that the packet that takes out is sent to server; Otherwise, set up link earlier, utilize the link of being set up that the packet that takes out is sent to server then.How to set up between link management instrument and the server and be linked as prior art.Follow-up, when having no packets need to send, the link management instrument can break off with server between link.
Step 14: returning that link management instrument reception server returns wrapped, and the bag that returns that will receive according to the BID that wherein carries sends to corresponding working application.
After server receives arbitrary packet that the link management instrument sends and disposes, can correspondingly return one and return bag, wherein carry BID (identical), particular content and server relevant information etc. with the BID that carries in the packet that receives; The link management instrument is confirmed the working application that it is corresponding according to the BID that wherein carries after receiving this time bag, and according to the callback interface that gets access in the step 12, the bag that returns that receives is sent to the working application of determining; Working application can be resolved the bag that returns that receives, thereby obtains information such as particular content wherein.
In practical application, because a variety of causes may cause server can not normally receive the packet that the link management instrument sends; Correspondingly; Server also just can't generate the corresponding bag that returns, and perhaps, time bag that server generates can not normally send to the link management instrument.
To above-mentioned both of these case; The link management instrument can provide an overtime testing mechanism, is example with packet X: the link management instrument is cached to the storage queue from packet X and picks up counting, and does not receive the return bag corresponding with packet X yet if surpass scheduled duration (such as 30 seconds); Then send an overtime bag to the working application of sending packet X; Send failure with declarative data bag X, wherein portability has concrete failure cause, afterwards; Sending the working application of packet X can send packet X or carry out other processing to the link management instrument according to self needs again.
In addition, after the working application of sending packet X has been sent overtime bag, the link management instrument need be deleted packet X from the storage queue at its place; If the link management instrument has received corresponding the returning of packet X and wrapped, after Jiang Huibao sends to the working application of sending packet X, also need packet X be deleted from the storage queue at its place so.
Need to prove that step 11~14 do not have strict sequencing when reality is carried out, the expression mode in the present embodiment only in order to express easily.In practical application; Each step is likely to be executed in parallel; When carrying out poll, possibly also can receive register requirement and/or packet a certain or that some working application is sent, so such as the link management instrument; The link management instrument also need carry out the verification of BID and/or data pack buffer is arrived the medium processing of storage queue when the packet in the storage queue that is polled to is sent to server.
So far, promptly accomplished introduction about the inventive method embodiment.
Based on above-mentioned introduction, Fig. 2 is the composition structural representation of apparatus of the present invention embodiment.This device promptly is equivalent to the link management instrument in embodiment illustrated in fig. 1, is arranged in portable terminal.As shown in Figure 2, comprising:
Second processing unit 22 is used for each storage queue of poll, is polled to and for taking out a packet the empty storage queue, sends to server from each; Returning that reception server returns wrapped, and the bag that returns that will receive according to the BID that wherein carries sends to corresponding working application.
Wherein, Second processing unit 22 can be further used for, and to arbitrary packet X, is cached to the storage queue from packet X and picks up counting; Do not receive the return bag corresponding yet if surpass scheduled duration, then send overtime bag to the working application of sending packet X with packet X.
Second processing unit 22 also can be further used for; After the working application that sends to transmission packet X is wrapped in corresponding returning with packet X; Perhaps, after the working application of sending packet X is sent overtime bag, packet X is deleted from the storage queue at its place.
The concrete workflow of device shown in Figure 2 repeats no more please with reference to the respective description among the method embodiment shown in Figure 1 here.
In a word; Adopt technical scheme of the present invention,, only need set up a link between itself and the server and get final product for each portable terminal; A plurality of working application in the portable terminal are shared this link; Thereby the link number that the gateway that has reduced cellular carrier need be handled, and then reduced the networking mortality, and improved the service efficiency of link.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.
Claims (8)
1. the processing method of a working application is characterized in that, this method comprises:
When each working application in the portable terminal started, the link management instrument in portable terminal sent register requirement; The link management instrument carries out verification to the identification identifier BID that carries in the register requirement, and verification is passed through, the notice working application, and be storage queue of working application distribution; The unique corresponding BID of each working application and a storage queue;
The link management instrument receives the packet that working application that each verification passes through is sent, according to the BID that wherein carries with the data pack buffer that receives in the storage queue of correspondence;
Each storage queue of link management instrument poll is polled to and for taking out a packet the empty storage queue, sends to server from each; Returning that reception server returns wrapped, and the bag that returns that will receive according to the BID that wherein carries sends to corresponding working application.
2. method according to claim 1 is characterized in that, the said server that sends to comprises:
The link management instrument confirms whether establish link between self and the server; If, then utilize the link of being set up that the packet that takes out is sent to server, otherwise; Set up link, utilize the link of being set up that the packet that takes out is sent to server then.
3. method according to claim 1 is characterized in that, this method further comprises:
To arbitrary packet X, the link management instrument is cached to the storage queue from packet X and picks up counting, and does not receive the return bag corresponding with packet X yet if surpass scheduled duration, then sends overtime bag to the working application of sending packet X.
4. method according to claim 3 is characterized in that, this method further comprises:
After the working application that sends to transmission packet X was wrapped in corresponding returning with packet X, perhaps, after the working application of sending packet X was sent overtime bag, the link management instrument was deleted packet X from the storage queue at its place.
5. according to claim 1,2 or 3 described methods, it is characterized in that each storage queue of said poll comprises: according to the distribution time by each storage queue of the order after arriving first poll successively;
Saidly from storage queue, take out a packet and comprise: the principle according to first in first out is taken out a packet from storage queue.
6. the processing unit of a working application is characterized in that, this device is arranged in portable terminal, comprising:
First processing unit; Each working application that is used for mobile terminal receive starts the register requirement that send the back; Identification identifier BID to wherein carrying carries out verification, and verification is passed through, the notice working application; And be that working application distributes a storage queue, the unique corresponding BID of each working application and a storage queue; Receive the packet that working application that each verification passes through is sent, according to the BID that wherein carries with the data pack buffer that receives in the storage queue of correspondence;
Second processing unit is used for each storage queue of poll, is polled to and for taking out a packet the empty storage queue, sends to server from each; Returning that reception server returns wrapped, and the bag that returns that will receive according to the BID that wherein carries sends to corresponding working application.
7. device according to claim 6; It is characterized in that; Said second processing unit is further used for, and to arbitrary packet X, is cached to the storage queue from packet X and picks up counting; Do not receive the return bag corresponding yet if surpass scheduled duration, then send overtime bag to the working application of sending packet X with packet X.
8. device according to claim 7; It is characterized in that; Said second processing unit is further used for, after the working application that sends to transmission packet X is wrapped in corresponding returning with packet X, perhaps; After the working application of sending packet X is sent overtime bag, packet X is deleted from the storage queue at its place.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110097758.8A CN102752847B (en) | 2011-04-19 | 2011-04-19 | A kind of processing method of working application and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110097758.8A CN102752847B (en) | 2011-04-19 | 2011-04-19 | A kind of processing method of working application and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102752847A true CN102752847A (en) | 2012-10-24 |
CN102752847B CN102752847B (en) | 2015-09-02 |
Family
ID=47032684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110097758.8A Active CN102752847B (en) | 2011-04-19 | 2011-04-19 | A kind of processing method of working application and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102752847B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375437A (en) * | 2016-08-31 | 2017-02-01 | 上海银天下科技有限公司 | Data auditing method and apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094181A (en) * | 2007-07-25 | 2007-12-26 | 华为技术有限公司 | Dispatch device and method of enqueuing and dequeuing message |
CN101256578A (en) * | 2008-04-08 | 2008-09-03 | 中兴通讯股份有限公司 | Method for implementing multi-user in internal memory database |
WO2010072081A1 (en) * | 2008-12-25 | 2010-07-01 | 中兴通讯股份有限公司 | Method and system for realizing massive terminals access of a streaming media server |
CN101902398A (en) * | 2010-07-12 | 2010-12-01 | 中兴通讯股份有限公司 | Method and system for receiving and transmitting data packet |
-
2011
- 2011-04-19 CN CN201110097758.8A patent/CN102752847B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101094181A (en) * | 2007-07-25 | 2007-12-26 | 华为技术有限公司 | Dispatch device and method of enqueuing and dequeuing message |
CN101256578A (en) * | 2008-04-08 | 2008-09-03 | 中兴通讯股份有限公司 | Method for implementing multi-user in internal memory database |
WO2010072081A1 (en) * | 2008-12-25 | 2010-07-01 | 中兴通讯股份有限公司 | Method and system for realizing massive terminals access of a streaming media server |
CN101902398A (en) * | 2010-07-12 | 2010-12-01 | 中兴通讯股份有限公司 | Method and system for receiving and transmitting data packet |
Non-Patent Citations (1)
Title |
---|
杨朝军: "基于消息队列消息传输系统的设计与研究", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375437A (en) * | 2016-08-31 | 2017-02-01 | 上海银天下科技有限公司 | Data auditing method and apparatus |
CN106375437B (en) * | 2016-08-31 | 2019-08-27 | 上海银赛计算机科技有限公司 | Data checking method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102752847B (en) | 2015-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105850156B (en) | For optimizing the method and system of the short data burst service in LTE network | |
CN101894092B (en) | Multi-core CPU and inter-core communication method thereof | |
CN101136943B (en) | System and method for implementing extended Diameter protocol application | |
CN102761864A (en) | Data transmission method, system and device | |
CN104679528B (en) | The newer method and apparatus of application program remote | |
CN103813303B (en) | A kind of method, system and the relevant device of eSIM cards renewal contract signing relationship | |
RU2012108944A (en) | WIRELESS COMMUNICATION METHOD (OPTIONS), NETWORK NODE AND MOBILE STATION | |
CN102625287A (en) | Method for downloading mobile phone application software | |
CN102196591A (en) | Mobile terminal and data parallel transmission method thereof | |
CN102685839A (en) | Method, gateway, terminal and system for communication of Internet of things | |
CN104205735A (en) | Communication transport protocol for distributed information technology architectures | |
CN101977358A (en) | Method, device and equipment for transmitting data short messages | |
CN102612007A (en) | Flow control method and device for short messages | |
CN104703126B (en) | Wireless network broadcast information transmission system and its method based on iBeacon | |
CN102369764A (en) | System and method operable to enable shortest connection route | |
CA2533543A1 (en) | System and method for managing communication for component applications | |
CN101237623A (en) | A realization method and system for SMS value-added service of multi-platform mixed signals | |
CN102571963B (en) | Content delivery method, device and access network equipment | |
CN103973648A (en) | Application data push method, device and system | |
CN101510872B (en) | Remote customer dialing authentication service client terminal, server and transmission/acceptance method | |
CN101309458B (en) | Short message realizing method between multiple enterprises, system and equipment | |
CN102752847A (en) | Method and device for processing networking application | |
CN103312753A (en) | Communication method and device of Internet of things | |
JP5562317B2 (en) | Wireless communication system and session sharing method | |
CN103188220B (en) | Message transmission system, method and device, data maintaining method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |