Introduction to networking - Ch.3.0 Application Layer, Principle of network application
Principle of network application
- Http
- FTP
- SMTP / POP / IMAP
- DNS
- Define messages exchanged by applications and actions taken
- Is one "piece" of an application
- Transport-layer service models
- Client-server paradigm 範例
- peer-to-peer paradigm
- web
- instant messaging
- remote login
- p2p file sharing
- multi-user network games
- streaming stored videos
- VoIP
- video conferencing 會議
- ...
- Client-server
- Peer-to-peer(p2p)
- Client-server + p2p
- Always-on
- Permanent IP address
- Server farms for scaling
- communicate with server
- Do not directly communicate with each other
- May have dynamic IP addresses
- no always-on server
- arbitrary end systems directly communicates
- Peers are intermittently connected and change IP addresses
- * Highly scalable 鄺展性 but difficult to manage
- Skype - Central server to find address of remote party
- Instant messaging - central server to presence client detection/location, login
- Client process: Process that initiates communication
- Server process: Process that waits to be contacted
to receive messages, process must have identifier
identifier includes both IP address and port numbers associated 一齊 with process on host.
process sends/receives messages to/from its socket
connection-oriented 連線主要: setup required between client and server processes
- reliable transport between sending and receiving process
- flow control: sender won’t overwhelm receiver
- congestion control: throttle 節流 sender when network overloaded
- does not provide: timing, minimum bandwidth guarantees