Network Architecture Models: Layered Communications

Slides:



Advertisements
Similar presentations
Introduction1-1 message segment datagram frame source application transport network link physical HtHt HnHn HlHl M HtHt HnHn M HtHt M M destination application.
Advertisements

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
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.
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.
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
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 12 Transmission Control Protocol (TCP) Basics.
Module A Panko and Panko Business Data Networks and Security, 9 th Edition © 2013 Pearson.
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.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Layered Communication Layers work together Encapsulation and Deencapsulation.
Network Architecture Models: Layered Communications School of Business Eastern Illinois University © Abdou Illia, Fall 2015 (September 14, 2015 ) Encapsulation.
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.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
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.
1 CS 4396 Computer Networks Lab TCP/IP Networking An Example.
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.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
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
© 2003, Cisco Systems, Inc. All rights reserved.
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.
Layered Standards Architectures
Chapter 5 Network and Transport Layers
Introduction To TCP/IP Networking Mr. Zeeshan Ali, Asst. Professor
Introduction to TCP/IP networking
Multiplexing.
A quick intro to networking
Introduction to TCP/IP
Review of TCP/IP Internetworking
Layered Architectures
TCP/IP Internetworking
© 2003, Cisco Systems, Inc. All rights reserved.
Standards Basics.
TCP/IP Internetworking
TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
Wide Area Networks and Internet CT1403
Figure 3-23: Transmission Control Protocol (TCP) (Study Figure)
CS4470 Computer Networking Protocols
Network Architecture Models
Internet Protocol Formats
Layered Standards Architectures
Review For Exam 1 (February 18, 2013) © Abdou Illia – Spring 2013.
46 to 1500 bytes TYPE CODE CHECKSUM IDENTIFIER SEQUENCE NUMBER OPTIONAL DATA ICMP Echo message.
Transport Protocols: TCP Segments, Flow control and Connection Setup
Chapter 5 Transport Layer Introduction
Kyle Broussard, Alexandra Mikolai,
Transport Protocols: TCP Segments, Flow control and Connection Setup
Transport Layer 9/22/2019.
Electrical Communications Systems ECE
Presentation transcript:

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

Learning objective Understand the principles of layered communications

Hybrid TCP/IP-OSI Model Layers Sample protocols for Web access Application HTTP Transport TCP Internet IP Data Link Ethernet, PPP Physical Ethernet, Modem standards, Telephone standards

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

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

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

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

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

Layer Cooperation on the User PC 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 IP Packet TCP segment IP-H Data Field IP Header

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

Layer Cooperation on the User PC 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

Layer Cooperation on the User PC 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 To first router PPP frame Data Link User PC Physical (10110 …)

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

TCP segment TCP Header Source Port # and Destination Port #: Contain reference # of application programs at both ends Used (together with IP address) to identify the application program Sequence Number: Indicates position of this segment within sequence of segments Used to perform error recovery (e.g. loss of continuity) 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 0 Bit 31 Reserved (6) TCP Checksum (16) Urgent Pointer (16) Data Field TCP Header

TCP Segment Transmission Control Protocol. Src Port http (80). Dst Port 1958). Seq: 3043958669. Ack: 937013559. Len:0 Source port: http (80) Destination port: 1958 (1958) Sequence number: 3043958669 Acknowledgment number: 937013559 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

UDP Segment 16 31 Source Port Destination Port Length Checksum Data 16 31 Source Port Destination Port Length Checksum Data Data Dean (2004:161)

IP Packet IHL Total length Identification Flags Fragment offset Version IHL Differentiated services Total length Identification Flags Fragment offset Time to live Protocol Header checksum Header length Reserved U R G A C K P S H R S T S Y N F I N Sliding-window size Source IP address Destination IP address Options Padding Data Contains: IP version used Source IP address Destination IP address, etc.

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

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

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

Hybrid TCP/IP and Windows Layering Hybrid TCP/IP-OSI Layering Microsoft Windows Layering Application Clients and Services Transport Protocols (TCP/IP, IPX/SPX, NetBEUI, etc.) Internet Data Link Adapters (Dial-up adapters, Network Interface Card, etc.) Physical

Windows Architecture implementation Network Dialog box in Windows

Summary Questions (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? At which layer IP addresses of the sending and the receiving computers are added to the message? At which layer MAC addresses of the sending and the receiving computers could added to the message? At which layer a Trailer is usually added. Compare Hybrid TCP/IP layering and Windows layering.

Summary Questions (cont.) 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 10.0.0.2 Source address 10.0.0.1 Dave Destination address 10.0.0.2 Source address 10.0.0.1 think it will be a great success Destination address 10.0.0.2 Source address 10.0.0.1 good progress on the text. I Destination address 10.0.0.2 Source address 10.0.0.1 Dear John, Today we made Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address 10.0.0.2 Source address 10.0.0.1 Dave Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address 10.0.0.2 Source address 10.0.0.1 think it will be a great success Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address 10.0.0.2 Source address 10.0.0.1 good progress on the text. I Dest. MAC addr. 00A0CC5F745D Source MAC addr. 00A0CC5F745D Destination address 10.0.0.2 Source address 10.0.0.1 Dear John, Today we made …100011101000011001110011

Additional slides

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

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

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

Layer Cooperation on the First Router 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 Internet Data Link Data Link First Router

Layer Cooperation on the First Router 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 First Router Internet IP Packet Data Link Data Link Selected Output Port on First Router

Layer Cooperation on the First Router 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 Internet Data Link Data Link Frame Selected Output Port On First Router Physical Layer Input Port On Next Router (or Destination Webserver)