Lecture notes

Lecture materials

Lecture contents

  • Introduction to Networks
  • Understanding the Internet
  • Application and Services
  • Developing for the Web

Introduction to Networks

  • Communication networks β†’ to exchange data and information

    • Data β†’ database of values
    • Information β†’ what is extracted from processed data
  • Shannon’s Communication Model β†’ Devised by Claude Shannon in 1948

  • Classification of networks by extension

  • Communication channels β†’ medium for information transmission

    • Wired channels β†’ wires or cables
      • Pros β†’ Shileded, dependable and secure
      • Cons β†’ costly, limited mobility and easy to damage
    • Wireless channels
      • Used means β†’ Radio signals, microwave
      • Radio Frequency β†’ Sent by transceivers through antennas
      • Wireless devices and transceivers β†’ send and receive data and include antennas
  • Security in wired channels β†’ Wired connections are secure

  • Bandwidth in communication channels

    • Bandwidth β†’ transmission capacity
    • Broadband β†’ at least 25 Mbps
    • Narrowband β†’ Slower than 25 Mbps
  • Topology of Networks β†’ structure and layout of network components

  • Network nodes

  • Devices as Network Nodes

    • Router β†’ controls data flow, gateway, communication between multiple networks
    • Modem β†’ converts signals for communication channels
    • Switch β†’ communication within a single network

Introduction to the internet

  • Internet β†’ global system of computers connected together
  • Birth of the internet β†’ 1957 project at Stanford to connect computing machines at a distance as a part of the ARPA project. This later expanded to connect all universities in the US and include multiple services.
  • Client-Server Architecture

Uniform Resource Locator

  • Protocol β†’ Rules for the information
  • Domain name β†’ human readable, gets converted to an IP Address via a Domain Name Server
  • IP Address β†’ Computer readable unique address for a machine in a network
  • Hierarchy β†’ each byte of the address gets more specific
Link to original

  • Challenges of the internet
    • How does the receiving computer interpret the response
    • How to communicate across multiple operating systems
    • how to ensure all information was transferred
    • how to handle multiple requests and responses to the same router
    • How do routers know where to send information

TCP/IP Protocol

  • Defines rules for sending and receiving information between devices
  • First developed by the US Department of Defense, now used widely
  • Layers of the protocol:
    1. Network Layer β†’ Captures the physical aspects of data transmission and hardware related protocols.
    2. Internet Layer β†’ Looks after the logical transmission of data. Defines an IP Address for each device connected to the network.
    3. Transport Layer β†’ Responsible for end-to-end communication and handles error-free transfers (TCP and UDP protocols). Some data has higher importance than other and is thus handled differently (e.g. bank info)
    4. Application Layer β†’ Where the server defines networking preferences and safety (SSL)

Application Layer Protocols

  • Hypertext Transfer Protocol β†’ for web browsing, defines how web browsers and web servers communicate
    • 200s β†’ all good
    • 400s β†’ client errors
    • 500s β†’ server errors
  • Languages: HTML, CSS, JavaScript

Transport Layer Protocols

  • Responsible for end-to-end communication and data integrtiy
  • Handles data segmentation, sequencing, error correction and flow control
  • Transmission Control Protocol β†’ ensures reliable communication, confirms data receipt and retransmits lost data
  • User Datagram Protocol β†’ Faster but less reliable, suitable for real-time application and video-streaming

Internet Protocols & IP Addresses

  • Devices connected to the internet need to adhere to the IP protocol

IP Address

  • The ISP provides the IP Addresses β†’ 4 byte (4 * 8 bits = 32 bits) address
    • IPv4 and IPv6 standards
  • Static IP β†’ IP Address does not change (e.g. for web services)
  • Dynamic IP β†’ IP addresses change frequently (e.g. phone, laptop and personal devices)
  • Private IP β†’ Valid only within a local network (unique within the network)
  • Public IP β†’ Accessible anywhere on the internet (assigned to router)

  • Format: XX.XX.XX.XX
  • Hierarchy β†’ First byte corresponds to the larger network, then the following is more and more specific
  • IPv6 β†’ Expanding to 6bytes instead of only 4 bytes (but lacking infrastructure)
Link to original

Domain names and DNS

  • Domain name β†’ easy to remember
    • Top-level domains β†’ .it, .com, .org, .nl
  • Domain Name System β†’ associates domain names with the corresponding IP Addresses

Network Layer

  • Handles the physical aspect of communication
  • Specifies and defines cable types, signal standards and data rates
  • Ethernet β†’ wired connection with twisted-pair or coaxial cables
  • Wi-Fi β†’ standard for wireless connections, using radio frequency tech

Internet Governance and infrastructure

  • Internet Corporation for Assigned Names and Numbers (ICANN) β†’ Supervises internet
  • ISP (Internet Service Providers) β†’ Maintain the infrastructure
  • Tier 1 ISP networks form the backbone of the internet (around 16 globally)
  • Tier 2 Service Providers (e.g. Ziggo, Vodafone, KPN)

Hardware for Computer Networks

  • Router β†’ forwards packets and helps in allocation and deallocation of Private IP addresses
    • Gateway β†’ each router connects one network to another
  • Wireless Access Point β†’ Connected to a router, allow wireless devices to participate in the network
  • Content Distribution Network (CDN) β†’ Used in handling high traffic
    • Redistribution β†’ redirects requests and responses through routers to avoid traffic
    • Caching β†’ saves frequently requested resources
    • Load balancing β†’ stores resources across multiple servers to manage load

Distributed Systems

  • Aim at solving the high expenses of memory and CPU usage of certain processes
  • Linking β€œcheaper” computers into a bigger machine β†’ each smaller machine solves or stores part of the problem
  • Challenges β†’ Computer crashes

Exam information

All the content after this is irrelevant for the examination

Application and Services

  • Client-Server Model β†’
    • Server β†’ Runs on a server to cater to requests from clients
      • Web Servers
      • EMail Servers
      • Game Servers
      • Realtime Comm. Servers
      • Application Server
    • Client β†’ Limited process, makes requests to the servers
  • Databases for Information Storage

Exam style questions

  • What does error 404 mean?
  • Why do we need standardisation to make the internet work?
  • What does the application/transport/internet/network layer do?

Key takeaways and questions


Lecture slides