Publish and Lookup Mechanisms

Home Forums PeerfactSim Forum Publish and Lookup Mechanisms

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #851
    Chintan Parekh
    Guest

    I was just trying to debug the nodes an I found out the following thing which surprised me:

    1. Publish Mechanishm

    I have used network Id’s

    FileSharingApplication: 68.8.144.9 // Start of Publish
    DocumentStored:12.21.188.1 // Place where document is store
    ResultMessage: 66.8.240.99 // Notification where it is stored

    The question over here is that why is the “resultMessage” always sent to “66.8.240.99”…No matter what? How does the original node which is “68.8.144.99” (specifically in this case informed that it is published).

    The problem gets really difficult when I debug lookup mechanism

    2. Lookup Mechanism

    FileSharingApplication: 12.21.188.1 // Start of Publish
    Finds the file : 65.8.244.90 // Place where document is stored just retrieves it
    ResultMessage/Store Document: 66.8.240.99 // Retrieves it and stores it

    So over here always the document is getting stored on “66.8.240.99” which apparently I think is the localhost. So the problem here is that every lookup mechanism stores the document at this node and just in case in my scenario if I have a cache then there is just 1 cache in the whole network if this is to happen.

    Please let me know what exactly is happening..Hoping to hear from you..!

    #852
    Chintan Parekh
    Guest

    Hoping to hear your inputs here..as this is the main problem..I have cache developed and because of this behavior everything is stored on the local node..!..

    #853
    Matthias Feldotto
    Guest

    I just checked everything. The used nodes look fine. Perhaps you have used a wrong field in your output, the analyzer gets more than one node as result (everytime for example also the initiator of a lookup). To check it, you can use the SimpleNetLayer, there you have integers as net ids (0, 1, 2, …), so it is easier to have an overview.

    #855
    Chintan Parekh
    Guest

    Yes, I am sure the output produced are perfectly right..!.

    I request you to please put “sysout” when the lookup is started and when the document is saved..Both the locations are different..!

    Awaiting your reply..!

    #856
    Chintan Parekh
    Guest

    Well,

    Thanks. SimpleNet Layer did help a lot as it just generates integer which helps a lot in debugging..!

    However, figured out the problem..Apparently some how my FileSharingApplication obejct was turned to static..Don’t know how and hence the problem….Never saw that that coming..

    Anyway, Sorry for the trouble and thanks for the help..!!..Perfectly fine now.:!
    – zitierten Text einblenden –

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed.