CN102684984B - Route implementation method and system between cluster - Google Patents
Route implementation method and system between cluster Download PDFInfo
- Publication number
- CN102684984B CN102684984B CN201110064188.2A CN201110064188A CN102684984B CN 102684984 B CN102684984 B CN 102684984B CN 201110064188 A CN201110064188 A CN 201110064188A CN 102684984 B CN102684984 B CN 102684984B
- Authority
- CN
- China
- Prior art keywords
- server
- identification number
- port information
- mobile network
- cluster
- 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.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 claims abstract description 36
- 238000004891 communication Methods 0.000 claims description 12
- 238000005516 engineering process Methods 0.000 description 6
- 238000004088 simulation Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000011664 signaling Effects 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 1
- 230000000875 corresponding Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000977 initiatory Effects 0.000 description 1
Abstract
The present invention relates to route implementation method and system between a kind of cluster.The method comprises the following steps: login successfully and receive mobile network identification number and the port information of described first server;Obtain file transmission request;According to the transmission request of described file, send file data, the mobile network identification number of first server and port information to second server, in order to communicate between described second server and first server.Route implementation method and system between above-mentioned cluster, during by transmission file, mobile network identification number and the port information of first server are sent to second server, second server is made to set up network path according between this mobile network identification number and port information and first server, and first server belongs to different server cluster with second server, it is achieved in that the accurate delivery of file data between cluster.
Description
[technical field]
The present invention relates to computer communication technology field, particularly to route implementation method between cluster and system.
[background technology]
Widely available along with computer network, JICQ (Instant Messaging is called for short IM)
The most more and more become network application necessary to people.Web IM is by http protocol and service
Device carries out communication, and (Asynchronous JavaScript and XML refers to that a kind of establishment is handed over to utilize AJAX
The mutually web development technologies of formula web application) technology initiates Asynchronous Request to server, can dynamically pull user
Data and carry out individual or group message transmitting-receiving.This mode is not required to download and install IM client, can be even
Connect the server cluster system being logged in Web IM server access IM on the computer of network by browser.
Wherein, AJAX technology is the Web application and development side using client script with Web server exchange data
Method, such Web reloads without interaction flow, dynamically updates.
Web IM based on browser use due to it and upgrade on convenience, by more and more users'
Liking, its range of application is more and more extensive.Web IM function from strength to strength, the quantity of background server
And kind also increases, (route refers to by phase the most accurately to realize the route between multiple server cluster
The network connected moves to information the activity of objective from seedbed point) it is the problem needing to solve.
[summary of the invention]
Based on this, it is necessary to provide route implementation method between a kind of cluster, can accurately realize the data between cluster
Transmission.
Route implementation method between a kind of cluster, comprises the following steps:
Login successfully and receive mobile network identification number and the port information of described first server;
Obtain file transmission request;
According to the transmission request of described file, send file data, the network of first server to second server
Identification number and port information, in order to communicate between described second server and first server;
Preferably, communicate between described second server and first server concretely comprises the following steps: described
The second server described file data of reception, the mobile network identification number of first server and port information, and according to
The mobile network identification number of described first server and port information set up network path with first server;
File data is sent to first server by described network path by described second server.
Preferably, described first server is further comprised the steps of: to the mobile network identification number of first server and port
Information is encrypted, and generates encryption address data, and sends described encryption address data.
Preferably, according to the transmission request of described file, file data, first service are sent to second server
The mobile network identification number of device and the step of port information are particularly as follows: according to the transmission request of described file, take to second
Business device sends file data and encryption address data;
After second server receives described encryption address data, described encryption address data are decoded, obtains
The mobile network identification number of first server and port information.
Preferably, further comprise the steps of: mobile network identification number and the port information receiving described first server, and
Storage is to this locality.
Preferably, described first server is Web instant communication server, and described second server is file
Transmission server.
Additionally, there is a need to provide route implementing system between a kind of cluster, can accurately realize the data between cluster
Transmission.
Route implementing system between a kind of cluster, including: browser,
Described browser is for receiving mobile network identification number and the port information of first server, then obtains file biography
Defeated request, and according to file transmission request, send file data, the net of first server to second server
Network identification number and port information, in order to communicate between described second server and first server.
Preferably, first server and second server, described first server and second server are also included
Belong to different server cluster;Described second server is for receiving described file data, first server
Mobile network identification number and port information, and according to the mobile network identification number of described first server and port information and
One server sets up network path, then by described network path, file data is sent to first server.
Preferably, described first server is additionally operable to the mobile network identification number to first server and port information enters
Row encryption, generates encryption address data, and encryption address data is sent to browser.
Preferably, described browser is additionally operable to described encryption address data are sent to second server, described
After second server is additionally operable to receive described encryption address data, described encryption address data are decoded,
Mobile network identification number and port information to first server.
Preferably, described browser is additionally operable to receive mobile network identification number and the port information of described first server,
And store this locality.
Preferably, described first server is Web instant communication server, and described second server is file
Transmission server.
Route implementation method and system between above-mentioned cluster, during by transmission file, by the network of first server
Identification number and port information are sent to second server so that second server is according to this mobile network identification number and end
Set up network path between message breath and first server, and first server belongs to different from second server
Server cluster, has been achieved in that the accurate delivery of file data between cluster.
[accompanying drawing explanation]
Fig. 1 is the flow chart of route implementation method between cluster in an embodiment;
Fig. 2 is the flow chart of route implementation method between cluster in another embodiment;
Fig. 3 is the structural representation of route implementing system between cluster in an embodiment;
Fig. 4 is that Fig. 3 applies the file at Web QQ to transmit schematic diagram.
[detailed description of the invention]
Below in conjunction with specific embodiment and accompanying drawing, technical scheme is described in detail.
As it is shown in figure 1, in one embodiment, route implementation method between a kind of cluster, comprise the following steps:
Step S100, logins successfully and receives mobile network identification number and the port information of described first server.
After logining successfully, browser receives mobile network identification number and the port information of first server, and stores
To this locality.If the mobile network identification number of first server and port information generate encryption address number through encryption
According to, then after browser end receives encryption address data, storage is to this locality, does not carry out other and processes, to needing
When, it is then forwarded to other servers.Meanwhile, browser also carries out a series of number with first server
According to alternately, obtain the data such as buddy list.
Step S110, obtains file transmission request.User passes through simulation instant messaging client based on browser
End interface and its good friend chat, and needs to transmit certain file to good friend, need to send file transmission request.This article
Part can be that picture file (such as West Lake photo), text (such as novel), image file are (such as foundation great cause
Film), be alternatively compressed file.
Step S120, according to this document transmission request, sends file data, first service to second server
The mobile network identification number of device and port information, in order to communicate between this second server and first server.
After browser obtains file transmission request, send file data, first server to second server
Mobile network identification number and port information.If the mobile network identification number of first server and port information are through encryption
Generating encryption address data, the file data that need to transmit and encryption address data are sent to the second clothes by browser
Business device.In this embodiment, second server is Ftp server, belongs to different from first server
Server cluster.
As in figure 2 it is shown, in one embodiment, route implementation method between a kind of cluster, comprise the following steps:
Step S200, initiates logging request to first server.
When user logs in simulation instant communication client interface based on browser, name server (Domain
Name System, is called for short DNS) can determine whether the operator that user accesses, according to operator's distribution server,
Such as the distribution telecommunication server of telecommunications, the distribution Netcom server of Netcom, from Web instant communication server collection
A station server is distributed in Qun.Distributing first server, i.e. first server in the present embodiment is that Web is instant
The communication server.User is stepped on by the transmission of AJAX technology by the JavaScript (script) of browser
Record request returns, to first server, first server, the result logined successfully.
Step S210, first server receives logging request, and sends self mobile network identification number and port letter
Breath.
First server receives after logging request, is sent to browse by self mobile network identification number and port information
Device.Mobile network identification number can be the IP address of first server, and port information can be the port accessed, such as 80
Port etc..The most also the data such as buddy list info are sent to browser, in order to carry out normal chat etc.
Operation.
In one embodiment, after first server receives logging request, first server is further comprised the steps of:
Mobile network identification number and port information to self are encrypted, and generate encryption address data, and transmission should
Encryption address data.Mobile network identification number and port information are encrypted, are to ensure that data are being transferred to
Safety during browser, prevents monitored program from being kidnapped, if in plain text, it is likely that by malice
Listener utilizes and carries out malicious attack.
Step S220, logins successfully and receives mobile network identification number and the port information of first server.
After logining successfully, browser receives mobile network identification number and the port information of first server, and stores
To this locality.If the mobile network identification number of first server and port information generate encryption address number through encryption
According to, then after browser end receives encryption address data, storage is to this locality, does not carry out other and processes, to needing
When, it is then forwarded to other servers.Meanwhile, browser also carries out a series of number with first server
According to alternately, obtain the data such as buddy list.
Step S230, obtains file transmission request.User passes through simulation instant messaging client based on browser
End interface and its good friend chat, and needs to transmit certain file to good friend, need to send file transmission request.This article
Part can be that picture file (such as West Lake photo), text (such as novel), image file are (such as foundation great cause
Film), be alternatively compressed file.
Step S240, according to file transmission request, by browser to second server send file data,
The mobile network identification number of first server and port information.
After browser obtains file transmission request, send file data, first server to second server
Mobile network identification number and port information.If the mobile network identification number of first server and port information are through encryption
Generating encryption address data, the file data that need to transmit and encryption address data are sent to the second clothes by browser
Business device.In this embodiment, second server is Ftp server, belongs to different from first server
Server cluster.
Step S250, second server receives file data, the mobile network identification number of first server and port letter
Cease, and the mobile network identification number and port information according to first server sets up network path with first server.
After second server receives mobile network identification number and the port information of first server, according to first server
Mobile network identification number and port information, find first server, set up network path with first server, with
Just carry out data transmission.
If it addition, at the mobile network identification number of first server that receives of second server and port information encryption
Encryption address data after reason, then second server uses corresponding decipherment algorithm and key pair encryption number of addresses
According to being decoded, obtain mobile network identification number and the port information of required first server.
Step S260, file data is sent to first server by network path by second server.
Second server by file data transfer to first server after, first server could pass through first clothes
File data is sent to receive the server at the user place of this document data by the cluster of business device.
In one embodiment, route implementing system between a kind of cluster, including browser, this browser is used for
Receive mobile network identification number and the port information of first server, then obtain file transmission request, and according to file
Transmission request, sends file data, the mobile network identification number of first server and port information to second server,
To communicate between this second server and first server.
In preferred embodiment, as it is shown on figure 3, route implementing system between a kind of cluster, except including browsing
Device 300, also includes first server 310 and second server 320.Wherein,
Browser 300 is for initiating logging request to first server.User logs in based on browser 300
During simulation instant communication client interface, name server (DNS) can determine whether the operator that user accesses,
According to operator's distribution server, such as the distribution telecommunication server of telecommunications, the distribution Netcom server of Netcom,
A station server is distributed from Web instant communication server cluster.The present embodiment distributes first server
310, i.e. first server is Web instant communication server.User is passed through by the JavaScript of browser
AJAX technology sends logging request and returns, to first server 310, first server 310, the knot logined successfully
Really.
First server 310 is used for receiving logging request, and sends self mobile network identification number and port information
To browser 300.After first server 310 receives logging request, by self mobile network identification number and port letter
Breath is sent to browser 300.Mobile network identification number can be the IP address of first server 310, and port information can
For access port, such as 80 ports etc..The data such as buddy list info are also sent out by first server 310 simultaneously
Give browser 300, in order to carry out the operations such as normal chat.
It addition, after first server 310 receives logging request, the first server 310 network mark to self
Knowledge number and port information are encrypted, and generate encryption address data, and send this encryption address data.
Mobile network identification number and port information are encrypted, are to ensure that data are in the mistake being transferred to browser 300
Safety in journey, prevents monitored program from being kidnapped, if in plain text, it is likely that utilized by malice listener
Carry out malicious attack.
Browser 300 receives mobile network identification number and the port information of first server 310, then obtains file biography
Defeated request, and according to file transmission request, send file data, first server to second server 320
Mobile network identification number and port information.First server 310 and second server 320 belong to different server
Cluster.
After logining successfully, browser 300 receives mobile network identification number and the port information of first server, and
Storage is to this locality.If the mobile network identification number of first server and port information generate cryptographically through encryption
Location data, then after browser 300 receives encryption address data, storage is to this locality, does not carry out other and processes,
The when of to needs, it is then forwarded to other servers.Meanwhile, browser 300 also with first server 310
Carry out a series of data interaction, obtain the data such as buddy list.When user is chatted with its good friend by browser
My god, need to transmit certain file to good friend, file transmission request need to be sent.This document can be picture file (as
West Lake photo), text (such as novel), image file (such as foundation great cause film), alternatively compress literary composition
Part.File data and encryption address data, according to file transmission request, are sent jointly to the by browser 300
Two servers 320.
Second server 320 receives file data, the mobile network identification number of first server and port information, and
Mobile network identification number and port information according to this first server set up network path with first server 310,
By this network path, file data is sent to first server 310 again.
If second server 320 receives encryption address data, then second server 320 uses accordingly
Decipherment algorithm and the decoding of key pair encryption address date, obtain mobile network identification number and the port letter of first server
Breath.It addition, second server 320 is Ftp server.
Second server 320 by file data transfer to first server 310 after, first server 310 is
By first server 310 place cluster, file data can be sent to receive the user institute of this document data
Server.
As shown in Figure 4, to be separately operable sing on web browser in first terminal 400 and the second terminal 450
Simulation QQ interface, i.e. Web QQ, first server 310 is a Web QQ server 410 (Web
QQServe-1), as a example by second server 320 is Ftp server 420 (Task Server-1), A
After user logs in Web browser, distribute a Web QQ server 410, after login, Web QQ and the
One Web QQ server 410 carries out data interaction, the data such as buddy list is pulled down on Web QQ,
And Web QQ receives IP address and the encryption address of port information of a Web QQ server 410 simultaneously
Data, and store this locality, when party A-subscriber transmits file with good friend B, party A-subscriber is at first terminal 400
File data and encryption address data are sent to file by Web browser and transmit by the Web QQ of upper login
Server 420, Ftp server 420, to encryption address decoding data, draws a Web QQ
The IP address of server 410 and port information, further according to a Web QQ server 410 IP address and
Port information finds a Web QQ server 410, and signaling information is sent by Ftp server 420
To a Web QQ server 410, set up network path therewith, then give first by file data transfer
Web QQ server 410, file data is passed through Web server cluster by a Web QQ server 410
430 are transferred to the 2nd Web QQ server 440 (Web QQServe-2), are transmitted further to good friend B second
The Web QQ run in terminal 450.Wherein, signaling information refers between two entities of telecommunications network, passes
Defeated exclusively for setting up and controlling the information continued.
Route implementation method and system between above-mentioned cluster, during by transmission file, by the network of first server
Identification number and port information are sent to the second business device so that second server is according to this mobile network identification number and end
Set up network path between message breath and first server, and first server belongs to different from second server
Server cluster, is achieved in that the accurate delivery of file data between cluster.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes more concrete and detailed,
But therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that, for this area
Those of ordinary skill for, without departing from the inventive concept of the premise, it is also possible to make some deformation and
Improving, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be with appended
Claim is as the criterion.
Claims (10)
1. a route implementation method between cluster, comprises the following steps:
Log in first server success by browser and receive mobile network identification number and the end of described first server
Message ceases;
Obtain file transmission request;
According to the transmission request of described file, send file data, the network of first server to second server
Identification number and port information, in order to communicate between described second server and first server, described
One server and second server belong to different server cluster, described second server and first server it
Between communicate concretely comprise the following steps: described second server receives described file data, first server
Mobile network identification number and port information, and according to the mobile network identification number of described first server and port information and
One server sets up network path, and file data is sent to by described second server by described network path
First server.
Route implementation method between cluster the most according to claim 1, it is characterised in that further comprise the steps of:
Mobile network identification number and the port information of first server are encrypted by described first server, generate cryptographically
Location data, and send described encryption address data.
Route implementation method between cluster the most according to claim 2, it is characterised in that according to described
File transmission request, sends file data, the mobile network identification number of first server and port to second server
The step of information is particularly as follows: according to the transmission request of described file, send file data to second server and add
Close address date;
After second server receives described encryption address data, described encryption address data are decoded, obtains
The mobile network identification number of first server and port information.
Route implementation method between cluster the most according to claim 2, it is characterised in that further comprise the steps of:
Browser receives mobile network identification number and the port information of described first server, and stores this locality.
The method of route implementing between cluster the most according to claim 1, it is characterised in that described first
Server is Web instant communication server, and described second server is Ftp server.
6. route implementing system between a cluster, it is characterised in that including: browser, described browser is used
In logging in first server success and receiving mobile network identification number and the port information of first server, then obtain literary composition
Part transmission request, and according to file transmission request, send file data, first server to second server
Mobile network identification number and port information, in order to communicate between described second server and first server,
Also including first server and second server, described first server belongs to different service from second server
Device cluster, described second server for receive described file data, the mobile network identification number of first server and
Port information, and set up with first server according to the mobile network identification number of described first server and port information
Network path, then by described network path, file data is sent to first server.
Route implementing system between cluster the most according to claim 6, it is characterised in that described first clothes
Business device is additionally operable to the mobile network identification number to first server and port information is encrypted, and generates encryption address number
According to, and encryption address data are sent to browser.
Route implementing system between cluster the most according to claim 7, it is characterised in that described browser
Being additionally operable to described encryption address data are sent to second server, described second server is additionally operable to receive
After described encryption address data, described encryption address data are decoded, obtains the network identity of first server
Number and port information.
Route implementing system between cluster the most according to claim 6, it is characterised in that described browser
It is additionally operable to receive mobile network identification number and the port information of described first server, and stores this locality.
Route implementing system between cluster the most according to claim 6, it is characterised in that described first
Server is Web instant communication server, and described second server is Ftp server.
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 CN102684984A (en) | 2012-09-19 |
CN102684984B true CN102684984B (en) | 2016-12-14 |
Family
ID=
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN101478490A (en) * | 2009-02-05 | 2009-07-08 | 中兴通讯股份有限公司 | Method and apparatus for TIPC supporting multi-cluster network communication |
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN101478490A (en) * | 2009-02-05 | 2009-07-08 | 中兴通讯股份有限公司 | Method and apparatus for TIPC supporting multi-cluster network communication |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101159714B (en) | Instant communication method and device | |
CA2636780C (en) | Method and device for anonymous encrypted mobile data and speech communication | |
CN100463405C (en) | Communication method and system based on group | |
CN103731341B (en) | A kind of method and system that instant messaging business is handled | |
CN101039309B (en) | Link sharing service apparatus and communication method thereof | |
CN101039310B (en) | Link sharing service apparatus and communication method thereof | |
EP2710776B1 (en) | Anonymous signalling | |
CN101729543B (en) | Method for improving performance of mobile SSL VPN by utilizing remote Socks5 technology | |
CN105681260B (en) | Transmit method, converged communication platform, transmitting terminal and the system of cloud storage file | |
WO2010062135A2 (en) | Method and apparatus for providing communication history | |
CN101141420A (en) | Method and system for performing data communication between private network and public network | |
CN102355509B (en) | Method and device for transmitting and receiving message according to mobile number in contact list | |
CN104335198B (en) | Server, method and the terminal for preventing accessing resource are accessed for management terminal | |
US20060093119A1 (en) | Leveraging real-time communications client | |
CN102957592A (en) | Method, client and system for acquiring sender information | |
CN109041036A (en) | WIFI connection method and equipment | |
WO2011038639A1 (en) | Realizing method for end-to-end instant messaging, terminal and system for end-to-end instant messaging | |
CN103051598A (en) | Method, user equipment and packet access gateway for secure access to Internet services | |
CN105721274B (en) | The fusion method and device of one kind of multiple instant messagings | |
CN103905287B (en) | Signal procedure correlating method and device based on local area network | |
CN107343285B (en) | Management equipment and equipment management method | |
CN102075588A (en) | Method and system for realizing network address translation (NAT) transversing and equipment | |
CN103987017B (en) | A kind of method and system for being used to set up service access in a wlan | |
CN102684984B (en) | Route implementation method and system between cluster | |
CN102882759A (en) | Communication method of cross-social network, network element and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
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. |