Application Layer
Function:
- Contain the actual message the application want to send
- Protocols in this layer define how application communicate between two devices
Application:
- HTTP: Provide Web document request and transfer
- SMTP: For e-mail messages transfer
Transport Layer
Function:
- Turn message from application layer into segment, which specifies what application is this message for by specifying the destination port
- Provides delivery service with reliability (TCP) or speed (UDP)
Application:
- TCP
- UDP
Network Layer
Function: Responsible for moving segments from one host to another. It adds headers to segment which turns them into datagrams/packets
Application:
- IP protocols: Specify end systems addresses
- routing protocols: Help decide next stop in intermediate routers
Link Layer
Function: Responsible for moving datagrams from one node to another by wrapping them with specific headers based on the protocol used between two nodes, which we’ll name it a frame
Application:
- Ethernet
- WiFi
Nodes here can be hosts, routers, switches... (all devices connected to a network)
Physical Layer
Function: Link between two nodes can be twisted-pair copper wire, fiber optics… The physical layer is responsible for moving every bit in the frame to the destination node with the given link medium
Application:
- twisted-pair copper wire
- fiber optics