Fundamentals of Computer Networks ECE 478/578 Lecture #14: InternetWorking Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.

Slides:



Advertisements
Similar presentations
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Advertisements

Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
Introduction to IPv6 Presented by: Minal Mishra. Agenda IP Network Addressing IP Network Addressing Classful IP addressing Classful IP addressing Techniques.
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv4 - The Internet Protocol Version 4
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
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.
1 EE 122: IP Addressing Ion Stoica TAs: Junda Liu, DK Moon, David Zats (Materials with thanks to Vern Paxson, Jennifer.
Chapter 5 The Network Layer.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
ECE 4450:427/527 - Computer Networks Spring 2015 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 6.2: IP Dr. Nghi Tran (ECE-University.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
Network Layer Last Update Copyright Kenneth M. Chipps Ph.D.
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
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.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
Dr. John P. Abraham Professor UTPA
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
CS 4396 Computer Networks Lab
Page 1 Network Addressing CS.457 Network Design And Management.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
Introduction to Networks
Scaling the Network: Subnetting and Other Protocols
Computer Communication Networks
IP - The Internet Protocol
IP - The Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
Internet Protocol (IP)
CS 457 – Lecture 14 Global Internet
ECE 4450:427/527 - Computer Networks Spring 2017
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Internetworking Outline Best Effort Service Model
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
Network Layer Mike Freedman COS 461: Computer Networks
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
COS 461: Computer Networks
Scaling the Network: Subnetting and Other Protocols
IP - The Internet Protocol
Introduction to Networks
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Review of Internet Protocols Network Layer
Presentation transcript:

Fundamentals of Computer Networks ECE 478/578 Lecture #14: InternetWorking Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University of Arizona

Intrernetworking An arbitrary collection of networks interconnected to provide host-to- host packet delivery 2 Router Host

The Internet Protocol (IP) A common protocol that bridges the heterogeneity between hosts of different types of networks. E.g. Interconnection of hosts H1 and H8 3

“Best Effort” Networking IP is a datagram connectionless protocol Does not provide any type of guarantee about packet delivery Out of order packet deliveries, duplicate packets, no error correction If packets are lost, IP does not try to recover or retransmit (though lower or higher layer functionalities may do so) IPoAC (IP over Avian Carriers) RFC Use pigeons to carry IP packets IPoAC has been implemented successfully carrying 9 packets with 55% packet loss, and delay from 3,000-6,000 sec. 4

IPV4 Packet Format 5 4-bit Version 4-bit Header Length 8-bit Type of Service (TOS) 16-bit Total Length (Bytes) 16-bit Identification 3-bit Flags 13-bit Fragment Offset 8-bit Time to Live (TTL) 8-bit Protocol 16-bit Header Checksum 32-bit Source IP Address 32-bit Destination IP Address Options (if any) Payload

IP Packet Header Fields(1) 6 Version number (4 bits) Indicates the version of the IP protocol Necessary to know what other fields to expect Typically “4” (for IPv4), and sometimes “6” (for IPv6) Header length (4 bits) Number of 32-bit words in the header Typically “5” (for a 20-byte IPv4 header) Can be more when “IP options” are used Type-of-Service (8 bits) Allow packets to be treated differently based on needs E.g., low delay for audio, high bandwidth for bulk transfer

7 IP Packet Header Fields(2) Total length (16 bits) Number of bytes in the packet Maximum size is 63,535 bytes ( ) … though underlying links may impose harder limits Fragmentation information (32 bits) Packet identifier, flags, and fragment offset Supports dividing a large IP packet into fragments … in case a link cannot handle a large IP packet Time-To-Live (8 bits) Used to identify packets stuck in forwarding loops … and eventually discard them from the network

Time To Live (TTL) Field 8 Potential robustness problem Forwarding loops can cause packets to cycle forever Confusing if the packet arrives much later Time-to-live field in packet header TTL field decremented by each router on the path Packet is discarded when TTL field reaches 0… …and “time exceeded” message is sent to the source

Protocol Field 9 Protocol (8 bits) Identifies the higher-level protocol E.g., “6” for the Transmission Control Protocol (TCP) E.g., “17” for the User Datagram Protocol (UDP) Important for demultiplexing at receiving host Indicates what kind of header to expect next IP header TCP headerUDP header protocol=6 protocol=17

Checksum Field 10 Checksum (16 bits) – Sum of all 16-bit words in the IP packet header – If any bits of the header are corrupted in transit – … the checksum won’t match at receiving host – Receiving host discards corrupted packets Sending host will retransmit the packet, if needed = = 350 Mismatch!

IP Addresses Field 11 Two IP addresses Source IP address (32 bits) Destination IP address (32 bits) Destination address Unique identifier for the receiving host Allows each node to make forwarding decisions Source address Unique identifier for the sending host Recipient can decide whether to accept packet Enables recipient to send a reply back to source

Fragmentation and Reassembly Various networks accept different packet size E.g. Each fragment is itself a self-contained IP datagram transmitted over various physical networks Each IP datagram is re-encapsulated for each physical networks 12

Header Fields 13

IPV4 Addresses 14 A unique 32-bit number Identifies an interface (on a host, on a router, …) Represented in dotted-quad notation

A Flat Architecture 15 Suppose hosts had arbitrary addresses Then every router would need a lot of information …to know how to direct packets toward the host host LAN 1... host LAN 2... router WAN forwarding table

IP Addressing Routing protocols need addresses to find the destinations IP addresses are hierarchical (Why?) Network part Host part Class-based Addressing 16

IP Address Classes Class A: Initial byte: 0 – 127, 126 Nets; (0, 127 reserved); 16,777,214 hosts per network MIT IP: Class B: Initial byte: 128 – 191; 16,384 networks; 65,532 hosts per network Arizona IP: Class C: Initial byte: 192 – 223; 2,097,152 networks; 254 hosts per network Your home IP:

Think of Postal Addresses 18 Mail Addresses Zip code: Street: E. Speedway Blvd. Building on street: 1230 Room in building: 357 Name of occupant: John Smith Delivering mail Deliver letter to the post office in the zip code Assign letter to mailman covering the street Drop letter into mailbox for the building/room Give letter to the appropriate person

Hierarchy in IP Addresses 19 Divided into network and host portions (left and right) /24 is a 24-bit prefix with 2 8 addresses Network (24 bits)Host (8 bits)

Subnetting 20

An Example of Subnetting 21

Easier to Route Packets 22 Number related hosts from a common subnet /24 on the left LAN /24 on the right LAN host LAN 1... host LAN 2... router WAN / /24 forwarding table

23 Easy to Add New Hosts No need to update the routers E.g., adding a new host on the right Doesn’t require adding a new forwarding entry host LAN 1... host LAN 2... router WAN / /24 forwarding table host

Classless Inter-Domain Routing (CIDR) IP Address : IP Mask: Address Mask for hostsNetwork Prefix Use two 32-bit numbers to represent a network. Network number = IP address + Mask Written as /15

CIDR: Hierarchal Address Allocation / / / / / /16 :::::: / /24 :::: / / / / / / /19 :::::: Prefixes are key to Internet scalability Address allocated in contiguous chunks (prefixes) Routing protocols and packet forwarding based on prefixes Today, routing tables contain ~150, ,000 prefixes

Obtaining a Block of Addresses Separation of control Prefix: assigned to an institution Addresses: assigned by the institution to their nodes Who assigns prefixes? Internet Corporation for Assigned Names and Numbers Allocates large address blocks to Regional Internet Registries Regional Internet Registries (RIRs) E.g., ARIN (American Registry for Internet Numbers) Allocates address blocks within their regions Allocated to Internet Service Providers and large institutions Internet Service Providers (ISPs) Allocate address blocks to their customers Who may, in turn, allocate to their customers…

Are 32-bit Addresses Enough? Not all that many unique addresses 2 32 = 4,294,967,296 (just over four billion) Plus, some are reserved for special purposes And, addresses are allocated in larger blocks Many devices need IP addresses Computers, PDAs, routers, tanks, toasters, … Long-term solution: a larger address space IPv6 has 128-bit addresses (2 128 = × ) Short-term solutions: limping along with IPv4 Private addresses Network address translation (NAT) Dynamically-assigned addresses (DHCP)

Hard Policy Questions How much address space per geographic region? Equal amount per country? Proportional to the population? What about addresses already allocated? Address space portability Keep your address block when you change providers? Pro: avoid having to renumber your equipment Con: reduces the effectiveness of address aggregation Keeping the address registries up to date What about mergers and acquisitions? Delegation of address blocks to customers? As a result, the registries are horribly out of date