title: Tools to artificially increase IP (TCP) latency on Linux OS?
body: <p>I'm looking for a (Linux) tool to allow me to simulate high latency IP communication between two machines.  </p>
  
  <p>Machines A and B are on the same LAN (&lt;1ms latency).<br>
  Goal: My Java app, machine A, should experience high latency (~500ms) when talking TCP with a service on machine B.  </p>
  
  <p>Comments:  </p>
  
  <ol>
  <li>I'm looking for fine grained control over the individual IP packet latency (controlling just the overall bandwidth doesn't cut it).  </li>
  <li>I would rather not slow down the entire network, just the communication between machines: A+B.</li>
  <li>I mainly care about Linux and I rather use a freeware tool, though a Windows/commercial tool might also do. I Googled, but found nothing.</li>
  </ol>