#computer_network

Some network apps

  • e-mail
  • web
  • text messaging
  • remote login
  • P2P file sharing
  • multi-user network games
  • streaming stored video (YouTube, Hulu, Netflix)
  • voice over IP (e.g., Skype) ^c938ab
  • real - time video conferencing
  • social networking
  • search
  • …

Creating a network app

  • write programs that:
    • run on (different) end systems
    • communicate over network
    • e.g., web server software communicates with browser software
  • no need to write software for network-core devices
    • network-core devices do not run user applications
    • applications on end systems allows for rapid app development, propagation

Application architectures

possible structure of applications:

Processes communicating

  • process: program running clients, within a host servers that initiates communication
    • within same host, two processes communicate using inter-process communication (defined by OS)
    • processes in different hosts communicate by exchanging messages
  • clients, servers

Sockets

  • process end/receives messages to/from its socket
  • socket analogous to door
    • sending process shovers message out door
    • sending process relies on transport infrastructure on other side of door to deliver message to socket at receiving process
    • two sockets involved: one on each side

Addressing processes

  • to receive messages, process must have identifier
  • host device has unique 32-bit IP address
  • identifier includes both IP address and port numbers associated with process on host

An application-layer protocol defines

  • types of messages exchanged
    • e.g. request, response
  • message syntax:
    • what fields in messages & how fields are delineated
  • message semantics
    • meaning of information in fields
  • rules or when and how process send & respond to messages
  • open protocols:
    • define in RFCs, everyone has access to protocol definition
  • allows for interoperability
  • e.g. HTTP, SMTP
  • proprietary protocols:
  • e.g. Skype, Zoom

What transport service does an app need ?

data integrity

  • some apps1 require 100% reliable data transfer
  • other apps2 can tolerate some loss

timing

  • some apps3 require low delay to be "effective"

throughput

  • some apps4 require minimum amount of throughput to be "effective"
  • other apps ("elastic apps") make use of whatever throughput they get

security

  • encryption, data integrity,…

Footnotes

  1. e.g. file transfer, web transactions ↩

  2. e.g. audio ↩

  3. e.g Internet telephony, interactive games ↩

  4. e.g multimedia ↩

Built with LogoFlowershow