CN105120495B - A kind of information push method and system of intelligent mobile terminal - Google Patents

A kind of information push method and system of intelligent mobile terminal Download PDF

Info

Publication number
CN105120495B
CN105120495B CN201510571960.8A CN201510571960A CN105120495B CN 105120495 B CN105120495 B CN 105120495B CN 201510571960 A CN201510571960 A CN 201510571960A CN 105120495 B CN105120495 B CN 105120495B
Authority
CN
China
Prior art keywords
client
push
service device
carrying service
session
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.)
Active
Application number
CN201510571960.8A
Other languages
Chinese (zh)
Other versions
CN105120495A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510571960.8A priority Critical patent/CN105120495B/en
Publication of CN105120495A publication Critical patent/CN105120495A/en
Application granted granted Critical
Publication of CN105120495B publication Critical patent/CN105120495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution

Abstract

The present invention discloses a kind of information push method and system of intelligent mobile terminal, and method includes:Push management server receives the content server registration request of content server, and logical session is established with content server;Client establishes logical session request to push management server transmission, push loading condition of the management server according to each carrying service device, select a carrying service device and client associate, and the information of carrying service device is returned into client, client establishes logical session request according to the information of received carrying service device to the transmission of carrying service device;Push management server receives the PUSH message having been established transmitted by the content server of logical session, and push management server is forwarded to the carrying service device associated by the client for meeting targets of messages recipient's feature by content is pushed;Carrying service device is sent to client by content is pushed.The present invention can carry out load balancing distribution well, improve the push experience of client.

Description

A kind of information push method and system of intelligent mobile terminal
Technical field
The present invention relates to the correlative technology field of intelligent mobile terminal, the message of especially a kind of intelligent mobile terminal pushes Method and system.
Background technology
Modern Intelligent mobile communication terminal equipment (such as smart mobile phone) can access data network by 3G, 4G or WIFI, Then the various message pushed on server are received.
Server can provide one or several public network addresses, be connected for client.And terminal device be usually located at it is various After NAT, fire wall facility, this has resulted in two results:First, client is invisible, communication must be initiated by client Afterwards, server-side can just send messages to client;Second is that client was sent messages in a period of time after server, if do not had If having lasting interacting message, nat port mapping will fail, and server-side also cannot send messages to visitor in address again accordingly Family end.
For this purpose, the prior art mainly realizes push in the following way:
1. client and content server are all registered in message push server;
2. content service is sent a message in message push server;
3. message push server pushes messages to registered destination client.
However, there are a disadvantages for above-mentioned technology, i.e., pushed away when all client and content server are all registered to message It send on server, can lead to message push server load excessive, and message push server is by all content servers Message all mixes on the same server, cannot achieve load balancing distribution.
Invention content
Based on this, it is necessary to be directed to existing push technology, realize the technical issues of load balancing distribution has difficulties, carry For the information push method and system of a kind of intelligent mobile terminal.
A kind of information push method of intelligent mobile terminal, including:
Content server registration step, including:Push management server receives the content server note of content server Volume request, records and preserves the information of content server, logical session is established with content server;
Client registers step, including:Client establishes logical session request, push pipe to push management server transmission Loading condition of the server according to each carrying service device is managed, selects a carrying service device and client associate, and carrying is taken The information of business device returns to client, and client is built according to the information of received carrying service device to the transmission of carrying service device Vertical logical session request, carrying service device are that client establishes public network address and port numbers, and logical session is established with client;
Content push step, including:Push management server, which receives, to be had been established the content server of logical session and is sent out The PUSH message sent, the PUSH message include targets of messages recipient feature and push content, and push management server will push away Content is sent to be forwarded to the carrying service device associated by the client for meeting targets of messages recipient's feature;
Client push step, including:Carrying service device is sent to client by content is pushed.
A kind of message push system of intelligent mobile terminal, including:
Content server registration module, is used for:Push management server receives the content server note of content server Volume request, records and preserves the information of content server, logical session is established with content server;
Client registers module, is used for:Client establishes logical session request, push pipe to push management server transmission Loading condition of the server according to each carrying service device is managed, selects a carrying service device and client associate, and carrying is taken The information of business device returns to client, and client is built according to the information of received carrying service device to the transmission of carrying service device Vertical logical session request, carrying service device are that client establishes public network address and port numbers, and logical session is established with client;
Content push module, is used for:Push management server, which receives, to be had been established the content server of logical session and is sent out The PUSH message sent, the PUSH message include targets of messages recipient feature and push content, and push management server will push away Content is sent to be forwarded to the carrying service device associated by the client for meeting targets of messages recipient's feature;
Client push module, is used for:Carrying service device is sent to client by content is pushed.
The client of the present invention is registered twice, i.e., first to after push management server registration, then to carrying service Device is registered.Since using registering twice, push management server can carry out load balancing distribution well, improve The push of client is experienced.
Description of the drawings
Fig. 1 is a kind of work flow diagram of the information push method 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 service device of preferred embodiment;
Fig. 4 is in preferred embodiment, and content server establishes the work flow diagram to the connection of push server;
Fig. 5 is the work flow diagram for the connection that preferred embodiment push proxy is established to push management server;
Fig. 6 is the workflow of preferred embodiment client and the initialization of the logical session of carrying service device Figure;
Fig. 7 is the work flow diagram of content server PUSH message in preferred embodiment;
Fig. 8 is the transaction state machine of preferred embodiment;
Fig. 9 is the transaction state machine of preferred embodiment;
Figure 10 is a kind of structure mould block diagram of the message push system of intelligent mobile terminal of the present invention.
Specific implementation mode
The present invention will be further described in detail in the following with reference to the drawings and specific embodiments.
It is as shown in Figure 1 a kind of work flow diagram of the information push method of intelligent mobile terminal of the present invention, including:
Step S101, including:Push management server receives the content server registration request of content server, record And the information of content server is preserved, establish logical session with content server;
Step S102, including:Client establishes logical session request to push management server transmission, pushes management service Device selects a carrying service device and client associate according to the loading condition of each carrying service device, and by carrying service device Information returns to client, and client establishes logic according to the information of received carrying service device to the transmission of carrying service device Session request, carrying service device are that client establishes public network address and port numbers, and logical session is established with client;
Step S103, including:Push management server, which receives, to be had been established transmitted by the content server of logical session PUSH message, the PUSH message include targets of messages recipient feature and push content, and push management server will be in push Hold the carrying service device being forwarded to associated by the client for meeting targets of messages recipient's feature;
Step S104, including:Carrying service device is sent to client by content is pushed.
Content server is registered in step S101 in pushing management server, and client is then registered twice. The present invention by the way of registering twice, and client only needs to know the address information of push management server, then by pushing Management server distributes suitable carrying service device for it, and re-starts registration to establish final logical session.It establishes After logical session, then in step S104, carrying service device will be pushed away in step S103 by what push management server was forwarded It send in content push to client.
The client of the present invention is registered twice, i.e., first to after push management server registration, then to carrying service Device is registered.Since using registering twice, push management server can carry out load balancing distribution well, improve The push of client is experienced.
The step S102 in one of the embodiments, specifically includes:
Client is asked to the logical session of establishing that push management server transmission includes session label information, push management Server verifies client, if the verification passes, then pushes load feelings of the management server according to each carrying service device The information of one carrying service device is returned to client by condition, and the logical session that recording conversation identification information is identified is legal Session does not return to wrong response if verification if;
Client establishes logic according to the information of received current carrying service device to the transmission of current carrying service device Session request;
Receive client transmission includes the carrying service device for establishing logical session request of session label information, to pushing away It send management server inquiry whether legal about the logical session of session label information, confirms about session when from management server The logical session of identification information establishes logic after legitimate conversation, to be that client establishes public network address and port numbers with client Session;
Client to transmitted by push management server establish the included session label information of logical session request with Client is consistent to the session label information established included by logical session request transmitted by carrying service device.
In the present embodiment, it is responsible for verifying client by push management server, it, then can will be right as long as being verified The logical session answered is identified as legitimate conversation.Since client establishes logical session request to transmitted by push management server Included session label information establishes the included session of logical session request with client to transmitted by carrying service device Identification information is consistent, thus carrying service device its only need logical session of the inquiry push management server about session label information Whether legal, i.e., carrying service device is without verifying client, to reduce between client and carrying service device Communication overhead.
The logical session request of establishing that client is sent to push management server in one of the embodiments, is TCP Packet, it is UDP packets that client was sent to carrying service device, which establishes logical session request,.
TCP (Transmiss ion Control Protocol) packets are transmission control protocol packet, UDP (User Datagram Protocol) packet i.e. User Datagram Protocol packet.
What client was sent to push management server establishes logical session request only foundation once, therefore uses TCP packets It is attached to ensure quality.And the logical session request of establishing that client is sent to carrying service device need to be established for a long time, and need To continue to send message, in order to reduce the expense of message transmission, and more flexible processing disconnection test problems, therefore the present embodiment UDP is used to it, the communication overhead being further reduced between client and carrying service device.
Further include in one of the embodiments,:Heartbeat maintains step, the heartbeat to maintain step, including:
Client sends heartbeat packet to carrying service device according to preset heartbeat time interval, and the heartbeat packet is binary system Packet, including:Logical session for identifying the logical session that client and carrying service device are established identifies, and next heartbeat Maximum duration interval;
After carrying service device receives the heartbeat packet of client, by logical session mark and next heartbeat maximum duration interval Association preserves, and checks whether the public network address of client and port numbers are changed, if the public network address of client or end Slogan changes, then changed public network address or changed port numbers are attached to client responds in packet, such as There is the packet of push failure in fruit, then be arranged in client responds packet between the heartbeat packet twice in succession for receiving client transmission Push unsuccessfully identifies, and after having built client and having responded packet, client is responded packet and is sent to client;
Client makes the following judgment after receiving client and responding packet:If public network address is changed, client Heartbeat time interval is readjusted to preset maximum value in end;If public network address does not change, and port is become Change or push unsuccessfully identifies and number is continuously set more than default failure read-around ratio threshold value, then if eartbeat interval is still at this time Eartbeat interval time threshold is not up to preset, then client shortens eartbeat interval, if eartbeat interval reaches default heartbeat at this time Interval time threshold value, then no longer shorten eartbeat interval;
After reaching logical session and identifying the maximum duration interval of associated next heartbeat, carrying service device do not receive with The heartbeat packet that the corresponding client of logical session mark is sent, then record corresponding logical session and lose heartbeat, if logic The number that heartbeat is continuously lost in session is more than preset times, then stops corresponding logical session.
Wherein, client is after receiving client and responding packet, the judgement of progress, specially:
If public network address is changed, then it represents that user access network may have occurred variation, and client is adjusted again Whole heartbeat time interval starts a new eartbeat interval and adjusts the period to preset maximum value;
If only port is changed or is pushed unsuccessfully mark and number is set continues to exceed threshold value, then it represents that The eartbeat interval of user may be excessive.If predetermined threshold value has not yet been reached in eartbeat interval at this time, client shortens eartbeat interval, Otherwise no longer shorten eartbeat interval, this Communication Model is changed in quality obtains the quasi real time model of message for one by poll.
Therefore, when Network status deteriorates, server cannot be but every in client by message real time push to client It when secondary transmission heartbeat packet, is responded by heartbeat, notice client takes message, and so, message model has been degenerated to poll side Formula, the present embodiment can shorten polling interval in this case, approximate to complete message real time push.
The heartbeat packet of the present embodiment uses binary system packet, to be further reduced communication overhead.Meanwhile passing through heartbeat machine System maintains the logical session between client and carrying service device.
The step S104 in one of the embodiments, specifically includes:
Carrying service device is that each push content establishes an affairs;
Affairs enter init state after establishing, and the transport layer for submitting to carrying service device uses UDP to client Packet is sent, and affairs enter state in transmission;
If transport layer completes transmission transaction, affairs, which enter, is sent completely state, if transport layer sends affairs failure, Affairs are then moved into final state;
In the case where affairs enter and are sent completely state, start timer, client response is received before timing terminates, then Affairs are moved into committed state, if timing confiscates client response before terminating, and sending times do not reach Affairs are then resubmitted to transport layer and are sent to client using UDP packets by limit, and affairs return to state in transmission, if timing Time confiscates client response before terminating, and sending times reach the upper limit, then affairs enter halted state;
In the case where affairs enter halted state, if the life cycle of push content has arrived, affairs move to final state, push away The life cycle of content is sent to be carried from content server into the PUSH message of push management server transmission, and by push management clothes Business device is forwarded to carrying service device;
In the case where affairs enter halted state, if having received heartbeat packet, it is 0 to reset upon sending times, again by affairs It submits to transport layer to send using UDP packets to client, affairs return to state in transmission.
It is sent to reduce communication overhead, and in order to ensure transmission quality since the transport layer of the present embodiment uses UDP packets, Therefore the mode that the present embodiment switches affairs adoption status also ensures transmission quality while reducing communication overhead.
It is illustrated in figure 2 the system frame of preferred embodiment, including:
Content server 21:There is the server of PUSH message demand, need to be registered in push management server, could push Message.
Push management server 22:The registration request for receiving content server is verifying its legitimacy, you can response is sent Request;The registration request that can receive multiple push proxies simultaneously after verifying its legitimacy, is born according to each carrying service device is current Situation is carried, an online carrying service device appropriate is distributed for it, is responsible for the message push of the push proxy.
Carrying service device 23:It safeguards the real-time communication channel with push proxy, when having message, pushes messages to push generation Reason.
Push proxy 24:It is deployed in terminal, receives the registration request of this terminal applies, receive push server push Message gives message distribution to each application.
Terminal applies 25:There is the application of message subscribing demand.
Wherein, carrying service device 23 includes application layer 31 as shown in Figure 3, logical session layer 32, transaction layer 33 and transmission Layer 34.
As described in Figure 4 in preferred embodiment, content server establishes the work to the connection of push server Flow chart, including:
Step S401, content server establish to message the connection for pushing management server;
Step S402, content server send registration request and give push management server;
Step S403, the legitimacy of push management server verification log-on message, is patrolled if legal for its distribution Session identification is collected, is informed if illegal by responding, mistake is otherwise sent and responds, indicate error reason, disconnect this link;
Step S404 is established after push management server receives correct respond with the logical session of content server, and Handling result is sent to content server.
It is illustrated in figure 5 the workflow for the connection that preferred embodiment push proxy is established to push management server Cheng Tu, including:
Step S501, client push agency initiate the TCP connection to push management server;
Step S502, client request establish logical session, and session label information is contained in request and last time receives The sequence number of the last item PUSH message arrived;
Step S503, the legitimacy of push management server verification client-side information, continues to handle, otherwise Ru legal Mistake is sent to respond;
Step S504, push management server distribute a carrying clothes according to the current load situation of each carrying service device Business device, is responsible for the practical push task of the logical session;
Step S505 pushes management server by the specifying information (address, port numbers, connection identifier etc.) of carrying service device And session identification is sent to push proxy;
Step S506, push proxy disconnect and push the connection of management server after receiving correct respond.
It is illustrated in figure 6 the work of preferred embodiment client and the initialization of the logical session of carrying service device Flow chart, including:
Step S601, push proxy ask the carrying service device with push management server distribution to be built in the form of UDP packets Vertical logical session;
Step S602, after carrying service device is connected to the request of push proxy, this session of inquiry push management server Legitimacy, it is such as legal, continue to following processing;Otherwise, mistake is sent to respond;
Step S603, carrying service device are sent correctly response to client, this response includes the public network address of client With port numbers;
Step S604, carrying service device retrieve each content server alive message queue, take out and have been more than the logical session Receive the message of sequence number;
Step S605, logical session layer will be that each message establishes an affairs, give transaction layer processing.
Wherein, there are two types of situations for the termination of client and the logical session of carrying service device:
1) it is more than not receive heartbeat packet three times;
2) client request terminates.
It is illustrated in figure 7 in preferred embodiment, the work flow diagram of content server PUSH message, including:
Step S701, content server send a message to push management server, and targets of messages reception is specified in message Feature, content and the term of validity of side;
Step S702 after push management server distributes a unified sequence number to the message, is transmitted the message to each Carrying service device;
Message is put into the corresponding message queue of the server by step S703, carrying service device;
New information is sent to each logical session by step S704, carrying service device;
Step S705 after logical session establishes affairs for the message, gives affairs to transaction layer processing.
It is illustrated in figure 8 the transaction state machine of preferred embodiment, a shape as shown in Figure 8 can be corresponded to per affairs State machine, including:Init state 81, send in state 82, be sent completely state 83, committed state 84,85 and of halted state Final state 86, specifically:
1) affairs enter init state after establishing;
2) when init state, message can be submitted to transport layer process;
3) after transport layer sends message success, it is notified that transaction layer, affairs move to committed state;Transport layer transmission is lost It loses, into final state;
4) after transport layer has sent message, transaction layer starts a timer, if after time is up, also confiscated back It answers, and sending times do not reach the upper limit, will retransmit;If reaching the upper limit, session layer is noted that, will enter one temporarily Stop state.
5) in halted state, if having received heartbeat packet, it is 0 to reset upon sending times, restarts to send.
When push proxy receives PUSH message, then according to the processing strategy of registered message, the message is handled --- it is aobvious Show, notice application or discarding.
It is illustrated in figure 9 the work flow diagram of the heartbeat service logic session of preferred embodiment, including:
Step S901, push proxy send heartbeat packet to carrying service device according to the time interval for being initialized as 60 seconds, are Ensure that flow is few as possible, heartbeat packet is a binary system packet, only contains information necessary to verification, and next heartbeat is most Long interval of time;
Step S902, carrying service device can retrieve the corresponding session information of the heartbeat packet, such as session after receiving heartbeat packet It is legal, it continues to handle, otherwise will abandon this packet, and do not make any response;
Step S903, carrying service device checks whether client address port numbers are changed, if there is just will be new Address port number is attached in response;
Step S904, carrying service device are sent response to client;
Step S905, client checks whether address and port change after receiving response, if only port is sent out Variation has been given birth to, or has had the message of loss and has recurred three times, port mapping ageing time has been considered as and is less than eartbeat interval, The eartbeat interval of appropriate adjustment the machine, but should not exceed the minimum interval (such as 20S) of a setting.
It is as shown in Figure 10 a kind of structure mould block diagram of the message push system of intelligent mobile terminal of the present invention, including:
Content server registration module 1001, is used for:Push management server receives the content service of content server Device registration request, records and preserves the information of content server, and logical session is established with content server;
Client registers module 1002, is used for:Client establishes logical session request to push management server transmission, pushes away It send management server according to the loading condition of each carrying service device, selects a carrying service device and client associate, and will hold The information for carrying server returns to client, and client is sent out according to the information of received carrying service device to carrying service device It send and establishes logical session request, carrying service device is that client establishes public network address and port numbers, and logic meeting is established with client Words;
Content push module 1003, is used for:Push management server receives the content server that logical session has been established Transmitted PUSH message, the PUSH message include targets of messages recipient feature and push content, push management server Push content is forwarded to the carrying service device associated by the client for meeting targets of messages recipient's feature;
Client push module 1004, is used for:Carrying service device is sent to client by content is pushed.
The client registers module in one of the embodiments, is specifically used for:
Client is asked to the logical session of establishing that push management server transmission includes session label information, push management Server verifies client, if the verification passes, then pushes load feelings of the management server according to each carrying service device The information of one carrying service device is returned to client by condition, and the logical session that recording conversation identification information is identified is legal Session does not return to wrong response if verification if;
Client establishes logic according to the information of received current carrying service device to the transmission of current carrying service device Session request;
Receive client transmission includes the carrying service device for establishing logical session request of session label information, to pushing away It send management server inquiry whether legal about the logical session of session label information, confirms about session when from management server The logical session of identification information establishes logic after legitimate conversation, to be that client establishes public network address and port numbers with client Session;
Client to transmitted by push management server establish the included session label information of logical session request with Client is consistent to the session label information established included by logical session request transmitted by carrying service device.
The logical session request of establishing that client is sent to push management server in one of the embodiments, is TCP Packet, it is UDP packets that client was sent to carrying service device, which establishes logical session request,.
Further include in one of the embodiments,:Heartbeat maintenance module, the heartbeat maintenance module, is used for:
Client sends heartbeat packet to carrying service device according to preset heartbeat time interval, and the heartbeat packet is binary system Packet, including:Logical session for identifying the logical session that client and carrying service device are established identifies, and next heartbeat Maximum duration interval;
After carrying service device receives the heartbeat packet of client, by logical session mark and next heartbeat maximum duration interval Association preserves, and checks whether the public network address of client and port numbers are changed, if the public network address of client or end Slogan changes, then changed public network address or changed port numbers are attached to client responds in packet, such as There is the packet of push failure in fruit, then be arranged in client responds packet between the heartbeat packet twice in succession for receiving client transmission Push unsuccessfully identifies, and after having built client and having responded packet, client is responded packet and is sent to client;
Client makes the following judgment after receiving client and responding packet:If public network address is changed, client Heartbeat time interval is readjusted to preset maximum value in end;If public network address does not change, and port is become Change or push unsuccessfully identifies and number is continuously set more than default failure read-around ratio threshold value, then if eartbeat interval is still at this time Eartbeat interval time threshold is not up to preset, then client shortens eartbeat interval, if eartbeat interval reaches default heartbeat at this time Interval time threshold value, then no longer shorten eartbeat interval;
After reaching logical session and identifying the maximum duration interval of associated next heartbeat, carrying service device do not receive with The heartbeat packet that the corresponding client of logical session mark is sent, then record corresponding logical session and lose heartbeat, if logic The number that heartbeat is continuously lost in session is more than preset times, then stops corresponding logical session.
The client push module in one of the embodiments, is specifically used for:
Carrying service device is that each push content establishes an affairs;
Affairs enter init state after establishing, and the transport layer for submitting to carrying service device uses UDP to client Packet is sent, and affairs enter state in transmission;
If transport layer completes transmission transaction, affairs, which enter, is sent completely state, if transport layer sends affairs failure, Affairs are then moved into final state;
In the case where affairs enter and are sent completely state, start timer, client response is received before timing terminates, then Affairs are moved into committed state, if timing confiscates client response before terminating, and sending times do not reach Affairs are then resubmitted to transport layer and are sent to client using UDP packets by limit, and affairs return to state in transmission, if timing Time confiscates client response before terminating, and sending times reach the upper limit, then affairs enter halted state;
In the case where affairs enter halted state, if the life cycle of push content has arrived, affairs move to final state, push away The life cycle of content is sent to be carried from content server into the PUSH message of push management server transmission, and by push management clothes Business device is forwarded to carrying service device;
In the case where affairs enter halted state, if having received heartbeat packet, it is 0 to reset upon sending times, again by affairs It submits to transport layer to send using UDP packets to client, affairs return to state in transmission.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of information push method of intelligent mobile terminal, which is characterized in that including:
Content server registration step, including:The content server registration that push management server receives content server is asked It asks, records and preserve the information of content server, logical session is established with content server;
Client registers step, including:Client establishes logical session request, push management clothes to push management server transmission Device be engaged according to the loading condition of each carrying service device, selects a carrying service device and client associate, and by carrying service device Information return to client, client sends to establish to carrying service device and patrol according to the information of received carrying service device Session request is collected, carrying service device is that client establishes public network address and port numbers, and logical session is established with client;
Content push step, including:Push management server, which receives, to be had been established transmitted by the content server of logical session PUSH message, the PUSH message include targets of messages recipient feature and push content, and push management server will be in push Hold the carrying service device being forwarded to associated by the client for meeting targets of messages recipient's feature;
Client push step, including:Carrying service device is sent to client by content is pushed.
2. the information push method of intelligent mobile terminal according to claim 1, which is characterized in that the client registers Step specifically includes:
Client is asked to the logical session of establishing that push management server transmission includes session label information, pushes management service Device verifies client, if the verification passes, then pushes loading condition of the management server according to each carrying service device, will The information of one carrying service device returns to client, and the logical session that recording conversation identification information is identified is legitimate conversation, Wrong response is not returned if if verification;
Client establishes logical session according to the information of received current carrying service device to the transmission of current carrying service device Request;
Receive client transmission includes the carrying service device for establishing logical session request of session label information, is managed to push It is whether legal about the logical session of session label information to manage server inquiry, confirms about session identification when from management server The logical session of information establishes logical session after legitimate conversation, to be that client establishes public network address and port numbers with client;
Client establishes logical session request included session label information and client to transmitted by push management server It holds consistent to the session label information established included by logical session request transmitted by carrying service device.
3. the information push method of intelligent mobile terminal according to claim 1, which is characterized in that client is managed to push It is TCP packets that reason server was sent, which establishes logical session request, and the logical session of establishing that client is sent to carrying service device is asked It asks as UDP packets.
4. the information push method of intelligent mobile terminal according to claim 1, which is characterized in that further include:Heartbeat is tieed up Step is held, the heartbeat maintains step, including:
Client sends heartbeat packet to carrying service device according to preset heartbeat time interval, and the heartbeat packet is binary system packet, Including:Logical session for identifying the logical session that client and carrying service device are established identifies, and next heartbeat is most Long interval of time;
After carrying service device receives the heartbeat packet of client, logical session mark is associated with next heartbeat maximum duration interval It preserves, checks whether the public network address of client and port numbers are changed, if the public network address or port numbers of client It changes, then changed public network address or changed port numbers is attached in client response, if receiving There is the packet of push failure between the heartbeat packet twice in succession sent to client, then the setting push failure in client response Client is responded packet and is sent to client by mark after having built client and having responded packet;
Client makes the following judgment after receiving client and responding packet:If public network address is changed, client weight The new heartbeat time interval that adjusts is to preset maximum value;If public network address does not change, and port is changed or Unsuccessfully number is continuously set more than default failure read-around ratio threshold value, then if eartbeat interval not yet reaches at this time in mark to person's push To default eartbeat interval time threshold, then client shortens eartbeat interval, if eartbeat interval reaches default eartbeat interval at this time Time threshold then no longer shortens eartbeat interval;
After arrival logical session identifies the maximum duration interval of associated next heartbeat, carrying service device does not receive and logic The heartbeat packet that client corresponding to session identification is sent then records corresponding logical session and loses heartbeat, if logical session The continuous number for losing heartbeat is more than preset times, then stops corresponding logical session.
5. the information push method of intelligent mobile terminal according to claim 4, which is characterized in that the client push Step specifically includes:
Carrying service device is that each push content establishes an affairs;
Affairs enter init state after establishing, and the transport layer for submitting to carrying service device is sent out to client using UDP packets It send, affairs enter state in transmission;
If transport layer completes transmission transaction, affairs, which enter, is sent completely state, will if transport layer sends affairs failure Affairs move to final state;
In the case where affairs enter and are sent completely state, start timer, client response is received before timing terminates, then by thing Business moves to committed state, if timing confiscates client response before terminating, and sending times do not reach the upper limit, then Affairs are resubmitted to transport layer to send using UDP packets to client, affairs return to state in transmission, if timing knot Client response is confiscated before beam, and sending times reach the upper limit, then affairs enter halted state;
In the case where affairs enter halted state, if the life cycle of push content has arrived, affairs move to final state, in push It is carried in the PUSH message that the life cycle of appearance sends from content server to push management server, and by push management server It is forwarded to carrying service device;
In the case where affairs enter halted state, if having received heartbeat packet, it is 0 to reset upon sending times, and affairs are resubmited It is sent to client using UDP packets to transport layer, affairs return to state in transmission.
6. a kind of message push system of intelligent mobile terminal, which is characterized in that including:
Content server registration module, is used for:The content server registration that push management server receives content server is asked It asks, records and preserve the information of content server, logical session is established with content server;
Client registers module, is used for:Client establishes logical session request, push management clothes to push management server transmission Device be engaged according to the loading condition of each carrying service device, selects a carrying service device and client associate, and by carrying service device Information return to client, client sends to establish to carrying service device and patrol according to the information of received carrying service device Session request is collected, carrying service device is that client establishes public network address and port numbers, and logical session is established with client;
Content push module, is used for:Push management server, which receives, to be had been established transmitted by the content server of logical session PUSH message, the PUSH message include targets of messages recipient feature and push content, and push management server will be in push Hold the carrying service device being forwarded to associated by the client for meeting targets of messages recipient's feature;
Client push module, is used for:Carrying service device is sent to client by content is pushed.
7. the message push system of intelligent mobile terminal according to claim 6, which is characterized in that the client registers Module is specifically used for:
Client is asked to the logical session of establishing that push management server transmission includes session label information, pushes management service Device verifies client, if the verification passes, then pushes loading condition of the management server according to each carrying service device, will The information of one carrying service device returns to client, and the logical session that recording conversation identification information is identified is legitimate conversation, Wrong response is not returned if if verification;
Client establishes logical session according to the information of received current carrying service device to the transmission of current carrying service device Request;
Receive client transmission includes the carrying service device for establishing logical session request of session label information, is managed to push It is whether legal about the logical session of session label information to manage server inquiry, confirms about session identification when from management server The logical session of information establishes logical session after legitimate conversation, to be that client establishes public network address and port numbers with client;
Client establishes logical session request included session label information and client to transmitted by push management server It holds consistent to the session label information established included by logical session request transmitted by carrying service device.
8. the message push system of intelligent mobile terminal according to claim 6, which is characterized in that client is managed to push It is TCP packets that reason server was sent, which establishes logical session request, and the logical session of establishing that client is sent to carrying service device is asked It asks as UDP packets.
9. the message push system of intelligent mobile terminal according to claim 6, which is characterized in that further include:Heartbeat is tieed up Module is held, the heartbeat maintenance module is used for:
Client sends heartbeat packet to carrying service device according to preset heartbeat time interval, and the heartbeat packet is binary system packet, Including:Logical session for identifying the logical session that client and carrying service device are established identifies, and next heartbeat is most Long interval of time;
After carrying service device receives the heartbeat packet of client, logical session mark is associated with next heartbeat maximum duration interval It preserves, checks whether the public network address of client and port numbers are changed, if the public network address or port numbers of client It changing, then changed public network address or changed port numbers are attached to client responds in packet, if The packet to fail in the presence of push between the heartbeat packet twice in succession of client transmission is received, then the setting push in client responds packet Failure identifies, and after having built client and having responded packet, client is responded packet and is sent to client;
Client makes the following judgment after receiving client and responding packet:If public network address is changed, client weight The new heartbeat time interval that adjusts is to preset maximum value;If public network address does not change, and port is changed or Unsuccessfully number is continuously set more than default failure read-around ratio threshold value, then if eartbeat interval not yet reaches at this time in mark to person's push To default eartbeat interval time threshold, then client shortens eartbeat interval, if eartbeat interval reaches default eartbeat interval at this time Time threshold then no longer shortens eartbeat interval;
After arrival logical session identifies the maximum duration interval of associated next heartbeat, carrying service device does not receive and logic The heartbeat packet that client corresponding to session identification is sent then records corresponding logical session and loses heartbeat, if logical session The continuous number for losing heartbeat is more than preset times, then stops corresponding logical session.
10. the message push system of intelligent mobile terminal according to claim 9, which is characterized in that the client pushes away Module is sent, is specifically used for:
Carrying service device is that each push content establishes an affairs;
Affairs enter init state after establishing, and the transport layer for submitting to carrying service device is sent out to client using UDP packets It send, affairs enter state in transmission;
If transport layer completes transmission transaction, affairs, which enter, is sent completely state, will if transport layer sends affairs failure Affairs move to final state;
In the case where affairs enter and are sent completely state, start timer, client response is received before timing terminates, then by thing Business moves to committed state, if timing confiscates client response before terminating, and sending times do not reach the upper limit, then Affairs are resubmitted to transport layer to send using UDP packets to client, affairs return to state in transmission, if timing knot Client response is confiscated before beam, and sending times reach the upper limit, then affairs enter halted state;
In the case where affairs enter halted state, if the life cycle of push content has arrived, affairs move to final state, in push It is carried in the PUSH message that the life cycle of appearance sends from content server to push management server, and by push management server It is forwarded to carrying service device;
In the case where affairs enter halted state, if having received heartbeat packet, it is 0 to reset upon sending times, and affairs are resubmited It is sent to client using UDP packets to transport layer, affairs return to state in transmission.
CN201510571960.8A 2015-09-09 2015-09-09 A kind of information push method and system of intelligent mobile terminal Active CN105120495B (en)

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 CN105120495A (en) 2015-12-02
CN105120495B true 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)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302551B (en) * 2016-04-14 2021-07-02 阿里巴巴集团控股有限公司 Service data publishing method and device
CN107517227B (en) * 2016-06-15 2020-10-13 阿里巴巴集团控股有限公司 Session implementation method and device for distributed consistency system
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
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
CN109510878B (en) * 2018-12-24 2021-12-24 杭州迪普科技股份有限公司 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
CN110113362B (en) * 2019-05-29 2021-07-06 杭州海兴泽科信息技术有限公司 MQTT protocol-based message real-time pushing method
CN112926069A (en) * 2021-03-01 2021-06-08 安徽商信政通信息技术股份有限公司 Non-physical contact lossless interaction method and system for confidential data of government affair system
CN113382050B (en) * 2021-05-27 2022-11-11 北京皮尔布莱尼软件有限公司 Message transmission method, system, computing device and storage medium
CN115378990B (en) * 2022-08-09 2023-11-10 北京联合大学 Automatic discovery network informatization teaching demonstration method based on 4G/5G communication system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003084269A1 (en) * 2002-03-29 2003-10-09 Mitsubishi Denki Kabushiki Kaisha Radio network system and radio communication control method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN105120495A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN105120495B (en) A kind of information push method and system of intelligent mobile terminal
CN102685204B (en) Method and equipment for transmitting data resource
CN103916311B (en) A kind of information transmission and control method, Apparatus and system
CN105706425B (en) Method for distributing the identifier of multicast source
CN102664899B (en) A kind of method for processing business, Apparatus and system
CN103563314B (en) For system and method for passive communication services
US20210099496A1 (en) Method and system for handling mission critical data (mcdata) communications using pre-established session
CN109196842B (en) Session keeping method, device and storage medium
CN102594672A (en) Method and system applicable to high-quality internet communication in low-reliability network environment
CN103297324A (en) Method for local area network positioning in instantaneous network data transmission
CN101834783A (en) Method and device for forwarding messages and network equipment
CN102647487A (en) Method for saving Internet protocol (IP) addresses and access proxy equipment
CN103685163A (en) Disaster-tolerant method, system and device in IMS network
CN105871521A (en) Data transmission method and device and video monitoring system
CN101420389A (en) File transferring system and method
CN101309169A (en) Network management method and network management system, network apparatus
CN101883147A (en) Method and system for realizing multi-party video share
CN106028440B (en) Roaming User Login method and system
CN106713437A (en) Method used by server to send message to client in NAT network
CN102299923B (en) Session-Receiver register method in Internet performance measurement system
CN102420858B (en) FTP (File Transfer Protocol) mode configuration method, data transmission method and device
CN106878258A (en) One kind attacks localization method and device
CN105379322B (en) Transmission method, terminal and the communication equipment of ProSe information
CN101860804B (en) Accession implementing method and accession implementing system for predefined accession group session
CN101257517A (en) Method and device for processing address analysis protocol request message

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