[Q][PNRP] How to access PNRP cache?

Hi.

I was assigned to create a spatial index service supporting range query for some kind of Grid service. And I choose PNRP and C# as the tool. As a start, I am trying to use simple super peer architecture to create a prototype.

To achieve this, I have to access PNRP multi-layered cache to fetch Peer info and send request to that particular Peer (broadcasting costs too much).

The problem is, how could I access the PNRP cache?

I've read through the C# documents and the native API (C++), neither of them provide relative info.

I am quite appreciate if someone can light me the way. Thanks in advance.

[644 byte] By [ShiningH] at [2008-1-9]
# 1

Hi,

PNRP cache implementation is not exposed and there is no API to access PNRP cache. PNRP has some rich search API, that will able to help you.

If you have any specific query, please let us know. You may also consider to send email at peerfb@microsoft.com

Thanks,

Pritam

PritamDe-MSFT at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Peer-to-Peer Networking...
# 2

Got it. Thank you, Pritam.

ShiningH at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Peer-to-Peer Networking...
# 3

I still got no reply from peerfb@microsoft.com. Maybe it treat my mail as Spam.

The scenario is like this:

1> when the index service receives a query ("CPU = 4, Memory = 200MB,
Hard disk = 1GB", i.e.), the service first look up the local resource.

2> If a matching local peer is found, its address will directly be
sent back to the querist.

3>If miss, the service will follow some algorithms to pick a remote
peer in its cache and forward the request.

The last step is the most difficult one.


The reason I need to find the peer info in cache is that PeerChannel
in .Net only provide broadcasting, which I think is low in efficiency.
The graph and group native APIs in C++ require peer id to obtain the
info of that peer. Neither of them fits this situation.

Since the cache can not be accessed, what kind of search APIs can fit this circumstance?

Thank you in advance.

ShiningH at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Peer-to-Peer Networking...
# 4

Hi,

I have already responded your mail. Please let me know if you need any more information.

Thanks,

Pritam

PritamDe-MSFT at 2007-10-3 > top of Msdn Tech,Windows Networking Development,Peer-to-Peer Networking...