LAB3-2 - Network application and Scenarios using Mininet Create Custom topology using PDF

Title LAB3-2 - Network application and Scenarios using Mininet Create Custom topology using
Author Amir Khan
Course Wireless Mobile and Multimedia Netorking
Institution University of Hertfordshire
Pages 4
File Size 330 KB
File Type PDF
Total Downloads 92
Total Views 145

Summary

Network application and Scenarios using Mininet Create Custom topology using Mininet Create a VLAN and test its function across a Netowrk...


Description

7COM1030 MULTIMEDIA AND MULTICASTING NETWORKING LAB WORKSHEET 3 - NETWORK APPLICATIONS AND SCENARIOS USING MININET OBJECTIVES • • •

To understand the functions catered by Mininet to emulate different network topologies using a python script Get familiarize with the Mininet API and create custom topologies. Create a VLAN and test its function across a network.

TASK1 Obtain the python script from the link below, https://drive.google.com/file/d/16IxESPSmQ-e5eLEIVqsDPVGt25tEQLAX/view?usp=sharing Move this file to the designated folder, 7COM1030/Lab3 1) Now Let's write a python script that will launch a network in the linear topology with 5 switches and 2 hosts connected at each end. Lab03ex01.py has a skeleton of python program. Work out on your own from last week's knowledge on python language. Fill in the script on your own.

H1S1S2S3S4S5H5 2) Run the topology with the following command on your terminal

$ sudo mn --custom Lab03EX1.py --topo mytopo 3) Confirm you have the linear topology and Ping all hosts. 4) Now let's change the topology to a 3 Tier tree. Copy the first python file and create a new file named Lab03Ex02.py, you can also issue the command $ nano Lab03Ex02.py on your terminal to create a new python file. Or use the following command on your terminal.

$ cp Lab03EX1.py /home/s7com1030/7COM1030/Lab3/Lab03Ex02.py 5) Upon completion of the script, feed the topology to Mininet-API and draw the topology in your workbook illustrating the relevant information and show to your instructor.

$ cp Lab03EX1.py /home/s7com1030/7COM1030/Lab3/Lab03Ex02.py This is the end of your Task 1 of Lab 3

TASK 2 Let's create VLANs and assign IP addresses and MAC addresses to hosts in the tree. List of IP addresses are as follows along with MAC addresses of them. First open the skeleton python program named Lab03Ex03.py or download it from the link below and fill in the parts which says TODO to create a similar tree as above but now we will assign IP addresses and assign VLANs. You can download the python script from the below link. https://drive.google.com/file/d/1h_qLj_ay3Rpvj5JhNc7WTu3U63YnWg4a/view?usp=sharing

Name MAC IP Address VLAN H1 00:00:00:00:00:01 192.168.1.1/24 200 H2 00:00:00:00:00:02 192.168.1.2/24 300 H3 00:00:00:00:00:03 192.168.1.3/24 200 H4 00:00:00:00:00:04 192.168.1.4/24 300 H5 00:00:00:00:00:05 192.168.1.5/24 200 H6 00:00:00:00:00:06 192.168.1.6/24 300 H7 00:00:00:00:00:07 192.168.1.7/24 200 H8 00:00:00:00:00:08 192.168.1.8/24 300 Add the following parameters to the addHost command to make them follow the commands you require.

1. Upon completion run the script and launch Mininet. Confirm your VLAN functionality with the following command. H1 ifconfig

2. Now let's confirm the functionality of the VLAN. mininet > pingall *** Ping: testing ping reachability h1 -> X h3 X h5 X h7 X h2 -> X X h4 X h6 X h8 h3 -> h1 X X h5 X h7 X h4 -> X h2 X X h6 X h8 h5 -> h1 X h3 X X h7 X h6 -> X h2 X h4 X X h8 h7 -> h1 X h3 X h5 X X h8 -> X h2 X h4 X h6 X *** Results: 57% dropped (24/56 received) 3. Create an ICMP Stream between H1 and H7 and capture a screenshot. 4. Draw the topology in your lab work book marking the relevant information such as IP, MAC, VLANs etc. 5. Show the functionality of the VLANs to your instructor and explain how this has affected the network from the original Tree topology we executed.

TASK 3 Let’s create realistic links in the network by adding delay, loss and bandwidth To your existing python script, we need to create realistic links. As we have amended the details of the Hosts, we can now amend the configurations of the links. As a standard on a high performing network wired with copper cables there’s a negligible delay of 3ms. Let’s add that delay with a slight loss of 5% and an increased bandwidth. Command to the above is as follows.

Iterate the above changes in your diagram of your lab work book. Create an ICMP stream between h1 and h7, Have you noticed a difference from the screenshot of earlier? Please write down the differentiated results in your workbook and justify your answer. Show your answers to one of the instructors.

Next week we’ll be looking at TCP, UDP and VoIP applications over the network. Your completed Python files should as below.



Lab03Ex3.py...


Similar Free PDFs