SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Downloaden Sie, um offline zu lesen
Computer Networks                                                                                                                                                 11/11/2009




                                                                                               Internet Online Applications
             Scalable Internet Servers and
                    Load Balancingg                                                          Internet online applications
                                                                                                 Applications accessible to online users through Internet
                                                                                                                                                  Internet.
                                                                                             Examples
                                                                                                 Online keyword search engine: Google.
                                                                                                 Web email: Gmail.
                                                                                                 News: CNN, NBC news.
                                                                                                  Web directory: Yahoo!, MSN.
                                      Kai Shen
                                                                                              

                                                                                             Scalability requirements
                                                                                                 Many simultaneous user accesses; large amount of hosted
                                                                                                  data, …

                                                                                             Internet servers
                                                                                                 Computer systems that host these online applications

                 11/11/2009          CSC 257/457 - Fall 2009              1                    11/11/2009               CSC 257/457 - Fall 2009               2




                   Internet Servers are at the                                                 Search Engine as An Example:
                   Application Layer                                                           Step 1 – Crawling
                Normally on the end hosts, involving no routers
                Function on transport-layer protocols TCP/UDP                       Crawling – get all these Web pages out there:
                                                                                             g g                   p g
                                                                                              First retrieve some root pages;
                                                                                              Parse their content and follow hyperlinks to retrieve more
                                                                                               pages;
                                                                                              Depth-first search or breadth-first search? Remove
                                     Internet                                                  duplicates.

                                                                 Google


                  Yahoo!


                               CNN
                  11/11/2009           CSC 257/457 - Fall 2009                3                11/11/2009               CSC 257/457 - Fall 2009               4




CSC 257/457 - Fall 2009                                                                                                                                                   1
Computer Networks                                                                                                                                                                              11/11/2009



                     Performance Analysis for                                                              Search Engine as An Example:
                     Crawling                                                                              Step 2 – Indexing
                What are the resources involved?
                    CPU processing for TCP/HTTP protocol handling and the
                          p         g            p               g                                   Indexing
                     parsing of page content
                              f                                                                           crawled raw web pages are not easy to search.
                    writing to disk storage                                                              we index them to formats that are easy to search.
                     network bandwidth to remote web sites
                                                                                                      As part of indexing, we need to give each page an ID
                 
                                                                                                 

                Assume average page size 10KB                                                            using a hash function.
                     raw processing power of a single CPU
                                                                                                                                                         ……
                 

                       1000 requests/sec
                                                                                                     Computer:          Page #123 Page #357
                    I/O to a single disk
                       100 seeks/sec  up to 100 requests/sec

                    network bandwidth from/to the Internet
                       T1 link (1.5Mbit/s)  12 requests/sec
                                                                                                     Networks:          Page #124 Page #468              ……
                       T3 link (45Mbit/s)  360 requests/sec




                  11/11/2009                CSC 257/457 - Fall 2009                          5             11/11/2009                       CSC 257/457 - Fall 2009                        6




                     Search Engine as An Example:
                     Step 3 – Online Search                                                                Partitioning and Replication
                                                                                                                                                                             Index servers
                                                                                                                                                                              (partition 1)
                                                                             Index server




                                                                                                                          Firewall/
                           Firewall                                                                                        Router
                                                                      Local-
                                                                      Local-area
                                                                       network
                                      Web server/
                                      Query handler                                                                                                      Local-
                                                                                                                                                         Local-area
                  Internet                                                                                 Internet                                       network         Index servers
                                                                                                                                                                           (partition 2)


                                                                               Page server
                                                                                                                                       Web server/
                                                                                                                                      Query handlers

                                                                                                                                                                      Page servers
                                       Scalability, reliability
                  11/11/2009                CSC 257/457 - Fall 2009                          7             11/11/2009                       CSC 257/457 - Fall 2009                        8




CSC 257/457 - Fall 2009                                                                                                                                                                                2
Computer Networks                                                                                                                                                11/11/2009



                                                                              Load Balancing on Internet Servers
                     Load Balancing over Internet
                                                                              Technique 1 - DNS Rotation
                     Servers
                                                                                                                                             128.111.1.2
                Popular sites like Google or CNN receive tens or
                 hundreds of millions of hits per day
                                                  day.                                     IP address of
                                                                                             CNN.com?
                A large number of replicated servers are used at                                                         Firewall/           128.111.1.3
                 these sites.                                                                                              Router

                                                                                IP address of
                Key question: how to balance client requests over                CNN.com?      Internet
                 these servers?
                                                                                                                                              128.111.1.4

                                                                                                                 128.111.1.2
                                                                                                                                       Web servers
                                                                                                                                       for CNN.com
                                                                                                   128.111.1.3
                                                                                                                                DNS server
                                                                                                                               for CNN.com

                  11/11/2009               CSC 257/457 - Fall 2009        9   11/11/2009                   CSC 257/457 - Fall 2009                          10




                                                                               Load Balancing on Internet Servers
                  Discussions on DNS Rotation                                  Technique 2 – Cooperative Offloading
                                                                                                                                             128.111.1.2
                Advantages
                    Require almost no change on the existing Internet
                     architecture
                                                                                                                          Firewall/           128.111.1.3
                                                                                                                           Router
                Problems
                    DNS Caching                                                                Internet
                    Rigid load balancing policy
                       can’t balance based on runtime load changes
                                                                                                                                              128.111.1.4

                       slow or no adjustment in response to failures

                                                                                                                                       Web servers
                                                                                                                                       for CNN.com




                  11/11/2009               CSC 257/457 - Fall 2009       11   11/11/2009                   CSC 257/457 - Fall 2009                          12




CSC 257/457 - Fall 2009                                                                                                                                                  3
Computer Networks                                                                                                                                                11/11/2009



                  Discussions on Cooperative                                     Cooperative Offloading with
                  Offloading                                                     TCP Handoff [Pai et al. ASPLOS1998]
                                                                                                                                             128.111.1.2
                                                                                                  What does 1.3 do?
                 Can be combined with the DNS rotation.
                                                                                                  What does 1.4 do?
                 Advantages:
                      More flexible policy is possible                                                         clt IP Firewall/              128.111.1.3
                                                                                                                        Router
                      Be more responsive to runtime workload and server                                         1.3
                       failures (to a certain degree)                                                                                           clt IP
                                                                                             Internet                                            1.4
                 Problems:                                                                                                                   128.111.1.4
                      Need software changes on servers                                                     1.3
                                                                                                            13
                      Longer delay                                                                       clt IP                       Web servers
                                                                                                                                       for CNN.com
                                                                                                All packets in a TCP
                                                                                                connection must
                                                                                                offload to one server?
                  11/11/2009               CSC 257/457 - Fall 2009         13   11/11/2009              CSC 257/457 - Fall 2009                             14




                  Cooperative Offloading vs.                                    Load Balancing on Internet Servers
                  TCP Handoff                                                   Technique 3 – Load Balancing Router
                                                                                                                                             128.111.1.2
                                                                                                                             clt IP
                 Software changes on the servers
                               g                                                                                                                     1.2
                                                                                                                                 1.2
                                                                                                                                                 clt IP
                                                                                                          clt IP
                  Delays                                                                                                                      128.111.1.3
                                                                                                                       Firewall
                                                                                                           1.1         LB Router

                                                                                             Internet              128.111.1.1
                                                                                                          1.1

                                                                                                        clt IP                                128.111.1.4


                                                                                                                                       Web servers
                                                                                                                                       for CNN.com




                  11/11/2009               CSC 257/457 - Fall 2009         15   11/11/2009              CSC 257/457 - Fall 2009                             16




CSC 257/457 - Fall 2009                                                                                                                                                  4
Computer Networks                                                                                                                          11/11/2009




                 More About Load Balancing Router                                  Summary
             How deep do we look into the network protocol stack?                 Scalable Internet servers
                Network layer (IP)?                                                  partitioning
                                                                                      replication
                Transport layer (TCP/UDP)?
                Application layer?                                               Load balancing for Internet servers
                                                                                      DNS rotation
             Load balancing policies in LB routers (Goal: transparency,               cooperative offloading (w. TCP handoff)
               plug-and-play)                                                         Load balancing router
                Simple rotation                                                  Changes required on the components:
                                                                                                           components
                                                                                       DNS server??
                 Least number of active requests
                                                                                   
             
                                                                                      Web server??
                Shortest response time                                               client??
                                                                                      router??


                 11/11/2009             CSC 257/457 - Fall 2009           17       11/11/2009               CSC 257/457 - Fall 2009   18




CSC 257/457 - Fall 2009                                                                                                                            5

Weitere ähnliche Inhalte

Andere mochten auch

What is Network Security?
What is Network Security?What is Network Security?
What is Network Security?Faith Zeller
 
Android Application: Introduction
Android Application: IntroductionAndroid Application: Introduction
Android Application: IntroductionJollen Chen
 
CITY OF SPIES BY SORAYYA KHAN
CITY OF SPIES BY SORAYYA KHANCITY OF SPIES BY SORAYYA KHAN
CITY OF SPIES BY SORAYYA KHANSheikh Hasnain
 
ICCV2009: MAP Inference in Discrete Models: Part 5
ICCV2009: MAP Inference in Discrete Models: Part 5ICCV2009: MAP Inference in Discrete Models: Part 5
ICCV2009: MAP Inference in Discrete Models: Part 5zukun
 
Intelligence, spies & espionage
Intelligence, spies & espionageIntelligence, spies & espionage
Intelligence, spies & espionagedgnadt
 
Intoduction to Network Security NS1
Intoduction to Network Security NS1Intoduction to Network Security NS1
Intoduction to Network Security NS1koolkampus
 
Functional programming with python
Functional programming with pythonFunctional programming with python
Functional programming with pythonMarcelo Cure
 
The double lives of spies in the civil war power point
The double lives of spies in the civil war power pointThe double lives of spies in the civil war power point
The double lives of spies in the civil war power pointAlyssa Fabia
 
Functional Programming in R
Functional Programming in RFunctional Programming in R
Functional Programming in RSoumendra Dhanee
 

Andere mochten auch (20)

Carrick - Introduction to Physics & Electronics - Spring Review 2012
Carrick - Introduction to Physics & Electronics - Spring Review 2012Carrick - Introduction to Physics & Electronics - Spring Review 2012
Carrick - Introduction to Physics & Electronics - Spring Review 2012
 
Noah Z - Spies
Noah Z - SpiesNoah Z - Spies
Noah Z - Spies
 
Lec 03 set
Lec 03   setLec 03   set
Lec 03 set
 
Serial Killers Presentation1
Serial Killers Presentation1Serial Killers Presentation1
Serial Killers Presentation1
 
Securing Windows web servers
Securing Windows web serversSecuring Windows web servers
Securing Windows web servers
 
Android UI
Android UIAndroid UI
Android UI
 
What is Network Security?
What is Network Security?What is Network Security?
What is Network Security?
 
Functional style programming
Functional style programmingFunctional style programming
Functional style programming
 
Android Application: Introduction
Android Application: IntroductionAndroid Application: Introduction
Android Application: Introduction
 
SAN Review
SAN ReviewSAN Review
SAN Review
 
CITY OF SPIES BY SORAYYA KHAN
CITY OF SPIES BY SORAYYA KHANCITY OF SPIES BY SORAYYA KHAN
CITY OF SPIES BY SORAYYA KHAN
 
ICCV2009: MAP Inference in Discrete Models: Part 5
ICCV2009: MAP Inference in Discrete Models: Part 5ICCV2009: MAP Inference in Discrete Models: Part 5
ICCV2009: MAP Inference in Discrete Models: Part 5
 
Trends in spies
Trends in spiesTrends in spies
Trends in spies
 
Intelligence, spies & espionage
Intelligence, spies & espionageIntelligence, spies & espionage
Intelligence, spies & espionage
 
Intoduction to Network Security NS1
Intoduction to Network Security NS1Intoduction to Network Security NS1
Intoduction to Network Security NS1
 
SAN
SANSAN
SAN
 
Functional programming with python
Functional programming with pythonFunctional programming with python
Functional programming with python
 
Xml Publisher
Xml PublisherXml Publisher
Xml Publisher
 
The double lives of spies in the civil war power point
The double lives of spies in the civil war power pointThe double lives of spies in the civil war power point
The double lives of spies in the civil war power point
 
Functional Programming in R
Functional Programming in RFunctional Programming in R
Functional Programming in R
 

Ähnlich wie Scalable Internet Servers and Load Balancing

Why Load Testing from the Cloud Doesn't Work
Why Load Testing from the Cloud Doesn't WorkWhy Load Testing from the Cloud Doesn't Work
Why Load Testing from the Cloud Doesn't WorkCompuware APM
 
Physical Mashups in the Web-Home
Physical Mashups in the Web-HomePhysical Mashups in the Web-Home
Physical Mashups in the Web-HomeDominique Guinard
 
Building apps with HBase - Big Data TechCon Boston
Building apps with HBase - Big Data TechCon BostonBuilding apps with HBase - Big Data TechCon Boston
Building apps with HBase - Big Data TechCon Bostonamansk
 
Application protocols
Application protocolsApplication protocols
Application protocolsOnline
 
Xldb2011 tue 1005_linked_in
Xldb2011 tue 1005_linked_inXldb2011 tue 1005_linked_in
Xldb2011 tue 1005_linked_inliqiang xu
 
Angular JS and Magento
Angular JS and MagentoAngular JS and Magento
Angular JS and MagentoVinci Rufus
 
RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...
RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...
RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...Weijun Qin
 
Unleash the Power of your API
Unleash the Power of your APIUnleash the Power of your API
Unleash the Power of your API3scale
 
Simplified Web2.0 application development with Project Zero
Simplified Web2.0 application development with Project ZeroSimplified Web2.0 application development with Project Zero
Simplified Web2.0 application development with Project ZeroShawn Zhu
 
W3C Mobile Web technologies
W3C Mobile Web technologiesW3C Mobile Web technologies
W3C Mobile Web technologiesRobin Berjon
 
Cloud Foundry Bootcamp
Cloud Foundry BootcampCloud Foundry Bootcamp
Cloud Foundry BootcampJoshua Long
 
Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000Thomas Stensitzki
 
Compuware APM Solution
Compuware APM SolutionCompuware APM Solution
Compuware APM Solutionbackfire_88
 
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns FrameworksMike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns Frameworksukdpe
 

Ähnlich wie Scalable Internet Servers and Load Balancing (20)

Web crawler
Web crawlerWeb crawler
Web crawler
 
IT Governance Portals
IT Governance   PortalsIT Governance   Portals
IT Governance Portals
 
Why Load Testing from the Cloud Doesn't Work
Why Load Testing from the Cloud Doesn't WorkWhy Load Testing from the Cloud Doesn't Work
Why Load Testing from the Cloud Doesn't Work
 
Physical Mashups in the Web-Home
Physical Mashups in the Web-HomePhysical Mashups in the Web-Home
Physical Mashups in the Web-Home
 
Internet GIS
Internet GISInternet GIS
Internet GIS
 
2008_IRLbot
2008_IRLbot2008_IRLbot
2008_IRLbot
 
Building apps with HBase - Big Data TechCon Boston
Building apps with HBase - Big Data TechCon BostonBuilding apps with HBase - Big Data TechCon Boston
Building apps with HBase - Big Data TechCon Boston
 
As25266269
As25266269As25266269
As25266269
 
Application protocols
Application protocolsApplication protocols
Application protocols
 
Xldb2011 tue 1005_linked_in
Xldb2011 tue 1005_linked_inXldb2011 tue 1005_linked_in
Xldb2011 tue 1005_linked_in
 
Angular JS and Magento
Angular JS and MagentoAngular JS and Magento
Angular JS and Magento
 
RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...
RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...
RestThing: A Restful Web Service Infrastructure for Mash-up Physical and Web ...
 
Unleash the Power of your API
Unleash the Power of your APIUnleash the Power of your API
Unleash the Power of your API
 
Simplified Web2.0 application development with Project Zero
Simplified Web2.0 application development with Project ZeroSimplified Web2.0 application development with Project Zero
Simplified Web2.0 application development with Project Zero
 
105 108
105 108105 108
105 108
 
W3C Mobile Web technologies
W3C Mobile Web technologiesW3C Mobile Web technologies
W3C Mobile Web technologies
 
Cloud Foundry Bootcamp
Cloud Foundry BootcampCloud Foundry Bootcamp
Cloud Foundry Bootcamp
 
Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000Web Performance Acceleration with Strangeloop AS1000
Web Performance Acceleration with Strangeloop AS1000
 
Compuware APM Solution
Compuware APM SolutionCompuware APM Solution
Compuware APM Solution
 
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns FrameworksMike Taulty MIX10 Silverlight 4 Patterns Frameworks
Mike Taulty MIX10 Silverlight 4 Patterns Frameworks
 

Mehr von Information Technology

Mehr von Information Technology (20)

Web303
Web303Web303
Web303
 
Sql Server Security Best Practices
Sql Server Security Best PracticesSql Server Security Best Practices
Sql Server Security Best Practices
 
SQL 2005 Disk IO Performance
SQL 2005 Disk IO PerformanceSQL 2005 Disk IO Performance
SQL 2005 Disk IO Performance
 
RAID Review
RAID ReviewRAID Review
RAID Review
 
Review of SQL
Review of SQLReview of SQL
Review of SQL
 
Sql 2005 high availability
Sql 2005 high availabilitySql 2005 high availability
Sql 2005 high availability
 
IIS 7: The Administrator’s Guide
IIS 7: The Administrator’s GuideIIS 7: The Administrator’s Guide
IIS 7: The Administrator’s Guide
 
MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2
 
MOSS 2007 Deployment Fundamentals -Part1
MOSS 2007 Deployment Fundamentals -Part1MOSS 2007 Deployment Fundamentals -Part1
MOSS 2007 Deployment Fundamentals -Part1
 
Clustering and High Availability
Clustering and High Availability Clustering and High Availability
Clustering and High Availability
 
F5 beyond load balancer (nov 2009)
F5 beyond load balancer (nov 2009)F5 beyond load balancer (nov 2009)
F5 beyond load balancer (nov 2009)
 
WSS 3.0 & SharePoint 2007
WSS 3.0 & SharePoint 2007WSS 3.0 & SharePoint 2007
WSS 3.0 & SharePoint 2007
 
SharePoint Topology
SharePoint Topology SharePoint Topology
SharePoint Topology
 
Sharepoint Deployments
Sharepoint DeploymentsSharepoint Deployments
Sharepoint Deployments
 
Microsoft Clustering
Microsoft ClusteringMicrosoft Clustering
Microsoft Clustering
 
Web Hacking
Web HackingWeb Hacking
Web Hacking
 
Migration from ASP to ASP.NET
Migration from ASP to ASP.NETMigration from ASP to ASP.NET
Migration from ASP to ASP.NET
 
Internet Traffic Monitoring and Analysis
Internet Traffic Monitoring and AnalysisInternet Traffic Monitoring and Analysis
Internet Traffic Monitoring and Analysis
 
Windows network security
Windows network securityWindows network security
Windows network security
 
SQL -PHP Tutorial
SQL -PHP TutorialSQL -PHP Tutorial
SQL -PHP Tutorial
 

Kürzlich hochgeladen

What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 

Kürzlich hochgeladen (20)

What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 

Scalable Internet Servers and Load Balancing

  • 1. Computer Networks 11/11/2009 Internet Online Applications Scalable Internet Servers and Load Balancingg  Internet online applications  Applications accessible to online users through Internet Internet.  Examples  Online keyword search engine: Google.  Web email: Gmail.  News: CNN, NBC news. Web directory: Yahoo!, MSN. Kai Shen   Scalability requirements  Many simultaneous user accesses; large amount of hosted data, …  Internet servers  Computer systems that host these online applications 11/11/2009 CSC 257/457 - Fall 2009 1 11/11/2009 CSC 257/457 - Fall 2009 2 Internet Servers are at the Search Engine as An Example: Application Layer Step 1 – Crawling  Normally on the end hosts, involving no routers  Function on transport-layer protocols TCP/UDP  Crawling – get all these Web pages out there: g g p g  First retrieve some root pages;  Parse their content and follow hyperlinks to retrieve more pages;  Depth-first search or breadth-first search? Remove Internet duplicates. Google Yahoo! CNN 11/11/2009 CSC 257/457 - Fall 2009 3 11/11/2009 CSC 257/457 - Fall 2009 4 CSC 257/457 - Fall 2009 1
  • 2. Computer Networks 11/11/2009 Performance Analysis for Search Engine as An Example: Crawling Step 2 – Indexing  What are the resources involved?  CPU processing for TCP/HTTP protocol handling and the p g p g  Indexing parsing of page content f  crawled raw web pages are not easy to search.  writing to disk storage  we index them to formats that are easy to search. network bandwidth to remote web sites As part of indexing, we need to give each page an ID    Assume average page size 10KB  using a hash function. raw processing power of a single CPU ……   1000 requests/sec Computer: Page #123 Page #357  I/O to a single disk  100 seeks/sec  up to 100 requests/sec  network bandwidth from/to the Internet  T1 link (1.5Mbit/s)  12 requests/sec Networks: Page #124 Page #468 ……  T3 link (45Mbit/s)  360 requests/sec 11/11/2009 CSC 257/457 - Fall 2009 5 11/11/2009 CSC 257/457 - Fall 2009 6 Search Engine as An Example: Step 3 – Online Search Partitioning and Replication Index servers (partition 1) Index server Firewall/ Firewall Router Local- Local-area network Web server/ Query handler Local- Local-area Internet Internet network Index servers (partition 2) Page server Web server/ Query handlers Page servers Scalability, reliability 11/11/2009 CSC 257/457 - Fall 2009 7 11/11/2009 CSC 257/457 - Fall 2009 8 CSC 257/457 - Fall 2009 2
  • 3. Computer Networks 11/11/2009 Load Balancing on Internet Servers Load Balancing over Internet Technique 1 - DNS Rotation Servers 128.111.1.2  Popular sites like Google or CNN receive tens or hundreds of millions of hits per day day. IP address of CNN.com?  A large number of replicated servers are used at Firewall/ 128.111.1.3 these sites. Router IP address of  Key question: how to balance client requests over CNN.com? Internet these servers? 128.111.1.4 128.111.1.2 Web servers for CNN.com 128.111.1.3 DNS server for CNN.com 11/11/2009 CSC 257/457 - Fall 2009 9 11/11/2009 CSC 257/457 - Fall 2009 10 Load Balancing on Internet Servers Discussions on DNS Rotation Technique 2 – Cooperative Offloading 128.111.1.2  Advantages  Require almost no change on the existing Internet architecture Firewall/ 128.111.1.3 Router  Problems  DNS Caching Internet  Rigid load balancing policy  can’t balance based on runtime load changes 128.111.1.4  slow or no adjustment in response to failures Web servers for CNN.com 11/11/2009 CSC 257/457 - Fall 2009 11 11/11/2009 CSC 257/457 - Fall 2009 12 CSC 257/457 - Fall 2009 3
  • 4. Computer Networks 11/11/2009 Discussions on Cooperative Cooperative Offloading with Offloading TCP Handoff [Pai et al. ASPLOS1998] 128.111.1.2 What does 1.3 do?  Can be combined with the DNS rotation. What does 1.4 do?  Advantages:  More flexible policy is possible clt IP Firewall/ 128.111.1.3 Router  Be more responsive to runtime workload and server 1.3 failures (to a certain degree) clt IP Internet 1.4  Problems: 128.111.1.4  Need software changes on servers 1.3 13  Longer delay clt IP Web servers for CNN.com All packets in a TCP connection must offload to one server? 11/11/2009 CSC 257/457 - Fall 2009 13 11/11/2009 CSC 257/457 - Fall 2009 14 Cooperative Offloading vs. Load Balancing on Internet Servers TCP Handoff Technique 3 – Load Balancing Router 128.111.1.2 clt IP  Software changes on the servers g 1.2 1.2 clt IP clt IP Delays 128.111.1.3  Firewall 1.1 LB Router Internet 128.111.1.1 1.1 clt IP 128.111.1.4 Web servers for CNN.com 11/11/2009 CSC 257/457 - Fall 2009 15 11/11/2009 CSC 257/457 - Fall 2009 16 CSC 257/457 - Fall 2009 4
  • 5. Computer Networks 11/11/2009 More About Load Balancing Router Summary How deep do we look into the network protocol stack?  Scalable Internet servers  Network layer (IP)?  partitioning  replication  Transport layer (TCP/UDP)?  Application layer?  Load balancing for Internet servers  DNS rotation Load balancing policies in LB routers (Goal: transparency,  cooperative offloading (w. TCP handoff) plug-and-play)  Load balancing router  Simple rotation  Changes required on the components: components DNS server?? Least number of active requests    Web server??  Shortest response time  client??  router?? 11/11/2009 CSC 257/457 - Fall 2009 17 11/11/2009 CSC 257/457 - Fall 2009 18 CSC 257/457 - Fall 2009 5