networking - Network simulator - reading packets from file -
i ask if possible add packet file .pcap or .txt (packet statistic) ns input. example, if want insert packets device interface. possible ns2 / ns3?
thank you
yes, possible ns2.. not sure ns3.. in order in ns2, need enable 'emulation' in ns2. emulate ns2 -- 1. in terminal.. switch root mode 2. move directory 'ns-2.35' in ns2 installation. 3. run 'make nse' 4. run './configure' , emulation activated in ns2. in tcl file 1. create tap agent 'set tap1 [new agent/tap]'. 2. crate network object ' set nob [new network/pcap/file]; 3. provide path pcap file like' $nob open readonly real/xplico_youtube_mail.pcap' file located in ns-2.35 folder in given path. 4. in tap agent, provide network agent network.. $tap1 network $nob $ns attach-agent $node_(0) $tap1; 5. connect tap other node.. , done.
Comments
Post a Comment