User Tools

Site Tools


assignments-s18:assignment-2-s18:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
assignments-s18:assignment-2-s18:start [2018/02/15 23:07]
hyuncong
assignments-s18:assignment-2-s18:start [2018/02/21 16:40] (current)
hyuncong
Line 35: Line 35:
   - ItemDownload the starter code from:{{ :​assignments-s18:​assignment-2-s18:​assign2.tgz |assign2}} <​code>​   - ItemDownload the starter code from:{{ :​assignments-s18:​assignment-2-s18:​assign2.tgz |assign2}} <​code>​
 cd ~ cd ~
-wget  http://​pages.cs.wisc.edu/​~suman/​courses/​wiki/​lib/​exe/​fetch.php?​media=assignments-s18:​assignment-2-s18:​assign2.tgz+wget  http://​pages.cs.wisc.edu/​~suman/​courses/​wiki/​lib/​exe/​fetch.php?​media=assignments-s18:​assignment-2-s18:​assign2.tgz -O assign2.tgz
 tar xzvf assign2.tgz tar xzvf assign2.tgz
 </​code>​ </​code>​
Line 180: Line 180:
  
 ===== Forwarding Packets ===== ===== Forwarding Packets =====
-You should complete the **handlePacket(...)** method in the **edu.wisc.cs.sdn.vnet.sw.Switch** class to send a received packet out the appropriate interface(s) of the switch. You can use the getSourceMAC() and **getDestinationMAC()** methods in the **net.floodlightcontroller.packet.Ethernet** class to determine the source and destination MAC addresses of the received packet.+You should complete the **handlePacket(...)** method in the **edu.wisc.cs.sdn.vnet.sw.Switch** class to send a received packet out the appropriate ​**interface(s)** of the switch. You can use the **getSourceMAC()** and **getDestinationMAC()** methods in the **net.floodlightcontroller.packet.Ethernet** class to determine the source and destination MAC addresses of the received packet.
  
  
-You should call the **sendPacket(...)** function inherited from the **edu.wisc.cs.sdn.vnet.Device** class to send a packet out a specific interface. To broadcast/​flood a packet, you can call this method multiple times with a different interface specified each time. The interfaces variable inherited from the Device class contains all interfaces on the switch. The interfaces on a switch only have names; they do not have MAC addresses, IP addresses, or subnet masks.+You should call the **sendPacket(...)** function inherited from the **edu.wisc.cs.sdn.vnet.Device** class to send a packet out a specific interface. To broadcast/​flood a packet, you can call this method multiple times with a different interface specified each time. The **interfaces** variable inherited from the Device class contains all interfaces on the switch. The interfaces on a switch only have names; they do not have MAC addresses, IP addresses, or subnet masks.
  
  
assignments-s18/assignment-2-s18/start.1518757633.txt.gz ยท Last modified: 2018/02/15 23:07 by hyuncong