how to run EuhatOfp

create three vmware guest machines for example,
ip of no.1 guest machine is 192.168.204.33
ip of no.2 guest machine is 192.168.204.34
ip of no.3 guest machine is 192.168.204.35

setup dpdk in every machine, all script and binary are in the setup directory, refer to <5. setup dpdk> in

compile ofp over dpdk in vmware

modify test/servers.cfg

1
2
3
192.168.204.33:8061
192.168.204.34:8062
192.168.204.35:8063

for every guest machine modify self ip setting in test/ofp_netwrap.cli

1
2
3
debug 0
loglevel set debug
ifconfig fp0 192.168.204.33/24

in no.1 guest machine

1
2
cd test
./release/test 0

in no.2 guest machine

1
2
cd test
./release/test 1

in no.3 guest machine

1
2
cd test
./release/test 2

then you can check the log files in test/log directory.

how to build EuhatOfp

EuhatOfp is a library for peer to peers communication framework through user space tcp stack, now implemented in OFP over DPDK.

1. build ofp over dpdk

compile ofp over dpdk in vmware

2. build EuhatOfp

1
git clone https://github.com/euhat/EuhatOfp.git

modify the paths of dpdk, odp-dpdk and ofp in test/Makefile.

1
2
3
cd test
make clean
make

whether go through tcp or udp using EuhatRtsp

app/src/main/java/com/euhat/rtsp/euhatrtspdemo/MainActivity.java

108
109
// try to modify the 3rd parameter to 0.
mEuhatPlayer.open(url, 8000, 0, 1000, fps, 300);