Come funziona internet
Una foto inviata dal telefono non viaggia tutta intera. Viene tagliata in pacchetti che saltano da un router all'altro e vengono rimessi insieme all'altro capo. Sei unità seguono quei pacchetti: che cos'è internet, gli indirizzi IP, l'instradamento, TCP e UDP con le porte, il DNS e tutto quello che succede quando apri una pagina web. Un simulatore di pacchetti ti permette di far perdere pacchetti, tagliare collegamenti e guardare il DNS cercare un nome passo dopo passo.
Cosa imparerai
- Spiegare perché switch e router battono un cavo per ogni coppia
- Leggere un indirizzo IPv4 come quattro byte
- Scegliere tra TCP e UDP in base al compito
- Leggere un nome di dominio come un percorso che scende in un albero
- Dividere un URL in schema, host, percorso, query e frammento
Unità
- 1Che cos'è internet21 pagine24 minSpiegazione7Esplorazione2Problema10Esercizio1
- 2Indirizzi IP22 pagine26 minSpiegazione7Esplorazione3Problema10Esercizio1
- 3Come i pacchetti trovano la strada22 pagine25 minSpiegazione8Esplorazione2Problema10Esercizio1
- 4TCP, UDP e porte19 pagine22 minSpiegazione5Esplorazione2Problema10Esercizio1
- 5DNS: trasformare i nomi in indirizzi21 pagine23 minSpiegazione7Esplorazione2Problema10Esercizio1
- 6Che cosa succede quando apri una pagina web19 pagine22 minSpiegazione5Esplorazione2Problema10Esercizio1
Informazioni sul corso
Una foto inviata dal telefono non viaggia tutta intera. Viene suddivisa in pacchetti che passano da un router all'altro e vengono ricomposti all'arrivo. Nel laboratorio premi Invia e osservi un messaggio diventare quattro pacchetti, numerati da 1 a 4. Possono seguire percorsi diversi attraverso cinque router e arrivare al server in ordine sparso; il server li riordina. Il corso chiarisce subito una distinzione: internet è l'insieme delle reti collegate, il web è un servizio che le usa. Email, videochiamate e giochi usano le stesse reti senza far parte del web.
Le sei unità seguono un pacchetto. Si comincia da che cos'è internet, poi si passa agli indirizzi IP: ogni pacchetto porta un indirizzo di origine e uno di destinazione; il router legge soltanto la destinazione per decidere il passaggio successivo. IPv6 usa 128 bit invece di 32 e offre quindi circa 7,9 × 10²⁸ volte più indirizzi. L'unità sull'instradamento include un pulsante traceroute che invia sonde con TTL crescente per rivelare un router alla volta. Seguono TCP, UDP e porte, il DNS e ciò che accade quando apri una pagina web: per esempio, HTTP/3 usa QUIC, per cui DNS, un viaggio di andata e ritorno per l'handshake e la richiesta formano in tutto tre passaggi.
L'unità sul DNS contiene una breve storia. Prima del DNS, ogni computer di ARPANET conservava una copia di un unico file di testo, HOSTS.TXT, con tutti i nomi degli host e i rispettivi indirizzi, gestito dal Network Information Center dello Stanford Research Institute. Un numero di porta occupa 16 bit, quindi va da 0 a 65 535; quattro numeri insieme identificano una connessione TCP. È così che un server sulla porta 443 può comunicare contemporaneamente con migliaia di browser senza confonderli.
Prima di iniziare
Non servono conoscenze di reti; un simulatore di pacchetti nella pagina mostra ogni passaggio. Indirizzi e numeri di porta sono descritti in bit, quindi Come funzionano i computer aiuta se il binario è nuovo per te, soprattutto per capire perché nessuna parte di un indirizzo IPv4 supera 255.
Mappa dei corsi
Basi del computer e dattilografia · Corsi: 4Fonti di questo corso (27)
- (checked 2026-10-17)
- IETF RFCs (rfc-editor.org): RFC 768 UDP (1980, 8-byte header)
- RFC 791 IPv4 (1981, 32-bit addresses, "does not provide a reliable communication facility", TTL field "measured in units of seconds" but every module must decrease it by at least one, so it is only an upper bound)
- RFC 792 ICMP (Time Exceeded)
- RFC 801 NCP/TCP transition plan (1 January 1983)
- RFC 894 Ethernet (1500-byte payload)
- RFC 1034 and RFC 1035 DNS (1987, HOSTS.TXT kept by SRI-NIC, labels up to 63 octets and names up to 255, TTL in seconds)
- RFC 1122 (127.0.0.0/8 loopback)
- RFC 1918 private addresses (10/8, 172.16/12, 192.168/16)
- RFC 2131 DHCP, RFC 3022 NAT, RFC 3596 AAAA records, RFC 3849 and RFC 5737 documentation addresses, RFC 4271 BGP-4, RFC 4291 IPv6 text form, RFC 6298 TCP retransmission timer (initial RTO 1 second)
- RFC 6335 port ranges (0-1023, 1024-49151, 49152-65535)
- RFC 7766 DNS over TCP, RFC 8200 IPv6 (128-bit addresses, Hop Limit)
- RFC 8446 TLS 1.3 (one round-trip handshake)
- RFC 9000 QUIC and RFC 9114 HTTP/3, RFC 9110 HTTP semantics (status code classes)
- RFC 9293 TCP (three-way handshake, sequence numbers)
- IANA: ip-parameters registry (recommended default TTL 64)
- IPv4 free pool depleted 3 February 2011 (NRO and ARIN announcements)
- Official documentation: MDN Web Docs "How does the Internet work?" (45 cables for 10 computers, switches, routers, MAC and IP addresses, internet and web)
- "What is a URL?", "HTTP response status codes" (developer.mozilla.org)
- Cloudflare Learning Center: "What is DNS?" (four kinds of DNS server, 8 steps of an uncached lookup, browser and OS caches, TTL)
- "What is HTTP/3?" (cloudflare.com/learning)
- Google Chrome Help, "Browse in Incognito mode" (support.google.com/chrome/answer/95464, checked 2026-10-19: Incognito limits what is saved to the device; websites and organisations that manage your network, like your school, employer or internet service provider, may be able to observe your activity)
- Operators and papers: root-servers.org (13 root name servers run by 12 organisations, 2047 instances on 2026-10-17)
- Jacobson and Karels 1988, Congestion Avoidance and Control (loss mostly congestion)
- History blocks only: UCLA Samueli School of Engineering, Internet50 (first ARPANET message "LO", UCLA to SRI, 29 October 1969, 22:30)
- historyofinformation.com and Wikipedia ARPANET (Kline)
- Spiceworks/SRI history (HOSTS.TXT kept by SRI-NIC).
Consultato il: 2026-10-17