AK/Wri/Packets Going Where

Packets Going Where

1 min read

Computer Networks!!!

The professor drew boxes and arrows. Source, destination, router, switch. I understood the picture but not the numbers at first and we also used an application called wireshark to capture the packets.

Client sends HTTP request
  -> TCP segment
  -> IP packet
  -> Ethernet frame
  -> wire

We calculated subnet things in lab:

PYTHON
# wrong subnet attempt - i used wrong mask once
ip = "192.168.1.10"
mask = "255.255.255.0"
parts = ip.split(".")
# thought network address was just first two parts. wrong.
network = ".".join(parts[:2]) + ".0.0"

The TA corrected my mask math. Network address is not guesswork.

Ping and traceroute labs were the parts I enjoyed. You type a command and something actually happens on the screen.

Bash
ping google.com
tracert google.com   # windows lab pc