Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols



Similar documents
RARP: Reverse Address Resolution Protocol

IP - The Internet Protocol

Ethernet. Ethernet. Network Devices

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Data Link Protocols. TCP/IP Suite and OSI Reference Model

Network Layer: Network Layer and IP Protocol

Networking Test 4 Study Guide

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

8.2 The Internet Protocol

WAN Data Link Protocols

Internetworking and Internet-1. Global Addresses

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Transport and Network Layer

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

UPPER LAYER SWITCHING

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Technical Support Information Belkin internal use only

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

Lecture Computer Networks

SLIP and PPP. Gursharan Singh Tatla

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Mobile IP. Bheemarjuna Reddy Tamma IIT Hyderabad. Source: Slides of Charlie Perkins and Geert Heijenk on Mobile IP

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Subnetting,Supernetting, VLSM & CIDR

The internetworking solution of the Internet. Single networks. The Internet approach to internetworking. Protocol stacks in the Internet

NETWORK LAYER/INTERNET PROTOCOLS

04 Internet Protocol (IP)

Network Security TCP/IP Refresher

IP Networking. Overview. Networks Impact Daily Life. IP Networking - Part 1. How Networks Impact Daily Life. How Networks Impact Daily Life

Introduction to LAN/WAN. Network Layer (part II)

Internet Control Protocols Reading: Chapter 3

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

IP Addressing A Simplified Tutorial

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Network Models and Protocols

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Introduction to IP v6

Introduction To Computer Networking

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

ESSENTIALS. Understanding Ethernet Switches and Routers. April 2011 VOLUME 3 ISSUE 1 A TECHNICAL SUPPLEMENT TO CONTROL NETWORK

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

Internet Protocol: IP packet headers. vendredi 18 octobre 13

- IPv4 Addressing and Subnetting -

Lecture 8. IP Fundamentals

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Internet Architecture and Philosophy

Introduction to TCP/IP

2. IP Networks, IP Hosts and IP Ports

Chapter 13 Internet Protocol (IP)

BASIC ANALYSIS OF TCP/IP NETWORKS

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

SFWR 4C03: Computer Networks & Computer Security Jan 3-7, Lecturer: Kartik Krishnan Lecture 1-3

Internet Protocol Address

101 Application Delivery Fundamentals

Asynchronous Transfer Mode: ATM. ATM architecture. ATM: network or link layer? ATM Adaptation Layer (AAL)

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

Introduction to Routing and Packet Forwarding. Routing Protocols and Concepts Chapter 1

The OSI and TCP/IP Models. Lesson 2

IP address format: Dotted decimal notation:

VXLAN: Scaling Data Center Capacity. White Paper

Outline. CSc 466/566. Computer Security. 18 : Network Security Introduction. Network Topology. Network Topology. Christian Collberg

JOB READY ASSESSMENT BLUEPRINT COMPUTER NETWORKING FUNDAMENTALS - PILOT. Test Code: 4514 Version: 01

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

NetFlow Subinterface Support

iseries TCP/IP routing and workload balancing

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Model 2120 Single Port RS-232 Terminal Server Frequently Asked Questions

Overview of TCP/IP. TCP/IP and Internet

IP addressing and forwarding Network layer

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Chapter 4 Network Layer

ICS 351: Today's plan

Post-Class Quiz: Telecommunication & Network Security Domain

Application Protocols for TCP/IP Administration

Network layer: Overview. Network layer functions IP Routing and forwarding

HOST AUTO CONFIGURATION (BOOTP, DHCP)

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

Protocol Data Units and Encapsulation

Workstation ARP. Objective. Background / Preparation

TCP/IP, Addressing and Services

CHAPTER 3 STATIC ROUTING

Internetworking and IP Address

CHAPTER 0 INTRODUCTION TO TCP/IP

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Load Balancing. Final Network Exam LSNAT. Sommaire. How works a "traditional" NAT? Un article de Le wiki des TPs RSM.

Network Protocol Configuration

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

IP Addressing Introductory material.

Transcription:

Guide to TCP/IP, Third Edition Chapter 3: Data Link and Network Layer TCP/IP Protocols

Objectives Understand the role that data link protocols, such as SLIP and PPP, play for TCP/IP Distinguish among various Ethernet and token ring frame types Understand how hardware addresses work in a TCP/IP environment, and the services that ARP and RARP provide for such networks Guide to TCP/IP, Third Edtion 2

Objectives (continued) Appreciate the overwhelming importance of the Internet Protocol (IP), and how IP packets behave on TCP/IP networks Understand the lifetime of an IP datagram, and the process of fragmentation and reassembly Appreciate service delivery options Understand IP header fields and functions Guide to TCP/IP, Third Edtion 3

Data Link Protocols Key jobs of Data Link layer Media Access Control (MAC) Logical Link Control (LLC) Point-to-point data transfer Shipping data from one MAC layer address to another Guide to TCP/IP, Third Edtion 4

Data Link Protocols (continued) WAN encapsulation of frames at Data Link layer involves one or more of the following services Addressing Bit-level integrity check Delimitation Protocol identification (PID) Guide to TCP/IP, Third Edtion 5

Serial Line Internet Protocol (SLIP) Original point-to-point protocol Sometimes used to Manage communications or networking equipment through a dial-up serial port connection Simple packet-framing protocol described in RFC 1055 Uses a special END character (0xC0) Placed at the beginning and end of each IP datagram to delimit, or separate, each payload Guide to TCP/IP, Third Edtion 6

Point-to-Point Protocol Provides Frame delimitation Protocol identification and bit-level integrity check services RFC 1661 includes Encapsulation methods A special Link Control Protocol (LCP) A collection of negotiation protocols Guide to TCP/IP, Third Edtion 7

Point-to-Point Protocol (continued) Fields in the PPP header and trailer include Flag Protocol identifier Frame Check Sequence (FCS) Supports a default MTU of 1,500 bytes Which makes it ideal for interconnecting Ethernetbased networks (or peers) Guide to TCP/IP, Third Edtion 8

Special Handling for PPP Links For switched technologies Bidirectional connections must be negotiated between peers that wish to exchange data X.25: RFC 1356. X.25 Standard set of protocols defined in the 1970s by the International Telecommunications Union (ITU) Frame relay: RFC 2427 Assumes that digital-quality transmission lines are available for creating WAN links Guide to TCP/IP, Third Edtion 9

Special Handling for PPP Links (continued) ATM: RFCs 1577 and 1626 High-speed, long-haul, broadband, cell-switched networking technology Offers astonishing and ever-increasing bandwidth PPPoE: RFC 2516 Protocol used by Internet service providers to authenticate and manage broadband subscribers Guide to TCP/IP, Third Edtion 10

Frame Types At Data Link layer Protocol data units are called frames Frame Represents same data that appears in digital form at the Network layer in an IP datagram Guide to TCP/IP, Third Edtion 11

Ethernet Frame Types Ethernet II frame type De facto standard frame type used for IP datagram transmissions over Ethernet networks Has protocol identification field Ethernet frame types that TCP/IP can use Ethernet II Ethernet 802.2 Logical Link Control Ethernet 802.2 Sub-Network Access Protocol (SNAP) Guide to TCP/IP, Third Edtion 12

Ethernet II Frame Structure Ethernet II frame type fields and structure Preamble Destination Address Field Source Address Field Type Field Data Field Frame Check Sequence Field Guide to TCP/IP, Third Edtion 13

Ethernet II Frame Structure (continued) Guide to TCP/IP, Third Edtion 14

Ethernet II Frame Structure (continued) Guide to TCP/IP, Third Edtion 15

Ethernet 802.2 LLC Frame Structure Unique fields Preamble Start Frame Delimiter Field: Length Field Destination Service Access Point (DSAP) Field: Source Service Access Point (SSAP) Field: Control Field Destination Address Source Address Data Frame Check Sequence Guide to TCP/IP, Third Edtion 16

Ethernet 802.2 LLC Frame Structure (continued) Guide to TCP/IP, Third Edtion 17

Ethernet 802.2 LLC Frame Structure (continued) Guide to TCP/IP, Third Edtion 18

Ethernet SNAP Frame Structure Fields Organization Code Field Ether Type Field Preamble Start Frame Delimiter Destination Address Source Address Length Destination Service Access Point Source Service Access Point Guide to TCP/IP, Third Edtion 19

Ethernet SNAP Frame Structure (continued) Guide to TCP/IP, Third Edtion 20

Token Ring Frame Types IEEE 802.5 standard Defines token ring networking Token ring networks Rely on a physical star design, although they use a logical ring transmission path On a token ring network Each token ring workstation acts as a repeater Variations of token ring frames Token Ring 802.2 LLC frames Token Ring SNAP frames Guide to TCP/IP, Third Edtion 21

Token Ring Frame Types (continued) Guide to TCP/IP, Third Edtion 22

Hardware Addresses in the IP IP addresses Environment Identify individual IP hosts on a TCP/IP internetwork TCP/IP networking uses ARP to Determine the hardware address of the local target for the packet ARP cache Table of hardware addresses learned through the ARP process Guide to TCP/IP, Third Edtion 23

Hardware Addresses in the IP Environment (continued) Guide to TCP/IP, Third Edtion 24

Hardware Addresses in the IP Environment (continued) Guide to TCP/IP, Third Edtion 25

Hardware Addresses in the IP Environment (continued) Guide to TCP/IP, Third Edtion 26

ARP Packet Fields and Functions Basic ARP packets Broadcast ARP request packet Directed, or unicast, ARP reply packet Most confusing part of ARP Interpretation of the sender and target address information Guide to TCP/IP, Third Edtion 27

ARP Packet Fields and Functions (continued) Guide to TCP/IP, Third Edtion 28

ARP Packet Fields and Functions (continued) Guide to TCP/IP, Third Edtion 29

ARP Cache ARP information Kept in an ARP cache in memory on most operating systems Windows-based systems Command arp -a is used to view the table contents Have utility to view IP and hardware addresses Guide to TCP/IP, Third Edtion 30

ARP Cache (continued) Guide to TCP/IP, Third Edtion 31

Proxy ARP Method that allows IP host to use a simplified subnetting design Enables a router to ARP in response to an IP host s ARP broadcasts Most network configurations May never need to use proxy ARP Guide to TCP/IP, Third Edtion 32

Proxy ARP (continued) Guide to TCP/IP, Third Edtion 33

Reverse ARP Used to obtain an IP address for an associated data link address Initially defined to Enable diskless workstations to find their own IP addresses upon booting or startup BOOTP, and eventually DHCP, replaced RARP Guide to TCP/IP, Third Edtion 34

About Internet Protocol Network layer communications End-to-end communications Internet Protocol Network layer protocol used in the TCP/IP suite IP version 4 (IPv4) Widely implemented Internet Protocol version 6 (IPv6) Most used in pilot or experimental implementations Guide to TCP/IP, Third Edtion 35

Sending IP Datagrams Requirements for building an IP datagram packet to transmit on the wire IP addresses of the source and destination Hardware address of the source and next-hop router IP host Can use a manually entered destination IP address or the DNS to obtain a destination s IP address Guide to TCP/IP, Third Edtion 36

Route Resolution Process Enables IP host to determine if desired destination is local or remote Local or Remote Destination? Upon determination of IP address IP host compares network portion of destination address to its own local network address Guide to TCP/IP, Third Edtion 37

Route Resolution Process (continued) Guide to TCP/IP, Third Edtion 38

If Remote, Which Router? Types of route table entries Host route entry Network route entry Receiving gateway typically does one of the following Forwards packet Sends an ICMP reply Sends an ICMP reply indicating that it is unclear where to send the packet Guide to TCP/IP, Third Edtion 39

Lifetime of an IP Datagram IP packets 64 128 Have a pre-defined lifetime indicated in each packet s Time to Live (TTL) field Recommended starting TTL value Default TTL in Windows 2000, Windows 2003, and Windows XP Guide to TCP/IP, Third Edtion 40

Lifetime of an IP Datagram (continued) Guide to TCP/IP, Third Edtion 41

Fragmentation and Reassembly IP fragmentation Enables a larger packet to be automatically fragmented by a router Once fragmented No reassembly occurs until fragments arrive at destination All fragments are given the same TTL value Guide to TCP/IP, Third Edtion 42

Service Delivery Options Precedence Used by routers to determine what packet to send Type of Service Used to select routing path when multiple paths exist Routing protocols OSPF and Border Gateway Protocol (BGP) Guide to TCP/IP, Third Edtion 43

Differentiated Services and Explicit Congestion Notification RFC 2474, RFC 2475, and RFC 3168 Offer a new use of the TOS field bits Suggest that TOS and Precedence field bytes be replaced by a Differentiated Services Code Point (DSCP) field Diffserv Uses DSCP value to enable routers to offer varying levels of service to traffic based on marker placed in the DSCP field Guide to TCP/IP, Third Edtion 44

IP Header Fields And Functions Version Field First field in IP header Header Length Field Denotes the length of the IP header only Type of Service Field Has two components: precedence and Type of Service Total Length Field Defines length of the IP header and any valid data Guide to TCP/IP, Third Edtion 45

IP Header Fields And Functions (continued) Guide to TCP/IP, Third Edtion 46

IP Header Fields And Functions Identification Field (continued) Each packet is given a unique ID value when sent Flags Field Three bits long Typically, fragmentation is allowed Fragment Offset Field Shows where to place packet s data when fragments are reassembled Guide to TCP/IP, Third Edtion 47

IP Header Fields And Functions Time to Live (TTL) Field (continued) Denotes the remaining lifetime of the packet Protocol Field Indicates what is coming up next Header Checksum Field Provides error detection on the contents of the IP header only Source Address Field The IP address of the IP host that sent the packet Guide to TCP/IP, Third Edtion 48

IP Header Fields And Functions (continued) Destination Address Field Can include a unicast, multicast, or broadcast address Final destination of the packet Options Fields Exist primarily to provide additional IP routing controls Can be useful when testing or debugging code or specific connections Guide to TCP/IP, Third Edtion 49

Summary Data link protocols Manage transfer of datagrams across the network At Data Link layer Protocols must deliver services, such as delimitation, bit-level integrity checks, addressing, and protocol identification Ethernet II frames Most common frame type on LANs Guide to TCP/IP, Third Edtion 50

Summary (continued) Understanding frame layouts Crucial for proper handling of contents At the lowest level of detail Important to understand the differences in field layouts and meanings Imperative to understand how TCP/IP manages the translation between MAC layer addresses and numeric IP addresses Guide to TCP/IP, Third Edtion 51

Summary (continued) Proxy ARP Permits router to interconnect multiple network segments Network layer protocols Make their way into the Data Link layer through a process known as data encapsulation Important characteristics of IP datagrams Time to Live (TTL) values Fragmentation of incoming frames Service delivery options Guide to TCP/IP, Third Edtion 52