tor_multipath_voip/README.md
2019-03-06 18:32:19 +01:00

54 lines
1.1 KiB
Markdown

# Donar
## Linphone configuration
Choose a SIP UDP, Audio RTP/UDP and Video RTP/UDP that is different between your clients.
Go to manage account.
Add a new SIP proxy.
```
Username: <username>@127.13.3.7:<SIP_PORT>
Proxy: 127.13.3.7:<SIP_PORT>
Leave the rest empty.
Uncheck all the checkboxes.
```
## Docker build
```
sudo docker build -t registry.gitlab.inria.fr/qdufour/donar .
sudo docker push registry.gitlab.inria.fr/qdufour/donar
```
```
mkdir -p ./{xp1-shared,xp1-res}
sudo chown -R 1000 ./{xp1-shared,xp1-res}
sudo docker run -t -i \
--privileged \
-v `pwd`/xp1-shared:/home/donar/shared \
registry.gitlab.inria.fr/qdufour/donar \
xp1-server
sudo docker run -t -i \
--privileged \
-v `pwd`/xp1-res:/home/donar/res \
-v `pwd`/xp1-shared:/home/donar/shared \
registry.gitlab.inria.fr/qdufour/donar \
xp1-client 1000 100 100
```
## Run an XP instance
```
sudo ./scripts/xp1 1000 100 100
```
## Run instances in parallel
```
parallel -j 30 bash -c "./scripts/xp1 1000 100 100" -- `seq 1 1000`
parallel -j 10 bash -c "./xp1 6000 100 100" -- `seq 1 100`
```