Internet Packets. Forwarding Datagrams



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

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

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

CS335 Sample Questions for Exam #2

IP addressing and forwarding Network layer

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

RARP: Reverse Address Resolution Protocol

Based on Computer Networking, 4 th Edition by Kurose and Ross

IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

Assignment #3 Routing and Network Analysis. CIS3210 Computer Networks. University of Guelph

8.2 The Internet Protocol

The Wireless Network Road Trip

Internet Architecture and Philosophy

Exam 1 Review Questions

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

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Transport and Network Layer

Chapter 4 Network Layer

IP Multicasting. Applications with multiple receivers

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

ELEC3030 (EL336) Computer Networks. How Networks Differ. Differences that can occur at network layer, which makes internetworking difficult:

Introduction to IP v6

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

How do I get to

Answers to Sample Questions on Network Layer

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

CS 78 Computer Networks. Internet Protocol (IP) our focus. The Network Layer. Interplay between routing and forwarding

Based on Computer Networking, 4 th Edition by Kurose and Ross

Lecture 8. IP Fundamentals

LESSON Networking Fundamentals. Understand TCP/IP

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

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

Lecture 2-ter. 2. A communication example Managing a HTTP v1.0 connection. G.Bianchi, G.Neglia, V.Mancuso

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

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

Voice over IP: RTP/RTCP The transport layer

Computer Networks CS321

Chapter 9. IP Secure

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

Classful IP Addressing. Classless Addressing: CIDR. Routing & Forwarding: Logical View of a Router. IP Addressing: Basics

Internet Control Protocols Reading: Chapter 3

Advanced Networking Voice over IP: RTP/RTCP The transport layer

Data Communication Networks and Converged Networks

IST 220 Exam 3 Notes Prepared by Dan Veltri

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

IP Subnetting and Addressing

The Network Layer Functions: Congestion Control

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

EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics and Computer Science

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

Protocols. Packets. What's in an IP packet

CS101 Lecture 19: Internetworking. What You ll Learn Today

Lecture Computer Networks

The OSI Model and the TCP/IP Protocol Suite

Objectives. The Role of Redundancy in a Switched Network. Layer 2 Loops. Broadcast Storms. More problems with Layer 2 loops

Network Models OSI vs. TCP/IP

The OSI and TCP/IP Models. Lesson 2

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

Candidates should attempt FOUR questions. All questions carry 25 marks.

Introduction to TCP/IP

IP address format: Dotted decimal notation:

Cisco Configuring Basic MPLS Using OSPF

Final for ECE374 05/06/13 Solution!!

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

20-CS X Network Security Spring, An Introduction To. Network Security. Week 1. January 7

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

Introduction to IPv6 and Benefits of IPv6

VXLAN: Scaling Data Center Capacity. White Paper

CSCI 454/554 Computer and Network Security. Topic 8.1 IPsec

PART IV. Network Layer

UPPER LAYER SWITCHING

IPv6 Trace Analysis using Wireshark Nalini Elkins, CEO Inside Products, Inc.

Instructor Notes for Lab 3

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013

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

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

Unix System Administration

Architecture and Performance of the Internet

Networking Test 4 Study Guide

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

Network Layer: Network Layer and IP Protocol

Routing Protocols (RIP, OSPF, BGP)

R2. The word protocol is often used to describe diplomatic relations. How does Wikipedia describe diplomatic protocol?

Master Course Computer Networks IN2097

Internet Protocol Version 6 (IPv6)

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Transport Layer Protocols

ICS 351: Today's plan

ASIST Administração de Sistemas

Data Link Layer Overview

Software Defined Networking (SDN) - Open Flow

Chapter 11. User Datagram Protocol (UDP)

Route Discovery Protocols

PART OF THE PICTURE: The TCP/IP Communications Architecture

ISTANBUL. 1.1 MPLS overview. Alcatel Certified Business Network Specialist Part 2

Explicit Multicast Routing

Link Layer. 5.6 Hubs and switches 5.7 PPP 5.8 Link Virtualization: ATM and MPLS

Ethernet (LAN switching)

Transcription:

Internet Packets Packets at the network layer level are called datagrams They are encapsulated in frames for delivery across physical networks Frames are packets at the data link layer Datagrams are formed by header and payload Datagrams can have different sizes Header is fixed (20 bytes) Data area can contain between 1 byte and 65 KB Forwarding Datagrams Header contains all information needed to deliver datagrams to destination computer Destination address Source address Identifier Other delivery information Router examines header of each datagram and forwards datagram along path to destination 1

Networks and IP addressing IP address: Network part + Host part Network: Any host can physically be reached by any other host without intervening router All hosts in the same network have the same network number network consisting of 3 IP networks (for IP addresses starting with 223, first 24 bits are network address) Routing Routing means finding a suitable path for a packet from sender to destination A possible route Another possible route 2

Routing (cont d) A router must choose between two or more paths that lead to the destination. Choosing the shortest path Typically, there are multiple hops to make the journey Unless the hosts are on the same network The routing algorithm is the part of a network layer software responsible for deciding which output line a packet should be transmitted on Routing Table Each router stores information about forwarding in a routing table Initialized at system initialization Must be updated as network topology changes A routing table contains a list of destination networks and next hop for each destination Note that a router has several IP addresses! One IP address per interface 3

Routing Table (cont d) Each table contains information to deliver a packet to the next hop Each table entry has two parts First part: Network segment (prefix) of IP address of the packet destination No need for the host segment (suffix) Router only delivers across networks; each network takes care of in-network delivery to host Second part: IP address of next router interface Specifies where the packet should go If one more hop is needed, we write here the IP address of the next router interface Example of Routing Table IP datagram: misc fields source IP addr dest IP addr data datagram remains unchanged, as it travels source to destination A B routing table in A Dest. Net. next router Nhops 223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2 E 4

Routing Example 1 misc fields data IP datagram from A, addressed to B: look up net. address of B find B is on same net. as A link layer will send datagram directly to B inside link-layer frame B and A are directly connected A B Dest. Net. next router Nhops 223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2 E Routing Example 2 misc fields data IP datagram from A, addressed to E look up network address of E E on different network A, E not directly attached routing table: next hop router to E is 223.1.1.4 link layer sends datagram to router 223.1.1.4 inside link-layer frame datagram arrives at 223.1.1.4 continued.. A B Dest. Net. next router Nhops 223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2 E 5

Routing Example 2 (cont d) Dest. next misc fields data network router Nhops interface 223.1.1-1 223.1.1.4 Arriving at 223.1.4, destined for look up network address of E E on same network as router s interface 223.1.2.9 router, E directly attached link layer sends datagram to inside link-layer frame via interface 223.1.2.9 datagram arrives at!!! (hooray!) 223.1.2-1 223.1.2.9 223.1.3-1 A B E Internet Protocol (IP) IP (Internet Protocol) is the network layer protocol for the Internet It is responsible for datagram routing Important: each datagram is routed independently! Two different datagrams in the same connection can take different routes! This can determine different delay for different packets within the same connection 6

IP (cont d) IP provides a best effort delivery mechanism Does not guarantee to prevent duplicate datagrams, delayed and out-of-order delivery, corruption of data or datagram loss Reliable delivery is provided by the transport layer, not the network layer (IP) Network layer (IP) can detect and report errors without actually fixing them Datagram Header Format Payload Header 7

Address Resolution Remember, once a packet is in a network, the IP address in the packet needs to be translated to a MAC address This is called address resolution A host or a router uses address resolution only when it needs to send a packet to another computer (host or router) in the same network A computer never resolves the address of a computer that attaches to a remote network! 8