SlideShare a Scribd company logo
1 of 15
Download to read offline
What is SPDY?
 Framing layer implementing streams above TCP or TLS
 Optimized for HTTP
How does it work?
 Single client-server TCP connection - based on IP
addresses, not hostnames
 HTTP Requests and Responses are streamed in parallel
over the TCP session
Optimizations
 Compressed HTTP Headers in SYN_REPLY and
SYN_RESPONSE requests
 Chunked responses to prevent head-of-line blocking
 To target a 50% reduction in page load time
 To minimize deployment complexity
 To avoid the need for any changes to the content by
website authors
 To allow many concurrent HTTP requests to run across a
single TCP session.
 To reduce the bandwidth currently used by HTTP by
compressing headers and eliminating unnecessary headers.
 To make SSL the underlying transport protocol, for better
security and compatibility with existing network
infrastructure
Goals for SPDY
What is a web page?
 86 resources
 13 hosts
 800+KB
 only 66% compressed (top sites are ~90% compressed)
Who is using SPDY?
Google Chrome
All Google Web Properties
Mozilla Firefox
Twitter
Amazon Silk
Others: Contendo, Strangeloop, iPhone client,
Apache mod-spdy, nginx beta, jetty, netty,
libraries in python, node.js, erlang, ruby, go, and
C
New Features
 Multiplexing
 Prioritization
 Compression
 Server Push
 Transparent to HTTP application servers
deployable today
Improvements
 One Connection per Domain to Exchange All Data
 Multiplexed requests on the same connection
 Permanent Connection to the server
 Compression of Headers
 Prioritized Requests
 Server Push
 Security by Design
 HTTP Compatibility
 Per-request flow control (Supported in SPDY v3)
Bottlenecks of HTTP Connections
 HTTP relies on multiple connections for concurrency
 Several problems caused by this
 Additional round trips for connection setup
 Slow-start delays
 Connection rationing by the client, where it tries
to avoid opening too many connections to the single
server
 The goal of SPDY is to reduce web page load time.
SPDY Layers
 SPDY is split into 2 layers:
 Framing Layer - which multiplexes a TCP
connection into independent, length-prefixed
frames. The framing layer is tailored to the
needs of the HTTP Protocol and Server push
 HTTP Layer - which specifies the overlaying of
HTTP Request/Response pairs on top of the
framing layer
 SPDY Framing layer runs on top of the reliable transport protocol like
TCP
 SPDY Connections are persistent connections
 SPDY is commonly used with TLS
SPDY Frame Types
Two types of Frames:
 Control Frame contains
• a version number
• a frame type
• length
 Data Frame contains
• a stream ID
• flags
• length for the payload carried after the common header.
 There is always a common header which is 8 bytes in length.
 The first bit indicates that whether the frame is a control frame
or a data frame.
SPDY Streams
 Streams are independent sequences of bi-directional data
cut into frames
 Streams are bidirectional – regular HTTP Requests for
Clients and unidirectional (server push) for servers
 Streams may be created by either client or server
 Streams optionally carry a set of name/value header pairs
 Streams may be cancelled
SPDY Stream Frames
 Types of SPDY Stream Frames:
SYN_STREAM - Open a new stream
SYN_REPLY - Remote Acknowledgement of newly
opened stream
RST_STREAM - Close a stream
HTTP Request / Response
SPDY Session Setup
SPDY Sample Transaction
SPDY Response Delivery

More Related Content

Similar to SPDY.pdf

Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...Amazon Web Services
 
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)Hoang Minh Nguyen
 
The new (is it really ) api stack
The new (is it really ) api stackThe new (is it really ) api stack
The new (is it really ) api stackLuca Mattia Ferrari
 
HTTP/2 and a Faster Web
HTTP/2 and a Faster WebHTTP/2 and a Faster Web
HTTP/2 and a Faster WebC4Media
 
Application Layer and Protocols
Application Layer and ProtocolsApplication Layer and Protocols
Application Layer and ProtocolsRubal Sagwal
 
HTTP/2 Introduction
HTTP/2 IntroductionHTTP/2 Introduction
HTTP/2 IntroductionWalter Liu
 
Http2 protocol changes
Http2 protocol changesHttp2 protocol changes
Http2 protocol changesMark Friedman
 
Introduction to HTTP/2
Introduction to HTTP/2Introduction to HTTP/2
Introduction to HTTP/2Ido Flatow
 
Revisiting HTTP/2
Revisiting HTTP/2Revisiting HTTP/2
Revisiting HTTP/2Fastly
 
Distributed web based systems
Distributed web based systemsDistributed web based systems
Distributed web based systemsReza Gh
 
Group20 Dynamic Networks
Group20 Dynamic NetworksGroup20 Dynamic Networks
Group20 Dynamic Networkshariprasadnr
 
Proxy http ftp dns email
Proxy http ftp dns emailProxy http ftp dns email
Proxy http ftp dns emailHeera K S
 
Ch4 Protocols.pptx
Ch4 Protocols.pptxCh4 Protocols.pptx
Ch4 Protocols.pptxazmerawAnna1
 
introduction to Web system
introduction to Web systemintroduction to Web system
introduction to Web systemhashim102
 
complete web service1.ppt
complete web service1.pptcomplete web service1.ppt
complete web service1.pptDr.Saranya K.G
 
Computer network (10)
Computer network (10)Computer network (10)
Computer network (10)NYversity
 
A SPDYier Experience by Olaniyi Jinadu
A SPDYier Experience by Olaniyi JinaduA SPDYier Experience by Olaniyi Jinadu
A SPDYier Experience by Olaniyi JinaduOlaniyi Jinadu
 
Primer to Browser Netwroking
Primer to Browser NetwrokingPrimer to Browser Netwroking
Primer to Browser NetwrokingShuya Osaki
 

Similar to SPDY.pdf (20)

Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
Accelerating and Securing your Applications in AWS. In-depth look at Solving ...
 
SPDY - or maybe HTTP2.0
SPDY - or maybe HTTP2.0SPDY - or maybe HTTP2.0
SPDY - or maybe HTTP2.0
 
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)
Web Protocol Future (QUIC/SPDY/HTTP2/MPTCP/SCTP)
 
The new (is it really ) api stack
The new (is it really ) api stackThe new (is it really ) api stack
The new (is it really ) api stack
 
HTTP/2 and a Faster Web
HTTP/2 and a Faster WebHTTP/2 and a Faster Web
HTTP/2 and a Faster Web
 
Application Layer and Protocols
Application Layer and ProtocolsApplication Layer and Protocols
Application Layer and Protocols
 
HTTP/2 Introduction
HTTP/2 IntroductionHTTP/2 Introduction
HTTP/2 Introduction
 
HTTP
HTTPHTTP
HTTP
 
Http2 protocol changes
Http2 protocol changesHttp2 protocol changes
Http2 protocol changes
 
Introduction to HTTP/2
Introduction to HTTP/2Introduction to HTTP/2
Introduction to HTTP/2
 
Revisiting HTTP/2
Revisiting HTTP/2Revisiting HTTP/2
Revisiting HTTP/2
 
Distributed web based systems
Distributed web based systemsDistributed web based systems
Distributed web based systems
 
Group20 Dynamic Networks
Group20 Dynamic NetworksGroup20 Dynamic Networks
Group20 Dynamic Networks
 
Proxy http ftp dns email
Proxy http ftp dns emailProxy http ftp dns email
Proxy http ftp dns email
 
Ch4 Protocols.pptx
Ch4 Protocols.pptxCh4 Protocols.pptx
Ch4 Protocols.pptx
 
introduction to Web system
introduction to Web systemintroduction to Web system
introduction to Web system
 
complete web service1.ppt
complete web service1.pptcomplete web service1.ppt
complete web service1.ppt
 
Computer network (10)
Computer network (10)Computer network (10)
Computer network (10)
 
A SPDYier Experience by Olaniyi Jinadu
A SPDYier Experience by Olaniyi JinaduA SPDYier Experience by Olaniyi Jinadu
A SPDYier Experience by Olaniyi Jinadu
 
Primer to Browser Netwroking
Primer to Browser NetwrokingPrimer to Browser Netwroking
Primer to Browser Netwroking
 

Recently uploaded

Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Lucknow
 
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
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一Fs
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
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
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一Fs
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一Fs
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
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
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 

Recently uploaded (20)

Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja VipCall Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
Call Girls Service Adil Nagar 7001305949 Need escorts Service Pooja Vip
 
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
 
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文凭证书
 
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
定制(UAL学位证)英国伦敦艺术大学毕业证成绩单原版一比一
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
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
 
Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
定制(AUT毕业证书)新西兰奥克兰理工大学毕业证成绩单原版一比一
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
定制(Management毕业证书)新加坡管理大学毕业证成绩单原版一比一
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
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
 
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制作
 

SPDY.pdf

  • 1. What is SPDY?  Framing layer implementing streams above TCP or TLS  Optimized for HTTP How does it work?  Single client-server TCP connection - based on IP addresses, not hostnames  HTTP Requests and Responses are streamed in parallel over the TCP session Optimizations  Compressed HTTP Headers in SYN_REPLY and SYN_RESPONSE requests  Chunked responses to prevent head-of-line blocking
  • 2.  To target a 50% reduction in page load time  To minimize deployment complexity  To avoid the need for any changes to the content by website authors  To allow many concurrent HTTP requests to run across a single TCP session.  To reduce the bandwidth currently used by HTTP by compressing headers and eliminating unnecessary headers.  To make SSL the underlying transport protocol, for better security and compatibility with existing network infrastructure Goals for SPDY
  • 3. What is a web page?  86 resources  13 hosts  800+KB  only 66% compressed (top sites are ~90% compressed)
  • 4. Who is using SPDY? Google Chrome All Google Web Properties Mozilla Firefox Twitter Amazon Silk Others: Contendo, Strangeloop, iPhone client, Apache mod-spdy, nginx beta, jetty, netty, libraries in python, node.js, erlang, ruby, go, and C
  • 5. New Features  Multiplexing  Prioritization  Compression  Server Push  Transparent to HTTP application servers deployable today
  • 6. Improvements  One Connection per Domain to Exchange All Data  Multiplexed requests on the same connection  Permanent Connection to the server  Compression of Headers  Prioritized Requests  Server Push  Security by Design  HTTP Compatibility  Per-request flow control (Supported in SPDY v3)
  • 7. Bottlenecks of HTTP Connections  HTTP relies on multiple connections for concurrency  Several problems caused by this  Additional round trips for connection setup  Slow-start delays  Connection rationing by the client, where it tries to avoid opening too many connections to the single server  The goal of SPDY is to reduce web page load time.
  • 8. SPDY Layers  SPDY is split into 2 layers:  Framing Layer - which multiplexes a TCP connection into independent, length-prefixed frames. The framing layer is tailored to the needs of the HTTP Protocol and Server push  HTTP Layer - which specifies the overlaying of HTTP Request/Response pairs on top of the framing layer  SPDY Framing layer runs on top of the reliable transport protocol like TCP  SPDY Connections are persistent connections  SPDY is commonly used with TLS
  • 9. SPDY Frame Types Two types of Frames:  Control Frame contains • a version number • a frame type • length  Data Frame contains • a stream ID • flags • length for the payload carried after the common header.  There is always a common header which is 8 bytes in length.  The first bit indicates that whether the frame is a control frame or a data frame.
  • 10. SPDY Streams  Streams are independent sequences of bi-directional data cut into frames  Streams are bidirectional – regular HTTP Requests for Clients and unidirectional (server push) for servers  Streams may be created by either client or server  Streams optionally carry a set of name/value header pairs  Streams may be cancelled
  • 11. SPDY Stream Frames  Types of SPDY Stream Frames: SYN_STREAM - Open a new stream SYN_REPLY - Remote Acknowledgement of newly opened stream RST_STREAM - Close a stream
  • 12. HTTP Request / Response