Web Hosting Herng-Yow Chen. Outline How different web site can be “ virtually hosted ” on the same server, and how this affects HTTP How to make web sites.

Slides:



Advertisements
Similar presentations
Transport Layer3-1 Transport Overview and UDP. Transport Layer3-2 Goals r Understand transport services m Multiplexing and Demultiplexing m Reliable data.
Advertisements

Lecture 7 Transport Layer
1 Server Selection & Content Distribution Networks (slides by Srini Seshan, CS CMU)
Chapter 3: Transport Layer
Cis e-commerce -- lecture #6: Content Distribution Networks and P2P (based on notes from Dr Peter McBurney © )
CSE 190: Internet E-Commerce Lecture 16: Performance.
Layer 7- Application Layer
EEC-484/584 Computer Networks Discussion Session for HTTP and DNS Wenbing Zhao
Transport Layer3-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer.
CDNs & Replication Prof. Vern Paxson EE122 Fall 2007 TAs: Lisa Fowler, Daniel Killebrew, Jorge Ortiz.
Lecture 8 Chapter 3 Transport Layer
1 Web Proxies Dr. Rocky K. C. Chang 6 November 2005.
Anycast Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Internet Networking Spring 2002 Tutorial 13 Web Caching Protocols ICP, CARP.
1 Web Content Delivery Reading: Section and COS 461: Computer Networks Spring 2007 (MW 1:30-2:50 in Friend 004) Ioannis Avramopoulos Instructor:
Some slides are in courtesy of J. Kurose and K. Ross Review of Previous Lecture Electronic Mail: SMTP, POP3, IMAP DNS Socket programming with TCP.
Web Caching and CDNs March 3, Content Distribution Motivation –Network path from server to client is slow/congested –Web server is overloaded Web.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
8-1 Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable data transfer m flow.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #12 LSNAT - Load Sharing NAT (RFC 2391)
1 Networking A computer network is a collection of computing devices that are connected in various ways in order to communicate and share resources. The.
Web Client/Server Communication A290/A590, Fall /09/2014.
APACHE SERVER By Innovationframes.com »
Hands-On Microsoft Windows Server 2008 Chapter 8 Managing Windows Server 2008 Network Services.
Linux Operations and Administration
1 Content Distribution Networks. 2 Replication Issues Request distribution: how to transparently distribute requests for content among replication servers.
Content Distribution March 8, : Application Layer1.
Redirection and Load Balancing
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
Implementing ISA Server Publishing. Introduction What Are Web Publishing Rules? ISA Server uses Web publishing rules to make Web sites on protected networks.
1 Chapter 6: Proxy Server in Internet and Intranet Designs Designs That Include Proxy Server Essential Proxy Server Design Concepts Data Protection in.
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
2: Application Layer1 Chapter 2 outline r 2.1 Principles of app layer protocols r 2.2 Web and HTTP r 2.3 FTP r 2.4 Electronic Mail r 2.5 DNS r 2.6 Socket.
Data Communications and Computer Networks Chapter 3 CS 3830 Lecture 12 Omar Meqdadi Department of Computer Science and Software Engineering University.
Chapter 3 Transport Layer
Module 11: Implementing ISA Server 2004 Enterprise Edition.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Transport Layer1 Ram Dantu (compiled from various text books)
Information Flow Across the Internet. What is the Internet? A large group of computers that link together to form the Worldwide Area Network (WAN)
CDN: Content Distribution Networks  References:  CS613 textbook, “Computer Networking – A Top-Down Approach”, 6 th edition. Chapter  The text.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July A.
CSE 461 HTTP and the Web. This Lecture  HTTP and the Web (but not HTML)  Focus  How do Web transfers work?  Topics  HTTP, HTTP1.1  Performance Improvements.
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
Transport Layer 3-1 Chapter 3 Outline r 3.1 Transport-layer services r 3.2 Multiplexing and demultiplexing r 3.3 Connectionless transport: UDP.
Web Caching and Replication Presented by Bhushan Sonawane.
DotSlash – or how to deal with 15 minutes of fame Weibin Zhao Henning Schulzrinne Columbia University CATT/WICAT Annual Research Review November 14, 2003.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
CITA 310 Section 5 Virtual Hosts and Virtual Directories (Selected Topics from Textbook Chapter 6)
Content Delivery Networks: Status and Trends Speaker: Shao-Fen Chou Advisor: Dr. Ho-Ting Wu 5/8/
Transport Layer3-1 Chapter 3: Transport Layer Our goals: r understand principles behind transport layer services: m multiplexing/demultipl exing m reliable.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
John S. Otto Mario A. Sánchez John P. Rula Fabián E. Bustamante Northwestern, EECS.
Also known as hardware/physi cal address Customer Computer (Client) Internet Service Provider (ISP) MAC Address Each Computer has: Given by NIC card.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 1 Installing A Web Server.
Multicast in Information-Centric Networking March 2012.
Chapter 3 Transport Layer
Introduction to Networks
Chapter 3 Transport Layer
Chapter 3 outline 3.1 Transport-layer services
Affinity Depending on the application and client requirements of your Network Load Balancing cluster, you can be required to select an Affinity setting.
CONNECTING TO THE INTERNET
Processes The most important processes used in Web-based systems and their internal organization.
Introduction to Networks
ECE 671 – Lecture 16 Content Distribution Networks
Computer Communication & Networks
CSE 461 HTTP and the Web.
Presentation transcript:

Web Hosting Herng-Yow Chen

Outline How different web site can be “ virtually hosted ” on the same server, and how this affects HTTP How to make web sites more reliable under heavy traffic How to make web site load faster

Hosting services

A Simple Example : Dedicated Hosting client Internet Irene ’ s ISP Content Mary Joe

Virtual Hosting

client Internet Irene ’ s ISP Content Mary Joe

Virtual server request lacks Host information

Virtual Server Request Lacks Host Information Client A Client B Internet (A getting GET /index.html HTTP/1.0 User-agent: SuperBrowser v GET /index.html HTTP/1.0 User-agent: WebSurfer 2000 (B getting HTTP/1.0 requests do not contain hostname information, so they do not support web servers that host multiple web sites. (HTTP/1.1 supports a Host header to fix this problem) /voting /mary /joe

Making virtual hosting work Virtual hosting by URL path Virtual hosting by port number Virtual hosting by IP address Virtual hosting by Host header

Virtual hosting by URL path The problem?

Virtual hosting by port number Install multiple HTTP servers one listens 80 one listens 81, and so on. The problem?

Virtual hosting by IP address Multiple IPs are assigned to single computer. Different IP corresponds to different host. The problem?

Virtual hosting by IP address Client A Client B Internet /voting /mary /joe Dest IP address Directory /voting /joe /mary

Virtual hosting by Host header HTTP/1.1 solution Use single IP, single port to serve incoming HTTP requests to different hosts.

Virtual hosting by Host header Client A Client B Internet (A getting GET /index.html HTTP/1.1 User-agent: SuperBrowser v1.3 Host: GET /index.html HTTP/1.1 User-agent: WebSurfer 2000 Host: marys-antiques.com (B getting The HTTP Host header carries the hostname information that would otherwise be lost in normal server requests,allowing name-based virtual hosting /voting /mary /joe

HTTP/1.1 Host Headers Syntax and usage Missing Host headers Interpreting Host headers Host headers and proxies

Making web sites reliable There are several times during which web sites commonly break: Server downtime Traffic spikes Network outages or losses Some ways of anticipating and dealing with the problems Mirrored server farms Content distribution networks

Mirrored server farms HTTP redirection DNS redirection Discussed in Chapter 20.

Mirrored Server Farms Client Internet Replica origin server Master origin server Replica origin servers Switch

Mirrored Server Farms (cont.) New York Replica origin server Chicago (HQ) Master origin server Miami Replica origin server Little Rock Replica origin server Internet

Content distribution networks Surrogate caches in CDNs Proxy caches in CDNs

Proxy Caches in CDNs Client Internet and lots of origin servers Caching Proxy Switch

Making web sites faster Many of the technologies mentioned in the previous slides also help web site load faster. Server farms and distributed proxy caches or surrogate servers distribute network traffic, avoiding congestion. Distributing the content brings it closer to end users, so that the travel time from server to client is lower. The key to speed of resource access is how requests and responses are directed from client to server and back across the Internet. (see more details in next lectures, redirection methods.) Another approach to speeding up web sites is encoding the content for fast transporting. Namely, compressing the content. (see Transfer Encoding and Chunked Encoding for details.)

Reference RFC 3040, “ Internet Web Replication and Caching Taxonomy, ” is a reference for the vocabulary of web replication and caching applications. cdi-request-routing-reqs-00.txt cdi-request-routing-reqs-00.txt “ Request-Routing Requirements for Content Internetworking. ” Apache: The Definitive Guide Ben Laurie and Peter Lauire, O ’ Reilly & Associates, Inc. This book describes how to run the open source Apache web server.