Porting PicoTCP WIP
This commit is contained in:
18
kernel/picotcp/test/python/tcpbench-delay.py
Executable file
18
kernel/picotcp/test/python/tcpbench-delay.py
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
|
||||
from topology import *
|
||||
|
||||
T = Topology()
|
||||
net1 = Network(T, "vde0")
|
||||
|
||||
send1 = Host(T, net1, args="tcpbench:t:172.16.1.3:7770:")
|
||||
recv1 = Host(T, net1, args="tcpbench:r:7770:", delay1="30", loss1="1")
|
||||
|
||||
|
||||
sleep(1)
|
||||
raw_input("Press enter to continue ...")
|
||||
|
||||
start(T)
|
||||
wait(send1)
|
||||
cleanup()
|
||||
Reference in New Issue
Block a user