1

To test bandwidth, I just can push data from client to server with iperf. But can i pull data from server to client ? that is like webserver, the client request data, then server give data to client?

larry
  • 4,037
  • 9
  • 36
  • 42

1 Answers1

5

iperf is capable of bidrectional tests, either simultaneously with "-d" or sequentially with "-r". Using "-r" will test bandwidth from client to server first, then server to client afterwards which is what you're after, I believe.

rthomson
  • 1,059
  • 9
  • 14
  • thanks! But i just need test server to the client because of PPTP, you know, one client which connects PPTP(virtual ip is 172.17.0.10) can find other pc without connecting pptp(192.168.1.21), but other pc without connecting pptp can not find the virtual ip. my purpose is testing the PPTP traffic. – larry Jan 26 '11 at 05:42
  • I want to test the bandwidth from one ethnet ip to one pptp virtual ip, maybe i need to program to deal with it myself – larry Jan 26 '11 at 05:43
  • 1
    So basically you have a PPTP end-point and a real network "behind" it with servers and you want to test the bandwidth from a server which is on the real network to the clients which connect over PPTP? – rthomson Jan 26 '11 at 15:13
  • right! is there any good method to do this ? – larry Feb 15 '11 at 02:41
  • @cense, can i skip the first step with the "-r" ? – larry Feb 15 '11 at 02:50
  • @why, Not exactly skipping the test, but you can simply run the iperf "server" on the client system connecting via PPTP and the iperf "client" on the actual server that is sitting on the real network, behind the PPTP end-point. This way you'll be testing bandwidth from the server on the real network to the client connecting via PPTP. – rthomson Feb 17 '11 at 00:50