


























































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!



























































Lezione 1- A Brief History of Telecommunications (Una breve storia delle telecomunicazioni) Origins: optical communication Humans always tried to overcome distance in communication. Early systems: ○ Beacon systems and signal fires (es. Iliade : torce accese come segnali). ○ Semaphore towers (inizio 1800): torri con bracci mobili per trasmettere messaggi visivi. Traduzione: All’inizio si usavano segnali ottici (fuochi, torri semaforiche). Telegraph (1800s) ● Move from optical → electrical signals (less affected by weather). ● 1833: Gauss builds the first electrical telegraph. ● 1897: Marconi invents the wireless telegraph (radio). Traduzione: Si passa dall’ottico all’elettrico: prima il telegrafo via cavo, poi quello senza fili di Marconi. Telephone (1876) ● Invented by Alexander Graham Bell. Allowed voice transmission over wires. But → it was circuit-based (each call needed a dedicated physical connection). Traduzione: Il telefono trasmetteva voce, ma con connessioni dedicate (circuiti). 4️⃣ Early computer networks (1960s) First computers were big and expensive → in universities and research centers. Idea: connect computers to share resources. Traduzione: Negli anni ‘60 nascono le prime reti di calcolatori nei centri di ricerca. 5️⃣ Key dates in networking ● 1964: Leonard Kleinrock → proves packet switching works well. ● 1967: Lawrence Roberts → project to interconnect computers with IMPs (Interface Message Processors). ● 1969: ARPANET (funded by US DoD) → first 4 nodes: UCLA, UCSB, Stanford Research Institute, Utah. 👉 Traduzione: Nasce ARPANET, la “nonna” di Internet. 6 From ARPANET to Internet
● 1970: ALOHANET (wireless campus network in Hawaii). ● 1972: Cerf & Kahn propose TCP protocol. ● 1977: ARPANET + ALOHANET + Packet Radio network → ARPA Internet. TCP becomes TCP/IP. ● 1983: Birth of DNS (Domain Name System). ● 1989: Birth of the World Wide Web (Tim Berners-Lee). ● 1995: Internet becomes commercial. Traduzione: Negli anni ’70-’80 si sviluppano TCP/IP e DNS; nel 1989 nasce il Web; dal 1995 Internet diventa commerciale. 7️⃣ Modern Internet ● 1990s–2000s: PCs, mobile phones, WiFi. ● 21st century: billions of devices, IoT, smartphones, streaming (YouTube, Netflix…). Traduzione: Oggi Internet è ovunque: computer, cellulari, sensori, video in streaming. Basic definitions - (Definizioni di base delle reti di telecomunicazioni) 1 Basic communication model Un sistema di telecomunicazione è composto da: ● Source (Sorgente): produce i dati da inviare. ● Transmitter (Trasmettitore): converte i dati in un segnale. ● Channel (Canale): mezzo di trasmissione (cavo, fibra, aria…). ● Receiver (Ricevitore): riconverte il segnale in dati. ● Destination (Destinazione): utilizza i dati ricevuti. Traduzione semplificata: Dati → Trasmettitore → Segnale → Canale → Ricevitore → Dati ricevuti. 2️⃣ Are transmitted and received data identical? ● In teoria: sì. ● In pratica: No, perché ci sono disturbi (noise) → il ricevitore può ricevere dati leggermente diversi. ● Serve quindi il controllo degli errori. Traduzione: I dati ricevuti non sono sempre identici a quelli trasmessi. 3️⃣ Protocols To communicate, devices need rules = protocols. A protocol must be: ○ Unambiguous (nessuna ambiguità). ○ Complete (definisce cosa fare in ogni situazione). ○ Shared (tutti i partecipanti devono conoscerlo).
● Gli ISP stessi sono collegati tra loro tramite NAPs → IANA is responsible for global coordination of the addressing systems 4️⃣ Physical access to the Internet Per accedere a Internet bisogna essere fisicamente connessi a un ISP tramite una WAN. Possibili tecnologie di connessione: ● Fiber optic networks ● Cellular networks (3G, 4G, 5G, …) ● Satellite networks ● Analog phone networks (DSL, dial-up) L’Italia ha anche GARR, un consorzio che connette le università e i centri di ricerca. GARR is a consortium of public universities and research institutes that provides connectivity to campuses (including Padova) 5️⃣ NAPs (Network Access Points) I NAPs are private institutions that provide connectivity between ISPs - not between individual users! → sono istituzioni private che offrono connettività tra ISP (non tra utenti). ● In Italia → MIX (Milan Internet eXchange) : il più grande punto di interconnessione nazionale. What is MIX? MIX is the biggest Internet Exchange Point (IXP) in Italy. It is a place where Internet providers (ISPs) and content providers connect to exchange data. The goal is to make Internet traffic in Italy faster and cheaper, without sending all data abroad. What does MIX do? ● Helps ISPs exchange data directly. ● Reduces delay (latency) and costs. ● Makes the Internet in Italy work better and grow. What MIX is NOT ● ❌ Not an ISP → it does not give Internet access to people. ● ❌ Does not publish websites or online content. ● ❌ Does not sell hosting or cloud services. Statistics ● MIX handles a huge amount of Internet traffic every day. ● Traffic trends are public on their official website: mix-it.net/statistiche. ● Graphs clearly show the continuous growth of data exchanged in Italy.
lezione 2 - Layering Part : 2 there are 2 different types of communications: ➔ Communication between humans When two people talk, communication is natural and adaptive. Example: ○ A: Hi! ○ B: Hi! ○ A: What time is it? ○ B: It’s time to go home!
The rules are not strict: we adapt to the situation, use body language, tone, etc. Our brain also does many complex tasks automatically (making sounds, forming words, creating sentences). ➔ Communication between computers Computers do not understand context. They need step-by-step instructions : ○ Build the message ○ Send it to the right device ○ Convert it into electrical/optical signals ○ Handle noise ○ Translate signals back to bits ○ Give bits to the right application ○ Show the message to the user Example of computer communication: ● connection request ● connection reply ● GET https://www.google.it ● ● ACK
Data moves through all the layers. ● Logical communication: each layer talks to the same layer on the other computer. ● Physical communication: the data actually goes through all the layers, one by one. Example: Layer N on sender ↔ Layer N on receiver (logical). But to send, it must pass through N-1, N-2, … down to Physical, and then up again on the receiver. PDUs and SDUs ● SDU (Service Data Unit): the data that comes from the higher layer. ● PCI (Protocol Control Information): extra information needed by the layer (like addresses, checks). ● PDU (Protocol Data Unit): SDU + PCI = the full packet at that layer. Important: the PDU of layer N+1 becomes the SDU of layer N. Encapsulation and decapsulation ● Encapsulation: when sending, each layer adds its header (PCI) to the data from the layer above. ● Decapsulation: when receiving, each layer removes its own header before passing data up. So: ● Layer N+1 → data becomes part of Layer N’s SDU. ● The upper layer doesn’t see the headers of lower layers (abstraction). IP over Avian Carriers An April Fools’ joke (RFC 1149, year 1990). Idea: use pigeons to carry Internet packets. In 2001, it was really tested: 9 packets in 2 hours! Funny note: “encapsulation in hawks has been known to occur” → meaning hawks sometimes ate the pigeons, and the packets were destroyed. Part : 3 - The TCP/IP stack Application Layer (L7) This is the highest layer , close to the user. ● It manages communication between applications (web, email, Zoom, streaming).
● It translates data between the program and the network. ● It can do: ○ Compression (make data smaller), ○ Encryption (protect data), ○ Decompression/Decryption on the receiver side. Example protocols: HTTP, FTP, email, Zoom. Transport Layer (L4) Creates a virtual link between two computers. Applications use it as if they had a direct connection. Two main protocols: ○ TCP: reliable, makes sure data arrives in order and without errors. ■ Pro: safe, no loss ■ Con: slower (more delay). ○ UDP: simple, faster, but no guarantees. ■ Pro: speed ■ Con: some data may be lost. Uses ports to separate different applications. ○ Example: port 80 = web, port 443 = HTTPS. ○ There are 65,535 ports. Network Layer (L3) Moves data from one computer to another (host to host). ● Chooses the best path (routing). ● Not reliable: packets can be lost. ● Uses IP addresses to identify computers: ○ Must be unique (no duplicates). ○ Must be universal (valid everywhere on the Internet). A computer can have many IP addresses (WiFi, 5G, etc.). Data Link Layer (L2) Moves data between two directly connected devices (single hop). Two sublayers: ○ MAC: controls access to the medium, avoids collisions. ○ LLC: controls errors and flow at local level.
Used in the Internet. The message is cut into small packets (datagrams). Each packet has a destination address. Packets can travel through different paths to reach the same destination. The network is store-and- forward: each node receives, stores, and then sends the packet to the next device. Advantages: ○ No need to set up a connection first. ○ More efficient. Switching and Addresses Packets contain: ○ Source address = sender. ○ Destination address = receiver. Switching devices use a switching table: ○ Table = “destination address → output port”. Different packets may follow different paths. Types of Switching Devices
○ Static (set manually). ○ Dynamic (learn automatically from traffic). ● Dynamic: ○ Switch looks at source MAC → learns which device is on which port. ○ Uses destination MAC → decides output port. ● Much more efficient than a hub.
3. Router (Network Layer, L3) Works at 3 layers: Physical, Data Link, Network. Reads: ○ MAC addresses (local delivery). ○ IP addresses (global delivery). Uses routing tables: ○ Can be static (set manually). ○ Or dynamic (learn automatically with routing protocols). Role: connects different networks together → creates an internetwork. Example: your home WiFi router connects your local LAN to the Interne t. Switching Devices Cheat Sheet A Hub works only at the physical layer (Layer 1). ○ It does not isolate traffic → everything sent by one device is copied to all other devices. ○ It does not use addresses (neither MAC nor IP). ○ It only connects devices that are in the same local network. A Switch works at the data link layer (Layer 2) (and also uses the physical layer). ○ It isolates traffic → it sends data only to the correct destination. ○ It uses MAC addresses to know where to send data. ○ It connects devices in the same local network. A Router works at the network layer (Layer 3) (and also uses data link + physical layers). ○ It also isolates traffic, like a switch. ○ But instead of MAC addresses, it uses IP addresses. ○ It can connect different networks together (for example, your home network with the Internet).
A. True B. False The application knows which transport layer protocol is used A. True B. False The application knows which data link/medium access layer protocol is used A. True B. False A switching table... ● Records the destination addresses and the corresponding forwarding output port ● Records the source address and the corresponding input port ● Records the source address and the corresponding forwarding output port Think about at what happens when the switching table is already filled in and you want to access it to obtain information Which of these is not a switching device? ● Hub ● Modem ● Router ● Switch
The Physical Layer is the first layer of the OSI/TCP-IP model. Its job is simple but fundamental: turn 0s and 1s into physical signals that can travel through a medium (cable, fiber, radio waves). At the receiver, it turns the signals back into bits. Signals: Analog vs Digital ● Analog signals → continuous, infinite possible values (e.g., your voice, music). ● Digital signals → discrete, finite set of values (0 or 1).
Computers speak digital , but the world is analog → we need conversion. Bitrate vs Channel Capacity ● Bitrate (R): how many bits the source wants to transmit per second [bit/s]. ● Capacity (C): maximum speed the channel can support without losing data. Rule: R≤CR≤C. If bitrate is higher than capacity → errors, data loss. Be careful: ● Capacity = maximum bit/s ● Bandwidth = frequency range in Hz The Fourier transform All modern communications rely on the Fourier transform, developed by Joseph Fourier in the Napoleonic era. The Fourier transform allows us to think of any signal as a sum of sine waves with different frequencies Any signal can be represented as a sum of sine waves (Fourier transform). Sine waves are characterized by: ○ Amplitude (A): maximum height ○ Frequency (f): oscillations per second (Hz) ○ Period (T): one cycle time (T=1/fT=1/f) This lets us use different frequencies for different technologies (e.g., FM radio, WiFi, 5G). The Frequency Domain When we look at a signal, there are two ways to represent it:
1. Time domain The signal is shown as it changes over time (like a waveform on an oscilloscope). Example: an audio signal → you see the vibrations (up and down). 2. Frequency domain Instead of time, we represent the frequencies that make up the signal. This is obtained using the Fourier Transform: it decomposes any signal into a combination of sine waves. Each sine wave has a frequency, amplitude, and phase. Example: Your voice is a mix of frequencies (low pitch, high pitch). In the frequency domain, we see which frequencies are present and how strong they are.
Digital-to-Digital Conversion (Line Coding) Each bit is represented directly by a signal element. Example: ○ NRZ (Non-Return to Zero): ■ 1 = positive voltage ■ 0 = negative voltage ● Advantages: simple, efficient. ● Problem: long sequences of 0s or 1s → synchronization issues. Analog-to-Digital Conversion (ADC) Sometimes the source data is analog (voice, music, images). We need to convert it into digital form: Steps:
ADC is the process of turning a continuous (analog) signal (like voice, music, temperature) into discrete digital data (bits) that a computer can process and transmit. It has three main steps: 1️⃣ Sampling The analog signal is measured at regular intervals of time. The result is a sequence of samples (points). According to the Nyquist theorem: Sampling frequency fsfs must be at least 2× the highest frequency in the signal. Example: Human voice ≈ 4 kHz → fs≥8fs≥8 kHz (telephone uses 8 kHz). Think of it like taking a photo of the signal many times per second. 2️⃣ Quantization Each sample (which could have any value) must be mapped to the nearest level in a finite set. Example: If you have 8 possible levels → you can only approximate the real value to one of those 8. The more levels you use → the more precise the signal, but also the more bits required. This step introduces quantization noise (small errors). 3️⃣ Encoding Each quantized value is represented by a binary code (bits). ● Example: ○ 8 levels = 2323 → need 3 bits per sample. ○ If you sample at 8 kHz, with 3 bits per sample → total = 24 kb/s. Now the analog signal is fully transformed into a bitstream. Example: Human Voice ● Voice frequency range: ~300 Hz – 3400 Hz ● Sampling: at least 8 kHz ● Quantization: 256 levels (needs 8 bits per sample) ● Encoding: each sample → 8 bits ● Bitrate: 8000×8=648000×8=64 kb/s (classic telephone PCM standard).
○ 2-PAM → two points on a line (low, high). ○ 16-QAM → 16 points on a grid (amplitude + phase). Used to visualize modulation efficiency (how many bits per symbol). Constellations are directly connected to digital modulation (like PAM, QAM). Analog Modulation This is the older method: carrying information by modifying an analog wave. Examples: ○ AM (Amplitude Modulation) → change amplitude (radio AM). ○ FM (Frequency Modulation) → change frequency (radio FM). ○ PM (Phase Modulation) → change phase. Used in radio, TV broadcasting, telephony before digital. Analog modulation is the ancestor of digital modulation. Encoding vs Modulation ● Encoding (line coding) = turning bits into a digital signal for short- range / direct transmission (digital → digital). Example: in Ethernet copper cables, bits are sent as voltage pulses. ● Modulation = using an analog carrier to send bits over long-distance or wireless channels (digital → analog). Example: WiFi, 4G, 5G all use modulation (QAM, OFDM, etc.). Encoding is used in wired systems (short range), modulation in wireless/long distance. Router vs Modem ● Router: directs packets (Network layer) ● Modem: does modulation/demodulation (digital ↔ analog) At home, they are often combined into one box. Part 3 - Transmission Media Transmission Medium The transmission medium is the physical channel that carries the signal from transmitter to receiver. It can be: ○ Guided (wired): the signal is contained in a physical path (copper cable, optical fiber).
○ Unguided (wireless): the signal propagates freely through the air (radio waves, infrared, satellite). 👉 Without a medium, the signal cannot travel. Transmission Media (types) → Wired (guided)