Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8330657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:11:12+00:00 2026-06-09T02:11:12+00:00

I’m currently doing some performance testing with the free pastry DHT. Freepastry is an

  • 0

I’m currently doing some performance testing with the free pastry DHT. Freepastry is an open source DHT done in Java.

The goal is to monitor the effect on the DHT when a certain number of nodes go down. My problem is I’m not sure on the best way to eliminate nodes. At the moment each node is running off a different port on my machine. I’m destroying these nodes using the destroy() method from the Pastry API http://www.freepastry.org/FreePastry/javadoc21a3/rice/pastry/PastryNode.html#destroy()

I’m worried this may be unrealistic in simulating node failure and whether I should kill the nodes in a different manner such as using tcpkill?

I’m running Mac OS X snow leopard and would be interested in hearing any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:11:13+00:00Added an answer on June 9, 2026 at 2:11 am

    There are different forms of node failures.

    The most common one is simply the node going offline because the application which is running the DHT is shut down.

    The change of a dynamic IP of a domestic internet connection essentially has a subtly different effect as it invalidates all existing routing table entries about it but the over all node count doesn’t go down. You lose one and you gain a new one.

    Another common issue are reachability problems due to NATs. Visibility of that node may depend on the NAT type and whether you had recent contact with it.

    The resulting effects of churn can actually be quite complex. First of all, the uptime of individual nodes generally follows an exponential distribution. Many are only available for a short time and very few stay stable for days or months.

    Assume that you have a stable core of moderately to long-lived nodes that actually make up 90% of the network. A 10% of the same nodes constantly popping in and out of existence will cause some overhead traffic but they won’t harm the network much.
    You have lots of churn but little impact.

    If 10% of the node population goes offline after 10 minutes and is replaced by a brand-new set of nodes from the inactive pool then you’re essentially loosing 10% of your redundancy every 10 minutes. If data replication between nodes does not keep up with that or doesn’t even exist your data will decay exponentially.
    You also have lots of churn but a huge impact.

    I’m not even sure what kind of simulation would reflect reality the best way. I guess the most realistic constraint is simply having a fixed pool of potential nodes. That’s computers which have the DHT implementation installed.

    Each node then would have a profile of time how long it stays up on average and how long it’ll be down on average (where those two parameters are partially correlated with each other. long-uptime nodes generally don’t have very long downtimes as they’re probably always-on). And each node acts on these parameters independently.
    In reality the time of day also plays a role as can be easily seen here: http://dsn.tm.uni-karlsruhe.de/english/2936.php

    So… long story short, just running and killing a few nodes randomly won’t give you a realistic result about the resilience of a DHT, as the impact will vary widely.

    As for the technical part, you’ll probably want to run all of them in the same java VM and use multithreading or nonblocking IO to reduce the overhead of running each instance in a separate VM. This would also allow you to schedule their up and downtimes in a more realistic manner.

    Since you can assign multiple IPs to a single computer you should be able to run hundredthousands of nodes on a computer simply based on the IP/Port count. But resource consumption of the process will eventually bog down even the fastest system, as very few DHT implementations are actually implemented to scale that well.

    So you’ll probably need to run this on a network with a few thousand nodes per computer to get anything close to realistic.

    Either that or you resort to more mathematical simulations instead of running actual implementations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
I have thousands of HTML files to process using Groovy/Java and I need to
I have some data like this: 1 2 3 4 5 9 2 6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.