Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2014 ResiliNets, ITTC, University of Kansas | 3 * Copyright (c) 2014 ResiliNets, ITTC, University of Kansas |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 { | 80 { |
81 std::string bottleneckBandwidth = "5Mbps"; | 81 std::string bottleneckBandwidth = "5Mbps"; |
82 std::string bottleneckDelay = "5ms"; | 82 std::string bottleneckDelay = "5ms"; |
83 std::string accessBandwidth = "100Mbps"; | 83 std::string accessBandwidth = "100Mbps"; |
84 std::string accessDelay = "0.1ms"; | 84 std::string accessDelay = "0.1ms"; |
85 | 85 |
86 std::string queueDiscType = "PfifoFast"; //PfifoFast or CoDel | 86 std::string queueDiscType = "PfifoFast"; //PfifoFast or CoDel |
87 uint32_t queueDiscSize = 1000; //in packets | 87 uint32_t queueDiscSize = 1000; //in packets |
88 uint32_t queueSize = 10; //in packets | 88 uint32_t queueSize = 10; //in packets |
89 uint32_t pktSize = 1458; //in bytes. 1458 to prevent fragments | 89 uint32_t pktSize = 1458; //in bytes. 1458 to prevent fragments |
90 float startTime = 0.1; | 90 float startTime = 0.1f; |
91 float simDuration = 60; //in seconds | 91 float simDuration = 60; //in seconds |
Stefano Avallone
2017/12/29 22:56:38
please do not remove the white space, the comment
ammo6818-vandals.uidaho.edu
2017/12/31 05:15:03
restored, removal was a typo.
| |
92 | 92 |
93 bool isPcapEnabled = true; | 93 bool isPcapEnabled = true; |
94 std::string pcapFileName = "pcapFilePfifoFast.pcap"; | 94 std::string pcapFileName = "pcapFilePfifoFast.pcap"; |
95 std::string cwndTrFileName = "cwndPfifoFast.tr"; | 95 std::string cwndTrFileName = "cwndPfifoFast.tr"; |
96 bool logging = false; | 96 bool logging = false; |
97 | 97 |
98 CommandLine cmd; | 98 CommandLine cmd; |
99 cmd.AddValue ("bottleneckBandwidth", "Bottleneck bandwidth", bottleneckBandwid th); | 99 cmd.AddValue ("bottleneckBandwidth", "Bottleneck bandwidth", bottleneckBandwid th); |
100 cmd.AddValue ("bottleneckDelay", "Bottleneck delay", bottleneckDelay); | 100 cmd.AddValue ("bottleneckDelay", "Bottleneck delay", bottleneckDelay); |
101 cmd.AddValue ("accessBandwidth", "Access link bandwidth", accessBandwidth); | 101 cmd.AddValue ("accessBandwidth", "Access link bandwidth", accessBandwidth); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 { | 228 { |
229 accessLink.EnablePcap (pcapFileName,source,true); | 229 accessLink.EnablePcap (pcapFileName,source,true); |
230 } | 230 } |
231 | 231 |
232 Simulator::Stop (Seconds (stopTime)); | 232 Simulator::Stop (Seconds (stopTime)); |
233 Simulator::Run (); | 233 Simulator::Run (); |
234 | 234 |
235 Simulator::Destroy (); | 235 Simulator::Destroy (); |
236 return 0; | 236 return 0; |
237 } | 237 } |
OLD | NEW |