CN104869098A - Method of carrying out data transmission via cascade server, and device - Google Patents

Method of carrying out data transmission via cascade server, and device Download PDF

Info

Publication number
CN104869098A
CN104869098A CN201410058543.9A CN201410058543A CN104869098A CN 104869098 A CN104869098 A CN 104869098A CN 201410058543 A CN201410058543 A CN 201410058543A CN 104869098 A CN104869098 A CN 104869098A
Authority
CN
China
Prior art keywords
server
cascade
request instruction
control result
path
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.)
Pending
Application number
CN201410058543.9A
Other languages
Chinese (zh)
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.)
SHENZHEN EXCESYS TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN EXCESYS TECHNOLOGY 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 SHENZHEN EXCESYS TECHNOLOGY Co Ltd filed Critical SHENZHEN EXCESYS TECHNOLOGY Co Ltd
Priority to CN201410058543.9A priority Critical patent/CN104869098A/en
Publication of CN104869098A publication Critical patent/CN104869098A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a method of carrying out data transmission via a cascade server. The method comprises the steps of using a client to send a request instruction to a beginning end server; using the beginning end server to analyze the request instruction and determine whether a cascade path exists, if yes, creating and storing a routing table and executing the next step; if no, using the beginning end server to control a corresponding intelligent device directly and return a control result to the client, and ending a data transmission process; using the beginning end server to forward the request instruction step-by-step according to the cascade path until the request instruction is sent to a tail end server; using the tail end server to control the intelligent device to operate correspondingly according to the request instruction, returning the control result step-by-step according to the routing table until the control result is returned to the client, and ending the data transmission process. The present invention also relates to a device for realizing the above method. By implementing the method of carrying out the data transmission via the cascade server and the device of the present invention, the following beneficial effect of better data interaction real-time performance is realized.

Description

A kind of method and device being carried out transfer of data by Cascade Server
Technical field
The present invention relates to the communications field, particularly a kind of method and device being carried out transfer of data by Cascade Server.
Background technology
The signal procedure of current client, server (C/S) framework generally carries out data interaction by network service and application layer protocol, and service end provides data, and client receives and resolution data.But require just to need data cached during data and open server for upper-layer client end data are provided for upper layer application provides at client tier again.Take this scheme can meet the demand of multi-levels data transmission, but when volume of transmitted data is large, its real-time property is bad, the communication speed forwarded between the too much higher-layer client of level and bottom server is slow, real-time is poor, when passing to top, data have delay, cannot meet the needs of the higher client operation of some requirement of real-times (such as: guidance command).
Summary of the invention
The technical problem to be solved in the present invention is, for the defect that the above-mentioned data interaction real-time of prior art is poor, provides a kind of data interaction real-time to be carried out method and the device of transfer of data preferably by Cascade Server.
The technical solution adopted for the present invention to solve the technical problems is: construct a kind of method of being carried out transfer of data by Cascade Server, described Cascade Server comprises multiple server; Described method comprises the steps:
A) client sends request instruction to top server;
B) described top server is resolved described request instruction, and judges whether there is cascade path in described request instruction, in this way, creates and preserves routing table, performs step C); Otherwise described top server directly controls corresponding smart machine and control result is returned to described client, perform step F);
C) request instruction carries out forwarding until send end service device to according to described cascade path by described top server step by step;
D) described end service device carries out corresponding operating according to described request instruction control smart machine, and carries out returning control result until turn back to described client step by step according to described routing table, performs step F);
F) this data transmission procedure is terminated.
Undertaken in the method for transfer of data by Cascade Server of the present invention, described client specifies described cascade path by agreement; Described routing table comprises request source, subordinate's destination address and session id.
Undertaken in the method for transfer of data by Cascade Server of the present invention, during multi-stage cascade, described cascade path comprises IP address and the port numbers of many group servers, is connected between the IP address of each group server and port numbers by separator.
Undertaken in the method for transfer of data by Cascade Server of the present invention, described step C) comprise further:
C1) first server that described top server is specified in described cascade path initiates to connect, and forwards the request instruction comprising next cascade path;
After first server of C2) specifying in described cascade path receives the request instruction in next cascade path described, find to there is next cascade path described, create and preserve routing table, first server of simultaneously specifying in next cascade path described initiates to connect, and forwards the request instruction comprising its next cascade path;
C3) according to step C2) mode request instruction is carried out step by step forwarding till described end service device receives request instruction successively.
Undertaken in the method for transfer of data by Cascade Server of the present invention, described step D) comprise further:
D1) described end service device carries out corresponding operating according to described request instruction control smart machine, and control result is returned to its upper level server;
D2) described upper level server receives described control result, searches out corresponding higher level's destination server, and described control result is returned to its higher level's destination server according to the destination address in described routing table and session id;
D3) judge the session whether described end service device and its higher level's destination server do not complete in addition in this way, to proceed described session, after waiting for setting-up time, proceed the judgement of this step; Otherwise, disconnect the connection between described end service device and its higher level's destination server, perform step D4);
D4) after current server receives described control result, corresponding higher level's destination server is searched out according to the destination address in described routing table and session id, and described control result is returned to its higher level's destination server, disconnect the connection with its next stage server simultaneously;
D5) according to step D4) mode described control result is returned step by step, till turning back to described top server.
The invention still further relates to a kind of device realizing the method for carrying out transfer of data above by Cascade Server, described Cascade Server comprises multiple server; Described device comprises:
Instruction sending unit: send the request instruction comprising network communication path to top server for making client;
Resolution unit: for making described top server resolve described request instruction, and judging whether there is cascade path in described request instruction, in this way, creating and preserving routing table; Otherwise described top server directly controls corresponding smart machine and control result is returned to described client;
Retransmission unit: request instruction is carried out forwarding until send end service device to according to described cascade path step by step for making described top server;
Control unit: control smart machine for making described end service device according to described request instruction and carry out corresponding operating, and according to described routing table, control result is carried out returning until turn back to described client step by step;
End unit: for terminating this data transmission procedure.
Carry out in the device of the method for transfer of data above by Cascade Server in realization of the present invention, described client specifies described cascade path by agreement; Described routing table comprises request source, subordinate's destination address and session id.
Carry out in the device of the method for transfer of data above by Cascade Server in realization of the present invention, during multi-stage cascade, described cascade path comprises IP address and the port numbers of many group servers, is connected between the IP address of each group server and port numbers by separator.
Carry out above by Cascade Server in realization of the present invention in the device of the method for transfer of data, described retransmission unit comprises further:
First connects forwarding module: for the connection making described top server preserve described client, and first server of simultaneously specifying in cascade path initiates to connect, and forwards the request instruction comprising next cascade path;
Second connects forwarding module: after receiving the request instruction in next cascade path described for making first server of specifying in described cascade path, preserve the connection of described top server, first server of simultaneously specifying in next cascade path described initiates to connect, and forwards the request instruction comprising its next cascade path;
Spider module: request instruction carries out forwarding till described end service device receives request instruction by mode of operation for connecting forwarding module according to described second successively step by step.
Carry out above by Cascade Server in realization of the present invention in the device of the method for transfer of data, described control unit comprises further:
Execution returns module: control smart machine for making described end service device according to described request instruction and carry out corresponding operating, and control result is returned to its upper level server;
Searching returns module: for receiving described control result at described upper level server, searches out corresponding higher level's destination server, and described control result is returned to its higher level's destination server according to the destination address in described routing table and session id;
Session judge module: for judging the session whether described end service device and its higher level's destination server do not complete in addition, in this way, proceed described session, proceeds after waiting for setting-up time to judge; Otherwise, disconnect the connection between described end service device and its higher level's destination server;
Return disconnection module: for receive described control result at current server after, corresponding higher level's destination server is searched out according to the destination address in described routing table and session id, and described control result is returned to its higher level's destination server, disconnect the connection with its next stage server simultaneously;
Return module step by step: for described control result being returned step by step, till turning back to described top server according to the described mode of operation disconnecting module that returns.
Implement the method and the device that are carried out transfer of data by Cascade Server of the present invention, there is following beneficial effect: because client sends request instruction to top server; When top server to this request instruction carry out parsing discovery there is cascade path time; Top server creates and preserves routing table, is carried out step by step forwarding until send end service device to by request instruction according to cascade path simultaneously; End service device controls smart machine according to request instruction and carries out corresponding operating, and control result is carried out step by step return until turn back to client, so Cascade Server carries out data retransmission according to the network communication path of client-requested, improve the communication efficiency that multi-stage data forwards, so its data interaction real-time is better.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The flow chart of Fig. 1 to be the present invention by Cascade Server undertaken method in the method for transfer of data and device embodiment;
Fig. 2 is that in described embodiment, request instruction carries out forwarding until send the particular flow sheet of end service device to according to cascade path by top server step by step;
Fig. 3 is that in described embodiment, end service device carries out corresponding operating according to request instruction control smart machine, and carries out returning control result until turn back to the particular flow sheet of client step by step according to routing table;
Fig. 4 is described embodiment cascade server data flow diagram;
Fig. 5 is the structural representation of device in described embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the method for carrying out transfer of data by Cascade Server in the present invention and device embodiment, it carries out the flow chart of the method for transfer of data as shown in Figure 1 by Cascade Server.In the present embodiment, Cascade Server comprises multiple server.In Fig. 1, the method that above-mentioned Cascade Server carries out transfer of data comprises the steps:
Step S01 client sends request instruction to top server: in this step, and client sends request instruction to top server, and top server here refers to the server be directly connected with client, is the server of in Cascade Server.
Step S02 top server is resolved request instruction, and judges whether there is cascade path in request instruction:
In this step, top server is resolved the above-mentioned request instruction received, and judge whether there is cascade path in above-mentioned request instruction, in the present embodiment, client specifies cascade path by agreement, if comprise cascade path in the request instruction that client sends to top server, follow-up corresponding server can set up corresponding connection according to this cascade path.Cascade path can be specified neatly in client.In the present embodiment, comprise the IP address and the port numbers that need the server of cascade of specifying in cascade path, after request instruction is resolved, can find whether there is cascade path.It is worth mentioning that, when multi-stage cascade, when namely multiple server carries out cascade, cascade path comprises IP address and the port numbers of many group servers, connected by separator between the IP address of each group server and port numbers, such as: connected by separator "/".In this step, if the result judged is yes, then perform step S04; Otherwise, perform step S03.
Step S03 top server directly controls corresponding smart machine and control result is returned to client: if the judged result of above-mentioned steps S02 is no, then perform this step.In this step, top server directly controls corresponding smart machine, directly control result is returned to client.Execute this step, perform step S07.
Step S04 creates and preserves routing table: if the judged result of above-mentioned steps S02 is yes, then perform this step.In this step, create routing table at top server, and preserve routing table.In the present embodiment, routing table comprises the information such as request source, subordinate's destination address and session id.Execute this step, perform step S05.
Request instruction carries out forwarding until send end service device to according to cascade path by step S05 top server step by step: in this step, top server is connected with corresponding server automatically according to above-mentioned cascade path, and is carried out step by step forwarding until send end service device to according to cascade path by above-mentioned request instruction.It is worth mentioning that, end service device refers to the server be directly connected with the smart machine that will control, the server that namely in cascade path, last path is specified, and is the server of in Cascade Server.
Step S06 end service device controls smart machine according to request instruction and carries out corresponding operating, and control result is carried out step by step return until turn back to client according to routing table: in this step, end service device controls corresponding smart machine according to above-mentioned request instruction and carries out corresponding operating, and control result is returned, until turn back to client step by step according to routing table.Because Cascade Server carries out connecting and carrying out data retransmission according to the cascade of client-requested automatically, which raises the communication efficiency that multi-stage data forwards, so its data interaction real-time is better.It is worth mentioning that, in the present embodiment, client sends request instruction according to ICP/IP protocol to top server, carries out communication between each server according to ICP/IP protocol, and end service device is according to ICP/IP protocol or by RS485 bus marco smart machine.Execute this step, perform step S07.
Step S07 terminates this data transmission procedure: in this step, terminates this data transmission procedure.
For the present embodiment, above-mentioned steps S05 also can refinement further, and the flow chart after its refinement as shown in Figure 2.In Fig. 2, above-mentioned steps S05 comprises further:
First server that step S51 top server is specified in cascade path initiates to connect, and forward the request instruction comprising next cascade path: in this step, first server that top server is specified in cascade path initiates to connect, and the request instruction comprising next cascade path is forwarded to other server.The difference in cascade path and next cascade path is, does not have IP address and the port numbers of first server of specifying in cascade path in next cascade path.
After first server of specifying in step S52 cascade path receives the request instruction in next cascade path, find to there is next cascade path, create and preserve routing table, first server of simultaneously specifying in next stage connection path initiates to connect, and forward the request instruction comprising its next cascade path: in this step, after first server of specifying in cascade path receives the request instruction in next cascade path, there is next cascade path above-mentioned in discovery, create routing table with that and preserve this routing table, first server of simultaneously specifying in above-mentioned next stage connection path initiates to connect, and the request instruction comprising its next cascade path is forwarded to other server.It is worth mentioning that, the content of the routing table that each server creates is different.
Request instruction carries out forwarding till end service device receives request instruction according to the mode of above-mentioned steps S52 by step S53 successively step by step: in this step, according to the mode of above-mentioned steps S52, successively corresponding request instruction is forwarded step by step, till end service device receives corresponding request instruction.Like this, Cascade Server connects automatically according to cascade path, and carries out data (request instruction) forwarding, which raises the communication efficiency that multi-stage data forwards, so its data interaction real-time is better.
For the present embodiment, above-mentioned steps S06 also can refinement further, and the flow chart after its refinement as shown in Figure 3.In Fig. 3, above-mentioned steps S06 comprises further:
Step S61 end service device controls smart machine according to above-mentioned request instruction and carries out corresponding operating, and control result is returned to its upper level server: in this step, end service device controls smart machine according to above-mentioned request instruction and carries out corresponding operating, and control result is returned to its upper level server, namely return to the upper level server of end service device.
The above-mentioned upper level server of step S62 receives control result, corresponding higher level's destination server is searched out according to the destination address in routing table and session id, and control result is returned to its higher level's destination server: in this step, the upper level server of end service device receives control result, search out corresponding higher level's destination server (namely searching out the request source of corresponding above-mentioned control result) according to the destination address in routing table and session id, and this control result is returned to its higher level's destination server.
Step S63 judges the session whether end service device and its higher level's destination server do not complete in addition: in this step, judges the session whether end service device and its higher level's destination server do not complete in addition, if the result judged is yes, then performs step S64; Otherwise, perform step S65.
Step S64 proceeds session, waits for setting-up time: if the judged result of above-mentioned steps S63 is yes, i.e. the session that do not complete in addition of end service device and its higher level's destination server, then perform this step.In this step, proceed session, return step S63 after waiting for setting-up time and proceed to judge.
Connection between step S65 disconnected end server and its higher level's destination server: if the judged result of above-mentioned steps S43 is no, then perform this step.In this step, the connection between disconnected end server and its higher level's destination server.
After step S66 current server receives and controls result, corresponding higher level's destination server is searched out according to the destination address in routing table and session id, and control result is returned to its higher level's destination server, disconnect the connection with its next stage server: in this step simultaneously, after current server receives and controls result, corresponding higher level's destination server is searched out according to the destination address in routing table and session id, and control result is returned to its higher level's destination server, disconnect the connection with its next stage server simultaneously.
Control result returns according to the mode of step S66 by step S67 step by step, till turning back to top server: in this step, control result is returned step by step according to the mode of above-mentioned steps S66, until control result is turned back to top server.It is worth mentioning that, the return path of above-mentioned control result is obtained by routing table.Just achieved by cascade like this and control result is returned client.
In order to be described in detail to said method, son of illustrating below is described.As shown in Figure 4, in Fig. 4 be the present embodiment cascade server data flow diagram.In Fig. 4, such as customer end A 1 needs the switch of Long-distance Control smart machine N3 to disconnect, but customer end A 1 cannot realize direct-connected with smart machine N3, control command (request instruction) need successfully could be sent by the such paths of server M1-server M2-server M3-smart machine N3, at this moment, server M1 is just equivalent to above-mentioned top server, and server M3 is just equivalent to above-mentioned end server.At this moment, conveniently realize by said method, its realization is as follows:
Customer end A 1 sends the request instruction in a band cascade path to server M1, as: Requst:1001:11.1.11.4:503/12.2.12.5:502/N3:off; Wherein, Request is request, and 1001 is session id, and 11.1.11.4:503/12.2.12.5:502 is cascade path, and smart machine N3 is wanted in N3 representative, and off is shutoff operation.
After server M1 receives above-mentioned request instruction, by resolving request instruction, there is cascade path in discovery, create and preserve routing table (routing iinformation), simultaneously to server M2(11.1.11.4:503) initiate to connect, and Forward-reques instruction Request:1001:12.2.12.5:502/N3:off, this is the request instruction being transmitted to server M3 by server M2, eliminates the IP address of server M2 self in this request instruction.In the present embodiment, routing iinformation comprises order source, subordinate's destination address and session id; In the present embodiment, routing iinformation is also referred to as routing table.After server M2 receives request instruction Request:1001:12.2.12.5:502/N3:off, there is cascade path in same discovery, creates and preserve routing iinformation, initiates to connect and Forward-reques instruction Request:1001:N3:off to server M3 simultaneously.
After server M3 receives request instruction Request:1001:N3:off, control is performed to smart machine N3, and obtain controlling result, control result is returned to server M2 simultaneously.Such as: control result is Answer:1001:1, wherein, Answer representative is answered, and 1001 represent session id, and 1 represents fill order success, and 0 represents fill order failure.After server M2 receives and controls result, know that controlling result returns according to Answer command header, so according to session id and destination address from the routing table of preserving, search out corresponding higher level's destination server M1, result is returned to server M1, judge that having other or not with server M3 does not complete session simultaneously, when the session do not completed, initiatively disconnect the connection with server M3.In like manner, control result is returned to customer end A 1 after receiving and controlling result by server M1, and disconnects the connection with server M2.At this moment, customer end A 1, by Cascading Methods, successfully realizes inter-network end Long-distance Control smart machine N3.
It is worth mentioning that, one station server may need to do repeatedly cascade transmit work simultaneously, likely the operation of different clients to different intelligent equipment, also be likely the operation of same client to different intelligent equipment, when control result returns, have to pass through routing table, accurately could find order source, accurately return control result.
The present embodiment also relates to a kind of device realizing the method for carrying out transfer of data above by Cascade Server, and its structural representation as shown in Figure 5.In the present embodiment, Cascade Server comprises multiple server.In Fig. 5, this device comprises instruction sending unit 1, resolution unit 2, retransmission unit 3, control unit 4 and end unit 5; Wherein, instruction sending unit 1 sends for making client the request instruction comprising network communication path to top server; Resolution unit 2 is resolved request instruction for making top server, and judges whether there is cascade path in request instruction, in this way, creates and preserves routing table; Otherwise top server directly controls corresponding smart machine and control result is returned to client; Request instruction carries out forwarding until send end service device to according to cascade path for making top server by retransmission unit 3 step by step; Control unit 4 carries out corresponding operating for making end service device control smart machine according to request instruction, and control result is carried out step by step returning until turn back to client according to routing table; End unit 5 is for terminating this data transmission procedure.Because Cascade Server carries out connecting and carrying out data retransmission according to the cascade path of client-requested automatically, which raises the communication efficiency that multi-stage data forwards, so its data interaction real-time is better.It is worth mentioning that, client specifies cascade path by agreement.When multi-stage cascade, above-mentioned cascade path comprises IP address and the port numbers of many group servers, is connected between the IP address of each group server and port numbers by separator.Such as: connected by separator "/".It is worth mentioning that, in the present embodiment, above-mentioned routing table comprises request source, subordinate's destination address and session id.
In the present embodiment, above-mentioned retransmission unit 3 comprises the first connection forwarding module 31, second further and connects forwarding module 32 and spider module 33; Wherein, first connects forwarding module 31 initiates to connect for first server making top server specify in cascade path, and forwards the request instruction comprising next cascade path; Second connects forwarding module 32 for after making first server of specifying in cascade path receive the request instruction in next cascade path, find to there is next cascade path, create and preserve routing table, first server of simultaneously specifying in next stage connection path initiates to connect, and forwards the request instruction comprising its next cascade path; Request instruction carries out forwarding till end service device receives request instruction for the mode of operation connecting forwarding module according to second by spider module 33 successively step by step.
In the present embodiment, above-mentioned control unit 4 comprises execution further and returns module 41, finds and return module 42, session judge module 43, return and disconnect module 44 and return module 45 step by step; Wherein, execution returns module 41 and carries out corresponding operating for making end service device control smart machine according to request instruction, and control result is returned to its upper level server; Searching returns module 42 for receiving control result at upper level server, searches out corresponding higher level's destination server, and control result is returned to its higher level's destination server according to the destination address in routing table and session id; Session judge module 43, for judging the session whether end service device and its higher level's destination server do not complete in addition, in this way, proceeds described session, proceeds to judge after waiting for setting-up time; Otherwise, the connection between disconnected end server and its higher level's destination server; Return and disconnect module 44 and control after result for receiving at current server, corresponding higher level's destination server is searched out according to the destination address in routing table and session id, and control result is returned to its higher level's destination server, disconnect the connection with its next stage server simultaneously; Return module 45 step by step for control result being returned step by step, till turning back to top server according to returning the mode of operation disconnecting module.
In a word, in the present embodiment, by disposing Cascade Server in data retransmission intermediate layer, Cascade Server program sets up " routing table " in inside, and client, by the request of data in transmit band cascade path, connects between Cascade Server and forwarding data automatically.Make multistage client and bottom server communication, be applicable to the distributed network communication system (transfer of data as province and district, city-level) of layering (level).The method top layer client is adopted to need and the communication of underlying services device, the direct polling routine inside " routing table " of each Cascade Server, data retransmission is carried out in cascade path according to client-requested, improve the communication efficiency that multi-stage data forwards, the requirement of data interaction real-time can be met well, also simplify configuration and the deployment of system.In addition, according to client-requested automatic maintenance server program inside " routing table ", cascade path is specified by agreement by client, can specify cascade path flexibly in client.Client-side program is specified by application layer protocol needs the IP address of the server of cascade and port numbers to send to Cascade Server, Cascade Server sets up the cascade between server automatically according to object IP address and port numbers, multi-stage cascade is then by IP address and the port numbers character string composition of separation, and Cascade Server is forwarded step by step by parsing IP address and port numbers character string.Multistage server cascade system, client application layer protocol must comprise the information (such as 192.168.0.210:5200/10.0.10.58:5300) in cascade path, its cascade deep is unrestricted, but the cascade number of plies is too much, and shared by cascade routing information, amount of information is larger.Forward in the system of communication at multi-stage data, invention increases the communication efficiency of system, the real-time communication of client and underlying services device is higher, and the method can realize more multi-level cascade, take into account system load balancing, retractility and autgmentability better.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. carried out a method for transfer of data by Cascade Server, it is characterized in that, described Cascade Server comprises multiple server; Described method comprises the steps:
A) client sends request instruction to top server;
B) described top server is resolved described request instruction, and judges whether there is cascade path in described request instruction,
In this way, create and preserve routing table, performing step C); Otherwise described top server directly controls corresponding smart machine and control result is returned to described client, perform step F);
C) request instruction carries out forwarding until send end service device to according to described cascade path by described top server step by step;
D) described end service device carries out corresponding operating according to described request instruction control smart machine, and carries out returning control result until turn back to described client step by step according to described routing table, performs step F);
F) this data transmission procedure is terminated.
2. method of being carried out transfer of data by Cascade Server according to claim 1, be is characterized in that, described client specifies described cascade path by agreement; Described routing table comprises request source, subordinate's destination address and session id.
3. method of being carried out transfer of data by Cascade Server according to claim 2, it is characterized in that, during multi-stage cascade, described cascade path comprises IP address and the port numbers of many group servers, is connected between the IP address of each group server and port numbers by separator.
4. the method for being carried out transfer of data by Cascade Server according to claims 1 to 3 any one, be is characterized in that, described step C) comprise further:
C1) first server that described top server is specified in described cascade path initiates to connect, and forwards the request instruction comprising next cascade path;
After first server of C2) specifying in described cascade path receives the request instruction in next cascade path described, find to there is next cascade path described, create and preserve routing table, first server of simultaneously specifying in next cascade path described initiates to connect, and forwards the request instruction comprising its next cascade path;
C3) according to step C2) mode request instruction is carried out step by step forwarding till described end service device receives request instruction successively.
5. method of being carried out transfer of data by Cascade Server according to claim 4, be is characterized in that, described step D) comprise further:
D1) described end service device carries out corresponding operating according to described request instruction control smart machine, and control result is returned to its upper level server;
D2) described upper level server receives described control result, searches out corresponding higher level's destination server, and described control result is returned to its higher level's destination server according to the destination address in described routing table and session id;
D3) judge the session whether described end service device and its higher level's destination server do not complete in addition in this way, to proceed described session, after waiting for setting-up time, proceed the judgement of this step; Otherwise, disconnect the connection between described end service device and its higher level's destination server, perform step D4);
D4) after current server receives described control result, corresponding higher level's destination server is searched out according to the destination address in described routing table and session id, and described control result is returned to its higher level's destination server, disconnect the connection with its next stage server simultaneously;
D5) according to step D4) mode described control result is returned step by step, till turning back to described top server.
6. realize the device being carried out the method for transfer of data by Cascade Server as claimed in claim 1, it is characterized in that, described Cascade Server comprises multiple server; Described device comprises:
Instruction sending unit: send the request instruction comprising network communication path to top server for making client;
Resolution unit: for making described top server resolve described request instruction, and judging whether there is cascade path in described request instruction, in this way, creating and preserving routing table; Otherwise described top server directly controls corresponding smart machine and control result is returned to described client;
Retransmission unit: request instruction is carried out forwarding until send end service device to according to described cascade path step by step for making described top server;
Control unit: control smart machine for making described end service device according to described request instruction and carry out corresponding operating, and according to described routing table, control result is carried out returning until turn back to described client step by step;
End unit: for terminating this data transmission procedure.
7. the device of the method for transfer of data is carried out in realization according to claim 6 above by Cascade Server, it is characterized in that, described client specifies described cascade path by agreement; Described routing table comprises request source, subordinate's destination address and session id.
8. the device of the method for transfer of data is carried out in realization according to claim 7 above by Cascade Server, it is characterized in that, during multi-stage cascade, described cascade path comprises IP address and the port numbers of many group servers, is connected between the IP address of each group server and port numbers by separator.
9. the device of the method for transfer of data is carried out in the realization according to claim 6 to 8 any one above by Cascade Server, it is characterized in that, described retransmission unit comprises further:
First connects forwarding module: first server of specifying in described cascade path for making described top server initiates to connect, and forwards the request instruction comprising next cascade path;
Second connects forwarding module: after receiving the request instruction in next cascade path described for making first server of specifying in described cascade path, find to there is next cascade path described, create and preserve routing table, first server of simultaneously specifying in next cascade path described initiates to connect, and forwards the request instruction comprising its next cascade path;
Spider module: request instruction carries out forwarding till described end service device receives request instruction by mode of operation for connecting forwarding module according to described second successively step by step.
10. the device of the method for transfer of data is carried out in realization according to claim 9 above by Cascade Server, and it is characterized in that, described control unit comprises further:
Execution returns module: control smart machine for making described end service device according to described request instruction and carry out corresponding operating, and control result is returned to its upper level server;
Searching returns module: for receiving described control result at described upper level server, searches out corresponding higher level's destination server, and described control result is returned to its higher level's destination server according to the destination address in described routing table and session id;
Session judge module: for judging the session whether described end service device and its higher level's destination server do not complete in addition, in this way, proceed described session, proceeds after waiting for setting-up time to judge; Otherwise, disconnect the connection between described end service device and its higher level's destination server;
Return disconnection module: for receive described control result at current server after, corresponding higher level's destination server is searched out according to the destination address in described routing table and session id, and described control result is returned to its higher level's destination server, disconnect the connection with its next stage server simultaneously;
Return module step by step: for described control result being returned step by step, till turning back to described top server according to the described mode of operation disconnecting module that returns.
CN201410058543.9A 2014-02-20 2014-02-20 Method of carrying out data transmission via cascade server, and device Pending CN104869098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410058543.9A CN104869098A (en) 2014-02-20 2014-02-20 Method of carrying out data transmission via cascade server, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410058543.9A CN104869098A (en) 2014-02-20 2014-02-20 Method of carrying out data transmission via cascade server, and device

Publications (1)

Publication Number Publication Date
CN104869098A true CN104869098A (en) 2015-08-26

Family

ID=53914625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410058543.9A Pending CN104869098A (en) 2014-02-20 2014-02-20 Method of carrying out data transmission via cascade server, and device

Country Status (1)

Country Link
CN (1) CN104869098A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173735A (en) * 2018-01-17 2018-06-15 郑州云海信息技术有限公司 A kind of GPU Box server cascaded communication method, apparatus and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217389A (en) * 2007-01-04 2008-07-09 中兴通讯股份有限公司 A method for audio conferencing bridging cascade connection and audio conferencing bridging cascade connection system
CN101540872A (en) * 2009-02-23 2009-09-23 深圳华为通信技术有限公司 Control method of multichannel cascade connection of media control server, device and system thereof
CN101795222A (en) * 2009-11-13 2010-08-04 深圳市科陆电子科技股份有限公司 Multi-stage forward service system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217389A (en) * 2007-01-04 2008-07-09 中兴通讯股份有限公司 A method for audio conferencing bridging cascade connection and audio conferencing bridging cascade connection system
CN101540872A (en) * 2009-02-23 2009-09-23 深圳华为通信技术有限公司 Control method of multichannel cascade connection of media control server, device and system thereof
CN101795222A (en) * 2009-11-13 2010-08-04 深圳市科陆电子科技股份有限公司 Multi-stage forward service system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173735A (en) * 2018-01-17 2018-06-15 郑州云海信息技术有限公司 A kind of GPU Box server cascaded communication method, apparatus and system
CN108173735B (en) * 2018-01-17 2020-08-25 苏州浪潮智能科技有限公司 GPU Box server cascade communication method, device and system
US11641405B2 (en) 2018-01-17 2023-05-02 Zhengzhou Yunhai Information Technology Co., Ltd. GPU box server cascade communication method, device, and system

Similar Documents

Publication Publication Date Title
RU2754487C1 (en) Method and device for network deployment
US9419842B1 (en) Dynamic network device configuration
EP3125476B1 (en) Service function chaining processing method and device
CN106713084B (en) Multi-gateway system of Internet of things
CN108833232B (en) PPPoE client implementation method based on VPP and PPPoE client
US9960998B2 (en) Forwarding packet in stacking system
CN110430114B (en) Virtual router and method for realizing interconnection between SDN network and traditional IP network
CN112187517A (en) Configuration method, platform and controller for SDN virtual routing of data center
CN107959620B (en) Fully mechanized mining equipment identification method, device, system, gateway and storage medium
CN107994942B (en) Method for discovering topology of service resource tree of optical broadband access network
CN104980355A (en) Source controllable multicast data transmission method and system thereof under SDN Environment
CN101984581A (en) Method and system for opening data communication network
CN103428090A (en) Dynamic routing method, routing server and system for heterogeneous network
US20160149806A1 (en) Software-defined network (sdn) system using host abstraction, and method for implementing the same
CN101242370B (en) Method for realizing Ethernet and frame-relay Internet and protocol conversion device
CN107078935A (en) Network is the cross-domain Synergistic method of service business, cooperative device and control device
CN105681445A (en) Method and device for selecting point-to-point transmission path of data
CN110855464A (en) Network topology structure adjusting method and device
CN102970621B (en) Transmission resource management device and method in a kind of network element
CN110768911B (en) Method, device, equipment, system and storage medium for efficient flow drainage
CN112217680B (en) Controller capability benchmark test method and device based on software-defined wide area network
CN108306998A (en) Method for network address translation and device
CN104869098A (en) Method of carrying out data transmission via cascade server, and device
CN104219089A (en) Method for automatically finding ONUs (optical network units) and automatically generating topology in PON (passive optical network) manager
CN104185249B (en) Based on lan device discover method and the dynamic link library of Android system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150826