CN105120495A - Information push method and system for smart mobile terminal - Google Patents
Information push method and system for smart mobile terminal Download PDFInfo
- Publication number
- CN105120495A CN105120495A CN201510571960.8A CN201510571960A CN105120495A CN 105120495 A CN105120495 A CN 105120495A CN 201510571960 A CN201510571960 A CN 201510571960A CN 105120495 A CN105120495 A CN 105120495A
- Authority
- CN
- China
- Prior art keywords
- client
- server
- push
- logical session
- carrying
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/08—Load balancing or load distribution
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses an information push method and system for a smart mobile terminal. The method comprises the following steps that a push management server receives a content server registration request of a content server and establishes a logical session with the content server; a client sends a logical session establishment request to the push management server, the push management server selects one bearing server to be associated with the client according to the load condition of each bearing server, and returns the information of the bearing server to the client, and the client sends the logical session establishment request to a bearing server according to the received information of the bearing server; the push management server receives push information sent by the content server which establishes the logical session, and the push management server forwards a push content to the bearing server associated with the client which meets characteristics of a target receiver; and the bearing server sends the push content to the client. According to the method and the system, load balancing distribution can be well carried out, and the push experience of the client is improved.
Description
Technical field
The present invention relates to the correlative technology field of intelligent mobile terminal, particularly a kind of information push method of intelligent mobile terminal and system.
Background technology
Modern Intelligent mobile communication terminal equipment (as smart mobile phone), can pass through 3G, 4G or WIFI access data network, the various message then reception server pushed.
Server can provide one or several public network addresses, for client's side link.And after terminal equipment is usually located at various NAT, fire compartment wall facility, this just causes two results: one is that client is invisible, and after communication must be initiated by client, service end could send message to client; Two is that client sends message in a period of time after server, if continue interacting message, nat port maps and will lose efficacy, and service end also just can not send message to client in address accordingly again.
For this reason, prior art mainly realizes pushing in the following way:
1. client and content server are all registered in message push server;
2. content service sends a message in message push server;
3. message push is given registered destination client by message push server.
But, there is a shortcoming in above-mentioned technology, namely when all clients and content server are all registered in message push server, message push server load can be caused excessive, and the message of all content servers all mixes on the same server by message push server, it cannot realize load balancing and distribute.
Summary of the invention
Based on this, be necessary for existing push technology, realize load balancing and distribute the technical problem had difficulties, a kind of information push method and system of intelligent mobile terminal are provided.
An information push method for intelligent mobile terminal, comprising:
Content server registration step, comprising: push management server and receive the content server registration request of content server, records and preserves the information of content server, setting up logical session with content server;
Client registers step, comprise: client sends to propelling movement management server and sets up logical session request, push management server according to the loading condition of each carrying server, one is selected to carry server and client associate, and the information of carrying server is returned client, client, according to the information of received carrying server, sends to carrying server and sets up logical session request, carrying server is that client sets up public network address and port numbers, sets up logical session with client;
Content pushes step, comprise: the PUSH message that the content server that propelling movement management server receives built vertical logical session sends, described PUSH message comprises targets of messages recipient characteristic sum and pushes content, and propelling movement content is forwarded to the carrying server associated by the client meeting targets of messages recipient feature by propelling movement management server;
Client push step, comprising: propelling movement content is sent to client by carrying server.
A message push system for intelligent mobile terminal, comprising:
Content server Registering modules, for: push management server and receive the content server registration request of content server, record and preserve the information of content server, setting up logical session with content server;
Client registers module, for: client sets up logical session request to the transmission of propelling movement management server, push management server according to the loading condition of each carrying server, one is selected to carry server and client associate, and the information of carrying server is returned client, client, according to the information of received carrying server, sends to carrying server and sets up logical session request, carrying server is that client sets up public network address and port numbers, sets up logical session with client;
Content pushing module, for: the PUSH message that the content server that propelling movement management server receives built vertical logical session sends, described PUSH message comprises targets of messages recipient characteristic sum and pushes content, and propelling movement content is forwarded to the carrying server associated by the client meeting targets of messages recipient feature by propelling movement management server;
Client push module, for: propelling movement content is sent to client by carrying server.
Client of the present invention has carried out twice registration, namely first after the registration of propelling movement management server, then registers to carrying server.Owing to adopting twice registration, therefore pushing management server can carry out load balancing distribution well, and the propelling movement improving client is experienced.
Accompanying drawing explanation
Fig. 1 is the workflow diagram of the information push method of a kind of intelligent mobile terminal of the present invention;
Fig. 2 is the system frame of preferred embodiment;
Fig. 3 is the level schematic diagram of the carrying server of preferred embodiment;
Fig. 4 is in preferred embodiment, and content server is established to the workflow diagram of the connection of push server;
Fig. 5 is the workflow diagram that preferred embodiment pushes that agency is established to the connection pushing management server;
Fig. 6 is the initialized workflow diagram of the logical session of preferred embodiment client and carrying server;
Fig. 7 is in preferred embodiment, the workflow diagram of content server PUSH message;
Fig. 8 is the transaction state machine of preferred embodiment;
Fig. 9 is the transaction state machine of preferred embodiment;
Figure 10 is the construction module figure of the message push system of a kind of intelligent mobile terminal of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention will be further described in detail.
Be illustrated in figure 1 the workflow diagram of the information push method of a kind of intelligent mobile terminal of the present invention, comprise:
Step S101, comprising: push management server and receive the content server registration request of content server, records and preserves the information of content server, setting up logical session with content server;
Step S102, comprise: client sends to propelling movement management server and sets up logical session request, push management server according to the loading condition of each carrying server, one is selected to carry server and client associate, and the information of carrying server is returned client, client, according to the information of received carrying server, sends to carrying server and sets up logical session request, carrying server is that client sets up public network address and port numbers, sets up logical session with client;
Step S103, comprise: the PUSH message that the content server that propelling movement management server receives built vertical logical session sends, described PUSH message comprises targets of messages recipient characteristic sum and pushes content, and propelling movement content is forwarded to the carrying server associated by the client meeting targets of messages recipient feature by propelling movement management server;
Step S104, comprising: propelling movement content is sent to client by carrying server.
Content server is registered in step S101 in propelling movement management server, and client then carries out twice registration.The present invention adopts the mode of twice registration, and client only needs to know the address information pushing management server, is then that it distributes suitable carrying server by propelling movement management server, and re-starts registration to set up final logical session.After establishing logical session, then in step S104, the propelling movement content forwarded by propelling movement management server in step S103 is pushed in client by carrying server.
Client of the present invention has carried out twice registration, namely first after the registration of propelling movement management server, then registers to carrying server.Owing to adopting twice registration, therefore pushing management server can carry out load balancing distribution well, and the propelling movement improving client is experienced.
Wherein in an embodiment, described step S102, specifically comprises:
Client to push management server send comprise session label information set up logical session request, push management server to verify client, if the verification passes, then push management server according to the loading condition of each carrying server, the information of a carrying server is returned client, and the logical session that recording conversation identification information identifies is legitimate conversation, if checking is not passed through, return mistake and respond;
Client, according to the information of received current carrying server, sends to current carrying server and sets up logical session request;
Receive the carrying server comprising the logical session request of setting up of session label information that client sends, whether legal about the logical session of session label information to the inquiry of propelling movement management server, after to confirm about the logical session of session label information from management server be legitimate conversation, for client sets up public network address and port numbers, set up logical session with client;
Client to push that management server sends to set up session label information included by logical session request and client consistent to carrying the session label information set up included by logical session request that server sends.
In the present embodiment, be responsible for verifying client by propelling movement management server, as long as be verified, then the logical session of correspondence can be designated legitimate conversation.Due to client to push that management server sends to set up session label information included by logical session request and client consistent to carrying the session label information set up included by logical session request that server sends, therefore whether it only needs inquiry propelling movement management server legal about the logical session of session label information to carry server, namely carry server without the need to verifying client, thus decrease the communication overhead between client and carrying server.
Wherein in an embodiment, client is TCP bag to the logical session request of setting up pushing management server transmission, and client is UDP bag to the logical session request of setting up that carrying server sends.
TCP (TransmissionControlProtocol) bag and transmission control protocol bag, UDP (UserDatagramProtocol) bag and User Datagram Protoco (UDP) bag.
Client is only set up once to the logical session request of setting up pushing management server transmission, therefore adopts TCP bag to carry out connecting to guarantee quality.And client needs long-term foundation to the logical session request of setting up that carrying server sends, and need to continue to send message, in order to reduce the expense that message sends, and process disconnection test problems more flexibly, therefore the present embodiment adopts UDP to it, reduces the communication overhead between client and carrying server further.
Wherein in an embodiment, also comprise: heartbeat maintains step, described heartbeat maintains step, comprising:
Client sends heartbeat packet to carrying server according to the heartbeat time interval preset, described heartbeat packet is binary system bag, comprise: the logical session for identifying the logical session that client is set up with carrying server identifies, and next heartbeat maximum duration interval;
After carrying server receives the heartbeat packet of client, logical session mark and next heartbeat maximum duration interval are associated and preserves, check whether public network address and the port numbers of client there occurs change, if the public network address of client or port numbers change, then the public network address changed or the port numbers changed being attached to client responds in bag, if exist between the double heartbeat packet receiving client transmission and push failed bag, then in client response bag, arrange propelling movement unsuccessfully to identify, after having built client response bag, client is responded bag and sends to client,
Client, after receiving client response bag, makes the following judgment: if public network address there occurs change, then client readjusts heartbeat time interval to the maximum preset; If public network address does not change, and port there occurs change or pushes unsuccessfully to identify and is set up number of times continuously and exceedes default failed read-around ratio threshold value, if then now eartbeat interval not yet reaches default eartbeat interval time threshold values, then client shortens eartbeat interval, if now eartbeat interval reaches default eartbeat interval time threshold values, then no longer shorten eartbeat interval;
When behind the maximum duration interval of next heartbeat arriving the association of logical session mark, carrying server does not receive the heartbeat packet that the client corresponding to identifying with logical session is sent, then record corresponding logical session and lose heartbeat, if the number of times that logical session loses heartbeat continuously exceedes preset times, then stop corresponding logical session.
Wherein, client is after receiving client response bag, and the judgement carried out, is specially:
If public network address there occurs change, then represent that user access network may have occurred change, client readjusts heartbeat time interval to default maximum, starts a new eartbeat interval adjustment cycle;
If just port there occurs change or pushes unsuccessfully mark and is set up number of times and continues to exceed threshold value, then represent that the eartbeat interval of user is possible excessive.If now eartbeat interval not yet reaches pre-set threshold value, then client shortens eartbeat interval, otherwise no longer shortens eartbeat interval, and it is a quasi real time model by poll acquisition message that this Communication Model is changed in quality.
Therefore, when network condition worsens, server by message real time propelling movement to client, but when client sends heartbeat packet at every turn, can not be responded by heartbeat, notice client cancels breath, so, message model has been degenerated to polling mode, and the present embodiment can be in this case, shorten polling interval, approximate completes message real time propelling movement.
The heartbeat packet of the present embodiment adopts binary system bag, thus reduces communication overhead further.Meanwhile, by heartbeat mechanism, maintain the logical session between client and carrying server.
Wherein in an embodiment, described step S104, specifically comprises:
Carrying server is that each propelling movement content sets up affairs;
Affairs enter into init state after setting up, and the transport layer submitting to carrying server adopts UDP bag to send to client, and affairs enter into transmission state;
If transport layer completes transmission transaction, then affairs enter the state of being sent completely, if transport layer sends affairs failure, then affairs are moved to final state;
Under affairs enter the state of being sent completely, start timer, before timing terminates, receive client respond, then affairs are moved to committed state, respond if timing confiscates client before terminating, and sending times does not reach the upper limit, then affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission, respond if timing confiscates client before terminating, and sending times reaches the upper limit, then affairs enter halted state;
Under affairs enter halted state, if the life cycle pushing content arrives, then affairs move to final state, and the life cycle pushing content is carried in the PUSH message of propelling movement management server transmission by content server, and is forwarded to carrying server by propelling movement management server;
Under affairs enter halted state, if having received heartbeat packet, be 0 with regard to reset sending times, affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission.
Transport layer due to the present embodiment have employed UDP bag and sends to reduce communication overhead, and in order to ensure transmission quality, therefore the present embodiment adopts the mode of state switching to affairs, while minimizing communication overhead, also ensure that transmission quality.
Be illustrated in figure 2 the system frame of preferred embodiment, comprise:
Content server 21: the server having PUSH message demand, need be registered to and push on management server, could PUSH message.
Push management server 22: the registration request accepting content server, in its legitimacy of checking, can respond and send request; Can receive multiple registration request pushing agency, after verifying its legitimacy, the loading condition current according to each carrying server, is the online carrying server that its distribution is suitable, is responsible for the message push of this propelling movement agency simultaneously.
Carrying server 23: the real-time communication passage safeguarding and push agency, when having message, gives message push and pushes agency.
Push agency 24: be deployed in terminal, accept the registration request of this terminal applies, accept the message that push server pushes, give each application by message distribution.
Terminal applies 25: the application having message subscribing demand.
Wherein, carrying server 23 comprises application layer 31, logical session layer 32, transaction layer 33 and transmitting layer 34 as shown in Figure 3.
Be that in preferred embodiment, content server is established to the workflow diagram of the connection of push server, comprising as described in Figure 4:
Step S401, content server is established to the connection of message push management server;
Step S402, content server sends registration request to propelling movement management server;
Step S403, pushes the legitimacy of management server checking log-on message, if legal in being that it distributes a logical session mark, just being informed by response, otherwise sending mistake response, indicating error reason, disconnect this link if illegal;
Step S404, after propelling movement management server receives correct response, sets up with the logical session of content server, and result is sent to content server.
Be illustrated in figure 5 preferred embodiment and push the workflow diagram that agency is established to the connection pushing management server, comprising:
Step S501, client push agency is initiated to the TCP pushing management server and connects;
Step S502, client-requested sets up logical session, the sequence number of the last item PUSH message containing session label information in request and received last time;
Step S503, pushes the legitimacy of management server checking client information, just continues process as legal, otherwise just sends wrong response;
Step S504, pushes management server according to the current load situation of each carrying server, distributes a carrying server, is responsible for the actual propelling movement task of this logical session;
Step S505, pushes management server and the specifying information (address, port numbers, connection identifier etc.) of carrying server and session identification is sent to propelling movement agency;
Step S506, pushes agency after receiving correct response, disconnects and push the connection of management server.
Be illustrated in figure 6 preferred embodiment client and the initialized workflow diagram of the logical session of carrying server, comprise:
Step S601, push agency with the form of UDP bag, the carrying server asking and push management server to distribute sets up logical session;
Step S602, after carrying server receives the request pushing agency, inquiry pushes the legitimacy of this session of management server, as legal, just continues process below; Otherwise, send mistake and respond;
Step S603, carrying server sends correct in client, and this responds the public network address and the port numbers that include client;
Step S604, the queue of carrying server retrieves each content server alive message, takes out the message being greater than this logical session receive sequence number;
Step S605, logical session layer will set up affairs for each message, give this transaction layer process.
Wherein, client has two kinds of situations with the termination of the logical session of carrying server:
1) heartbeat packet is not received more than three times;
2) client-requested stops.
Be illustrated in figure 7 in preferred embodiment, the workflow diagram of content server PUSH message, comprising:
Step S701, content server sends a message to propelling movement management server, specifies the feature of targets of messages recipient, content and the term of validity in message;
Step S702, pushes after management server distributes a unified sequence number to this message, message is sent to each carrying server;
Step S703, message is put in message queue corresponding to this server by carrying server;
Step S704, new information is sent to each logical session by carrying server;
Step S705, affairs are given transaction layer process after setting up affairs for this message by logical session.
Be illustrated in figure 8 the transaction state machine of preferred embodiment, every affairs meeting correspondence one state machine as shown in Figure 8, comprise: init state 81, send in state 82, be sent completely state 83, committed state 84, halted state 85 and final state 86, specifically:
1) affairs enter into init state after setting up;
2), during init state, message can be submitted to transport layer process;
3), after transport layer sends message success, can notify transaction layer, affairs move to committed state; Transport layer bust this, enters final state;
4), after transport layer sends message, transaction layer starts a timer, if after time is up, also confiscate response, and sending times does not reach the upper limit, will resend; If reach the upper limit, with regard to announcement session layer, a halted state will be entered.
5) in halted state, if having received heartbeat packet, be 0 with regard to reset sending times, restart to send.
When propelling movement agency receives PUSH message, then according to the processing policy of registered message, processing this message---display, notice is applied or is abandoned.
Be illustrated in figure 9 the workflow diagram of the heartbeat service logic session of preferred embodiment, comprise:
Step S901, push agency and send heartbeat packet to carrying server according to the time interval being initialized as 60 seconds, for guaranteed flow is as far as possible few, heartbeat packet is a binary system bag, only contains the necessary information of verification, and the maximum duration interval of next heartbeat;
Step S902, carrying server, after receiving heartbeat packet, can retrieve the session information that this heartbeat packet is corresponding, as session is legal, just continues process, otherwise will abandon this bag, and does not do any response;
Step S903, carrying server checks whether client address port numbers there occurs change, is just attached in response by new address port number if had;
Step S904, carrying server sends response to client;
Step S905, client is after receiving response, check whether address and port change, if just port there occurs change, or there is the message of loss and recurred three times, just think that port mapping ageing time is less than eartbeat interval, suitably the eartbeat interval of adjustment the machine, but should not be greater than the minimum interval (as 20S) of a setting.
Be the construction module figure of the message push system of a kind of intelligent mobile terminal of the present invention as shown in Figure 10, comprise:
Content server Registering modules 1001, for: push management server and receive the content server registration request of content server, record and preserve the information of content server, setting up logical session with content server;
Client registers module 1002, for: client sets up logical session request to the transmission of propelling movement management server, push management server according to the loading condition of each carrying server, one is selected to carry server and client associate, and the information of carrying server is returned client, client is according to the information of received carrying server, send to carrying server and set up logical session request, carrying server is that client sets up public network address and port numbers, sets up logical session with client;
Content pushing module 1003, for: the PUSH message that the content server that propelling movement management server receives built vertical logical session sends, described PUSH message comprises targets of messages recipient characteristic sum and pushes content, and propelling movement content is forwarded to the carrying server associated by the client meeting targets of messages recipient feature by propelling movement management server;
Client push module 1004, for: propelling movement content is sent to client by carrying server.
Wherein in an embodiment, described client registers module, specifically for:
Client to push management server send comprise session label information set up logical session request, push management server to verify client, if the verification passes, then push management server according to the loading condition of each carrying server, the information of a carrying server is returned client, and the logical session that recording conversation identification information identifies is legitimate conversation, if checking is not passed through, return mistake and respond;
Client, according to the information of received current carrying server, sends to current carrying server and sets up logical session request;
Receive the carrying server comprising the logical session request of setting up of session label information that client sends, whether legal about the logical session of session label information to the inquiry of propelling movement management server, after to confirm about the logical session of session label information from management server be legitimate conversation, for client sets up public network address and port numbers, set up logical session with client;
Client to push that management server sends to set up session label information included by logical session request and client consistent to carrying the session label information set up included by logical session request that server sends.
Wherein in an embodiment, client is TCP bag to the logical session request of setting up pushing management server transmission, and client is UDP bag to the logical session request of setting up that carrying server sends.
Wherein in an embodiment, also comprise: heartbeat maintains module, described heartbeat maintains module, for:
Client sends heartbeat packet to carrying server according to the heartbeat time interval preset, described heartbeat packet is binary system bag, comprise: the logical session for identifying the logical session that client is set up with carrying server identifies, and next heartbeat maximum duration interval;
After carrying server receives the heartbeat packet of client, logical session mark and next heartbeat maximum duration interval are associated and preserves, check whether public network address and the port numbers of client there occurs change, if the public network address of client or port numbers change, then the public network address changed or the port numbers changed being attached to client responds in bag, if exist between the double heartbeat packet receiving client transmission and push failed bag, then in client response bag, arrange propelling movement unsuccessfully to identify, after having built client response bag, client is responded bag and sends to client,
Client, after receiving client response bag, makes the following judgment: if public network address there occurs change, then client readjusts heartbeat time interval to the maximum preset; If public network address does not change, and port there occurs change or pushes unsuccessfully to identify and is set up number of times continuously and exceedes default failed read-around ratio threshold value, if then now eartbeat interval not yet reaches default eartbeat interval time threshold values, then client shortens eartbeat interval, if now eartbeat interval reaches default eartbeat interval time threshold values, then no longer shorten eartbeat interval;
When behind the maximum duration interval of next heartbeat arriving the association of logical session mark, carrying server does not receive the heartbeat packet that the client corresponding to identifying with logical session is sent, then record corresponding logical session and lose heartbeat, if the number of times that logical session loses heartbeat continuously exceedes preset times, then stop corresponding logical session.
Wherein in an embodiment, described client push module, specifically for:
Carrying server is that each propelling movement content sets up affairs;
Affairs enter into init state after setting up, and the transport layer submitting to carrying server adopts UDP bag to send to client, and affairs enter into transmission state;
If transport layer completes transmission transaction, then affairs enter the state of being sent completely, if transport layer sends affairs failure, then affairs are moved to final state;
Under affairs enter the state of being sent completely, start timer, before timing terminates, receive client respond, then affairs are moved to committed state, respond if timing confiscates client before terminating, and sending times does not reach the upper limit, then affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission, respond if timing confiscates client before terminating, and sending times reaches the upper limit, then affairs enter halted state;
Under affairs enter halted state, if the life cycle pushing content arrives, then affairs move to final state, and the life cycle pushing content is carried in the PUSH message of propelling movement management server transmission by content server, and is forwarded to carrying server by propelling movement management server;
Under affairs enter halted state, if having received heartbeat packet, be 0 with regard to reset sending times, affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (10)
1. an information push method for intelligent mobile terminal, is characterized in that, comprising:
Content server registration step, comprising: push management server and receive the content server registration request of content server, records and preserves the information of content server, setting up logical session with content server;
Client registers step, comprise: client sends to propelling movement management server and sets up logical session request, push management server according to the loading condition of each carrying server, one is selected to carry server and client associate, and the information of carrying server is returned client, client, according to the information of received carrying server, sends to carrying server and sets up logical session request, carrying server is that client sets up public network address and port numbers, sets up logical session with client;
Content pushes step, comprise: the PUSH message that the content server that propelling movement management server receives built vertical logical session sends, described PUSH message comprises targets of messages recipient characteristic sum and pushes content, and propelling movement content is forwarded to the carrying server associated by the client meeting targets of messages recipient feature by propelling movement management server;
Client push step, comprising: propelling movement content is sent to client by carrying server.
2. the information push method of intelligent mobile terminal according to claim 1, is characterized in that, described client registers step, specifically comprises:
Client to push management server send comprise session label information set up logical session request, push management server to verify client, if the verification passes, then push management server according to the loading condition of each carrying server, the information of a carrying server is returned client, and the logical session that recording conversation identification information identifies is legitimate conversation, if checking is not passed through, return mistake and respond;
Client, according to the information of received current carrying server, sends to current carrying server and sets up logical session request;
Receive the carrying server comprising the logical session request of setting up of session label information that client sends, whether legal about the logical session of session label information to the inquiry of propelling movement management server, after to confirm about the logical session of session label information from management server be legitimate conversation, for client sets up public network address and port numbers, set up logical session with client;
Client to push that management server sends to set up session label information included by logical session request and client consistent to carrying the session label information set up included by logical session request that server sends.
3. the information push method of intelligent mobile terminal according to claim 1, it is characterized in that, client is TCP bag to the logical session request of setting up pushing management server transmission, and client is UDP bag to the logical session request of setting up that carrying server sends.
4. the information push method of intelligent mobile terminal according to claim 1, is characterized in that, also comprises: heartbeat maintains step, and described heartbeat maintains step, comprising:
Client sends heartbeat packet to carrying server according to the heartbeat time interval preset, described heartbeat packet is binary system bag, comprise: the logical session for identifying the logical session that client is set up with carrying server identifies, and next heartbeat maximum duration interval;
After carrying server receives the heartbeat packet of client, logical session mark and next heartbeat maximum duration interval are associated and preserves, check whether public network address and the port numbers of client there occurs change, if the public network address of client or port numbers change, then the public network address changed or the port numbers changed are attached in client response, if exist between the double heartbeat packet receiving client transmission and push failed bag, then in client is responded, arrange propelling movement unsuccessfully to identify, after having built client response bag, client is responded bag and sends to client,
Client, after receiving client response bag, makes the following judgment: if public network address there occurs change, then client readjusts heartbeat time interval to the maximum preset; If public network address does not change, and port there occurs change or pushes unsuccessfully to identify and is set up number of times continuously and exceedes default failed read-around ratio threshold value, if then now eartbeat interval not yet reaches default eartbeat interval time threshold values, then client shortens eartbeat interval, if now eartbeat interval reaches default eartbeat interval time threshold values, then no longer shorten eartbeat interval;
When behind the maximum duration interval of next heartbeat arriving the association of logical session mark, carrying server does not receive the heartbeat packet that the client corresponding to identifying with logical session is sent, then record corresponding logical session and lose heartbeat, if the number of times that logical session loses heartbeat continuously exceedes preset times, then stop corresponding logical session.
5. the information push method of intelligent mobile terminal according to claim 4, is characterized in that, described client push step, specifically comprises:
Carrying server is that each propelling movement content sets up affairs;
Affairs enter into init state after setting up, and the transport layer submitting to carrying server adopts UDP bag to send to client, and affairs enter into transmission state;
If transport layer completes transmission transaction, then affairs enter the state of being sent completely, if transport layer sends affairs failure, then affairs are moved to final state;
Under affairs enter the state of being sent completely, start timer, before timing terminates, receive client respond, then affairs are moved to committed state, respond if timing confiscates client before terminating, and sending times does not reach the upper limit, then affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission, respond if timing confiscates client before terminating, and sending times reaches the upper limit, then affairs enter halted state;
Under affairs enter halted state, if the life cycle pushing content arrives, then affairs move to final state, and the life cycle pushing content is carried in the PUSH message of propelling movement management server transmission by content server, and is forwarded to carrying server by propelling movement management server;
Under affairs enter halted state, if having received heartbeat packet, be 0 with regard to reset sending times, affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission.
6. a message push system for intelligent mobile terminal, is characterized in that, comprising:
Content server Registering modules, for: push management server and receive the content server registration request of content server, record and preserve the information of content server, setting up logical session with content server;
Client registers module, for: client sets up logical session request to the transmission of propelling movement management server, push management server according to the loading condition of each carrying server, one is selected to carry server and client associate, and the information of carrying server is returned client, client, according to the information of received carrying server, sends to carrying server and sets up logical session request, carrying server is that client sets up public network address and port numbers, sets up logical session with client;
Content pushing module, for: the PUSH message that the content server that propelling movement management server receives built vertical logical session sends, described PUSH message comprises targets of messages recipient characteristic sum and pushes content, and propelling movement content is forwarded to the carrying server associated by the client meeting targets of messages recipient feature by propelling movement management server;
Client push module, for: propelling movement content is sent to client by carrying server.
7. the message push system of intelligent mobile terminal according to claim 6, is characterized in that, described client registers module, specifically for:
Client to push management server send comprise session label information set up logical session request, push management server to verify client, if the verification passes, then push management server according to the loading condition of each carrying server, the information of a carrying server is returned client, and the logical session that recording conversation identification information identifies is legitimate conversation, if checking is not passed through, return mistake and respond;
Client, according to the information of received current carrying server, sends to current carrying server and sets up logical session request;
Receive the carrying server comprising the logical session request of setting up of session label information that client sends, whether legal about the logical session of session label information to the inquiry of propelling movement management server, after to confirm about the logical session of session label information from management server be legitimate conversation, for client sets up public network address and port numbers, set up logical session with client;
Client to push that management server sends to set up session label information included by logical session request and client consistent to carrying the session label information set up included by logical session request that server sends.
8. the message push system of intelligent mobile terminal according to claim 6, it is characterized in that, client is TCP bag to the logical session request of setting up pushing management server transmission, and client is UDP bag to the logical session request of setting up that carrying server sends.
9. the message push system of intelligent mobile terminal according to claim 6, is characterized in that, also comprises: heartbeat maintains module, and described heartbeat maintains module, for:
Client sends heartbeat packet to carrying server according to the heartbeat time interval preset, described heartbeat packet is binary system bag, comprise: the logical session for identifying the logical session that client is set up with carrying server identifies, and next heartbeat maximum duration interval;
After carrying server receives the heartbeat packet of client, logical session mark and next heartbeat maximum duration interval are associated and preserves, check whether public network address and the port numbers of client there occurs change, if the public network address of client or port numbers change, then the public network address changed or the port numbers changed being attached to client responds in bag, if exist between the double heartbeat packet receiving client transmission and push failed bag, then in client response bag, arrange propelling movement unsuccessfully to identify, after having built client response bag, client is responded bag and sends to client,
Client, after receiving client response bag, makes the following judgment: if public network address there occurs change, then client readjusts heartbeat time interval to the maximum preset; If public network address does not change, and port there occurs change or pushes unsuccessfully to identify and is set up number of times continuously and exceedes default failed read-around ratio threshold value, if then now eartbeat interval not yet reaches default eartbeat interval time threshold values, then client shortens eartbeat interval, if now eartbeat interval reaches default eartbeat interval time threshold values, then no longer shorten eartbeat interval;
When behind the maximum duration interval of next heartbeat arriving the association of logical session mark, carrying server does not receive the heartbeat packet that the client corresponding to identifying with logical session is sent, then record corresponding logical session and lose heartbeat, if the number of times that logical session loses heartbeat continuously exceedes preset times, then stop corresponding logical session.
10. the message push system of intelligent mobile terminal according to claim 9, is characterized in that, described client push module, specifically for:
Carrying server is that each propelling movement content sets up affairs;
Affairs enter into init state after setting up, and the transport layer submitting to carrying server adopts UDP bag to send to client, and affairs enter into transmission state;
If transport layer completes transmission transaction, then affairs enter the state of being sent completely, if transport layer sends affairs failure, then affairs are moved to final state;
Under affairs enter the state of being sent completely, start timer, before timing terminates, receive client respond, then affairs are moved to committed state, respond if timing confiscates client before terminating, and sending times does not reach the upper limit, then affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission, respond if timing confiscates client before terminating, and sending times reaches the upper limit, then affairs enter halted state;
Under affairs enter halted state, if the life cycle pushing content arrives, then affairs move to final state, and the life cycle pushing content is carried in the PUSH message of propelling movement management server transmission by content server, and is forwarded to carrying server by propelling movement management server;
Under affairs enter halted state, if having received heartbeat packet, be 0 with regard to reset sending times, affairs resubmited and adopt UDP bag to send to transport layer to client, affairs return state in transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510571960.8A CN105120495B (en) | 2015-09-09 | 2015-09-09 | A kind of information push method and system of intelligent mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510571960.8A CN105120495B (en) | 2015-09-09 | 2015-09-09 | A kind of information push method and system of intelligent mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105120495A true CN105120495A (en) | 2015-12-02 |
CN105120495B CN105120495B (en) | 2018-10-02 |
Family
ID=54668323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510571960.8A Active CN105120495B (en) | 2015-09-09 | 2015-09-09 | A kind of information push method and system of intelligent mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105120495B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107302551A (en) * | 2016-04-14 | 2017-10-27 | 阿里巴巴集团控股有限公司 | A kind of service data dissemination method and device |
CN107517227A (en) * | 2016-06-15 | 2017-12-26 | 阿里巴巴集团控股有限公司 | Session implementation method and device for distributed consensus system |
CN107612789A (en) * | 2017-11-09 | 2018-01-19 | 北京奇艺世纪科技有限公司 | The heartbeat interval adjusting method and device of a kind of client |
CN108834179A (en) * | 2018-05-31 | 2018-11-16 | 深圳市酷达通讯有限公司 | Adjust method, the server and client side of heart beat cycle |
CN109510878A (en) * | 2018-12-24 | 2019-03-22 | 杭州迪普科技股份有限公司 | A kind of long connection session keeping method and device |
CN109525620A (en) * | 2017-09-20 | 2019-03-26 | 中移(杭州)信息技术有限公司 | A kind of message push system, method and device |
CN109660451A (en) * | 2018-12-25 | 2019-04-19 | 北京云中融信网络科技有限公司 | A kind of method, apparatus and messaging system sending message |
CN110113362A (en) * | 2019-05-29 | 2019-08-09 | 杭州海兴泽科信息技术有限公司 | A kind of real-time method for pushing of message based on MQTT agreement |
CN110661836A (en) * | 2018-06-29 | 2020-01-07 | 杭州海康威视系统技术有限公司 | Message routing method, device and system, and storage medium |
CN112926069A (en) * | 2021-03-01 | 2021-06-08 | 安徽商信政通信息技术股份有限公司 | Non-physical contact lossless interaction method and system for confidential data of government affair system |
CN113382050A (en) * | 2021-05-27 | 2021-09-10 | 北京皮尔布莱尼软件有限公司 | Message transmission method, system, computing device and storage medium |
CN115378990A (en) * | 2022-08-09 | 2022-11-22 | 北京联合大学 | Automatic discovery network informatization teaching demonstration method based on 4G/5G communication system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040156334A1 (en) * | 2002-03-29 | 2004-08-12 | Akira Okubo | Radio network system and radio communication control method |
CN101534244A (en) * | 2009-02-09 | 2009-09-16 | 华为技术有限公司 | Method, device and system for load distribution |
CN102387216A (en) * | 2011-11-11 | 2012-03-21 | 广东威创视讯科技股份有限公司 | Information sharing method and system based on relationship objects |
CN102571885A (en) * | 2010-12-31 | 2012-07-11 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted information push service system and method |
CN102685155A (en) * | 2011-03-07 | 2012-09-19 | 联想(北京)有限公司 | Content delivery method, content delivery server and content delivery proxy server |
CN103200214A (en) * | 2012-01-10 | 2013-07-10 | 深圳市快播科技有限公司 | Method and system for processing off-line messages in centralized mode |
CN103220636A (en) * | 2012-01-19 | 2013-07-24 | 华为终端有限公司 | Terminal application client registration method and system and device |
EP2713641A1 (en) * | 2011-12-27 | 2014-04-02 | Huawei Device Co., Ltd. | Method for receiving data, method for transmitting data, mobile terminal, and server |
CN104584489A (en) * | 2012-08-30 | 2015-04-29 | 三星电子株式会社 | Push message service system and method |
CN104852991A (en) * | 2015-06-01 | 2015-08-19 | 上海雷腾软件股份有限公司 | Distributed push server system and data push method using the system |
-
2015
- 2015-09-09 CN CN201510571960.8A patent/CN105120495B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040156334A1 (en) * | 2002-03-29 | 2004-08-12 | Akira Okubo | Radio network system and radio communication control method |
CN101534244A (en) * | 2009-02-09 | 2009-09-16 | 华为技术有限公司 | Method, device and system for load distribution |
CN102571885A (en) * | 2010-12-31 | 2012-07-11 | 上海博泰悦臻电子设备制造有限公司 | Vehicle-mounted information push service system and method |
CN102685155A (en) * | 2011-03-07 | 2012-09-19 | 联想(北京)有限公司 | Content delivery method, content delivery server and content delivery proxy server |
CN102387216A (en) * | 2011-11-11 | 2012-03-21 | 广东威创视讯科技股份有限公司 | Information sharing method and system based on relationship objects |
EP2713641A1 (en) * | 2011-12-27 | 2014-04-02 | Huawei Device Co., Ltd. | Method for receiving data, method for transmitting data, mobile terminal, and server |
CN103200214A (en) * | 2012-01-10 | 2013-07-10 | 深圳市快播科技有限公司 | Method and system for processing off-line messages in centralized mode |
CN103220636A (en) * | 2012-01-19 | 2013-07-24 | 华为终端有限公司 | Terminal application client registration method and system and device |
CN104584489A (en) * | 2012-08-30 | 2015-04-29 | 三星电子株式会社 | Push message service system and method |
CN104852991A (en) * | 2015-06-01 | 2015-08-19 | 上海雷腾软件股份有限公司 | Distributed push server system and data push method using the system |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107302551A (en) * | 2016-04-14 | 2017-10-27 | 阿里巴巴集团控股有限公司 | A kind of service data dissemination method and device |
CN107302551B (en) * | 2016-04-14 | 2021-07-02 | 阿里巴巴集团控股有限公司 | Service data publishing method and device |
CN107517227A (en) * | 2016-06-15 | 2017-12-26 | 阿里巴巴集团控股有限公司 | Session implementation method and device for distributed consensus system |
CN107517227B (en) * | 2016-06-15 | 2020-10-13 | 阿里巴巴集团控股有限公司 | Session implementation method and device for distributed consistency system |
CN109525620A (en) * | 2017-09-20 | 2019-03-26 | 中移(杭州)信息技术有限公司 | A kind of message push system, method and device |
CN109525620B (en) * | 2017-09-20 | 2021-11-16 | 中移(杭州)信息技术有限公司 | Message pushing system, method and device |
CN107612789B (en) * | 2017-11-09 | 2020-08-28 | 北京奇艺世纪科技有限公司 | Heartbeat interval adjusting method and device for client |
CN107612789A (en) * | 2017-11-09 | 2018-01-19 | 北京奇艺世纪科技有限公司 | The heartbeat interval adjusting method and device of a kind of client |
CN108834179A (en) * | 2018-05-31 | 2018-11-16 | 深圳市酷达通讯有限公司 | Adjust method, the server and client side of heart beat cycle |
CN108834179B (en) * | 2018-05-31 | 2021-07-09 | 深圳市酷达通讯有限公司 | Method, server and client for adjusting heartbeat cycle |
CN110661836B (en) * | 2018-06-29 | 2021-11-09 | 杭州海康威视系统技术有限公司 | Message routing method, device and system, and storage medium |
CN110661836A (en) * | 2018-06-29 | 2020-01-07 | 杭州海康威视系统技术有限公司 | Message routing method, device and system, and storage medium |
CN109510878A (en) * | 2018-12-24 | 2019-03-22 | 杭州迪普科技股份有限公司 | A kind of long connection session keeping method and device |
CN109660451A (en) * | 2018-12-25 | 2019-04-19 | 北京云中融信网络科技有限公司 | A kind of method, apparatus and messaging system sending message |
CN110113362A (en) * | 2019-05-29 | 2019-08-09 | 杭州海兴泽科信息技术有限公司 | A kind of real-time method for pushing of message based on MQTT agreement |
CN112926069A (en) * | 2021-03-01 | 2021-06-08 | 安徽商信政通信息技术股份有限公司 | Non-physical contact lossless interaction method and system for confidential data of government affair system |
CN113382050A (en) * | 2021-05-27 | 2021-09-10 | 北京皮尔布莱尼软件有限公司 | Message transmission method, system, computing device and storage medium |
CN113382050B (en) * | 2021-05-27 | 2022-11-11 | 北京皮尔布莱尼软件有限公司 | Message transmission method, system, computing device and storage medium |
CN115378990A (en) * | 2022-08-09 | 2022-11-22 | 北京联合大学 | Automatic discovery network informatization teaching demonstration method based on 4G/5G communication system |
CN115378990B (en) * | 2022-08-09 | 2023-11-10 | 北京联合大学 | Automatic discovery network informatization teaching demonstration method based on 4G/5G communication system |
Also Published As
Publication number | Publication date |
---|---|
CN105120495B (en) | 2018-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105120495A (en) | Information push method and system for smart mobile terminal | |
CN101189844A (en) | Means and method for notification | |
CN102571885B (en) | Vehicle-mounted information push service system and method | |
CN104270302B (en) | The transmission system of online order and transfer approach | |
CN101202715B (en) | Method and apparatus for multicast authority auto deployment | |
CN102594672A (en) | Method and system applicable to high-quality internet communication in low-reliability network environment | |
CN103685163A (en) | Disaster-tolerant method, system and device in IMS network | |
CN102136920A (en) | Method and device for web conference | |
CN101420389A (en) | File transferring system and method | |
CN105191258B (en) | The heavy-route of Diameter order | |
CN101909019A (en) | Method and system for processing request message | |
CN101426261B (en) | Method for service handling of multimedia subsystem, P-CSCF, I-CSCF and subsystem | |
CN202004788U (en) | Vehicle-mounted information push service system | |
WO2020244631A1 (en) | Service call processing method and device | |
US20160241601A1 (en) | Technique for restoring a service in a network | |
US8307104B2 (en) | Submit report handling in SMSIP | |
CN101860804B (en) | Accession implementing method and accession implementing system for predefined accession group session | |
CN110572350B (en) | Method and equipment for carrying out IMS service registration | |
CN105379322B (en) | Transmission method, terminal and the communication equipment of ProSe information | |
JP5973317B2 (en) | Terminal and method | |
CN113904860A (en) | Data transmission method, device, equipment, system and storage medium | |
CN104094575A (en) | Method and apparatus for improved handling of ims node blacklisting | |
CN108462612A (en) | Adjust method, apparatus, electronic equipment and the storage medium of RTP media flow transmissions | |
CN102710805A (en) | Method and device for updating internet protocol (IP) address | |
EP3471465A1 (en) | Method of and device for determining a communication network for providing a communication service to a terminal communication 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |