equal
deleted
inserted
replaced
109 c1.Add (c0.Get (1)); |
109 c1.Add (c0.Get (1)); |
110 c1.Create (1); |
110 c1.Create (1); |
111 |
111 |
112 // We create the channels first without any IP addressing information |
112 // We create the channels first without any IP addressing information |
113 PointToPointHelper p2p; |
113 PointToPointHelper p2p; |
114 p2p.SetChannelParameter ("BitRate", DataRateValue (DataRate(100000))); |
114 p2p.SetDeviceParameter ("DataRate", DataRateValue (DataRate(10000000))); |
115 p2p.SetChannelParameter ("Delay", TimeValue (MilliSeconds(10))); |
115 p2p.SetChannelParameter ("Delay", TimeValue (MilliSeconds(10))); |
116 NetDeviceContainer dev0 = p2p.Install (c0); |
116 NetDeviceContainer dev0 = p2p.Install (c0); |
117 NetDeviceContainer dev1 = p2p.Install (c1); |
117 NetDeviceContainer dev1 = p2p.Install (c1); |
118 |
118 |
119 // add ip/tcp stack to nodes. |
119 // add ip/tcp stack to nodes. |
163 ascii.open ("tcp-large-transfer.tr"); |
163 ascii.open ("tcp-large-transfer.tr"); |
164 PointToPointHelper::EnableAsciiAll (ascii); |
164 PointToPointHelper::EnableAsciiAll (ascii); |
165 |
165 |
166 PointToPointHelper::EnablePcapAll ("tcp-large-transfer"); |
166 PointToPointHelper::EnablePcapAll ("tcp-large-transfer"); |
167 |
167 |
168 Simulator::StopAt (Seconds(100)); |
168 Simulator::Stop (Seconds(1000)); |
169 Simulator::Run (); |
169 Simulator::Run (); |
170 Simulator::Destroy (); |
170 Simulator::Destroy (); |
171 } |
171 } |
172 |
172 |
173 void CloseConnection (Ptr<Socket> localSocket) |
173 void CloseConnection (Ptr<Socket> localSocket) |