© MMII JW RyderCS 428 Computer Networking1 Reading  Make sure you read all of chapter 2 & 3.

Slides:



Advertisements
Similar presentations
1 Internet Protocol: Routing IP Datagrams D. E. Comer, “Internetworking with TCP/IP: Principles, Protocols and Architectures”, Ch. 8, Prentice Hall, 2000.
Advertisements

CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Chapter 18. IP: Internet Protocol Addresses
CSCI 4550/8556 Computer Networks Comer, Chapter 18: IP: Internet Protocol Addresses.
IP Addressing. TCP/IP addresses -Addressing in TCP/IP is specified by the Internet Protocol (IP) -Each host is assigned a 32-bit number -Called the IP.
IP: The Internet Protocol
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
COS 420 Day 18. Agenda Group Project Discussion Program Requirements Rejected Resubmit by Friday Noon Protocol Definition Due April 12 Assignment 3 Due.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
COS 420 Day 3.
© MMII JW RyderCS 428 Computer Networks1 Mapping Internet to Physical Addresses  2 machines on a physical network can only communicate if they know each.
Lecture Slide Rizwan Rehman, CCS. Classless and Subnet Address Extensions (CIDR) Topics: –There are problems with the IP addressing scheme we’ve studied.
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.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
8/26/2015CST Computer Networks1 CST 415.  Definitions  Internetworking  Internet Addressing  The Endians Revisited 8/26/2015CST Computer.
1 Internet Addresses (You should read Chapter 4 in Forouzan) IP Address is 32 Bits Long Conceptually the address is the pair ( NETID, HOSTID ) Addresses.
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
Network Redundancy Multiple paths may exist between systems. Redundancy is not a requirement of a packet switching network. Redundancy was part of the.
Classless and Subnet Address Extensions (CIDR)
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
Copyright 2002, Marchany TCP/IP Review Randy Marchany VA Tech Computing Center Spring, 2001.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
CSC 600 Internetworking with TCP/IP Unit 4: Internet Addresses (Ch. 4, 5, 6, 10) Dr. Cheer-Sun Yang Spring 2001.
Lesson 6 - (1 of 37) Addressing in TCP/IP LESSON 6 (September 22, 1995) Daniel Z. Tabor Jr. New Jersey Institute of Technology.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
© MMII JW RyderCS 428 Computer Networking1 Private Network Interconnection  VPN - Virtual Private Networks  NAT - Network Address Translation  Describe.
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
Chapter 15 - Internetworking Motivation Universal service Internetworking Routers Internet architecture Routers in an organization A virtual network A.
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
CMPT 471 Networking II Address Resolution IPv4 ARP RARP 1© Janice Regan, 2012.
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 2: Configuring Network Protocols.
Chapter 18 IP: Internet Protocol Addresses
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
1 CSCI 233 Internet Protocols Class 2 Dave Roberts.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Protocols Chapter 5 (TCP/IP Suite Book): IPv4 Addresses
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.
Universal Identifier UNIVERSAL IDENTIFIER Universal network = globally accepted method for identifying each computer. Host identifier = host is identify.
Internetworking Concept and Architectural Model Chapter 3.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
COS 420 Day 3. Agenda Assignment Due Jan 29, 2003 Next Class Individual Projects assigned Today.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Internet Protocol: Routing IP Datagrams Chapter 8.
Classful Internet Addresses Chapter 4. Universal Identifiers Designers of TCP/IP determined that each host on the internet would have a 32-bit identifier.
CS470 Computer Networking Protocols
INTERNET ADDRESSING Today’s topics:  What are Internet addresses?  Why do we need them?  How are they used?
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
Layer 3 Routing and Addressing. Layer 3 Responsibilities Move data through a set of networks. Use a hierarchical addressing scheme. Segment network and.
Chapter 22 Q and A Victor Norman IS333 Spring 2016.
Chapter 9 Introduction To Data-Link Layer 9.# 1
IP: Addressing, ARP, Routing
Lecture 3 By Miss Irum Matloob.
Scaling the Network: The Internet Protocol
Chapter 22 Q and A Victor Norman CS332 Fall 2017.
Chapter 6 – Routing.
CS4470 Computer Networking Protocols
Objective: Classful Internet Addressing
Internetworking & Address Resolution
CS 428 Computer Networking
Data Communications and Networking
Internet Addressing Today’s topics: What are Internet addresses?
Scaling the Network: The Internet Protocol
Delivering the Data.
Classless and Subnet Address Extensions (CIDR)
Layering and the TCP/IP protocol Suite
Presentation transcript:

© MMII JW RyderCS 428 Computer Networking1 Reading  Make sure you read all of chapter 2 & 3

© MMII JW RyderCS 428 Computer Networking2 Internet Architecture  How are networks interconnected to form an internetwork?  We’ve seen how hosts on a single network interconnect  Physically  2 networks attached by a computer that attaches to both of them  Doesn’t guarantee that the computer will cooperate with other hosts  Need computers willing to shuffle packets from one network to another  They are internet gateways (internet routers)

© MMII JW RyderCS 428 Computer Networking3 IP Routers  See figure 3.1 on page 56 (draw)  Need to know about topology of internet beyond connected networks  See figure 3.2 on page 57  R 1 must transfer from network 1 to network 2 all packets destined for both network 2 and 3

© MMII JW RyderCS 428 Computer Networking4 IP Routers  In a TCP/IP internet, computers called routers or gateways provide all interconnections among physical networks.  Routers are usually small computers with limited memory and disk storage  Trick: Routers use the destination network, not the destination host when routing a packet

© MMII JW RyderCS 428 Computer Networking5 IP Routers  Amount of information needed to keep is proportional to the number of networks in the internet not the number of computers  User’s view of internet is single virtual network to which all machines connect  See figure 3.3 on page 59  Advantage of network level interconnection (over app level) is that application level programs need not be concerned with network details

© MMII JW RyderCS 428 Computer Networking6 All Networks are Equal  Any communication system capable of transferring packets counts as a single network  Ethernet LAN  WAN - ANSNET backbone  Point to Point link  How do IP addresses work

© MMII JW RyderCS 428 Computer Networking7 Internet Addresses  TCP/IP internet, a virtual network built by interconnecting physical networks with routers  Now we discuss addressing  Hides physical network details

© MMII JW RyderCS 428 Computer Networking8 Universal Comm. Service  Any to any host  Needs globally accepted method of computer id  Names - What an object is  Addresses - Where it is  Route - How to get there  IP addresses - 32 bit integers  Chosen to make routing efficient  Encodes id of network to which the host attaches as well as host id itself

© MMII JW RyderCS 428 Computer Networking9 IP Addresses  Unique 32 bit address used for ALL communication with that host  Simplest view  Each host has unique 32 bit addr  Bits of all hosts on a common network share same prefix  Each addr. is a pair (netid, hostid)  netid = network id  hostid = host id

© MMII JW RyderCS 428 Computer Networking10 IP Address Classes Class A (000) Class B (128) Class C (192) Class D (224) Class E (240) 0 netid hostid 1 0 netid hostid netid hostid multicast address reserved for future use - 2 bits can distinguish between 3 common classes

© MMII JW RyderCS 428 Computer Networking11 Address Classes  Class A - Handful of networks that each have more than 2 16 (65,536) hosts  7 bits to netid, 24 bits to hostid  Class B - Intermediate size networks - between 2 8 and 2 16 hosts  14 bits to netid, 16 bits to hostid  Class C - Less than 2 8 hosts  21 bits to the netid, 8 to hostid

© MMII JW RyderCS 428 Computer Networking12 IP Addresses  Dealt with as 32 bit addresses  Assume following IP Addr.  (Decimal)  89.8D (Hexadecimal)  (Binary) Class B (128) 1 0 netid hostid ‘898D’x ‘9823’x decimal

© MMII JW RyderCS 428 Computer Networking13 Multi-Homed Hosts  A router connects 2 or more physical networks  How is one IP address assigned to the router???  IP Addr. encode a network and a host  A router is a multi-homed host

© MMII JW RyderCS 428 Computer Networking14 Network Connections  Routers have 2 or more IP Addresses  One for each network on which it resides  IP addresses do not specify and individual computer, but a connection to a network  A router connecting n networks has n distinct IP addresses, one for each network connection

© MMII JW RyderCS 428 Computer Networking15 Network Addresses  By convention, hostid 0 is never assigned to an individual host  IP addr. with hostid = 0 refers to the network itself  (hostid = 0.0 right??)  This allows IP addresses to refer to networks as well as hosts  All bits of hostid = 0 ?  Refers to a network

© MMII JW RyderCS 428 Computer Networking16 Broadcast Address  Any hostid consisting of strictly 1’s is reserved for broadcast  Broadcast not supported on all networks  Early release of Berkeley Unix used all 0’s, still around  Sometime option of specifying 0’s - not recommended  Directed broadcast still correctly identifies the network but broadcasts to all hosts on a given network

© MMII JW RyderCS 428 Computer Networking17 Limited Broadcast  32 bits of 1’s  Broadcast only to local network  Host may use this prior to knowing its IP addr. at start up  Field of 1’s = ‘All’  Field of 0’s = ‘This’  IP addr. with hostid = 0 refers to ‘this’ host  Network id = 0 refers to ‘this’ network

© MMII JW RyderCS 428 Computer Networking18 This  Receive a packet with netid of dest. addr = 0 and hostid matches its address  Interpret to mean ‘this’ network  Addressing scheme actually slightly more intricate  Subnetting

© MMII JW RyderCS 428 Computer Networking19 Internet Addresses  Disadvantages  Address refers to network connections  Host moves to a different network, it must change its IP addr.  If IP addr referred to host itself the could move without changing IP addr.

© MMII JW RyderCS 428 Computer Networking20 Traveling PC Example  Disconnect your computer from your local network.  Take it with you on a trip  Reconnect to an internet at destination  PC cannot ‘own’ an IP address because the IP addr. is associated with the physical network not the host  Do example in Lons le Saunier

© MMII JW RyderCS 428 Computer Networking21 Another Disadvantage  Any class C network that grows beyond 255 hosts must change its class to Class B  Big pain to change  One less Class B network address available Class C (192) netid hostid

© MMII JW RyderCS 428 Computer Networking22 Largest Flaw  Not entirely apparent until we do routing  Routing is based on internet addresses (IP addr) with netid portion used to make routing decisions  Multi-homed host  Because routing uses the netid portion of IP addr. the path taken to a multi-homed host will depend entirely upon which IP addr. was supplied

© MMII JW RyderCS 428 Computer Networking23 Multiple Routes  Multiple names for same host yield packets for same host behaving differently  It may be impossible to reach a dest. even though you know a valid IP addr. Network 1 Network 2 R A B I 1 I 2 I 3 I 4 I 5 I = IP Addr. R = Router B known by two IP addresses

© MMII JW RyderCS 428 Computer Networking24 Dotted Decimals  IP Addresses written as 4 decimal integers separated by decimal points  is  Unix netstat command - displays current routing  telnet, ftp - application programs all use dotted decimal notation Class Lowest Addr. Highest Addr. A B C D E

© MMII JW RyderCS 428 Computer Networking25 Loopback Address  Not all possible addresses are assigned to classes  not used - Class A  Used for loopback - usual addr used is  Intended for TCP/IP testing and IPC on local machine

© MMII JW RyderCS 428 Computer Networking26 Special Addresses All 0’s This host All 0’s Host Host on this net All 1’s Limited Broadcast (local net) Net All 1’s Directed Broadcast for specific network 127 Anything,often 1 Loopback Limited and Direct Broadcast addresses are never valid source addresses. Length of netid portion of directed broadcast depends on network class. All 0’s only allowed at system start up.

© MMII JW RyderCS 428 Computer Networking27 Internet Addressing Authority  Internet Assigned Number Authority (IANA)  Ultimate control over numbers assigned and sets policy  An organization can obtain network addresses from the Internet Network Information Center (INTERNIC)  Only needed to assign network portion of IP Address. Why ???

© MMII JW RyderCS 428 Computer Networking28 More IP Addr Stuff  Only necessary to assign IP Addresses to networks which will participate in the Internet  = IBM; = AT&T; = ARPANET  See figure 4.5 on page 73  3 networks, what are their classes? How do you know?

© MMII JW RyderCS 428 Computer Networking29 IP Address Assignment  See figure 4.6 on page 73  Host computers now attached and IP addresses assigned  4 hosts  Arthur, Merlin, Guenevere, Lancelot  2 routers  Taliesyn, Glatisant  Multi-homed host  Note network IP addresses, remember classes

© MMII JW RyderCS 428 Computer Networking30 Network Byte Order  32 bit binary integer; What does it look like in memory ???  Let’s take the hexadecimal number ‘6789ABCD’x  Which one does it look like ?  a) 6789ABCD  b) ABCD6789  c) CDAB8967  d) 8967CDAB  e) None of the above

© MMII JW RyderCS 428 Computer Networking31 Network Byte Order  Let’s take the hexadecimal number ‘6789ABCD’x  Which one does it look like ?  a) 6789ABCD (Big Endian)  b) ABCD6789 (Little Endian)  c) CDAB8967 (LE&ByteSwap)  d) 8967CDAB (Just odd)  e) None of the above  Little Endian stores LOB portion of the integer at the lowest address  Big Endian stores HOB portion of the integer at the lowest address

© MMII JW RyderCS 428 Computer Networking32 Network Byte Order  With TCP/IP, Network Standard Byte Order is defined to be Big Endian  Most Significant Byte is sent first and down the line  If the architecture of the machine does not match this pattern then it is the responsibility of the TCP/IP developers for that machine to convert data on the way in and out

© MMII JW RyderCS 428 Computer Networking33 Internet Routing  Read Chapters 7 & 8  Routing - Process of choosing a path over which to send packets  Router - A computer making such a choice  Goal: “… provide a virtual network that encompasses multiple physical networks and offers a connectionless datagram delivery service.” - Comer

© MMII JW RyderCS 428 Computer Networking34 Routers  An internet composed of multiple physical networks interconnected by computers called routers  Router - direct connections to 2 or more physical networks  Host computer - a single, direct connection

© MMII JW RyderCS 428 Computer Networking35 Routers  Multi-homed hosts - direct connections to 2 or more physical networks  Both hosts and routers route IP datagrams  Hosts??  Two or more routers on network? Which to send to? Host must make decision  Any computer with multiple network connections can act as a router

© MMII JW RyderCS 428 Computer Networking36 Delivery  Direct - Local  Sender encapsulates datagram in a physical frame  Binds dest IP addr to a physical hardware addr  Sends frame to destination  Known local because netid matches host’s netid  Indirect - Between physical networks

© MMII JW RyderCS 428 Computer Networking37 Indirect Delivery  Sender must identify a router to send datagram to  Router then forwards it toward its destination  When frame reaches the router  Software extract the encapsulated datagram  IP software selects next router along the path  Datagram again placed in a frame  Sent over physical network to next router

© MMII JW RyderCS 428 Computer Networking38 Table Driven Routing  IP Routing Table on each machine  netstat -nr  Want to contain most minimal information at all times  Next hop routing done by using the routing tables  (N, R) pairs  N = netid part of IP addr  R = Next router along path to N

© MMII JW RyderCS 428 Computer Networking39 Next Hop Routing  Important - all routers identified in machine M’s routing table are physically located on the same network as M  When a datagram ready to leave M  IP software locates dest IP addr  extracts the network portion to make routing decision  M will select a router which M can directly reach  Hosts have minimal information, rely on routers

© MMII JW RyderCS 428 Computer Networking40 Routing Example R Q S Direct Delivery Direct Delivery IP Addr Gateway

© MMII JW RyderCS 428 Computer Networking41 Consequences  All traffic destined for given network use same path  Even when multiple paths exist, won’t be used  Only final router can determine if dest. host exists or is operational  Need way for routers to return delivery problem errors  Datagrams travelling from A to B may follow a different path from B to A

© MMII JW RyderCS 428 Computer Networking42 Default Routes  Especially useful when local network has small set of hosts and 1 connection to internet  2 tests  One for local network  Default that points to default router

© MMII JW RyderCS 428 Computer Networking43 Routing Algorithm RouteDatagram (Datagram, RoutingTable) Extract destination IP addr, D, from the datagram and compute the network prefix, N; If N matches any directly connected network address, deliver datagram to destination D over that network (This involves resolving D to a physical address, encapsulating the datagram, and sending the frame) else if the table contains a host-specific route for D send the datagram to next hop specified in the table else if the table contains a route for network N, send datagram to next hop specified in the table else if the table contains a default route, send datagram to the default router specified in the table else declare a routing error