How to install - Install ns2 (PeerApp is tested on version 2.31)
- Modify the following instruction in “/etc/profile”
PATH=/home/yourusername/ns-allinone-2.31/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH - Copy "p2p" directory to ns2 directory (ns-allinone-2.31\ns-2.31)
- Modify "ns-allinone-2.31\ns-2.31\common\ns-process.h"
enum AppDataType { … //PeerApp PEER_DATA, // Last ADU ADU_LAST }; - Modify "ns-allinone-2.31.tar.gz/ns-2.31/Makefile"
qs/qsagent.o qs/hdr_qs.o \ apps/app.o apps/telnet.o p2p/peerapp.o tcp/tcplib-telnet.o \ tools/trafgen.o trace/traffictrace.o tools/pareto.o \ ns test.tcl
- copy sgb2ns.c to ns-allinone-2.31\gt-itm\sgb2ns\
- make sgb2ns
- Use NSTools to create TCLs
- go
|