← Torna alle flashcardQuick Flashcards

Protocolli Applicativi – Flashcards

Guida completa ai protocolli di rete più comuni, porte TCP/UDP, differenze di sicurezza e utilizzo pratico.

25 carte~9 min
Protocolli Applicativi – Flashcards — Qwi
1 / 25

Tutte le flashcard di questa raccolta

1Which protocol is used to transfer web pages?
Risposta

HTTP

HTTP stands for HyperText Transfer Protocol and is the foundation of data communication for the World Wide Web.
2HTTPS uses {{SSL}} or TLS to encrypt data.
Risposta

SSL

3HTTP encrypts the communications between client and server.
Risposta

False

HTTP transmits data in clear text, making it vulnerable to eavesdropping.
4What are the main differences between HTTP and HTTPS?
Risposta

HTTP → no encryption | HTTPS → SSL/TLS encryption

HTTPS adds a security layer (SSL/TLS) to the standard HTTP protocol, encrypting data and providing authentication.
5Which TCP port does HTTPS use?
Risposta

443

Port 443 is the default port for secure HTTP traffic (HTTPS).
6DNS translates {{names}} to IP addresses.
Risposta

names

7A Fully Qualified Domain Name (FQDN) includes only the host name without the domain.
Risposta

False

An FQDN contains both the host name and the full domain hierarchy.
8How do SMTP, POP3, and IMAP differ in basic function?
Risposta

SMTP → send email | POP3 → download & delete | IMAP → download & keep

SMTP handles sending, POP3 retrieves messages and removes them from the server, while IMAP retrieves messages but can leave them on the server.
9Which TCP port does SMTP use?
Risposta

25

Port 25 is the standard port for SMTP traffic.
10STARTTLS can encrypt connections on port {{110}}.
Risposta

110

11POP3 over SSL uses port 995.
Risposta

True

Port 995 is assigned to POP3S, the secure version of POP3.
12Which protocol provides secure file transfer using SSH on port 22?
Risposta

SFTP

SFTP (Secure FTP) runs over SSH and uses port 22 for both control and data.
13SCP uses the same port as SSH, which is {{22}}.
Risposta

22

14FTP transfers data over port 21 for both control and data.
Risposta

False

FTP uses port 21 for control and port 20 for data transfer.
15How do FTP, FTPS, and SFTP differ regarding security?
Risposta

FTP → plain text | FTPS → FTP + SSL | SFTP → SSH file transfer

FTP sends data unencrypted, FTPS adds SSL encryption, and SFTP uses SSH for secure transfer.
16Which protocol uses UDP on port 53?
Risposta

DNS

Domain Name System operates over UDP port 53 for name resolution queries.
17NetBIOS uses UDP ports {{137}} and 138 for its services.
Risposta

137

18Telnet encrypts data before transmission.
Risposta

False

Telnet sends data in clear text, making it vulnerable to sniffing.
19What are the main differences between Telnet and SSH?
Risposta

Telnet → clear text | SSH → encrypted

Telnet provides unencrypted remote command line access, while SSH secures the session with encryption and authentication.
20Which protocol provides remote desktop with a graphical interface?
Risposta

RDP

Remote Desktop Protocol allows users to view and control a remote Windows desktop graphically.
21RDP uses TCP port {{3389}}.
Risposta

3389

22SNMPv3 encrypts data, while SNMPv1 does not.
Risposta

True

SNMPv1 and v2 send data in clear, whereas SNMPv3 adds encryption and authentication.
23Which TCP port does LDAP use?
Risposta

389

Port 389 is the default for LDAP directory services.
24LDAPS uses TCP port {{636}}.
Risposta

636

25What is the difference between an open relay and an authenticated SMTP server?
Risposta

Open relay → no authentication, spam risk | Auth SMTP → requires credentials, reduces abuse

Open relays allow anyone to send mail without verification, leading to spam; authenticated SMTP requires user credentials, limiting misuse.

Introduzione ai protocolli applicativi

I protocolli applicativi costituiscono la base della comunicazione su Internet. Ogni protocollo ha uno scopo specifico, una porta di default e, in molti casi, una variante sicura che aggiunge crittografia. Questa lezione raccoglie le informazioni essenziali per comprendere le funzioni, le differenze e le implicazioni di sicurezza dei protocolli più diffusi.

Protocollo HTTP e la sua versione sicura HTTPS

HTTP (HyperText Transfer Protocol) è il protocollo fondamentale per il trasferimento di pagine web. Viene eseguito sulla porta TCP 80 e trasmette i dati in chiaro, rendendoli vulnerabili a intercettazioni.

Per proteggere le comunicazioni, si utilizza HTTPS, che aggiunge un livello di crittografia basato su SSL/TLS. HTTPS opera sulla porta TCP 443 e garantisce riservatezza e autenticazione.

  • HTTP → nessuna crittografia
  • HTTPS → crittografia SSL/TLS

Dettagli sulla crittografia

Il termine SSL (Secure Sockets Layer) è la versione più vecchia del meccanismo di crittografia, sostituita da TLS (Transport Layer Security) ma ancora spesso citata nei contesti educativi.

Servizi di risoluzione dei nomi: DNS

Il Domain Name System (DNS) traduce i nomi di dominio in indirizzi IP. Utilizza il protocollo UDP sulla porta 53. Senza DNS, gli utenti dovrebbero ricordare gli indirizzi numerici dei server.

Gestione della posta elettronica

La posta elettronica si basa su tre protocolli principali, ciascuno con una funzione distinta:

  • SMTP (Simple Mail Transfer Protocol) → invio di email, porta TCP 25.
  • POP3 (Post Office Protocol version 3) → scarica e cancella i messaggi dal server, porta TCP 110. Con STARTTLS può essere crittografato.
  • IMAP (Internet Message Access Protocol) → scarica i messaggi mantenendoli sul server, consentendo la sincronizzazione tra più dispositivi.

Le versioni sicure di POP3 e SMTP utilizzano SSL/TLS:

  • POP3 over SSL → porta TCP 995 (POP3S).
  • SMTP over SSL/TLS → porta TCP 465 (non presente nella flashcard ma comunemente usata).

Trasferimento file: FTP, FTPS e SFTP

Il trasferimento di file avviene tramite diversi protocolli, differenziati principalmente dal livello di sicurezza:

  • FTP → trasferimento in chiaro, porta di controllo TCP 21 e porta dati TCP 20.
  • FTPS → FTP con aggiunta di SSL/TLS per la crittografia.
  • SFTP (Secure FTP) → trasferimento sicuro basato su SSH, utilizza la porta TCP 22 sia per il controllo che per i dati.

Altri protocolli di rete

SSH e SCP

SSH (Secure Shell) fornisce una shell remota crittografata sulla porta TCP 22. SCP (Secure Copy) utilizza la stessa porta per trasferire file in modo sicuro.

Telnet vs SSH

Telnet invia dati in chiaro, rendendolo vulnerabile a sniffing, mentre SSH offre una connessione completamente crittografata.

Remote Desktop Protocol (RDP)

RDP consente l'accesso grafico a un desktop Windows remoto. Utilizza la porta TCP 3389.

SNMP

Il Simple Network Management Protocol gestisce dispositivi di rete. SNMPv1 e v2 trasmettono dati in chiaro, mentre SNMPv3 aggiunge crittografia e autenticazione.

LDAP e LDAPS

LDAP (Lightweight Directory Access Protocol) opera sulla porta TCP 389. La sua variante sicura, LDAPS, utilizza la porta TCP 636.

NetBIOS

NetBIOS fornisce servizi di condivisione di file e stampa su reti Windows. Utilizza le porte UDP 137 e 138.

Concetti di sicurezza avanzata

Un open relay SMTP permette l'invio di email senza autenticazione, favorendo lo spam. Un SMTP autenticato richiede credenziali, riducendo gli abusi.

Le versioni sicure dei protocolli (HTTPS, FTPS, SFTP, SSH, SNMPv3, LDAPS) sono fondamentali per proteggere la riservatezza e l'integrità dei dati in transito.

Riepilogo delle porte più comuni

ProtocolloPorta (TCP/UDP)Sicurezza
HTTP80 (TCP)Chiaro
HTTPS443 (TCP)SSL/TLS
DNS53 (UDP)Chiaro (opzionale DNSSEC)
SMTP25 (TCP)Chiaro (STARTTLS opzionale)
POP3110 (TCP)Chiaro (STARTTLS opzionale)
POP3S995 (TCP)SSL/TLS
FTP (controllo)21 (TCP)Chiaro
FTP (dati)20 (TCP)Chiaro
FTPS21/990 (TCP)SSL/TLS
SFTP/SSH22 (TCP)SSH
RDP3389 (TCP)Crittografato (TLS)
LDAP389 (TCP)Chiaro
LDAPS636 (TCP)SSL/TLS
NetBIOS137/138 (UDP)Chiaro

Conoscere questi protocolli, le loro porte e le differenze di sicurezza è essenziale per amministratori di rete, sviluppatori e chiunque lavori con infrastrutture IT.