CN100373894C - Instant communication roating method for mobile network - Google Patents

Instant communication roating method for mobile network Download PDF

Info

Publication number
CN100373894C
CN100373894C CNB2004100697017A CN200410069701A CN100373894C CN 100373894 C CN100373894 C CN 100373894C CN B2004100697017 A CNB2004100697017 A CN B2004100697017A CN 200410069701 A CN200410069701 A CN 200410069701A CN 100373894 C CN100373894 C CN 100373894C
Authority
CN
China
Prior art keywords
recipient
instant
communication
server
instant messaging
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.)
Expired - Lifetime
Application number
CNB2004100697017A
Other languages
Chinese (zh)
Other versions
CN1719811A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2004100697017A priority Critical patent/CN100373894C/en
Publication of CN1719811A publication Critical patent/CN1719811A/en
Application granted granted Critical
Publication of CN100373894C publication Critical patent/CN100373894C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a routing method for instant communication in a mobile network, which comprises: step A, a routing strategy for the instant communication, which is configured in advance, is acquired; based on the routing strategy, whether a forwarding communication mode is adopted or not is judged; if the forwarding communication mode is adopted, the step B is executed; or else the step C is executed. Step B, the routing of instant communication messages between a sender and a receiver of the instant communication is realized through the forwarding communication mode, and then the process is ended. Step C, a direct communication test is carried out; if the test passes, the routing of the instant communication between the sender and the receiver of the instant communication is realized through an instant communication mode, or else the routing of the instant communication messages is realized through the forwarding communication mode. The adoption of the method can avoid a bottleneck effect brought by that a server forwards the instant messages; moreover, the method can dynamic regulate the routing strategy of the instant messages according to the transmission characters of the network so as to add the routing flexibility of the instant messages.

Description

The method for routing of instant messaging among a kind of mobile network
Technical field
The invention belongs to the mobile communication technology field, relate in particular to the method for routing of instant messaging among a kind of mobile network.
Background technology
Instant messaging (IM) system is the system that carries out real-time Message Passing by network.Utilize this system, can realize real-time communication between the different I M telecommunication customer end by the Internet, thereby can be implemented in the transfer of data that comprises text, sound, picture, video between transmitting terminal and the receiving terminal, it is fairly perfect that this kind instant messaging has developed in the computer network that with the Internet is representative.Along with for example General Packet Radio System (GPRS) and code division multiple access system mobile networks' such as (CDMA) the transmission speed and the continuous development of portable terminal disposal ability, and because incomparable flexibility and the convenience of portable terminal, the IM communication system is transplanted to mobile network platform gradually, to realize carrying out the IM communication based on mobile network platform.
In the process of carrying out the IM communication, relate to the routing policy problem of IM communication.This IM communication routing policy refers to the transfer mode that transmits instant message when carrying out the IM communication between the different clients in the IM communication system in network, and this strategy directly has influence on the efficient and the safety of IM communication.
In the prior art, the IM communication generally is the forwarding communication modes, this kind communication modes adopts the routing policy of transit server, referring to Fig. 1, adopt this kind routing policy, the IM communication system is realized the transmission of instant message by transit server: transmit leg and recipient need land the IM communication server, transmit leg is when the recipient transfers immediate news, at first this instant message is sent to the IM communication server, by this server this instant message is forwarded to the recipient then, thereby by the transfer realization transmit leg of IM communication server and the IM communication between the recipient; Wherein, transmit leg and recipient can be respectively PC (PC) terminal or mobile terminal device.
Adopt this forwarding communication modes of the prior art, though can on the mobile network, realize the IM communication having following shortcoming:
1, this kind transmitted communication modes owing to need by the server forwards instant message, therefore, its IM ability to communicate is subjected to the restriction of IM communication server self ability to communicate, when the mass users communication, can cause fairly obvious bottleneck effect, therefore the time-delay of instant message also can increase;
2, this kind forwarding communication modes is a kind of static routing strategy, can not dynamically adjust the instant message routing policy according to mobile network's transmission characteristic, thereby be unfavorable for improving the service quality of IM communication.
Summary of the invention
In view of this, main purpose of the present invention is to provide the method for routing of instant messaging among a kind of mobile network, can avoid of the restriction of IM communication server self ability to communicate, and can realize dynamically adjusting the instant message routing policy according to mobile network's transmission characteristic to the IM communication.
For achieving the above object, the invention provides the method for routing of instant messaging among a kind of mobile network, this method comprises:
Steps A: obtain the routing policy of pre-configured instant messaging, judge whether adopt to transmit communication modes according to this routing policy, if, execution in step B then, otherwise, execution in step C;
Step B: realize the route of instant communication information, process ends then by transmitting communication modes between the transmit leg of instant messaging and the recipient;
Step C: carry out direct communication test,, then realize the route of instant communication information between the transmit leg of instant messaging and the recipient by direct communication modes if test is passed through, otherwise, realize the route of instant communication information by transmitting communication modes.
Wherein, realize that by direct communication modes the route of instant messaging comprises between the transmit leg of described instant messaging and the recipient:
Transmit leg directly is sent to the recipient with instant communication information.
Wherein, realize that by transmitting communication modes the route of instant messaging comprises between the transmit leg of described instant messaging and the recipient:
Transmit leg is sent to server with instant communication information, and server is forwarded to the recipient with this instant communication information again.
Wherein, the described direct communication test of step C comprises:
Recipient to instant messaging sends the detection data, judges whether to receive recipient's response message, if then test is passed through, otherwise test is not passed through.
Wherein, after described recipient to instant messaging sends and detects data, further start regularly;
When judgement is not received response message, judge whether timing is overtime, if not, then return the described response message that judges whether to receive the recipient; If then test is not passed through.
Wherein, this method further comprises:
Obtain recipient's state information, judge according to this information whether the recipient is online, if not, then sending the request of activation to the recipient, the recipient carries out described steps A after receiving that this request realization is online.
Wherein, server obtains recipient's state information, and judge according to this information whether the recipient is online, if not, then server sends the request of activation to the recipient, the recipient realize online laggard one the step comprise: the state information that the recipient is online returns to server, this recipient's of server update state information.
Wherein, this method further comprises:
Revise the routing policy and the preservation of described instant messaging.
Wherein, described route by direct communication modes realization instant communication information further comprises:
It is overtime to judge whether to occur the data transmission, if, then change the forwarding communication modes over to, realize the route of instant communication information by transmitting communication modes.
As seen, the present invention has following beneficial effect:
1, owing to adopts direct communication modes and transmits the route that communication modes is realized instant message, therefore, can well avoid transmitting of the influence of server self ability to communicate of instant message for the instant messaging ability, under the limited environment of the network bandwidths such as similar mobile network, can reduce taking of bandwidth effectively, improve the efficient of instant messaging among the mobile network;
2, because the present invention can carry out the route of instant message according to network condition or user's flexible setting, therefore, can dynamically adjust the transmission means of instant message, help improving the service quality of instant messaging, thereby be beneficial to instant messaging promoting the use of rapidly the mobile network.
Description of drawings
Fig. 1 is for transmitting the communication model schematic diagram of communication modes.
Fig. 2 is a routing policy model schematic diagram of the present invention.
Fig. 3 is for realizing flow chart of the present invention.
Fig. 4 is for realizing the flow chart of direct communication test.
Fig. 5 activates recipient's flow chart for server.
Fig. 6 is the sequential chart of direct communication modes under the online situation of recipient.
Fig. 7 is the sequential chart of direct communication modes under the not online situation of recipient.
Fig. 8 is a sequential chart of transmitting communication modes under the online situation of recipient.
Fig. 9 is a sequential chart of transmitting communication modes under the not online situation of recipient.
Embodiment
The present invention is the method for routing of instant messaging among a kind of mobile network, adopt this method, when carrying out instant messaging, can be from transmitting communication modes and directly selecting a kind of appropriate communication mode to realize the instant message route the communication modes, thereby can avoid the bottleneck effect brought owing to the server forwards instant message, in addition, this method can also dynamically be adjusted the instant message routing policy according to the Network Transmission characteristic, thereby increases the flexibility of instant message route.
Describe the present invention below in conjunction with accompanying drawing.
In the present invention, on the basis of original this routing policy of forwarding communication modes, newly introduce the routing policy of direct communication modes, the direct communication modes of this kind is after transmit leg and recipient set up the communication relation, communication data directly sends to the recipient by transmit leg, and no longer passes through server; Introduce after the routing policy of this direct communication modes, referring to Fig. 2, have two paths available between the transmit leg of instant messaging and recipient: a kind of is 4,5,6 such message paths as shown in the figure, utilize this path, instant message at first sends to server from transmit leg, then by server forwards to the recipient, this kind path is corresponding to the routing policy of transmitting communication; Another kind is 1,2,3 such message paths as shown in the figure, utilizes this path, and instant message directly sends to the recipient from transmit leg, and no longer passes through server forwards, and this kind path is corresponding to the direct routing policy of communication.
In the present invention, transmit leg and recipient's user is if carry out instant messaging, then necessary logon server, for using mobile terminal user, its portable terminal is by for example GPRS and the such mobile network's logon server of CDMA1X, for the user who uses PC, PC is by the computer network communication technology logon server.After the logon server, server can be recorded in this user's log-on message in the server, so that carry out instant messaging, wherein, this information comprises Internet protocol (IP) address of user online status information and user's login at least.Server is by user state information storehouse preservation user's log-on message, and this information bank adopts relational database to realize.After the user login, obtain recipient's information by data base querying, when the state information storehouse changed, server sent to relative client with the information that changes; In this information bank, preserve following information at least:
User login name is used for unique identification user;
User online status, the user judges whether to start arousal function;
The user logins the IP address, is used to carry out directly or the communication of forwarding message.
In the present invention, the server that is used to transmit instant message then needs to have the data forwarding function, the message that transmit leg sends can not be added to revise ground and do not copy to one or more recipient, the realization data forwarding.
The following stated specific embodiments of the invention all are to carry out on the basis of above-mentioned technology.
Below the specific implementation of the present invention that has adopted above-mentioned two kinds of routing policies is described in detail.
Referring to Fig. 3, realize that the present invention needs following steps:
Step 301: obtain recipient's state information, this state information comprises the information that the recipient is whether online at least; Wherein, obtain in the user profile that this state information can be preserved from server;
Step 302: according to the recipient's who obtains in the step 301 state information, judge whether the recipient is online, if, then execution in step 303 and subsequent step thereof, otherwise, execution in step 309, request server activates the recipient, so that the recipient reaches the standard grade automatically or manual reaching the standard grade, and then return step 301;
Step 303: the routing policy that obtains the transmit leg static configuration; Wherein, this static routing strategy can be the default route strategy of user by the terminal appointment, also can be the new routing policy after the user changes as required in actual use;
Step 304: according to the routing policy of the static configuration of being obtained, judge whether this routing policy is the routing policy of transmitting communication,, realize the route of instant communication information according to transmitting communication modes if then execution in step 308; Otherwise, execution in step 305 and subsequent step thereof;
Step 305~step 306: carry out direct communication test, currently whether can realize direct communication to judge, if this test is passed through, then execution in step 307, realize the route of instant communication information according to direct communication modes; Otherwise execution in step 308 realizes the route of instant communication information according to transmitting communication modes.
Wherein, in the above-mentioned steps, realize that according to direct communication modes the route of instant communication information is: directly carry out the transmission and the reception of instant message between transmit leg and the recipient, need not the server forwards instant message;
In above-mentioned steps, realize that according to transmitting communication modes the route of instant communication information is: transmit leg is sent to server with instant message earlier, server again with this forwards to the recipient, the communication process of whole instant message needs server to participate in.
In embodiments of the present invention, carrying out the server that server that instant message transmits and user logined as mentioned above is a server, in other embodiment of the present invention, also can adopt different servers respectively as the server of the server that carries out the instant message forwarding and user's login, not influence realization of the present invention.
In embodiments of the present invention, realizing by direct communication modes in the process of instant message route, if, then change the forwarding communication modes over to, realize the route of instant message to transmit communication modes owing to comprise the former of connection interruption thereby make data send overtime situation.
Specific implementation to direct communication test described in the step 305 describes in detail below, referring to Fig. 4, realizes that this test specifically needs following steps:
Step 401~step 402: the sending direction recipient sends the detection data, and starts regularly;
Step 403: transmit leg judges whether the response message of receiving that the recipient returns, if, judge that then obtaining test passes through, finish the test process of described direct communication, and, with reference to shown in Figure 3, realize the route of instant message according to direct communication modes; Otherwise, execution in step 404;
Step 404: judge regularly whether overtime, if not, then return step 403, continue to judge whether to receive recipient's response message, if judge that then obtaining test does not pass through, finish the test process of described direct communication, and,, realize the route of instant message according to transmitting communication modes with reference to shown in Figure 3.
In step 309, request server activates the recipient, and server referring to Fig. 5, realizes activating the recipient by following steps after receiving this request:
Step 501~step 502: server is received the request of activation, sends then to activate notification message to the recipient;
Step 503: after the recipient received and activates notification message, the operation of reaching the standard grade judged then whether the recipient is online, if then execution in step 504, otherwise, return this step, online until the recipient;
Step 504:, notify the recipient online to transmit leg to transmit leg transmit status updating message.
Below in conjunction with sequential chart, adopt direct communication modes and forwarding communication modes to carry out the instant messaging route to the present invention and be described.
Fig. 6 and Fig. 7 are the sequential chart of direct communication modes:
Figure 6 shows that under the online situation of recipient, adopt direct communication modes to carry out the sequential chart of instant message route, transmit leg and recipient all by logon server realize online after, transmit leg obtains the online state information of recipient from server, then, carry out communication test between transmit leg and the recipient,, then directly carry out data transmission procedure between transmit leg and the recipient if communication test passes through;
Figure 7 shows that under the not online situation of recipient, adopt direct communication modes to carry out the sequential chart of instant message route, transmit leg is realized online by logon server, and the recipient is not online by logon server, transmit leg obtains the not online state information of recipient from server, send to the recipient by server then and activate notice, after the recipient receives this notice, logon server is online to realize, then, carry out communication test between transmit leg and the recipient,, then directly carry out data transmission procedure between transmit leg and the recipient if communication test passes through;
Fig. 8 and Fig. 9 are for transmitting the sequential chart of communication modes:
Figure 8 shows that under the online situation of recipient, adopt to transmit the sequential chart that communication modes carries out the instant message route, transmit leg and recipient all by logon server realize online after, transmit leg directly is sent to server with data, after server is received data, directly forward the data to the recipient;
Figure 9 shows that under the not online situation of recipient, adopt and transmit the sequential chart that communication modes carries out the instant message route, transmit leg is realized online by logon server, then, transmit leg is sent to server with data, and it is not online that the server judgement obtains the recipient, send the activation notice to the recipient, the recipient receives that this notice back logon server is online to realize, and temporal data is forwarded to the recipient again with these data after the recipient is online.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. the method for routing of instant messaging among the mobile network is characterized in that this method comprises:
Steps A: obtain the routing policy of pre-configured instant messaging, judge whether adopt to transmit communication modes according to this routing policy, if, execution in step B then, otherwise, execution in step C;
Step B: realize the route of instant communication information, process ends then by transmitting communication modes between the transmit leg of instant messaging and the recipient;
Step C: carry out direct communication test,, then realize the route of instant communication information between the transmit leg of instant messaging and the recipient by direct communication modes if test is passed through, otherwise, realize the route of instant communication information by transmitting communication modes.
2. method according to claim 1 is characterized in that, realizes that by direct communication modes the route of instant messaging comprises between the transmit leg of described instant messaging and the recipient:
Transmit leg directly is sent to the recipient with instant communication information.
3. method according to claim 1 is characterized in that, realizes that by transmitting communication modes the route of instant messaging comprises between the transmit leg of described instant messaging and the recipient:
Transmit leg is sent to server with instant communication information, and server is forwarded to the recipient with this instant communication information again.
4. method according to claim 1 is characterized in that, the described direct communication test of step C comprises:
Recipient to instant messaging sends the detection data, judges whether to receive recipient's response message, if then test is passed through, otherwise test is not passed through.
5. method according to claim 4 is characterized in that,
After described recipient to instant messaging sends and detects data, further start regularly;
When judgement is not received response message, judge whether timing is overtime, if not, then return the described response message that judges whether to receive the recipient; If then test is not passed through.
6. method according to claim 1 is characterized in that, this method further comprises:
Obtain recipient's state information, judge according to this information whether the recipient is online, if not, then sending the request of activation to the recipient, the recipient carries out described steps A after receiving that this request realization is online.
7. method according to claim 6, it is characterized in that, server obtains recipient's state information, and judge according to this information whether the recipient is online, if not, then server sends the request of activating to the recipient, and the recipient realizes that an online laggard step comprises: the state information that the recipient is online returns to server, this recipient's of server update state information.
8. method according to claim 1 is characterized in that, this method further comprises:
Revise the routing policy and the preservation of described instant messaging.
9. method according to claim 1 is characterized in that, described route by direct communication modes realization instant communication information further comprises:
It is overtime to judge whether to occur the data transmission, if, then change the forwarding communication modes over to, realize the route of instant communication information by transmitting communication modes.
CNB2004100697017A 2004-07-09 2004-07-09 Instant communication roating method for mobile network Expired - Lifetime CN100373894C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100697017A CN100373894C (en) 2004-07-09 2004-07-09 Instant communication roating method for mobile network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100697017A CN100373894C (en) 2004-07-09 2004-07-09 Instant communication roating method for mobile network

Publications (2)

Publication Number Publication Date
CN1719811A CN1719811A (en) 2006-01-11
CN100373894C true CN100373894C (en) 2008-03-05

Family

ID=35931536

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100697017A Expired - Lifetime CN100373894C (en) 2004-07-09 2004-07-09 Instant communication roating method for mobile network

Country Status (1)

Country Link
CN (1) CN100373894C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170745B (en) * 2007-11-22 2010-04-07 腾讯科技(深圳)有限公司 Bluetooth-based instant communication method, server, system and terminal
CN101631127A (en) * 2009-08-06 2010-01-20 中兴通讯股份有限公司 File transfer method and clients
CN103916832B (en) * 2013-01-05 2018-05-01 成都新橙北斗智联有限公司 The method and apparatus of Big Dipper bluetooth users terminal access mobile communications network
CN105337840B (en) * 2014-08-13 2019-07-12 深圳Tcl新技术有限公司 The display methods and device of communication data
CN105187301A (en) * 2015-09-08 2015-12-23 北京元心科技有限公司 Instant communication file transfer method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1336746A (en) * 2000-08-02 2002-02-20 宏碁电脑股份有限公司 Network communication system and its dynamic information detouring transmission method
US20030131061A1 (en) * 2001-11-28 2003-07-10 Active Buddy, Inc. Transparent proxy server for instant messaging system and methods
CN1452747A (en) * 2000-05-10 2003-10-29 奇卡有限公司 Instant messaging account system
US20030221009A1 (en) * 2002-05-21 2003-11-27 Logitech Europe S.A. Dual mode peer-to-peer link establishment for instant message video
WO2004004139A2 (en) * 2002-06-26 2004-01-08 Yahoo Inc. System and method for communicating images between intercommunicating users
US20040054802A1 (en) * 2002-09-16 2004-03-18 Iteration Software, Inc. Apparatus and method for instant messaging collaboration

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452747A (en) * 2000-05-10 2003-10-29 奇卡有限公司 Instant messaging account system
CN1336746A (en) * 2000-08-02 2002-02-20 宏碁电脑股份有限公司 Network communication system and its dynamic information detouring transmission method
US20030131061A1 (en) * 2001-11-28 2003-07-10 Active Buddy, Inc. Transparent proxy server for instant messaging system and methods
US20030221009A1 (en) * 2002-05-21 2003-11-27 Logitech Europe S.A. Dual mode peer-to-peer link establishment for instant message video
WO2004004139A2 (en) * 2002-06-26 2004-01-08 Yahoo Inc. System and method for communicating images between intercommunicating users
US20040054802A1 (en) * 2002-09-16 2004-03-18 Iteration Software, Inc. Apparatus and method for instant messaging collaboration

Also Published As

Publication number Publication date
CN1719811A (en) 2006-01-11

Similar Documents

Publication Publication Date Title
US7961663B2 (en) Peer-to-peer mobile instant messaging method and device
JP3964864B2 (en) Method and apparatus for obtaining data information
US8023941B2 (en) Method and apparatus for independent and efficient delivery of services to wireless devices capable of supporting multiple radio interfaces and network infrastructure
EP1653693B1 (en) File transmission method in instant messaging service
US20030041101A1 (en) Presence watcher proxy
US20090125591A1 (en) Instant messaging proxy apparatus and method
US20040063449A1 (en) Multimedia messaging method and system for transferring multimedia content
US20090181705A1 (en) Mail transmission system and method and push mail server
US20060135200A1 (en) Method for transmitting massive data effectively on multi-mode terminal
CA2559660A1 (en) Presence-based hybrid peer-to-peer communications
CA2371810A1 (en) Wireless communication network including plural migratory access nodes
CA2539468A1 (en) System and method for asynchronous wireless services using reverse service schema generation
CN105681260B (en) Transmit method, converged communication platform, transmitting terminal and the system of cloud storage file
JP2005353056A (en) State information synchronizing method of imps client
JP2004112319A (en) Relay apparatus, information transmission apparatus, and information transmission method
WO2007033549A1 (en) An offline message transmission method
KR20090065554A (en) System and method for providing advanced session control of a unicast session
CN101599921B (en) Enterprise instant communication system and file transfer method thereof
EP2224652B1 (en) Method, system, server and terminal for canceling a push message
CN101018349A (en) A method for sending the SMS of the mobile phone number to the Internet program
KR100934088B1 (en) Methods and apparatus for creation and transport of multimedia content flows to a distribution network
KR100779012B1 (en) System and method for communicating between different messengers
US7764637B2 (en) Peer-to-peer mobile instant messaging method and device
KR100450144B1 (en) Communication system for supporting bi-direction communication between internet instant messenger and mobile device
CA2740375C (en) Use of persistent sessions by a presence access layer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20080305