SlideShare a Scribd company logo
1 of 31
Download to read offline
Internet e
architetture di
rete
Antonio Prado
https://www.prado.it
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
La ragazza della porta ottanta: HTTP
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
TCP/UDP 80
[Tim_Berners_Lee]
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Tim Berners-Lee, inventore del World Wide Web
[RFC 1630, 1738, 1866, 1945, 2068, 2396, 2616, 3986 ]
URI
URLHTML
HTTP
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Hypertext Transfer Protocol -- HTTP/1.0
[RFC 1945]
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Hypertext Transfer Protocol -- HTTP/1.1
[RFC 2616]
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
RFC 1945
HTTP has been in use by the World-Wide Web
global information initiative since 1990. This
specification reflects common usage of the
protocol referred to as "HTTP/1.0".
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Universal Resource Identifier
URI ASSOLUTO
scheme://hostname[:port]/path
http://www.paperino.it:80/qui/quo/qua
URI RELATIVO
/qui
/qui/quo
/qui/quo/qua
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Uniform Resource Locator
http_URL="http:""//"host[":"port][abs_path]
HTTP message types
HTTP messages consist of requests from client to server and
responses from server to client.
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Il WEB server è un HTTP server
Protocollo a
livello applicativo
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Domanda e Risposta1. Il client fa una domanda
2. Il server risponde
Il protocollo HTTP supporta più scambi domanda/risposta su
una singola sessione TCP
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Domanda e RispostaDomanda HTTP 1.0
Righe di testo (ASCII)
Fine riga con CRLF rn
Prima riga: Request-Line
Request-Line
Intestazioni
Riga vuota
Contenuto
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Metodi nella domandaGET recupera informazioni indicate dalla URI
HEAD recupera meta-informazioni sulla URI
POST invia informazioni alla URI e recupera il risultato
PUT Archivia informazioni nel posto nominato dalla URI
DELETE rimuove l’entità indicata dalla URI
TRACE traccia HTTP inoltrato attraverso proxy, tunnel ecc
OPTIONS determina le capacità del server o le caratteristiche di una risorsa
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Telnet LAB
telnet as59715.net 80
Trying 2a02:cdc5:9715:1:250:56ff:fe97:2298...
Connected to as59715.net.
Escape character is '^]'.
GET / HTTP/1.1
Host: as59715.net
[CRLF]
HTTP/1.1 301 Moved Permanently
Date: Sat, 28 May 2016 04:49:11 GMT
Server: Apache/2.4.20 (FreeBSD) OpenSSL/1.
0.1e-freebsd PHP/5.4.45
Location: https://as59715.net/
Content-Length: 228
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://as59715.net/">here</a>.</p>
</body></html>
Connection closed by foreign host.
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
HTTP server
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
HTTP server LAB
Installa lighttpd
Redhat [e derivati] yum install lighttpd
Debian [e derivati] apt-get install lighttpd
FreeBSD pkg install lighttpd
Localizza e modifica il file lighttpd.conf
Redhat e Debian /etc/lighttpd/lighttpd.conf
FreeBSD /usr/local/etc/lighttpd/lighttpd.conf
Avvia il demone lighttpd
Redhat e Debian systemctl start lighttpd.service
FreeBSD echo ‘lighttpd_enable=YES’ >> /etc/rc.conf && /usr/local/etc/rc.d/lighttpd start
A
B
C
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Installa lighttpd
Redhat [e derivati] yum install lighttpd
Debian [e derivati] apt-get install lighttpd
FreeBSD pkg install lighttpd
HTTP server LAB
A
apt-get install lighttpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
rrdtool apache2-utils
The following NEW packages will be installed:
lighttpd
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/227 kB of archives.
After this operation, 915 kB of additional disk space will be used.
Selecting previously unselected package lighttpd.
(Reading database ... 203113 files and directories currently installed.)
Preparing to unpack .../lighttpd_1.4.33-1+nmu2ubuntu2_amd64.deb ...
Unpacking lighttpd (1.4.33-1+nmu2ubuntu2) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up lighttpd (1.4.33-1+nmu2ubuntu2) ...
* Starting web server lighttpd
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
HTTP server LAB
Localizza e modifica il file lighttpd.conf
Redhat e Debian /etc/lighttpd/lighttpd.conf
FreeBSD /usr/local/etc/lighttpd/lighttpd.conf
server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
B
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
HTTP server LAB
Avvia il demone lighttpd
Redhat e Debian systemctl start lighttpd.service
FreeBSD echo ‘lighttpd_enable=YES’ >> /etc/rc.conf && /usr/local/etc/rc.d/lighttpd start
Verifica che lighttpd stia ascoltando sulla porta TCP 80
netstat -anp|grep lighttpd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3893/lighttpd
C
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET / HTTP/1.1
Host: localhost
Telnet LAB
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: text/html
Accept-Ranges: bytes
ETag: "3446712510"
Last-Modified: Sat, 28 May 2016 03:39:13 GMT
Content-Length: 3568
Date: Sat, 28 May 2016 04:58:07 GMT
Server: lighttpd/1.4.33
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
elinks http://localhost
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
100 Continue
101 Switching Protocols
102 Processing
200 OK
201 Created
202 Accepted
203 Non-authoritative Information
204 No Content
205 Reset Content
206 Partial Content
207 Multi-Status
208 Already Reported
226 IM Used
300 Multiple Choices
301 Moved Permanently
302 Found
303 See Other
304 Not Modified
305 Use Proxy
307 Temporary Redirect
308 Permanent Redirect
1yz Informational
2yz Success
3yz Redirection
HTTP, codici di stato: 1yz, 2yz, 3yz
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
400 Bad Request
401 Unauthorized
402 Payment Required
403 Forbidden
404 Not Found
405 Method Not Allowed
406 Not Acceptable
407 Proxy Authentication Required
408 Request Timeout
409 Conflict
410 Gone
411 Length Required
412 Precondition Failed
413 Payload Too Large
414 Request-URI Too Long
415 Unsupported Media Type
416 Requested Range Not Satisfiable
417 Expectation Failed
418 I'm a teapot
421 Misdirected Request
422 Unprocessable Entity
423 Locked
424 Failed Dependency
HTTP, codici di stato: 4yz
426 Upgrade Required
428 Precondition Required
429 Too Many Requests
431 Request Header Fields Too Large
444 Connection Closed Without Response
451 Unavailable For Legal Reasons
499 Client Closed Request
4yz Client error
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
HTTP, codici di stato: 5yz
5yz Server error
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
506 Variant Also Negotiates
507 Insufficient Storage
508 Loop Detected
510 Not Extended
511 Network Authentication Required
599 Network Connect Timeout Error
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
HTTP over TLS
[RFC 2818]
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
TCP/UDP 443
[Kipp_E_B_Hickman]
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
HTTP/1.1 200 OK
Date: Sun, 29 May 2016 16:27:11 GMT
Server: Apache/2.4.20 (FreeBSD) OpenSSL/1.0.1e-freebsd PHP/5.
4.45
X-Powered-By: PHP/5.4.45
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Transfer-Encoding: chunked
Content-Type: text/html
openssl s_client -connect as59715.net:443
CONNECTED(00000003)
depth=1 /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/CN=as59715.net
i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
1 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
i:/O=Digital Signature Trust Co./CN=DST Root CA X3
---
[...]
GET / HTTP/1.1
Host: as59715.net
[CRLF]
Telnet LAB
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Hypertext Transfer Protocol Version 2 (HTTP/2)[RFC 7540]
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
RFC 7540
HTTP/2 enables a more efficient use of
network resources and a reduced perception of
latency by introducing header field compression
and allowing multiple concurrent exchanges
on the same connectionAntonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
Verificare il supporto di HTTP/2
https://tools.keycdn.com/http2-test
nghttp -vn https://www.prado.it|grep -A 4 NPN
[ 0.068][NPN] server offers:
* h2
* spdy/3.1
* http/1.1
The negotiated protocol: h2
Questions?
Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530

More Related Content

What's hot

Actividad configuración de cisco asa vpn
Actividad configuración de cisco asa vpnActividad configuración de cisco asa vpn
Actividad configuración de cisco asa vpnAndres Ldño
 
OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)
OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)
OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)Denny K
 
Zenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOSZenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOSZenith Networks
 
HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战Jerry Qu
 
Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleFree radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleChanaka Lasantha
 
HTTP/2 Introduction
HTTP/2 IntroductionHTTP/2 Introduction
HTTP/2 IntroductionWalter Liu
 
Open Source Networking with Vyatta
Open Source Networking with VyattaOpen Source Networking with Vyatta
Open Source Networking with VyattaMatthew Turland
 
14 network tools
14 network tools14 network tools
14 network toolsShay Cohen
 
Basics of firewall, ebtables, arptables and iptables
Basics of firewall, ebtables, arptables and iptablesBasics of firewall, ebtables, arptables and iptables
Basics of firewall, ebtables, arptables and iptablesPrzemysław Piotrowski
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer ProtocolPeter R. Egli
 

What's hot (20)

Ftp tftp
Ftp tftpFtp tftp
Ftp tftp
 
#1 (TCPvs. UDP)
#1 (TCPvs. UDP)#1 (TCPvs. UDP)
#1 (TCPvs. UDP)
 
7.protocols 2
7.protocols 27.protocols 2
7.protocols 2
 
Ftp hari edu
Ftp hari eduFtp hari edu
Ftp hari edu
 
Actividad configuración de cisco asa vpn
Actividad configuración de cisco asa vpnActividad configuración de cisco asa vpn
Actividad configuración de cisco asa vpn
 
OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)
OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)
OSTU - Quickstart Guide for Wireshark (by Tony Fortunato)
 
Iptables
IptablesIptables
Iptables
 
Zenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOSZenith Networks: Jump Start JUNOS
Zenith Networks: Jump Start JUNOS
 
Chap 19 ftp & tftp
Chap 19 ftp & tftpChap 19 ftp & tftp
Chap 19 ftp & tftp
 
HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战HTTP2:新的机遇与挑战
HTTP2:新的机遇与挑战
 
Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleFree radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmaple
 
HTTP/2 Introduction
HTTP/2 IntroductionHTTP/2 Introduction
HTTP/2 Introduction
 
Open Source Networking with Vyatta
Open Source Networking with VyattaOpen Source Networking with Vyatta
Open Source Networking with Vyatta
 
Chap 02 osi model
Chap 02 osi modelChap 02 osi model
Chap 02 osi model
 
Ch21
Ch21Ch21
Ch21
 
FTP & TFTP
FTP & TFTPFTP & TFTP
FTP & TFTP
 
14 network tools
14 network tools14 network tools
14 network tools
 
Basics of firewall, ebtables, arptables and iptables
Basics of firewall, ebtables, arptables and iptablesBasics of firewall, ebtables, arptables and iptables
Basics of firewall, ebtables, arptables and iptables
 
Iptables in linux
Iptables in linuxIptables in linux
Iptables in linux
 
FTP - File Transfer Protocol
FTP - File Transfer ProtocolFTP - File Transfer Protocol
FTP - File Transfer Protocol
 

Similar to Internet e architetture di rete la ragazza della porta ottanta: HTTP

Asas Pelayaran Internet
Asas Pelayaran InternetAsas Pelayaran Internet
Asas Pelayaran InternetAhmad Faizar
 
Primer to Browser Netwroking
Primer to Browser NetwrokingPrimer to Browser Netwroking
Primer to Browser NetwrokingShuya Osaki
 
HTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 era
HTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 eraHTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 era
HTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 erapeychevi
 
Configure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdfConfigure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdfBT Digital
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemSneha Inguva
 
introduction to security
introduction to securityintroduction to security
introduction to securityahmad amiruddin
 
Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)Cisco Security
 
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docxCCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docxketurahhazelhurst
 
Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....
Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....
Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....Marcin Bielak
 
Short Introduction to IPv6
Short Introduction to IPv6Short Introduction to IPv6
Short Introduction to IPv6Martin Schütte
 
Curso: Redes y telecomunicaciones: 07 Protoclos TCP/IP
Curso: Redes y telecomunicaciones: 07 Protoclos TCP/IPCurso: Redes y telecomunicaciones: 07 Protoclos TCP/IP
Curso: Redes y telecomunicaciones: 07 Protoclos TCP/IPJack Daniel Cáceres Meza
 
Cyber security and ethical hacking 3
Cyber security and ethical hacking 3Cyber security and ethical hacking 3
Cyber security and ethical hacking 3Mehedi Hasan
 
16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)Jeff Green
 
Juglouvain http revisited
Juglouvain http revisitedJuglouvain http revisited
Juglouvain http revisitedmarctritschler
 
us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...
us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...
us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...sonjeku1
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法Naoto MATSUMOTO
 

Similar to Internet e architetture di rete la ragazza della porta ottanta: HTTP (20)

Asas Pelayaran Internet
Asas Pelayaran InternetAsas Pelayaran Internet
Asas Pelayaran Internet
 
Primer to Browser Netwroking
Primer to Browser NetwrokingPrimer to Browser Netwroking
Primer to Browser Netwroking
 
Hyperlink
HyperlinkHyperlink
Hyperlink
 
HTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 era
HTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 eraHTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 era
HTTP/2 and QUICK protocols. Optimizing the Web stack for HTTP/2 era
 
Configure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdfConfigure Mikrotik Khmer.pdf
Configure Mikrotik Khmer.pdf
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
 
introduction to security
introduction to securityintroduction to security
introduction to security
 
security
securitysecurity
security
 
Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)Troubleshooting Firewalls (2012 San Diego)
Troubleshooting Firewalls (2012 San Diego)
 
Unit 8 Java
Unit 8 JavaUnit 8 Java
Unit 8 Java
 
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docxCCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
CCNA Connecting NetworksSA ExamLab 13 CCNA Connecting Netwo.docx
 
Firewall
FirewallFirewall
Firewall
 
Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....
Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....
Internet of Things - protocols review (MeetUp Wireless & Networks, Poznań 21....
 
Short Introduction to IPv6
Short Introduction to IPv6Short Introduction to IPv6
Short Introduction to IPv6
 
Curso: Redes y telecomunicaciones: 07 Protoclos TCP/IP
Curso: Redes y telecomunicaciones: 07 Protoclos TCP/IPCurso: Redes y telecomunicaciones: 07 Protoclos TCP/IP
Curso: Redes y telecomunicaciones: 07 Protoclos TCP/IP
 
Cyber security and ethical hacking 3
Cyber security and ethical hacking 3Cyber security and ethical hacking 3
Cyber security and ethical hacking 3
 
16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)
 
Juglouvain http revisited
Juglouvain http revisitedJuglouvain http revisited
Juglouvain http revisited
 
us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...
us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...
us-17-Tsai-A-New-Era-Of-SSRF-Exploiting-URL-Parser-In-Trending-Programming-La...
 
VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法VYATTAによるマルチパスVPN接続手法
VYATTAによるマルチパスVPN接続手法
 

More from Antonio Prado

What if public administration demanded educated MANRS from ISPs?
What if public administration demanded educated MANRS from ISPs?What if public administration demanded educated MANRS from ISPs?
What if public administration demanded educated MANRS from ISPs?Antonio Prado
 
Block chain (per principianti) al cenacolo
Block chain (per principianti) al cenacoloBlock chain (per principianti) al cenacolo
Block chain (per principianti) al cenacoloAntonio Prado
 
SPC2 - Internet per la Pubblica Amministrazione
SPC2  - Internet per la Pubblica AmministrazioneSPC2  - Internet per la Pubblica Amministrazione
SPC2 - Internet per la Pubblica AmministrazioneAntonio Prado
 
34 anni di e-mail: SMTP
34 anni di e-mail: SMTP34 anni di e-mail: SMTP
34 anni di e-mail: SMTPAntonio Prado
 
Numeri e nomi: il DNS
Numeri e nomi: il DNSNumeri e nomi: il DNS
Numeri e nomi: il DNSAntonio Prado
 
Architetture di instradamento a internet: il BGP
Architetture di instradamento a internet: il BGPArchitetture di instradamento a internet: il BGP
Architetture di instradamento a internet: il BGPAntonio Prado
 
Internet: sistemi autonomi e governance
Internet: sistemi autonomi e governanceInternet: sistemi autonomi e governance
Internet: sistemi autonomi e governanceAntonio Prado
 

More from Antonio Prado (7)

What if public administration demanded educated MANRS from ISPs?
What if public administration demanded educated MANRS from ISPs?What if public administration demanded educated MANRS from ISPs?
What if public administration demanded educated MANRS from ISPs?
 
Block chain (per principianti) al cenacolo
Block chain (per principianti) al cenacoloBlock chain (per principianti) al cenacolo
Block chain (per principianti) al cenacolo
 
SPC2 - Internet per la Pubblica Amministrazione
SPC2  - Internet per la Pubblica AmministrazioneSPC2  - Internet per la Pubblica Amministrazione
SPC2 - Internet per la Pubblica Amministrazione
 
34 anni di e-mail: SMTP
34 anni di e-mail: SMTP34 anni di e-mail: SMTP
34 anni di e-mail: SMTP
 
Numeri e nomi: il DNS
Numeri e nomi: il DNSNumeri e nomi: il DNS
Numeri e nomi: il DNS
 
Architetture di instradamento a internet: il BGP
Architetture di instradamento a internet: il BGPArchitetture di instradamento a internet: il BGP
Architetture di instradamento a internet: il BGP
 
Internet: sistemi autonomi e governance
Internet: sistemi autonomi e governanceInternet: sistemi autonomi e governance
Internet: sistemi autonomi e governance
 

Recently uploaded

Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationMarko4394
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Paul Calvano
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxeditsforyah
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Sonam Pathan
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 

Recently uploaded (17)

young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentation
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 
Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24Font Performance - NYC WebPerf Meetup April '24
Font Performance - NYC WebPerf Meetup April '24
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
Q4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptxQ4-1-Illustrating-Hypothesis-Testing.pptx
Q4-1-Illustrating-Hypothesis-Testing.pptx
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
Call Girls In The Ocean Pearl Retreat Hotel New Delhi 9873777170
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 

Internet e architetture di rete la ragazza della porta ottanta: HTTP

  • 1. Internet e architetture di rete Antonio Prado https://www.prado.it Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 2. La ragazza della porta ottanta: HTTP Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 3. TCP/UDP 80 [Tim_Berners_Lee] Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 4. Tim Berners-Lee, inventore del World Wide Web [RFC 1630, 1738, 1866, 1945, 2068, 2396, 2616, 3986 ] URI URLHTML HTTP Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 5. Hypertext Transfer Protocol -- HTTP/1.0 [RFC 1945] Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 6. Hypertext Transfer Protocol -- HTTP/1.1 [RFC 2616] Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 7. RFC 1945 HTTP has been in use by the World-Wide Web global information initiative since 1990. This specification reflects common usage of the protocol referred to as "HTTP/1.0". Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 8. Universal Resource Identifier URI ASSOLUTO scheme://hostname[:port]/path http://www.paperino.it:80/qui/quo/qua URI RELATIVO /qui /qui/quo /qui/quo/qua Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 9. Uniform Resource Locator http_URL="http:""//"host[":"port][abs_path] HTTP message types HTTP messages consist of requests from client to server and responses from server to client. Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 10. Il WEB server è un HTTP server Protocollo a livello applicativo Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 11. Domanda e Risposta1. Il client fa una domanda 2. Il server risponde Il protocollo HTTP supporta più scambi domanda/risposta su una singola sessione TCP Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 12. Domanda e RispostaDomanda HTTP 1.0 Righe di testo (ASCII) Fine riga con CRLF rn Prima riga: Request-Line Request-Line Intestazioni Riga vuota Contenuto Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 13. Metodi nella domandaGET recupera informazioni indicate dalla URI HEAD recupera meta-informazioni sulla URI POST invia informazioni alla URI e recupera il risultato PUT Archivia informazioni nel posto nominato dalla URI DELETE rimuove l’entità indicata dalla URI TRACE traccia HTTP inoltrato attraverso proxy, tunnel ecc OPTIONS determina le capacità del server o le caratteristiche di una risorsa Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 14. Telnet LAB telnet as59715.net 80 Trying 2a02:cdc5:9715:1:250:56ff:fe97:2298... Connected to as59715.net. Escape character is '^]'. GET / HTTP/1.1 Host: as59715.net [CRLF] HTTP/1.1 301 Moved Permanently Date: Sat, 28 May 2016 04:49:11 GMT Server: Apache/2.4.20 (FreeBSD) OpenSSL/1. 0.1e-freebsd PHP/5.4.45 Location: https://as59715.net/ Content-Length: 228 Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href="https://as59715.net/">here</a>.</p> </body></html> Connection closed by foreign host. Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 15. HTTP server Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 16. HTTP server LAB Installa lighttpd Redhat [e derivati] yum install lighttpd Debian [e derivati] apt-get install lighttpd FreeBSD pkg install lighttpd Localizza e modifica il file lighttpd.conf Redhat e Debian /etc/lighttpd/lighttpd.conf FreeBSD /usr/local/etc/lighttpd/lighttpd.conf Avvia il demone lighttpd Redhat e Debian systemctl start lighttpd.service FreeBSD echo ‘lighttpd_enable=YES’ >> /etc/rc.conf && /usr/local/etc/rc.d/lighttpd start A B C Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 17. Installa lighttpd Redhat [e derivati] yum install lighttpd Debian [e derivati] apt-get install lighttpd FreeBSD pkg install lighttpd HTTP server LAB A apt-get install lighttpd Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: rrdtool apache2-utils The following NEW packages will be installed: lighttpd 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded. Need to get 0 B/227 kB of archives. After this operation, 915 kB of additional disk space will be used. Selecting previously unselected package lighttpd. (Reading database ... 203113 files and directories currently installed.) Preparing to unpack .../lighttpd_1.4.33-1+nmu2ubuntu2_amd64.deb ... Unpacking lighttpd (1.4.33-1+nmu2ubuntu2) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... Processing triggers for ureadahead (0.100.0-16) ... ureadahead will be reprofiled on next reboot Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up lighttpd (1.4.33-1+nmu2ubuntu2) ... * Starting web server lighttpd Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 18. HTTP server LAB Localizza e modifica il file lighttpd.conf Redhat e Debian /etc/lighttpd/lighttpd.conf FreeBSD /usr/local/etc/lighttpd/lighttpd.conf server.document-root = "/var/www" server.upload-dirs = ( "/var/cache/lighttpd/uploads" ) server.errorlog = "/var/log/lighttpd/error.log" server.pid-file = "/var/run/lighttpd.pid" server.username = "www-data" server.groupname = "www-data" server.port = 80 B Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 19. HTTP server LAB Avvia il demone lighttpd Redhat e Debian systemctl start lighttpd.service FreeBSD echo ‘lighttpd_enable=YES’ >> /etc/rc.conf && /usr/local/etc/rc.d/lighttpd start Verifica che lighttpd stia ascoltando sulla porta TCP 80 netstat -anp|grep lighttpd tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3893/lighttpd C Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 20. telnet localhost 80 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET / HTTP/1.1 Host: localhost Telnet LAB HTTP/1.1 200 OK Vary: Accept-Encoding Content-Type: text/html Accept-Ranges: bytes ETag: "3446712510" Last-Modified: Sat, 28 May 2016 03:39:13 GMT Content-Length: 3568 Date: Sat, 28 May 2016 04:58:07 GMT Server: lighttpd/1.4.33 Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 21. elinks http://localhost Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 22. 100 Continue 101 Switching Protocols 102 Processing 200 OK 201 Created 202 Accepted 203 Non-authoritative Information 204 No Content 205 Reset Content 206 Partial Content 207 Multi-Status 208 Already Reported 226 IM Used 300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 304 Not Modified 305 Use Proxy 307 Temporary Redirect 308 Permanent Redirect 1yz Informational 2yz Success 3yz Redirection HTTP, codici di stato: 1yz, 2yz, 3yz Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 23. 400 Bad Request 401 Unauthorized 402 Payment Required 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Timeout 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Payload Too Large 414 Request-URI Too Long 415 Unsupported Media Type 416 Requested Range Not Satisfiable 417 Expectation Failed 418 I'm a teapot 421 Misdirected Request 422 Unprocessable Entity 423 Locked 424 Failed Dependency HTTP, codici di stato: 4yz 426 Upgrade Required 428 Precondition Required 429 Too Many Requests 431 Request Header Fields Too Large 444 Connection Closed Without Response 451 Unavailable For Legal Reasons 499 Client Closed Request 4yz Client error Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 24. HTTP, codici di stato: 5yz 5yz Server error 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout 505 HTTP Version Not Supported 506 Variant Also Negotiates 507 Insufficient Storage 508 Loop Detected 510 Not Extended 511 Network Authentication Required 599 Network Connect Timeout Error Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 25. HTTP over TLS [RFC 2818] Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 26. TCP/UDP 443 [Kipp_E_B_Hickman] Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 27. HTTP/1.1 200 OK Date: Sun, 29 May 2016 16:27:11 GMT Server: Apache/2.4.20 (FreeBSD) OpenSSL/1.0.1e-freebsd PHP/5. 4.45 X-Powered-By: PHP/5.4.45 Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT Transfer-Encoding: chunked Content-Type: text/html openssl s_client -connect as59715.net:443 CONNECTED(00000003) depth=1 /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3 verify error:num=20:unable to get local issuer certificate verify return:0 --- Certificate chain 0 s:/CN=as59715.net i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3 1 s:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3 i:/O=Digital Signature Trust Co./CN=DST Root CA X3 --- [...] GET / HTTP/1.1 Host: as59715.net [CRLF] Telnet LAB Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 28. Hypertext Transfer Protocol Version 2 (HTTP/2)[RFC 7540] Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 29. RFC 7540 HTTP/2 enables a more efficient use of network resources and a reduced perception of latency by introducing header field compression and allowing multiple concurrent exchanges on the same connectionAntonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530
  • 30. Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530 Verificare il supporto di HTTP/2 https://tools.keycdn.com/http2-test nghttp -vn https://www.prado.it|grep -A 4 NPN [ 0.068][NPN] server offers: * h2 * spdy/3.1 * http/1.1 The negotiated protocol: h2
  • 31. Questions? Antonio Prado - Internet e architetture di rete - CentroGiovani San Benedetto del Tronto - 20160530