Changes between Version 45 and Version 46 of GENIExperimenter/Tutorials/ClickExample/Execute


Ignore:
Timestamp:
07/16/14 14:41:11 (5 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/ClickExample/Execute

    v45 v46  
    282282The '''left''' router configuration is much simpler. 
    283283
    284 
    285284{{{
    286285#!div style="background: #ffd; border: 3px ridge; width: 685px;"
     
    318317
    319318Let's watch how the packets travel through the network.
     319
     320{{{
     321#!div style="background: #ffd; border: 3px ridge; width: 685px;"
     322
    320323  i. In a local terminal type:
    321   {{{
     324{{{
    322325ssh -A top "tail -f /tmp/click.log"
    323326}}}
    324   i. Go to your window for '''hostA''', where your '''nc''' command is still running. Type a message into this window. You should see a log message in three of your four router windows. In this example, you might see:
     327  i. Go to your window for '''hostA''', where your '''nc''' command is still running. Type a message into this window. You should see a log message in three of your four router windows.
    325328  i. In the local terminal you will see:
    326329  {{{
     
    329332  This log entry says that the '''top''' router received a packet from '''hostA''', modified it, and sent it out to the '''right''' router. If the entry started with '''outL''', that would indicate that it sent the packet out to the '''left''' router. Let's look a bit at the start of the packet (the first 24 bytes are logged). It starts with an Ethernet header. The first six bytes are the MAC address of the destination interface, that's 00:04:23:B7:19:2E, the MAC address of '''eth4''' on '''right'''. The next six bytes are the MAC address of the source interface, 00:04:23:B7:1C:E0, or '''eth4''' on '''top'''. Next comes your ether type, 0x7744. The remaining bytes, "416c 69636557 61734865" are the start of the first field in your new protocol, "!AliceWasHe" in ASCII.
    330333  i. Try typing a few different lines to hostA. You should see some packets routed to the left and some to the right. The routing decision is based on the '''route :: Classifier(27/01%01,-);''' entry in the '''top''' router configuration. Here, the router is looking at the low-order bit of the checksum on the initial IP packet (now at byte position 27 with the addition of the new sixteen byte field at the start of the header). Packets with odd checksums go to the left; those with even checksums go right.
     334}}}
    331335
    332336= [wiki:GENIExperimenter/Tutorials/ClickExample/Finish Next: Teardown] =