CN102684984A - Method and system for achieving routing between clusters - Google Patents

Method and system for achieving routing between clusters Download PDF

Info

Publication number
CN102684984A
CN102684984A CN2011100641882A CN201110064188A CN102684984A CN 102684984 A CN102684984 A CN 102684984A CN 2011100641882 A CN2011100641882 A CN 2011100641882A CN 201110064188 A CN201110064188 A CN 201110064188A CN 102684984 A CN102684984 A CN 102684984A
Authority
CN
China
Prior art keywords
server
identification number
port information
network identification
mobile network
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.)
Granted
Application number
CN2011100641882A
Other languages
Chinese (zh)
Other versions
CN102684984B (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 Cloud Computing Beijing 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 CN201110064188.2A priority Critical patent/CN102684984B/en
Priority claimed from CN201110064188.2A external-priority patent/CN102684984B/en
Publication of CN102684984A publication Critical patent/CN102684984A/en
Application granted granted Critical
Publication of CN102684984B publication Critical patent/CN102684984B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

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.

Description

Route implementing method and system between cluster
[technical field]
The present invention relates to the computer communication technology field, particularly route implementing method and system between cluster.
[background technology]
Along with extensively popularizing of computer network, JICQ (Instant Messaging is called for short IM) has been increasing to become the necessary network application of people.Web IM carries out communication through http protocol and server; Utilize AJAX (Asynchronous JavaScript and XML; Being meant a kind of webpage development technology that interaction network page is used of creating) technology initiates asynchronous request to server, and can dynamically pull subscriber data and carry out the individual or the group message transmitting-receiving.The IM client need not downloaded and install to this mode, can on the computer that connects network, land the server cluster system that Web IM server inserts IM through browser.Wherein, the AJAX technology is to use the Web application and development method of client script and Web server swap data, and Web reloads without interaction flow like this, dynamically updates.
Based on the Web IM of browser since its use and upgrade on convenience, what receive more and more users likes that its range of application is also more and more widely.Web IM function from strength to strength; The quantity of background server and kind also increase thereupon, how to realize accurately that the route (route is meant that point moves to the activity of objective from the seedbed information through interconnective network) between a plurality of server clusters is the problem that needs solution.
[summary of the invention]
Based on this, be necessary to provide route implementing method between a kind of cluster, can accurately realize the transfer of data between cluster.
Route implementing method between a kind of cluster may further comprise the steps:
The login success also receives the mobile network identification number and the port information of said first server;
Obtain file transfer requests;
According to said file transfer requests, to the mobile network identification number and the port information of second server transmission file data, first server, so that communicate between the said second server and first server;
Preferably; The concrete steps that communicate between the said second server and first server are: said second server receives the mobile network identification number and the port information of said file data, first server, and sets up network path according to the mobile network identification number of said first server and port information and first server;
Said second server sends to first server through said network path with file data.
Preferably, also comprise step: said first server is encrypted the mobile network identification number and the port information of first server, generates the encryption address data, and sends said encryption address data.
Preferably; According to said file transfer requests; Sending file data, the mobile network identification number of first server and the step of port information to second server is specially: according to said file transfer requests, send file data and encryption address data to second server;
After second server receives said encryption address data,, obtain the mobile network identification number and the port information of first server to said encryption address data decode.
Preferably, also comprise step: receive the mobile network identification number and the port information of said first server, and store this locality into.
Preferably, said first server is the Web instant communication server, and said second server is a Ftp server.
In addition, also be necessary to provide route implementing system between a kind of cluster, can accurately realize the transfer of data between cluster.
Route implementing system between a kind of cluster comprises: browser,
Said browser is used to receive the mobile network identification number and the port information of first server; Obtain file transfer requests again; And according to file transfer requests; To the mobile network identification number and the port information of second server transmission file data, first server, so that communicate between the said second server and first server.
Preferably, also comprise first server and second server, said first server and second server belong to the different server cluster; Said second server is used to receive the mobile network identification number and the port information of said file data, first server; And set up network path according to the mobile network identification number of said first server and port information and first server, through said network path file data is sent to first server again.
Preferably, said first server also is used for the mobile network identification number and the port information of first server are encrypted, and generates the encryption address data, and the encryption address data are sent to browser.
Preferably; Said browser also is used for said encryption address data are sent to second server; After said second server also is used to receive said encryption address data,, obtain the mobile network identification number and the port information of first server to said encryption address data decode.
Preferably, said browser also is used to receive the mobile network identification number and the port information of said first server, and stores this locality into.
Preferably, said first server is the Web instant communication server, and said second server is a Ftp server.
Route implementing method and system between above-mentioned cluster; During through transfer files; The mobile network identification number and the port information of first server are sent to second server; Make second server according to setting up network path between this mobile network identification number and the port information and first server, and first server and second server belong to the different server cluster, realized the accurate transmission of file data between cluster like this.
[description of drawings]
Fig. 1 is the flow chart of route implementing method between cluster among the embodiment;
Fig. 2 is the flow chart of route implementing method between cluster among another embodiment;
Fig. 3 is the structural representation of route implementing system between cluster among the embodiment;
Fig. 4 is applied in the file transfer sketch map of Web QQ for Fig. 3.
[embodiment]
Below in conjunction with concrete embodiment and accompanying drawing technical scheme is carried out detailed description.
As shown in Figure 1, in one embodiment, route implementing method between a kind of cluster may further comprise the steps:
Step S100, the login success also receives the mobile network identification number and the port information of said first server.
After logining successfully, browser receives the mobile network identification number and the port information of first server, and stores this locality into.If the mobile network identification number of first server and port information generate the encryption address data through encryption, then browser end stores this locality into after receiving the encryption address data, does not carry out other and handles, and it's time to needs, and redispatches to other servers.Simultaneously, browser also carries out a series of data interaction with first server, obtains data such as buddy list.
Step S110 obtains file transfer requests.The user needs to transmit certain file and gives the good friend through simulation instant communication client interface and its good friend chat based on browser, needs to send file transfer requests.This document can be picture file (like West Lake photo), text (like novel), image file (like foundation great cause film), also can be compressed file.
Step S120 is according to this document transmission requests, to the mobile network identification number and the port information of second server transmission file data, first server, so that communicate between this second server and first server.
After browser obtains file transfer requests, send the mobile network identification number and the port information of file data, first server to second server.If the mobile network identification number of first server and port information generate the encryption address data through encryption, file data that browser will transmit and encryption address data send to second server.Among this embodiment, second server is a Ftp server, belongs to different server clusters with first server.
As shown in Figure 2, in one embodiment, route implementing method between a kind of cluster may further comprise the steps:
Step S200 initiates logging request to first server.
When the user logins based on the simulation instant communication client interface of browser; Name server (Domain Name System; Be called for short DNS) can confirm the operator that the user inserts, according to operator's distribution server, like the distribution telecommunication server of telecommunications; The distribution Netcom server of Netcom distributes a station server from Web instant communication server cluster.Distribute first server in the present embodiment, promptly first server is the Web instant communication server.The user sends logging request to first server through the JavaScript (script) of browser through the AJAX technology, and first server returns the successful result of login.
Step S210, first server receives logging request, and sends self networks identification number and port information.
First server sends to browser with self networks identification number and port information after receiving logging request.Mobile network identification number can be the IP address of first server, and port information can be the port of access, like 80 ports etc.Also data such as buddy list information are sent to browser simultaneously, so that operation such as chat normally.
In one embodiment, after first server received logging request, also comprise step: first server carried out encryption to self networks identification number and port information, generated the encryption address data, and sent this encryption address data.Mobile network identification number and port information are encrypted, and are in order to guarantee that data are being transferred to the process safe of browser, to prevent to be kidnapped by oracle listener, if expressly, then might be carried out malicious attack by the utilization of malice listener.
Step S220, the login success also receives the mobile network identification number and the port information of first server.
After logining successfully, browser receives the mobile network identification number and the port information of first server, and stores this locality into.If the mobile network identification number of first server and port information generate the encryption address data through encryption, then browser end stores this locality into after receiving the encryption address data, does not carry out other and handles, and it's time to needs, and redispatches to other servers.Simultaneously, browser also carries out a series of data interaction with first server, obtains data such as buddy list.
Step S230 obtains file transfer requests.The user needs to transmit certain file and gives the good friend through simulation instant communication client interface and its good friend chat based on browser, needs to send file transfer requests.This document can be picture file (like West Lake photo), text (like novel), image file (like foundation great cause film), also can be compressed file.
Step S240 according to file transfer requests, sends the mobile network identification number and the port information of file data, first server to second server through browser.
After browser obtains file transfer requests, send the mobile network identification number and the port information of file data, first server to second server.If the mobile network identification number of first server and port information generate the encryption address data through encryption, file data that browser will transmit and encryption address data send to second server.Among this embodiment, second server is a Ftp server, belongs to different server clusters with first server.
Step S250, second server receive the mobile network identification number and the port information of file data, first server, and set up network path according to the mobile network identification number of first server and port information and first server.
After second server received the mobile network identification number and port information of first server, mobile network identification number and port information according to first server found first server, set up network path with first server, so that carry out transfer of data.
In addition; If the mobile network identification number of first server that second server receives and the encryption address data after the port information encryption; Then second server adopts corresponding decipherment algorithm and key that the encryption address data are decoded, and obtains the mobile network identification number and the port information of the first required server.
Step S260, second server sends to first server through network path with file data.
After second server was transferred to first server with file data, first server could send to file data the server at the user place that needs reception this document data through the cluster of first server.
In one embodiment; Route implementing system between a kind of cluster comprises browser, and this browser is used to receive the mobile network identification number and the port information of first server; Obtain file transfer requests again; And according to file transfer requests, to the mobile network identification number and the port information of second server transmission file data, first server, so that communicate between this second server and first server.
In the preferred embodiment, as shown in Figure 3, route implementing system between a kind of cluster except comprising browser 300, also comprises first server 310 and second server 320.Wherein,
Browser 300 is used for initiating logging request to first server.When the user logins based on the simulation instant communication client interface of browser 300; Name server (DNS) can be confirmed the operator that the user inserts; According to operator's distribution server; Like the distribution telecommunication server of telecommunications, the distribution Netcom server of Netcom distributes a station server from Web instant communication server cluster.Distribute first server 310 in the present embodiment, promptly first server is the Web instant communication server.The user returns login successful result through AJAX technology transmission logging request to first server, 310, the first servers 310 through the JavaScript of browser.
First server 310 is used to receive logging request, and sends self networks identification number and port information to browser 300.After first server 310 receives logging request, self networks identification number and port information are sent to browser 300.Mobile network identification number can be the IP address of first server 310, and port information can be the port of access, like 80 ports etc.Simultaneously first server 310 also sends to browser 300 with data such as buddy list information, so that operation such as chat normally.
In addition, after first server 310 received logging request, 310 pairs of self networks identification numbers of first server and port information carried out encryption, generate the encryption address data, and send this encryption address data.Mobile network identification number and port information are encrypted, and are in order to guarantee that data in the process safe that is transferred to browser 300, prevent to be kidnapped by oracle listener, if expressly, then might be carried out malicious attack by the utilization of malice listener.
Browser 300 receives the mobile network identification number and the port information of first server 310, obtains file transfer requests again, and according to file transfer requests, sends the mobile network identification number and the port information of file data, first server to second server 320.First server 310 belongs to the different server cluster with second server 320.
After logining successfully, browser 300 receives the mobile network identification number and the port information of first server, and stores this locality into.If the mobile network identification number of first server and port information generate the encryption address data through encryption, then browser 300 stores this locality into after receiving the encryption address data, does not carry out other and handles, and it's time to needs, and redispatches to other servers.Simultaneously, browser 300 also carries out a series of data interaction with first server 310, obtains data such as buddy list.When the user chats through browser and its good friend, need to transmit certain file and give the good friend, need the transmission file transfer requests.This document can be picture file (like West Lake photo), text (like novel), image file (like foundation great cause film), also can be compressed file.Browser 300 sends to second server 320 according to file transfer requests with file data and encryption address data together.
Second server 320 receives the mobile network identification number and the port information of file data, first server; And set up network path according to the mobile network identification number of this first server and port information and first server 310, through this network path file data is sent to first server 310 again.
When if second server 320 receives the encryption address data, then second server 320 adopts corresponding decipherment algorithm and key to the encryption address data decode, obtains the mobile network identification number and the port information of first server.In addition, second server 320 is a Ftp server.
After second server 320 was transferred to first server 310 with file data, first server 310 could send to file data the server at the user place that needs reception this document data through first server, 310 place clusters.
As shown in Figure 4, to move the simulation QQ interface based on Web browser, i.e. Web QQ on first terminal 400 and second terminal 450 respectively; First server 310 is a Web QQ server 410 (Web QQServe-1), and second server 320 is that Ftp server 420 (Task Server-1) is example, after the party A-subscriber logins Web browser; Distribute a Web QQ server 410; After the login, a Web QQ and a Web QQ server 410 carry out data interaction, and data such as buddy list are pulled down on the Web QQ; And Web QQ receives the IP address of a Web QQ server 410 and the encryption address data of port information simultaneously; And store this locality into, when party A-subscriber and good friend B transfer files, the Web QQ that the party A-subscriber logins on first terminal 400 sends to Ftp server 420 through Web browser with file data and encryption address data; 420 pairs of encryption address data of Ftp server are decoded; Draw the IP address and the port information of a Web QQ server 410, IP address and the port information according to a Web QQ server 410 finds a Web QQ server 410 again, and Ftp server 420 sends to a Web QQ server 410 with signaling information; Set up network path with it; Then file data is transferred to a Web QQ server 410, the one Web QQ servers 410 file data is transferred to the 2nd Web QQ server 440 (Web QQServe-2) through Web server cluster 430, be transferred to the Web QQ that good friend B moves again on second terminal 450.Wherein, signaling information is meant that between two entities of telecommunications network transmission is special in setting up and control the information that continues.
Route implementing method and system between above-mentioned cluster; During through transfer files; The mobile network identification number and the port information of first server are sent to the second affair device; Make second server according to setting up network path between this mobile network identification number and the port information and first server, and first server and second server belong to the different server cluster, realize the accurate transmission of file data between cluster like this.
The above embodiment has only expressed several kinds of execution modes of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with accompanying claims.

Claims (12)

1. route implementing method between a cluster may further comprise the steps:
The login success also receives the mobile network identification number and the port information of said first server;
Obtain file transfer requests;
According to said file transfer requests, to the mobile network identification number and the port information of second server transmission file data, first server, so that communicate between the said second server and first server.
2. route implementing method between cluster according to claim 1; It is characterized in that; The concrete steps that communicate between the said second server and first server are: said second server receives the mobile network identification number and the port information of said file data, first server, and sets up network path according to the mobile network identification number of said first server and port information and first server;
Said second server sends to first server through said network path with file data.
3. route implementing method between cluster according to claim 2; It is characterized in that; Also comprise step: said first server is encrypted the mobile network identification number and the port information of first server, generates the encryption address data, and sends said encryption address data.
4. route implementing method between cluster according to claim 3; It is characterized in that; According to said file transfer requests; Sending file data, the mobile network identification number of first server and the step of port information to second server is specially: according to said file transfer requests, send file data and encryption address data to second server;
After second server receives said encryption address data,, obtain the mobile network identification number and the port information of first server to said encryption address data decode.
5. route implementing method between cluster according to claim 3 is characterized in that, also comprises step: receive the mobile network identification number and the port information of said first server, and store this locality into.
6. the method for route implementing is characterized in that between cluster according to claim 2, and said first server is the Web instant communication server, and said second server is a Ftp server.
7. route implementing system between a cluster; It is characterized in that, comprising: browser, said browser are used to receive the mobile network identification number and the port information of first server; Obtain file transfer requests again; And according to file transfer requests, to the mobile network identification number and the port information of second server transmission file data, first server, so that communicate between the said second server and first server.
8. route implementing system between cluster according to claim 7 is characterized in that, also comprises first server and second server, and said first server and second server belong to the different server cluster; Said second server is used to receive the mobile network identification number and the port information of said file data, first server; And set up network path according to the mobile network identification number of said first server and port information and first server, through said network path file data is sent to first server again.
9. route implementing system between cluster according to claim 8; It is characterized in that; Said first server also is used for the mobile network identification number and the port information of first server are encrypted, and generates the encryption address data, and the encryption address data are sent to browser.
10. route implementing system between cluster according to claim 9; It is characterized in that; Said browser also is used for said encryption address data are sent to second server; After said second server also is used to receive said encryption address data,, obtain the mobile network identification number and the port information of first server to said encryption address data decode.
11. route implementing system between cluster according to claim 7 is characterized in that, said browser also is used to receive the mobile network identification number and the port information of said first server, and stores this locality into.
12. route implementing system between cluster according to claim 8 is characterized in that, said first server is the Web instant communication server, and said second server is a Ftp server.
CN201110064188.2A 2011-03-14 Route implementation method and system between cluster Active CN102684984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110064188.2A CN102684984B (en) 2011-03-14 Route implementation method and system between cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110064188.2A CN102684984B (en) 2011-03-14 Route implementation method and system between cluster

Publications (2)

Publication Number Publication Date
CN102684984A true CN102684984A (en) 2012-09-19
CN102684984B CN102684984B (en) 2016-12-14

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811371A (en) * 2015-05-15 2015-07-29 北京北信源软件股份有限公司 Brand-new instant messaging system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213560A1 (en) * 1999-11-30 2005-09-29 Cisco Technology, Inc., A California Corporation. Apparatus and method for automatic cluster network device address assignment
CN1694415A (en) * 2005-04-29 2005-11-09 北京邦诺存储科技有限公司 Method and device for safety of storaged network data
CN1977500A (en) * 2004-03-26 2007-06-06 高通股份有限公司 Routing communications in a self-organizing network
KR20090047835A (en) * 2007-11-08 2009-05-13 주식회사 엔씨소프트 Independent chatting system in on-line game and method thereof
CN101478490A (en) * 2009-02-05 2009-07-08 中兴通讯股份有限公司 Method and apparatus for TIPC supporting multi-cluster network communication
CN101631140A (en) * 2009-08-03 2010-01-20 中兴通讯股份有限公司 Cluster server of instant communication system and method of inter-clusters communication

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213560A1 (en) * 1999-11-30 2005-09-29 Cisco Technology, Inc., A California Corporation. Apparatus and method for automatic cluster network device address assignment
CN1977500A (en) * 2004-03-26 2007-06-06 高通股份有限公司 Routing communications in a self-organizing network
CN1694415A (en) * 2005-04-29 2005-11-09 北京邦诺存储科技有限公司 Method and device for safety of storaged network data
KR20090047835A (en) * 2007-11-08 2009-05-13 주식회사 엔씨소프트 Independent chatting system in on-line game and method thereof
CN101478490A (en) * 2009-02-05 2009-07-08 中兴通讯股份有限公司 Method and apparatus for TIPC supporting multi-cluster network communication
CN101631140A (en) * 2009-08-03 2010-01-20 中兴通讯股份有限公司 Cluster server of instant communication system and method of inter-clusters communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811371A (en) * 2015-05-15 2015-07-29 北京北信源软件股份有限公司 Brand-new instant messaging system
CN104811371B (en) * 2015-05-15 2018-04-03 北京北信源软件股份有限公司 A kind of brand-new instantaneous communication system

Similar Documents

Publication Publication Date Title
CN109842906B (en) Communication method, device and system
CA2636780C (en) Method and device for anonymous encrypted mobile data and speech communication
EP2710776B1 (en) Anonymous signalling
EP3720100A1 (en) Service request processing method and device
CN113572835B (en) Data processing method, network element equipment and readable storage medium
WO2010062135A2 (en) Method and apparatus for providing communication history
CN108200158B (en) Request Transmission system, method, apparatus and storage medium
EP4246936A1 (en) Data processing method, function device and readable storage medium
CN105681260B (en) Transmit method, converged communication platform, transmitting terminal and the system of cloud storage file
CN113596191A (en) Data processing method, network element equipment and readable storage medium
CN102035813A (en) End-to-end call realizing method, end-to-end call terminal and system
WO2016141254A1 (en) Secure distributed device-to-device network
CN105207860B (en) A kind of business acceleration system and method
CN109041036A (en) WIFI connection method and equipment
CN102035655A (en) Implementation method for end-to-end instant messaging, and end-to-end instant messaging terminal and system
US20130188559A1 (en) Method for Establishing a Communication Connection over the Internet Between Mobile Terminals, Computer Program, and Storage Medium
US20180081746A1 (en) Application message processing system, method, and application device
CN107343285B (en) Management equipment and equipment management method
CN110971426A (en) Method for constructing group session, client and storage medium
WO2010009642A1 (en) Method, system and device for implementing short message among enterprises
CN101237428B (en) Method, system and server for establishing multi-party session based on instant messaging group
CN102684984A (en) Method and system for achieving routing between clusters
WO2010124549A1 (en) Method, apparatus and system for obtaining public key
CN102684984B (en) Route implementation method and system between cluster
US20130258857A1 (en) System and Method for Hybrid Telecommunication

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180913

Address after: 100089 Beijing Haidian District Zhichun Road 49 No. 3 West 309

Patentee after: Tencent cloud computing (Beijing) limited liability company

Address before: 518044 East 403 room, Sai Ge science and Technology Park, Futian District Zhenxing Road, Shenzhen, Guangdong, China, 2

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.