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

Similar documents
IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

IP: Addressing, ARP, Routing

The Internet Protocol (IP)

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

EEC-684/584 Computer Networks

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

Introduction to routing in the Internet

Introduction to routing in the Internet

TSIN02 - Internetworking

Question 7: What are Asynchronous links?

ICS 451: Today's plan

IP Protocols. ALTTC/Oct

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

CHAPTER 2 SINGLE SEGMENT NETWORKS

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Chapter 7. ARP and RARP MGH T MGH C I 20

Internet Protocols (chapter 18)

Lecture 11: Networks & Networking

CHAPTER 18 INTERNET PROTOCOLS ANSWERS TO QUESTIONS

Da t e: August 2 0 th a t 9: :00 SOLUTIONS

SEN366 (SEN374) (Introduction to) Computer Networks

ET4254 Communications and Networking 1

Networking: Network layer

Lecture (03) Internet Protocol tcp/ip> OSI>

TCP /IP Fundamentals Mr. Cantu

Position of IP and other network-layer protocols in TCP/IP protocol suite

Hands-On IP for TeleCom Technicians Internetworking, TCP/IP, VLANS, Wirelss and more...

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

Networking interview questions

Internetworking. different kinds of network technologies that can be interconnected by routers and other networking devices to create an internetwork

Networking Fundamentals

TCP/IP THE TCP/IP ARCHITECTURE

TSIN02 - Internetworking

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

ECE4110 Internetwork Programming. Introduction and Overview

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

EE 610 Part 2: Encapsulation and network utilities

ECE 4450:427/527 - Computer Networks Spring 2017

Lecture 2: Basic routing, ARP, and basic IP

Introduction to Internetworking

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Chapter 8 ARP(Address Resolution Protocol) Kyung Hee University

Integrated Services. Integrated Services. RSVP Resource reservation Protocol. Expedited Forwarding. Assured Forwarding.

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

7010INT Data Communications Lecture 7 The Network Layer

Online Documentation: To access the online documentation for this and other Novell products, and to get updates, see

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Chapter 09 Network Protocols

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Lecture 8. Network Layer (cont d) Network Layer 1-1

Computer Networks (Introduction to TCP/IP Protocols)

Auxiliary Protocols. Internet Layer. Address Resolution Protocol. Delivery of IP Packets

Configuring IPv4. Finding Feature Information. This chapter contains the following sections:

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

ACL Rule Configuration on the WAP371

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

Address Resolution Protocol

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

The Internet. The Internet is an interconnected collection of netw orks.

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

TCP/IP Protocol Suite

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

Internet Control Message Protocol (ICMP)

UNIT III. 3.1 Circuit switching vs. packet switching / Packet switched networks. Figure 3.1.1: Switching Techniques

IP Technology. IP Technology. IP Datagram Service. Agenda

Chapter 7 Internet Protocol Version 4 (IPv4) Kyung Hee University

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

The Internetworking Problem. Internetworking. A Translation-based Solution

Internet Protocol (IP)

NET2-2 Internet Protocol and Routing Network Science Certificate George Mason University

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Network.... communication system for connecting end- systems. End-systems a.k.a. hosts PCs, workstations dedicated computers network components

Router Architecture Overview

Novell. NetWare 6. TCP/IP ADMINISTRATION GUIDE

6 Chapter 6. Figure 1 Required Unique Addresses

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Auxiliary protocols. tasks that IP does not handle: Routing table management (RIP, OSPF, etc.). Congestion and error reporting (ICMP).

Course Contents. The TCP/IP protocol Stack

Fundamentals of Networking. OSI & TCP/IP Model. Kuldeep Sonar 1


1. IPv6 is the latest version of the TCP/IP protocol. What are some of the important IPv6 requirements?

CS-461 Internetworking. Dr. Mohamed Aboutabl

INTERNET SYSTEM. Internet Protocol. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Large Scale Networking

Chapter 20 Network Layer: Internet Protocol 20.1

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

Transcription:

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

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 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 dip header fields and dfunctions Guide to TCP/IP, Third Edtion 3 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 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 5

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

Point-to-Point Protocol Provides Frame delimitation it ti 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 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 Ethernet-based networks (or peers) Guide to TCP/IP, Third Edtion 8 8

Special Handling for PPP Links For switched technologies Bidirectional connections must tbe negotiated titdbt between peers that tht 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 9

Special Handling for PPP Links (continued) ATM: RFCs 1577 and 1626 High-speed, dlong-haul, l broadband, d 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 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 11

Ethernet Frame Types Ethernet II frame type De facto standard dframe type used dfor IP datagram transmissions i 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 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 13

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

Ethernet II Frame Structure (continued) Guide to TCP/IP, Third Edtion 15 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 16

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

Ethernet 802.2 LLC Frame Structure (continued) Guide to TCP/IP, Third Edtion 18 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 19

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

Token Ring Frame Types IEEE 802.5 standard Dfi Defines tk 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 21

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

Hardware Addresses in the IP Environment IP addresses 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 23

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

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

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

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

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

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

ARP Cache ARP information Kept tin 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 30

ARP Cache (continued) Guide to TCP/IP, Third Edtion 31 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 32

Proxy ARP (continued) Guide to TCP/IP, Third Edtion 33 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 34

About Internet Protocol Network layer communications End-to-end dcommunications 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 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 s IP address Guide to TCP/IP, Third Edtion 36 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 37

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

If Remote, Which Router? Types of route table entries Host route entry Network route entry Receiving ggateway typically ydoes 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 39

Lifetime of an IP Datagram IP packets 64 128 Have a pre-defined d lifetime indicated d 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 40

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

Fragmentation and Reassembly IP fragmentation Enables a larger packet ktto be automatically ti fragmented tdby 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 42

Service Delivery Options Precedence Used dby routers to determine dt what htpacket ktto send Type of Service Used to select routing gpath when multiple paths exist Routing protocols OSPF and Border Gateway Protocol (BGP) Guide to TCP/IP, Third Edtion 43 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 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 45

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

IP Header Fields And Functions (continued) Identification Field Each packet tis 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 47

IP Header Fields And Functions (continued) Time to Live (TTL) Field Denotes the remaining i 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 48

IP Header Fields And Functions (continued) Destination Address Field Can include a unicast, multicast, t 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 49

Summary Data link protocols Manage transfer of fdatagrams 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 50

Summary (continued) Understanding frame layouts Crucial lfor proper handling of contents t 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 51

Summary (continued) Proxy ARP Permits router to interconnect t multiple l 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 52