How many layers does the TCP/IP stack have?
(for our purposes)
4
What is the first layer called, what 1 thing happens here and what 5 protocols are found here?
The application layer
- This is where applications such as email and web browsers operate
- HTTP, HTTPS, FTP, SMTP, IMAP
What is the second layer called, what 3 things happen here and what 2 protocols are found here?
The transport layer
- Sets up communication between two hosts, agreeing on things like language and packet size
- Protocols use port numbers to track sessions
- Once connection is made, it adds number/sequence, the number of packets and the port number to each packet
- TCP, UDP
What is the third layer called, what 3 things happen here and what 1 protocol is found here?
The internet layer
- Gives address to and packets the information, then routes them across a network
- Gives each packet a source and destination IP address
- Creates a socket (IP address + port)
- IP
What is the fourth layer called and what 4 things happen here. No protocols are found here
The link layer - this is the physical connection between devices
- Network hardware and connection port standards, operating systems and device drivers are here
- Transmission media include twisted pair, copper, fiber and Wi-Fi
- Responsible for adding the source and destination MAC address
- When transmitting data on a WAN, the MAC addresses change every hop on the route
What are the advantages of the TCP/IP stack?
Why do we need a MAC and IP address?
Because when data is transmitted over a LAN, only the link layer is needed (however in practice it is treated as a WAN)
How are web pages fetched over the internet?
How does a DNS request work?