📄 install
字号:
1) unpak puma.zip in ~/ns/puma2) edit the files below:2.1)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ~ns/Makefile%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%add:puma/puma.o \2.2)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ~ns/tcl/lib/ns-lib.tcl%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%add:PUMA { set ragent [$self create-puma-agent $node]}add:Simulator instproc create-puma-agent { node } { # Create PUMA routing agent set ragent [new Agent/PUMA [$node node-addr]] $self at 0.0 "$ragent start" ;# start agent $node set ragent_ $ragent return $ragent}2.3)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ~/ns/commom/packet.h%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%execute:touch ~/ns/common/packet.ccadd:name_[PT_PUMA]= "PUMA";*** The step below is for NS-2 version 2.32 or below ***// PUMA packetPT_PUMA,*********************************************************or*** The steps below are to NS-2 version 2.33 ***add:// PUMA packetstatic const packet_t PT_PUMA = 61;(this number can vary. increment the number of last protocol),add:type == PT_PUMA ||*********************************************************3) PUMA is ready! Go to puma folder and type "./run". It will clear all and run a didaticsimulation. If everything is ok, you can see the results calling NAM: "nam puma.nam"ENJOY!and.. yes, you can contact me: sidney@dsc.ufcg.edu.br
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -