A Closer Look at HTTP, TCP, IP, and PPP Chapter 3 Copyright 2001 Prentice Hall Revision 2: July 2001.

Slides:



Advertisements
Similar presentations
CISCO NETWORKING ACADEMY Chabot College ELEC Transport Layer (4)
Advertisements

CCNA – Network Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
Transmission Control Protocol (TCP)
Intermediate TCP/IP TCP Operation.
Chapter 7 – Transport Layer Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
Module A.  This is a module that some teachers will cover while others will not  This module is a refresher on networking concepts, which are important.
TCP/IP Lecture Extra. TCP/IP Developed by DARPA (Defense Advanced Research Projects) TCP is a connection-oriented transport protocol that sends data as.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
Chapter 3 Review of Protocols And Packet Formats
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Gursharan Singh Tatla Transport Layer 16-May
Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson.
What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host IP treats a computer as an endpoint of communication Best.
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
More on the IP Internet Protocol. Internet Layer Process Transport layer process passes EACH TCP segment to the internet layer process for delivery Transport.
1 Transport Layer Computer Networks. 2 Where are we?
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
More on TCP/IP Module A Copyright 2001 Prentice Hall.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
A Closer Look at HTTP HyperText Transfer Protocol.
1 Chapter Overview TCP/IP DoD model. 2 Network Layer Protocols Responsible for end-to-end communications on an internetwork Contrast with data-link layer.
COMT 429 The Internet Protocols COMT 429. History 1969First version of a 4 node store and forward network, the ARPAnet 1972Formal demonstration of ARPAnet.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 8-1 TCP/IP Internetworking Chapter 8 Updated January 2009 Raymond Panko’s Business Data Networks.
Mukesh N. Tekwani Elphinstone College Mumbai
A Closer Look at HTTP, TCP, IP, and PPP Chapter 3 Copyright 2001 Prentice Hall Revision 2: July 2001.
Network Architecture Models: Layered Communications School of Business Eastern Illinois University © Abdou Illia, Fall 2015 (September 14, 2015 ) Encapsulation.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 04_a Transport Protocols - UDP Instructor: Dr. Li-Chuan Chen Date: 09/22/2003 Based in part upon slides.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
TCP: A Closer Look Transmission Control Protocol.
University of the Western Cape Chapter 12: The Transport Layer.
1 Figure 3-2: TCP/IP Standards (Study Figure) Origins  Defense Advanced Research Projects Agency (DARPA) created the ARPANET  An internet connects multiple.
More on TCP Acknowledgements Sequence Number Field Initial Sequence Number Acknowledgement Number Field.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
1 OSI and TCP/IP Models. 2 TCP/IP Encapsulation (Packet) (Frame)
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Individual Project 1 Sarah Pritchard. Fran, a customer of your company, would like to visit your company’s website from her home computer… How does your.
Linux Operations and Administration Chapter Eight Network Communications.
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Point-to-Point Protocol
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Communication Networks NETW 501 Tutorial 2
Process-to-Process Delivery:
Layered Standards Architectures
Chapter 5 Network and Transport Layers
Chapter 3 outline 3.1 Transport-layer services
Introduction to TCP/IP
TCP/IP Internetworking
Process-to-Process Delivery, TCP and UDP protocols
TCP/IP Internetworking
TCP/IP Transmission Control Protocol / Internet Protocol
Standards Basics.
TCP/IP Internetworking
Process-to-Process Delivery:
Lecture 2: Overview of TCP/IP protocol
Layered Standards Architectures
Network Architecture Models: Layered Communications
Process-to-Process Delivery: UDP, TCP
Transport Layer 9/22/2019.
Presentation transcript:

A Closer Look at HTTP, TCP, IP, and PPP Chapter 3 Copyright 2001 Prentice Hall Revision 2: July 2001

2 HTTP: A Closer Look n World Wide Web Standards –HTML (HyperText Markup Language) governs the structure of the HTML webpage –HTTP (HyperText Transfer Protocol) governs the format and timing of requests and responses between the browser and the webserver application program Browser Webserver Program HTML HTTP

3 HTTP: A Closer Look n Sample HTTP Request Line –All text, often only a single line GET /report1/home.htm HTTP/1.1[CRLF] Host:puka.hawaii.edu n Sample HTTP Response Message HTTP/ OK[CRLF] Date: Tuesday, 20-JAN :32:15 GMT[CRLF] Server: name of server software[CRLF] MIME-version: 1.0[CRLF] Content-type: text/plain[CRLF] [CRLF] File to be downloaded.

4 HTTP: A Closer Look n Sample HTTP Response Message –200 is a code for a successful retrieval, followed by the humanly readable code, OK –Other codes indicate errors, such as 404 HTTP/ OK[CRLF] Date: Tuesday, 20-JAN :32:15 GMT[CRLF] Server: name of server software[CRLF] MIME-version: 1.0[CRLF] Content-type: text/plain[CRLF] [CRLF] File to be downloaded.

5 HTTP: A Closer Look n Downloading a “page” may require several downloads –HTML document:text & tags of other files needed –Graphics files specified in tag –Each needs a separate request/response cycle HTML Big. jpg App. java Webserver User PC File Downloads 2 3 1

6 HTTP: A Closer Look n HTTP is Unreliable –No error detection and correction for errors –TCP gives HTTP clean data, so there is no need for HTTP to do error checking n HTTP is Connectionless –Send requests without first connecting to destination –Datagram service

7 TCP: A Closer Look n Browser does not send HTTP Requests directly to the webserver application –The application layer programs are not physically connected –Browser sends HTTP Request to the user PC’s transport layer process for delivery Browser Transport Process HTTP Request

8 TCP: A Closer Look n TCP is connection oriented –Expensive –Once connection open, TCP messages (segments) sent back & forth between computers.

9 TCP: A Closer Look n TCP has a Flags Field –Six one-bit flags Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if any)PAD Bit 0Bit 31 Reserved (6) TCP Checksum (16)Urgent Pointer (16) TCP Segment Data Field

10 TCP/IP: A Closer Look n Three Flags are Widely Used –SYN bit set to 1 in a TCP segment to request a connection –ACK bit set to 1 in a segment to acknowledge a received TCP segment –FIN bit set to 1 in a segment to inform of a connection closure Hdr Len (4) Flags (6)Window Size (16)Reserved (6)

11 TCP: A Closer Look n Opening / Request / Response Cycle –Opening a connection takes 3 Segments First TCP segment has SYN flag set. Second TCP segment asks to open a connection and acknowledges first SYN message Third TCP segment acknowledges the second –User PC sends the HTTP Request HTTP Request in data field of a TCP segment User PC Transport Process Webserver Transport Process SYN SYN, ACK ACK TCP segment with HTTP Request ACK

12 Delivering the HTTP Response n Transport layer process on the webserver receives the TCP segment –passes the HTTP Request field to the webserver application program n Webserver application creates the HTTP Response message –Webserver application passes the HTTP Response message to the webserver transport layer process for delivery to the user PC transport layer process Webserver Application Transport Process HTTP Request HTTP Response

13 TCP: A Closer Look n Closing the Connection takes 4 TCP Segments –Initiated by the browser when it downloads the last file User PC Transport Process Webserver Transport Process FIN ACK

14 TCP: Error Handling n TCP is reliable— –Error correction Acknowledge correctly-received TCP segments –Provides clean application data to application program If data link layer frame or IP packet is lost receiving transport process will not acknowledge –If TCP segment not acknowledged other side retransmits –TCP is reliable Places TCP Segments in Order based on sequence numbers IP does not guarantee packets arrive order

15 User Datagram Protocol (UDP) n UDP (User Datagram Protocol) –Alternative to TCP at the transport layer –For applications tolerable to data loss or not tolerable to delay Connectionless No error correction (unreliable) Reduces work source and destination host must do –No acknowledgements

16 IP: Connectionless Service/Unreliable n Internet Protocol (IP) –Governs transmission between router and host –Governs transmission between pairs of routers –Gives end-to-end route across many routers –IP messages are called IP packets / datagrams Not guaranteed to arrive in sequence User PC WebserverRouter IP

17 TCP/IP Partnership n TCP checks for errors only once, at the destination host n By not checking for errors at each router along the route, IP greatly reduces overall processing work Transport Internet Check Only Once Host Router Host

18 IP Addresses and Router Forwarding n Routers use the destination IP address of an incoming packet in the router forwarding decision –Decide output port for sending packet out Destination Host On Source Host’s Subnet Destination Host NOT On Source’s Subnet Destination Host On Router’s Subnet Router forward to Other Router Border Router: connect network with Internet B? D? C? B C D Router A Packet Subnet

19 IP Hierarchical Addressing n IP Address (32 bits long ) –Hierarchical Addressing –Header stores source & destination –Part of IP address Network part –Identifies host’s network on the Internet Subnet part –Identifies host’s subnet on that network Host part –Identifies host within subnet

20 IP Addresses n Network Part Numbers –Assigned by IP Address Registrar: University of Hawaii, this is –All IP Addresses in that organization’s network begin with that Network Part –Network parts can be 8 to 24 bits long Network Part IP Address

21 IP Addresses n Network Part is Followed by a Subnet Part –Identifies the subnet within the network –Organization Assigns Subnet Parts to suborganizations UH gave the College of Business Administration the subnet part 17 Suborganization assigns remaining bits to particular host on that subnet –College of Business Administration assigned host part 13 to host name voyager.cba.hawaii.edu Network PartSubnet Part IP Address (32 bits total) Host Part

22 IP Addresses n Three rules of assigning part values –No part of host IP address can be all ones Broadcast address: to all hosts on subnet –No part of host IP address can be all zeros For unknown address –No host can have the IP address Loopback testing

23 Masks n Problem: Router does not know that the first 16 bits of the IP address are the network part of the address n Solution: A second 32-bit number (mask) paired with the IP address

24 Masks n Two Types: Network Masks and Subnet Masks –Network Mask Designates organization network on the Internet. –Subnet Mask Designates specific subnet on the network. –IP Address will be paired with one or the other, but not both simultaneously

25 Masks n Masks Begin with 1s, End with 0s (111…00) –Prefix Notation with IP Address-Mask Pairs /16 –Prefix represents number of initial 1s (16) –Remaining bits = 0s n Network masks: Network Part =1s Subnet and Host Parts = 0s n For subnet masks, Network and Subnet Parts = 1s; Host part = 0s

26 Router Forwarding Tables n Used for Router forwarding decisions –Lists various combinations of IP addresses, mask prefixes, next hop router & metrics and interface for sending message out. –Each row is a router forwarding rule for matching packets

27 Router Forwarding Tables n Router Compares Destination IP Address to Each Row in Router Forwarding Table –If matches, adds to list of possible rules to use –There usually are multiple matches Indicate alternative routes n Mask Column –Indicates length of match to partial IP address

28 Router Forwarding Tables n Matching IP Addresses –Local Delivery or Next-hop routing –Designates router interface (port) used for delivery Each interface connects to a different subnet –Simple Match –Longest Match selection –Metric-Based Selection Cost Reliability Different routers use different metrics –Default Routing

29 Dynamic Routing Protocols n How Do Routers Get Information for their Router Forwarding Tables? –Exchange information about routes & metrics –Dynamic routing protocols: standards governing exchanges used as placeholder not IP address Router Forwarding Table Information

30 IP Version 6 n Current Version of IP is IP Version 4 –In use since 1981 –32-bit IP address fields are too small n Next Version will be IP Version 6 –Will have 128-bit IP address fields –Advanced features of security, priority levels, etc.

31 Closer look at Data Link Layer n Point-to-Point Protocol –Manage flow of messages (frames) thru subnet –Popular protocol for dial-in connections –Between data link layer processes on user PC and first router; not user PC and destination host DLL Process User PC DLL Process First Router PPP

32 Closer look at Data Link Layer n Negotiation Phase –Before exchanging data frames both sides: Negotiate conditions of PPP operation –Also negotiate how specific protocols will be handled Not limited to IP DLL Process User PC DLL Process First Router PPP

33 Closer look at Data Link Layer n Data Frames –Header –Information field (IP packet or other information) –Trailer with Frame Check Sequence field Error detection but not correction If an error is found, PPP frame is discarded TrailerInformation FieldHeader IP Packet

34 Closer look at Data Link Layer n Flag Fields (1 Octet Each) –Always contain: –Designates start of frame and end of frame n Address and Control Fields (1 Octet Each) –Left over from earlier protocol (HDLC) –Address value: –Control value FlagAddrCtrlProtInfoCRCFlag

35 Closer look at Data Link Layer n Protocol Field (2 Octets) –Identifies the contents of the information field –Values for IP, IPX, other internet layer protocols in the information field –Values for supervisory messages to be carried in the information field for supervisory frames FlagAddrCtrlProtInfoCRCFlag

36 Closer look at Data Link Layer n Cyclical Redundancy Check (2 Octets) –Error-checking information in data link frame –Receiver discards such frames; error detection but not reliability (no error correction) FlagAddrCtrlProtInfoCRCFlag

37 Physical Layer Process n Physical layer process does not create a protocol data unit –Sends one bit at a time over the data link connecting the sending computer to the next computer –It is the data link layer process that organizes these bits into frames over the data link Physical Layer Process 10110