the saigon ctt semester 1 chapter 10 le chi trung
TRANSCRIPT
![Page 1: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/1.jpg)
Th
e S
aig
on
CT
T
Semester 1Semester 1
CHAPTER 10CHAPTER 10
Le Chi TrungLe Chi Trung
![Page 2: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/2.jpg)
Th
e S
aig
on
CT
T
ContentContent
• Network Layer and Path Determination.
• IP Address within the IP Header.
• IP Address Classes.
• Subnetting and Creating a Subnet.
![Page 3: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/3.jpg)
Th
e S
aig
on
CT
T
ScheduleSchedule
No Name Est time No Name14-Jun Chapter 9 Online Exam
10.1 Network layers 0:20:0010.2 Path determination 0:20:0010.3 The purpose and operation of IP addresses 0:20:00
16-Jun 10.4 IP address classes 0:15:0010.4.1 IP Addressing
10.5 Reversed address space 0:15:0010.6 The basics of subnetting 0:30:00
10.6.6 Subnet Mask 119-Jun 10.7 Creating a subnet 0:30:00
10.7.5 Subnet Mask10.7.7 Subnet Mask
Summary Chapter 10 0:30:0021-Jun Chapter 10 Online Exam
Lesson LabDay
![Page 4: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/4.jpg)
Th
e S
aig
on
CT
T
NETWORK LAYER NETWORK LAYER
AND AND
PATH DETERMINATIONPATH DETERMINATION
![Page 5: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/5.jpg)
Th
e S
aig
on
CT
T
A network layer. Why?A network layer. Why?
![Page 6: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/6.jpg)
Th
e S
aig
on
CT
T
Network layerNetwork layer
• Segment network and control flow of traffic.
• Move data through a set of networks.
• Logical Addressing, use a hierarchical addressing scheme.
![Page 7: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/7.jpg)
Th
e S
aig
on
CT
T
Network segmentation. Why?Network segmentation. Why?
![Page 8: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/8.jpg)
Th
e S
aig
on
CT
T
Network segmentationNetwork segmentation
• Control network traffics and reduce broadcast traffics.
• Separate computer networks is managed by a single administration - Autonomous systems.
![Page 9: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/9.jpg)
Th
e S
aig
on
CT
T
Communication among networksCommunication among networks
• Networks operate in much the same manner.
![Page 10: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/10.jpg)
Th
e S
aig
on
CT
T
RouterRouter
• Routers connect separate networks.
• Routers make best path decisions based on Layer 3 information.
• Routers actually switch packets from incoming ports to appropriate outgoing ports.
![Page 11: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/11.jpg)
Th
e S
aig
on
CT
T
Data relayingData relaying
![Page 12: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/12.jpg)
Th
e S
aig
on
CT
T
Path determinationPath determination
• Path determination is the process that the router uses to choose the next hop in the path for the packet to travel to its destination based on the link bandwidth, hop, delay ...
![Page 13: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/13.jpg)
Th
e S
aig
on
CT
T
Network layer addressingNetwork layer addressing
• Network address + Host address: Hierarchical Addressing Schemes.
![Page 14: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/14.jpg)
Th
e S
aig
on
CT
T
Flat Addressing SchemeFlat Addressing Scheme
1
2
3
4
5
6
A B
1 – A1
2 – A2
3 – A3
1 – A2 – A3 – A4 – B5 – B6 – B
![Page 15: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/15.jpg)
Th
e S
aig
on
CT
T
Hierarchical Addressing SchemeHierarchical Addressing Scheme
A1
A2
A3
B1
B2
B3
A B
1 – A1
2 – A2
3 – A3
A – LocalB – Switch to B
![Page 16: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/16.jpg)
Th
e S
aig
on
CT
T
Hierarchical Addressing SchemeHierarchical Addressing Scheme
InternationalGateway
DomesticSwitch
LocalSwitch
84 8 9321044
![Page 17: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/17.jpg)
Th
e S
aig
on
CT
T
Network addressNetwork address
• The network address helps the router identify a path within the network cloud.
• The router uses the network address to identify the destination network of a packet within an internetwork.
• Network address is assigned by higher-level administrator. Host address is assigned manually or automatically by manager of that network.
![Page 18: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/18.jpg)
Th
e S
aig
on
CT
T
ReviewReview
• Why it’s necessary to have a network layer.
• Why we need to segment networks.
• What are the roles of router in network.
• Compare flat and hierarchical addressing schemes.
![Page 19: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/19.jpg)
Th
e S
aig
on
CT
T
IP ADDRESS WITHIN IP ADDRESS WITHIN
THE IP HEADERTHE IP HEADER
![Page 20: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/20.jpg)
Th
e S
aig
on
CT
T
Network layer datagramNetwork layer datagram
• At the network layer, the data is encapsulated within packets (also known as datagrams).
• Packet includes header - addressing and other control information - and actual data - whatever is passed down from the higher layers.
![Page 21: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/21.jpg)
Th
e S
aig
on
CT
T
IP header formatIP header format
![Page 22: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/22.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Version Version
• 4 bits.• Indicates the version of
IP currently used.– IPv4 : 0100– IPv6 : 0110
• 4 bits.• Indicates the version of
IP currently used.– IPv4 : 0100– IPv6 : 0110
![Page 23: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/23.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Header length Header length
• 4 bits.• IP header length : Indicates the
datagram header length in 32 bit words (4 bits), and thus points to the beginning of the data.
• 4 bits.• IP header length : Indicates the
datagram header length in 32 bit words (4 bits), and thus points to the beginning of the data.
![Page 24: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/24.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Service type Service type
• 8 bits.• Specifies the level of importance
that has been assigned by a particular upper-layer protocol.• Precedence. • Reliability. • Speed.
• 8 bits.• Specifies the level of importance
that has been assigned by a particular upper-layer protocol.• Precedence. • Reliability. • Speed.
![Page 25: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/25.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Total length Total length
• 16 bits.• Specifies the length of the
entire IP packet, including data and header, in bytes.
• 16 bits.• Specifies the length of the
entire IP packet, including data and header, in bytes.
![Page 26: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/26.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Identification Identification
• 16 bits.• Identification contains an integer
that identifies the current datagram.• Assigned by the sender to aid in
assembling the fragments of a datagram.
• 16 bits.• Identification contains an integer
that identifies the current datagram.• Assigned by the sender to aid in
assembling the fragments of a datagram.
![Page 27: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/27.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Flags Flags
• 3 bits.• The second bit specifying whether the
packet can be fragmented .• The last bit specifying whether the packet
is the last fragment in a series of fragmented packets.
• 3 bits.• The second bit specifying whether the
packet can be fragmented .• The last bit specifying whether the packet
is the last fragment in a series of fragmented packets.
![Page 28: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/28.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Fragment offset Fragment offset
• 13 bits.• The field that is used to help piece together
datagram fragments.• The fragment offset is measured in units of
8 octets (64 bits). • The first fragment has offset zero.
• 13 bits.• The field that is used to help piece together
datagram fragments.• The fragment offset is measured in units of
8 octets (64 bits). • The first fragment has offset zero.
![Page 29: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/29.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Time to Live Time to Live
• 8 bits.• Time-to-Live maintains a counter that
gradually decreases to zero, at which point the datagram is discarded, keeping the packets from looping endlessly.
• 8 bits.• Time-to-Live maintains a counter that
gradually decreases to zero, at which point the datagram is discarded, keeping the packets from looping endlessly.
![Page 30: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/30.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Protocol Protocol
• 8 bits.• Indicates which upper-layer protocol receives
incoming packets after IP processing has been completed• 06 : TCP• 17 : UDP
• 8 bits.• Indicates which upper-layer protocol receives
incoming packets after IP processing has been completed• 06 : TCP• 17 : UDP
![Page 31: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/31.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Header checksum Header checksum
• 16 bits.• A checksum on the header only,
helps ensure IP header integrity.
• 16 bits.• A checksum on the header only,
helps ensure IP header integrity.
![Page 32: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/32.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Addresses Addresses
• 32 bits each.• Source IP Address• Destination IP Address
• 32 bits each.• Source IP Address• Destination IP Address
![Page 33: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/33.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Options Options
• Variable length.• Allows IP to support various options,
such as security, route, error report ...
• Variable length.• Allows IP to support various options,
such as security, route, error report ...
![Page 34: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/34.jpg)
Th
e S
aig
on
CT
T
IP header format:IP header format: Padding Padding
• The header padding is used to ensure that the internet header ends on a 32 bit boundary.
• The header padding is used to ensure that the internet header ends on a 32 bit boundary.
![Page 35: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/35.jpg)
Th
e S
aig
on
CT
T
HomeworkHomework
• www.ietf.org and RFC-760.
• Groups presentations:
– Internet Protocol Overview.
– Packet fragment fields.
– Type of services field.
– Option field.
![Page 36: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/36.jpg)
Th
e S
aig
on
CT
T
ReviewReview
• Detail of IP packet header.
![Page 37: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/37.jpg)
Th
e S
aig
on
CT
T
IP ADDRESS CLASSESIP ADDRESS CLASSES
![Page 38: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/38.jpg)
Th
e S
aig
on
CT
T
IP network addressIP network address
• Network layer addresses are 32 bits long.
• The are presented as four octets in dotted decimal format.
• The IP address has two components: Network ID and Host ID.
![Page 39: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/39.jpg)
Th
e S
aig
on
CT
T
IP address formatIP address format
![Page 40: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/40.jpg)
Th
e S
aig
on
CT
T
Binary and decimal conversionBinary and decimal conversion
![Page 41: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/41.jpg)
Th
e S
aig
on
CT
T
Why we need to know B-D conversionWhy we need to know B-D conversion
• Use of calculators is discouraged for two reasons :
– First, practitioners of networking often need to make quick.
– Second, no calculators are allowed on the CCNA exam.
![Page 42: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/42.jpg)
Th
e S
aig
on
CT
T
Fast conversionFast conversion
![Page 43: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/43.jpg)
Th
e S
aig
on
CT
T
Exercise: Exercise: DEC – BIN DEC – BIN
203
11001011
![Page 44: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/44.jpg)
Th
e S
aig
on
CT
T
Exercise: Exercise: BIN – DECBIN – DEC
10100010
162
![Page 45: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/45.jpg)
Th
e S
aig
on
CT
T
Network ID and host IDNetwork ID and host ID
• Network ID :– Assigned by Internet Network Information
Center.
– Assigned by upper organization.
– Identifies the network to which a devices is attached.
• Host ID :– Assigned by a network administrator.
– Identifies the specific device on that network.
![Page 46: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/46.jpg)
Th
e S
aig
on
CT
T
Bits on the IP addressBits on the IP address
• Network Bits :– Identifies network ID
– Identifies class of the IP address
– All of bits are 0: not allowed
• Host Bits :– Identifies host ID
– All of bits are 0: reserved for network address
– All of bits are 1: reserved for broadcast address
![Page 47: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/47.jpg)
Th
e S
aig
on
CT
T
IP address classesIP address classes
• Different class addresses reserve different amounts of bits for the Network and Host portions of the address
• Provide the flexibility required to support different size networks
![Page 48: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/48.jpg)
Th
e S
aig
on
CT
T
IP address classes:IP address classes: Class A Class A
![Page 49: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/49.jpg)
Th
e S
aig
on
CT
T
IP address classes:IP address classes: Class A Class A
• The first bit of a Class A address is always 0.
• The first 8 bits to identify the network part of the address.
• Possible network address from 1.0.0.0 to 127.0.0.0.
• The remaining three octets can be used for the host portion of the address.
• Each class A network have up to 16,777,214 possible IP addresses.
![Page 50: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/50.jpg)
Th
e S
aig
on
CT
T
IP address classes:IP address classes: Class B Class B
![Page 51: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/51.jpg)
Th
e S
aig
on
CT
T
IP address classes:IP address classes: Class B Class B
• The first 2 bits of a Class B address is always 10.
• The first two octets to identify the network part of the address.
• Possible network address from 128.0.0.0 to 191.255.0.0.
• The remaining two octets can be used for the host portion of the address.
• Class B network have up to 65.534 possible IP addresses.
![Page 52: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/52.jpg)
Th
e S
aig
on
CT
T
IP address classes:IP address classes: Class C Class C
![Page 53: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/53.jpg)
Th
e S
aig
on
CT
T
IP address classes:IP address classes: Class C Class C
• The first 3 bits of a Class C address is always 110.
• The first three octets to identify the network part of the address.
• Possible network address from 192.0.0.0 to 223.255.255.0.
• The remaining last octet can be used for the host portion of the address.
• Class C network have up to 254 possible IP addresses.
![Page 54: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/54.jpg)
Th
e S
aig
on
CT
T
IP address classes:IP address classes: Summary Summary
• 1.0.0.0 - 126.0.0.0 : Class A.
• 127.0.0.0 : Loopback network.
• 128.0.0.0 - 191.255.0.0 : Class B.
• 192.0.0.0 - 223.255.255.0 : Class C.
• 224.0.0.0 < 240.0.0.0 : Class D, multicast.
• >= 240.0.0.0 : Class E, reserved.
![Page 55: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/55.jpg)
Th
e S
aig
on
CT
T
Network addressNetwork address
• Network address provide a convenient way to refer to all of the addresses on a particular network or subnetwork.
• Two hosts with differing network address require a device, typically a router, in order to communicate.
• An IP address that ends with binary 0s in all host bits is reserved for the network address.
![Page 56: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/56.jpg)
Th
e S
aig
on
CT
T
Broadcast addressBroadcast address
• Broadcast goes to every host with a particular network ID number.
• An IP address that ends with binary 1s in all host bits is reserved for the directed broadcast address.
• An IP address with binary 1s in all network bits and host bits is reserved for the local broadcast address.
![Page 57: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/57.jpg)
Th
e S
aig
on
CT
T
Local broadcast addressLocal broadcast address
STOP
255.255.255.255
![Page 58: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/58.jpg)
Th
e S
aig
on
CT
T
Directed broadcast addressDirected broadcast address
Broadcast addressBroadcast address
192.168.20.0
192.168.20.255
![Page 59: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/59.jpg)
Th
e S
aig
on
CT
T
Example: Example: 172.16.20.200172.16.20.200
• 172.16.20.200 is Class B address
• Network portion: 172.16
• Host portion: 20.200
• Network address: 172.16.0.0
• Broadcast address: 172.16.255.255
![Page 60: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/60.jpg)
Th
e S
aig
on
CT
T
Private addressesPrivate addresses
• According to RFC-1918.
• Organizations make use of the private Internet address space for hosts that require IP connectivity within their enterprise network, but do not require external connections to the global Internet.
• Class A: 10.0.0.0.
• Class B: 172.16.0.0 - 172.31.0.0.
• Class C: 192.168.0.0 - 192.168.255.0.
![Page 61: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/61.jpg)
Th
e S
aig
on
CT
T
Preparation for LABPreparation for LAB
• 10.4: IP address classes.
• Lab companion:
– 10.4.1.
![Page 62: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/62.jpg)
Th
e S
aig
on
CT
T
Lab 10.4.1:Lab 10.4.1: Step 1 Step 1
• Review IP address classes and their characteristics.
![Page 63: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/63.jpg)
Th
e S
aig
on
CT
T
Lab 10.4.1:Lab 10.4.1: Step 2 Step 2
1. What is the decimal and binary range of the first octet of class B IP addresses?
– Decimal: 128 – 191
– Binary: 10000000 – 10111111
2. Which octet(s) represent the network portion of a class C IP address?
– The first three octets
3. Which octet(s) represent the host portion of a class A IP address?
– The last three octets
![Page 64: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/64.jpg)
Th
e S
aig
on
CT
T
Lab 10.4.1:Lab 10.4.1: Step 3 Step 3
Host IP AddressAddress
ClassNetwork Address
Host Address
Broadcast Address
218.14.55.137
123.1.1.15
150.127.221.244
194.125.35.199
175.12.239.244
C 218.14.55 137 218.14.55.255
A 123 1.1.15 123.255.255.255
B 150.127 221.244 150.127.255.255
C 194.125.35 199 194.125.35.255
B 175.12 239.244 175.12.255.255
![Page 65: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/65.jpg)
Th
e S
aig
on
CT
T
Lab 10.4.1:Lab 10.4.1: Step 4 – Valid address Step 4 – Valid address
• 150.100.255.255
• 175.100.255.18
• 195.234.253.0
• 100.0.0.23
• 188.258.221.176
• 127.34.25.189
• 224.156.217.73
![Page 66: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/66.jpg)
Th
e S
aig
on
CT
T
ReviewReview
• Classes of IP address and range of IP on each class.
• Determine network portion and host portion in a IP address.
• Understand about broadcast addresses.
• Understand about valid host address.
• Binary and Decimal conversion.
![Page 67: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/67.jpg)
Th
e S
aig
on
CT
T
SUBNETTING SUBNETTING
AND AND
CREATING A SUBNETCREATING A SUBNET
![Page 68: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/68.jpg)
Th
e S
aig
on
CT
T
Why we need to divide network?Why we need to divide network?
• Network administrators sometimes need to divide networks, especially large ones, into smaller networks:– Reduce the size of a broadcast domain.
– Improve network security.
– Implement the hierarchical managements.
• So we need more network addresses for your network. But I want the outside networks see our network as a single network.
![Page 69: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/69.jpg)
Th
e S
aig
on
CT
T
Divide network by threeDivide network by three
![Page 70: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/70.jpg)
Th
e S
aig
on
CT
T
SubnettingSubnetting
• Subnetworks are smaller divisions of network.
• Subnet addresses include the Class A, Class B, or Class C network portion, plus a subnet field and a host field.
• To create a subnet address, a network administrator borrows bits from the original host portion and designates them as the subnet field.
• Subnet addresses are assigned locally, usually by a network administrator.
![Page 71: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/71.jpg)
Th
e S
aig
on
CT
T
SubnettingSubnetting
![Page 72: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/72.jpg)
Th
e S
aig
on
CT
T
Subnet maskSubnet mask
• “Extended Network Prefix”.
• Determines which part of an IP address is the network field and which part is the host field.
• 32 bits long.
• Divided into four octets.
• Network and Subnet portions all 1’s.
• Host portions all 0’s.
![Page 73: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/73.jpg)
Th
e S
aig
on
CT
T
Default subnet mask:Default subnet mask: Example Example
• 192.168.2.100 / 255.255.255.0.
• 11000000.10101000.00000010.01100100.
• 11111111.11111111.11111111.00000000.
• 11000000.10101000.00000010.00000000.
• Class C network:– 24 bits for network portion.
– 0 bits for subnet portion.
– 8 bits for host portion.
• Subnet address: 192.168.2.0.
![Page 74: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/74.jpg)
Th
e S
aig
on
CT
T
Subnet mask:Subnet mask: Example Example
• 172.16.65.100 / 255.255.240.0.
• 10101100.00010000.01000001.01100100.
• 11111111.11111111.11110000.00000000.
• 10101100.00010000.01000000.00000000.
• Class B network:– 16 bits for network portion.
– 4 bits for subnet portion.
– 12 bits for host portion.
• Subnet address: 172.16.64.0.
![Page 75: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/75.jpg)
Th
e S
aig
on
CT
T
How many bits can I borrow?How many bits can I borrow?
• All of subnet bits are:– 0 : reserved for network address.
– 1 : reserved for broadcast address.
• The minimum bits you can borrow is:
2 bits.
• The maximum bits you can borrow is:
A: 22 bits ~ 222 - 2 = 4.194.302 subnets.
B: 14 bits ~ 214 - 2 = 16.382 subnets.
C: 06 bits ~ 206 - 2 = 62 subnets.
![Page 76: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/76.jpg)
Th
e S
aig
on
CT
T
Boolean algebra reviewBoolean algebra review
• Boolean operators:
–AND.
–OR.
–NOT.
![Page 77: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/77.jpg)
Th
e S
aig
on
CT
T
ANDAND operator operator
1 AND 1 = 1
1 AND 0 = 0
0 AND 1 = 0
0 AND 0 = 0
![Page 78: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/78.jpg)
Th
e S
aig
on
CT
T
OROR operator operator
1 OR 1 = 1
1 OR 0 = 1
0 OR 1 = 1
0 OR 0 = 0
![Page 79: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/79.jpg)
Th
e S
aig
on
CT
T
NOTNOT operator operator
NOT 1 = 0
NOT 0 = 1
![Page 80: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/80.jpg)
Th
e S
aig
on
CT
T
Boolean algebra examplesBoolean algebra examples
1010 AND 0110 = 0010
1010 OR 0110 = 1110
![Page 81: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/81.jpg)
Th
e S
aig
on
CT
T
Why we need to know Boolean ops?Why we need to know Boolean ops?
• Network layer performs the Boolean operations in order to find the network ID of a subnet
• Example: – 172.16.65.100 AND 255.255.240.0
– Network address: 172.16.64.0
IP Address
ANDSubnet Mask
=Network and
Subnet address
![Page 82: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/82.jpg)
Th
e S
aig
on
CT
T
Subnetting exampleSubnetting example
• Given network 172.16.0.0.
• We need 8 usable subnets and up to 1000 hosts on each subnet.
![Page 83: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/83.jpg)
Th
e S
aig
on
CT
T
Calculating a subnetCalculating a subnet
1. Determine the class of network and default subnet mask.
2. Determine how many bits to borrow. Determine the subnet mask and the actual number of subnets and hosts.
3. Determine the ranges of host address for each subnet. Choose the subnets that you want to use.
![Page 84: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/84.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 1 STEP 1
• Determine the Class of network
Class B
• Determine the default subnet mask
255.255.0.0
![Page 85: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/85.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 2 STEP 2
• Number of subnets <= 2n - 2 with n is number of bits that are borrowed.
• Number of hosts <= 2m - 2 with m is number of bits that are remained.
• Determine how many bits to borrow from the host portion from requirement:
– 8 subnets.
– 1000 hosts on each subnet.
![Page 86: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/86.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 2 (Cont.) STEP 2 (Cont.)
• Choose n = 4:
– Number of possible subnets is:
24 - 2 = 14– Number of possible hosts on each subnet is:
2(16-4) - 2 = 4094
• Other choice n = 5 , n = 6 ?
![Page 87: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/87.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 2 (Cont.) STEP 2 (Cont.)
The subnet mask: 255.255.240.0.
![Page 88: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/88.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 3 STEP 3
• Determine the subnets and the ranges of host address for each subnet. Including:
Sub-network addresses
Range of usable IP addresses
Sub-network broadcast addresses
![Page 89: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/89.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 3 (Cont.) STEP 3 (Cont.)
• Determine the subnets from 4 borrowed bits from the host portion (last 2 bytes):
• 1st subnet: .00000000.00000000
• 2nd subnet: .00010000.00000000
• 3rd subnet: .00100000.00000000
• …
• 15th subnet: .11110000.00000000
![Page 90: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/90.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 3 (Cont.) STEP 3 (Cont.)
NoSub-network
addressPossible host address
Broadcast address
Use?
0 172.16.0.0 172.16.0.1 – 172.16.15.254 172.16.15.255 N
1 172.16.16.0 172.16.16.1 – 172.16.31.254 172.16.31.255 Y
2 172.16.32.0 172.16.32.1 – 172.16.47.254 172.16.47.255 Y
.. .. .. .. ..
.. .. .. .. ..
13 172.16.208.0 172.16.208.1 – 172.16.223.254 172.16.223.255 Y
14 172.16.224.0 172.16.224.1 – 172.16.239.254 172.16.239.255 Y
15 172.16.240.0 172.16.240.1 – 172.16.255.254 172.16.255.255 N
![Page 91: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/91.jpg)
Th
e S
aig
on
CT
T
Calculating a subnet:Calculating a subnet: STEP 3 (Cont.) STEP 3 (Cont.)
• Using subnets No.1 to No.8.
• Assign IP addresses to hosts and interfaces on each network. IP address configuration.
![Page 92: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/92.jpg)
Th
e S
aig
on
CT
T
Addresses are loose by subnetting.Addresses are loose by subnetting.
• Network administrator must strike a balance between the number of subnets required, the hosts per subnet that is acceptable, and the resulting waste of addresses.
![Page 93: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/93.jpg)
Th
e S
aig
on
CT
T
ReviewReview
• Why we need to divide a network.
• What is the subnetting.
• What is the subnet mask.
• How to create subnet addresses.
![Page 94: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/94.jpg)
Th
e S
aig
on
CT
T
Teaching topology (10.7.6)Teaching topology (10.7.6)
Work
group
Work
group
![Page 95: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/95.jpg)
Th
e S
aig
on
CT
T
Preparation for LABPreparation for LAB
• Lab companion:
– 10.6.6.
– 10.7.5.
– 10.7.7.
![Page 96: The Saigon CTT Semester 1 CHAPTER 10 Le Chi Trung](https://reader035.vdocuments.us/reader035/viewer/2022062309/56649eb25503460f94bb8f01/html5/thumbnails/96.jpg)
Th
e S
aig
on
CT
T