Contents:
- Overview
- [Reference Models](#Reference Models)
- DNS
- Services
- Connection
- Protocols
- overview
- provide a way how devices can communicate regardless their architecture
- hypothetical model: OSI model
- practical model: TCP/IP model
- OSI model
- Open System Interface(OSI)
- physical layer
- maintain physical connection
- convert digital to electrical signal
- decide simplex,half duplex or full duplex
- data link layer
- synchronization and error control
- error detection and add error detection bits
- network layer
- route signals through channels
- network controller, decide the route
- divide outgoing message and assemble incoming message
- transport layer
- decide whether transmission should take place
- multiplexing
- guarantee transmission of data from one to another end
- session layer
- manage conversations between two applications
- log on and log off, user identification
- application layer
- provide services
- login and check password, etc
- TCP/IP model
- application layer: TELNET,FTP,SMTP,DN,HTTP,NNTP
- transport layer: TCP/IP,UDP
- Internet layer: IP
- host-to-network layer: ARPANET,LAN,SATNET
- Transmission Control Protocol(TCP)
- reliable and connection oriented
- retransmit unacknowledged bytes
- services
- stream deliver
- sending and receiving buffers
- segmentation
- full duplex
- connection oriented
- reliable service
- Internet Protocol(IP)
- connectionless and unreliable
- no guarantee on successful transmission
- User Datagram Protocol(UDP)
- connectionless and unreliable
- no guarantee on receiving data
- transmit in datagram
- used for application transmitting small data at one time
- File Transfer Protocol(FTP)
- copy files from one host to another
- control process and data transfer process
- control connection and data connection
- port 21 for control connection and port 20 for data connection
- Telnet
- log into remote computer on the internet
- Hyper Text Transfer Protocol(HTTP)
- communication between browser and web server
- HTTP request: request line, header fields, message body
- HTTP response: status line, headers, message body