1. Homepage
  2. Homework
  3. CSE150 Introduciton to Computer Networks - Lab 1: Installing and Using Mininet
This question has been solved

CSE150 Introduciton to Computer Networks - Lab 1: Installing and Using Mininet

Engage in a Conversation
USUC SANTA CRUZUCSCCSE150Introduciton to Computer NetworksInstalling and Using MininetTracerouteWireshark

Lab 1 100 points
CourseNana.COM

Part A: Installing and Using Mininet CourseNana.COM

Parts 1 and 2: Software Installation CourseNana.COM

Part 1: Installing Virtualbox CourseNana.COM

The first thing required to use Mininet is a Virtual Machine (VM) manager to run our Mininet VM. VirtualBox is free and open source and can be downloaded here. You are free to use kvm, vmware, or xen if you are familiar with those hypervisors - however, the TAs will not support them, so if you choose this route you are on your own for support. CourseNana.COM

Common Problems Installing VirtualBox: CourseNana.COM

-  Did you download the correct version? (32-bit vs 64-bit) CourseNana.COM

-  Is your computer really old? It might not be able to use virtualization -- talk to the TA. CourseNana.COM

-  Make sure that virtualization is enabled in your BIOS. CourseNana.COM

-  Do you have a M1 chip? -- check out the special instructions pdf and talk to a TA. CourseNana.COM

Part 2: Installing Mininet
Once VirtualBox is installed, you can install the Mininet VM. For this class, please use the Mininet VM available at this link. (You must use your UCSC Google account to get access.) CourseNana.COM

Using a GUI: CourseNana.COM

● Once the download is complete, open VirtualBox and select File>Import Appliance... Navigate to the OVA file you downloaded. CourseNana.COM

●  When the mininet VM has been successfully imported, start the VM. CourseNana.COM

●  You should be presented with a GUI. Helpful tips: CourseNana.COM

1.     Chromium is a web browser. You can use this to go to the class webpage and copy/paste example code from the PDFs. CourseNana.COM

2.     You can use your Google Drive or VirtualBox shared folders to copy files to/from the VM. The TAs or student tutor can help you with this in lab. CourseNana.COM

Part 3: Experimenting with Mininet CourseNana.COM

A walkthrough can be found on the Mininet page. In this lab you are expected to spend some time familiarizing yourself with Mininet. First and foremost, here’s some background and information on what Mininet is and why we are using it (we used to have the labs using actual routers and switches; since then we have migrated to virtualized labs). CourseNana.COM

How does Mininet Work? Mininet works simply by creating a virtual network on your computer/laptop. It accomplishes this task by creating host namespaces (h1, h2, etc) and connecting them through virtual interfaces. So when we run the command ping between the linux namespaces h1 and h2, the ping will run from h1’s namespace through a virtual interface pair created for h1 and h2, before it reaches h2. If h1 and h2 are connected through a switch as shown in the Python code in the Mininet walkthrough, the ping will transit multiple virtual interface pairs. CourseNana.COM

1. sudo mn: will start Mininet CourseNana.COM


CourseNana.COM

  1. You can use mn -h or type help after you have run Mininet.
  2. We can see that when we launched Mininet above, a mini-network was created.
    1. The net command shows that h1 indicates host 1 has one network interface eth0, which is

connected to the switch on interface eth1 (on the output line: h1 h1-eth0:s1-eth1). There is also host 2 (h2), switch 1 (s1), and controller 0 (c0). CourseNana.COM

    1. From dump we can also see what IP addresses have been assigned to h1 and h2. We also are given the pids of each process. Processes in Mininet are used for hosts, switches, and controllers. Mininet is composed of processes using Interprocess Communication (IPC) to emulate a network environment.
  1. sudo mn -c: cleans the Mininet system. Use this if you are having errors to start Mininet, in case some problem from a previous execution has persisted.


CourseNana.COM

[50 pts] Part 4: Building Your Own Network in Mininet CourseNana.COM

Running Mininet as a Python script: CourseNana.COM

To make custom topologies, it is useful to be able to refine a topology in a script. The following is an example of using a Python script to launch Mininet with a custom topology. You should use this as a skeleton for getting started on the lab exercises that follow. On the Mininet site, the API Reference will be an excellent resource for figuring out how to run pings or open the command prompt in between the net.start() and net.stop() lines. CourseNana.COM

#!/usr/bin/python CourseNana.COM

from mininet.topo import Topo from mininet.net import Mininet from mininet.cli import CLI from mininet.link import TCLink CourseNana.COM

class MyTopology(Topo): """ CourseNana.COM

A basic topology """
def __init__(self):
CourseNana.COM

Topo.__init__(self) CourseNana.COM

Mininet Exercises: CourseNana.COM

  1. [4 pts] Mininet Commands
    a) What command do you use to find the interfaces of a host?
    b) What are the commands used to test connectivity between hosts and what is the difference between them?
    c) What command do you use to close Mininet?
    d) What command would you use to run Wireshark?
  2. [8 pts] Writing your own topology script
    In Mininet change the default configuration through a Python script to create the topology in Figure 1. Provide a single screenshot with markup showing these connections.
    1. [2 pts] Server1 and Server2 are connected to Switch 4
    2. [2 pts] Alexa, Laptop and SmartTV are connected to Switch 1
    3. [2 pts] desktop1, desktop2, and desktop3 are connected to Switch 3
    4. [2 pts] Switch1, Switch3 and Switch4 are connected to Switch2

Figure1: CourseNana.COM

3. [2 pts] Verify the topology
Run a command that will display the different devices and connections in Figure 1. (Hint: refer to the description given above in the introduction to Mininet) Save a screenshot of the output after running the command and highlight the connections of desktop2 and desktop3.
CourseNana.COM


CourseNana.COM

4. [2 pts] Check the IP Addresses
Run a command that will display the IP address of ALL of the devices in Figure 1. Save a screenshot of the output after running the command and highlight the IP addresses of Server1 and Server2 in the screenshot.
CourseNana.COM

5. [4 pts] Verifying connectivity
Run the pingallfull command in the Mininet command line, and explain what you understand from the output of pingall. Save a screenshot of the output and highlight the row that represents the Laptop pinging all other devices in the network. CourseNana.COM

6. [16 pts] Ping: Wireshark Analysis for topology in Figure 1
Note: Run Wireshark as “sudo wireshark” and choose the “any” interface to capture on. CourseNana.COM

  1. [4 pts] What is ICMP? Use your own words - no copy/paste for credit. (Your textbook has a good small section on ICMP.)
  2. [4 pts] Run Ping from a host to any other host using X ping -c 5 Y (replace X and Y with the names of the source host and destination host respectively). With the help of the display filter, filter to show only ICMP packets, find the packets which were sent and received by Ping and highlight them in your screenshot.
  3. [4 pts] Discuss the 2 types of ICMP messages that Ping is using (as highlighted in (b)) and briefly describe how the Ping application operates using these 2 messages.
  4. [4 pts] In Wireshark, drill into a single ICMP echo request. Mark the request you are examining in your screenshot. What is the total length of the transmission frame? Include a screenshot of the drilldown that shows the details of this packet, particularly its total length.

7. [14pts] Exploring Propagation Delay CourseNana.COM

Make a table highlighting the average RTT reported by ping with respect to the link delay set in Mininet as described in (a)(b)(c) below. A sample table: CourseNana.COM

Make the following changes to the topology in Figure 1: Set all links to have a link delay of 20ms. CourseNana.COM

  1. [3pts] Run Laptop ping -c 5 server1. What is the IP address of server1? Take a screenshot of your results and highlight the average delay and IP addresses of the Laptop and Server.
  2. [3pts] Run SmartTV ping -c 5 Laptop. What could be some reasons that cause a variation in the different ICMP messages sent out in ping? Take a screenshot of your results and highlight the RTT for the first ICMP message sent.

c. [4pts] Run server2 ping -c 5 desktop3. Do you notice any changes? Take a screenshot of your results and highlight the changes if any, and explain in support of your answer. CourseNana.COM

d. [4pts] Run Alexa ping -c 5 Laptop. Do you notice any changes? Explain in support of your answer. Take a screenshot of your results and mark references in your screenshot. CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
US代写,UC SANTA CRUZ代写,UCSC代写,CSE150代写,Introduciton to Computer Networks代写,Installing and Using Mininet代写,Traceroute代写,Wireshark代写,US代编,UC SANTA CRUZ代编,UCSC代编,CSE150代编,Introduciton to Computer Networks代编,Installing and Using Mininet代编,Traceroute代编,Wireshark代编,US代考,UC SANTA CRUZ代考,UCSC代考,CSE150代考,Introduciton to Computer Networks代考,Installing and Using Mininet代考,Traceroute代考,Wireshark代考,UShelp,UC SANTA CRUZhelp,UCSChelp,CSE150help,Introduciton to Computer Networkshelp,Installing and Using Mininethelp,Traceroutehelp,Wiresharkhelp,US作业代写,UC SANTA CRUZ作业代写,UCSC作业代写,CSE150作业代写,Introduciton to Computer Networks作业代写,Installing and Using Mininet作业代写,Traceroute作业代写,Wireshark作业代写,US编程代写,UC SANTA CRUZ编程代写,UCSC编程代写,CSE150编程代写,Introduciton to Computer Networks编程代写,Installing and Using Mininet编程代写,Traceroute编程代写,Wireshark编程代写,USprogramming help,UC SANTA CRUZprogramming help,UCSCprogramming help,CSE150programming help,Introduciton to Computer Networksprogramming help,Installing and Using Mininetprogramming help,Tracerouteprogramming help,Wiresharkprogramming help,USassignment help,UC SANTA CRUZassignment help,UCSCassignment help,CSE150assignment help,Introduciton to Computer Networksassignment help,Installing and Using Mininetassignment help,Tracerouteassignment help,Wiresharkassignment help,USsolution,UC SANTA CRUZsolution,UCSCsolution,CSE150solution,Introduciton to Computer Networkssolution,Installing and Using Mininetsolution,Traceroutesolution,Wiresharksolution,