4: Network Layer 4a-1 13: IPV6 and NAT Last Modified: 10/30/2015 4:46:44 AM Adapted from Gordon Chaffee’s slides

Slides:



Advertisements
Similar presentations
Introduction to IPv6 Presented by: Minal Mishra. Agenda IP Network Addressing IP Network Addressing Classful IP addressing Classful IP addressing Techniques.
Advertisements

4: Network Layer4a-1 IPv6. 4: Network Layer4a-2 History of IPv6 r IETF began thinking about the problem of running out of IP addresses in 1991 r Requires.
IPv6 The New Internet Protocol Integrated Network Services Almerindo Graziano.
CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
Transitioning to IPv6 April 15,2005 Presented By: Richard Moore PBS Enterprise Technology.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
1 May, 2007: American Registry for Internet Numbers (ARIN) “advises the Internet community that migration to IPv6 numbering resources is necessary for.
IPv6 AL-MAJRASHI, FAHAD AL-MUQAIREN, FAHAD
The Future of TCP/IP Always evolving: –New computer and communication technologies More powerful PCs, portables, PDAs ATM, packet-radio, fiber optic, satellite,
PRIVATE NETWORK INTERCONNECTION (NAT AND VPN) & IPv6
CSCI 4550/8556 Computer Networks Comer, Chapter 22: The Future IP (IPv6)
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
1 IPv6. 2 Problem: 32-bit address space will be completely allocated by Solution: Design a new IP with a larger address space, called the IP version.
IPv6 Victor T. Norman.
IP datagrams Service paradigm, IP datagrams, routing, encapsulation, fragmentation and reassembly.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Chapter 22 IPv6 (Based on material from Markus Hidell, KTH)
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 25 Introduction to Computer Networks.
CS 457 – Lecture 16 Global Internet - BGP Spring 2012.
1 Internet Protocol Version 6 (IPv6) What the caterpillar calls the end of the world, nature calls a butterfly. - Anonymous.
Network Layer IPv6 Slides were original prepared by Dr. Tatsuya Suda.
4: Network Layer4a-1 18: VPN, IPV6, NAT, MobileIP Last Modified: 5/25/ :50:07 AM.
Network Layer introduction 4.2 virtual circuit and datagram networks 4.3 what’s inside a router 4.4 IP: Internet Protocol  datagram format  IPv4.
IP Address 1. 2 Network layer r Network layer protocols in every host, router r Router examines IP address field in all IP datagrams passing through it.
Network Layer4-1 Chapter 4 Network Layer A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students, readers).
CS 6401 IPv6 Outline Background Structure Deployment.
1Group 07 IPv6 2 1.ET/06/ ET/06/ ET/06/ EE/06/ EE/06/ EE/06/6473 Group 07 IPv6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
4: Network Layer4a-1 12: IP Multicast, VPN, IPV6, NAT, MobileIP Last Modified: 9/3/ :38:58 AM Adapted from Gordon Chaffee’s slides
Network LayerII-1 RSC Part II: Network Layer 3. IP addressing (2nd part) Redes y Servicios de Comunicaciones Universidad Carlos III de Madrid These slides.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public BSCI Module 8 Lessons 1 and 2 1 BSCI Module 8 Lessons 1 and 2 Introducing IPv6 and Defining.
1 NAT Network Address Translation Motivation for NAT To solve the insufficient problem of IP addresses IPv6 –All software and hardware need to be updated.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
1 Chapter 4: Network Layer r 4.4 IP: Internet Protocol m Datagram format m IPv4 addressing m ICMP m IPv6 r 4.5 Routing algorithms m Hierarchical routing.
Chapter 4, slide: 1 Chapter 4: Network Layer r Introduction r IP: Internet Protocol  IPv4 addressing  NAT  IPv6 r Routing algorithms  Link state 
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Router Architecture Overview
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. IP version 6 Asst. Prof. Chaiporn Jaikaeo,
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Topic of Presentation IPv6 Presented by: Mahwish Chaudhary Roll No 08TL01.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
CS 6401 IPv6 Outline Background Structure Deployment.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Network Layer Lecture 16 Imran Ahmed University of Management & Technology.
CSC 600 Internetworking with TCP/IP Unit 7: IPv6 (ch. 33) Dr. Cheer-Sun Yang Spring 2001.
Lectu re 1 Recap: “Operational” view of Internet r Internet: “network of networks” m Requires sending, receiving of messages r protocols control sending,
Page 1 Network Addressing CS.457 Network Design And Management.
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 20 Network Layer: Internet Protocol
4: Network Layer4b-1 IPv6 r Initial motivation: 32-bit address space completely allocated by r Additional motivation: m header format helps speed.
Wide Area Networks and Internet CT1403 Lecture-7: Internet Network Layer (Part-2) 1.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer NAT, IPv6.
IPv6 An Overview of Internet Protocol Version 6 Network Management Justin Houk May 3, 2010.
1 Computer Networks IPv6. 2 Motivation The primary motivation from changing the IP datagram format is to increase the size of the useable address space.
CSE5803 Advanced Internet Protocols and Applications (13) Introduction Existing IP (v4) was developed in late 1970’s, when computer memory was about.
Network Layer IP Address.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
4: Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 4: Network Layer
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CPSC 335 Data Communication.
Chapter 4: Network Layer
What’s “Inside” a Router?
Adapted from Gordon Chaffee’s slides
Network Address Translation (NAT)
DHCP: Dynamic Host Configuration Protocol
Internet Protocol version 6 (IPv6)
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

4: Network Layer 4a-1 13: IPV6 and NAT Last Modified: 10/30/2015 4:46:44 AM Adapted from Gordon Chaffee’s slides

4: Network Layer 4a-2 IPv6

4: Network Layer 4a-3 History of IPv6 r IETF began thinking about the problem of running out of IP addresses in 1991 r Requires changing IP packet format - HUGE deal! r While we’re at it, lets change X too r “NGTrans” (IPv6 Transition) Working Group of IETF - June 1996

4: Network Layer 4a-4 IPv6 Wish List r From “The Case for IPv6” r Scalable Addressing and Routing r Support for Real Time Services r Support of Autoconfiguration (get your own IP address and domain name to minimize administration r Security Support r Enhanced support for routing to mobile hosts

4: Network Layer 4a-5 IPv4 Datagram VersionHLen TOSLength IdentFlagsOffset TTLProtocolChecksum SourceAddr DestinationAddr Options (variable) Pad (variable) Data

4: Network Layer 4a-6 IPv6 Datagram VersionTrafficClassFlowLabel PayloadLenNextHeaderHopLimit SourceAddress DestinationAddress Next header/data

4: Network Layer 4a-7 IPv6 Base Header Format r VERS = IPv6 r TRAFFIC CLASS: specifies the routing priority or QoS requests r FLOW LABEL: to be used by applications requesting performance guarantees r PAYLOAD LENGTH: like IPv4’s datagram length, but doesn’t include the header length like IPv4 r NEXT HEADER: indicates the type of the next object in the datagram either type of extension header or type of data r HOP LIMIT: like IPv4’s TimeToLive field but named correctly r NO CHECKSUM (processing efficiency)

4: Network Layer 4a-8 Address Space r 32 bits versus 128 bits - implications? m 4 billiion vesus 3.4 X10 38 m 1500 addresses per square foot of the earth surface

4: Network Layer 4a-9 Addresses r Still divide address into prefix that designates network and suffix that designates host r But no set classes, boundary between suffix and prefix can fall anywhere (CIDR only) r Prefix length associated with each address

4: Network Layer 4a-10 Addresses Types r Unicast: delivered to a single computer r Multicast: delivered to each of a set of computers (can be anywhere) m Conferencing, subscribing to a broadcast r Anycast: delivered to one of a set of computers that share a common prefix m Deliver to one of a set of machines providing a common servicer

4: Network Layer 4a-11 Address Notation r Dotted sixteen? m r Colon hexadecimal notation (8 groups) m 69DC:8768:9A56:FFFF:0:5634:343 r Or even better with zero compression (replace run of all 0s with double ::) r Makes host names look even more attractive huh?

4: Network Layer 4a-12 Special addresses r Ipv4 addresses all reserved for compatibility m 96 zeros + IPv4 address = valid IPv6 address r Local Use Addresses m Special prefix which means “this needn’t be globally unique” m Allow just to be used locally m Aids in autoconfiguration

4: Network Layer 4a-13 Datagram Format r Base Header + 0 to N Extension Headers + Data Area

4: Network Layer 4a-14 Extensible Headers r Why? r Saves Space and Processing Time m Only have to allocate space for and spend time processing headers implementing features you need r Extensibility m When add new feature just add an extension header type - no change to existing headers m For experimental features, only sender and receiver need to understand new header

4: Network Layer 4a-15 Flow Label r Virtual circuit like behaviour over a datagram network r A sender can request the underlying network to establish a path with certain requirements Traffic class specifies the general requirements (ex. Delay < 100 msec.) r If the path can be established, the network returns an identifier that the sender places along with the traffic class in the flow label r Routers use this identifier to route the datagram along the prearranged path

4: Network Layer 4a-16 ICMPv6 r New version of ICMP r Additional message types, like “Packet Too Big” r Multicast group management functions

4: Network Layer 4a-17 Summary like IPv4 r Connectionless (each datagram contains destination address and is routed seperately) r Best Effort (possibility for virtual circuit behaviour) r Maximum hops field so can avoid datagrams circulating indefinitely

4: Network Layer 4a-18 Summary New Features r Bigger Address Space (128 bits/address) m CIDR only m Any cast addresses r New Header Format to help speed processing and forwarding m Checksum: removed entirely to reduce processing time at each hop m No fragmentation r Simple Base Header + Extension Headers m Options: allowed, but outside of header, indicated by “Next Header” field r Ability to influence the path a datagram will take through the network (Quality of service)

4: Network Layer 4a-19 Transition From IPv4 To IPv6 r Not all routers can be upgraded simultaneous m no “flag days” m How will the network operate with mixed IPv4 and IPv6 routers? r Two proposed approaches: m Dual Stack: some routers with dual stack (v6, v4) can “translate” between formats m Tunneling: IPv6 carried as payload n IPv4 datagram among IPv4 routers

4: Network Layer 4a-20 Dual Stack Approach

4: Network Layer 4a-21 Tunneling IPv6 inside IPv4 where needed

4: Network Layer 4a-22 More Recent History r First blocks of IPv6 addresses delegated to regional registries - July 1999 r ~ websites in the.com domain that can be reached via an IPv6 enhanced client via an IPv6 TCP connection r U.S. government agencies required to be IPv6 compliant to meet an OMB mandate announced in 2005 r 2009/10 – Major websites like Google and Facebook on IPv6 r Info from Akamai’s State of the Internet report

4: Network Layer 4a-23 IPv5? r New version of IP temporarily named “IP - The Next Generation” or IPng r Many competing proposals; name Ipng became ambiguous r Once specific protocol designed needed a name to distinguish it from other proposals r IPv5 has been assigned to an experimental protocol ST

4: Network Layer 4a-24 Network Address Translation (NAT)

4: Network Layer 4a-25 Background r RFC 1918 defines private intranet address ranges for IPv4 m (Class A) m (Class B) m (Class C) r Addresses reused by many organizations r Addresses cannot be used for communication on Internet

4: Network Layer 4a-26 Problem Discussion r Hosts on private IP networks need to access public Internet r All traffic travels through a gateway to/from public Internet r Traffic needs to use IP address of gateway r Conserves IPv4 address space m Private IP addresses mapped into fewer public IP addresses

4: Network Layer 4a-27 Scenario Gateway Host A BMRC Server All Private Network hosts must use the gateway IP address Private Network Public Internet Public network IP address, globally unique Same private network IP addresses may be used by many organizations

4: Network Layer 4a-28 Network Address Translation Solution r Special function on gateway m IP source and destination addresses are translated m Internal hosts need no changes r TCP based protocols work well r Non-TCP based protocols more difficult r Changes required to applications that embed IP addresses? FTP? Others? r Provides some security m Hosts behind gateway difficult to reach m Possibly vulnerable to IP level attacks

4: Network Layer 4a-29 TCP NAT Example Server Internet NAT Gateway PROTO SADDR DADDR SPORT DPORT FLAGS CKSUM TCP SYN 0x NAT gateway sees SYN flag set, adds new entry to its translation table. It then rewrites the packet using gateway’s external IP address, Updates the packet checksum PROTO SADDR DADDR SPORT DPORT FLAGS CKSUM TCP SYN, ACK 0x Server responds to SYN packet with a SYN,ACK packet. The packet is sent to the NAT gateway’s IP address. Client Server IPAddr Port IPAddr Port NATPort NAT Translation Table PROTO SADDR DADDR SPORT DPORT FLAGS CKSUM TCP SYN 0x Host tries to connect to web server at It sends out a SYN packet using its internal IP address, PROTO SADDR DADDR SPORT DPORT FLAGS CKSUM TCP SYN, ACK 0x NAT gateway looks in its translation table, finds a match for the source and destination addresses and ports, and rewrites the packet using the internal IP address.

Network Layer 4-30 NAT traversal problem r client wants to connect to server with address m server address local to LAN (client can’t use it as destination addr) m only one externally visible NATed address: r solution 1: statically configure NAT to forward incoming connection requests at given port to server m e.g., ( , port 2500) always forwarded to port NAT router Client ?

Network Layer 4-31 NAT traversal problem r solution 2: Universal Plug and Play (UPnP) Internet Gateway Device (IGD) Protocol. Allows NATed host to:  learn public IP address ( )  add/remove port mappings (with lease times) i.e., automate static NAT port map configuration NAT router IGD

Network Layer 4-32 NAT traversal problem r solution 3: relaying (used in Skype) m NATed client establishes connection to relay m External client connects to relay m relay bridges packets between to connections Client NAT router 1. connection to relay initiated by NATed host 2. connection to relay initiated by client 3. relaying established

4: Network Layer 4a-33 Load Balancing Servers with NAT r Single IP address for web server r Redirects workload to multiple internal servers Server NAT Gateway (Virtual Server) Private Intranet Public Internet

4: Network Layer 4a-34 Load Balancing Networks with NAT NAT Gateway r Connections from Private Intranet split across Service Providers 1 and 2 r Load balances at connection level m Load balancing at IP level can cause low TCP throughput Private Intranet Service Provider 1 Service Provider 2 Network X

4: Network Layer 4a-35 NAT Discussion r NAT works best with TCP connections r NAT breaks End-to-End Principle by modifying packets r Problems m Connectionless UDP (Real Audio) m ICMP (Ping) m Multicast m Applications use IP addresses within data stream (FTP) r Need to watch/modify data packets

4: Network Layer 4a-36 Outtakes

4: Network Layer 4a-37 6Bone r The 6Bone: an IPv6 testbed r Started as a virtual network using IPv6 over IPv4 tunneling/encapsulation r Slowly migrated to native links for IPv6 transport r RFC 2471 r Abandoned 2006

4: Network Layer 4a-38 NAT Example NAT Gateway Server Address Translator TCP Connection 1

4: Network Layer 4a-39 TCP Protocol Diagram ClientServer SYN, ACK Packet 0:50 ACK 0:50 FIN FIN, ACK Source IP Address Destination IP Address Checksum Sequence Number Dest Port NumberSource Port Number TCP Header..... IP Header..... ACK SYN SYN flag indicates a new TCP connection