Client-Server Approach
Peer to Peer
Primary-secondary computing
Perfermance
Often those 2 factors are competing objective
Correctness
Security
Circuit switching - traditional telephony
Packet switching (Assumes we have computers)
Break the message you want to send into reasonably smaller packages
Dump all the small packages to the nearest network
Internet Protocol Suite
The "peace treaty" that computers can talk to each other and no one company's computer can control the whole web
Documented Specified in in Internet RFCs (Request For Comments)
Protocols: networks :: APIs : programs
IPv4 - 32bits addresses
specify what a packet look like
an IPv4 packet has:
header includes:
senders' IP,
recipient's IP,
protocol number,
TTL (hop count → count how many nodes that you have been in ) avoids infinite loops
Checksum(16 bits) can catch transmission errors (OR all the 16 bit content)
contents