src/flow-monitor/examples/wifi-olsr-flowmon.py
changeset 7291 d39c09dbc3d9
parent 7106 2939fecb7029
child 8966 060dba23e9bb
equal deleted inserted replaced
7290:54af69b941fd 7291:d39c09dbc3d9
   106             
   106             
   107     #internet.EnablePcapAll("wifi-olsr")
   107     #internet.EnablePcapAll("wifi-olsr")
   108     flowmon_helper = ns.flow_monitor.FlowMonitorHelper()
   108     flowmon_helper = ns.flow_monitor.FlowMonitorHelper()
   109     #flowmon_helper.SetMonitorAttribute("StartTime", ns.core.TimeValue(ns.core.Seconds(31)))
   109     #flowmon_helper.SetMonitorAttribute("StartTime", ns.core.TimeValue(ns.core.Seconds(31)))
   110     monitor = flowmon_helper.InstallAll()
   110     monitor = flowmon_helper.InstallAll()
       
   111     monitor = flowmon_helper.GetMonitor()
   111     monitor.SetAttribute("DelayBinWidth", ns.core.DoubleValue(0.001))
   112     monitor.SetAttribute("DelayBinWidth", ns.core.DoubleValue(0.001))
   112     monitor.SetAttribute("JitterBinWidth", ns.core.DoubleValue(0.001))
   113     monitor.SetAttribute("JitterBinWidth", ns.core.DoubleValue(0.001))
   113     monitor.SetAttribute("PacketSizeBinWidth", ns.core.DoubleValue(20))
   114     monitor.SetAttribute("PacketSizeBinWidth", ns.core.DoubleValue(20))
   114 
   115 
   115     ns.core.Simulator.Stop(ns.core.Seconds(44.0))
   116     ns.core.Simulator.Stop(ns.core.Seconds(44.0))