review 1rd-csy2001-2009/10. settle down review qs - ip addressing _basic lecture/interactive...
TRANSCRIPT
![Page 1: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/1.jpg)
Review
1RD-CSY2001-2009/10
![Page 2: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/2.jpg)
Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic
◦ Complete any unanswered questions Student presentation Task 1
◦ Problem definition, analysis and design(5 minutes/group)◦ Class discussion/ questions (10 minutes)
Group Feedback Homework : Review Qs - Subnetting
2RD-CSY2001-2009/10
![Page 3: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/3.jpg)
Available on the module web pageTime: 10 minutes
3RD-CSY2001-2009/10
![Page 4: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/4.jpg)
IPv4 address ◦Classful addressing◦Private and Public IP addresses
Subnet◦Need to subnet◦ Subnet Class C address◦ Task
4RD-CSY2001-2009/10
![Page 5: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/5.jpg)
RD-CSY2001-2009/10 5
Network ID Host ID
8 16
Class A
32
Class B 10
Class C 110
Multicast AddressesClass D1110
Reserved for experimentsClass E 1111
248
IP v4 addresses are 32 bits long, given as a.b.c.d
IP addresses are divided into five classes, identified by the first group of numbers in the dotted decimal notation as
Class Range A 0-127 B 128-191 C 192-223 D 224-239 E 240-255
Addresses from classes A, B, C are assignable
0
![Page 6: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/6.jpg)
RD-CSY2001-2009/10 6
Generally, IP addresses have two parts◦ Network (Net id)◦ Host ID
Netid and Hostid in a given IP address are identified by Subnet mask
Default subnet masks are◦ Class A :
255.0.0.0◦ Class B :
255.255.0.0◦ Class C :
255.255.255.0
Network Host Host Host
Network Network Host Host
Network Network Network Host
1st octet 2nd octet 3rd octet 4th octet
Class A
Class B
Class C
![Page 7: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/7.jpg)
RD-CSY2001-2009/10 7
Loopback address◦ 127.0.0.0
Network address◦ IP address with all host bits set to 0
Example: 172.16.0.0 Broadcast address
◦ IP address with all host bits set to 1 Example: 172.16.255.255
![Page 8: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/8.jpg)
RD-CSY2001-2009/10 8
Public IP addresses◦Unique◦Used to connect to Internet. ◦ Use of an address class depends on
number of hosts / networks, required to be connected
Private IP addresses
◦Use to conserve public IP addresses◦ Three special ranges, one each in class A, B and
C.
![Page 9: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/9.jpg)
RD-CSY2001-2009/10 9
Assigned to hosts that do not connect directly to the Internet
Three blocks are available, one each from◦ Class A◦ Class B◦ Class C addresses
Addresses need to be ‘translated’ for connecting hosts to the Internet .
Class Range
A 10.0.0.0 – 10.255.255.255
B 172.16.0.0 – 172.31.255.255
C 192.168.0.0 – 192.168.255.255
![Page 10: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/10.jpg)
RD-CSY2001-2009/10 10
Inefficient Address Usage◦ In danger of running out of classes A and B◦ Why?
Class C too small for most domains Very few class A – very careful about giving them
out Class B poses greatest problem
◦ Class B sparsely populated But users refuse to give it back
◦ Need simple way to reduce the number of network numbers assigned
![Page 11: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/11.jpg)
Use Private Addresses Dynamic allocation of addresses
◦DHCP Subnet the given address Use Classless IP addressing schemes (CIDR) Use larger address space
◦IPv6 uses 128 bit address (32 bits for IPv4 addresses)
11RD-CSY2001-2009/10
![Page 12: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/12.jpg)
RD-CSY2001-2009/10 12
Assign IP addresses to above network using appropriate subnet mask:
Class A
Class B
Class C
Device ?
Router
![Page 13: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/13.jpg)
RD-CSY2001-2009/10
Organizations have multiple networks which are independently managed
Subnetting allows us to break LANs into small sub-networks
Sub-networks created by borrowing bits from host-id. from the given IP address
What are the maximum number of bits that can be borrowed in a ◦ Class C address?◦ Class B address?
University NetworkUniversity Network
Business School
Library
EngineeringSchool
13
![Page 14: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/14.jpg)
RD-CSY2001-2009/10 14
When designing an address scheme, assign addresses to hosts, network devices and the router interface
![Page 15: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/15.jpg)
RD-CSY2001-2009/10 15
![Page 16: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/16.jpg)
RD-CSY2001-2009/10
Steps◦ Know how many Different Networks are required ◦ Borrow bits from the host portion of the IP address◦ Find New Subnet Mask.◦ Calculate the number of sub-networks and the hosts
available corresponding to borrowed bits◦ Find the sub-network boundary
Network Address Find the broadcast address.
Let’s look at each of these steps in detail
16
![Page 17: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/17.jpg)
RD-CSY2001-2009/10
How many host bits CAN/DO I have to borrow to create required subnets◦ Depends on the class of your network address. ◦ How do you find the IP address class?
First octet of IP address◦ What are the host bits for the default subnet mask?
Class C: 8 host bits
Class B: 16 host bits
Class A: 24 host bits
17
![Page 18: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/18.jpg)
RD-CSY2001-2009/10
Class C Address: 210.93.45.0◦ Requirement: At least 5 subnets ◦ how many bits do we borrow (Bits Borrow (BB))?◦ How many bits in the host portion (HB) do we have for
default mask? Since it’s a Class C, we have 8 bits to work with.◦ 2 to what power will give us at least 5 subnets? 23 - 2 = 6 subnets◦ How many bits are left for hosts?
Bits left = Bits available – bits borrowed5 = 8-3
◦ Assignable host addresses 25 - 2 = 30 hosts
One network address, one broadcast address
18
![Page 19: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/19.jpg)
RD-CSY2001-2009/10
We determine the new subnet mask by adding up the decimal value of the bits we borrowed.
In the previous Class C example, we borrowed 3 bits. Below is the host octet showing the bits we borrowed and their decimal values.
128 64 32 16 8 4 2 1
1 1 1
We add up the decimal value of these bits and get 224 (128+64+32). NEW subnet mask is 255.255.255.224 (as against default subnet mask of 255.255.255.0)
19
![Page 20: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/20.jpg)
RD-CSY2001-2009/10
In our Class C example, our subnet mask was 255.255.255.224.◦224 is our last non-zero octet.
Our magic number is 256 - 224 = 32◦Note: The last bit borrowed was the 32 bit.
20
![Page 21: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/21.jpg)
RD-CSY2001-2009/10
We now take our “magic number” and use it as a multiplier Our Class C address was 210.93.45.0. We borrowed bits in the fourth octet, so that’s where our
multiplier occurs.◦ 1st subnet: 210.93.45.32◦ 2nd subnet: 210.93.45.64◦ 3rd subnet: 210.93.45.96◦ 4th subnet: 210.93.45.128◦ 5th subnet: 210.93.45.160◦ 6th subnet: 210.93.45.192
21
![Page 22: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/22.jpg)
RD-CSY2001-2009/10
Now you can see why we subtract 2 when determining the number of host addresses.◦ Let’s look at our 1st subnet: 210.93.45.32◦ What is the total range of addresses up to our next subnet,
210.93.45.64? 210.93.45.32 to 210.93.45.63 or 32 addresses◦ .32 cannot be assigned to a host. Why? Because it is the subnet’s address.◦ .63 cannot be assigned to a host. Why? Because it is the subnet’s broadcast address.◦ So our host addresses are
.33 - .62 or 30 host addresses--just like we figured out earlier.
22
![Page 23: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/23.jpg)
RD-CSY2001-2009/10
Memorize this table. You should be able to:◦ Quickly calculate the last
non-zero octet when given the number of bits borrowed or...
◦ Determine the number of bits borrowed when given the last non-zero octet.
Bits Borrowed
Non-Zero Octet
1 1282 1923 2244 2405 2486 2527 2548 255
23
![Page 24: Review 1RD-CSY2001-2009/10. Settle down Review Qs - IP addressing _Basic Lecture/interactive discussion Revisit IP addressing _Basic ◦ Complete](https://reader036.vdocument.in/reader036/viewer/2022081603/56649f315503460f94c4c4e5/html5/thumbnails/24.jpg)
Complete/correct answers Time: 10 minutes
24RD-CSY2001-2009/10