title: Load Testing TCP with IP spoofing
body: <p>I'm trying to come up with a way to Load Test the following architecture:</p>
  
  <p>We have an Application Server that recieves data from multiple servers with data-collecting agents on them.</p>
  
  <p>However, our testing environment only has ONE server with an agent, and we wish to emulate multiple (100) connections from the same server outgoing to the Application Server.</p>
  
  <p>I have a wide-open range of IPs I have already assigned to the NIS card on the agent machine, but I am unable to find a way to make each outgoing connection from the machine to the app server use a different IP and thus open a new connection.</p>
  
  <p>I know that web tests on HTTP protocols can use Virtual Users and IP Spoofing tools easily when facing thi sproblem, but since the agent-server connection uses TCP - I cannot find ANY tool that is capable of fulfilling this function.</p>
  
  <p>I also thought about possibly editing each packet by code and replacing it's header with a different IP each time - but this method seems both too convuluted and impractical as it would delay each request for too long to make the load testing relevant.</p>
  
  <p>Any ideas and solutions are welcome!</p>
  
  <p>thanks in advance :)</p>