Having trouble answering questions 3-10, can someone please help

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Having trouble answering questions 3-10, can someone please help

Post by answerhappygod »

Having trouble answering questions 3-10, can someone please help
Having Trouble Answering Questions 3 10 Can Someone Please Help 1
Having Trouble Answering Questions 3 10 Can Someone Please Help 1 (50.46 KiB) Viewed 49 times
2 Invoking Mininet using the CLI The first step to start Mininet using the CLI is to start a Linux terminal. 2.1 Invoking Mininet using the default topology Step 1. Use Mobaxterm to log into Mininet. Step 2. To start a minimal topology, enter the command sudo mn at the CLI. mininet@mininet-vm:~$ sudo mn *** Creating network *** Adding controller *** Adding hosts: h1 h2 *** Adding switches: s1 *** Adding links: (hl, sl) (h2, s1) *** Configuring hosts h1 h2 *** Starting controller CO *** Starting 1 switches sl ... *** Starting CLI: mininet> When issuing the sudo mn command, Mininet initializes the topology and launches its command line interface which looks like this: mininet> Step 3. To display the list of Mininet CLI commands and examples on their usage, type the help command in the Mininet CLI:
/ 14 mininet> help Documented commands (type help <topic>): link links + EOF gterm iperfudp nodes dpctl help noecho dump intfs exit iperf net pingall pingallfull px 66.7% For example: mininet> h1 ifconfig You may also send a command to a node using: <node> command {args} mininet> h2 ping h3 should work. pingpair PY pingpairfull quit ports sh source 14 The interpreter automatically substitutes IP addresses for node names when a node is the first arg, so commands like Some character-oriented interactive commands require noecho: mininet noecho h2 vi foo.py However, starting up an xterm/gterm is generally better: mininet> xterm h2 mininet> switch time X xterm Step 4. To display the available nodes, type the command nodes: Question 1: What are the nodes in the topology? Please provide screenshots of your Mininet terminal to support your answer. Step 5. It is useful sometimes to display the links between the devices in Mininet to understand the topology. Issue the command net in the Mininet CLI to see the available links. Question 2: Based on the output of the net command, draw a diagram of the topology. Please provide screenshots of your Mininet terminal to support your answer. Mininet allows you to execute commands at a specific device. To issue a command for a specific node, you must specify the device first, followed by the command. Step 6. Issue the command hi ifconfig. Question 3: How man interfaces does h1 have? For each interface, what is its IP address? Please provide screenshots of your Mininet terminal to support your answer.
Step 1. On the CLI, type xterm h2 to start xterm on h2, "Node: h2"@mininet-vm root@mininet-vm:# wireshark The Wireshark Network Analyzer File Edit View Go Capture Analyze Statistics Telephony Wireless Tools Help and then type wireshark in xterm to start Wireshark o h2. Ignore the error about superuser if you see one. Apply a display filter... <<Ctrl-/> Welcome to Wireshark Capture ...using this filter: Enter a capture filter... h2-etho any Loopback: lo nflog nfqueue usbmonl Cisco remote capture: ciscodump Random packet generator: randpkt RII ⒸSSH remote capture: sshdump UDP Listener remote capture: udpdump__ Ready to load or capture 0 Learn User's Guide Wiki Questions and Answers Mailing Lists You are running Wireshark 2.6.10 (Git v2.6.10 packaged as 2.6.10-1-ubuntu18.04.0). No Packets X All interfaces shown 0 Expression... Profile: Default
Start capturing packets from the h2-eth0 interface. Capturing from h2-eth0 File Edit View Go Capture Analyze Statistics Telephony Wireless Tools Help No. Apply a display filter.... <Ctrl-/> Time Source h2-eth0: <live capture in progress> Destination Protocol Length Info No Packets 1 mininet> h1 python -m SimpleHTTPServer 80 & mininet> h2 wget hi mininet> hi kill python X Expression... + Profile: Default Step 2. On the CLI, type the following commands to start a simple HTTP server on h1, make a request from h2, then shut down the web server. Question 4: Save the captured trace in Wireshark and submit it with your project report. Analyzing the capture trace, what are the ports numbers used by h1 and h2, respectively, for the HTTP connection? Please provide screen shots of your Wireshark window to support your answer. Question 5: h2 should have received an HTML file after running the wget command. Submit it with your project report. Open the HTML file in a browser (in the host system) and describe the HTML file. Please provide screen shots of your browser window to support your answer. Step 3. Stop the emulation by typing exit. If Mininet crashes for some reason, clean it up
The command dan to clean a previous instance of Mininet (e.g., after a crash). is often used on the Linux terminal (not on the Mininet CLI) 3 Building and emulating a network in Mininet using the GUI In this section, you will use the application MiniEdit to deploy a topology. MiniEdit is a simple GUI network editor for Mininet. 3.1 Building the network topology Step 1. Start MiniEdit by typing doininen/examples/miniedit-p MinlEdit will start, as Illustrated below. Sultad ASL Page 8 19 The main buttons are: 1. Select: allows selection/movement of the devices. Pressing Del on the keyboard after selecting the device removes it from the topology. 2. Host: allows addition of a new host to the topology. After clicking this button, click anywhere in the blank canvas to insert a new host. 3. Switch allows addition of a new switch to the topology. After clicking this button, click anywhere in the blank carwas to insert the switch. 4. Link: connects devices in the topology (mainly switches and hosts). After clicking this button, click on a device and drag to the second device to which th link is to be established. 5. Rum: starts the emulation. After designing and configuring the topology, dick
The main buttons are: 1. Select: allows selection/movement of the devices. Pressing Del on the keyboard after selecting the device removes it from the topology. 2. Host: allows addition of a new host to the topology. After clicking this button, click anywhere in the blank canvas to insert a new host. 3. Switch: allows addition of a new switch to the topology. After clicking this button, click anywhere in the blank canvas to insert the switch. 4. Link: connects devices in the topology (mainly switches and hosts). After clicking this button, click on a device and drag to the second device to which the link is to be established. 5. Run: starts the emulation. After designing and configuring the topology, click the run button. 6. Stop: stops the emulation. Step 2. Use MiniEdit to build the following topology. Two hosts and one switch must be deployed. Use the buttons described in the previous step to add and connect devices. File Edit Run Help h1 h2 Page 9
The network and terminals at host h1 and host h2 will be available for testing. root@edwin-pc- Miniais root@adsin-pc- Question 6: What is h2's IP address? (Hint: you can type a command in h2's terminal to find its IP address.) Please provide screenshots of your Mininet terminal to support your answer. Step 3. On host h1's terminal, type the command ping -c 4 plus h2's IP address, which you should have found from the previous question. This command sends 4 packets to test the connectivity between host h1 and host h2, and will generate a report after it finishes. Question 7: Based on the ping results, what is the average rtt (round trip time) between h1 and h2? What is the packet loss ratio between h1 and h2? Please provide screenshots of your Mininet terminal to support your answer. Run Step 4. Stop the emulation by clicking on the Stop button.
Step 4. Stop the emulation by clicking on the Stop button. X Link Details Bandwidth: Run Stop Step 5. MiniEdit supports customizing the link properties. Right click on the link between h1 and s1 and select Properties to open the Link Details window. Change the Delay to 10ms as shown below. OK Delay: 10ms Loss: Max Queue size: Jitter: Speedup: Cancel X Mbit Page 12 % Page Question 8: Repeat the ping command. Based on the new results, what is the average rtt (round trip time) between h1 and h2? Explain the change of the rtt. Please provide screenshots of your Mininet terminal to support your answer.
Step 6. Change the Loss ratio of the link between h1 and s1 to 30% as shown below. X Link Details Bandwidth: Delay: 10ms Loss: 30 Max Queue size: Jitter: Speedup: OK Cancel X Mbit % Page Question 9: Repeat the ping command. Based on the new results, what is the packet loss ratio between h1 and h2? Explain the change of the packet loss ratio. Please provide screenshots of your Mininet terminal to support your answer. 3.4 Saving and loading a Mininet topology It is often useful to save the network topology, particularly when its complexity increases. MiniEdit enables you to save the topology to a file. Question 10: Save your final topology, and submit it with your project report. Step 1. To save your topology, click on File then Save. Provide a name for the topology and save on your machine.
Question 9: Repeat the ping command. Based on the new results, what is the packet loss ratio between h1 and h2? Explain the change of the packet loss ratio. Please provide screenshots of your Mininet terminal to support your answer. Saving and loading a Mininet topology It is often useful to save the network topology, particularly when its complexity increases. MiniEdit enables you to save the topology to a file. 3.4 Step 1. To save your topology, click on File then Save. Provide a name for the topology and save on your machine. Question 10: Save your final topology, and submit it with your project report. Step 2. To load the topology, click on File then Open. Locate the topology file and click on Open. The topology will be loaded again to MiniEdit. Open the topology file that you saved in the previous question to verify that it is saved correctly. This concludes Lab 1. Stop the emulation and then exit out of MiniEdit and Linux terminal.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply