Chap2 HTTP - • •"" – Many slides in this...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: • • # " " – ! Many slides in this document adapted from materials for Kurose and Ross, Computer Networking, 5th edition. copyright 1996-2009 J.F Kurose and K.W. Ross, All Rights Reserved – ! – ! – – – – $ %%& '%& () %& & &* + & ) ,-( • – &+ ( ! • • " • • • && • • • • • • !! ! + & ! – – – / ! 11 " 0 " –– ! ! ! ! ! ! ! ! ! * . • –+ ! ! ! •& •$"! / &0 & !& & – – – – – – –! + !! & " ! + !! & ! ! 2 3 4 •5 •4 •5 ! ! , ! 61 .7 2 63 8 ) ! • • ! • & " ! && ! !! & ! : ! + & 9 $"! ( !& & +&& & & & 1 • ( " / ! (0 1 • ! " # Ì&& = – – – <! 0 " <! ! ! !! / && ! + – – !" ! • " !! + !! & ! + !! & ; • ( • • – – ! ! ! ! ! " ! host or server host or server controlled by app developer ! ! •% # – 11 ! > process socket TCP with buffers, variables process socket •) – ! ! # ! = ! Internet TCP with buffers, variables •) – ! &" ! •! ! ?' • • 1 1 $ %%& () %& 7% & • 11( " controlled by OS •? != ! ! % Application file transfer e-mail Web documents real-time audio/video stored audio/video interactive games instant messaging > Data loss no loss no loss no loss loss-tolerant loss-tolerant loss-tolerant no loss Throughput elastic elastic elastic audio: 5kbps-1Mbps video:10kbps-5Mbps same as above few kbps up elastic Time Sensitive no no no yes, 100’s msec yes, few secs yes, 100’s msec yes and no + %& • > • ! • • ! • !! B " A , &: :C ! ! @ !" " ! • A ,& • " ! " " ! ! ! ! * . + Application e-mail remote terminal access Web file transfer streaming multimedia Internet telephony Application layer protocol SMTP [RFC 2821] Telnet [RFC 854] HTTP [RFC 2616] FTP [RFC 959] HTTP (eg Youtube), RTP [RFC 1889] SIP, RTP, proprietary (e.g., Skype) Underlying transport protocol TCP TCP TCP TCP TCP or UDP typically UDP C" ' •C" • "D •C" •5 • 5# D " $ %) ! "D "D !! A? ! $ %%& E ! A? ! F "D E&54 " $ %) "" www.someschool.edu/someDept/pic.gif 2 3 $ %%& $ %%& • • C "@ ! – "D – "D > ) - $ %%& A • & 5# / $ %%& G " > • !0 H # %& / 9 %& 0 %& & $ %%& # / %%& $ / %%& $ %& / 0 Ì Ì !" " 0 !C " 0 ! " G! C" > HC " ( • • C" ! G #I / ! G ! H " 0 " H ! " • 8 9 * ( $ %%& - $ %%& / .1 $ %%& 10 %& 1 (contains text, A ? www.someSchool.edu/someDepartment/home.index references to 10 jpeg images) 1 $ %%& %& $ %%& / 0 www.someSchool.edu on port 9 21 $ %%& "1 $ %%& www.someSchool.edu %& G H 91 ! ! 1& !D 2 "D ! "D 31 ( D 1 $ %%& / ! $ %%& A? 0 1) %& *1 $ %%& > ! > ! "D ! ! "D someDepartment/home.index ; , & ?%% !" 1 $ %%& ? • • %& ? %% > & $ %%& ?%% ! & • • • " "D %& ! • $ %%& $ %%& ! "> " ! "D > ! • ?%% ! "D $ %%& 1 $ %%& > ( "D %& ? • • ! • ?%% ?%% $ %%& " %& > $ %%& ? %% ! J ?%%K time time • , $ %%& • • $ %%& – > $ %%& > $ %%& > !" 0 ( +/ + > / 5% & (% 4 $5 , !0 ! GET /somedir/page.html HTTP/1.1 Host: www.someschool.edu User-agent: Mozilla/4.0 Connection: close Accept-language:fr (extra carriage return, line feed) ! ! ! * . . A & •C" •+ "! ! ! ! !! A? •A •+ ! ! 4 5% > ! !! $ %%& 1 • 4 5% • & (% • $5 , A? – > ! "D ) ! $ %%& 1 • 4 5% & (% $ 5 , • &A % – ! ! A? ! ! "! ! • , 5 5%5 –! A? www.somesite.com/animalsearch?monkeys&banana 2 3 $ %%& / ! 0 ! A ) DC" ' 0 0 *0 .0" !" !! @" " C" ! ! $ %%& $ %%& @ HTTP/1.1 200 OK Connection close Date: Thu, 06 Aug 1998 12: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 ... 5# •( + • • – – ! > " $ %%& + , " + , & > ! > $ %) 11 ! ! 8 9 G H/ 1 0 C • • • • 0 " ! ! " $ Ì Ì G ! H / " < Ì ! Ì " !0 ! ! ebay 8734 > < + , 389 ebay 8734 amazon 1678 Set-cookie: 1678 > ! /" C cookie: 1678 ! ebay 8734 amazon 1678 cookie: 1678 > ; * 2 C" 4 > / C" # 0 • " • 1> " ! !" J J2 @ &# "D <J # " + • •" > – – "D " ! $ %%& • 2) " "D > "D "D • • • ! J > < < ! K K J+ -! K - J 2L J ! K ! L )" - * * # " • " !! )" - J 2L ! K K J+ -! K ! ! J 2L K / " + 0 " • 1 . # / " + 0 > • )" > • • • J • < < % ! .L 3L < 3L ! > ! > " !" ! " ! 2) " • • )" - ! )" - / • ! K ! 1 3M/ 1 0 N1 . 0 J+ K -! K1 .M ! J ! ** *. ! • • 4 ! @ ! ! "D ! ! 4 5% $ %%& > ! $ %%& > If-modified-since: <date> If-modified-since: <date> "D ! ! $ %%& HTTP/1.0 304 Not Modified • "D ! HTTP/1.0 304 Not Modified ! $ %%& > If-modified-since: <date> "D ! ! $ %%& HTTP/1.0 200 OK <data> *2 3 ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern