TSIN02 - Internetworking

Similar documents
TSIN02 - Internetworking

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Internet Protocols (chapter 18)

Network Layer/IP Protocols

Chapter 19 Network Layer: Logical Addressing

Module 7 Internet And Internet Protocol Suite

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

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

SEN366 (SEN374) (Introduction to) Computer Networks

Internet Protocol, Version 6

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

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

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

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

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

Lecture Computer Networks

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

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Vorlesung Kommunikationsnetze

Lecture 8 Network Layer: Logical addressing

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

IPv6. (Internet Protocol version 6)

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

NETWORK LAYER: IP Addressing

Chapter 4 Network Layer

ET4254 Communications and Networking 1

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

TCP/IP Protocol Suite

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

Chapter 5 TCP/IP SUITE

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

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

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

OSI Data Link & Network Layer

Contents. IP addressing configuration commands 1 display ip interface 1 display ip interface brief 3 ip address 5

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

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

Internetworking Part 2

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

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

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Internet Control Message Protocol (ICMP)

Network Layer (4): ICMP

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

Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis

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

ETSF10 Internet Protocols Network Layer Protocols

Internetworking Part 2

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

IPv6 : Internet Protocol Version 6

History. IPv6 : Internet Protocol Version 6. IPv4 Year-Wise Allocation (/8s)

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

IPv6: An Introduction

LOGICAL ADDRESSING. Faisal Karim Shaikh.

OSI Data Link & Network Layer

ICS 451: Today's plan

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

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits


OSI Data Link & Network Layer

Network Layer: outline

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

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Network Layer: Internet Protocol

Network Layer PREPARED BY AHMED ABDEL-RAOUF

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

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

IP: Addressing, ARP, Routing

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

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

IPv4. Christian Grothoff.

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

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

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

CSCI-1680 Network Layer:

Router Architecture Overview

Each ICMP message contains three fields that define its purpose and provide a checksum. They are TYPE, CODE, and CHECKSUM fields.

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat no true in practice. administrative autonomy

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

Internet Protocol (IP)

Lecture 10: Addressing

Introduction to IPv6. IPv6 addresses

Lecture 18 Overview. Last Lecture. This Lecture. Next Lecture. Internet Protocol (1) Internet Protocol (2)

Introduction to routing in the Internet

Introduction to IPv6. IPv6 addresses

Chapter 9 Internet Protocol Version 6 (IPv6)

The IP and Related Protocols

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

Internet Technology 3/23/2016

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

Chapter 09 Network Protocols

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

Introduction to routing in the Internet

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

Networking Fundamentals

Network layer: Overview. Network Layer Functions

(ICMP), RFC

Transcription:

Lecture 2: The Internet Protocol Literature: Forouzan: ch 4-9 and ch 27 2004 Image Coding Group, Linköpings Universitet

Outline About the network layer Tasks Addressing Routing Protocols 2

Tasks of the network layer Source to destination delivery of packets (across multiple networks) Logical addressing - addresses valid over network borders Routing Fragmentation and reassembly 3

Logical vs Physical Addresses Each network interface card (NIC) has a physical address, eg MAC addresses. They are enough within a LAN, but give no routing help outside the local area. Logical addresses were created to help with communication between networks. Nodes within a LAN have neighbouring IP addresses. All traffic to the network can be routed using the common part of the addresses in the LAN, the network address. 4

Addressing 32 bit addresses in IPv4 -->approx 4300 million addresses available. Dotted decimal notation, eg. 198.36.42.18 Sometimes hexadecimal notation is used, eg 0xC6242A12 5

Multihomed Devices 6

Classful Addressing Addresses are assigned in blocks where the block size is defined by the chosen class. Classes A-E. The first byte defines the class. Note! This is an obsolete addressing scheme! (They are still in use though...) Many organisations have been assigned more addresses than they need! One reason we are running out of addresses! 7

Classful addressing Figures from Forouzan 8

NetID and HostID 9

Addresses and netmasks The network address is the first address in a block. The broadcast address is the last address in a block. A network mask is a 32 bit number such that the network address can be found by applying (bitwise, logical AND) the mask to any address in the block. 10

Using more addresses Several techniques have been developed to lower the number of wasted addresses, eg.: Subnetting - divide a block into subnets using netmasks. Supernetting - combine blocks into supernets using netmasks. Classless addressing - no classes In all cases the number of nets must be a power of 2 11

With and without subnetting Figure from Forouzan 12

Subnetting example A company is given the site address 201.70.64.0 (class C). The company needs six subnets. Design the subnets! 13

Example solution The number of 1s in the default mask is 24 (class C). The company needs six subnets. This is not a power of 2, so we will create eight subnets (8=23). We need three more 1s in the subnet mask, making it 27 in total The number of 0s is 32-27=5, so the mask is: 11111111 11111111 11111111 11100000 or 255.255.255.224 14

Example solution Figure from Forouzan 15

A Supernetwork Figure from Forouzan 16

Supernet example We made a supernetwork out of 4 class C blocks. What is the supernet mask? We are using 4 blocks. For 4 blocks we need to change two 1s to 0s in the default mask. So the mask is: 11111111 11111111 11111100 00000000 or 255.255.252.0 17

Classless Addressing Addresses are assigned in blocks of variable size. One restriction is that the size of the block should be a power of 2. Slash notation - short form of network mask A.B.C.D/n where n is the number of 1s in the network mask. 18

Delivery and Routing Direct or indirect delivery Connection-oriented or connectionless service Routing tables - gets huge next-hop network specific default routing static or dynamic 19

Direct vs Indirect delivery Figure from Forouzan 20

Next-hop routing Figure from Forouzan 21

Network Specific Routing Figure from Forouzan 22

Default Routing Figure from Forouzan 23

Static or Dynamic Routing Static routing routing table is entered manually Dynamic routing routing table is periodically updated using a dynamic routing protocol, like RIP, OSPF or BGP. 24

Protocols Figure from Forouzan 25

ARP Maps logical addresses to physical addresses. ARP requests are broadcasts on the LAN. An ARP packet is encapsulated directly into a data link frame. Figure from Forouzan 26

ARP Communication Figure from Forouzan 27

Proxy ARP Figure from Forouzan 28

RARP Maps physical addresses to logical addresses. RARP requests are broadcast on the LAN A RARP packet is encapsulated directly into a data link frame There are newer and better alternatives to RARP BOOTP DHCP Figure from Forouzan 29

RARP Communication Figure from Forouzan 30

The Internet Protocol (IP) Unreliable Connectionless A best effort delivery service 31

Datagram Figure from Forouzan 32

Fragmentation Maximum transfer unit (MTU) Each data link layer protocol use its own frame format. Fragmentation needed when passing to a network with a smaller MTU (IPv4). MTU examples: Hyperchannel - 65535 bytes Ethernet - 1500 bytes PPP - 296 bytes 33

Options Options are used for testing and debugging purposes Figure from Forouzan 34

Checksum Redundant information added that is used for error detection The checksum is constructed as follows: 1. Divide the packet into k sections, each of n bits 2. All sections are added together using one's complement arithmetic. (We will look at this during Class 1) 3. The result is complemented to make the checksum 35

ICMP Messages are encapsulated in IP datagrams. Two types of messages: Error reporting Dest. unreachable Source quench Time exceeded Parameter problems Redirection Query Echo request and reply Timestamp request and reply Address-mask request and reply Router solicitation and advertisement Figure from Forouzan 36

IPv6 Addressing Packet format Extension headers Difference from IPv4 Transition from IPv4 to IPv6 37

IPv6: Addressing There is a new addressing system in IPv6: 128 bit addresses new notation (hexadecimal colon notation) eg. FDEC:BA33:0000:0000:FFCD:03F1:0000:0001 ( or FDEC:BA33::FFCD:3F1:0:1) slash notation supported Three types of addresses unicast anycast multicast Address structure 128 bits variable Type Prefix Rest of address Figure from Forouzan 38

Address Space Assignments Type Prefix 0000 0000 010 1111 1110 10 1111 1110 11 1111 1111 Type Reserved Provider based addresses Link local addresses Site local addresses Multicast addresses Fraction 1/256 1/256 1/1024 1/1024 1/256 Unspecified Loopback IPv4 Type 3 bits Registry id 5bits Provider id 16 bits Subscriber id 24 bits Subnet id 32 bits Node id 48 bits 39

IPv6 Datagram Figure from Forouzan 40

Datagram format Figure from Forouzan 41

Extension headers (options) Hop-by-hop option Pad1 PadN Jumbo payload Source routing Fragmentation Authentication Encrypted Security Payload Destination Option (No Next Header) 42

Extension Header Format Figure from Forouzan 43

Difference from IPv4 (Much) larger address space Better header format New options Prepared for extensions Support for resource allocation (flow label) Support for more security 44

Transition Strategies Dual stack - hosts keep a dual stack of protocols, thus running IPv4 and IPv6 simultaneously. Tunneling - passing IPv6 packets through a region where IPv4 is used. Automatic Configured Header translation - when only a few hosts use IPv4 45

ICMPv6 Message format Difference from ICMPv4 46

What's new? ARP and IGMP included in ICMPv6 RARP dropped Error report IGMP Source quench report dropped Packet too big report added ICMP - Query - Timestamp query dropped - Address mask query dropped ICMP IP IP ARP RARP Network layer in version 4 Figures from Forouzan Network layer in version 6 47

ICMPv6 message format Figure from Forouzan 48

ICMPv6 Error Messages Destination Unreachable Packet Too Big Time Exceeded Parameter Problem 49