Q and A, Ch. 21 IS333, Spring 2015 Victor Norman.

Slides:



Advertisements
Similar presentations
CS332 Victor Norman Spring 2014
Advertisements

Addressing the Network IPv4
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Chapter 21 Exercises 1. A router forwards packets between networks. (Given a destination host address, it must be able to figure out which network that.
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 18. IP: Internet Protocol Addresses
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
1 IP: Internet Protocol Addresses. 2 Internet Protocol (IP) Only protocol at Layer 3 Fundamental in suite Defines –Internet addressing –Internet packet.
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.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
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.
Subnetting and CIDR Textbook Ch 3.2.5
EEC-484/584 Computer Networks Lecture 11 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
EEC-484/584 Computer Networks Lecture 11 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
Chapter 19 Network Layer: Logical Addressing
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
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.
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
Spring Ch 18 IP Addresses. 2 Internet Protocol  Only protocol at Layer 3  Defines Internet addressing Internet packet format Internet routing.
Types of Addresses in IPv4 Network Range
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.
IP Addressing Introductory material. An entire module devoted to IP addresses.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
CIS 3360: Internet: Network Layer Introduction Cliff Zou Spring 2012.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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:
VLSM and RIPv2 Warren Toomey GCIT. Introduction Switches deliver frames to stations. Routers deliver packets to networks. Only the final router has to.
ICS 156: Lecture 2 (part 1) Today:  IP addressing  Data link protocols and ARP  Notes about lab.
21-IP addressing Dr. John P. Abraham Professor UTPA.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
Chapter 23: ARP, ICMP, DHCP CS332, IS333 Spring 2014.
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.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
21-IP addressing Dr. John P. Abraham Professor UTPA.
CS470 Computer Networking Protocols
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
1 Variable Length Subnet Masks ( VLSM ) “ Classful Route” Means if a route to a network starting with is received, it is a class A => mask length.
Q and A, Ch. 21 IS333, Spring 2016 Victor Norman.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
COMPUTER NETWORKS CS610 Lecture-26 Hammad Khalid Khan.
Ch. 23, 25 Q and A (NAT and UDP) Victor Norman IS333 Spring 2015.
1 K. Salah Module 5.1: Internet Protocol TCP/IP Suite IP Addressing ARP RARP DHCP.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
30/11/1008-Supernetting1 Revision of Classful IP Addressing © Tanenbaum, Prentice Hall International.
IP – Subnetting and CIDR
IP: Addressing, ARP, Routing
Network Layer: IP Addressing
CS4470 Computer Networking Protocols
IST 220 Lectures for: Dec. 8, 2009 Dec. 10, 2009
Objective: Classful Internet Addressing
Q and A, Ch. 21 CS332, Fall 2017 Victor Norman.
CS 457 – Lecture 10 Internetworking and IP
EEC-484/584 Computer Networks
EEC-484/584 Computer Networks
Dr. John P. Abraham Professor UTPA
Dr. John P. Abraham Professor UTRGV
Dr. John P. Abraham Professor UTRGV
Introduction to Network
Presentation transcript:

Q and A, Ch. 21 IS333, Spring 2015 Victor Norman

Dotted-decimal notation Q: I still don't understand dotted decimal. Are we supposed to know how to convert from 32 bit to dotted decimal? If so how do I even begin to do that? A: An IP address is 4 bytes = 32 bits. One byte is a decimal number from 0 to 255. So, you convert each byte of the address to decimal and put a. between each part.

Address masks Q: Can you explain address masks a bit more? A: An address mask indicates with 1 bits the parts of an address that are the network part. The 1 bits are all consecutive and at the “left-most” part of the address. Can be shown as /n  first n bits are 1s  which means the first n bits are the network part. E.g., Class C address  24-bit network part   /24 NOTE: masks only needed in classful addressing to indicate the subnet part.

Subnet Addressing With classful addressing, if you got a class B address, you had 1 LAN with 2^16 hosts on it. What if you wanted 2 LANs? (Why would you?) Internally in your network, you could subdivide your LAN into multiple LANs (or subnets) using subnetting. “Borrow” some bits of the host part to indicate the subnet. 1 bit  2 LANs; 2 bits  4 LANs; etc. Now, you have to route between LANs in your organization. Now, every machine in your network has to know the netmask for the network  so that it can figure out if another IP address is on its LAN or on another LAN.

How to tell if a machine is on a network? A machine with address addr is on network N with mask M if addr & M == N – N is 32-bit network address (host part all 0s) – & is binary AND – Could read this: if the network part of addr equals the network N. Exercise: is on network / 24 ? – How about / 17? Q: does every interface on a LAN have to have the same mask?

Exercise BeatHope.com, LLC, needs IP addresses for 500 computers (and we still live in a classful addressing world) – What class of IP addresses should they request? They want 3 subnets, for privacy/security: – 30 machines on one subnet, – 50 machines on another, – 420 machines on the last. – What subnetting scheme should they use? How does “the world” see BeatHope.com’s network? I.e., what mask does “the world” use?

Classless Addressing What is the problem with having only class A, B, or C address blocks? – If you need, say, 256 hosts (which is > 254), you need class B, which means ~65,200 wasted IP addresses… What is the solution? – Assign blocks of IP addresses to organizations based on any number of bits in the mask. (instead of just 8, 16, or 24 bits) – e.g., 28 bit mask  2^4 – 2 hosts = 14 hosts. – e.g., 23 bit mask  2 ^ 9 – 2 hosts = 510 hosts. Means many 23-bit IP address blocks can be given out to many companies, instead of 1 16-bit address block. Means far fewer wasted IP addresses and far more # of networks.

Example Tiny Corp wants a network with max 14 hosts. Network provider gives them /28 – first 3 bytes have to be , top half of 4 th byte has to be all 0s. Hosts in the network will be from – Bcast address is (all host bits are 1s). Joe’s Pizza asks for and gets network /28. – top half of 4 th byte is Hosts are – BubbleGumRUs has network /28… 16 networks with /28 can be allocated

Do classes matter anymore? Q: In classless routing, do classes matter any more? A: Sort of. If you have what used to be a class B address (16-bit network part), then your network must have a mask of at least 16 bits. You can’t just have 8 bits, because there are 2^8 networks with the same top 8 bits. In other words, from looking at an address alone, you can tell the mask must be >= some #.

Watch out! One problem with masks that aren’t 8, 16, or 24 bits is that IP addresses are still written 8-bits. 8-bits. 8-bits. 8-bits. E.g., In CS at Calvin, we have machines on * and * that are on the same LAN… Hard to tell that from looking at the addresses alone. – 116 = , 117 = – mask is /23 – – last 9 bits of the IP address are the host part.

Special addresses Network address: – all host bits in the address are 0s. – Used in routing tables, etc. Directed broadcast address: – all host bits in the address are 1s. – when used as a destination address in a packet, it means the packet is routed to the destination network and then broadcast on it. – Not done by routers today.

Special addresses (2) Limited broadcast address – 32 1 bits. – As a destination address, means send to all machines on the local Layer 2 network. Loopback address: – /8 – typically – Used to test your local TCP/IP stack or to send some packet back to yourself so another task can process it.

“Joke shirt”

Multiple IP addresses on one machine? Q: Is it possible for a host to have more than one IP address? A: Yes! If a host has multiple routing interfaces then it must have multiple IP addresses. A router/host has to decide how to get a packet to its destination: can the packet be sent directly to its destination or does it have to go through a router to be forwarded? So, each interface has to have an IP address (and know the netmask) for the network it is on.

Old slides

Universal Addressing Scheme Q: Apart from the fact that arbitrary pairs of application programs can communicate without knowing the type of network hardware, what are the other needs for a universal addressing scheme? A: That’s about the only thing I can think of…

Dotted-decimal notation Q: I still don't understand dotted decimal. Are we supposed to know how to convert from 32 bit to dotted decimal? If so how do I even begin to do that? A: An IP address is 4 bytes = 32 bits. One byte is a decimal number from 0 to 255. So, you convert each byte of the address to decimal and put a. between each part.

Non-computers have IP addresses? Q: The chapter talks about computers having IP addresses but do other devices like printers have them as well? A: Yes! Anything that needs to talk on the network needs to have an IP address.

No hierarchical structure? Q: Could the Internet have been designed with no hierarchical structure of IP addresses so none would be wasted? A: It could but it wouldn’t scale. Packets are routed based on their network part only. This allows one routing entry for hundreds or thousands of hosts. Without a hierarchy, you’d have to have an entry for every host.

Suffix not needed? Q: If you apply a mask to an IP address, you only see the prefix right? Why? Don't you need to know the suffix as well? A: The mask is applied to the address in a host or router when deciding how to route the packet. It is not applied anywhere else. And, routing is based on the network an address belongs to, so to make this decision, the host/router doesn’t need to know the suffix.

Need for classless addressing Q: Can you explain the need for classless addressing? A: IANA began to see that lots of addresses were being wasted. If your company needed 300 addresses, you couldn’t get a class C address (254 addresses max), so you got a class B, with addresses, most of which went unused. And, the number of class B networks was going down fast…

Lots of IP addresses available? Q: Aren't there so many IP addresses available, that it would never matter if we were wasteful? A: No! The last set of addresses was given out by the IANA to a regional address registrar last year. We are now out of IP addresses.

More memory for CIDR? Q: Did it use a lot more memory to start storing a 32 bit mask along with every 32 IP address? A: The question is, where is this extra memory required? The IP packet header didn’t change at all. Routing tables didn’t change either – because subnetting was available before CIDR. The only thing that changed is routing protocols, and they take more memory now, and the fact that ISPs can hand out non-/8, /16, and /24 blocks of addresses.

IP Address Reuse Q: Are IP addresses reused, and does a server store what IP addresses are being used and then know when one is no longer being used? A: IP addresses are re-used in a network that assigns them via DHCP. And, they could be reused in the Internet when one company’s address block is not used anymore.

Switching algorithm in memory have a table that maps between port and mac address. receive frame on port n, with source mac smac and dest mac dmac. look up smac in table. Add entry if not there. Update entry if there, and port is not n. if dmac is bcast (all 1s), send to all ports, except n. look up dmac in table: if not there, send frame to all ports except n. If there, send frame to only port associated with dmac. go through all entries in table and remove old ones.

Practice questions Need a network with 2000 hosts. What class network would you get in the old days when we did classful networking? With classless addressing, your ISP would give you a network with what mask?

Practice questions (2) For network /28: – how many hosts can you have? – what is the broadcast address? – what is highest IP address?

Practice (3) You get /20 from your ISP. – How many bits for host part? – What is the limited broadcast address? You want 16 subnets, so what is your internal subnet mask? What is the lowest host IP address for subnet 3 (starting with 0)?