Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

• • • •

Slide 4

Slide 4 text

• • • •

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

~1990 1991- 1996.5- 1997.1- 2015.5- 2015 - 現在 1994 - 1995 - 1999 - 2006 - 2008 - 2013 -

Slide 7

Slide 7 text

• • • • • •

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

• •

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

GET /mypage.html A very simple HTML page

Slide 12

Slide 12 text

• • • •

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

• • •

Slide 15

Slide 15 text

GET /mypage.html HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:31 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/html A page with an image GET /myimage.gif HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:32 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/gif (画像コンテンツ)

Slide 16

Slide 16 text

GET /mypage.html HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:31 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/html A page with an image • • •

Slide 17

Slide 17 text

GET /mypage.html HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:31 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/html A page with an image • • •

Slide 18

Slide 18 text

GET /mypage.html HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:31 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/html A page with an image • • •

Slide 19

Slide 19 text

GET /mypage.html HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:31 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/html A page with an image • • •

Slide 20

Slide 20 text

GET /myimage.gif HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:32 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/gif (画像コンテンツ) • •

Slide 21

Slide 21 text

GET /myimage.gif HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:32 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/gif (画像コンテンツ) • •

Slide 22

Slide 22 text

GET /myimage.gif HTTP/1.0 User-Agent: NCSA_Mosaic/2.0 (Windows 3.1) 200 OK Date: Tue, 15 Nov 1994 08:12:32 GMT Server: CERN/3.0 libwww/2.17 Content-Type: text/gif (画像コンテンツ) • •

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

• •  HTTP/1.1 は、1997 年 1 月に RFC 2068 として 初版が発行されました。

Slide 25

Slide 25 text

• • • • • • •

Slide 26

Slide 26 text

• • •

Slide 27

Slide 27 text

• • • • • • •

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

GET /en-US/docs/Glossary/Simple_header HTTP/1.1 Host: developer.mozilla.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: https://developer.mozilla.org/en-US/docs/Glossary/Simple_header

Slide 30

Slide 30 text

200 OK Connection: Keep-Alive Content-Encoding: gzip Content-Type: text/html; charset=utf-8 Date: Wed, 20 Jul 2016 10:55:30 GMT Etag: "547fa7e369ef56031dd3bff2ace9fc0832eb251a" Keep-Alive: timeout=5, max=1000 Last-Modified: Tue, 19 Jul 2016 00:59:33 GMT Server: Apache Transfer-Encoding: chunked Vary: Cookie, Accept-Encoding ( )

Slide 31

Slide 31 text

GET /static/img/header-background.png HTTP/1.1 Host: developer.cdn.mozilla.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: https://developer.mozilla.org/en-US/docs/Glossary/Simple_header

Slide 32

Slide 32 text

200 OK Age: 9578461 Cache-Control: public, max-age=315360000 Connection: keep-alive Content-Length: 3077 Content-Type: image/png Date: Thu, 31 Mar 2016 13:34:46 GMT Last-Modified: Wed, 21 Oct 2015 18:27:50 GMT Server: Apache (3077 )

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

オープン クローズ オープン クローズ

Slide 35

Slide 35 text

オープン クローズ オープン クローズ

Slide 36

Slide 36 text

オープン クローズ

Slide 37

Slide 37 text

オープン クローズ

Slide 38

Slide 38 text

オープン クローズ コネクションの クローズオープン時の通信を減らすことができる

Slide 39

Slide 39 text

• connection : Keep-Alive • HTTP通信はTCP/IP通信なので[3WAY ハンドシェイク] の上で動作するプロトコルなので 接続には1.5往復分のやり取りを必要とします. packetが一往復する時間を1RTT(ラウンドトリップタイム)と呼びますが TLSでは2RTT分の時間がかかります. Keep-Aliveを使うことでこのハンドシェイクの回数を減らせます.

Slide 40

Slide 40 text

• connection : Close • Internet Explorer 60s Firefox 115s nginx 65 or 75s Apache ver1.3,2.0 15s /ver2.2 ~ 5s

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

オープン クローズ

Slide 43

Slide 43 text

オープン クローズ

Slide 44

Slide 44 text

• • •

Slide 45

Slide 45 text

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

~1990 1991- 1996.5- 1997.1- 2015.5- 2015 - 現在 1994 - 1995 - 1999 - 2006 - 2008 - 2013 -

Slide 49

Slide 49 text

~1990 1991- 1996.5- 1997.1- 2015.5- 2015 - 現在 1994 - 1995 - 1999 - 2006 - 2008 - 2013 -

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

• • • •

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

サイトの主体者 発行者(認証局) 公開鍵 有効期限

Slide 57

Slide 57 text

1.SSL証明書の取得

Slide 58

Slide 58 text

2.サーバー証明書の 信頼性を確認

Slide 59

Slide 59 text

3.共通鍵を生成して 証明書内の公開鍵で 暗号化

Slide 60

Slide 60 text

4.暗号化された鍵の複製

Slide 61

Slide 61 text

5.複合化した鍵で通信

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

• • •

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

• • • • • • 1回の通信で接続の確立で何往復もパケットが飛び交います. これまでの高速化はあらゆるところに寄与してきました. HTTP2.0ではこれまで手を付けられてこなかったヘッダー部分の圧縮や,規格化されたものの今 一つ活用されていなかったパイプラインの代替実装が追加されました. また,パイプラインで発生した互換性問題もTLSのALPNという仕組みで丸ごと通信形式を切り 替える方式になっています.

Slide 69

Slide 69 text

• • •

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

• • •

Slide 73

Slide 73 text

• •

Slide 74

Slide 74 text

• •

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

• • • • •

Slide 78

Slide 78 text

No content