IP : Internet Protocol Addresses Rsc.Asst.Kamil Serhan Bilman 2000900595.

Slides:



Advertisements
Similar presentations
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
Advertisements

TCP/IP TCP/IP architecture
CSE331: Introduction to Networks and Security Lecture 8 Fall 2002.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
Network Layer Packet Forwarding IS250 Spring 2010
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Introduction to TCP/IP
Subnetting.
Spring 2002CS 4611 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Chapter Overview TCP/IP Protocols IP Addressing.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
26-Aug-154/598N: Computer Networks Recap SBC UUNET Comcast Sprint End Users Internet First mile problem Last mile problem.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
1 Internetworking : Internet architecture and TCP/IP Protocol TK3133 Computer Networking Technology.
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
Network Layer – Subnetting and Control Protocols Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing,
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
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.
Hour 4 The Internet Layer 1. What You'll Learn in This Hour: IP addresses The IP header ARP ICMP 2.
Lecture 3 Overview. Protocol An agreed upon convention for communication both endpoints need to understand the protocol. Protocols must be formally defined.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
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.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
Cisco Confidential © 2013 Cisco and/or its affiliates. All rights reserved. 1 Cisco Networking Training (CCENT/CCT/CCNA R&S) Rick Rowe Ron Giannetti.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Packet Switch Network Server client IP Ether IPTCPData.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
IP Addressing Introductory material.
Introduction to Networks
© 2003, Cisco Systems, Inc. All rights reserved.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP: Addressing, ARP, Routing
Scaling the Network: The Internet Protocol
CS4470 Computer Networking Protocols
TCP/IP Transmission Control Protocol / Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
Internetworking Outline Best Effort Service Model
Net 323 D: Networks Protocols
Scaling the Network: The Internet Protocol
Introduction to Networks
Ch 17 - Binding Protocol Addresses
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
Presentation transcript:

IP : Internet Protocol Addresses Rsc.Asst.Kamil Serhan Bilman

What is an IP address?  An IP address is a unique global address for a network interface  An IP address: is a 32 bit long identifier is a 32 bit long identifier encodes a network number (network prefix) and a host number encodes a network number (network prefix) and a host number

The Abstract Addresses  To provide uniform addressing in an internet, protocol software defines an abstract addressing scheme that assigns each host a unique address.  Users, application programs, and higher layers of protocol software use the abstract addresses to communicate.

The IP Addressing Scheme  Each host is assigned a unique 32-bit number known as the host’s Internet Protocol address.  To transmit information across a TCP/IP (Transmission control protocol) internet, a computer must know the IP addres of the destination and the source.

Important Properties of IPv4  32-bit address  Hierarchical Network, subnet, host hierarchy Network, subnet, host hierarchy  Each computer is assigned a unique address  Network number assignments must be coordinated globally.  Divided into two parts : prefix and suffix Different physical networks – different prefixes Different physical networks – different prefixes Same physical network – different suffixes Same physical network – different suffixes

Dotted Decimal Notation  IP addresses are written in a so-called dotted decimal notation  Each byte is identified by a decimal number in the range [0..255]:

Classes of IP Addresses  Three primary classes

Classes of IP Addresses ClassFromTo A B C D E

Special IP Addresses  Reserved addresses loopback address loopback address Suffix is all 0sname of the network Suffix is all 0sname of the network Suffix is all 1sbroadcast on the network Suffix is all 1sbroadcast on the network Prefix & suffix 0sthis computer Prefix & suffix 0sthis computer  Special addresses are reserved and should never be assigned to host computers.

Problems  Too few network addresses for large networks Class A and Class B addresses are gone Class A and Class B addresses are gone  Two-layer hierarchy is not appropriate for large networks with Class A and Class B addresses. Subnetting Subnetting  Inflexible.  Exploding Routing Tables: Routing on the backbone Internet needs to have an entry for each network address. In 1993, the size of the routing tables started to outgrow the capacity of routers.  The Internet is going to outgrow the 32-bit addresses IP Version 6 IP Version 6

Subnetting  Part of the host number (suffix) can be used to identify a (sub) network IP address space has a 3-level hierarchy IP address space has a 3-level hierarchy Hosts and routers need to know the subnetmask Hosts and routers need to know the subnetmask  Subnetting with mask is quite common.

Advantages of Subnetting  Improves efficiency of IP addresses by not consuming an entire Class B or Class C address for each physical network  Reduces router complexity. Since external routers do not know about subnetting, the complexity of routing tables at external routers is reduced.  With subnetting, IP addresses use a 3-layer hierarchy: Network Network Subnet Subnet Host Host

IPv4 Address Model  IP addresses Decimal-dot notation Decimal-dot notation Host in class A network Host in class A network www.usps.gov www.usps.govwww.usps.gov Host in class B network Host in class B network www.cs.uiuc.edu www.cs.uiuc.eduwww.cs.uiuc.edu Host in class C network Host in class C network  Internet domain names ASCII strings separated by periods ASCII strings separated by periods Provides some administrative hierarchy Provides some administrative hierarchy host.subdomain.domain.domain_type (com, edu, gov, org, …)host.subdomain.domain.domain_type (com, edu, gov, org, …) host.domain.country (us, de, jp, …)host.domain.country (us, de, jp, …)

IPv4 Address Model

IPv4 Header

IPv4 Address Translation  IP addresses to LAN physical addresses Problem Problem An IP route can pass through many physical networksAn IP route can pass through many physical networks Data must be delivered to destination’s physical networkData must be delivered to destination’s physical network Hosts only listen for packets marked with physical interface namesHosts only listen for packets marked with physical interface names Solution Solution Translate from IP address to physical addressTranslate from IP address to physical address Address Resolution Protocol (ARP)Address Resolution Protocol (ARP)  Internet domain name to IP address Domain to IP translation Domain to IP translation Domain Name Service (DNS)Domain Name Service (DNS)

IP to Physical Address Translation  Hard-coded Encode physical address in IP address Encode physical address in IP address Ex: Map Ethernet addresses to IP addresses Ex: Map Ethernet addresses to IP addresses Makes it impossible to associate address with topologyMakes it impossible to associate address with topology  Fixed table Maintain a central repository and distribute to hosts Maintain a central repository and distribute to hosts Bottleneck for queries and updatesBottleneck for queries and updates  Automatically generated table Use ARP to build table at each host Use ARP to build table at each host Use timeouts to clean up table Use timeouts to clean up table

ARP  Check table for physical address  If address not present Broadcast a query, include host’s translation Broadcast a query, include host’s translation Wait for a response Wait for a response  Upon receipt of ARP query/response Targeted host responds with address translation Targeted host responds with address translation If address already present If address already present Refresh entry and reset timeoutRefresh entry and reset timeout If address not present If address not present Add entry for requesting hostAdd entry for requesting host Ignore for other hostsIgnore for other hosts  Timeout and discard entries

ARP Packet

 Hardware type Type of physical network (e.g. Ethernet) Type of physical network (e.g. Ethernet)  Protocol type Higher layer protocol (e.g. IP) Higher layer protocol (e.g. IP)  HLEN Hardware (link-layer) address length Hardware (link-layer) address length  PLEN Protocol address length Protocol address length  Operation Request or response Request or response  Source and target hardware address  Source and target protocol address

IP Packet Format

 4-bit version IPv4 = 4, IPv6 = 6 IPv4 = 4, IPv6 = 6  4-bit header length Counted in words, minimum of 5 Counted in words, minimum of 5  8-bit type of service field (TOS) Mostly unused Mostly unused  16-bit data length Counted in bytes Counted in bytes

IP Packet Format  Fragmentation support 16-bit packet ID 16-bit packet ID All fragments from the same packet have the same IDAll fragments from the same packet have the same ID 3-bit flags 3-bit flags 1-bit to mark last fragment1-bit to mark last fragment 13-bit fragment offset into packet 13-bit fragment offset into packet Counted in wordsCounted in words  8-bit time-to-live field (TTL) Hop count decremented at each router Hop count decremented at each router Packet is discard if TTL = 0 Packet is discard if TTL = 0

IP Packet Format  8-bit protocol field TCP = 6, UDP = 17 TCP = 6, UDP = 17  16-bit IP checksum on header  32-bit source IP address  32-bit destination IP address  Options Variable size Variable size Source-based routing Source-based routing Record route Record route  Padding Fill to 32-bit boundaries Fill to 32-bit boundaries

IP Fragmentation and Reassembly  Problem Different physical layers provide different limits on frame length Different physical layers provide different limits on frame length Maximum transmission unit (MTU)Maximum transmission unit (MTU) Source host does not know minimum value Source host does not know minimum value Especially along dynamic routesEspecially along dynamic routes  Solution When necessary, split IP packet into acceptably sized packets prior to sending over physical link When necessary, split IP packet into acceptably sized packets prior to sending over physical link Questions Questions Where should reassembly occur?Where should reassembly occur? What happens when a fragment is damaged/lost?What happens when a fragment is damaged/lost?

IP Fragmentation and Reassembly  Fragments are self-contained IP packets  Reassemble at destination to minimize refragmentation  Drop all fragments in packet if one or more fragments are lost  Avoid fragmentation at source host Transport layer should send packets small enough to fit into one MTU of local physical network Transport layer should send packets small enough to fit into one MTU of local physical network Must consider IP headerMust consider IP header

Host Configuration  What configuration information does a host need? Its IP address Its IP address Default router address Default router address  Reverse Address Resolution Protocol (RARP) Translate physical address to IP address Translate physical address to IP address Used to boot diskless hosts Used to boot diskless hosts Host broadcasts request to boot Host broadcasts request to boot RARP server tells host the host’s own IP address RARP server tells host the host’s own IP address  Implementation at a higher level DHCP DHCP

Dynamic Host Configuration Protocol (DHCP)  A simple way to automate configuration information Network administrator does not need to enter host IP address by hand Network administrator does not need to enter host IP address by hand Good for large and/or dynamic networks Good for large and/or dynamic networks

Internet Control Message Protocol (ICMP)  Handles error and control messages  Error Messages Host unreachable Host unreachable Reassembly failed Reassembly failed IP checksum failed IP checksum failed TTL exceeded (packet dropped) TTL exceeded (packet dropped) Invalid header Invalid header  Control Messages Echo/ping request and reply Echo/ping request and reply Echo/ping request and reply with timestamps Echo/ping request and reply with timestamps Route redirect Route redirect

IPv6 – IP version 6  Is the successor to the currently used IPv4 Specification completed in 1994 Specification completed in 1994 Makes improvements to IPv4 (no revolutionary changes) Makes improvements to IPv4 (no revolutionary changes)  One feature of IPv6 is a significant increase of the IP address to 128 bits (16 bytes) IPv6 will solve – for the foreseeable future – the problems with IP addressing IPv6 will solve – for the foreseeable future – the problems with IP addressing

IPv6 Header

IPv6 versus IPv4  IPv4 has a maximum of 2 32 ~ 4 billion addresses 2 32 ~ 4 billion addresses  IPv6 has a maximum of ~ (2 32 ) ~ (2 32 ) 4 4 billion x 4 billion x 4 billion x 4 billion addresses

Thank you