Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1TTL = 64 | ATTL = 1 -> 0, discard packet | |
| 2TTL: 5 -> 4 | BA packet with TTL 0 must be discarded, not forwarded. Passing it on would let packets live forever. | |
| 3A packet with TTL 1 is discarded when it reaches the next router, because the TTL hits 0 | CThe packet has just passed through one router, so its TTL dropped by 1 | |
| 4A packet that goes through 3 routers has made 3 hops, so a starting TTL of 10 becomes 7 | Dhops = 3, TTL = 10 - 3 = 7 | |
| 5Router A -> Router B -> Router A -> Router B ... TTL stays 30 | EThe TTL must go down at every hop. If it stayed at 30, a packet stuck in a loop would circle forever. | |
| 6TTL = 0, so forward the packet to the next router | FThe packet can pass through at most 64 routers (hops) before it is discarded |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
TTL — Time to live: a number in a packet that drops by 1 at each router hop. When it reaches 0 the packet is discarded, so a packet stuck in a loop cannot circle forever.ttl = ttl - 1IF ttl = 0 THEN
discard packethops = hops + 1WHILE ttl > 0 DO
forward packet to next router
ttl = ttl - 1ttl = 3
ttl = ttl - 1
PRINT ttl