Information Technologies: Hao Zhang, Zhongkui Sun, He Li
Information Technologies: Hao Zhang, Zhongkui Sun, He Li
Information Technologies: Hao Zhang, Zhongkui Sun, He Li
Jianmin Li
Institutes of Electronics, Chinese Academy of Sciences,
Beijing 100000, China
Abstract
Most existing instant messaging system is built on "centralized server" mode, which is
designed by using C/S or P2P framework to require client must log on a remote server, or on
a centralized server farms. There is a problem about this instant messaging system: If the
LAN firewall or proxy server restrictions instant messaging services, or when outside the
LAN connection is disconnected, the user cannot even in the same local area network to
communicate with each other. To solve this problem, design a multi-server model of
distributed instant messaging system by using the C/S and P2P hybrid structure. When the
remote server with limited or disconnected from a network failure, the client can log on to
the server on the LAN, so you can ensure the same in a LAN client continue instant
messaging. This model not only can the user's important information for centralized and easy
to manage, but also to improve the quality and efficiency of communication between the
customers; also enables users on the same LAN without passing through the external network
can communicate with each other needs.
Key words: INSTANT MESSAGING; CLIENT/SERVER; PEER TO PEER
LANⅠ LANⅡ
PC B
PC C
Intranet Internet Intranet
PC D
PC A
Request
PC A Thread Ⅰ
Response Request
Request
PC B Thread Ⅱ Request
Response
Response
Information
Information
Processor Processor
3.2 Rules of the system user ID your own way registered user identification name.
In the current instant messaging system Both methods have their advantages and
user is mainly in two ways. In ICQ, QQ and other disadvantages: the digital way is not easy to
systems such as the number of employed is way, by remember, but network name duplication problems
assigning to each user a unique digital serial that may arise between different user registration
number of ways a user ID. In AOL and Yahoo solved; logins ways much freedom to the user, but
through instant messaging systems like you take the same name problems cannot be solved, only to
Ht
tp
Pr
ox
y
Web Client
Part of the figure when the case of instant client to call via the web access, you can
messaging system Web service is not open when communicate between clients. Server system
the dotted line above; part of Web Services case provides the following Web services:
opened under the dotted line. Web Services IM Login/Logout Service: It is responsible for
client can call communicate via HTTP proxy. In providing user login authentication;
addition Web service can also call the Web browser Register Service: It is responsible for providing
Chat interface
-font
Accept Server class -fontsize
1 1 -fontsytle 1 1 friend information class
1 Accept
-all-name : String -information
-fontcolor
-all-ip : String
* * -submit * * -acceptFriendinformation()
+accept() -sentdataframe
*
-acceptdataframe
* -renewFriend()
Server class 1
-storeinformation
* 1*
-storeInformation
-accept()
-sent() *
#storeInformation() 1 *
1 1
* Sent information to server class
-name : string(idl) Sent friend information class
n -ip : String
-imformation
* -sentNameandIP(in name : string, in ip : string)
* * -sentFriendinformation()
Sent friend information Accept information Accept server Sent information server
Chat interface Server class
class class Information class class
renewFriend()
sendinformation(IP ,name)
sentAllFriend()
sentFriend(information)
acceptFriend(information)