The invention relates to the technical field of data processing, in particular, to a file transmitting method and system.
The most common end to end file transmission must be consistent in network protocol, in direct connection, timely, on-line, completely active or completely passive; it can neither fulfill a transmission at a given time, nor transfer the file according to the requirements by different clients or in case of abnormality of client, nor support a cross network and cross platform transmission.
Chinese patent issue No. CN101355476B discloses a data file storing, distributing and applying system and method based on a server cluster. This system comprises a plurality of server clusters that are distributed on the internet, wherein each server cluster comprises a plurality of servers that are disposed on a metropolitan area network or a local area network, and the servers can be divided into a management server, an application server and a network file server; the servers within the clusters can connected to each other via the metropolitan area network or a local area network, and the server clusters of different metropolitan area networks are connected to each other via internet or a wide area network. The server cluster is distributed at a location that is closet to the user, and is connected to the client of the user through a metropolitan area network, an access network or a local area network. The management server is responsible for the management of the cluster to which it belongs, including the management of the server, the user, data file and application programs, as well as communication and coordination with other clusters. The application server runs application software and provides the user with application service through a network. The network file system provides a storage space for storing and distributing data file.
Though Chinese patent issue No. CN101355476B proposes a file transmitting system, it has many specific service logics and is applied to many clusters on the internet, and is complicated in structure.
In view of the above, the invention provides a file transmitting system and method for transmitting files.
The invention provides a file transmitting method, which is used for a system comprising N network file systems, N file receiving and forwarding servers, N network access servers, N client servers and N backstage servers that are in a one-to-one correspondence with the network file systems, the file transmitting method comprising:
the backstage server sends a file transmitting request to the file receiving and forwarding server, which file transmitting request comprises information on the file sending party, the file destination party and the file to be transmitted;
the file receiving and forwarding server verifies the legitimacy of the file transmitting request; if legitimate, a subsequent step is performed; otherwise, a response that prohibits the transmitting is generated and returned to the backstage server that initiated the request;
if it is determined that the file sending party is the backstage server that initiated the request, the file receiving and forwarding server determines whether the file destination party is another backstage server or the client server;
if the file destination party is another backstage server, the file receiving and forwarding server reads a file from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and stores the file in a network file system that corresponds to the file destination party;
if the file destination party is the client server, the network access server is informed to establish a connection between the file receiving and forwarding server and the client server, and a file is read from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and is forwarded to the client server;
if it is determined that the file destination party is the backstage server that initiated the request, the file receiving and forwarding server determines whether the file sending party is another backstage server or the client server;
if the file sending party is another backstage server, the file receiving and forwarding server reads a file from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and stores the file in a network file system that corresponds to the file destination party;
if the file destination party is the client server, the network access server is informed to establish a connection between the file receiving and forwarding server and the client server, and the client server is informed to send file according to the information on the file to be transmitted and the received file is stored in a network file system that corresponds to the backstage server that initiated the request.
The invention also provides a file transmitting method, which is used for a system comprising N network file systems, N file receiving and forwarding servers, N network access servers, N client servers and N backstage servers that are in a one-to-one correspondence with the network file systems, the file transmitting method comprising:
the client server sends a file transmitting request to the file receiving and forwarding server through the network access server, which file transmitting request comprises information on the file sending party, the file receiving party and the file to be transmitted;
the file receiving and forwarding server verifies the legitimacy of the file transmitting request; if legitimate, a subsequent step is performed; otherwise, a response that prohibits the transmitting is generated and returned to the client server that initiated the request;
if it is determined that the file sending party is the client server that initiated the request, the file receiving and forwarding server determines whether the file destination party is the backstage server, another client server or this file receiving and forwarding server;
if the file destination party is the backstage server, the client server is informed to send file according to the information on the file to be transmitted, and the received file is stored in a network file system that corresponds to the file destination party;
if the file destination party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server, and the client server is informed to send file according to the information on the file to be transmitted and the received file is forwarded to said another client server;
if the file destination party is the file receiving and forwarding server, a network file system is designated according to a load balancing principle, and the client server is informed to send file according to the information on the file to be transmitted and the received file is stored in the designated network file system;
if it is determined that the file destination party is the client server that initiated the request, the file receiving and forwarding server determines whether the file sending party is the backstage server, another client server or this file receiving and forwarding server;
if the file sending party is the backstage server, a file is read from a network file system that corresponds to the backstage server according to the information on the file to be transmitted, and the received file is forwarded to the client server that initiated the request;
if the file sending party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server, and said another client server is informed to send file according to the information on the file to be transmitted and the received file is forwarded to the client server that initiated the request;
if the file sending party is the file receiving and forwarding server, a network file system is determined according to the information on the file to be transmitted, a file is read from the determined network file system and the read file is forwarded to the client server that initiated the request.
Preferably, in the above file transmitting method of the invention, when the file receiving and forwarding server determines that the file sending party is the client server that initiated the request and the file destination party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server;
said another client server is informed by the network access server to receive file;
when the file receiving and forwarding server receives a response that permits the transmitting, the received file is forwarded to said another client server;
when a response that prohibits the transmitting is received, a network file system is designated according to a load balancing principle, and the received file is stored in the designated network file system; a file transmitting request that is to be processed is generated in which the file sending party is the file receiving and forwarding server and the file destination party is said another client server, and after a predetermined time period, the file transmitting request is performed until said another client server receives the file.
Preferably, in the above file transmitting method of the invention, when the file receiving and forwarding server determines that the file sending party is another client server and the file destination party is the client server that initiated the request, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server;
said another client server is informed by the network access server to send file;
when the file receiving and forwarding server receives a response that permits the transmitting, receives the file from said another client server;
when a response that prohibits the transmitting is received, a first file transmitting request that is to be processed and a second file transmitting request that is to be processed are generated; in the first file transmitting request that is to be processed, the file sending party is said another client server, and the file destination party is the file receiving and forwarding server; and in the second file transmitting request that is to be processed, the file sending party is the file receiving and forwarding server, and the file destination party is the client server that initiated the request;
after a predetermined time, the first file transmitting request that is to be processed is performed;
after successfully performing the first file transmitting request that is to be processed, the second file transmitting request that is to be processed is performed.
Preferably, in the above file transmitting method of the invention, the file transmitting method further comprises:
the file receiving and forwarding server generates a file transmitting result message and sends it to the backstage server that initiated the request.
Preferably, in the above file transmitting method of the invention, before the file receiving and forwarding server forwards the file to the client server, the file is pre-processed in order to generate a file that meets the requirements on the file format of the client server, and the pre-processed file is sent to the client server.
Preferably, in the above file transmitting method of the invention, the file transmitting request further comprises timing information, and the above file transmitting method further comprises that in case that the file receiving and forwarding server determines the file transmitting request is legitimate, the file receiving and forwarding server determines whether the timing information is satisfied; if satisfied, a subsequent step is performed; otherwise, the file receiving and forwarding server records the file transmitting request as a file transmitting request that is to be processed, and a subsequent step is performed after the timing information is satisfied.
The invention provides a file transmitting system which comprises N file receiving and forwarding servers, N network access servers, N client servers and N backstage servers that are in a one-to-one correspondence with the network file systems, and the file receiving and forwarding server comprises a verification module and a file receiving and forwarding module, wherein:
the backstage server sends a file transmitting request to the verification module of the file receiving and forwarding server, which file transmitting request comprises information on the file sending party, the file destination party and the file to be transmitted;
the verification module of the file receiving and forwarding server verifies the legitimacy of the file transmitting request; if legitimate, the file transmitting request is forwarded to the file receiving and forwarding module; otherwise, a response that prohibits the transmitting is generated and returned to the backstage server that initiated the request;
if it is determined that the file sending party is the backstage server that initiated the request, the file receiving and forwarding module determines whether the file destination party is another backstage server or the client server;
if the file destination party is another backstage server, the file receiving and forwarding module reads a file from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and stores the file in a network file system that corresponds to the file destination party;
if the file destination party is the client server, the network access server is informed to establish a connection between the file receiving and forwarding server and the client server, and a file is read from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and is forwarded to the client server;
if it is determined that the file destination party is the backstage server that initiated the request, the file receiving and forwarding module determines whether the file sending party is another backstage server or the client server;
if the file sending party is the another backstage server, the file receiving and forwarding server reads a file from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and stores the file in a network file system that corresponds to the file destination party;
if the file sending party is the client server, the network access server is informed to establish a connection between the file receiving and forwarding server and the client server, and the client server is informed to send file according to the information on the file to be transmitted and the received file is stored in a network file system that corresponds to the backstage server that initiated the request.
The invention also provides a file transmitting system which comprises N file receiving and forwarding servers, N network access servers, N client servers and N backstage servers that are in a one-to-one correspondence with the network file systems, and the file receiving and forwarding server comprises a verification module and a file receiving and forwarding module, wherein:
the client server sends a file transmitting request to the verification module of the file receiving and forwarding server through the network access server, which file transmitting request comprises information on the file sending party, the file receiving party and the file to be transmitted;
the verification module of the file receiving and forwarding server verifies the legitimacy of the file transmitting request; if legitimate, the file transmitting request is forwarded to the file receiving and forwarding module; otherwise, a response that prohibits the transmitting is generated and returned to the client server that initiated the request;
if it is determined that the file sending party is the client server that initiated the request, the file receiving and forwarding module determines whether the file destination party is the backstage server, another client server or this file receiving and forwarding server;
if the file destination party is the backstage server, the client server is informed to send file according to the information on the file to be transmitted, and the received file is stored in a network file system that corresponds to the file destination party;
if the file destination party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server, and the client server is informed to send file according to the information on the file to be transmitted and the received file is forwarded to said another client server;
if the file destination party is the file receiving and forwarding server, a network file system is designated according to a load balancing principle, and the client server is informed to send file according to the information on the file to be transmitted and the received file is stored in the designated network file system;
if it is determined that the file destination party is the client server that initiated the request, the file receiving and forwarding module determines whether the file sending party is the backstage server, another client server or this file receiving and forwarding server;
if the file sending party is the backstage server, a file is read from a network file system that corresponds to the backstage server according to the information on the file to be transmitted, and the received file is forwarded to the client server that initiated the request;
if the file sending party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server, and said another client server is informed to send file according to the information on the file to be transmitted and the received file is forwarded to the client server that initiated the request;
if the file sending party is the file receiving and forwarding server, a network file system is determined according to the information on the file to be transmitted, a file is read from the determined network file system and the read file is forwarded to the client server that initiated the request.
Preferably, in the above file transmitting system of the invention, when the file receiving and forwarding module determines that the file sending party is the client server that initiated the request and the file destination party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server;
said another client server is informed by the network access server to receive file;
when a response that permits the transmitting is received, the received file is forwarded to said another client server;
when a response that prohibits the transmitting is received, a network file system is designated according to a load balancing principle, and the received file is stored in the designated network file system; a file transmitting request that is to be processed is generated in which the file sending party is the file receiving and forwarding server and the file destination party is said another client server, and after a predetermined time period, the file transmitting request is performed until said another client server receives the file.
Preferably, in the above file transmitting system of the invention, when the file receiving and forwarding module determines that the file sending party is another client server and the file destination party is the client server that initiated the request, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server;
said another client server is informed by the network access server to send file;
when a response that permits the transmitting is received, the file is received from said another client server;
when a response that prohibits the transmitting is received, a first file transmitting request that is to be processed and a second file transmitting request that is to be processed are generated; in the first file transmitting request that is to be processed, the file sending party is said another client server, and the file destination party is the file receiving and forwarding server; and in the second file transmitting request that is to be processed, the file sending party is the file receiving and forwarding server, and the file destination party is the client server that initiated the request;
after a predetermined time, the first file transmitting request that is to be processed is performed;
after successfully performing the first file transmitting request that is to be processed, the second file transmitting request that is to be processed is performed.
Preferably, in the above file transmitting system of the invention, the file receiving and forwarding module generates a file transmitting result message and sends it to the backstage server that initiated the request.
Preferably, in the above file transmitting system of the invention, before the file receiving and forwarding module forwards the file to the client server, the file is pre-processed in order to generate a file that meets the requirements on the file format of the client server, and the pre-processed file is sent to the client server.
Preferably, in the above file transmitting system of the invention, the file transmitting request further comprises timing information, and the file receiving and forwarding module determines whether the timing information is satisfied; if satisfied, the file transmitting request is processed; otherwise, the file receiving and forwarding module records the file transmitting request as a file transmitting request that is to be processed, and the file transmitting request is processed after the timing information is satisfied.
With the invention, a transmission of file can be realized. With the method and system of the invention, on-line transfer of files, off-line transfer of files, and a one-to-many on-line transmission of files at a instant time or given time across different networks in an end-to-end manner can be realized on the network between the file receiving and forwarding server and the client server. Moreover, the transmission result of file can be recorded and informed accurately.
Preferred embodiments of the invention will be described below with reference to the accompanying drawings, in which identical reference numbers indicate identical elements.
Each file receiving and forwarding server comprises a verification module and a file transmitting module. In
The backstage server (e.g., the backstage server 51) sends a file transmitting request to the verification module 210 of the file receiving and forwarding server (e.g., the file receiving and forwarding server 21), which file transmitting request comprises information on the file sending party, the file destination party and the file to be transmitted. The verification module 210 verifies the legitimacy of the file transmitting request; if legitimate, the file transmitting request is forwarded to the file receiving and forwarding module 211 so that the file receiving and forwarding module 211 can process the file transmitting request; otherwise, a response that prohibits the transmitting is generated and returned to the backstage server 51 that initiated the request.
If it is determined that the file sending party is the backstage server 51 that initiated the request, the file receiving and forwarding module 211 determines whether the file destination party is another backstage server (e.g., the backstage server 52) or the client server (e.g., the client server 41). If the file destination party is another backstage server 52, the file receiving and forwarding module 211 reads a file from a network file system (e.g., the network file system 11) that corresponds to the file sending party 51 according to the information on the file to be transmitted, and stores the file in a network file system 12 that corresponds to the file destination party (i.e., the backstage server 52). If the file destination party is the client server (e.g., the client server 41), the network access server (e.g., the network access server 31) is informed to establish a connection between the file receiving and forwarding server 21 and the client server 41, and a file is read from a network file system 11 that corresponds to the file sending party (i.e., the backstage server 51) according to the information on the file to be transmitted, and is forwarded to the client server 41. Preferably, before the file receiving and forwarding module 211 forwards the file to the client server 41, the file is pre-processed in order to generate a file that meets the requirements on the file format of the client server 41, and the pre-processed file is sent to the client server 41.
If it is determined that the file destination party is the backstage server 51 that initiated the request, the file receiving and forwarding module 211 determines whether the file sending party is another backstage server (e.g., the backstage server 52) or the client server (e.g., the client server 41).
If the file sending party is another backstage server 52, the file receiving and forwarding module 211 reads a file from a network file system 12 that corresponds to the file sending party 52 according to the information on the file to be transmitted, and stores the file in a network file system 11 that corresponds to the file destination party 51.
If the file sending party is the client server 41, the file receiving and forwarding module 211 informs the network access server (e.g., the network access server 31) to establish a connection between the file receiving and forwarding server 21 and the client server 41, informs the client server 41 to send file according to the information on the file to be transmitted and the received file is stored in a network file system 11 that corresponds to the backstage server 51 that initiated the request.
Preferably, the file transmitting request further comprises timing information, and the file receiving and forwarding module 211 firstly determines whether the timing information is satisfied; if satisfied, the file transmitting request is processed; otherwise, the file receiving and forwarding module 211 records the file transmitting request as a file transmitting request that is to be processed, and the file transmitting request is processed after the timing information is satisfied.
Preferably, the file receiving and forwarding server 211 further generates a file transmitting result message and sends it to the backstage server 51 that initiated the request.
Each file receiving and forwarding server comprises a verification module and a file transmitting module. In
The client server (e.g., the client server 41′) sends a file transmitting request to the verification module 210′ of the file receiving and forwarding server (e.g., the file receiving and forwarding server 21′) through the network access server (e.g., the network access server 31′), which file transmitting request comprises information on the file sending party, the file destination party and the file to be transmitted.
The verification module 210′ verifies the legitimacy of the file transmitting request; if legitimate, the file transmitting request is forwarded to the file receiving and forwarding module 211′; otherwise, a response that prohibits the transmitting is generated and returned to the client server 41′ that initiated the request.
If it is determined that the file sending party is the client server that initiated the request, the file receiving and forwarding server 211′ determines whether the file destination party is the backstage server (e.g., the backstage server 51′), another client server (e.g., the client server 42′) or the file receiving and forwarding server 21′;
if the file destination party is the backstage server 51′, the client server 41′ is informed to send file according to the information on the file to be transmitted, and the received file is stored in a network file system 31′ that corresponds to the file destination party 51′.
If the file destination party is another client server 42′, the network access server (which could be the network access server 31′ or another network access server which is assumed to be network server 32′ herein) is informed to establish a connection between the file receiving and forwarding server 21′ and said another client server 42′, and the client server 41′ is informed to send file through the network access server 31′ according to the information on the file to be transmitted and the received file is forwarded to said another client server 42′ through the network access server 32′.
Preferably, before the file receiving and forwarding module 211′ forwards the file to the client server 42′, the file is pre-processed in order to generate a file that meets the requirements on the file format of the client server 42′, and the pre-processed file is sent to the client server 42′.
Preferably, after the network access server 32′ establishes a connection between the file receiving and forwarding server 21′ and said another client server 42′, the file receiving and forwarding module 211′ informs said another client server 42′ through the network access server 32′ to receive file. When the file receiving and forwarding module 211′ receives a response that permits the transmitting, the received file is forwarded to said another client server 42′. When the file receiving and forwarding module 211′ receives a response that prohibits the transmitting, a network file system (e.g., the network file system 11′) is designated according to a load balancing principle and the received file is stored in the designated network file system 11′; a file transmitting request that is to be processed is generated in which the file sending party is the file receiving and forwarding server 21′ and the file destination party is said another client server 42′, and after a predetermined time period, the file transmitting request is performed until said another client server 42′ receives the file.
If the file destination party is the file receiving and forwarding server 21′, a network file system (e.g., the network file system 11′) is designated according to a load balancing principle, and the client server 41′ is informed to send file according to the information on the file to be transmitted and the received file is stored in the designated network file system 11′.
if it is determined that the file destination party is the client server 41′ that initiated the request, the file receiving and forwarding server 211′ determines whether the file sending party is the backstage server (e.g., the backstage server 51′), another client server (e.g., the client server 42′) or the file receiving and forwarding server 21′.
If the file sending party is the backstage server 51′, a file is read from a network file system 11′ that corresponds to the backstage server 51′ according to the information on the file to be transmitted, and the received file is forwarded to the client server 41′ that initiated the request.
If the file sending party is another client server 42′, the network access server (which could be the network access server 31′ or another network access server which is assumed to be network server 32′ herein) is informed to establish a connection between the file receiving and forwarding server 21′ and said another client server 42′, and said another client server 42′ is informed to send file according to the information on the file to be transmitted and the received file is forwarded to the client server 41′ that initiated the request.
Preferably, before the file receiving and forwarding module 211′ forwards the file to the client server 41′, the file is pre-processed in order to generate a file that meets the requirements on the file format of the client server 41′, and the pre-processed file is sent to the client server 41′.
Preferably, after the network access server 32′ establishes a connection between the file receiving and forwarding server 21′ and said another client server 42′, the file receiving and forwarding module 211′ informs said another client server 42′ through the network access server 32′ to send file. When the file receiving and forwarding module 211′ receives a response that permits the transmitting, receives the file from said another client server 42′ and the received file is forwarded to the client server 41′ that initiated the request. When the file receiving and forwarding module 211′ receives a response that prohibits the transmitting, a first file transmitting request that is to be processed and a second file transmitting request that is to be processed are generated; in the first file transmitting request that is to be processed, the file sending party is said another client server 42′, and the file destination party is the file receiving and forwarding server 21′; and in the second file transmitting request that is to be processed, the file sending party is the file receiving and forwarding server 21′, and the file destination party is the client server 41′ that initiated the request. After a predetermined time, file receiving and forwarding module 211′ performs the first file transmitting request that is to be processed, and after successfully performing the first file transmitting request that is to be processed, the second file transmitting request that is to be processed is performed.
If the file sending party is the file receiving and forwarding server 21′, a network file system (i.e.., the network file system that stores the file to be transmitted and is assumed to be the network file system 11′ herein) is determined according to the information on the file to be transmitted, a file is read from the determined network file system 11′, and the received file is forwarded to the client server 41′ that initiated the request.
Preferably, the file transmitting request further comprises timing information, and the file receiving and forwarding module 211′ firstly determines whether the timing information is satisfied; if satisfied, the file transmitting request is processed; otherwise, the file receiving and forwarding module 211′ records the file transmitting request as a file transmitting request that is to be processed, and the file transmitting request is processed after the timing information is satisfied.
N client servers and N backstage servers that are in a one-to-one correspondence with the network file systems.
As shown in
at step 302, the file receiving and forwarding server verifies the legitimacy of the file transmitting request; if legitimate, a subsequent step is performed; otherwise, a response that prohibits the transmitting is generated and returned to the backstage server that initiated the request;
at step 303, if it is determined that the file sending party is the backstage server that initiated the request, the file receiving and forwarding server determines whether the file destination party is another backstage server or the client server;
at step 304, if the file destination party is another backstage server, the file receiving and forwarding server reads a file from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and stores the file in a network file system that corresponds to the file destination party;
at step 305, if the file destination party is the client server, the network access server is informed to establish a connection between the file receiving and forwarding server and the client server, and a file is read from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and is forwarded to the client server;
at step 306, if it is determined that the file destination party is the backstage server that initiated the request, the file receiving and forwarding server determines whether the file sending party is another backstage server or the client server;
at step 307, if the file sending party is another backstage server, the file receiving and forwarding server reads a file from a network file system that corresponds to the file sending party according to the information on the file to be transmitted, and stores the file in a network file system that corresponds to the file destination party;
at step 308, if the file destination party is the client server, the network access server is informed to establish a connection between the file receiving and forwarding server and the client server, and the client server is informed to send file according to the information on the file to be transmitted and the received file is stored in a network file system that corresponds to the backstage server that initiated the request.
Preferably, at step 305, before the file receiving and forwarding module forwards the file to the client server, the file is pre-processed in order to generate a file that meets the requirements on the file format of the client server, and the pre-processed file is sent to the client server.
Preferably, the file transmitting request further comprises timing information. At step 302, in case that the file receiving and forwarding module determines that the file transmitting request is legitimate, the file receiving and forwarding server determines whether the timing information is satisfied; if satisfied, a subsequent step is performed; otherwise, the file receiving and forwarding server records the file transmitting request as a file transmitting request that is to be processed, and a subsequent step is performed after the timing information is satisfied.
Preferably, further at step 309, the file receiving and forwarding server generates a file transmitting result message and sends it to the backstage server that initiated the request.
N network file systems, N file receiving and forwarding servers, N network access servers, N client servers and N backstage servers that are in a one-to-one correspondence with the network file systems.
As shown in
at step 402, the verification module of the file receiving and forwarding server verifies the legitimacy of the file transmitting request; if legitimate, a subsequent step is performed; otherwise, a response that prohibits the transmitting is generated and returned to the client server that initiated the request;
at step 403, if it is determined that the file sending party is the client server that initiated the request, the file receiving and forwarding module determines whether the file destination party is the backstage server, another client server or the file receiving and forwarding server;
at step 404, if the file destination party is the backstage server, the client server is informed to send file according to the information on the file to be transmitted, and the received file is stored in a network file system that corresponds to the file destination party;
at step 405, if the file destination party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server, and the client server is informed to send file according to the information on the file to be transmitted and the received file is forwarded to said another client server;
at step 406, if the file destination party is the file receiving and forwarding server, a network file system is designated according to a load balancing principle, and the client server is informed to send file according to the information on the file to be transmitted and the received file is stored in the designated network file system;
at step 407, if it is determined that the file destination party is the client server that initiated the request, the file receiving and forwarding module determines whether the file sending party is the backstage server, another client server or the file receiving and forwarding server;
at step 408, if the file sending party is the backstage server, a file is read from a network file system that corresponds to the backstage server according to the information on the file to be transmitted, and the received file is forwarded to the client server that initiated the request;
at step 409, if the file sending party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server, and said another client server is informed to send file according to the information on the file to be transmitted and the received file is forwarded to the client server that initiated the request;
at step 410, if the file sending party is the file receiving and forwarding server, a network file system is determined according to the information on the file to be transmitted, a file is read from the determined network file system and the read file is forwarded to the client server that initiated the request.
Preferably, at step 405, when the file receiving and forwarding module determines that the file sending party is the client server that initiated the request and the file destination party is another client server, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server;
said another client server is informed by the network access server to receive file;
when the file receiving and forwarding server receives a response that permits the transmitting, the received file is forwarded to said another client server;
when a response that prohibits the transmitting is received, a network file system is designated according to a load balancing principle, and the received file is stored in the designated network file system; a file transmitting request that is to be processed is generated in which the file sending party is the file receiving and forwarding server and the file destination party is said another client server, and after a predetermined time period, the file transmitting request is performed until said another client server receives the file.
Preferably, at step 409, when the file receiving and forwarding module determines that the file sending party is another client server and the file destination party is the client server that initiated the request, the network access server is informed to establish a connection between the file receiving and forwarding server and said another client server;
said another client server is informed by the network access server to send file;
when the file receiving and forwarding server receives a response that permits the transmitting, the file received from said another client server and the received file is forwarded to the client server that initiated the request;
when a response that prohibits the transmitting is received, a first file transmitting request that is to be processed and a second file transmitting request that is to be processed are generated; in the first file transmitting request that is to be processed, the file sending party is said another client server, and the file destination party is the file receiving and forwarding server; and in the second file transmitting request that is to be processed, the file sending party is the file receiving and forwarding server, and the file destination party is the client server that initiated the request;
after a predetermined time, the first file transmitting request that is to be processed is performed;
after successfully performing the first file transmitting request that is to be processed, the second file transmitting request that is to be processed is performed.
Before the file receiving and forwarding module forwards the file to the client server, the file is pre-processed in order to generate a file that meets the requirements on the file format of the client server, and the pre-processed file is sent to the client server.
Preferably, the file transmitting request further comprises timing information. Further, at step 402, in case that the file receiving and forwarding module determines that the file transmitting request is legitimate, the file receiving and forwarding server determines whether the timing information is satisfied; if satisfied, a subsequent step is performed; otherwise, the file receiving and forwarding server records the file transmitting request as a file transmitting request that is to be processed, and a subsequent step is performed after the timing information is satisfied.
With the invention, a file transmitting can be realized between a backstage server and a client server, between backstage servers and between client servers, whereas there is no real network connection between the backstage server and the client server as well as between client servers, thus unitizing specifications and reducing investments on software and hardwares.
Further, since timing information can be provided in the file transmitting request, a file transmitting at a given time can be realized. Further, in case of failure of client server, a task polling service of the file receiving and forwarding server can be used to redo automatically, thereby further ensuring the reliability of file transmission.
Preferably, encryption and MAC verification can be performed during file transmission so as to further improve the safety in file transmission.
Further, each application server can be provided with different versions of application programs. For different packages, the N servers do not interfere with each other. When the system is being updated, the N servers can be updated in sequence, thus enabling an update without shutting down the system.
In view of the above teaching, those skilled in the art can easily envisage other embodiments, combinations and modifications of the invention. Therefore, the invention is merely defined by the claims when taken in combination with the above description and the accompanying drawings.
Number | Date | Country | Kind |
---|---|---|---|
201210426080.8 | Oct 2012 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2013/086030 | 10/28/2013 | WO | 00 |