Recherche Images Maps Play YouTube Actualités Gmail Drive Plus »
Connexion
Les utilisateurs de lecteurs d'écran peuvent cliquer sur ce lien pour activer le mode d'accessibilité. Celui-ci propose les mêmes fonctionnalités principales, mais il est optimisé pour votre lecteur d'écran.

Brevets

  1. Recherche avancée dans les brevets
Numéro de publicationCN102684984 A
Type de publicationDemande
Numéro de demandeCN 201110064188
Date de publication19 sept. 2012
Date de dépôt14 mars 2011
Date de priorité14 mars 2011
Numéro de publication201110064188.2, CN 102684984 A, CN 102684984A, CN 201110064188, CN-A-102684984, CN102684984 A, CN102684984A, CN201110064188, CN201110064188.2
Inventeurs史传红, 塞杰斯·泰尔劳, 张智泉, 杨谦
Déposant腾讯科技(深圳)有限公司
Exporter la citationBiBTeX, EndNote, RefMan
Liens externes:  SIPO, Espacenet
Method and system for achieving routing between clusters
CN 102684984 A
Résumé
The invention relates to a method and a system for achieving routing between clusters. The method includes the following steps: successfully logging and receiving the network identification number and port information of a first server; obtaining a file transfer request; and sending file data and the network identification number and the port information of the first server to a second serve according to the file transfer request so that communication between the second server and the first server can be achieved. According to the method and the system for achieving routing between clusters, the network identification number and the port information of the first server are sent to the second server during file transfer so that a network passage is built between the second server and the first server according to the network identification number and the port information. In addition, the first server and the second server belong to different server clusters so that accurate transfer of file data between the clusters is achieved.
Revendications(12)  Langue du texte original : Chinois
1. 一种集群间路由实现方法,包括以下步骤: 登录成功并接收所述第一服务器的网络标识号及端口信息; 获取文件传输请求; 根据所述文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息,以便所述第二服务器与第一服务器之间进行通信。 An inter-cluster routing implemented method comprising the steps of: receiving a successful login and the network identification number and port information of the first server; get file transfer requests; according to the file transfer request, send the file to the second server data The first server's network identification number and port information so that the communication between the second server and the first server.
2.根据权利要求I所述的集群间路由实现方法,其特征在于,所述第二服务器与第一服务器之间进行通信的具体步骤为:所述第二服务器接收所述文件数据、第一服务器的网络标识号及端口信息,并根据所述第一服务器的网络标识号及端口信息与第一服务器建立网络通路; 所述第二服务器通过所述网络通路将文件数据发送给第一服务器。 The inter-cluster routing said I implemented method of claim, wherein the specific steps for communication between the second server and the first server: the second server receives the file data, the first network identification number and the server port information, and establish a network path based on the network identification number and port information of the first server and the first server; the second server sends the file data to the first server through the network path.
3.根据权利要求2所述的集群间路由实现方法,其特征在于,还包括步骤:所述第一服务器对第一服务器的网络标识号及端口信息进行加密,生成加密地址数据,并发送所述加密地址数据。 Inter-cluster according to claim 2, wherein the routing implemented method characterized by further comprising the steps of: identifying the first network server and port number information of the first server is encrypted to generate the encrypted address data, and transmits the the encrypted address data.
4.根据权利要求3所述的集群间路由实现方法,其特征在于,根据所述文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息的步骤具体为:根据所述文件传输请求,向第二服务器发送文件数据及加密地址数据; 第二服务器接收到所述加密地址数据后,对所述加密地址数据解码,得到第一服务器的网络标识号及端口信息。 According to claim 3, wherein the inter-cluster routing implemented method wherein, according to the file transfer request, the server sends the file to the second step data, the identification number of the first network server and port information specifically: According to The file transfer request, send files and encrypt data address data to the second server; a second server address after receiving the encrypted data, to decode the encrypted address data to obtain network identification number and port information of the first server.
5.根据权利要求3所述的集群间路由实现方法,其特征在于,还包括步骤:接收所述第一服务器的网络标识号及端口信息,并存储到本地。 According to claim 3, wherein the inter-cluster routing implemented method characterized by further comprising the steps of: receiving network identification number and the port information of the first server and stored locally.
6.根据权利要求2所述的集群间路由实现的方法,其特征在于,所述第一服务器为Web即时通信服务器,所述第二服务器为文件传输服务器。 6. The method according to claim 2 routing between clusters implemented claim, wherein said first instant messaging server as a Web server, the second server is a file transfer server.
7. 一种集群间路由实现系统,其特征在于,包括:浏览器,所述浏览器用于接收第一服务器的网络标识号及端口信息,再获取文件传输请求,并根据文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息,以便所述第二服务器与第一服务器之间进行通信。 A realization of inter-cluster routing system comprising: a browser, the browser network identification number and port information for receiving the first server, and then obtain the file transfer request and file transfer requests according to the first Second, the server sends the file data, the first server's network identification number and port information so that the communication between the second server and the first server.
8.根据权利要求7所述的集群间路由实现系统,其特征在于,还包括第一服务器和第二服务器,所述第一服务器与第二服务器属于不同服务器集群;所述第二服务器用于接收所述文件数据、第一服务器的网络标识号及端口信息,并根据所述第一服务器的网络标识号及端口信息与第一服务器建立网络通路,再通过所述网络通路将文件数据发送给第一服务器。 8. The inter-cluster routing according to claim 7, wherein the system required to achieve, characterized by further comprising a first server and a second server, said first server and a second server belonging to different server clusters; for the second server receiving the file data, the first server's network identification number and port information, and establish a network access based on the network identification number and port information of the first server and the first server, and then through the network data path to send the file to The first server.
9.根据权利要求8所述的集群间路由实现系统,其特征在于,所述第一服务器还用于对第一服务器的网络标识号及端口信息进行加密,生成加密地址数据,并将加密地址数据发送给浏览器。 According to claim 8, wherein the inter-cluster routing implementation system, characterized in that said first server is further used for network identification number of the first server and port information is encrypted to generate the encrypted address data, and the encryption address Data is sent to the browser.
10.根据权利要求9所述的集群间路由实现系统,其特征在于,所述浏览器还用于将所述加密地址数据发送给第二服务器,所述第二服务器还用于接收到所述加密地址数据后,对所述加密地址数据解码,得到第一服务器的网络标识号及端口信息。 According to claim 9, wherein the inter-cluster routing implementation system, characterized in that said browser means for sending the encrypted address data to the second server, the second server is further for receiving the encrypted address data, said encrypted data decoded address to obtain network identification number and port information of the first server.
11.根据权利要求7所述的集群间路由实现系统,其特征在于,所述浏览器还用于接收所述第一服务器的网络标识号及端口信息,并存储到本地。 11. The inter-cluster routing according to claim 7 wherein the system required to achieve, characterized in that the browser and the network identification number for the port information receiving the first server and stored locally.
12.根据权利要求8所述的集群间路由实现系统,其特征在于,所述第一服务器为Web即时通信服务器,所述第二服务器为文件传输服务器。 According to claim 8, wherein the inter-cluster routing implementation system, characterized in that said first instant messaging server as a Web server, the second server is a file transfer server.
Description  Langue du texte original : Chinois

集群间路由实现方法及系统 Routing between the cluster and system implementation

【技术领域】 TECHNICAL FIELD

[0001] 本发明涉及计算机通信技术领域,特别涉及集群间路由实现方法及系统。 [0001] The present invention relates to computer communication technologies, particularly to achieve inter-cluster routing method and system.

【背景技术】 BACKGROUND OF THE INVENTION

[0002] 随着计算机网络的广泛普及,即时通信工具(Instant Messaging,简称IM)已经越来越多的成为人们所必需的网络应用。 [0002] With the widespread popularity of computer networks, instant messaging tools (Instant Messaging, abbreviated IM) has become more and more necessary for people to network applications. Web IM是通过HTTP协议与服务器进行通讯,利用AJAX (Asynchronous JavaScript and XML,是指一种创建交互式网页应用的网页开发技术)技术向服务器发起异步请求,可动态拉取用户资料及进行个人或群组消息收发。 Web IM is through HTTP protocol communicate with the server using AJAX (Asynchronous JavaScript and XML, refers to a web application for creating interactive web development technology) technology to initiate an asynchronous request to the server, the user can dynamically pull information and personal or group messaging. 这种方式不需下载和安装頂客户端,可在连接网络的计算机上通过浏览器登陆Web IM服务器接入頂的服务器集群系统。 This way no need to download and install a top client, the computer connected to the network can login Web IM server access top server cluster system through a browser. 其中,AJAX技术是使用客户端脚本与Web服务器交换数据的Web应用开发方法,这样Web不用交互流程进行重新加载,进行动态更新。 Wherein, AJAX technique is to use client-side scripting and Web server Web application development methods of data exchange, so do not interact with Web reload process, dynamically updated.

[0003] 基于浏览器的Web IM由于其使用和升级上的方便性,受到越来越多用户的喜爱, 其应用范围也越来越广泛。 [0003] The browser-based Web IM Because of its ease of use and upgrades on more and more user's favorite, its scope of application has become increasingly widespread. Web頂功能越来越强大,后台服务器的数量及种类也随之增长,如何准确实现多个服务器集群间的路由(路由是指通过相互连接的网络把信息从源地点移动到目标地点的活动)是需要解决的问题。 Top Web more powerful, back-end servers also will increase the number and types, and how to achieve accurate route between multiple server clusters (routing refers to the network of interconnected information from the source location to the target location of activity) is a problem to be solved.

【发明内容】 SUMMARY OF THE INVENTION

[0004] 基于此,有必要提供一种集群间路由实现方法,能准确实现集群间的数据传输。 [0004] Based on this, it is necessary to provide an inter-cluster routing implementation, accurate data transmission between clusters.

[0005] 一种集群间路由实现方法,包括以下步骤: [0005] An inter-cluster routing implemented method comprising the steps of:

[0006] 登录成功并接收所述第一服务器的网络标识号及端口信息; [0006] The login is successful and receives network identification number and port information of the first server;

[0007] 获取文件传输请求; [0007] Get file transfer requests;

[0008] 根据所述文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息,以便所述第二服务器与第一服务器之间进行通信; [0008] According to the file transfer request, the server sends the second data file, network identification number, and port information of the first server, so that the communication between the second server and the first server;

[0009] 优选地,所述第二服务器与第一服务器之间进行通信的具体步骤为:所述第二服务器接收所述文件数据、第一服务器的网络标识号及端口信息,并根据所述第一服务器的网络标识号及端口信息与第一服务器建立网络通路; Specific steps [0009] Preferably, the communication between the second server and the first server: the second server receives the file data, network identification number, and port information of the first server, and in accordance with the network identification number of the first server and port information of the first server to establish network access;

[0010] 所述第二服务器通过所述网络通路将文件数据发送给第一服务器。 [0010] The second server over the network data path to send the file to the first server.

[0011] 优选地,还包括步骤:所述第一服务器对第一服务器的网络标识号及端口信息进行加密,生成加密地址数据,并发送所述加密地址数据。 [0011] Preferably, further comprising the step of: identifying the first network server and port number information of the first server is encrypted to generate the encrypted address data, and transmits the encrypted address data.

[0012] 优选地,根据所述文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息的步骤具体为:根据所述文件传输请求,向第二服务器发送文件数据及加密地址数据; [0012] Preferably, according to the file transfer request, the server sends the file to the second step of the data, the first server and the network identification number for the specific port information: According to the file transfer request, the file server sends the data to the second and address data encryption;

[0013] 第二服务器接收到所述加密地址数据后,对所述加密地址数据解码,得到第一服务器的网络标识号及端口信息。 [0013] The second server address after receiving the encrypted data, to decode the encrypted address data to obtain network identification number and port information of the first server.

[0014] 优选地,还包括步骤:接收所述第一服务器的网络标识号及端口信息,并存储到本地。 [0014] Preferably, further comprising the steps of: receiving network identification number and the port information of the first server and stored locally. [0015] 优选地,所述第一服务器为Web即时通信服务器,所述第二服务器为文件传输服务器。 [0015] Preferably, the first instant messaging server as a Web server, the second server is a file transfer server.

[0016] 此外,还有必要提供一种集群间路由实现系统,能准确实现集群间的数据传输。 [0016] In addition, there is a need to provide a route to achieve inter-cluster system can achieve an accurate data transmission between clusters.

[0017] 一种集群间路由实现系统,包括:浏览器, Room [0017] A cluster routing implementation system, comprising: a browser,

[0018] 所述浏览器用于接收第一服务器的网络标识号及端口信息,再获取文件传输请求,并根据文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息,以便所述第二服务器与第一服务器之间进行通信。 [0018] The browser is used to receive network identification number and port information of the first server, and then get a file transfer request, and according to the file transfer request, send file data to the second server, the first server's network identification number and port information , so that the communication between the second server and the first server.

[0019] 优选地,还包括第一服务器和第二服务器,所述第一服务器与第二服务器属于不同服务器集群;所述第二服务器用于接收所述文件数据、第一服务器的网络标识号及端口信息,并根据所述第一服务器的网络标识号及端口信息与第一服务器建立网络通路,再通过所述网络通路将文件数据发送给第一服务器。 [0019] Preferably, further comprising a first server and a second server, said first server and a second server belonging to different server clusters; the second server to receive the data file, the identification number of the first network server and port information, and establish a network access based on the network identification number and port information of the first server and the first server, and then send the file to the first server data paths through the network. [0020] 优选地,所述第一服务器还用于对第一服务器的网络标识号及端口信息进行加密,生成加密地址数据,并将加密地址数据发送给浏览器。 [0020] Preferably, the first server is also used for network identification number and port information of the first server is encrypted to generate encrypted address data and the address data is sent encrypted to the browser.

[0021] 优选地,所述浏览器还用于将所述加密地址数据发送给第二服务器,所述第二服务器还用于接收到所述加密地址数据后,对所述加密地址数据解码,得到第一服务器的网络标识号及端口信息。 [0021] Preferably, the browser address for transmitting the encrypted data to the second server, the second server is further configured address after receiving the encrypted data, said encrypted data decoded address, obtain network identification number and port information of the first server.

[0022] 优选地,所述浏览器还用于接收所述第一服务器的网络标识号及端口信息,并存储到本地。 [0022] Preferably, the browser for receiving the network identification number and port information of the first server and stored locally.

[0023] 优选地,所述第一服务器为Web即时通信服务器,所述第二服务器为文件传输服务器。 [0023] Preferably, the first instant messaging server as a Web server, the second server is a file transfer server.

[0024] 上述集群间路由实现方法及系统,通过传输文件时,将第一服务器的网络标识号及端口信息发送给第二服务器,使得第二服务器根据该网络标识号及端口信息与第一服务器之间建立网络通路,且第一服务器与第二服务器属于不同服务器集群,这样实现了集群间文件数据的准确传输。 [0024] The realization of the inter-cluster routing method and system for transferring files through the sending network identification number and port information of the first server to the second server, so that the second server based on the network identification number and port information of the first server establish a network path between, and the first server and the second server belongs to a different server clusters, so to achieve an accurate transfer of data between clustered file.

【附图说明】 BRIEF DESCRIPTION

[0025] 图I为一个实施例中集群间路由实现方法的流程图; [0025] Figure I is a flow chart of an inter-cluster routing implementation example implementation of the method;

[0026] 图2为另一个实施例中集群间路由实现方法的流程图; [0026] FIG. 2 is another example of the inter-cluster routing flowchart showing the method of realization;

[0027] 图3为一个实施例中集群间路由实现系统的结构示意图; [0027] FIG. 3 is a structural diagram of the inter-cluster routing realization example of an embodiment of the system;

[0028] 图4为图3应用在Web QQ的文件传输示意图。 [0028] FIG. 4 is a schematic diagram of FIG. 3 in Web QQ application delivery documents.

【具体实施方式】 [DETAILED DESCRIPTION]

[0029] 下面结合具体的实施例及附图对技术方案进行详细的描述。 [0029] The following examples and with reference to specific drawings for a detailed description of technical solutions.

[0030] 如图I所示,在一个实施例中,一种集群间路由实现方法,包括以下步骤: [0030] As shown in Figure I, in one embodiment, to achieve inter-cluster routing method, comprising the steps of:

[0031] 步骤S100,登录成功并接收所述第一服务器的网络标识号及端口信息。 [0031] step S100, log in successfully and receiving the network identification number and port information of the first server.

[0032] 登录成功后,浏览器接收到第一服务器的网络标识号及端口信息,并存储到本地。 After the [0032] a successful login, the browser receives network identification number and port information of the first server and stored locally. 若第一服务器的网络标识号及端口信息经过加密处理生成加密地址数据,则浏览器端接收到加密地址数据后存储到本地,不进行其他处理,到需要的时候,再发送给其他服务器。 If the network after identification number and port information of the first server to generate encrypted data encryption address, the browser receives the encrypted address data stored locally, no further processing is needed to time, and then sent to other servers. 同时,浏览器还与第一服务器进行一系列的数据交互,获取好友列表等数据。 Meanwhile, the browser is the first server a series of data exchange, access friends lists and other data. [0033] 步骤S110,获取文件传输请求。 [0033] step S110, the get file transfer requests. 用户通过基于浏览器的模拟即时通信客户端界面与其好友聊天,需要传送某个文件给好友,需发送文件传输请求。 The user through the browser-based simulation instant messaging client interface to chat with their friends, need to send a file to a friend, you need to send a file transfer request. 该文件可为图片文件(如西湖照片)、文本文件(如小说)、影像文件(如建国大业电影)、也可为压缩文件。 The file can be as a picture file (such as West photo), text file (such as fiction), image files (such as Founding movie), but also for compressed files.

[0034] 步骤S120,根据该文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息,以便该第二服务器与第一服务器之间进行通信。 [0034] step S120, based on the file transfer requests, send the file data to a second server, network identification number and port information of the first server to facilitate communication between the second server and the first server.

[0035] 浏览器获取文件传输请求后,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息。 [0035] After the browser to obtain file transfer requests, send the file to the second server data, network identification number of the first server and port information. 若第一服务器的网络标识号及端口信息经过加密处理生成加密地址数据,浏览器将需传输的文件数据及加密地址数据发送给第二服务器。 If the network identification number and port information of the first server is encrypted to generate encrypted address data, the browser will need to transfer the files to encrypt data and address data to the second server. 该实施例中,第二服务器为文件传输服务器,与第一服务器属于不同的服务器集群。 In this embodiment, the second server as a file transfer server, the first server belongs to a different server clusters.

[0036] 如图2所示,在一个实施例中,一种集群间路由实现方法,包括以下步骤: [0036] Figure 2, in one embodiment, to achieve inter-cluster routing method shown, comprising the steps of:

[0037] 步骤S200,向第一服务器发起登录请求。 [0037] step S200, to initiate a login request to the first server.

[0038] 用户登录基于浏览器的模拟即时通信客户端界面时,域名服务器(Domain Name System,简称DNS)会确定用户接入的运营商,根据运营商分配服务器,如电信的分配电信服务器,网通的分配网通服务器,从Web即时通信服务器集群中分配一台服务器。 [0038] User login browser-based instant messaging client interface simulation, the domain name server (Domain Name System, called DNS) will determine the operator of user access, based on the distribution server operators, such as the distribution of telecommunications servers Telecom, China Netcom The allocation Netcom server, assign a server from Web instant messaging server cluster. 本实施例中分配第一服务器,即第一服务器为Web即时通信服务器。 Examples of this embodiment is allocated the first server, the first server to Web instant messaging server. 用户通过浏览器的JavaScript (脚本语言)通过AJAX技术发送登录请求到第一服务器,第一服务器返回登录成功的结果。 JavaScript (scripting language) users through the browser sends a login request to the first server via AJAX technology, the server returns the results of the first successful login.

[0039] 步骤S210,第一服务器接收登录请求,并发送自身的网络标识号及端口信息。 [0039] step S210, the first server receives a login request, and sends its own network identification number and port information.

[0040] 第一服务器接收登录请求后,将自身的网络标识号及端口信息发送给浏览器。 [0040] After the first server receives a login request, will send its own network identification number and port information to the browser. 网络标识号可为第一服务器的IP地址,端口信息可为接入的端口,如80端口等。 Network identification number for the first server's IP address and port information for port access, such as 80 ports. 同时还将好友列表信息等数据发送给浏览器,以便进行正常的聊天等操作。 Buddy list will also send information data to the browser, chat for normal operation.

[0041 ] 在一个实施例中,第一服务器接收登录请求后,还包括步骤:第一服务器对自身的网络标识号及端口信息进行加密处理,生成加密地址数据,并发送该加密地址数据。 After [0041] In one embodiment, the first server receives the registration request, further comprising the steps of: a first server of its own network identification number and port information is encrypted to generate the encrypted address data, and transmits the encrypted address data. 对网络标识号及端口信息进行加密,是为了保证数据在传输给浏览器的过程中的安全,防止被监听程序所劫持,若是明文,则有可能被恶意监听者利用进行恶意攻击。 Network identification number and port information is encrypted, it is to ensure security in the transmission of data to the browser process, prevent hijacked a listener, if plain, there may be a malicious listeners use malicious attacks.

[0042] 步骤S220,登录成功并接收第一服务器的网络标识号及端口信息。 [0042] step S220, the login is successful and receives network identification number and port information of the first server.

[0043] 登录成功后,浏览器接收到第一服务器的网络标识号及端口信息,并存储到本地。 After the [0043] a successful login, the browser receives network identification number and port information of the first server and stored locally. 若第一服务器的网络标识号及端口信息经过加密处理生成加密地址数据,则浏览器端接收到加密地址数据后存储到本地,不进行其他处理,到需要的时候,再发送给其他服务器。 If the network after identification number and port information of the first server to generate encrypted data encryption address, the browser receives the encrypted address data stored locally, no further processing is needed to time, and then sent to other servers. 同时,浏览器还与第一服务器进行一系列的数据交互,获取好友列表等数据。 Meanwhile, the browser is the first server a series of data exchange, access friends lists and other data.

[0044] 步骤S230,获取文件传输请求。 [0044] step S230, obtain the file transfer request. 用户通过基于浏览器的模拟即时通信客户端界面与其好友聊天,需要传送某个文件给好友,需发送文件传输请求。 The user through the browser-based simulation instant messaging client interface to chat with their friends, need to send a file to a friend, you need to send a file transfer request. 该文件可为图片文件(如西湖照片)、文本文件(如小说)、影像文件(如建国大业电影)、也可为压缩文件。 The file can be as a picture file (such as West photo), text file (such as fiction), image files (such as Founding movie), but also for compressed files.

[0045] 步骤S240,根据文件传输请求,通过浏览器向第二服务器发送文件数据、第一服务器的网络标识号及端口信息。 [0045] step S240, according to the file transfer request, send file data to the second server through a browser, network identification number and port information of the first server.

[0046] 浏览器获取文件传输请求后,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息。 [0046] After the browser to obtain file transfer requests, send the file to the second server data, network identification number of the first server and port information. 若第一服务器的网络标识号及端口信息经过加密处理生成加密地址数据,浏览器将需传输的文件数据及加密地址数据发送给第二服务器。 If the network identification number and port information of the first server is encrypted to generate encrypted address data, the browser will need to transfer the files to encrypt data and address data to the second server. 该实施例中,第二服务器为文件传输服务器,与第一服务器属于不同的服务器集群。 In this embodiment, the second server as a file transfer server, the first server belongs to a different server clusters. [0047] 步骤S250,第二服务器接收文件数据、第一服务器的网络标识号及端口信息,并根据第一服务器的网络标识号及端口信息与第一服务器建立网络通路。 [0047] step S250, the second server receives the file data, the first server's network identification number and port information, and establish a network access based on the network identification number and port information of the first server of the first server.

[0048] 第二服务器接收第一服务器的网络标识号及端口信息后,根据第一服务器的网络标识号及端口信息,找到第一服务器,与第一服务器建立网络通路,以便进行数据传输。 [0048] After the second server receives network identification number and port information of the first server, according to the network identification number and port information of the first server, the first server is found, establish a network path to the first server, for data transmission.

[0049] 另外,第二服务器接收的若是第一服务器的网络标识号及端口信息加密处理后的加密地址数据,则第二服务器采用相应的解密算法和密钥对加密地址数据进行解码,得到所需的第一服务器的网络标识号及端口信息。 [0049] In addition, the network address of the identification number and the encrypted data port after a second encryption process information received by the server if the first server, the second server using the appropriate decryption algorithm and key to decode the encrypted address data to give the required network identification number of the first server and port information.

[0050] 步骤S260,第二服务器通过网络通路将文件数据发送给第一服务器。 [0050] step S260, the second server over the network data path to send the file to the first server.

[0051] 第二服务器将文件数据传输给第一服务器后,第一服务器才能通过第一服务器的集群将文件数据发送到需接收该文件数据的用户所在的服务器。 Server [0051] The second server data files to the first server, the first server to the first server through the cluster file data will be sent to the data required to receive the file the user is located.

[0052] 在一个实施例中,一种集群间路由实现系统,包括浏览器,该浏览器用于接收第一服务器的网络标识号及端口信息,再获取文件传输请求,并根据文件传输请求,向第二服务器发送文件数据、第一服务器的网络标识号及端口信息,以便该第二服务器与第一服务器之间进行通信。 [0052] In one embodiment, an inter-cluster routing implementation system, including browser, the browser for receiving the first server's network identification number and port information, and then get a file transfer request, and according to the file transfer request, to The second server sends the file data, the first server's network identification number and port information, so that between the second server and the first server to communicate.

[0053] 优选的实施例中,如图3所示,一种集群间路由实现系统,除了包括浏览器300,还包括第一服务器310和第二服务器320。 [0053] The preferred embodiment, shown in Figure 3, to achieve inter-cluster routing system, in addition to including a browser 300, further comprising a first server 310 and second server 320. 其中, Among them,

[0054] 浏览器300用于向第一服务器发起登录请求。 [0054] The browser 300 for initiating a login request to the first server. 用户登录基于浏览器300的模拟即时通讯客户端界面时,域名服务器(DNS)会确定用户接入的运营商,根据运营商分配服务器,如电信的分配电信服务器,网通的分配网通服务器,从Web即时通信服务器集群中分配一台服务器。 When a user logs instant messaging client based on simulated browser interface 300, the domain name server (DNS) will determine the operator of user access, based on the distribution server operators, such as the distribution of telecommunications servers Telecom, China Netcom Netcom server allocation, from Web instant messaging server assign a server cluster. 本实施例中分配第一服务器310,即第一服务器为Web即时通信服务器。 Examples assigned first server 310, the first Web server instant messaging server in this embodiment. 用户通过浏览器的JavaScript通过AJAX技术发送登录请求到第一服务器310,第一服务器310返回登录成功的结果。 User through the browser via JavaScript AJAX technology to send a login request to the first server 310, the first server 310 returns the result of a successful login.

[0055] 第一服务器310用于接收登录请求,并发送自身的网络标识号及端口信息到浏览器300。 [0055] The first server 310 for receiving a login request, and sends its own network identification number and port information to the browser 300. 第一服务器310接收登录请求后,将自身的网络标识号及端口信息发送给浏览器300。 After the first server 310 receives the login request to send its own network identification number and port information to the browser 300. 网络标识号可为第一服务器310的IP地址,端口信息可为接入的端口,如80端口等。 Network identification number for the first 310 server IP address and port information for port access, such as 80 ports. 同时第一服务器310还将好友列表信息等数据发送给浏览器300,以便进行正常的聊天等操作。 While the first server 310 will buddy list information, data sent to the browser 300, in order to carry out normal operations chat.

[0056] 另外,第一服务器310接收登录请求后,第一服务器310对自身的网络标识号及端口信息进行加密处理,生成加密地址数据,并发送该加密地址数据。 After [0056] In addition, the first server 310 receives the registration request, the first server 310 of its own network identification number and port information is encrypted to generate the encrypted address data, and transmits the encrypted address data. 对网络标识号及端口信息进行加密,是为了保证数据在传输给浏览器300的过程中的安全,防止被监听程序所劫持,若是明文,则有可能被恶意监听者利用进行恶意攻击。 Network identification number and port information is encrypted, it is to ensure security during the transmission of data to the browser 300. prevent being hijacked by a listener, if plain, there may be a malicious listeners use malicious attacks.

[0057] 浏览器300接收第一服务器310的网络标识号及端口信息,再获取文件传输请求,并根据文件传输请求,向第二服务器320发送文件数据、第一服务器的网络标识号及端口信息。 [0057] browser 300 receives a first server network identification number and port information 310, and then get a file transfer request, and according to the file transfer request to the second server 320 to send the file data, network identification number of the first server and port information . 第一服务器310与第二服务器320属于不同服务器集群。 The first server 310 and the second server 320 belong to different server clusters.

[0058] 登录成功后,浏览器300接收到第一服务器的网络标识号及端口信息,并存储到本地。 After the [0058] a successful login, the browser receives 300 to network identification number and port information of the first server and stored locally. 若第一服务器的网络标识号及端口信息经过加密处理生成加密地址数据,则浏览器300接收到加密地址数据后存储到本地,不进行其他处理,到需要的时候,再发送给其他服务器。 If the network after identification number and port information of the first server to generate encrypted data encryption address, the browser 300 receives the encrypted address data stored locally, no further processing is needed to time, and then sent to other servers. 同时,浏览器300还与第一服务器310进行一系列的数据交互,获取好友列表等数据。 Meanwhile, the browser is also the first server 310 300 series of data exchange, access friends lists and other data. 当用户通过浏览器与其好友聊天,需要传送某个文件给好友,需发送文件传输请求。 When the user through the browser to chat with their friends, need to send a file to a friend, you need to send a file transfer request. 该文件可为图片文件(如西湖照片)、文本文件(如小说)、影像文件(如建国大业电影)、也可为压缩文件。 The file can be as a picture file (such as West photo), text file (such as fiction), image files (such as Founding movie), but also for compressed files. 浏览器300根据文件传输请求,将文件数据及加密地址数据一起发送给第二服务器320。 Browser 300 according to the file transfer request, the file data and encrypt data sent with the address to the second server 320.

[0059] 第二服务器320接收文件数据、第一服务器的网络标识号及端口信息,并根据该第一服务器的网络标识号及端口信息与第一服务器310建立网络通路,再通过该网络通路将文件数据发送给第一服务器310。 [0059] The second server 320 receives the document data, the first server's network identification number and port information, and network identification number in accordance with the first server and port information of the first server 310 to establish a network path, the path through the network File data is sent to the first server 310.

[0060] 若第二服务器320接收到加密地址数据时,则第二服务器320采用相应的解密算法及密钥对加密地址数据解码,得到第一服务器的网络标识号及端口信息。 [0060] If the second address server 320 receives the encrypted data, the second server 320 using the appropriate decryption algorithm and key to decode the encrypted address data to obtain network identification number and port information of the first server. 另外,第二服务器320为文件传输服务器。 Further, the second server 320 to file transfer server.

[0061] 第二服务器320将文件数据传输给第一服务器310后,第一服务器310才能通过第一服务器310所在集群将文件数据发送到需接收该文件数据的用户所在的服务器。 [0061] The second server 320 file server data to 310 after the first server, the first server 310 to 310 through the first server cluster that will send the file data to the data required to receive the file the user is located.

[0062] 如图4所示,以第一终端400和第二终端450上分别运行基于Web浏览器的模拟QQ界面,即Web QQ,第一服务器310为第一Web QQ服务器410 (Web QQServe-1),第二服务器320为文件传输服务器420 (Task Server-1)为例,A用户登录Web浏览器后,分配第一Web QQ服务器410,登录后,Web QQ与第一Web QQ服务器410进行数据交互,将好友列表等数据下拉到Web QQ上,且同时Web QQ接收第一Web QQ服务器410的IP地址及端口信息的加密地址数据,并存储到本地,当A用户与好友B传输文件时,A用户在第一终端400上登录的Web QQ通过Web浏览器将文件数据及加密地址数据发送给文件传输服务器420,文件传输服务器420对加密地址数据进行解码,得出第一Web QQ服务器410的IP地址及端口信息,再根据第一Web QQ服务器410的IP地址及端口信息查找到第一Web QQ服务器410,文件传输服务器420将信令信息发送到第一Web QQ服务器410,与之建立网络通路,然后将文件数据传输给第一Web QQ服务器410,第一Web QQ服务器410将文件数据通过Web服务器集群430传输到第二Web QQ服务器440 (Web QQServe-2),再传输给好友B在第二终端450上运行的Web QQ0其中,信令信息是指在电信网的两个实体之间,传输专门为建立和控制接续的信息。 [0062] 4 to 450 are running a Web browser-based simulation QQ interface 400 and the second terminal of the first terminal, that Web QQ, the first server 310 as the first Web QQ server 410 (Web QQServe- 1), the second server 320 is a file transfer server 420 (Task Server-1), for example, after a user is logged A Web browser, assign the first Web QQ server 410, log, Web QQ and 410 first Web QQ server data exchange, data such as buddy list will drop down to the Web QQ, and at the same Web QQ receive the first Web QQ address data encryption IP address and port information of the server 410 and stored locally, when the A-subscriber B transmitting the file with friends , A user on the first terminal 400 Web QQ login through a Web browser to send the file to encrypt data and address data to the file transfer server 420, file transfer server 420 to decode the encrypted address data, results of the first Web QQ server 410 The IP address and port information, and then find the first Web QQ server according to the first Web QQ server IP address and port information of 410 410, the file transfer server 420 to send signaling information to the first Web QQ server 410, with the establishment of network access, then the file data to the first Web QQ server 410, the first Web QQ server 410 via the Web server cluster file data 430 is transmitted to a second Web QQ server 440 (Web QQServe-2), then transfer to a Friend B running on the second terminal 450 Web QQ0 wherein the signaling information is defined between the two entities of the telecommunication network, specifically for the transport connection establishment and control information.

[0063] 上述集群间路由实现方法及系统,通过传输文件时,将第一服务器的网络标识号及端口信息发送给第二务器,使得第二服务器根据该网络标识号及端口信息与第一服务器之间建立网络通路,且第一服务器与第二服务器属于不同服务器集群,这样实现集群间文件数据的准确传输。 [0063] implement the inter-cluster routing method and system for transferring files through the network identification number to send the first server and port information to a second server, so that the second server based on the network identification number and port information of the first establishing a network path between the server and the first server and the second server belonging to different server clusters, so that accurate data transfer between the cluster file.

[0064] 以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。 [0064] The above examples are only the expression of several embodiments of the present invention, the description is more specific and detailed, but it can not therefore be construed as limiting the scope of the invention patent. 应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。 It should be noted that those of ordinary skill in the art, in the present invention without departing from the idea of the premise, you can also make a number of modifications and improvements, which belong to the scope of the present invention. 因此,本发明专利的保护范围应以所附权利要求为准。 Accordingly, the scope of the present invention patent protection shall be subject to the appended claims.

Citations de brevets
Brevet cité Date de dépôt Date de publication Déposant Titre
CN1694415A *29 avr. 20059 nov. 2005北京邦诺存储科技有限公司Method and device for safety of storaged network data
CN1977500A *24 mars 20056 juin 2007高通股份有限公司Routing communications in a self-organizing network
CN101478490A *5 févr. 20098 juil. 2009中兴通讯股份有限公司Method and apparatus for TIPC supporting multi-cluster network communication
CN101631140A *3 août 200920 janv. 2010中兴通讯股份有限公司Cluster server of instant communication system and method of inter-clusters communication
KR20090047835A * Titre non disponible
US20050213560 *25 mai 200529 sept. 2005Cisco Technology, Inc., A California Corporation.Apparatus and method for automatic cluster network device address assignment
Référencé par
Brevet citant Date de dépôt Date de publication Déposant Titre
CN104811371A *15 mai 201529 juil. 2015北京北信源软件股份有限公司Brand-new instant messaging system
Classifications
Classification internationaleH04L12/715, H04L12/58
Événements juridiques
DateCodeÉvénementDescription
19 sept. 2012C06Publication
18 sept. 2013C10Entry into substantive examination
14 déc. 2016C14Grant of patent or utility model