CSCI-1680 Network Layer:

Similar documents
Introduction to IP v6

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

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

Overview. Lecture 16: IP variations: IPv6, multicast, anycast. I think we have a problem. IPv6. IPv6 Key Features

8.2 The Internet Protocol

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

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

Technical Support Information Belkin internal use only

Internet Control Protocols Reading: Chapter 3

Lecture Computer Networks

IPv6 Fundamentals: A Straightforward Approach

Future Internet Technologies

ProCurve Networking IPv6 The Next Generation of Networking

IP addressing and forwarding Network layer

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

IP - The Internet Protocol

Internet Protocols. Addressing & Services. Updated:

DHCP, ICMP, IPv6. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley DHCP. DHCP UDP IP Eth Phy

RARP: Reverse Address Resolution Protocol

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

Internet Protocol: IP packet headers. vendredi 18 octobre 13

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

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

We Are HERE! Subne\ng

Types of IPv4 addresses in Internet

IP Address Classes (Some are Obsolete) Computer Networking. Important Concepts. Subnetting Lecture 8 IP Addressing & Packets

Internet Protocol Version 6 (IPv6)

Firewalls und IPv6 worauf Sie achten müssen!

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

IPv6 Advantages. Yanick Pouffary.

Networking Test 4 Study Guide

04 Internet Protocol (IP)

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

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

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

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

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

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

IPv6 Fundamentals Ch t ap 1 er I : ntroducti ti t on I o P IPv6 Copyright Cisco Academy Yannis Xydas

Technology Brief IPv6 White Paper.

ERserver. iseries. Networking TCP/IP setup

IPv6 Associated Protocols

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

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

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Variable length subnetting

2. IP Networks, IP Hosts and IP Ports

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

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

Telematics. 9th Tutorial - IP Model, IPv6, Routing

Internet Protocol version 4 Part I

CIRA s experience in deploying IPv6

- IPv4 Addressing and Subnetting -

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

Are You Ready to Teach IPv6?

Savera Tanwir. Internet Protocol

IP Addressing A Simplified Tutorial

Internet Addresses (You should read Chapter 4 in Forouzan)

How do I get to

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

IP address format: Dotted decimal notation:

Getting started with IPv6 on Linux

Transport and Network Layer

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

Recent advances in IPv6 insecurities Marc van Hauser Heuse Deepsec 2010, Vienna Marc Heuse

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

Troubleshooting Tools

IP Multicasting. Applications with multiple receivers

Tomás P. de Miguel DIT-UPM. dit UPM

IP Next Generation (IPv6)

Internet Protocol Address

Learn About Differences in Addressing Between IPv4 and IPv6

Introduction to TCP/IP

Internet Architecture and Philosophy

TCP/IP Fundamentals. Edmund Lam IT Audit Manager University of California 7/25/99 1

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

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

Review: Internet Protocol (IP) Computer Networking. IP Address Problem (1991) Review: IP Protocol. IPv6 and NATs

IP Addressing Introductory material.

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Ethernet. Ethernet. Network Devices

TCP/IP Network Essentials. Linux System Administration and IP Services

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

Lecture 8. IP Fundamentals

Internetworking and Internet-1. Global Addresses

ICS 351: Today's plan

Network Layer: Address Mapping, Error Reporting, and Multicasting

Review: Lecture 1 - Internet History

21.4 Network Address Translation (NAT) NAT concept

IPv6 Hardening Guide for Windows Servers

IPv6 Addressing. Awareness Objective. IPv6 Address Format & Basic Rules. Understanding the IPv6 Address Components

unisys ClearPath Enterprise Servers TCP/IP Implementation and Operations Guide ClearPath MCP 16.0 April

Overview Computer Networking. IP Address Classes (Some are Obsolete) Outline. Lecture 9 IP Packets. CIDR IP addressing. Forwarding examples

BASIC ANALYSIS OF TCP/IP NETWORKS

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

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

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

How will the Migration from IPv4 to IPv6 Impact Voice and Visual Communication?

Subnetting,Supernetting, VLSM & CIDR

Transcription:

CSCI-1680 Network Layer: Wrapup Rodrigo Fonseca Based partly on lecture notes by Jennifer Rexford, Rob Sherwood, David Mazières, Phil Levis, John JannoA

Administrivia Homework 2 is due Monday So we can post solutions before the midterm! Exam on Tuesday All content up to today Questions similar to the homework Book has some exercises, sample on the course web page

Today: IP Wrap-up IP Service models Unicast, Broadcast, Anycast, Multicast ICMP Traceroute NAT IPv6 Tunnels

Different IP Service Models Broadcast: send a packet to all nodes in some subnet. One to all 255.255.255.255 : all hosts within a subnet, never forwarded by a router All ones host part : broadcast address Host address (255.255.255.255 & ~subnet mask) E.g.: 128.148.32.143 mask 255.255.255.128 ~mask = 0.0.0.127 => Bcast = 128.148.32.255 Example use: DHCP Not present in IPv6 Use multicast to link local all nodes group

Anycast Multiple hosts may share the same IP address One to one of many routing Example uses: load balancing, nearby servers DNS Root Servers (e.g. f.root-servers.net) Google Public DNS (8.8.8.8) IPv6 6-to-4 Gateway (192.88.99.1)

Anycast Implementation Anycast addresses are /32s At the BGP level Multiple ASs can advertise the same prefixes Normal BGP rules choose one route At the Router level Router can have multiple entries for the same prefix Can choose among many Each packet can go to a different server Best for services that are fine with that (connectionless, stateless)

Multicast Send messages to many nodes: one to many Why do that? Snowcast, Internet Radio, IPTV Stock quote information Multi-way chat / video conferencing Multi-player games What s wrong with sending data to each recipient? Link stress Have to know address of all destinations

Multicast Service Model Receivers join a multicast group G Senders send packets to address G Network routes and delivers packets to all members of G Multicast addresses: class D (start 1110) 224.x.x.x to 229.x.x.x 28 bits le for group address

LAN Multicast Easy on a shared medium Ethernet multicast address range: 01:00:57:00:00:00 to 01:00:57:7f:ff:ff Set low 23 bits of Ethernet address to low bits of IP address (Small problem: 28-bit group address -> 23 bits) How about on the Internet?

Use Distribution Trees Source-specific trees: Spanning tree over recipients, rooted at each source Best for each source Shared trees: Single spanning tree among all sources and recipients Hard to find one shared tree that s best for many senders State in routers much larger for source-specific

Source vs Shared Trees

Building the Tree: Host to Router Nodes tell their local routers about groups they want to join IGMP, Internet Group Management Protocol (IPv4) MLD, Multicast Listener Discovery (IPv6) Router periodically polls LAN to determine memberships Hosts are not required to leave, can stop responding

Building the Tree across networks Routers maintain multicast routing tables Multicast address -> set of interfaces, or <Source, Multicast address> -> set of interfaces Critical: only include interfaces where there are downstream recipients

Practical Considerations Multicast protocols end up being quite complex Introduce a lot of router state Turned off on most routers Mostly used within domains In the department: Ganglia monitoring infrastructure IPTV on campus Alternative: do multicast in higher layers

ICMP

Internet Control Message Protocol (ICMP) Echo (ping) Redirect Destination unreachable (protocol, port, or host) TTL exceeded Checksum failed Reassembly failed Can t fragment Many ICMP messages include part of packet that triggered them See http://www.iana.org/assignments/icmp-parameters

ICMP message format 0 1 2 3 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 20-byte IP header (protocol = 1 ICMP) Type Code depends on type/code Checksum

Example: Time Exceeded 0 1 2 3 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 20-byte IP header (protocol = 1 ICMP) Type = 11 Code unused Checksum IP header + first 8 payload bytes of packet that caused ICMP to be generated Code usually 0 (TTL exceeded in transit) Discussion: traceroute

Example: Can t Fragment Sent if DF=1 and packet length > MTU What can you use this for? Path MTU Discovery Can do binary search on packet sizes But better: base algorithm on most common MTUs

Practical Example: Traceroute Problem: how to determine the path to a given host? One solution: record route IP option Routers add their addresses to the packet as it goes Problem: IPv4 option space is only 40 bytes Another solution: Traceroute Uses the TTL field, plus return ICMP Time Exceeded messages, for packets with increasing TTL Problems? Examples

Network Address Translation (NAT) Despite CIDR, it s still difficult to allocate addresses (2 32 is only 4 billion) IPv6 solves this NAT hides entire network behind one address Hosts are given private addresses Routers map outgoing packets to a free address/ port Router reverse maps incoming packets Problems?

IPv6 Main motivation: IPv4 address exhaustion Initial idea: larger address space Need new packet format: REALLY expensive to upgrade all infrastructure! While at it, why don t we fix a bunch of things in IPv4? Work started in 1994, basic protocol published in 1998

Source: potaroo.net

IPv6 Key Features 128-bit addresses Autoconfiguration Simplifies basic packet format through extension headers 40-byte base header (fixed) Make less common fields optional Security and Authentication

IPv6 Address Representation Groups of 16 bits in hex notation 47cd:1244:3422:0000:0000:fef4:43ea:0001 Two rules: Leading 0 s in each 16-bit group can be omitted 47cd:1244:3422:0:0:fef4:43ea:1 One contiguous group of 0 s can be compacted 47cd:1244:3422::fef4:43ea:1

IPv6 Addresses Break 128 bits into 64-bit network and 64-bit interface Makes autoconfiguration easy: interface part can be derived from Ethernet address, for example Types of addresses All 0 s: unspecified 000 1: loopback ff/8: multicast fe8/10: link local unicast fec/10: site local unicast All else: global unicast

IPv6 Header Ver Class Flow Length Next Hdr. Hop limit Source (16 octets, 128 bits) Destination (16 octets, 128 bits)

IPv6 Header Fields Version: 4 bits, 6 Class: 8 bits, like TOSS in IPv4 Flow: 20 bits, identifies a flow Length: 16 bits, datagram length Next Header, 8 bits: Hop Limit: 8 bits, like TTL in IPv4 Addresses: 128 bits No options, no checksum

Interoperability RFC 4291 Every IPv4 address has an associated IPv6 address Simply prefix 32-bit IPv4 address with 96 bits of 0 E.g., ::128.148.32.2 Two IPv6 endpoints must have IPv6 stacks Transit network: v6 v6 v6 : v4 v4 v4 : v4 v6 v4 : v6 v4 v6 :!!

IP Tunneling Encapsulate an IP packet inside another IP packet Makes an end-to-end path look like a single IP hop IPv4 Header IPv6 Packet IPv6 Packet

IPv6 in IPv4 Tunneling A D 1 IPv4 D 2 6 4 4 6 B Key issues: configuring the tunnels Determining addresses Determining routes Deploying relays to encapsulate/forward/decapsulate 6to4 is a standard to automate this Deterministic address generation Anycast 192.88.99.1 to find gateway into IPv6 network Drawbacks: voluntary relays, requires public endpoint address

Other uses for tunneling Virtual Private Networks Use case: access CS network from the outside Set up an encrypted TCP connection between your computer and Brown s OpenVPN server Configure routes to Brown s internal addresses to go through this connection Can connect two remote sites securely

Extension Headers Two types: hop-by-hop and end-to-end Both have a next header byte Last next header also denotes transport protocol Destination header: intended for IP endpoint Fragment header Routing header (loose source routing) Hop-by-hop headers: processed at each hop Jumbogram: packet is up to 2 32 bytes long!

Example Next Header Values 0: Hop by hop header 1: ICMPv4 4: IPv4 6:TCP 17: UDP 41: IPv6 43: Routing Header 44: Fragmentation Header 58: ICMPv6

Fragmentation and MTU Fragmentation is supported only on end hosts! Hosts should do MTU discovery Routers will not fragment: just send ICMP saying packet was too big Minimum MTU is 1280-bytes If some link layer has smaller MTU, must interpose fragmentation reassembly underneath

Current State IPv6 Deployment has been slow Most end hosts have dual stacks today (Windows, Mac OSX, Linux, *BSD, Solaris) 2008 Google study: Less than 1% of traffic in any country Requires all parties to work! Servers, Clients, DNS, ISPs, all routers IPv4 and IPv6 will coexist for a long time

Next time: Midterm A er that, transport layer and above! UDP, TCP, Congestion Control Application protocols