lynring24 blog

Application Layer

Tags:

Applications are what people use. It could be a mail service, Internet and etc.
Application layer protocols support these network application, sending message in right format, order and other operation needed to handle messages.

Architecture

A. Client and Server

  Server waits for client to call and ask for the service and client starts the connection(exchane message).
  Since server has to handle multiple calls from N-clients, it doesn't have a scalability.
  

B. Peer to peer (P2P)

  The end system itself is a client and a server. Hosts are logically connected.
  New peer becomes new server so p2p architectures have scalability.

Process and Socket

Process is an operation(or could be a program) run on host.

if client == server (on same host)  process is inter-leaved or else the message from process will be send by socket.

Socket controls how process being sent with parameters, located in higher level than transport level.
Once the message passes through the socket, remain works are up to OS.

Protocol and Transport service

Protocol of this level hanles

  1. message type = (request or response)
  2. check the syntax of message
  3. semantics of message
  4. when and how to send/receive

Transport service should consider

  1. reliability = duplicaiont x / error x / right order
  2. delay(timing)
  3. throughput = required minimum bandwidth
  4. security

Since TCP doesn’t support security, SSL(Secure Socket Layer) is used. SSL is a Socket API above transport layer.

TCP / UDP

TCP UDP
reliability O X
flow control O X
congestion control O X
connection-oriented O X
timing X X
throughput X X
security X X