15 Input Packets -------------------------------- Input packet 1: First the packet coming in: Router 1, Input Port A5 VERS = 4, HLEN = 5, ToS = 0, TL = 235 Ident = 43690, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 63, PROT = 17, CheckS = 0 SourceAddr = 172.17.240.15 DestAddr = 172.16.0.5 Number of data bytes = 215 Source Network = 5 Do we reach the long if ? R = 1; S = 5; inport = 5; Aoutport = 1 outport1N[S] = 5 Dest Network = 1: 172.16.0.0/20 Output Port A1, direct delivery to host on network I. Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 235 Ident = 43690, Flags = 0, FragOffset = 0 TTL = 62, PROT = 17, CheckS = 0 SourceAddr = 172.17.240.15 DestAddr = 172.16.0.5 DataField = 215 bytes --------------------------- Input packet 2: First the packet coming in: Router 1, Input Port A4 VERS = 4, HLEN = 5, ToS = 0, TL = 361 Ident = 27184, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 31, PROT = 17, CheckS = 0 SourceAddr = 172.17.204.55 DestAddr = 172.18.241.54 Number of data bytes = 341 Source Network = 4 Do we reach the long if ? R = 1; S = 4; inport = 4; Aoutport = 2 outport1N[S] = 4 Dest Network = 11: 172.18.241.0/24 Output Port A2, forward to A18 on R8. Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 361 Ident = 27184, Flags = 0, FragOffset = 0 TTL = 30, PROT = 17, CheckS = 0 SourceAddr = 172.17.204.55 DestAddr = 172.18.241.54 DataField = 341 bytes --------------------------- Input packet 3: First the packet coming in: Router 1, Input Port A3 VERS = 4, HLEN = 5, ToS = 0, TL = 321 Ident = 21845, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 1, PROT = 17, CheckS = 0 SourceAddr = 172.19.0.72 DestAddr = 172.18.248.255 Number of data bytes = 301 Source Network = 14 TTL expired, drop packet, send ICMP --------------------------- Input packet 4: First the packet coming in: Router 1, Input Port A2 VERS = 4, HLEN = 5, ToS = 0, TL = 1400 Ident = 37449, Flags = 2, DF = 1, More = 0, FragOffset = 0 TTL = 42, PROT = 6, CheckS = 0 SourceAddr = 172.18.241.63 DestAddr = 172.17.240.64 Number of data bytes = 1380 Source Network = 11 DF set and packet too large. Drop packet and send ICMP --------------------------- Input packet 5: First the packet coming in: Router 1, Input Port A3 VERS = 4, HLEN = 11, ToS = 0, TL = 9260 Ident = 50115, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 15, PROT = 6, CheckS = 0 SourceAddr = 128.235.0.9 DestAddr = 172.17.0.15 Option 1 = 1, No-OP; Option 2 = 137, Strict Source Route; L = 23, P = 12 extra Address 1 = 172.19.0.14 extra Address 2 = 172.17.0.14 extra Address 3 = 172.17.204.14 extra Address 4 = 172.18.248.14 extra Address 5 = 172.18.244.7 Number of data bytes = 9216 Source Network = 15 Do we reach the long if ? R = 1; S = 15; inport = 3; Aoutport = 4 outport1N[S] = 3 Strict Source Route, OK thus far, Next Network = 4: 172.17.204.0/24 Output Port A4, direct delivery to host on network IV. Next address had better be a router Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 11, ToS = 0, TL = 4460 Ident = 50115, Flags = 1, FragOffset = 0 TTL = 14, PROT = 6, CheckS = 0 SourceAddr = 128.235.0.9 DestAddr = 172.17.204.14 Option1 = 1, Option2 = 137, L = 23, P = 16 extra Address 1 = 172.19.0.14 extra Address 2 = 172.17.0.14 extra Address 3 = 172.17.204.15 extra Address 4 = 172.18.248.14 extra Address 5 = 172.18.244.7 DataField = 4416 bytes Fragment 2 VERS = 4, HLEN = 11, ToS = 0, TL = 4460 Ident = 50115, Flags = 1, FragOffset = 552 TTL = 14, PROT = 6, CheckS = 0 SourceAddr = 128.235.0.9 DestAddr = 172.17.204.14 Option1 = 1, Option2 = 137, L = 23, P = 16 extra Address 1 = 172.19.0.14 extra Address 2 = 172.17.0.14 extra Address 3 = 172.17.204.15 extra Address 4 = 172.18.248.14 extra Address 5 = 172.18.244.7 DataField = 4416 bytes Fragment 3 VERS = 4, HLEN = 11, ToS = 0, TL = 428 Ident = 50115, Flags = 0, FragOffset = 1104 TTL = 14, PROT = 6, CheckS = 0 SourceAddr = 128.235.0.9 DestAddr = 172.17.204.14 Option1 = 1, Option2 = 137, L = 23, P = 16 extra Address 1 = 172.19.0.14 extra Address 2 = 172.17.0.14 extra Address 3 = 172.17.204.15 extra Address 4 = 172.18.248.14 extra Address 5 = 172.18.244.7 DataField = 384 bytes --------------------------- Input packet 6: First the packet coming in: Router 1, Input Port A3 VERS = 4, HLEN = 5, ToS = 0, TL = 9920 Ident = 39321, Flags = 1, DF = 0, More = 1, FragOffset = 541 TTL = 64, PROT = 17, CheckS = 0 SourceAddr = 172.19.63.61 DestAddr = 172.18.240.62 Number of data bytes = 9900 Source Network = 13 Do we reach the long if ? R = 1; S = 13; inport = 3; Aoutport = 1 outport1N[S] = 3 Dest Network = 6: 172.18.240.0/24 Output Port A1, forward to A6 on R2. Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 4348 Ident = 39321, Flags = 1, FragOffset = 541 TTL = 63, PROT = 17, CheckS = 0 SourceAddr = 172.19.63.61 DestAddr = 172.18.240.62 DataField = 4328 bytes Fragment 2 VERS = 4, HLEN = 5, ToS = 0, TL = 4348 Ident = 39321, Flags = 1, FragOffset = 1082 TTL = 63, PROT = 17, CheckS = 0 SourceAddr = 172.19.63.61 DestAddr = 172.18.240.62 DataField = 4328 bytes Fragment 3 VERS = 4, HLEN = 5, ToS = 0, TL = 1264 Ident = 39321, Flags = 1, FragOffset = 1623 TTL = 63, PROT = 17, CheckS = 0 SourceAddr = 172.19.63.61 DestAddr = 172.18.240.62 DataField = 1244 bytes --------------------------- Input packet 7: First the packet coming in: Router 7, Input Port A17 VERS = 4, HLEN = 5, ToS = 0, TL = 251 Ident = 12345, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 63, PROT = 6, CheckS = 0 SourceAddr = 128.243.34.234 DestAddr = 172.18.244.59 Number of data bytes = 231 Source Network = 15 Do we reach the long if ? R = 7; S = 15; inport = 17; Aoutport = 16 outport1N[S] = 3 Dest Network = 8: 172.18.244.0/24 Output Port A16, forward to A15 on R6. Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 251 Ident = 12345, Flags = 0, FragOffset = 0 TTL = 62, PROT = 6, CheckS = 0 SourceAddr = 128.243.34.234 DestAddr = 172.18.244.59 DataField = 231 bytes --------------------------- Input packet 8: First the packet coming in: Router 7, Input Port A16 VERS = 4, HLEN = 5, ToS = 0, TL = 255 Ident = 54321, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 31, PROT = 6, CheckS = 0 SourceAddr = 172.18.248.60 DestAddr = 172.10.31.255 Number of data bytes = 235 Source Network = 7 Do we reach the long if ? R = 7; S = 7; inport = 16; Aoutport = 0 outport1N[S] = 4 unknown network = 14: 172.0.0.0/8 drop packet, send ICMP ``Network Unknown''. --------------------------- Input packet 9: First the packet coming in: Router 7, Input Port A16 VERS = 4, HLEN = 5, ToS = 0, TL = 219 Ident = 43690, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 31, PROT = 6, CheckS = 0 SourceAddr = 172.18.248.60 DestAddr = 128.243.33.233 Number of data bytes = 199 Source Network = 7 Do we reach the long if ? R = 7; S = 7; inport = 16; Aoutport = 17 outport1N[S] = 4 Dest Network = 15: 0.0.0.0/0 Output Port A17, forward to NJIT router Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 219 Ident = 43690, Flags = 0, FragOffset = 0 TTL = 30, PROT = 6, CheckS = 0 SourceAddr = 172.18.248.60 DestAddr = 128.243.33.233 DataField = 199 bytes --------------------------- Input packet 10: First the packet coming in: Router 1, Input Port A2 VERS = 4, HLEN = 5, ToS = 0, TL = 255 Ident = 23456, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 30, PROT = 17, CheckS = 0 SourceAddr = 172.18.242.42 DestAddr = 128.235.34.158 Number of data bytes = 235 Source Network = 10 Do we reach the long if ? R = 1; S = 10; inport = 2; Aoutport = 3 outport1N[S] = 2 unknown network, use default route 0.0.0.0/0 Output Port A3, forward to A14 on R6 Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 255 Ident = 23456, Flags = 0, FragOffset = 0 TTL = 29, PROT = 17, CheckS = 0 SourceAddr = 172.18.242.42 DestAddr = 128.235.34.158 DataField = 235 bytes --------------------------- Input packet 11: First the packet coming in: Router 1, Input Port A2 VERS = 4, HLEN = 5, ToS = 0, TL = 219 Ident = 43690, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 31, PROT = 6, CheckS = 0 SourceAddr = 172.19.48.48 DestAddr = 172.15.31.255 Number of data bytes = 199 Source Network = 12 Do we reach the long if ? R = 1; S = 12; inport = 2; Aoutport = 3 outport1N[S] = 3 unknown network, use default route 172.0.0.0/8 Output Port A3, forward to A14 on R6 Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 219 Ident = 43690, Flags = 0, FragOffset = 0 TTL = 30, PROT = 6, CheckS = 0 SourceAddr = 172.19.48.48 DestAddr = 172.15.31.255 DataField = 199 bytes --------------------------- Input packet 12: First the packet coming in: Router 1, Input Port A3 VERS = 4, HLEN = 8, ToS = 0, TL = 500 Ident = 43690, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 19, PROT = 6, CheckS = 0 SourceAddr = 172.19.0.60 DestAddr = 172.17.0.15 Option 1 = 1, No-OP; Option 2 = 137, Strict Source Route; L = 11, P = 8 extra Address 1 = 172.17.0.14 extra Address 2 = 172.17.240.55 Number of data bytes = 468 Source Network = 14 Do we reach the long if ? R = 1; S = 14; inport = 3; Aoutport = 5 outport1N[S] = 3 Strict Source Route, OK thus far, Next Network = 5: 172.17.240.0/24 Output Port A5, direct delivery to host on network V. Next address can be either host or router Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 8, ToS = 0, TL = 500 Ident = 43690, Flags = 0, FragOffset = 0 TTL = 18, PROT = 6, CheckS = 0 SourceAddr = 172.19.0.60 DestAddr = 172.17.240.55 Option1 = 1, Option2 = 137, L = 11, P = 12 extra Address 1 = 172.17.0.14 extra Address 2 = 172.17.240.15 DataField = 468 bytes --------------------------- Input packet 13: First the packet coming in: Router 1, Input Port A3 VERS = 4, HLEN = 5, ToS = 0, TL = 2020 Ident = 43690, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 31, PROT = 6, CheckS = 0 SourceAddr = 172.17.5.155 DestAddr = 255.255.255.255 Number of data bytes = 2000 Source Network = 3 Limited Broadcast, to higher level software of Router R1. --------------------------- Input packet 14: First the packet coming in: Router 1, Input Port A1 VERS = 4, HLEN = 5, ToS = 0, TL = 219 Ident = 43690, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 31, PROT = 6, CheckS = 0 SourceAddr = 172.16.5.102 DestAddr = 172.18.240.102 Number of data bytes = 199 Source Network = 1 Do we reach the long if ? R = 1; S = 1; inport = 1; Aoutport = 1 outport1N[S] = 1 inport == outport AND source directly reachable through that port: send ICMP redirect AND send packet. Dest Network = 6: 172.18.240.0/24 Output Port A1, forward to A6 on R2. Next the packet(s) going out: Fragment 1 VERS = 4, HLEN = 5, ToS = 0, TL = 219 Ident = 43690, Flags = 0, FragOffset = 0 TTL = 30, PROT = 6, CheckS = 0 SourceAddr = 172.16.5.102 DestAddr = 172.18.240.102 DataField = 199 bytes --------------------------- Input packet 15: First the packet coming in: Router 1, Input Port A3 VERS = 4, HLEN = 8, ToS = 0, TL = 650 Ident = 43690, Flags = 0, DF = 0, More = 0, FragOffset = 0 TTL = 27, PROT = 6, CheckS = 0 SourceAddr = 172.18.248.60 DestAddr = 172.16.204.15 Option 1 = 1, No-OP; Option 2 = 137, Strict Source Route; L = 11, P = 8 extra Address 1 = 172.17.204.14 extra Address 2 = 172.16.195.61 Number of data bytes = 618 Strict Source Route and destination address is not incoming interface: drop packet, send ICMP error message ---------------------------