91 internet.Install (c); |
91 internet.Install (c); |
92 |
92 |
93 // We create the channels first without any IP addressing information |
93 // We create the channels first without any IP addressing information |
94 NS_LOG_INFO ("Create channels."); |
94 NS_LOG_INFO ("Create channels."); |
95 PointToPointHelper p2p; |
95 PointToPointHelper p2p; |
96 p2p.SetDeviceParameter ("DataRate", StringValue ("5Mbps")); |
96 p2p.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); |
97 p2p.SetChannelParameter ("Delay", StringValue ("2ms")); |
97 p2p.SetChannelAttribute ("Delay", StringValue ("2ms")); |
98 NetDeviceContainer nd02 = p2p.Install (n02); |
98 NetDeviceContainer nd02 = p2p.Install (n02); |
99 NetDeviceContainer nd12 = p2p.Install (n12); |
99 NetDeviceContainer nd12 = p2p.Install (n12); |
100 p2p.SetDeviceParameter ("DataRate", StringValue ("1500kbps")); |
100 p2p.SetDeviceAttribute ("DataRate", StringValue ("1500kbps")); |
101 p2p.SetChannelParameter ("Delay", StringValue ("10ms")); |
101 p2p.SetChannelAttribute ("Delay", StringValue ("10ms")); |
102 NetDeviceContainer nd32 = p2p.Install (n32); |
102 NetDeviceContainer nd32 = p2p.Install (n32); |
103 NetDeviceContainer nd34 = p2p.Install (n34); |
103 NetDeviceContainer nd34 = p2p.Install (n34); |
104 |
104 |
105 // Later, we add IP addresses. |
105 // Later, we add IP addresses. |
106 NS_LOG_INFO ("Assign IP Addresses."); |
106 NS_LOG_INFO ("Assign IP Addresses."); |