西研新b4教育用 (TCP・UDP)
-
host/ 仮想ネットワークのクライアント、サーバで実行
- TcpClient.cpp
- 実行時にサーバIP指定
- TcpServer.cpp
- UdpClient.cpp
- 実行時にサーバIP指定
- UdpServer.cpp
- TcpClient.cpp
-
mininet/ 仮想ネットワークの起動
- hostディレクトリ内でコンパイル
cd host make all - TreeTopo.pyを実行
cd mininet sudo python3 TreeTopo.py - CLIにてxtermを起動
mininet> xterm h0 h1 ... - Client, Serverのコード実行
# サーバ側 ../host/TcpServer ../host/UdpServer# クライアント側 ../host/TcpClient [サーバIPアドレス] ../host/UdpClient [サーバIPアドレス]

