CS 115: COMPUTING FOR THE SOCIO-TECHNO WEB HOW THE INTERNET WORKS: HTTP, TCP/IP AND OTHER PROTOCOLS (

Slides:



Advertisements
Similar presentations
An Introduction to the Internet and the Web Frank McCown COMP 250 – Internet Development Harding University.
Advertisements

World Wide Web Basics Original version by Carolyn Watters (Dalhousie U. Computer Science)
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
HyperText Transfer Protocol (HTTP)
Application Layer-11 CSE401N: Computer Networks Lecture-4 Application Layer Overview HTTP.
Chapter 2: Application Layer
HyperText Transfer Protocol (HTTP) Computer Networks Computer Networks Spring 2012 Spring 2012.
Cornell CS502 Web Basics and Protocols CS 502 – Carl Lagoze Acks to McCracken Syracuse Univ.
2/15/2011Harvard Bits1. 2/15/2011Harvard Bits2 US Telegraph “Network” in 1856.
9/16/2003-9/18/2003 The Application Layer and Java Programming September 16-18, 2003.
Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross Addison-Wesley, July.
Web, HTTP and Web Caching
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
EEC-484/584 Computer Networks Lecture 4 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
PL-IV- Group A HTTP Request & Response Header
CS 3830 Day 7 Introduction : Application Layer 2 Processes communicating Process: program running within a host. r within same host, two processes.
FTP (File Transfer Protocol) & Telnet
(Representation of …) URLs, IP addresses in the computer era 114 – Lecture 8.
Mail (smtp), VoIP (sip, rtp)
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.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
2: Application Layer1 CS 4244: Internet Software Development Dr. Eli Tilevich.
Rensselaer Polytechnic Institute Shivkumar Kalvanaraman, Biplab Sikdar 1 The Web: the http protocol http: hypertext transfer protocol Web’s application.
20-1 Last time □ NAT □ Application layer ♦ Intro ♦ Web / HTTP.
2: Application Layer1 Internet apps: their protocols and transport protocols Application remote terminal access Web file transfer streaming multimedia.
Week 11: Application Layer1 Web and HTTP First some jargon r Web page consists of objects r Object can be HTML file, JPEG image, Java applet, audio file,…
2: Application Layer1 Web and HTTP First some jargon Web page consists of base HTML-file which includes several referenced objects Object can be HTML file,
World-wide-web o Tim Berners-Lee implements his childhood Enquire “2.0” o It took off because it could do hypertext on the internet! o 3 crucial components:
1 Introductory material. This module illustrates the interactions of the protocols of the TCP/IP protocol suite with the help of an example. The example.
Protocols and HTTP o Tim Berners-Lee implements his childhood Enquire “2.0” o It took off because it could do hypertext on the internet! o 3 crucial components:
1 HTTP EECS 325/425, Fall 2005 September Chapter 2: Application layer r 2.1 Principles of network applications m app architectures m app requirements.
1 CS 4396 Computer Networks Lab TCP/IP Networking An Example.
CIS679: Lecture 13 r Review of Last Lecture r More on HTTP.
1-1 HTTP request message GET /somedir/page.html HTTP/1.1 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:fr request.
2: Application Layer1 Chapter 2 Application Layer Computer Networking: A Top Down Approach Featuring the Internet, 3 rd edition. Jim Kurose, Keith Ross.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
EEC-484/584 Computer Networks Lecture 4 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
COMP2322 Lab 2 HTTP Steven Lee Jan. 29, HTTP Hypertext Transfer Protocol Web’s application layer protocol Client/server model – Client (browser):
Data Communication EDA344, DIT420 Description of Lab 1 and Optional Programming HTTP Assignment Bapi Chatterjee Prajith R G.
Week 11: Application Layer 1 Web and HTTP r Web page consists of objects r Object can be HTML file, JPEG image, Java applet, audio file,… r Web page consists.
Lecture 5 Internet Core: Protocol layers. Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP 
1 ** THE INTERNET ** Large, worldwide collection of networks that use a common protocol to communicate with each other A network of networks.
2: Application Layer 1 Chapter 2 Application Layer These ppt slides are originally from the Kurose and Ross’s book. But some slides are deleted and added.
Data and Computer Communications Chapter 2 – Protocol Architecture, TCP/IP, and Internet-Based Applications.
Introduction to the Internet
Web fundamentals: Clients, Servers, and Communication
Block 5: An application layer protocol: HTTP
Instructor Materials Chapter 5 Providing Network Services
Computer Networks.
Application layer 1 Principles of network applications 2 Web and HTTP
Lecture 2 Dr. Richard Spillman Fall 2009
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
COMP2322 Lab 2 HTTP Steven Lee Feb. 8, 2017.
Internet transport protocols services
Networking for Home and Small Businesses – Chapter 6
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Chapter 2 Application Layer
Introduction to Networks
Web Development & Design Chapter 1, Sections 4, 5 & 6
Networking for Home and Small Businesses – Chapter 6
I. Basic Network Concepts
1 Introduction to the Internet.
Multimedia and Networks
لایه ی کاربرد مظفر بگ محمدی 2: Application Layer.
Lecture 6: TCP/IP Networking 1nd semester By: Adal ALashban.
CS 5565 Network Architecture and Protocols
HyperText Transfer Protocol
Networking for Home and Small Businesses – Chapter 6
Presentation transcript:

CS 115: COMPUTING FOR THE SOCIO-TECHNO WEB HOW THE INTERNET WORKS: HTTP, TCP/IP AND OTHER PROTOCOLS (

U-R-L  Uniform Resource Locator  T. B-L wanted URI: Universal Resource Identifier  It tells you where something is located, i.e., the name of the server that has it  It also tells you how you could get it Server and domainAccess method Static URL DocumentPath gov - Government agencies edu - Educational institutions org - Organizations (nonprofit) mil - Military com - commercial business net - Network organizations ca – Canada kz–…

2/11/2009 Harvard Bits 3

URL INVOKING A WEB PROGRAM Server and domainAccess method Dynamic URL ParameterWeb program Server and domainAccess method Dynamic fake URL Web program and parameter

CLIENTS AND SERVERS 5 Client Computers Web Server Web Server cs.wellesley.edu Server firstclass.wellesley.edu downloadupload THE INTERNET

YOUR ADDRESS IS ENUMERATED Every server is enumerated in an IP address IPv4: 32 bits written as 4 decimal numerals up to 256, e.g (Wellesley College) Wellesley College How many addresses can it represent? IPv6: 128 bits written as 8 blocks of 4 hex digits each, e.g. AF43:23BC:CAA1:0045:A5B2:90AC:FFEE:8080 How many addresses are in IPv6? Client translates URLs to IP addresses, e.g. cs.wellesley.edu  Uses authoritative sites for address translation a.k.a: “Domain Name Server” (DNS)DNS

WHAT IS *YOUR* IP ADDRESS? IP: Internet Protocol

WHAT IS THE INTERNET? “Ten movies streaming across that, that Internet, and what happens to your own personal Internet? I just the other day got...an Internet was sent by my staff at 10 o'clock in the morning on Friday. I got it yesterday [Tuesday]. Why? Because it got tangled up with all these things going on the Internet commercially. [...] They want to deliver vast amounts of information over the Internet. And again, the Internet is not something that you just dump something on. It's not a big truck. It's a series of tubes. And if you don't understand, those tubes can be filled and if they are filled, when you put your message in, it gets in line and it's going to be delayed by anyone that puts into that tube enormous amounts of material, enormous amounts of material.”Ten movies streaming across that, that Internet, and what happens to your own personal Internet? I just the other day got...an Internet was sent by my staff at 10 o'clock in the morning on Friday. I got it yesterday [Tuesday]. Why? Because it got tangled up with all these things going on the Internet commercially.They want to deliver vast amounts of information over the Internet. And again, the Internet is not something that you just dump something on. It's not a big truck. It's a series of tubes. And if you don't understand, those tubes can be filled and if they are filled, when you put your message in, it gets in line and it's going to be delayed by anyone that puts into that tube enormous amounts of material, enormous amounts of material Senator Ted Stevens, Chair, Comm. on Commerce, Science and Transportation (charged with regulating the internet)

WHAT IS THE INTERNET?

NO REALLY, WHAT IS IT? T_eBM

A NUTS AND BOLTS VIEW OF INTERNET The Internet is a network of networks consisting of: hosts (can be can be either clients or servers) communication links of varying bandwidths routers (switching devices) modems translate bits to travel correctly through wires and air A client program running on a host, following a protocol, requests and receives a file from a server program running on another system We call such programs processes Network Protocols and HTTP 1-11 client server routers modem

ARPANET,

SENDING AND RECEIVING INFORMATION Network Protocols and HTTP 1-13 Handshake

TCP/IP VS POSTAL MAIL PROTOCOLS 14 TCP ~ Higher Level Protocols IP ~ Lower Level Protocols

TCP/IP: BASIC PROTOCOLS TCP: Transport Control Protocol Creates logical connection b/w two machines on the network Makes connected machines think that they are directly connected Provides reliable, perfect transport of messages IP: Internet Protocol Breaks data into packets to move through routers Tries hard, but may drop packets We usually talk about TCP/IP TCP uses IP and guarantees delivery 15

MESSAGE PIPELINING When the message is segmented into packets, the network is said to pipeline message transmission. 1-16

Standards, although they are merely conventions, give rise to vast innovation, if they are well chosen, spare, and widely adopted.

PACKET SWITCHING Messages are broken into packets each of which travels from the source to destination through a maze of routers and links. Packet switching achieves much higher efficiency than full-file travel 1-18

TRACEROUTE FROM GAIA.CS.UMASS.EDU cs-gw ( ) 1 ms 1 ms 2 ms 2 border1-rt-fa5-1-0.gw.umass.edu ( ) 1 ms 1 ms 2 ms 3 cht-vbns.gw.umass.edu ( ) 6 ms 5 ms 5 ms 4 jn1-at wor.vbns.net ( ) 16 ms 11 ms 13 ms 5 jn1-so wae.vbns.net ( ) 21 ms 18 ms 18 ms 6 abilene-vbns.abilene.ucaid.edu ( ) 22 ms 18 ms 22 ms 7 nycm-wash.abilene.ucaid.edu ( ) 22 ms 22 ms 22 ms ( ) 104 ms 109 ms 106 ms 9 de2-1.de1.de.geant.net ( ) 109 ms 102 ms 104 ms 10 de.fr1.fr.geant.net ( ) 113 ms 121 ms 114 ms 11 renater-gw.fr1.fr.geant.net ( ) 112 ms 114 ms 112 ms 12 nio-n2.cssi.renater.fr ( ) 111 ms 114 ms 116 ms 13 nice.cssi.renater.fr ( ) 123 ms 125 ms 124 ms 14 r3t2-nice.cssi.renater.fr ( ) 126 ms 126 ms 124 ms 15 eurecom-valbonne.r3t2.ft.net ( ) 135 ms 128 ms 133 ms ( ) 126 ms 128 ms 126 ms 17 * * * 18 * * * 19 fantasia.eurecom.fr ( ) 132 ms 128 ms 136 ms 3 delay measurements no response trans-oceanic link

HTTP: HYPERTEXT TRANSFER PROTOCOL HTTP is the Web’s client/server protocol. User agent (browser) implements the client side of HTTP. Web pages generally consist of an HTML file which references other objects (JPEG, Java applet, video, audio clips). 1-20

HTTP/1.0 NONPERSISTENT CONNECTION a.Client initiates a TCP connection to 2.Client sends HTTP request for file /someDir/file.html 1b.Server at host accepts connection and acknowledges. 3.Server receives message, finds and sends file in HTTP response. 4.Client receives response. terminates connection, examines file, and may request other files. 5.Steps 2, 3, 4 are repeated for each requested file.

HTTP REQUEST MESSAGE 1-22 GET /someDir/file.html HTTP/1.0 Host: User-agent: Mozilla/4.0 Connection: close Accept-language:en,fr request line (GET, POST, HEAD commands) header lines Carriage return, line feed indicates end of message

HTTP RESPONSE MESSAGE 1-23 HTTP/ OK Connection: close Date: Thu, 06 Aug :00:15 GMT Server: Apache/1.3.0 (Unix) Last-Modified: Mon, 22 Jun 1998 …... Content-Length: 6821 Content-Type: text/html data data data data data... status line (protocol status code status phrase) header lines requested HTML file

TESTING HTTP USING TELNET Type: telnet cs.wellesley.edu 80 Type: GET /~mir/index.html HTTP/1.0 Opens TCP connection to port 80 Issues a GET request to HTTP server (you must hit carriage return twice at the end). 1-24

SOME HTTP RESPONSE STATUS CODES 200 OK request succeeded, requested object in this message 301 Moved Permanently requested object moved, new location specified in this message (Location) 400 Bad Request request message not understood by server 404 Not Found requested document not found on this server 505 HTTP Version Not Supported 1-25

SMTP (MAIL) PROTOCOL The sending process must simply specify the name or address of the host machine (hostname or IP address), and The process on that host that will handle the received message (port number). Mail port is usually