Esittely latautuu. Ole hyvä ja odota

Esittely latautuu. Ole hyvä ja odota

TIEA322 Tietoliikenneprotokollat Ari Viinikainen

Samankaltaiset esitykset


Esitys aiheesta: "TIEA322 Tietoliikenneprotokollat Ari Viinikainen"— Esityksen transkriptio:

1 TIEA322 Tietoliikenneprotokollat Ari Viinikainen
Ns-3 simulaattori TIEA322 Tietoliikenneprotokollat Ari Viinikainen

2 Ns-3 rakenne Node Application Net Device Channel Topology Helpers
NodeContainer Node Verkkolaite Application Sovellus, joka generoi liikennettä Net Device Verkkokortti Channel Fyysinen siirtotie Topology Helpers Avustajia verkko-asetusten ja verkkojen määrittämiseen Node Application UdpEchoClientApplication UdpEchoClientHelper Ipv4AddressHelper InternetStackHelper NetDeviceContainer PointToPointHelper Net Device PointToPointNetDevice Channel PointToPointChannel

3 Yksinkertainen topologia
NodeContainer nodes; nodes.Create (2);

4 Yksinkertainen topologia
PointToPointHelper pointToPoint; pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps")); pointToPoint.SetChannelAttribute ("Delay", StringValue (“2ms")); Verkkokortti ja ajurit Verkkokortti ja ajurit Fyysinen kerros Fyysinen kerros Fyysinen kanava

5 Yksinkertainen topologia
NetDeviceContainer devices; devices = pointToPoint.Install (nodes); Verkkokortti ja ajurit Verkkokortti ja ajurit Fyysinen kerros Fyysinen kerros Fyysinen kanava

6 Yksinkertainen topologia
InternetStackHelper stack; stack.Install (nodes); TCP/IP protokollapino TCP/IP protokollapino Verkkokortti ja ajurit Verkkokortti ja ajurit Fyysinen kerros Fyysinen kerros Fyysinen kanava

7 Yksinkertainen topologia
Ipv4AddressHelper address; address.SetBase (" ", " "); Ipv4InterfaceContainer interfaces = address.Assign (devices); IP osoite ja aliverkko IP osoite ja aliverkko TCP/IP protokollapino TCP/IP protokollapino Verkkokortti ja ajurit Verkkokortti ja ajurit Fyysinen kerros Fyysinen kerros Fyysinen kanava

8 Yksinkertainen topologia
UdpEchoServerHelper echoServer (9); ApplicationContainer serverApps = echoServer.Install (nodes.Get (1)); serverApps.Start (Seconds (1.0)); serverApps.Stop (Seconds (10.0)); IP osoite ja aliverkko IP osoite ja aliverkko TCP/IP protokollapino TCP/IP protokollapino Verkkokortti ja ajurit Verkkokortti ja ajurit Fyysinen kerros Fyysinen kerros Fyysinen kanava

9 Yksinkertainen topologia
UdpEchoClientHelper echoClient (interfaces.GetAddress (1), 9); echoClient.SetAttribute ("MaxPackets", UintegerValue (1)); echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0))); echoClient.SetAttribute ("PacketSize", UintegerValue (1024)); ApplicationContainer clientApps = echoClient.Install (nodes.Get (0)); clientApps.Start (Seconds (2.0)); clientApps.Stop (Seconds (10.0)); UdpEchoServerHelper echoServer (9); ApplicationContainer serverApps = echoServer.Install (nodes.Get (1)); serverApps.Start (Seconds (1.0)); serverApps.Stop (Seconds (10.0)); IP osoite ja aliverkko IP osoite ja aliverkko TCP/IP protokollapino TCP/IP protokollapino Verkkokortti ja ajurit Verkkokortti ja ajurit Fyysinen kerros Fyysinen kerros Fyysinen kanava

10 Yksinkertainen topologia
UdpEchoServerHelper echoServer (9); ApplicationContainer serverApps = echoServer.Install (nodes.Get (1)); serverApps.Start (Seconds (1.0)); serverApps.Stop (Seconds (10.0)); UdpEchoClientHelper echoClient (interfaces.GetAddress (1), 9); echoClient.SetAttribute ("MaxPackets", UintegerValue (1)); echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.0))); echoClient.SetAttribute ("PacketSize", UintegerValue (1024)); ApplicationContainer clientApps = echoClient.Install (nodes.Get (0)); clientApps.Start (Seconds (2.0)); clientApps.Stop (Seconds (10.0)); IP osoite ja aliverkko IP osoite ja aliverkko TCP/IP protokollapino TCP/IP protokollapino Verkkokortti ja ajurit Verkkokortti ja ajurit Fyysinen kerros Fyysinen kerros Fyysinen kanava


Lataa ppt "TIEA322 Tietoliikenneprotokollat Ari Viinikainen"

Samankaltaiset esitykset


Iklan oleh Google