This application claims priority to Taiwan Application Serial Number 97144933, filed Nov. 20, 2008, which is herein incorporated by reference.
1. Field of Invention
The present invention relates to a remote data access device. More particularly, the present invention relates to a remote data access device and a remote data access method.
2. Description of Related Art
In a network system, data transfer is the most important subject. The clients in a network system deliver access requests to the server to perform a data access on the storing module of the server. In a conventional design, there are more than two controllers placed in the server. Thus if a controller is fail to work, other controllers can take over. In the network system described above, each controller is in charge of a fixed number of clients. For example, if there are ten clients and two controllers in the network system, one of the controller deals with the access requests of the first half of the clients, and the other controller deals with the access requests of the second half of the clients. However, if the first half of the clients deliver lots of access request while the second half of the clients are idling, the unbalanced loading of the two controllers will result in a bad performance.
Accordingly, what is needed is a remote data access device and a remote data access method to make effective use of the controllers in the server. The present invention addresses such a need.
A remote data access device to perform a data access according to a plurality of remote access requests are provided. The remote data access device comprises: a storing module, a first controller and a second controller. The first controller comprises a first odd access queue and a first even access queue and the second controller comprises a second odd access queue and a second even access queue, wherein the first and the second controller has the same MAC and IP addresses such that the first and the second odd access queues receive the same odd remote access requests and the first and the second even access queues receive the same even remote access requests, the first controller performs a data access operation on the storing module according to the odd remote access requests in the first odd access queue and the second controller perform a data access operation on the storing module according to the even remote access requests in the second even access queue.
Another object of the present invention is to provide a remote data access method adapted in a remote data access device, wherein the remote data access device comprises a storing module, a first controller having a first odd access queue and a first even access queue and a second controller having a second odd access queue and a second even access queue, the remote data access method comprises the steps of: assigning the same MAC address to the first and the second controller; assigning the same IP address to the first and the second controller; receiving the odd remote access request into the first odd access queue of the first controller and into the second odd access queue of the second controller; receiving the even remote access request into the first even access queue of the first controller and into the second even access queue of the second controller; performing a data access operation on the storing module according to the odd remote access requests in the first odd access queue through the first controller and the even remote access requests in the second even access queue through the second controller.
Yet another object of the present invention is to provide a remote data access device to perform a data access according to a plurality of remote access requests, wherein the remote data access device comprises: a storing module and N controllers. Each controllers comprises N access queues, wherein each access queue has the same MAC and IP addresses such that the M-th access queue of each controller receive the same M+(A−1)×N remote access requests, the A, M, N are positive integers respectively; the M-th controller performs a data access operation on the storing module according to the M+(A−1)×N remote access requests in the M-th access queue.
Further, another object of the present invention is to provide a remote data access method adapted in a remote data access device, wherein the remote data access device comprises a storing module and N controllers each having N access queues, N is an integer, wherein the remote data access method comprises the steps of: assigning the same MAC address to the N controllers; assigning the same IP address to the N controllers; receiving the M+(A−1)×N remote access request into the M-th access queue of each controller; and performing a data access operation on the storing module according to the M+(A−1)×N remote access requests in the M-th access queue through the M-th controller.
It is to be understood that both the foregoing general description and the following detailed description are by examples, and are intended to provide further explanation of the invention as claimed.
The invention can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
Reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Please refer to
The remote data access device of the present embodiment is to assign the same IP and MAC addresses to the first and the second controller 12, 14 to receive the same remote access requests. However, the different controllers deal with half of the remote access requests respectively. Thus, the loading of the data access is equally shared by the two controllers.
If the first controller 12 malfunctions, the second even access queue 142 of the second controller 14 receives both the odd and the even remote access requests and perform a data access operation 15 on the storing module 10 according to the odd and the even remote access requests in the second even access queue 142, as depicted in
Please refer to
Another object of the present invention is to provide a remote data access method adapted in a remote data access device, wherein the remote data access device comprises a storing module, a first controller having a first odd access queue and a first even access queue and a second controller having a second odd access queue and a second even access queue. Please refer to
Yet another embodiment of the present invention is a remote data access method adapted in a remote data access device, wherein the remote data access device comprises a storing module and N controllers each having N access queues, N is an integer. As depicted in
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
97144933 | Nov 2008 | TW | national |