Network Architecture Models: Layered Communications School of Business Eastern Illinois University © Abdou Illia, Fall 2015 (September 14, 2015 ) Encapsulation.

Slides:



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

Transmission Control Protocol (TCP)
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
Instructor: Sam Nanavaty TCP/IP protocol. Instructor: Sam Nanavaty Version – Allows for the evolution of the protocol IHL (Internet header length) – Length.
Transmission Control Protocol (TCP) Basics
CP476 Internet Computing TCP/IP 1 Lecture 3. TCP / IP Objective: A in-step look at TCP/IP Purposes and operations Header specifications Implementations.
BZUPAGES.COM 1 User Datagram Protocol - UDP RFC 768, Protocol 17 Provides unreliable, connectionless on top of IP Minimal overhead, high performance –No.
Transport Layer – TCP (Part1) Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
Chapter 7 – Transport Layer Protocols
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.
IP Basics. Physical Link Network IP ARP ICMP RoutingTables.
1 TCP/IP Internetworking (February 1, 2012) © Abdou Illia – Spring 2012.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
1 Application TCPUDP IPICMPARPRARP Physical network Application TCP/IP Protocol Suite.
Networking and Internetworking: Standards and Protocols i206 Fall 2010 John Chuang Some slides adapted from Coulouris, Dollimore and Kindberg.
Source Port # (16)Destination Port # (16) Sequence Number (32 bits) Acknowledgement Number (32 bits) Hdr Len (4) Flags (6)Window Size (16) Options (if.
CSCE 515: Computer Network Programming TCP Details Wenyuan Xu Department of Computer Science and Engineering.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
Chapter 3 Review of Protocols And Packet Formats
Transport Layer TCP and UDP IS250 Spring 2010
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
Gursharan Singh Tatla Transport Layer 16-May
Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson.
Transmission Control Protocol Internet Protocol TCP/IP.
1 Standards Chapter 2 Copyright 2003 Prentice-Hall Panko’s Business Data Networks and Telecommunications, 4 th edition.
A Closer Look at HTTP, TCP, IP, and PPP Chapter 3 Copyright 2001 Prentice Hall Revision 2: July 2001.
Protocol Architecture
Chapter 4 TCP/IP Overview Connecting People To Information.
Layered Communication Layers work together Encapsulation and Deencapsulation.
COS 338 Day 4. DAY 3 Agenda Questions? Write-up for Lab due next class Assignment 2 Posted Due on September 26 Assignment 1 Review 1 A, 1 B, 1 C, 2 D’s.
1 Standards Chapter 2 (Revised August 2002) Copyright 2003 Prentice-Hall Panko’s Business Data Networks and Telecommunications, 4 th edition.
TCP/IP Basic Theory V1.2. Course Outline OSI model and layer function TCP/IP protocol suite Transfer Control Protocol Internet Protocol Address Resolution.
1 LAN Protocols (Week 3, Wednesday 9/10/2003) © Abdou Illia, Fall 2003.
TCP: A Closer Look Transmission Control Protocol.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
Routers and Routing Basics CCNA 2 Chapter 10.
More on TCP Acknowledgements Sequence Number Field Initial Sequence Number Acknowledgement Number Field.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Part E: Standards Layered Standards Architectures TCP, IP, and TCP/IP Other Architectures.
1 CS 4396 Computer Networks Lab TCP/IP Networking An Example.
Networked Graphics Building Networked Virtual Environments and Networked Games Chapter 3: Overview of the Internet.
1 Introduction to TCP/IP. 2 OSI and Protocol Stack OSI: Open Systems Interconnect OSI ModelTCP/IP HierarchyProtocols 7 th Application Layer 6 th Presentation.
Chapter 7 –Security in Networks  Introduction to networks  Threats against network applications  Controls against network applications  Firewalls.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
VersionIHLTotal Length FlagsIdentificationFragment Offset Time To Live Destination Address OptionsPadding Protocol = 6 Type of Service IP Header TCP Destination.
1 CSE 5346 Spring Network Simulator Project.
1 Figure 3-5: IP Packet Total Length (16 bits) Identification (16 bits) Header Checksum (16 bits) Time to Live (8 bits) Flags Protocol (8 bits) 1=ICMP,
Review For Exam 2 School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 7, Monday 2/24/2003)
Point-to-Point Protocol
Two Transport Protocols Available Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Provides unreliable transfer Requires minimal – Overhead.
Chapter 5 Network and Transport Layers
Introduction to TCP/IP networking
Multiplexing.
A quick intro to networking
Introduction to TCP/IP
Review of TCP/IP Internetworking
Part 6 Transport Layer Transport Level Services TCP.
TCP/IP Internetworking
© 2003, Cisco Systems, Inc. All rights reserved.
Standards Basics.
TCP/IP Internetworking
Figure 3-23: Transmission Control Protocol (TCP) (Study Figure)
Network Architecture Models
Layered Standards Architectures
Review For Exam 1 (February 18, 2013) © Abdou Illia – Spring 2013.
Transport Protocols: TCP Segments, Flow control and Connection Setup
Network Architecture Models: Layered Communications
Transport Protocols: TCP Segments, Flow control and Connection Setup
Transport Layer 9/22/2019.
Presentation transcript:

Network Architecture Models: Layered Communications School of Business Eastern Illinois University © Abdou Illia, Fall 2015 (September 14, 2015 ) Encapsulation and De-encapsulation

2 Learning objective n Understand the principles of layered communications

3 Hybrid TCP/IP-OSI Model LayersSample protocols for Web access ApplicationHTTP TransportTCP InternetIP Data LinkEthernet, PPP PhysicalEthernet, Modem standards, Telephone standards

4 Layered Communications n Application programs on different computers cannot communicate directly – There is no direct connection between them! – They need to use an indirect communication system Browser Trans Int DL Phy User PC Web App Trans Int DL Phy Webserver HTTP Request

5 Layer Cooperation on the User PC n Application layer passes HTTP-request to Transport layer Application Transport Internet Data Link HTTP Request PhysicalUser PC

6 Layer Cooperation on the User PC n Transport layer creates a TCP segment – HTTP request is put in the data field – A TCP header is added n So, Transport layer “encapsulates” HTTP request within a TCP segment HTTP Request TCP-H TCP Segment Data Field TCP Header

7 Encapsulation n Encapsulation is: – Embedding a received message in the data field of a new message n Example: TCP encapsulates HTTP request in the data field of a new massage called TCP Segment HTTP Request TCP-H TCP Segment Data Field TCP Header

8 Layer Cooperation on the User PC n Transport layer passes the TCP segment down to the Internet layer Application Transport Internet Data Link TCP segment PhysicalUser PC

9 Layer Cooperation on the User PC n Internet Layer encapsulates TCP Segment within an IP packet – An IP packet to deliver a TCP segment has a TCP segment in its data field TCP segment IP-H IP Packet Data Field IP Header

10 Layer Cooperation on the User PC n The Internet layer passes the IP packet to the Data Link layer – Internet layer messages are called packets Application Transport Internet Data Link IP packet PhysicalUser PC

11 Layer Cooperation on the User PC n Data Link Layer encapsulates IP Packet within a PPP Frame – Data Link layer messages are called frames – PPP frame has IP packet in data field – PPP frame has a PPP Trailer and a PPP Header PPP Frame Encapsulating an IP Packet PPP-T IP packet PPP-H

12 Layer Cooperation on the User PC n The Data Link layer passes the PPP frame to the Physical layer, which delivers it to the Physical layer on the first router, one bit at a time (no message at the Physical layer) Application Transport Internet Data Link Physical (10110 …)User PC PPP frame To first router

13 PPP-T Layer Cooperation on the User PC n Recap: Adding Headers and Trailers: Application Transport Internet Data Link HTTP req. Physical User PC HTTP req. TCP-H HTTP req. TCP-H IP-H HTTP req. TCP-H IP-H PPP-H

14 TCP segment n Source Port # and Destination Port #: – Contain reference # of application programs at both ends – Used (together with IP address) to identify the application program n Sequence Number: – Indicates position of this segment within sequence of segments – Used to perform error recovery (e.g. loss of continuity) n TCP message has a Flags Field (three of which widely used) – SYN bit set to 1 to request a connection – ACK bit set to 1 to acknowledge a received TCP segment – FIN bit set to 1 to inform of a connection closure 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) Data Field TCP Header

15 TCP Segment Transmission Control Protocol. Src Port http (80). Dst Port 1958). Seq: Ack: Len:0 Source port: http (80) Destination port: 1958 (1958) Sequence number: Acknowledgment number: header length: 24 bytes Ө Flags_0xx0012 (SYN, ACK) 0………. = Congestion window reduced (CWR): not set..0…….. = ECN-Echo: not set …0……..= Urgent: Not set ….1…….= Acknowledgment: Set ……0…..= Push: Not set …….0….= Reset: Not set ……..1…= Syn: Set ………0..= Fin: Not set Window size: 5840 Checksum: 0x206a (correct) Ө Options: (4 bytes Maximum segment size: 1460 byte

16 UDP Segment Source PortDestination Port Data Dean (2004:161) LengthChecksum Data 01631

17 IP Packet Version Differentiated services Identification Time to live Header length Reserved RSTRST ACKACK PSHPSH URGURG SYNSYN FINFIN Sliding-window size OptionsPadding Data IHLTotal length FlagsFragment offset ProtocolHeader checksum Source IP address Destination IP address n Contains: – IP version used – Source IP address – Destination IP address, etc.

18 Layer Cooperation on the Webserver n Situation reverse to Situation on User PC (De- encapsulation) Application Transport Internet Data Link PhysicalUser PCWebserver

19 Layer Cooperation on the Webserver n Data Link layer processes the DL-Frame’s header and trailer to deencapsulate the IP packet n Data Link layer passes the IP packet to the Internet layer Application Transport Internet Data Link IP-Packet DL-Frame containing IP packet in data field PhysicalFinal RouterWebserver

20 Layer Cooperation on the Webserver n Successively pass up layer messages – Other layers pass successive data fields (containing next- lower layer messages) up to the next-higher layer Application Transport Internet Data Link PhysicalFinal RouterWebserver PPP-T HTTP req. TCP-H HTTP req. TCP-H IP-H HTTP req. TCP-H IP-H PPP-H IP Packet TCP segment HTTP request

21 Hybrid TCP/IP and Windows Layering Hybrid TCP/IP-OSI Layering Microsoft Windows Layering ApplicationClients and Services TransportProtocols (TCP/IP, IPX/SPX, NetBEUI, etc.) Internet Data LinkAdapters (Dial-up adapters, Network Interface Card, etc.) Physical

22 Windows Architecture implementation Network Dialog box in Windows

23 Summary Questions 1. (a) What is layered communication? (b) Why is it necessary ? (c) What is encapsulation? (d) What happens as soon as a layer on the source computer creates a message? 2. At which layer IP addresses of the sending and the receiving computers are added to the message? 3. At which layer MAC addresses of the sending and the receiving computers could added to the message? 4. At which layer a Trailer is usually added. 5. Compare Hybrid TCP/IP layering and Windows layering.

24 Summary Questions (cont.) n Given the TCP/IP communications diagram illustrated below, label each layer with its appropriate name Dear John, Today we made good progress on the text. I think it will be a great success. Dave Dear John, Today we made good progress on the text. I think it will be a great success Dave Destination address Source address Dave think it will be a great success good progress on the text. I Dear John, Today we made Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address Source address Dave Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address Source address think it will be a great success Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address Source address Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address Source address good progress on the text. I Dear John, Today we made …

Additional slides

26 The First Router n First router receives an IP packet (encapsulated in a frame) in one port (interface) n Must make a router forwarding decision: select the port to use to send it back out B? D? C? Router A B C D Packet

27 Layer Cooperation on the First Router n So far, we have only looked at User PC & Webserver – But deencapsulation and encapsulation also occur on EACH router n Frame arrives at a port on the first router – Port’s Data Link layer receives the PPP frame containing an IP packet Data Link Internet PPP Frame First Router

28 Layer Cooperation on the First Router n Incoming Data Link on the Router – Deencapsulates the IP packet from the PPP frame – Passes the IP packet to the router’ Internet layer Data Link Internet IP Packet First Router Incoming Port on First Router

29 Layer Cooperation on the First Router n Routers only have Physical, Data Link, and Internet layer – So Internet layer is the highest layer on a router for router forwarding – Internet layer decides where to send the packet next: another router or the destination Webserver Data Link Internet First Router

30 Layer Cooperation on the First Router n Internet layer passes IP packet to Data Link layer on the selected output port that will carry the IP packet to the next router or the destination Webserver Data Link Internet First Router IP Packet Selected Output Port on First Router

31 Layer Cooperation on the First Router n The Data Link and Physical layer on the selected port sends the frame encapsulating the IP packet onto the next router (or destination Webserver) Internet Data Link Internet Data Link Frame Selected Output Port On First Router Input Port On Next Router (o r Destination Webserver ) Physical Layer