
 
this hash key (row name) is registered/indexed on 
that LHT Node (column name). 
When the RRT is changed, that means new 
resources register or some resources unregistered, 
modification operations must be called. Insert 
Modification Operation deals with new resources 
register events. What we only should do is to modify 
the local node column of the bitmap, change the 
correspondence value to positive. On the contrary, 
Delete Modification Operation will also modify the 
local node column of the bitmap, and turn the 
correspondence value to negative. 
Table 2: Resource Hash Table of LHT Node 12. 
LHT Node
Key Space
...
h(resource8)
...
h(resource9)
...
LHT 
Node 
12
...
1
...
1
...
 
 
Higher level LHT Node knows that the key 
hashed by a certain resource could exist in which 
sub-trees of its child nodes, so it can route the query  
to the lower level LHT Nodes. When resource 
register event occurs, or new LHT Node join the 
system, RHT must be transformed to Resource 
Mapped Table which will be sent to higher level 
LHT Nodes. 
Resource Mapped Table The structure of 
Resource Mapped Table is same with RHT, but it  
has only one column. Each cell value in RMT is the 
result by computing logical OR operation among all 
the cells value of the same row in RHT. In other 
word, RMT shows which key can be found in 
current node’s sub-tree, but ignores the resource 
associate with the key is registered exactly on which 
node of the sub-tree. 
And when parent LHT Node receives the RMT 
sent by its child nodes, it will merge it into its 
Resource Hash Table. So the query can easily be 
routed to lower level nodes. The purpose of design 
takes the advantages of distributed system, and 
avoids network traffic by flooding mechanism. 
Table 3 shows the RHT of LHT Node 7, after 
merging the RMT sent from LHT Node 12 and 13, 
and also shows the RMT of LHT Node 7, which will 
be sent to parent node. 
Table 3: An example of Resource Hash Table. 
LHT Node
Key Space
...
h(resource8)
...
h(resource9)
...
LHT 
Node 
7
...
0
...
0
...
h(resource10)
...
h(resource12)
...
0
...
0
...
LHT 
Node 
12
...
1
...
1
...
0
...
0
...
LHT 
Node 
13
...
0
...
0
...
1
...
1
...
LHT Node
Key Space
...
h(resource8)
...
h(resource9)
...
LHT 
Node 
7
...
1
...
1
...
h(resource10)
...
h(resource12)
...
1
...
1
...
transform
 
2.3 Resource Register Service 
The resources must register on an LHT Nodeto jion 
the Gird system. And when it is temporarily 
unavailable, the owner of the resource can unregister 
it, or the resource is unregistered by Grid Monitor 
Service. So the Resource Register Service has to 
provide a parameter which used in the request, to 
determine whether the resource should be registered 
or unregistered. 
When Resource Register Service receives a 
resource register request, the resource’s detail would 
be added into the RRT of current LHT Node by 
Resource Register Operation. Then Insert 
Modification Operation should be called to modify 
the local node column of RHT. Next, RMT is 
generated from RHT and sent to parent node. Parent 
node calls Update Merging Operation to modify its 
RHT, and transforms to RMT sent to higher level 
node.  
Similarly, if the Resource Register Service 
receives a resource unregistered request, the 
operations have to be called are Resource 
Unregistered Operation, Delete Modification 
Operation on local node, and Update Merging 
Operation on higher level nodes. 
2.4  Resource Discovery Service 
Resource Discovery Service is the key process of 
LHT Mechanism. In our system, although the 
resources are registered on distributed nodes, we do 
not have to search for request resource by traversing 
all nodes, and also do not need to search for request 
resource on a centralized server with heavy load. 
In LHT mechanism, once a requester submits his 
resources requirement to an LHT Node, the 
following processes will be launched. 
The LHT Node received the original request 
could be called Request Node. It must compute the 
LEVEL HASH TABLE RESOURCE DISCOVERY MECHANISM IN GRID ENVIRONMENT
85