Server device, client device, client server system, and selection method
The client-server system optimizes calculation unit selection and transmission times by using request signals with processing and transmission time information, ensuring the client device receives results within the requested timeframe, addressing delays in existing systems.
Patent Information
- Application Number
- PCT/JP2023/006031
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2024-08-29
AI Technical Summary
In client-server systems, client devices often fail to obtain processing results within the requested processing time due to delays in signal transmission and calculation unit selection times.
A method that involves a client device generating a request signal with processing time information and transmission time information, which is used by a server device to select a calculation unit from multiple units based on total processing time, ensuring the selected unit can execute the processing content within the requested time frame, and transmitting the results back to the client device.
This approach allows the client device to receive processing results within the requested processing time by optimizing the selection of calculation units and accounting for transmission times, thereby improving processing efficiency.
Smart Images

Figure JP2023006031_29082024_PF_FP_ABST
Abstract
Description
Server device, client device, client-server system and selection method
[0001] The present invention relates to a server device, a client device, a client-server system, and a selection method.
[0002] In a client-server system, a client device may request the server device to execute at least a part of an application process on behalf of the client device (see Patent Document 1), thereby reducing (offloading) the load of application processing on the client device.
[0003] 9 is a diagram showing an example of the configuration of a client-server system 10. The client device generates a request signal for data to be processed by the server device, the request signal including processing time information and processing content information for the processing content in the server device. The client device transmits the data to be processed with the request signal attached to the server device. Hereinafter, the data to be processed with the request signal attached will be referred to as "processing data."
[0004] The control unit of the server device selects a processing unit in the processing resource unit of the server device that is capable of executing processing content on the data to be processed. The control unit controls a switch so that the processing data is transferred to the selected processing unit. The selected processing unit executes the processing content extracted from the request signal added to the data to be processed on the data to be processed. The selected processing unit transmits the processing results to the client device via the switch.
[0005] International Publication No. 2022 / 137425
[0006] However, there is a problem in that the client device cannot obtain the processing results within the processing time requested by the client device.
[0007] In view of the above circumstances, the present invention aims to provide a server device, a client device, a client-server system, and a selection method that are capable of allowing a client device to obtain processing results within the processing time requested by the client device.
[0008] One aspect of the present invention is a server device comprising: a time determination unit that determines, for each calculation unit, the total time of the round-trip transmission time of a signal between a client device and its own server device, the maximum time required to select a calculation unit from among a plurality of calculation units, the time required for pre-processing of processing content requested by the client device, and the calculation time of the processing content; and a selection unit that selects from the plurality of calculation units an calculation unit whose calculation time is such that the total time is less than or equal to the processing time requested by the client device and which can immediately execute the processing content, and the calculation unit transmits the results of the calculation processing of the processing content during the calculation time to the client device.
[0009] One aspect of the present invention is a client device comprising an execution unit that generates processing target data for processing content to be executed by a server device, a signal generation unit that generates a request signal including the round-trip transmission time of a first signal between the client device and the server device or transmission time information of a second signal sent from the client device to the server device, information on the processing time of the processing content in the server device, and information on the processing content, and an addition unit that transmits the processing target data with the request signal added to the server device, wherein the execution unit obtains from the server device the results of calculation processing of the processing content at a predetermined calculation time.
[0010] One aspect of the present invention is a client-server system including a server device and a client device, wherein the server device includes a time determination unit that determines, for each of the processing units, a total time of a round-trip transmission time of a first signal between the client device and the server device, a maximum time required to select a processing unit from among a plurality of processing units, a time required for preprocessing of processing content requested by the client device, and a processing time of the processing content, and a selection unit that selects, from the plurality of processing units, a processing unit with the processing time that makes the total time equal to or less than the processing time requested by the client device and that can immediately execute the processing content, and the client device includes a signal generating unit that generates a request signal including the round-trip transmission time or transmission time information of a second signal transmitted from the client device to the server device, information on the processing time of the processing content in the server device, and information on the processing content; and an appending unit that transmits the processing target data with the request signal appended to the server device, wherein the calculation unit transmits the result of the calculation processing of the processing content executed at the calculation time to the client device, and the execution unit obtains the result of the calculation processing of the processing content executed at the calculation time from the server device.
[0011] One aspect of the present invention is a selection method executed by the above-mentioned server device, which includes the steps of determining, for each calculation unit, the total time of the round-trip transmission time of a signal between the client device and the server device, the maximum time required to select a calculation unit from among a plurality of calculation units, the time required for pre-processing of the processing content requested by the client device, and the calculation time of the processing content, and selecting, from the plurality of calculation units, a calculation unit whose calculation time makes the total time less than or equal to the processing time requested by the client device and which is capable of immediately executing the processing content, and in which the calculation unit transmits the results of the calculation of the processing content executed during the calculation time to the client device.
[0012] According to the present invention, it is possible to have the client device obtain the processing result within the processing time requested by the client device.
[0013] FIG. 1 is a diagram illustrating an example of the configuration of a client-server system in a first embodiment. FIG. 2 is a diagram illustrating an example of a first management table in the first embodiment. FIG. 3 is a sequence diagram illustrating an example of the operation of the client-server system in the first embodiment. FIG. 4 is a diagram illustrating an example of a second management table in a second embodiment. FIG. 5 is a diagram illustrating an example of a third management table in a third embodiment. FIG. 6 is a diagram illustrating an example of the configuration of a client-server system in a fourth embodiment. FIG. 7 is a diagram illustrating an example of the configuration of a client-server system in a fifth embodiment. FIG. 8 is a diagram illustrating an example of the hardware configuration of an information processing device in each embodiment. FIG. 9 is a diagram illustrating an example of the configuration of a client-server system.
[0014] Embodiments of the present invention will be described in detail with reference to the drawings. (First Embodiment) Fig. 1 is a diagram showing an example of the configuration of a client-server system 1a (communication system) in the first embodiment. The client-server system 1a includes one or more client devices 2 and one or more server devices 3a. In the client-server system 1a, the server device 3a provides a predetermined service to the client device 2.
[0015] The client device 2 includes an information generating unit 21, an executing unit 22, a signal generating unit 23, and an adding unit 24. The server device 3a includes a storage device 31, a reading unit 32, a time determining unit 33, a selecting unit 34, a preprocessing unit 35, a memory 36, a transferring unit 37, and a computing resource unit 38.
[0016] The computation resource unit 38 includes a plurality of computation units (computation resources). The computation units are, for example, hardware accelerators. In FIG. 1 , the computation resource unit 38 includes a first computation unit 381, a second computation unit 382, a third computation unit 383, a fourth computation unit 384, and a fifth computation unit 385 as examples of the plurality of computation units.
[0017] In the first embodiment, the second embodiment (to be described later), and the third embodiment (to be described later), the time on the client device and the time on the server device are synchronized. In contrast, in the fourth embodiment (to be described later) and the fifth embodiment (to be described later), the time on the client device and the time on the server device do not need to be synchronized.
[0018] The client device 2 executes a predetermined application. When the client device 2 offloads the load of application processing, it generates a request signal including processing time information, processing content information, and transmission time information. The client device 2 transmits processing data (data to be processed with the request signal attached) to the server device 3a. The server device 3a estimates the transmission time based on the transmission time information. The server device 3a transmits the processing results requested by the client device 2 to the client device 2 at a timing that takes the transmission time into consideration. This allows the client device 2 to obtain the processing results from the server device 3a within the processing time requested by the client device 2.
[0019] Next, the client device 2 will be described. The information generating unit 21 generates transmission time information (current time at the time of transmission) of processing data as time information for calculating the round-trip transmission time of a signal between the client device 2 and the server device 3a. The information generating unit 21 outputs the transmission time information to the signal generating unit 23.
[0020] The execution unit 22 generates data (processing target data) for which predetermined processing content is to be executed by the server device 3a. For example, the execution unit 22 calls a function "Offload()" indicating a reduction (offloading) of the processing load while an application is being executed. The function indicating a reduction of the processing load is expressed in the format of, for example, "Offload(A, Input, Time, Output)". Here, "A" represents the processing content for the processing target data "Input", and "Time" represents the processing time.
[0021] The signal generating unit 23 generates a request signal. The request signal includes processing time information, processing content information in the server device 3a, and transmission time information of the processing data transmitted from the client device 2. The signal generating unit 23 outputs the request signal to the adding unit 24.
[0022] Here, the processing time information is information representing the processing time of the processing content in the server device 3a. The processing time of the processing content in the server device 3a is the time requested by the client device 2, which is the time from the time the server device 3a receives the processing data from the client device 2 to the time the server device 3a transmits the processing result of the processing content for the data to be processed to the client device 2.
[0023] The adding unit 24 adds the request signal to the data to be processed to generate the data to be processed, and transmits the data to the server device 3a.
[0024] Next, the server device 3a will be described. The storage device 31 stores a first management table in advance. The first management table is a first data table used by the server device to select a computing unit (computing resource).
[0025] 2 is a diagram showing an example of a first management table in the first embodiment. The first management table associates the identifier of a processing unit, the processing content that the processing unit can handle, the time required for the processing (computation time), and the completion time of the processing in the processing unit (processing completion time). When a request is made by the client device 2 to execute processing content "A," a processing unit selected from among the multiple processing units in the computing resource unit 38 executes the specified processing content "A" on processing target data of a specified size.
[0026] Returning to FIG. 1 , the description of the exemplary configuration of the server device 3a will continue. The reading unit 32 acquires the processing data from the adding unit 24. The reading unit 32 reads a request signal including processing time information, processing content information, and transmission time information from the processing data. That is, the reading unit 32 extracts the request signal from the processing data. The reading unit 32 outputs the request signal to the time determining unit 33 and the selecting unit 34. The reading unit 32 also records the processing target data in the memory 36.
[0027] The time determination unit 33 determines the processing time (internal processing time) of the processing content in the server device 3a based on predetermined measurement results or design values. The time determination unit 33 also determines the transmission time (outbound transmission time) of the processing data transmitted from the client device 2 to the server device 3a based on the difference between the transmission time and reception time of the processing data.
[0028] The selection unit 34 refers to the first management table stored in the storage device 31. The selection unit 34 selects a processing unit from among the multiple processing units in the computing resource unit 38, based on the processing time of the processing content in the server device 3a and the transmission time of the processing data transmitted from the client device 2 to the server device 3a.
[0029] The processing time for the processing content in the server device 3a is, for example, the sum of the maximum time required for the selection unit 34 to select a calculation unit, the time required for preprocessing executed by the preprocessing unit 35, and the time required for calculation processing executed by the calculation unit (calculation time). The selection unit 34 updates the processing completion time in the first management table stored in the storage device 31 based on the selection result of the calculation unit.
[0030] The preprocessing unit 35 performs, for example, securing a memory area for temporarily storing the data to be processed and initializing the selected arithmetic unit as preprocessing for the arithmetic processing to be performed on the data to be processed. The memory 36 (buffer memory) temporarily stores the data to be processed.
[0031] The transfer unit 37 transfers the processing target data stored in the memory 36 to the calculation unit selected by the selection unit 34. The selected calculation unit selects processing content based on the parameters initialized by the preprocessing unit 35. The selected calculation unit executes calculation processing of the processing content on the processing target data. The selected calculation unit transmits the results (processing results) of the calculation processing of the processing content executed during the calculation time to the execution unit 22.
[0032] Next, an example of a method for selecting a calculation unit will be described. The reading unit 32 extracts a request signal including processing time information, processing content information, and transmission time information from the acquired processing data.
[0033] The time determination unit 33 determines the transmission time of the processing data transmitted from the client device 2 to the server device 3a based on the difference between the transmission time and reception time of the processing data. There is a high possibility that the transmission time of the processing data transmitted from the client device 2 to the server device 3a (forward transmission time) and the transmission time of the processing result transmitted from the server device 3a to the client device 2 (return transmission time) will be approximately equal. Therefore, the time determination unit 33 determines that the time it takes for a signal to travel back and forth between the client device 2 and the server device 3a (round-trip transmission time) is twice the transmission time of the processing data transmitted from the client device 2 to the server device 3a (forward transmission time).
[0034] The time determination unit 33 calculates, for each calculation unit, the total time including the round-trip transmission time of the signal, the maximum time (selection time) required for the selection unit 34 to select an calculation unit, the time (preprocessing time) required for preprocessing performed by the preprocessing unit 35, and the time (calculation time) required for calculation processing performed by the calculation unit.
[0035] The selection unit 34 selects, from the plurality of processing units in the processing resource unit 38, processing units whose total calculation time is equal to or less than the processing time and which can execute the processing content as immediately as possible (can respond immediately). In other words, the selection unit 34 selects, from the plurality of processing units in the processing resource unit 38, processing units whose total calculation time is equal to or less than the processing time, which can execute the processing content, and whose processing completion time registered in the first management table is a past time. The selection unit 34 registers the new processing completion time (updated processing completion time) of the selected processing unit in the first management table.
[0036] Next, a specific example of a method for selecting a calculation unit will be described. Processing data transmission time: 00.25000 Processing data reception time: 00.25050 Processing content: A Processing time: 5.5 ms Current time in the client device 2 and the server device 3a: 1m50.10200
[0037] Under these conditions, the reading unit 32 extracts a request signal including the processing time information "5.5 ms", the processing content information "A", and the transmission time information "00.25000" from the acquired processing data.
[0038] The time determination unit 33 determines the transmission time "00.00050" (=0.5 ms) of the processing data transmitted from the client device 2 to the server device 3a based on the difference between the sending time "00.25000" and the receiving time "00.25050". The time determination unit 33 determines the maximum value of the selection time to be, for example, "0.05 ms" based on predetermined measurement results or design values. The time determination unit 33 determines the preprocessing time to be, for example, "2 ms" based on the predetermined measurement results or design values and the size of the data to be processed.
[0039] The selection unit 34 searches the first management table for a processing unit that can handle the processing content "A." For example, the selection unit 34 searches the first management table for a processing unit in the order from the top to the bottom of the first management table.
[0040] The selection unit 34 selects, from the computation resource unit 38, a computation unit whose total time (= 2 × 0.5 ms + 0.05 ms + 2 ms + computation time = 3.05 ms + computation time) is equal to or less than 5.5 ms in processing time and which is capable of immediately executing the processing content "A". In other words, the selection unit 34 selects, from the computation resource unit 38, a computation unit associated with a computation time equal to or less than 2.45 ms, which is capable of executing the processing content "A", and whose processing completion time is in the past. In the first management table illustrated in FIG. 2 , the selection unit 34 selects the second computation unit 382 based on the computation time of 2 ms (<2.45 ms) for the processing content "A".
[0041] Next, an example of the operation of the client-server system 1a will be described. Fig. 3 is a sequence diagram showing an example of the operation of the client-server system 1a in the first embodiment. The execution unit 22 calls the function "Offload()" indicating a reduction in processing load while an application is being executed (step S101). The information generation unit 21 outputs transmission time information to the signal generation unit 23 (step S102).
[0042] The signal generating unit 23 generates a request signal (step S103). The adding unit 24 adds the request signal to the data to be processed to generate processing data (step S104). The adding unit 24 transmits the processing data to the reading unit 32 (step S105).
[0043] The reading unit 32 acquires the processing data from the adding unit 24 (step S106). The reading unit 32 records the processing target data extracted from the processing data in the memory 36 (step S107). The time determining unit 33 determines the total time of the round-trip transmission time of the signal, the maximum selection time, the preprocessing time, and the calculation time for each calculation unit (step S108).
[0044] The selection unit 34 refers to the first management table stored in the storage device 31 (step S109). The selection unit 34 selects, from the plurality of processing units in the processing resource unit 38, processing units whose total processing time is equal to or less than the processing time, which are capable of executing the processing content, and which have available processing resources. Based on the selection result of the processing unit, the selection unit 34 updates the processing completion time in the first management table stored in the storage device 31 (step S110).
[0045] The preprocessing unit 35 performs preprocessing of the arithmetic processing for the selected arithmetic unit (step S111). The transfer unit 37 transfers the processing target data to the selected arithmetic unit (step S112). The selected arithmetic unit performs arithmetic processing of the processing content on the processing target data based on the parameters initialized by the preprocessing unit 35 (step S113). The selected arithmetic unit transmits the processing result to the execution unit 22 (step S114). The execution unit 22 acquires the processing result (step S115).
[0046] As described above, in the first embodiment, the client-server system 1a includes a client device 2 and a server device 3a whose times are synchronized. The time determination unit 33 determines, for each processing unit, the total time including the round-trip transmission time of a signal between the client device 2 and the server device 3a, the maximum time required to select a processing unit from among the multiple processing units, the time required for preprocessing of the processing content requested by the client device 2, and the processing time for the processing content. The selection unit 34 selects, from the multiple processing units, a processing unit whose calculation time is equal to or shorter than the processing time requested by the client device 2 and which can immediately execute the processing content. The selected processing unit transmits the results of the calculation of the processing content performed during the calculation time to the client device 2.
[0047] The execution unit 22 generates processing target data for processing content to be executed by the server device 3a. The signal generation unit 23 generates a request signal including transmission time information of the signal transmitted from the client device 2 to the server device 3a, information on the processing time of the processing content in the server device 3a, and information on the processing content. The addition unit 24 transmits the processing target data (processing data) to which the request signal has been added to the server device 3a. The execution unit 22 obtains from the server device 3a the results of the calculation processing of the processing content at a predetermined calculation time.
[0048] In this way, the server device 3a takes into account the transmission time of the processing results, etc., even if the transmission time of the processing results, etc. is not taken into account in the processing time requested by the client device 2. This makes it possible for the client device 2 to obtain the processing results within the processing time requested by the client device 2.
[0049] Second Embodiment The second embodiment is mainly different from the first embodiment in that the time required to select a calculation unit (selection time) is shortened. The second embodiment will be described focusing on the differences from the first embodiment.
[0050] 4 is a diagram showing an example of a second management table in the second embodiment. The second management table is a second data table used by the server device to select a computing element (computing resource). In the second management table, processing content that the computing element can support is associated with the identifier of each computing element that can support the processing content. The second management table is stored in advance in the storage device 31.
[0051] The selection unit 34 refers to the second management table stored in the storage device 31. Based on the requested processing content, the selection unit 34 selects a processing unit (compatible processing unit) that can handle the processing content. In this way, the selection unit 34 narrows in advance the search range of processing units in the first management table illustrated in FIG. 2. For example, the third processing unit 383 is not registered in the second management table as a processing unit that can handle the requested processing content "A." Therefore, when processing content "A" is requested, the selection unit 34 excludes the "third processing unit" from the search range in the first management table.
[0052] As described above, in the second embodiment, the client-server system 1a includes the client device 2 and the server device 3a, which are time-synchronized. The selector 34 narrows the search range of the processor in the first management table (first data table) in advance, based on the requested processing content.
[0053] This reduces the selection time and allows the client device 2 to obtain the processing results within the processing time requested by the client device 2.
[0054] (Third Embodiment) The third embodiment is mainly different from the second embodiment in that it is possible to reduce the possibility of selecting a processing unit with excessive performance (over-spec) for the requested processing content. The third embodiment will be described focusing on the differences from the second embodiment.
[0055] 5 is a diagram showing an example of a third management table in the third embodiment. The third management table is a third data table for the server device to select a computing element (computing resource). In the third management table, processing content that a computing element can support, identifiers of the computing elements that can support the processing content, and processing times are associated with each other.
[0056] The selection unit 34 generates the third management table by sorting the calculation units capable of handling the requested processing content in descending or ascending order of the processing time in the first management table. For example, the selection unit 34 generates the third management table by sorting the "first calculation unit" and the "second calculation unit" that are capable of handling the requested processing content "A" in descending order of the processing time in the first management table.
[0057] Here, the shorter the calculation time, the higher the performance of the calculation unit. In other words, the performance of a calculation unit with a long calculation time is inferior to the performance of a calculation unit with a short calculation time. In Figure 5, for processing content "A," the calculation time of the second calculation unit 382 is "2 ms," which is longer than the calculation time of the first calculation unit 381, "1 ms," so the performance of the second calculation unit 382 is inferior to the performance of the first calculation unit 381.
[0058] The selection unit 34 selects a processing unit by, for example, performing a binary search for processing units in the third management table. Here, among a group of processing units having performance lower than that of the selected processing unit, the processing unit with the median performance may be a processing unit that does not satisfy the condition that the processing unit has a processing time whose total time is equal to or less than the processing time. If the processing unit with the median performance does not satisfy the condition, the selected processing unit is a processing unit that has the minimum performance for the requested processing content. This minimum performance is higher than the median performance (performance that does not satisfy the condition), but is not excessive performance. This makes it possible to reduce the possibility of selecting a processing unit with excessive performance for the requested processing content.
[0059] As described above, in the third embodiment, the client-server system 1b includes the client device 2 and the server device 3b that are time-synchronized. The selector 34 selects a processing unit by performing a binary search for the processing unit in the third management table (third data table) in which the identifiers of the processing units are sorted in order of the processing time.
[0060] This reduces the possibility of selecting an arithmetic unit with excessive performance for the requested processing content, and makes it possible for the client device 2 to obtain the processing results within the processing time requested by the client device 2.
[0061] (Fourth Embodiment) In the fourth embodiment, the main difference from the first to third embodiments is that the transmission time information is generated by the client device 2. In the fourth embodiment, the differences from the first to third embodiments will be mainly described.
[0062] 6 is a diagram showing an example of the configuration of a client-server system 1b in the fourth embodiment. The client-server system 1b includes one or more client devices 2 and one or more server devices 3b.
[0063] The client device 2 includes an information generating unit 21 (first information generating unit), an executing unit 22, a signal generating unit 23, and an adding unit 24. The server device 3b includes a storage device 31, a reading unit 32, a time determining unit 33, a selecting unit 34, a preprocessing unit 35, a memory 36, a transferring unit 37, a computing resource unit 38, and an information generating unit 39 (second information generating unit). The computing resource unit 38 includes a plurality of computing units (computing resources).
[0064] The information generating unit 21 transmits a signal requesting transmission of a response signal (hereinafter referred to as a "response request signal") to the information generating unit 39 in advance. The information generating unit 21 stores the transmission time of the response request signal. When the information generating unit 39 receives the response request signal, it transmits the response signal to the information generating unit 21 as immediately as possible.
[0065] The information generator 21 stores the reception time of the response signal. Based on the difference between the transmission time of the response request signal and the reception time of the response signal, the information generator 21 determines the time it takes for the signal to travel back and forth between the client device 2 and the server device 3b (round-trip transmission time). The information generator 21 outputs transmission time information to the signal generator 23.
[0066] The signal generating unit 23 generates a request signal. The request signal includes processing time information, processing content information in the server device 3b, and transmission time information. The signal generating unit 23 outputs the request signal to the adding unit 24. The time determining unit 33 determines that the transmission time indicated by the transmission time information in the request signal is the time it takes for the signal to travel back and forth between the client device 2 and the server device 3b (round-trip transmission time).
[0067] As described above, in the fourth embodiment, the client-server system 1a includes the client device 2 and the server device 3b whose times are not synchronized. The information generator 21 transmits a response request signal to the information generator 39 in advance. When the information generator 39 receives the response request signal, it transmits the response signal to the information generator 21 as immediately as possible. The information generator 21 determines the round-trip transmission time.
[0068] The execution unit 22 generates processing target data for processing content to be executed by the server device 3b. The signal generation unit 23 generates a request signal including information on the round-trip transmission time of the signal between the client device 2 and the server device 3b, information on the processing time of the processing content in the server device 3b, and information on the processing content. The addition unit 24 transmits the processing target data (processing data) with the request signal added to the server device 3b. The execution unit 22 obtains from the server device 3b the results of the calculation processing of the processing content executed within a predetermined calculation time.
[0069] This allows the client device 2 to obtain the processing result within the processing time requested by the client device 2 even if the time on the client device 2 and the time on the server device 3b are not synchronized. Also, the client device 2 can operate in its own time network.
[0070] Fifth Embodiment The fifth embodiment differs from the fourth embodiment mainly in that the server device generates information indicating the transmission time. The fifth embodiment will be described focusing on the differences from the fourth embodiment.
[0071] 7 is a diagram showing an example of the configuration of a client-server system 1c in the fifth embodiment. The client-server system 1c includes one or more client devices 2 and one or more server devices 3c.
[0072] The client device 2 includes an information generating unit 21 (first information generating unit), an executing unit 22, a signal generating unit 23, and an adding unit 24. The server device 3c includes a storage device 31, a reading unit 32, a time determining unit 33, a selecting unit 34, a preprocessing unit 35, a memory 36, a transferring unit 37, a computing resource unit 38, and an information generating unit 39 (second information generating unit). The computing resource unit 38 includes a plurality of computing units (computing resources).
[0073] The information generating unit 39 transmits a response request signal in advance to the information generating unit 21. The information generating unit 39 stores the transmission time of the response request signal. When the information generating unit 21 receives the response request signal, it transmits a response signal to the information generating unit 39 as immediately as possible.
[0074] The information generating unit 39 stores the time when the response signal was received. Based on the difference between the time when the response request signal was sent and the time when the response signal was received, the information generating unit 39 determines the time it takes for the signal to travel back and forth between the client device 2 and the server device 3c (round-trip transmission time). The information generating unit 39 outputs the round-trip transmission time information to the time determining unit 33.
[0075] The time determination unit 33 determines the transmission time indicated by the transmission time information acquired from the information generation unit 39 as the time it takes for a signal to travel back and forth between the client device 2 and the server device 3c.
[0076] The signal generating unit 23 generates a request signal. The request signal includes processing time information and processing content information in the server device 3c. The signal generating unit 23 outputs the request signal to the adding unit 24.
[0077] As described above, in the fifth embodiment, the client-server system 1c includes a client device 2 and a server device 3c whose times are not synchronized. The information generator 39 transmits a response request signal to the information generator 21 in advance. The information generator 39 stores the transmission time of the response request signal. When the information generator 21 receives the response request signal, it transmits the response signal to the information generator 39 as immediately as possible. The information generator 39 determines the round-trip transmission time.
[0078] This allows the client device 2 to obtain the processing result within the processing time requested by the client device 2 even if the time on the client device 2 and the time on the server device 3c are not synchronized. Also, the client device 2 can operate in its own time network.
[0079] 8 is a diagram showing an example of the hardware configuration of the information processing device 100 in each embodiment. The example of the hardware configuration of the information processing device 100 corresponds to the example of the hardware configuration of at least one of the client device and the server device in each embodiment.
[0080] The information processing device 100 is realized as software by a processor 101, such as a CPU (Central Processing Unit), executing a program stored in a storage device 103 having a non-volatile recording medium (non-transitory recording medium) and a memory 102. The program may be recorded on a computer-readable recording medium. Examples of computer-readable recording media include portable media such as a flexible disk, a magneto-optical disk, a ROM (Read Only Memory), and a CD-ROM (Compact Disc Read Only Memory), and non-transitory recording media such as a hard disk or a solid-state drive (SSD) built into a computer system. The communication unit 104 executes predetermined communication processing.
[0081] The information processing device 100 may be realized using hardware (accelerator) including an electronic circuit (electronic circuit or circuitry) using, for example, an LSI (Large Scale Integrated circuit), an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), or an FPGA (Field Programmable Gate Array).
[0082] Although an embodiment of the present invention has been described above in detail with reference to the drawings, the specific configuration is not limited to this embodiment, and includes designs within the scope of the gist of the present invention.
[0083] The present invention is applicable to communication systems such as client-server systems.
[0084] DESCRIPTION OF THE REFERENCE SIGNS 1a, 1b, 1c...client-server system, 2...client device, 3a, 3b, 3c...server device, 10...client-server system, 21...information generation unit, 22...execution unit, 23...signal generation unit, 24...addition unit, 32...reading unit, 33...time determination unit, 34...selection unit, 35...preprocessing unit, 36...memory, 37...transfer unit, 38...computational resource unit, 39...information generation unit, 100...information processing device, 101...processor, 102...memory, 103...storage device, 104...communication unit, 381...first computation unit, 382...second computation unit, 383...third computation unit, 384...fourth computation unit, 385...fifth computation unit
Claims
1. A server device comprising: a time determination unit which determines for each calculation unit the total time of the round-trip transmission time of a signal between a client device and its own server device, the maximum time required to select a calculation unit from among a plurality of calculation units, the time required for pre-processing of processing content requested by the client device, and the calculation time of the processing content; and a selection unit which selects from the plurality of calculation units an calculation unit whose calculation time is equal to or less than the processing time requested by the client device and which is capable of immediately executing the processing content, wherein the calculation unit transmits to the client device a result of calculation processing of the processing content during the calculation time.
2. A client device comprising: an execution unit that generates processing target data for processing content to be executed by a server device; a signal generation unit that generates a request signal including a round-trip transmission time of a first signal between the client device and the server device or transmission time information of a second signal sent from the client device to the server device, information on the processing time of the processing content in the server device, and information on the processing content; and an addition unit that transmits the processing target data with the request signal added to the server device, wherein the execution unit obtains from the server device a result of the calculation processing of the processing content at a predetermined calculation time.
3. A client-server system including a server device and a client device, wherein the server device comprises: a time determination unit which determines for each of the calculation units a total time of a round-trip transmission time of a first signal between the client device and the server device, a maximum time required to select a calculation unit from among a plurality of calculation units, a time required for pre-processing of a processing content requested by the client device, and a calculation time of the processing content; and a selection unit which selects from the plurality of calculation units a calculation unit having a calculation time for which the total time is equal to or less than the processing time requested by the client device and which is capable of immediately executing the processing content; the client device comprises: an execution unit which generates processing target data for the processing content to be executed by the server device; a signal generation unit which generates a request signal including the round-trip transmission time or transmission time information of a second signal transmitted from the client device to the server device, information on the processing time of the processing content in the server device, and information on the processing content; and an addition unit which transmits the processing target data to which the request signal has been added to the server device; and the calculation unit transmits to the client device a result of the calculation processing of the processing content during the calculation time, The execution unit obtains a result of the execution of the arithmetic processing of the processing content during the calculation time from the server device.
4. A selection method executed by a server device, comprising: a step of determining, for each calculation unit, the total time of the round-trip transmission time of a signal between a client device and the server device itself, the maximum time required to select a calculation unit from among a plurality of calculation units, the time required for pre-processing of the processing content requested by the client device, and the calculation time of the processing content; and a step of selecting, from among the plurality of calculation units, a calculation unit whose calculation time makes the total time equal to or less than the processing time requested by the client device and which is capable of immediately executing the processing content, wherein the calculation unit transmits to the client device a result of the calculation processing of the processing content performed during the calculation time.
Citation Information
Patent Citations
Remote procedure calling method and system therefor
JP1997050412A
Systems, apparatus, articles of manufacture, and methods for improved data transfer for heterogeneous programs
US20220222177A1
