Chapter 5 Network Layer

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

SEMESTER 1 Chapter 5 OSI Network Layer V What services does the network layer provide?

Chapter 5 OSI Network Layer

OSI Network Layer. Chapter 5

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

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

Networking Fundamentals

CIS Test 1- Practice - Fall 2011

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

ECE 158A: Lecture 7. Fall 2015

Internet Protocols (chapter 18)

IP : Internet Protocol

CHAPTER-2 IP CONCEPTS

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

Hostname and IP Address

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

ECE4110 Internetwork Programming. Introduction and Overview

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Introduction to Internetworking

Lecture 3. The Network Layer (cont d) Network Layer 1-1

The Internet Protocol (IP)

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

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

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

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

Vorlesung Kommunikationsnetze

TCP /IP Fundamentals Mr. Cantu

Internet Protocol (IP)

Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

Sirindhorn International Institute of Technology Thammasat University

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

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.

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

Internetwork Protocols

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Introduction to TCP/IP networking

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

Network Layer/IP Protocols

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.)

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

TCP/IP and the OSI Model

Computer Networks. Lecture 9 Network and transport layers, IP, TCP, UDP protocols

CMPE 80N: Introduction to Networking and the Internet

CSC 401 Data and Computer Communications Networks

SEN366 (SEN374) (Introduction to) Computer Networks

IPv6 (IP( version 6) 6 Essentials Ch0: Overwiew. Louis Chuang Fu Jen Catholic University EE ENCL

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

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

TCP/IP Network Essentials

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

internet technologies and standards

CSCI Computer Networks Fall 2016

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

Network Basic v0.1. Network Basic v0.1. Chapter 3 Internet Protocol. Chapter 3. Internet Protocol

Network Layer: Internet Protocol

Network and Security: Introduction

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

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

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

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

ET4254 Communications and Networking 1

IP Protocols. ALTTC/Oct

Lecture 9: Internetworking

CSCI-1680 Network Layer:

End-to-End Communication

Chapter 09 Network Protocols

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

I. More ARP Week 7. after resolving a hardware address, why not store it?

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Chapter 6 Delivery and Routing of IP Packets

Network Layer (1) Networked Systems 3 Lecture 8

IPv4. Christian Grothoff.

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Network layer: Overview. Network Layer Functions

Chapter 19 Network Layer: Logical Addressing

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

IPv6 is Internet protocol version 6. Following are its distinctive features as compared to IPv4. Header format simplification Expanded routing and

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

FiberstoreOS IP Service Configuration Guide

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

Introduction to routing in the Internet

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

Debian/GNU Linux Networking

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

ICMP (Internet Control Message Protocol)

Single Network: applications, client and server hosts, switches, access links, trunk links, frames, path. Review of TCP/IP Internetworking

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

Router Architecture Overview

Introduction to routing in the Internet

EE 610 Part 2: Encapsulation and network utilities

Objectives. Chapter 10. Upon completion you will be able to:

MODULE: NETWORKS MODULE CODE: CAN1102C. Duration: 2 Hours 15 Mins. Instructions to Candidates:

Master Course Computer Networks IN2097

Need For Protocol Architecture

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

Chapter 4: Network Layer

Administrivia CSC458 Lecture 4 Bridging LANs and IP. Last Time. This Time -- Switching (a.k.a. Bridging)

Transcription:

Chapter 5 Network Layer

Network Layer IPv4 2

IP Header Application Header + data 3

IP IP IP IP 4

Focus on Transport Layer IP IP 5

Network Layer The Network layer (Layer 3) provides services to exchange the data over the network between identified end devices. Layer 3 uses four basic processes: Addressing Encapsulation Routing Decapsulation 6

Addressing 192.168.100.99 Source IP = 192.168.100.99 Destination IP = 172.16.3.10 172.16.3.10 Source IP = 172.16.3.10 Destination IP = 192.168.100.99 What would be the Source IP Address and Destination IP Address of a Packet from the client to the server? What would be the Source IP Address and Destination IP Address of a Packet from the server to the client? More later! 7

Reminder of encapsulation/decapsulation Data Link Header IP Header TCP Header HTTP Header Data Data Link Trailer Data Link Header IP Packet Data Link Trailer Data Link Header IP Packet Data Link Trailer Data Link Header IP Packet Data Link Trailer Data Link Header IP Header TCP Header HTTP Header Data Data Link Trailer 8

Decapsulation Is the Destination IP Address of this packet my IP Address? Destination Arrival packet processed at Layer 3. Destination address examined. If the address is correct segment is passed up to the appropriate service at Transport layer. 9

Routing 192.168.100.99 Source IP = 192.168.100.99 Destination IP = 172.16.3.10 172.16.3.10 Routers examine Layer 3 Destination IP addresses to forward packets. Search their routing tables. Send the packet to the next-hop router or host if on that network 10

Network Layer Protocols The Internet Protocol (IPv4 and IPv6) is the most widely-used Layer 3 data carrying protocol and will be the focus of this course. 11

IPv4 basic characteristics 12

Connectionless IP does not notify the destination host. Which layer 4 protocol on the sending host will establish a connection? TCP: A connection-oriented protocol. Which layer 4 protocol on the sending host will not establish a connection? UDP: A connectionless protocol. 13

Best Effort Service (unreliable) Layer 3 (IP) Speed over reliability Unreliable: Does not have the capability or responsibility to manage, and recover from, undelivered or corrupt packets. Who does? TCP at the end-to-end hosts 14

Media Independent Responsibility of the OSI Data Link layer to take an IP packet and prepare it for transmission over the communications medium. Transport of IP packets is not limited to any particular medium. May need to fragment the packet if it is too many bits (later). 15

IP Header Where I came from. IP Destination Address 32-bit binary value that represents the packet destination Network layer host address. IP Source Address Where I am going. 32-bit binary value that represents the packet source Network layer host address. 16

IP s TTL Time To Live field Sending hosts generates the value for TTL. Common operating system TTL values are: UNIX: 255 Linux: 64 or 255 depending upon vendor and version Microsoft Windows 95: 32 Microsoft Vista: 128 17

IP s TTL Time To Live field Decrement by 1, if 0 drop the packet. Decremented by each router. If the router decrements the TTL field to 0, it will then drop the packet. What is the advantage to decrementing the TTL by each router and dropping the packet if it is 0? So IP packets can not travel around the Internet forever, from router to router. 18

IP s Protocol Field Protocol = 06 TCP Protocol field enables the Network layer to pass the data to the appropriate upper-layer protocol. Example values are: 01 ICMP 06 TCP 17 UDP 19

IP s ToS Field Type-of-Service is used to determine the priority of each packet. Enables Quality-of-Service (QoS) mechanism for high priority traffic. What types of traffic might a network administrator need to give priority to? Traffic that cannot accept any delays. VoIP Streaming video 20

IP Fragmentation TCP MSS defines the maximum size of the data in the TCP segment. 20 bytes 20 bytes 1460 bytes Ethernet MTU defines the maximum size of the data in the Ethernet frame. TCP MSS = 1460 Data = 1460 bytes 1500 bytes The host using Ethernet, MTU of 1500 octets so I will set my MSS to 1460. Determining TCP MTU The default Ethernet MTU value for a PC is 1500 bytes. (curriculum says MSS) Typical Maximum Segment Size (MSS) of a TCP segment is 1460 bytes. The number of bytes of data. How much is enough? 21

IP Fragmentation Original IP Packet IP IP Header = 20 bytes Data = 1480 bytes IP Packet Fragments IP IP IP Data = 500 Data = 500 Data = 480 L2 L2 Data = 520 Data = 520 L2 L2 This packet is too big to go over my serial link all at once. I need to break it into smaller fragments L2 Data = 500 L2 A router may have to fragment a packet when forwarding it from one medium to another medium that has a smaller MTU. If Don t Fragment flag set, it will not fragment packet, but discard it. 22

IP Packet IP Fragmentation The outgoing link has a smaller large enough MTU so MTU I have but to I fragment don t reconstruct the packets. packets. It is my job to reconstruct the packets. IP Packet IP Packet IP Packet IP Packet Network link with larger MTU Network link with smaller MTU Network link with larger MTU IP Packet IP Packet IP Packet IP Packet IP Packet IP Packet When fragmentation occurs, it does not get reconstructed until it reaches the host. This takes processing time. Fragment Offset field identifies the order 23

Path MTU Discovery Path MTU Discovery (Not discussed here, but is important) RFC 1191 (RFC1191) Path MTU Discovery and Filtering ICMP Marc Slemko 24

Other IPv4 fields Version - Contains the IP version number (4) Header Length (IHL) - Specifies the size of the packet header. Packet Length - This field gives the entire packet size, including header and data, in bytes. Identification - This field is primarily used for uniquely identifying fragments of an original IP packet Header Checksum - The checksum field is used for error checking the packet header. Options - There is provision for additional fields in the IPv4 header to provide other services but these are rarely used. 25

Host and Network Addresses

IP Addresses First look Kiwi Airliners - Network Address 172.16.0.0/16 172.16.10.100/16 172.16.20.77/16 172.16.30.39/16 172.16.40.123/16 172.16.10.55/16 172.16.20.96/16 172.16.30.10/16 172.16.40.51/16 172.16.1.1/16 172.16.10.3/16 172.16.20.103/16 172.16.30.111/16 172.16.40.29/16 Host IP addresses are IP addresses assigned to end devices such as: Client computers Server computers Network Printers Router interfaces Note: the /16 refers to the subnet mask, which will be discussed later. Note: Intermediary devices such as a switch may have an IP address to allow the network administrator to Telnet to the device for remote management. 27

IP Addresses First look Kiwi Airliners - Network Address 172.16.0.0/16 172.16.10.100/16 172.16.20.77/16 172.16.30.39/16 172.16.40.123/16 172.16.10.55/16 172.16.20.96/16 172.16.30.10/16 172.16.40.51/16 172.16.1.1/16 172.16.10.3/16 172.16.20.103/16 172.16.30.111/16 172.16.40.29/16 Host IP addresses are members of a group of addresses call the Network Address IANA (Internet Assigned Numbers Authority) have the responsibility to allocate network addresses. A company or individual needing a network addresses typically goes to their ISP ISPs then allocate network addresses to their customers. More detail in the next chapter. 28

IP Addresses First look Network Address 172.16.0.0 172.16.10.100/16 ISP Network Address 192.168.1.0/30 172.16.10.55/16 Internet 192.168.1.1/30 192.168.1.2/30 172.16.1.1/16 172.16.10.3/16 Host IP Address Unique host IP address Default Gateway A router which is used to forward packets out of the network. This is a host IP address on the router. Host IP address on the same network as the host. The host only has to be aware of: Its own network address Default gateway IP address to reach all devices outside its own network 29

IP Addresses First look Network Address 172.16.0.0 172.16.10.100/16 Gateway: 172.16.1.1 ISP Network Address 192.168.1.0/30 172.16.10.55/16 Gateway: 172.16.1.1 Internet 192.168.1.2/30 192.168.1.1/30 172.16.1.1/16 172.16.10.3/16 Gateway: 172.16.1.1 All hosts in the same network will typically have the same default gateway IP address. 30

Confirming IP Address, Default Gateway C:\> ipconfig Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix. : IP Address............ : 172.16.10.100 Subnet Mask........... : 255.255.0.0 Default Gateway......... : 172.16.1.1 Root# ifconfig eth0 Link encap:ethernet HWaddr 00:0F:20:CF:8B:42 inet addr:172.16.1.100 Bcast:172.16.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2472694671 errors:1 dropped:0 overruns:0 frame:0 TX packets:44641779 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1761467179 (1679.8 Mb) TX bytes:2870928587 (2737.9 Mb) Interrupt:28 Linux: netstat rn for default gateway information. 31

Subnets Kiwi Airliners - Network Address 172.16.0.0/16 172.16.10.0/24 172.16.20.0/24 172.16.30.0/24 172.16.40.0/24 172.16.10.100/24 172.16.20.77/24 172.16.30.39/24 172.16.40.123/24 172.16.10.55/24 172.16.20.96/24 172.16.30.10/24 172.16.40.51/24 172.16.1.1/24 172.16.10.3/24 172.16.20.103/24 172.16.30.111/24 172.16.40.29/24 172.16.10.1/24 172.16.20.1/24 172.16.30.1/24 172.16.40.1/24 Networks can be subdivided into subnets. This provides for several benefits which we will discuss later. Networks can be grouped based on factors that include: Geographic location, Purpose, Ownership 32

A Quick Look at Routing

Routing First Look Network 192.168.1.0/24 192.168.1.254/24 Network 192.168.2.0/24 C 192.168.2.0/24 is direction connected, FastEthernet0/1 Routers know about: Directly connected networks (C): Network addresses of its interfaces Remote networks 34

Routing First Look Network 192.168.1.0/24 192.168.1.254/24 Network 192.168.2.0/24 C 192.168.2.0/24 is direction connected, FastEthernet0/1 Routers know about: Directly connected networks (C): Network addresses of its interfaces When a router is configured with the IP address/mask on an interface the router knows that it has an interface which is part of that network. This is just like a host that is configured with an IP address/mask. (coming) 35

Routing First Look Network 192.168.1.0/24 192.168.1.254/24 Network 192.168.2.0/24 C 192.168.2.0/24 is direction connected, FastEthernet0/1 Routers learn about remote networks using: Static routes Dynamic Routing Protocol (R = RIP) Routes in a routing table have three main features: Destination network Next-hop Metric 36

Routing First Look Network 192.168.1.0/24 192.168.1.254/24 Network 192.168.2.0/24 C 192.168.2.0/24 is direction connected, FastEthernet0/1 Static routes Manually entered by the administrator Dynamic Routing protocols Routers automatically learn about remote networks Ex: RIP, EIGRP, OSPF, IS-IS, BGP 37

Host Routing Table netstat r or route print Hosts also have a local routing table. Usually only contains: Its own network address (directly connected network) Default gateway IP address Hosts usually do not have remote networks in their routing tables 38