Professional Documents
Culture Documents
Cantrills Bible Book
Cantrills Bible Book
● OSI MODEL
Layer 1 - Physical: transmission and reception of RAW BIT STREAMS, pcs connected
physically
Layer 2 - Data link, two pcs linked, hub example and the problems that it brings.
Layer 3 - Network → addition of Switch to our equation. Pcs now have distinct addresses in a
network, we can now send data specifically to the pc we want.
● Ip addresses have 32 bits, 4 octects
● DHCP - Dynamic Host Configuration P
● Subnet masks → allows a HOST to determine if an ip address it needs to communicate with is
local or remote. Therefore, it determines if the host will need to use a gateway or local.
● Route Tables → Router compares packet destination IP and Route table for matching
destinations. If the destination matches with more than one rule, it will always goes to the
more specific ones. /0 is least specific and 0/32 is the most specific.
● Address Resolution Protocol (ARP) → Proccess that occurs when data is being moved
from layer 3 to layer 2. The laptop has the local IP, destination IP and subnet mask, so it can
calculate if the destination is on the local network. If it is, it broadcasts to all Fs looking for
the destination machine. The machine will then respond to the broadcaster with its MAC
Address. The source machine will then use the MAC Address to encapsulate the data packet
in a frame which has the MAC address of the destination machine.
○ So, after encapsulation, the data is moved through L1 via DST MAC to the
destination. Destination machine L1 receives and hands the raw DATA to the
L2 which detects it matches the destination MAC address and then strips the
data and pass the payload to L3 which uses it for whatever task.
○ If the machines are on different networks, it uses ARP to find the MAC
address of the Router. The router receives the frame, strip it and uses
ARP to check if the packet is destined to some machine in this network
or send it to another.
● the problems with L3: No method for channels of communications, just SRC
and DST.
● packets can be delivered out of order.
● Next layers might fix these problems.
■
○ Stateful → Sees just one thing
ANOTHER ONE
ANOTHER ONE
ANOTHER ONE
ANOTHER ONE
ANOTHER ONE
ANOTHER ONE