WO2009039701A1 - Procédé et système de réalisation d'une communication instantanée à grande échelle - Google Patents
Procédé et système de réalisation d'une communication instantanée à grande échelle Download PDFInfo
- Publication number
- WO2009039701A1 WO2009039701A1 PCT/CN2007/070771 CN2007070771W WO2009039701A1 WO 2009039701 A1 WO2009039701 A1 WO 2009039701A1 CN 2007070771 W CN2007070771 W CN 2007070771W WO 2009039701 A1 WO2009039701 A1 WO 2009039701A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- access
- access server
- information
- client
- server
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
Definitions
- the present invention relates to the field of communications and computer technologies, and more particularly to a method and system for implementing large-scale instant messaging.
- LoadBalance load balancing
- the connection request of the client is allocated by the LoadBalance device to the access server provided by the background managed by the client.
- IP protocol Internet Protocol
- DNS Domain Name Server
- the LoadBalance device returns an IP address.
- the LoadBalance device assigns the client connection request to an access server according to a certain policy, so that the client obtains the instant communication service through the designated access server.
- the LoadBalance device fails and all users' instant messaging services are affected.
- the manner in which the login server allocates the IP address of the access server may also be used.
- the client DNS obtains multiple IP addresses of the access server returned by the login server, and attempts to connect to the login until the login is successful. After the login is successful, the client obtains a service from the access server that is successfully logged in.
- the login server manages all access servers.
- the performance and stability of the login server also become a bottleneck for the stable operation of the system. If the login server fails, all clients cannot log in to the server normally.
- Using clusters can improve system performance and increase stability. However, the use of clusters increases the operating costs.
- the present invention provides a method and system for implementing large-scale instant messaging, which is used to solve the problem that the performance of the load balancing device or the login server in the prior art is unstable, and the client access is unreliable.
- a method for implementing large-scale instant messaging includes the following steps:
- the domain name server DNS in the instant messaging system provides information of the access server accessible to the user to the client according to the access information
- the client selects an access server to access the instant messaging system according to the information of the access server.
- each access server is monitored, and when the load of the access server is monitored to exceed a predetermined threshold or there is a fault, the access server is identified as being inaccessible to the user.
- Each access server identifies whether the access server can access the user by setting a monitoring port status.
- the DNS Before returning the information of the access server to the client, the DNS further sorts according to the load of each access server, and provides the information of the sorted access server to the client.
- the client preferentially selects an access server with a light load to connect.
- the DNS further provides information about the access server managed by the load balancing device to the client.
- the client preferentially selects an access server other than the access server managed by the load balancing device to connect.
- the client DNS When the DNS receives the access server information that the client DNS request can access the user, after the information is returned to the client DNS, the client DNS provides the information to the client.
- An access server comprising:
- An access unit configured to provide a user access service
- the monitoring unit is configured to monitor the load information of the access unit and whether the system of the access server is faulty, and identify, according to the monitoring result, whether the access server can access the user in the access information.
- the monitoring unit further identifies load information of the access server in the access information.
- An instant messaging system DNS including:
- a receiving unit configured to acquire access information of the access server
- a sending unit configured to provide, according to the access information, information that is accessible to the access server of the user to the client.
- it also includes:
- a sorting unit configured to sort the access servers of the accessible users according to the load information in the access information, and output the sorted access server information of the accessible users to the sending unit.
- a communication system comprising:
- a first access server configured to provide an instant communication service for a user accessing the access server, monitor load information of the access server, and whether the system is faulty, and identify the access server in the access information according to the monitoring result. Whether it can access users;
- the instant messaging system domain name server is connected to the first access server, and is configured to obtain access information of each first access server, and determine, according to the access information, all first access servers that can access the user;
- a client DNS configured to obtain information of all first access servers of the accessible users from the instant messaging system DNS;
- the client connected to the client DNS and the access server, selects the access server to access the instant messaging system from the information of the access server of the accessible user obtained from the client DNS.
- the access server identifies load information of the access server in the access information; and the instant messaging system DNS sends the access server information of the accessible user according to the load information to the client. DNS.
- the method further includes:
- a second access server configured to provide an instant communication service for a user accessing the access server
- a load balancing device configured to manage the second access server, and allocate the instant messaging service requested by the client to the second access On the server.
- the access server of the accessible user After monitoring the load and other information of the access server, the access server of the accessible user is sorted according to the load and returned to the client, and the client preferentially selects the access server with a lighter load to log in, which not only improves the client.
- the reliability of the end access, and the number of clients logging in to the access server is relatively balanced; when the load balancing device and the second access server managed by the system are added to the system, the first access server cannot provide the service immediately.
- the client can also log in to the instant messaging system through the access server managed by the load balancing device.
- the first access server is managed by the instant messaging system DNS, which avoids unstable system performance caused by the load balancing device or the login server failure.
- Embodiment 1 is a structural diagram of a system in Embodiment 1 of the present invention.
- FIG. 2 is a flowchart of processing of a monitoring unit according to Embodiment 1 of the present invention.
- FIG. 3 is a flowchart of processing of a client login instant messaging system according to Embodiment 1 of the present invention
- FIG. 4 is a structural diagram of a system according to Embodiment 2 of the present invention
- FIG. 5 is a flowchart of processing a client login instant messaging system according to Embodiment 2 of the present invention.
- the present invention monitors the load information of the access server, and provides information of the access server accessible to the user.
- the client selects the lighter access server to access the instant messaging system.
- Embodiment 1 is a diagrammatic representation of Embodiment 1:
- the communication system of this embodiment includes a first access server 110, an instant messaging system DNS 120, a client DNS 130, and a client 140.
- the first access server 110 includes an access unit 1101 and a monitoring unit 1102. Access unit
- the monitoring unit 1102 monitors the load information of the access unit 1101 and whether the access server is faulty. When the access server system works normally and the load does not exceed a predetermined threshold, the monitoring unit 1102 controls the status identifier of the monitoring port. Whether the access server can access the user; and identifying the load information of the access server when the access server can access the user.
- the first access server 110 herein includes at least two access servers that can provide services for access users, and the similar contents are the same below.
- the instant messaging system DNS120 includes a receiving unit 1201, a sorting unit 1202, and a sending unit.
- the receiving unit 1201 is configured to acquire the access information of the first access server 110, and obtain the load information of the first access server 110 that can access the user when the first access server 110 can access the user.
- the sorting unit 1202 is configured to sequentially transmit the first access server 110 information of the accessible user to the sending unit 1203 according to the load information.
- the sending unit 1203 will receive the received
- the sorted information of the first access server 110 of the accessible user is returned to the client DNS 130.
- the client DNS 130 is configured to periodically obtain information of the first access server 110 that can access the user from the instant messaging system DNS 120; perform service analysis on the service requested by the client, and first access the user according to the parsing result.
- the information of the access server 110 is returned to the client 140.
- the client 140 is configured to apply for an instant messaging service, and select the first access server 110 of the accessible user to access the instant messaging system.
- the receiving unit 1201 When the time length for acquiring the access information of the first access server 110 is set in the receiving unit 1201 of the instant messaging system DNS 120, the receiving unit 1201 automatically scans the monitoring port status of the access server according to the set length of time.
- the setting may be set according to a specific situation, such as setting to 1 minute, which may speed up the update of the IP address list of the first access server 110 that can access the user and the number of users who log in to the first access server 110. On average, each access server is more balanced.
- the processing of the monitoring unit of the access server is as follows:
- Step 201 Monitor the load information of the access server, and take data such as the number of clients currently accessing the access server, the traffic value, and the CPU usage.
- Step 202 Compare the obtained data with a threshold value of each data set by the system. If any one of the data exceeds a corresponding threshold, and determine that the access server is a non-accessible user, perform step 205; If no data exceeds the corresponding threshold, step 203 is performed.
- Step 203 Determine whether the access service program works normally. If an exception occurs, perform step 205; if the operation is normal, perform step 204.
- Step 204 Identify that the access server can access the user, and set the monitoring port of the access server to an open state.
- Step 205 Identify that the access server is inaccessible to the user, and set the monitoring port of the access server to the closed state.
- Step 301 The instant messaging system DNS detects the monitoring port of the access server according to the set timing. If the monitoring port of the access server is detected to be in an open state, the IP address and load information of the access server are recorded; After the access server is sorted according to the recorded load information, a list of IP addresses of access servers accessible to the user is generated.
- Step 302 The client DNS sends a request for requesting access to the IP address list message of the access server of the user to the instant messaging system DNS.
- Step 303 The instant messaging system DNS returns the IP address list of the access server of the accessible user to the client DNS.
- Step 304 When the client prepares to log in to the instant messaging system, the client sends a login request for domain name address resolution to the client DNS.
- Step 305 After performing the service parsing on the received login request, the client DNS returns the IP address list of the access server of the access user to the client requesting the login.
- Step 306 After receiving the IP address list of the access server, the client selects a lighter access server in the list to log in.
- Step 307 If the load of the access server exceeds the threshold or the access service program is faulty, the monitoring port of the access server is closed.
- Step 308 According to the set timing length, when the instant messaging system DNS detects the monitoring port of the access server, if the monitoring port of the access server is detected to be closed, the access server cannot access the user; After the monitoring port of the incoming server is detected, update the list of available IP addresses of the access server.
- Step 309 After a timing period, the client DNS requests the instant messaging system DNS to return a list of IP addresses of the available access servers.
- Step 310 The instant messaging system DNS returns the updated IP address list of the available access servers to the client DNS.
- the instant messaging system DNS periodically detects whether the access server can access the user, improves the availability of the IP address list of the access server to which the client DNS requests, and ensures reliable access when the client logs in.
- the instant messaging system DNS is a highly available system, it avoids the impact on the stability of the system when the DNS of one instant communication system fails.
- Embodiment 2 is a diagrammatic representation of Embodiment 1:
- the communication system of this embodiment adds a load balancing device 150 and a second access server 160 to FIG.
- the second access server 160 is configured to provide an instant communication service for the client 140 accessing the access server.
- the load balancing device 150 is configured to manage the second access server 160 and apply the instant messaging service requested by the client 140. Assigned to the second access server 160.
- the information of the load balancing device 150 is pre-configured in the information of the access server of the accessible user that the instant messaging system DNS 120 returns to the client DNS 130.
- the client 140 cannot log in to the first access server 110.
- the client 140 logs in according to the information of the load balancing device configured in the access server information of the accessible user, and the load balancing device 150 allocates the connection request of the client 140 to the second access server 160 managed by the client 140. .
- Step 501 The client sends a login request for domain name address resolution to the client DNS.
- Step 502 After performing the domain name resolution on the login request sent by the client, the client DNS returns the IP address list of the first access server that can access the user and the IP address of the load balancing device to the client.
- Step 503 The client selects a lighter access server in the list according to the received IP address list of the first access server to log in.
- Step 504 When the load of the first access server exceeds a threshold or the access service program is faulty, the monitoring port of the access server is closed.
- the monitoring port can be directly set to the closed state, so that the new user can be no longer accessed, and the instant communication service of the user accessing the access server is completed.
- the access server stops working smoothly.
- Step 505 The instant messaging system DNS timing detects the monitoring port of the first access server, and detects that all the monitoring ports of the first access server are in the closed state, and all the first access servers are inaccessible to the user.
- Step 506 When the instant messaging system DNS receives the client DNS request and returns the access server information of the accessible user, only the IP address of the pre-configured load balancing device is returned to the client DNS.
- Step 507 When all the first access servers are inaccessible to the user, the client logs in to the second access server managed by the load balancing device.
- the client when the client fails to log in using the IP address of the first access server returned by the DNS, the client automatically selects the IP address of the load balancing device to attempt to log in.
- the client when the first access server is inaccessible to the user, the client logs in to the balance.
- the device is managed by the second access server, thereby ensuring that the client logs in to the instant messaging system normally, thereby improving the performance of the system and the reliability of the access system.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Description
一种实现大型即时通信的方法及系统
技术领域
本发明涉及通信及计算机技术领域,尤其涉及一种实现大型即时通信的方 法及系统。
背景技术
随着即时通信技术的发展, 即时通信客户端用户不断增长, 为满足不断增 长的需求, 需要建立稳定、 可靠的大型即时通信系统。 现有方法中, 组建大型 即时通信系统时, 使用负载均衡( LoadBalance )设备, 由 LoadBalance设备将 客户端的连接请求分配到由其管理的后台提供服务的接入服务器上。当客户端 通过客户端域名服务器(DNS, Domain Name Server )获得接入服务器的网络 协议(IP, Internet Protocol )地址时, LoadBalance设备返回一个 IP地址。 当客 户端通过该 IP地址请求登录即时通信系统时, LoadBalance设备根据一定的策 略把客户端的连接请求指定到一台接入服务器上, 这样,客户端通过指定的这 台接入服务器获得即时通信服务。
釆用这种方法, 系统的稳定性和容量完全依赖于 LoadBalance设备, 若
LoadBalance设备出现故障, 所有用户的即时通信服务都会受到影响。
现有技术中, 也可釆用登录服务器分配接入服务器的 IP地址的方式。 当客 户端登录即时通信系统时,通过客户端 DNS获得登录服务器返回的接入服务器 的多个 IP地址, 尝试连接登录, 直到登录成功。 登录成功后, 客户端固定的从 登录成功的接入服务器上获得服务。
釆用上述这种方式,登录服务器管理所有的接入服务器,登录服务器的性 能和稳定性同样成为系统稳定运行的瓶颈, 若登录服务器出现故障, 则所有客 户端不能正常登录服务器; 若对登录服务器釆用集群的方式, 可以改善系统的 性能, 增加稳定性。 但是, 釆用集群的方式, 同时增大了运行成本。
发明内容
本发明提供一种实现大型即时通信的方法及系统,用以解决现有技术中存 在的负载均衡设备或登录服务器故障导致系统性能不稳定,以及客户端接入不 可靠的问题。
本发明提供以下技术方案:
一种实现大型即时通信的方法, 包括如下步骤:
获取即时通信系统中各接入服务器的接入信息;
所述即时通信系统中的域名服务器 DNS根据所述接入信息将可接入用户 的接入服务器的信息提供给客户端;
所述客户端根据所述接入服务器的信息选择接入服务器接入即时通信系 统。
较佳的,监控各接入服务器, 并且在监控到接入服务器的负荷超过预定的 阔值或者存在故障时, 标识该接入服务器不可接入用户。
所述各接入服务器通过设置监控端口状态标识该接入服务器是否可接入 用户。
所述 DNS向客户端返回接入服务器的信息前, 进一步根据各接入服务器 的负荷进行排序, 并将排序后的接入服务器的信息提供给客户端。
所述客户端优先选择负荷较轻的接入服务器进行连接。
较佳的, 所述 DNS进一步将负载均衡设备管理的接入服务器的信息提供 给客户端。
客户端优先选择负载均衡设备管理的接入服务器以外的接入服务器进行 连接。
所述 DNS收到客户端 DNS请求可接入用户的接入服务器信息时,将所述 信息返回给客户端 DNS后, 客户端 DNS将所述信息提供给客户端。
一种接入服务器, 包括:
接入单元, 用于提供用户接入服务;
监控单元,用于监控接入单元的负荷信息以及该接入服务器的系统是否出 现故障, 并根据监控结果在接入信息中标识该接入服务器是否可接入用户。
较佳的,所述监控单元进一步在所述接入信息中标识该接入服务器的负荷 信息。
一种即时通信系统 DNS, 包括:
接收单元, 用于获取接入服务器的接入信息;
发送单元,用于根据所述接入信息将可接入用户的接入服务器的信息提供 给客户端。
其中, 还包括:
排序单元,用于根据所述接入信息中的负荷信息对可接入用户的接入服务 器进行排序, 并将排序后的可接入用户的接入服务器信息输出给发送单元。
一种通信系统, 包括:
第一接入服务器, 用于为接入该接入服务器的用户提供即时通信服务,监 控该接入服务器的负荷信息和系统是否出现故障,并根据监控结果在接入信息 中标识该接入服务器是否可接入用户;
即时通信系统域名服务器 DNS, 与第一接入服务器连接, 用于获取各第 一接入服务器的接入信息,并根据接入信息确定可接入用户的所有第一接入服 务器;
客户端 DNS , 用于从所述即时通信系统 DNS获取可接入用户的所有第一 接入服务器的信息;
客户端, 与客户端 DNS和接入服务器连接, 用于从客户端 DNS获得的可 接入用户的接入服务器的信息中选择接入服务器接入即时通信系统。
进一步,
所述接入服务器在所述接入信息中标识该接入服务器的负荷信息; 以及 所述即时通信系统 DNS将根据所述负荷信息进行排序后的可接入用户的 接入服务器信息发送给客户端 DNS。
较佳的, 还包括:
第二接入服务器, 用于为接入该接入服务器的用户提供即时通信服务; 负载均衡设备, 用于管理第二接入服务器, 并将客户端申请的即时通信服 务分配到第二接入服务器上。
本发明有益效果如下:
本发明对接入服务器的负荷等信息进行监控后,将可接入用户的接入服务 器根据负荷进行排序后返回给客户端,客户端优先选择负荷较轻的接入服务器 登录, 不仅提高了客户端接入的可靠性, 而且使得登录接入服务器的客户端数 量较均衡; 当在系统中增加负载均衡设备及其管理的第二接入服务器后, 即时 在第一接入服务器都不能提供服务时,客户端也可通过负载均衡设备管理的接 入服务器登录到即时通信系统。
釆用即时通信系统 DNS对第一接入服务器进行管理, 避免了负载均衡设 备或登录服务器故障导致的系统性能不稳定。
附图说明
图 1为本发明实施例一中的系统结构图;
图 2为本发明实施例一中监控单元的处理流程图;
图 3为本发明实施例一中客户端登录即时通信系统的处理流程图; 图 4为本发明实施例二中的系统结构图;
图 5为本发明实施例二中客户端登录即时通信系统的处理流程图。
具体实施方式
为了解决釆用现有技术组建的大型即时通信系统性能不稳定和接入不可 靠的问题, 本发明对接入服务器的负荷信息进行监控, 并将可接入用户的接入 服务器的信息提供给客户端,客户端从中选择负荷较轻的接入服务器接入即时 通信系统。
实施例一:
参阅图 1所示, 本实施例的通信系统包括第一接入服务器 110、 即时通信 系统 DNS120、 客户端 DNS130和客户端 140。
第一接入服务器 110包括接入单元 1101、 监控单元 1102。 所述接入单元
1101用于提供客户端 140接入服务。 所述监控单元 1102监控接入单元 1101 的负荷信息以及该接入服务器是否出现故障, 当该接入服务器系统工作正常, 负荷未超过预定的阔值时, 监控单元 1102通过控制监控端口的状态标识该接 入服务器是否可接入用户; 以及在该接入服务器可接入用户时标识该接入服务 器的负荷信息。
这里的第一接入服务器 110 至少包括两个以上可为接入用户提供服务的 接入服务器, 以下类似内容同。
即时通信系统 DNS120 包括接收单元 1201、 排序单元 1202、 发送单元
1203。 所述接收单元 1201用于获取第一接入服务器 110的接入信息, 检测到 第一接入服务器 110可接入用户时,获取可接入用户的第一接入服务器 110的 负荷信息。 排序单元 1202用于根据所述负荷信息将可接入用户的第一接入服 务器 110信息进行排序传送给发送单元 1203。 发送单元 1203将接收到的所述
排序后的可接入用户的第一接入服务器 110的信息返回给客户端 DNS130。 客户端 DNS130, 用于定时从即时通信系统 DNS120获取可接入用户的第 一接入服务器 110的信息; 对客户端请求的服务进行服务解析, 并根据解析结 果, 将可接入用户的第一接入服务器 110的信息返回给客户端 140。
客户端 140, 用于申请即时通信服务, 并选择所述可接入用户的第一接入 服务器 110接入即时通信系统。
当在即时通信系统 DNS120的接收单元 1201中设置定时获取第一接入服 务器 110的接入信息的时间长度后, 接收单元 1201将根据设置的时间长度, 自动扫描接入服务器的监控端口状态。在实施过程中, 可根据具体情况进行设 置, 如设置为 1分钟, 这样可加快可接入用户的第一接入服务器 110的 IP地 址列表的更新以及使得登录第一接入服务器 110的用户数量较平均,每台接入 服务器负荷较均衡。
参阅图 2所示, 接入服务器的监控单元的处理过程如下:
步骤 201、 监控接入服务器的负荷信息, 取当前接入该接入服务器的客户 端数量、 流量值、 CPU占用率等数据。
步骤 202、 将取到的上述数据与系统设定的各数据的阔值进行比较, 如果 其中任一个数据超过对应的阔值, 判定该接入服务器为不可接入用户后,执行 步骤 205; 如果没有一个数据超过对应的阈值, 则执行步骤 203。
步骤 203、 判断接入服务程序工作是否正常, 如果出现异常, 则执行步骤 205; 如果工作正常, 则执行步骤 204。
步骤 204、 标识该接入服务器可接入用户, 将接入服务器的监控端口设置 为打开状态。
步骤 205、 标识该接入服务器不可接入用户, 将接入服务器的监控端口设 置为关闭状态。
参阅图 3所示, 客户端登录即时通信系统的处理过程如下:
步骤 301、 即时通信系统 DNS根据设置的定时对接入服务器的监控端口 进行检测, 如果检测到接入服务器的监控端口为打开状态, 则记录该接入服务 器的 IP地址及负荷信息; 当检测完成后, 根据记录的负荷信息将接入服务器 进行排序后, 生成可接入用户的接入服务器的 IP地址列表。
步骤 302、 客户端 DNS给即时通信系统 DNS发送索取可接入用户的接入 服务器的 IP地址列表消息的请求。
步骤 303、 即时通信系统 DNS将可接入用户的接入服务器的 IP地址列表 返回给客户端 DNS。
步骤 304、 客户端准备登录即时通信系统时, 给客户端 DNS发送域名地 址解析的登录请求。
步骤 305、 客户端 DNS对接收到的登录请求进行服务解析后, 将可接入 用户的接入服务器的 IP地址列表返回给请求登录的客户端。
步骤 306、 客户端接收到接入服务器的 IP地址列表后, 选择列表中负荷 较轻的接入服务器进行登录。
步骤 307、 监控到接入服务器的负荷超过阔值或接入服务程序存在故障, 关闭该接入服务器的监控端口。
步骤 308、 按照设定的定时长度, 即时通信系统 DNS对接入服务器的监 控端口进行检测时,如果检测到接入服务器的监控端口已关闭, 则该接入服务 器不可接入用户; 对所有接入服务器的监控端口检测完成后, 更新可用接入服 务器的 IP地址列表。
步骤 309、 经过一个定时周期后, 客户端 DNS请求即时通信系统 DNS返 回可用接入服务器的 IP地址列表。
步骤 310、 即时通信系统 DNS将更新后的可用接入服务器的 IP地址列表 返回给客户端 DNS。
釆用上述的方法, 即时通信系统 DNS定时检测接入服务器是否可接入用 户, 提高了客户端 DNS请求到的接入服务器的 IP地址列表的可用性, 保证了 客户端登录时可靠接入。 同时, 由于即时通信系统 DNS为高可用系统, 避免 了一台即时通信系统 DNS出故障时对系统稳定性的影响。
实施例二:
参阅图 4所示, 本实施例的通信系统在图 1 的基础上增加负载均衡设备 150和第二接入服务器 160。 第二接入服务器 160, 用于为接入该接入服务器 的客户端 140提供即时通信服务; 负载均衡设备 150, 用于管理第二接入服务 器 160, 并将客户端 140申请的即时通信服务分配到第二接入服务器 160上。
釆用该系统时,在即时通信系统 DNS120返回给客户端 DNS130的可接入 用户的接入服务器的信息中预配置负载均衡设备 150 的信息, 当客户端 140 不能登录到第一接入服务器 110上时,客户端 140根据可接入用户的接入服务 器信息中配置的负载均衡设备的信息进行登录, 负载均衡设备 150 将客户端 140的连接请求分配到其管理的第二接入服务器 160上。
参阅图 5所示, 客户端登录即时通信系统的处理过程如下:
步骤 501、 客户端给客户端 DNS发送域名地址解析的登录请求。
步骤 502、 客户端 DNS对客户端发送的登录请求进行域名解析后, 给客 户端返回可接入用户的第一接入服务器的 IP地址列表及负载均衡设备的 IP地 址。
步骤 503、 客户端根据收到的第一接入服务器的 IP地址列表, 选择列表 中负荷较轻的接入服务器进行登录。
步骤 504、当第一接入服务器的负荷超过阔值或接入服务程序存在故障时, 将该接入服务器的监控端口关闭。
当第一接入服务器需要维护时,也可直接将监控端口设置为关闭状态, 这 样, 可以不再接入新的用户, 完成接入该接入服务器上的用户的即时通信服务 后, 实现该接入服务器平滑地停止工作。
步骤 505、 即时通信系统 DNS定时对第一接入服务器的监控端口进行检 测,检测到所有第一接入服务器的监控端口都为关闭状态, 所有第一接入服务 器不可接入用户。
步骤 506、 即时通信系统 DNS接收到客户端 DNS请求返回可接入用户的 接入服务器信息时, 只将预先配置的负载均衡设备的 IP 地址返回给客户端 DNS。
步骤 507、 当所有第一接入服务器都不可接入用户时, 客户端登录到负载 均衡设备管理的第二接入服务器上。
釆用实施例二的方法, 当客户端使用 DNS返回的第一接入服务器 IP地址 进行登陆都失败时, 客户端会自动选择使用负载均衡设备的 IP地址进行尝试 登陆。
在实施例二中, 当第一接入服务器都不可接入用户时,客户端登录到均衡
设备管理的第二接入服务器上,从而保证了客户端正常登录即时通信系统,提 高了系统的性能以及接入系统的可靠性。 明的精神和范围。 这样,倘若对本发明的这些修改和变型属于本发明权利要求 及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。
Claims
1、 一种实现大型即时通信的方法, 其特征在于, 包括如下步骤: 获取即时通信系统中各接入服务器的接入信息;
所述即时通信系统中的域名服务器 DNS根据所述接入信息将可接入用户 的接入服务器的信息提供给客户端;
所述客户端根据所述接入服务器的信息选择接入服务器接入即时通信系 统。
2、 如权利要求 1所述的方法, 其特征在于, 监控各接入服务器, 并且在 监控到接入服务器的负荷超过预定的阔值或者存在故障时,标识该接入服务器 不可接入用户。
3、 如权利要求 2所述的方法, 其特征在于, 所述各接入服务器通过设置 监控端口状态标识该接入服务器是否可接入用户。
4、 如权利要求 1所述的方法, 其特征在于, 所述 DNS向客户端返回接入 服务器的信息前, 进一步根据各接入服务器的负荷进行排序, 并将排序后的接 入服务器的信息提供给客户端。
5、 如权利要求 4所述的方法, 其特征在于, 所述客户端优先选择负荷较 轻的接入服务器进行连接。
6、 如权利要求 1至 5任一项所述的方法, 其特征在于, 所述 DNS进一步 将负载均衡设备管理的接入服务器的信息提供给客户端。
7、 如权利要求 6所述的方法, 其特征在于, 客户端优先选择负载均衡设 备管理的接入服务器以外的接入服务器进行连接。
8、 如权利要求 7所述的方法, 其特征在于, 所述 DNS收到客户端 DNS 请求可接入用户的接入服务器信息时, 将所述信息返回给客户端 DNS后, 客 户端 DNS将所述信息提供给客户端。
9、 一种接入服务器, 其特征在于, 包括:
接入单元, 用于提供用户接入服务;
监控单元,用于监控接入单元的负荷信息以及该接入服务器的系统是否出 现故障, 并根据监控结果在接入信息中标识该接入服务器是否可接入用户。
10、 如权利要求 9所述的接入服务器, 其特征在于, 所述监控单元进一步
在所述接入信息中标识该接入服务器的负荷信息。
11、 一种即时通信系统 DNS, 其特征在于, 包括:
接收单元, 用于获取接入服务器的接入信息;
发送单元,用于根据所述接入信息将可接入用户的接入服务器的信息提供 给客户端。
12、 如权利要求 11所述的 DNS, 其特征在于, 还包括:
排序单元,用于根据所述接入信息中的负荷信息对可接入用户的接入服务 器进行排序, 并将排序后的可接入用户的接入服务器信息输出给发送单元。
13、 一种通信系统, 其特征在于, 包括:
第一接入服务器, 用于为接入该接入服务器的用户提供即时通信服务,监 控该接入服务器的负荷信息和系统是否出现故障,并根据监控结果在接入信息 中标识该接入服务器是否可接入用户;
即时通信系统域名服务器 DNS, 与第一接入服务器连接, 用于获取各第 一接入服务器的接入信息,并根据接入信息确定可接入用户的所有第一接入服 务器;
客户端 DNS , 用于从所述即时通信系统 DNS获取可接入用户的所有第一 接入服务器的信息;
客户端, 与客户端 DNS和接入服务器连接, 用于从客户端 DNS获得的可 接入用户的接入服务器的信息中选择接入服务器接入即时通信系统。
14、 如权利要求 13所述的系统, 其特征在于,
所述接入服务器进一步在所述接入信息中标识该接入服务器的负荷信息; 以及
所述即时通信系统 DNS将根据所述负荷信息进行排序后的可接入用户的 接入服务器信息发送给客户端 DNS。
15、 如权利要求 13或 14所述的系统, 其特征在于, 还包括:
第二接入服务器, 用于为接入该接入服务器的用户提供即时通信服务; 负载均衡设备, 用于管理第二接入服务器, 并将客户端申请的即时通信服 务分配到第二接入服务器上。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2007/070771 WO2009039701A1 (fr) | 2007-09-25 | 2007-09-25 | Procédé et système de réalisation d'une communication instantanée à grande échelle |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2007/070771 WO2009039701A1 (fr) | 2007-09-25 | 2007-09-25 | Procédé et système de réalisation d'une communication instantanée à grande échelle |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2009039701A1 true WO2009039701A1 (fr) | 2009-04-02 |
Family
ID=40510732
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2007/070771 Ceased WO2009039701A1 (fr) | 2007-09-25 | 2007-09-25 | Procédé et système de réalisation d'une communication instantanée à grande échelle |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2009039701A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011137643A1 (zh) * | 2010-05-06 | 2011-11-10 | 中兴通讯股份有限公司 | 通信客户端及通信业务发起方法 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070118750A1 (en) * | 2005-10-27 | 2007-05-24 | The Go Daddy Group, Inc. | Authenticating a caller initiating a communication session |
| CN200944605Y (zh) * | 2006-07-06 | 2007-09-05 | 阿里巴巴公司 | 一种域名服务器及通信系统 |
| CN101102288A (zh) * | 2006-07-06 | 2008-01-09 | 阿里巴巴公司 | 一种实现大型即时通信的方法及系统 |
-
2007
- 2007-09-25 WO PCT/CN2007/070771 patent/WO2009039701A1/zh not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070118750A1 (en) * | 2005-10-27 | 2007-05-24 | The Go Daddy Group, Inc. | Authenticating a caller initiating a communication session |
| CN200944605Y (zh) * | 2006-07-06 | 2007-09-05 | 阿里巴巴公司 | 一种域名服务器及通信系统 |
| CN101102288A (zh) * | 2006-07-06 | 2008-01-09 | 阿里巴巴公司 | 一种实现大型即时通信的方法及系统 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011137643A1 (zh) * | 2010-05-06 | 2011-11-10 | 中兴通讯股份有限公司 | 通信客户端及通信业务发起方法 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101102288B (zh) | 一种实现大型即时通信的方法及系统 | |
| CN110493352B (zh) | 一种基于web中间件的统一网关服务系统及其服务方法 | |
| US6131163A (en) | Network gateway mechanism having a protocol stack proxy | |
| KR100570836B1 (ko) | 부하 분산 세션 레이블을 이용한 서버간의 부하 분산장치 및 방법 | |
| USRE45806E1 (en) | System and method for the optimization of database access in data base networks | |
| AU2004288532B2 (en) | Method and system for accessing and managing virtual machines | |
| US8271632B2 (en) | Remote access providing computer system and method for managing same | |
| CN111641583A (zh) | 一种物联网资源接入系统及资源接入方法 | |
| US9075660B2 (en) | Apparatus and method for providing service availability to a user via selection of data centers for the user | |
| US7188175B1 (en) | Method and system for communicating between clients in a computer network | |
| US6675199B1 (en) | Identification of active server cluster controller | |
| US20080184354A1 (en) | Single sign-on system, information terminal device, single sign-on server, single sign-on utilization method, storage medium, and data signal | |
| JP2008510232A (ja) | 多数のリモートアクセスサーバにわたる処理整合性を維持する方法 | |
| US20140067914A1 (en) | Computer system and packet transfer method | |
| US20110191223A1 (en) | Internet Control Management and Accounting in a Utility Computing Environment | |
| WO2023207189A1 (zh) | 负载均衡方法及系统、计算机存储介质、电子设备 | |
| KR101506250B1 (ko) | 가상화 서비스 제공을 위한 가상화 서버 접속 이중화 시스템 | |
| CN107682442A (zh) | 一种Web连接方法及装置 | |
| CN1906890B (zh) | 用于支持事务的方法和装置 | |
| CN115913583A (zh) | 业务数据访问方法、装置和设备及计算机存储介质 | |
| JP2008504776A (ja) | 動的デバイスアドレス管理のための方法およびシステム | |
| CN103701928A (zh) | 应用于负载均衡器提高服务器和ssl网关运行效率的方法 | |
| CN111683162A (zh) | 一种基于流量识别的ip地址管理方法和装置 | |
| CN113900791B (zh) | 一种作业处理方法以及相关设备 | |
| WO2009039701A1 (fr) | Procédé et système de réalisation d'une communication instantanée à grande échelle |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 07816962 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 07816962 Country of ref document: EP Kind code of ref document: A1 |