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

Similar documents
IPv6 : Internet Protocol Version 6

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

Internet Protocols (chapter 18)

ETSF05/ETSF10 Internet Protocols Network Layer Protocols

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

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

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

Internet Protocol, Version 6

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

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

Network layer: Overview. Network Layer Functions

ET4254 Communications and Networking 1

Planning for Information Network

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

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

CMPE 80N: Introduction to Networking and the Internet

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


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

CSCI-1680 Network Layer:

TCP/IP Protocol Suite

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

TSIN02 - Internetworking

Router Architecture Overview

IP - The Internet Protocol

ETSF10 Internet Protocols Network Layer Protocols

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

CS 356: Computer Network Architectures. Lecture 15: DHCP, NAT, and IPv6. [PD] chapter 3.2.7, 3.2.9, 4.1.3, 4.3.3

Internet Network Protocols IPv4/ IPv6

Introduction to Internetworking

IPv6 Protocol & Structure. npnog Dec, 2017 Chitwan, NEPAL

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

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

Introduction to IPv6

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

internet technologies and standards

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

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

The explosive growth of the Internet. IPv4 address space, 32-bit Real-time and interactive applications

IPv6 Protocol Architecture

SEN366 (SEN374) (Introduction to) Computer Networks

CSC 4900 Computer Networks: Network Layer

OSI Data Link & Network Layer

OSI Data Link & Network Layer

Lecture Computer Networks

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

Networking: Network layer

Configuring IPv6 basics

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

Chapter 4: Network Layer

COSC4377. TCP vs UDP Example Statistics

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

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

OSI Data Link & Network Layer

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

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

Asst. Prof. Chaiporn Jaikaeo, Ph.D.

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

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

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

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

Network Layer (4): ICMP

TCP /IP Fundamentals Mr. Cantu

Internet Routing Protocols Part II

ECE 435 Network Engineering Lecture 13

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

Computer Networking Introduction

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

Configuring IPv6. Information About IPv6. Send document comments to CHAPTER

IPv6: An Introduction

Internet Control Message Protocol (ICMP)

CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Operation Manual IPv6 H3C S3610&S5510 Series Ethernet Switches Table of Contents. Table of Contents

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

ECE 4450:427/527 - Computer Networks Spring 2017

CSF645 Mobile Computing 行動計算. IPv6. (Internetworking With TCP/IP vol Part 31) 吳俊興國立高雄大學資訊工程學系

Table of Contents 1 IPv6 Configuration IPv6 Application Configuration 2-1

IP: Addressing, ARP, Routing

Internet Technology 3/23/2016

CN1047 INTRODUCTION TO COMPUTER NETWORKING CHAPTER 5 OSI MODEL NETWORK LAYER

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

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

Chapter 4 Network Layer

Chapter 4 Network Layer: The Data Plane

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

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Master Course Computer Networks IN2097

DHCP & NAT. Module : Computer Networks Lecturer : Lucy White Office : 324

Introduction to Computer Networks. CS 166: Introduction to Computer Systems Security

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Transitioning to IPv6

IP/MAC Address Translation

Lecture 16: Network Layer Overview, Internet Protocol

Networking Potpourri: Plug-n-Play, Next Gen

IPv6 Technical Challenges

Internetwork Protocols

Network Layer: Internet Protocol

INTRODUCTION OF IPV6. Ravikumar Naik 21/11/2011

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Transcription:

CS-435 spring semester 2016 Network Technology & Programming Laboratory University of Crete Computer Science Department Stefanos Papadakis & Manolis Spanakis

CS-435 Lecture #4 preview ICMP ARP DHCP NAT IPv6 Header Addressing

ICMP Internet Control Message Protocol core IP protocol ICMPv4 (RFC792) / ICMPv6 (RFC4443) used for signaling error messages 8 bytes header encapsulated in a single IP datagram used by: ping traceroute

The ARP Address Resolution Protocol MAC address is required to send to LAN host How to find it: manually included in network address use central directory use address resolution protocol ARP (RFC 826) provides dynamic IP to ethernet address mapping source broadcasts ARP request destination replies with ARP response

DHCP Dynamic Host Configuration Protocol Plug & play client-server protocol Requires at least one trusted server in the infrastructure Four step process

DHCP DHCP_Discover Src 0.0.0.0 Dst 255.255.255.255 Must be forwarded across broadcast domains DHCP_Offer Provides the parameters in unicast DHCP_Request Src 0.0.0.0 DHCP_Discover DHCP_Offer DHCP_Request DHCP_ACK Dst 255.255.255.255 DHCP_ACK

NAT Network Address Translation IP address management within organizations should be easy & safe Flexible w.r.t. growing number of machines Not encumbered by global addressing problems Solution: NAT

NAT the Internet NAT enabled local network 10.0.0.0/24 10.0.0.1 133.16.79.7 10.0.0.4 10.0.0.2 10.0.0.3 All datagrams leaving local network appear to have the same single source NAT IP address: 133.16.79.7, only with different source port numbers Datagrams with source or destination in this network have 10.0.0.0/24 address for source, destination

NAT Local network uses just one IP address as far as outside word is concerned: no need to be allocated range of addresses from ISP: just one IP address is used for all devices can change addresses of devices in local network without notifying outside world can change ISP without changing addresses of devices in local network devices inside local network not explicitly addressable, visible by outside world (security ++).

NAT NAT router must: For the outgoing datagrams: replace (source IP address, port #) of every outgoing datagram to (NAT IP address, new port #)... remote clients/servers will respond using (NAT IP address, new port #) as destination address Keep for lookup a NAT translation table with every (source IP address, port #) (NAT IP address, new port #) For the incoming datagrams: replace (NAT IP address, new port #) in dest fields of every incoming datagram with corresponding (source IP address, port #) stored in NAT table

IPv6 The Internet Protocol (IP) v4 has been the foundation of the Internet and virtually all multivendor private internetworks. This protocol is reaching the end of its useful life and a new protocol, known as IPv6 (IP version 6, originally: IPng), has been defined to ultimately replace IP The Internet Engineering Task Force (IETF) issued a call for proposals for a next generation IP (IPng) in July 1992. By 1994 the final design for IPv6 had emerged.

Why Change IP versions? Address space exhaustion two level addressing (network & host) is wasteful network addresses used even if not connected growth of networks and the Internet extended use of TCP/IP single/multi addresses per interface requirements for new types of service

Why Change IP versions?

IPv6 Enhancements expanded 128 bit address space (vs 32bit of IPv4) improved option mechanism most not examined by intermediate routes dynamic address assignment increased addressing flexibility anycast & multicast (NO broadcast) support for resource allocation labeled packet flows (QoS) integrates security (IPsec)

IPv6 packet structure Hop-by-Hop Options header: Defines special options that require hop-by-hop processing. Routing header: Provides extended routing, similar to IPv4 source routing. Fragment header: Contains fragmentation and reassembly information. Authentication header: Provides packet integrity and authentication. Encapsulating Security Payload header: Provides privacy. Destination Options header: Contains optional information to be examined by the destination node.

IPv4 vs IPv6 header

IPv6 header Version (4 bits): 6. DS/ECN (8 bits): used by originating nodes and/or forwarding routers for differentiated services and congestion functions, see IPv4 DS/ECN field. Flow Label (20 bits): used by a host to label those packets for which it is requesting special handling by routers within a network. Payload Length (16 bits): Length of the remainder of the IPv6 packet following the header, in octets: this is the total length of all of the extension headers plus the transport-level segment. Next Header (8 bits): Identifies the type of header immediately following the IPv6 header; this will either be an IPv6 extension header or a higher-layer header, such as TCP or UDP.

IPv6 header Hop Limit (8 bits): The remaining number of allowable hops for this packet. The hop limit is set to some desired maximum value by the source and decremented by 1 by each node that forwards the packet. The packet is discarded if Hop Limit is decremented to zero. Source Address (128 bits): address of originator of the packet. Destination Address (128 bits): address of intended recipient of the packet.

The flow label A flow is uniquely identified by the combination of a source address, destination address, and a nonzero 20-bit flow label. All packets that are to be part of the same flow are assigned the same flow label by the source. A flow may be a single TCP connection or even multiple TCP connections.

The flow label From the router's point of view: a flow is a sequence of packets that share attributes that affect how these packets are handled by the router. These include: path, resource allocation, discard requirements, accounting, and security attributes. The router may treat packets from different flows differently in a number of ways, including: allocating different buffer sizes, giving different precedence in terms of forwarding, and requesting different quality of service from networks.

The flow label In principle, all of a user's requirements for a particular flow could be defined in an extension header and included with each packet. alternative, for IPv6, using the flow label, in which the flow requirements are defined prior to flow commencement and a unique flow label is assigned to the flow. the router must save flow requirement information about each flow.

IPv6 Addressing Like IPv4 Unicast An identifier for a single interface. A packet sent to a unicast address is delivered to the interface identified by that address. Multicast An identifier for a set of interfaces (typically belonging to different nodes). A packet sent to a multicast address is delivered to all interfaces identified by that address. Anycast: An identifier for a set of interfaces (typically belonging to different nodes). A packet sent to an anycast address is delivered to one of the interfaces identified by that address (the "nearest" one, according to the routing protocols' measure of distance). Specified in the IPv6 address architecture RFC.

IPv6 Addressing Broadcast? There is no broadcast in IPv6. This functionality is taken over by multicast. A consequence of this is that the highest address may be used freely

IPv6 Addressing IPv6 addresses of all types are assigned to interfaces, not nodes. An IPv6 unicast address refers to a single interface. As each interface belongs to a single node, any of that node's interfaces' unicast addresses may be used as an identifier for the node. The same interface identifier may be used on multiple interfaces on a single node

IPv6 Addressing All addresses are 128 bits Write as sequence of eight sets of four hex digits (16 bits each) separated by colons Leading zeros in group may be omitted Contiguous all-zero groups may be replaced by :: Only one such group can be replaced

IPv6 Addressing Example: 3ffe:3700:0200:00ff:0000:0000:0000:0001 This can be written as 3ffe:3700:200:ff:0:0:0:1 or 3ffe:3700:200:ff::1 All three reduction methods are used here.

The unicast addressing Unspecified address All zeros (::) Used as source address during initialization Also used in representing default Loopback address Low-order one bit (::1) Same as 127.0.0.1 in IPv4

The unicast addressing Link-local address (FE80::/10) Unique on a subnet Auto configured Routers must not forward any packets with link-local source or destination addresses.

The unicast addressing Site-local address Unique to a site Used when a network is isolated and no global address is available.

The unicast addressing Stateless Address Auto-Configuration (SLAAC)

The unicast addressing Mapped IPv4 addresses Of form ::FFFF:a.b.c.d Used by dual-stack machines to communicate over IPv4 using IPv6 addressing Compatible IPv4 addresses Of form ::a.b.c.d Used by IPv6 hosts to communicate over automatic tunnels