DATA RELAYING APPARATUS AND METHOD FOR RELAYING DATA BETWEEN DATA
A data relaying apparatus and method capable of relaying data in a highly efficient manner. Data of a predetermined read-ahead size is acquired from the storage apparatus from a top address indicated by a data read request to temporarily store the data as temporary storage data and, each time a subsequent data read request is made, data of a transmission data size corresponding to a type of the subsequent data read request is read out sequentially from a top position of the temporary storage data to relay the data to a data processing apparatus.
1 . A data relaying apparatus having a relaying part that acquires data stored in a storage apparatus via a second data bus in response to a data read request arriving from a data processing apparatus via a first data bus to relay the data to the data processing apparatus via the first data bus, comprising:
a temporary storage part that acquires data of a predetermined read-ahead size from the storage apparatus from a top address indicated by the data read request to temporarily store the data as temporary storage data, wherein
each time a subsequent data read request is made, the relaying part reads out data of a transmission data size corresponding to a type of the subsequent data read request sequentially from a top position of the temporary storage data to relay the data to the data processing apparatus.
2 . The data relaying apparatus of claim 1 , further comprising a read-ahead size setting part that sets the read-ahead size based on a type of the data read request.
3 . The data relaying apparatus of claim 1 , further comprising a read-ahead size setting part that sets the read-ahead size based on a type of a communication protocol corresponding to data stored in the storage apparatus.
4 . The data relaying apparatus of claim 2 , wherein the read-ahead size setting part sets the read-ahead size to a size larger than the transmission data size.
5 . The data relaying apparatus of claim 3 , wherein the read-ahead size setting part sets the read-ahead size to a size larger than the transmission data size.
6 . A data relaying method having a relaying step of acquiring data stored in a storage apparatus via a second data bus in response to a data read request arriving from a data processing apparatus via a first data bus to relay the data to the data processing apparatus via the first data bus, comprising:
a temporary storage step of acquiring data of a predetermined read-ahead size from the storage apparatus from a top address indicated by the data read request to temporarily store the data as temporary storage data, wherein
at the relaying step, each time a data request is made, data of a transmission data size corresponding to a type of the data request is relayed sequentially from a top position of the temporary storage data to the data processing apparatus.
7 . The data relaying method of claim 6 , further comprising a read-ahead size setting step of setting the read-ahead size based on a type of the data read request.
8 . The data relaying method of claim 6 , further comprising a read-ahead size setting step of setting the read-ahead size based on a type of a communication protocol corresponding to data stored in the storage apparatus.
9 . The data relaying method of claim 7 , wherein at the read-ahead size setting step, the read-ahead size is set to a size larger than the transmission data size.
10 . The data relaying method of claim 8 , wherein at the read-ahead size setting step, the read-ahead size is set to a size larger than the transmission data size.