Nov 14, 2011

Abstract of CCNA study guide-10 - Subnetting

Continue the series of  Abstract CCNA study guide book .
Subnetting Basics
What happens if you wanted to take one network address and create six networks from it? You would have to do something called subnetting , because that’s what allows you to take one larger network and break it into a bunch of smaller networks.

There are loads of reasons in favor of subnetting, including the following benefits:
Reduced network traffic : Routers create broadcast domains. The more broadcast domains you create, the smaller the broadcast domains and the less network traffic on each network segment.

Optimized network performance: This is a result of reduced network traffic.

Simplified management: It’s easier to identify and isolate network problems in a group of smaller connected networks than within one gigantic network.

Facilitated spanning of large geographical distances: Because WAN links are slower and expensive Links, a single large network that spans long distances can create problems in every area previously listed. Connecting multiple smaller networks makes the system more efficient.



IP Subnet-Zero

in the past, Cisco courseware and exam, didn’t cover it—but it certainly does now! This command allows you to use the first and last subnet in your network design. For example, the Class C mask of 192 provides subnets 64 and 128, but with the ip subnet-zero command, you now get to use subnets 0, 64, 128, and 192.



How to Create Subnets
To create subnetworks, you take bits from the host portion of the IP address and reserve them to define the subnet address. This means fewer bits for hosts, so the more subnets, the fewer bits available for defining hosts.
you need to understand that in this first section, we will be discussing classful routing, which means that all hosts (all nodes) in the network use the exact same subnet mask. When we move on to Variable Length Subnet Masks (VLSMs), I’ll discuss classless routing, which means that each network segment can use a different subnet mask.
Understanding the Power of 2
The power of 2 should commit to memory
2^1 =2 , 2^2=4 ,2^3 =8 ,2^4 =16 ,2^5 =32 ,2^6 =64 ,2^7 =128 ,2^8 =256

Subnet Masks
For the subnet address scheme to work, every machine on the network must know which part of the host address will be used as the subnet address. This is accomplished by assigning a subnet mask to each machine.
A subnet mask is a 32-bit value that allows the recipient of IP packets to distinguish the network ID portion of the IP address from the host ID portion of the IP address.
The network administrator creates a 32-bit subnet mask composed of 1s and 0s. The 1s in the subnet mask represent the positions that refer to the network or subnet addresses.
Next Table shows the default subnet masks for Classes A, B, and C. These default masks cannot change.

Classless Inter-Domain Routing (CIDR)
Another term you need to familiarize yourself with is Classless Inter-Domain Routing (CIDR).
It’s basically the method that ISPs (Internet service providers) use to allocate a number of addresses to a company, a home—a customer. They provide addresses in a certain block size, something I’ll be going into in greater detail later in this chapter.
When you receive a block of addresses from an ISP, what you get will look something like this: 192.168.10.32/28. This is telling you what your subnet mask is. The slash notation (/) means how many bits are turned on (1s). Obviously, the maximum could only be /32 because a byte is 8 bits and there are 4 bytes in an IP address. But keep in mind that the largest subnet mask available can only be a /30 because you’ve got to keep at least 2 bits for host bits.


next Table  has a listing of every available subnet mask and its equivalent CIDR slash notation.
Class A Only
Subnet mask
CIDR value
Class A and B Only
Subnet mask
CIDR value
Class A,B and C
Subnet mask
CIDR value
255.0.0.0
/8
255.255.0.0
/16
255.255.255.0
/24
255.128.0.0
/9
255.255.128.0
/17
255.255.255.128
/25
255.192.0.0
/10
255.255.192.0
/18
255.255.255.192
/26
255.224.0.0
/11
255.255.224.0
/19
255.255.255.224
/27
255.240.0.0
/12
255.255.240.0
/20
255.255.255.240
/28
255.248.0.0
/13
255.255.248.0
/21
255.255.255.248
/29
255.252.0.0
/14
255.255.252.0
/22
255.255.255.252
/30
255.254.0.0
/15
255.255.254.0
/23




Subnetting Class C Addresses
When you’ve chosen a possible subnet mask for your network and need to determine the number of subnets, valid hosts, and broadcast addresses of a subnet that the mask provides, all you need to do is answer five simple questions:
- How many subnets does the chosen subnet mask produce?
- How many valid hosts per subnet are available?
- What are the valid subnets?
- What’s the broadcast address of each subnet?
- What are the valid hosts in each subnet?

-How many subnets? 2^x = number of subnets.
 x is the number of masked bits, or the 1s. For example, in 11000000, the number of 1s gives us 2^2 subnets. In this example, there are 4 subnets.
-How many hosts per subnet? 2^y - 2 = number of hosts per subnet.
 y is the number of unmasked bits, or the 0s. For example, in 11000000, the number of 0s gives us 2^6 – 2 hosts. In this example, there are 62 hosts per subnet. You need to subtract 2 for the subnet address and the broadcast address, which are not valid hosts.

_ What are the valid subnets? 256 – subnet mask = block size.
An example would be 256 – 192 = 64. Start counting at zero in blocks of 64 until you reach the subnet mask value and these are your subnets. 0, 64, 128, 192.

_ What’s the broadcast address for each subnet? Since we counted our subnets in the last section as 0, 64, 128, and 192, the broadcast address is always the number right before the next subnet. For example, the 0 subnet has a broadcast address of 63 because the next subnet is 64. The 64 subnet has a broadcast address of 127 because the next subnet is 128. And so on. And remember, the broadcast address of the last subnet is always 255.

_What are the valid hosts? Valid hosts are the numbers between the subnets,omitting the all 0s and all 1s.
For example, if 64 is the subnet number and 127 is the broadcast address, then 65–126 is the valid host range—it’s always the numbers between the subnet address and the broadcast address.
Subnetting Practice Examples: Class C Addresses
Practice Example #1C: 255.255.255.128 (/25)
192.168.10.0 = Network address
255.255.255.128 = Subnet mask
Now, let’s answer the big five:
_ How many subnets? Since 128 is 1 bit on (10000000), the answer would be 2^1 = 2.
_ How many hosts per subnet? We have 7 host bits off (10000000),   2^7 – 2 = 126 hosts.
_ What are the valid subnets? 256 – 128 = 128.so our subnets are 0, 128.
_ What’s the broadcast address for each subnet? For the zero subnet, the next subnet is 128, so the broadcast of the 0 subnet is 127.
_ What are the valid hosts? These are the numbers between the subnet and broadcast address. The easiest way The following table shows the 0 and 128 subnets, the valid host ranges of each, and the broadcast address of both subnets:
Subnet            0          128
First host        1          129
Last host         126      254
Broadcast       127      255

Practice Example #2C: 255.255.255.192 (/26)
192.168.10.0 = Network address
255.255.255.192 = Subnet mask
Now, let’s answer the big five:
_  subnets? Since 192 is 2 bits on (11000000), the answer would be 2^2 = 4 subnets.
_  hosts? We have 6 host bits off (11000000),  2^6 – 2 = 62 hosts.
_  valid subnets? 256 – 192 = 64.subnets are 0, 64, 128, and 192.
_  broadcast address for each subnet? For the zero subnet, the next subnet is 64, so the broadcast address for the zero subnet is 63.
_  the valid hosts? These are the numbers between the subnet and broadcast address.

_  broadcast address for each subnet (always the number right before the next subnet)?
_ valid hosts (the numbers between the subnet number and the broadcast address)?

The subnets (do this first)                                         0          64        128      192
Our first host (perform host addressing last)         1          65        129      193
Our last host                                                              62        126      190      254
The broadcast address (do this second)                  63        127      191      255


Subnetting in Your Head: Class C Addresses
It really is possible to subnet in your head. Even if you don’t believe me, I’ll show you how.
take the following example:
192.168.10.33 = Node address
255.255.255.224 = Subnet mask
First, determine the subnet and broadcast address of the above IP address. You can do this by answering question 3 of the big five questions: 256 – 224 = 32. 0, 32, 64. The address of 33 falls between the two subnets of 32 and 64 and must be part of the 192.168.10.32 subnet.
The next subnet is 64, so the broadcast address of the 32 subnet is 63. The valid host range is 33–62.

Okay, let’s try another one. We’ll subnet another Class C address:
192.168.10.33 = Node address
255.255.255.240 = Subnet mask
What subnet and broadcast address is the above IP address a member of? 256 – 240 = 16. 0, 16, 32, 48.
the host address is between the 32 and 48 subnets. The subnet is 192.168.10.32, and the broadcast address is 47 . The valid host range is 33–46 .

Regardless of whether you have a Class A, Class B, or Class C address, the /30 mask will provide you with only two hosts, ever. This mask is suited almost exclusively—as well as suggested by Cisco—for use on point-to-point links.

Subnetting Class B Addresses

We know the Class B network address has 16 bits available for host addressing. This means we can use up to 14 bits for subnetting (because we have to leave at least 2 bits for host addressing).
The process of subnetting a Class B network is the same as it is for a Class C, except that you just have more host bits and you start in the third octet.
Use the same subnet numbers for the third octet with Class B that you used for the fourth octet with Class C, but add a zero to the network portion and a 255 to the broadcast section in the fourth octet. The following table shows you an example host range of two subnets used in a Class B 240 (/20) subnet mask:
First subnet                16.0                 32.0
Second subnet            31.255                         47.255

The preceding example is true only until you get up to /24 . after that it's the same as Class  C

Subnetting Practice Examples: Class B Addresses
Practice Example #1B: 255.255.128.0 (/17)
172.16.0.0 = Network address
255.255.128.0 = Subnet mask
-Subnets?   2^1 = 2 (same as Class C).
-Hosts?       2^15 – 2 = 32,766 (7 bits in the third octet, and 8 in the fourth).
_ Valid subnets? 256 – 128 = 128. 0, 128. Remember that subnetting is performed in the third octet, so the subnet numbers are really 0.0 and 128.0, as shown in the next table.
_ Broadcast address for each subnet?
_ Valid hosts?
Subnet            0.0                   128.0
First host        0.1                   128.1
Last host         127.254           255.254
Broadcast       127.255           255.255

Practice Example #5B: 255.255.255.0 (/24)
255.255.255.0 This is a Class B subnet mask with 8 bits of subnetting—it’s considerably different from a Class C mask. Subnetting this address is fairly simple:
172.16.0.0 = Network address
255.255.255.0 = Subnet mask
_ Subnets? 2^8 = 256.
_ Hosts?     2^8 – 2 = 254.
_ Valid subnets? 256 – 255 = 1. 0, 1, 2, 3, etc., all the way to 255.
_ Broadcast address for each subnet?
_ Valid hosts?
Subnet            0.0       1.0       2.0       3.0 ..................            254.0               255.0
First host        0.1       1.1       2.1       3.1 ..................            254.1               255.1
Last host         0.254   1.254   2.254   3.254 ..............            254.254           255.254
Broadcast       0.255   1.255   2.255   3.255 ..............            254.255           255.255

Practice Example #7B: 255.255.255.192 (/26)
 Since the third octet has a 255 in the mask section, whatever number is listed in the third octet is a subnet number. However, now that we have a subnet number in the fourth octet, we can subnet this octet just as we did with Class C subnetting. Let’s try it out:
172.16.0.0 = Network address
255.255.255.192 = Subnet mask
-Subnets?     2^10 = 1024.
-Hosts?         2^6 – 2 = 62.
-Valid subnets? 256 – 192 = 64. The subnets are shown in the following table.
-Broadcast address for each subnet?
-Valid hosts?
Subnet            0.0       0.64     0.128   0.192   1.0       1.64     1.128   1.192
First host        0.1       0.65     0.129   0.193   1.1       1.65     1.129   1.193
Last host         0.62     0.126   0.190   0.254   1.62     1.126   1.190   1.254
Broadcast       0.63     0.127   0.191   0.255   1.63     1.127   1.191   1.255

Subnetting in Your Head: Class B Addresses
Question: What subnet and broadcast address is the IP address 172.16.10.33 255.255.255.224 (/27) a member of?
Answer: The interesting octet is the fourth octet. 256 – 224 = 32. 32 + 32 = 64. Bingo:33 is between 32 and 64. However, remember that the third octet is considered part of the subnet, so the answer would be the 10.32 subnet. The broadcast is 10.63, since 10.64 is the next subnet. That was a pretty easy one.

Q: What subnet and broadcast address is the IP address 172.16.66.10  255.255.192.0 (/18) a member of?
A: The interesting octet is the third octet instead of the fourth octet. 256 – 192 = 64.   0, 64, 128. The subnet is 172.16.64.0. The broadcast must be 172.16.127.255 since 128.0 is the next subnet.

Q: What subnet and broadcast address is the IP address 172.16.50.10 255.255.224.0 (/19) a member of?
A: 256 – 224 = 0, 32, 64 . The subnet is 172.16.32.0, and the broadcast must be 172.16.63.255 since 64.0 is the next subnet.

Q: What subnet and broadcast address is the IP address 172.16.46.255 255.255.240.0 (/20) a member of?
Answer: 256 – 240 = 16. The third octet is interesting to us. 0, 16, 32, 48. This subnet address must be in the 172.16.32.0 subnet, and the broadcast must be 172.16.47.255 since 48.0 is the next subnet. So, yes, 172.16.46.255 is a valid host.

Q: What subnet and broadcast address is the IP address 172.16.45.14 255.255.255.252 (/30) a member of?
A: Where is the interesting octet? 256 – 252 = 0, 4, 8, 12, 16 (in the fourth octet). The subnet is 172.16.45.12, with a broadcast of 172.16.45.15 because the next subnet is 172.16.45.16.

Q: A router receives a packet on an interface with a destination address of 172.16.46.191/26. What will the router do with this packet?
A: Discard it. Do you know why? 172.16.46.191/26 is a 255.255.255.192 mask, which gives us a block size of 64. Our subnets are then 0, 64, 128, 192. 191 is the broadcast address of the 128 subnet, so a router, by default, will discard any broadcast packets.

Subnetting Class A Addresses
Class A subnetting is not performed any differently than Classes B and C, but there are 24 bits to play with instead of the 16 in a Class B address and the 8 in a Class C address.

Subnetting Practice Examples: Class A Addresses
Practice Example #1A: 255.255.0.0 (/16)
Class A addresses use a default mask of 255.0.0.0, which leaves 22 bits for subnetting since you must leave 2 bits for host addressing. The 255.255.0.0 mask with a Class A address is using 8 subnet bits.
_ Subnets? 2^8 = 256.
_ Hosts?     2^16 – 2 = 65,534.
_ Valid subnets? What is the interesting octet? 256 – 255 = 1. 0, 1, 2, 3, etc. (all in the second octet). The subnets would be 10.0.0.0, 10.1.0.0, 10.2.0.0, 10.3.0.0, etc., up to 10.255.0.0.
_ Broadcast address for each subnet?
_ Valid hosts?
Subnet            10.0.0.0           10.1.0.0           …        10.254.0.0                   10.255.0.0
First host        10.0.0.1           10.1.0.1           …        10.254.0.1                   10.255.0.1
Last host         10.0.255.254   10.1.255.254   …        10.254.255.254           10.255.255.254
Broadcast       10.0.255.255   10.1.255.255   …        10.254.255.255           10.255.255.255

Practice Example #2A: 255.255.240.0 (/20)
255.255.240.0 gives us 12 bits of subnetting and leaves us 12 bits for host addressing.
_ Subnets?    2^12  = 4096.
_ Hosts?       2^12 – 2 = 4094.
_ Valid subnets? What is your interesting octet? 256 – 240 = 16. The subnets in the second octet are a block size of 1 and the subnets in the third octet are 0, 16, 32, etc.
_ Broadcast address for each subnet?
_ Valid hosts?
Subnet            10.0.0.0           10.0.16.0         10.0.32.0 …    10.255.240.0
First host        10.0.0.1           10.0.16.1         10.0.32.1 …    10.255.240.1
Last host         10.0.15.254     10.0.31.254     10.0.47.254 … 10.255.255.254
Broadcast       10.0.15.255     10.0.31.255     10.0.47.255 … 10.255.255.255

Practice Example #3A: 255.255.255.192 (/26)
Let’s do one more example using the second, third, and fourth octets for subnetting.
_ Subnets?  2^18 = 262,144.
_ Hosts?     2^8 – 2 = 62.
_ Valid subnets? In the second and third octet, the block size is 1, and in the fourth octet, the block size is 64.
_ Broadcast address for each subnet?
_ Valid hosts?
The following table shows the first four subnets and their valid hosts and broadcast addresses
Subnet            10.0.0.0           10.0.0.64         10.0.0.128       10.0.0.192
First host        10.0.0.1           10.0.0.65         10.0.0.129       10.0.0.193
Last host         10.0.0.62         10.0.0.126       10.0.0.190       10.0.0.254
Broadcast       10.0.0.63         10.0.0.127       10.0.0.191       10.0.0.255

The following table shows the last four subnets and their valid hosts and broadcast addresses:
Subnet            10.255.255.0               10.255.255.64                         10.255.255.128           10.255.255.192
First host        10.255.255.1               10.255.255.65                         10.255.255.129           10.255.255.193
Last host         10.255.255.62                         10.255.255.126           10.255.255.190           10.255.255.254
Broadcast       10.255.255.63                         10.255.255.127           10.255.255.191           10.255.255.255

Subnetting in Your Head: Class A Addresses
This sounds hard, but as with Class C and Class B, the numbers are the same; we just start in the second octet. What makes this easy? You only need to worry about the octet that has the largest block size (typically called the interesting octet; one that is something other than 0 or 255)—for example, 255.255.240.0 (/20) with a Class A network. The second octet has a block size of 1, so any number listed in that octet is a subnet. The third octet is a 240 mask, which means we have a block size of 16 in the third octet. If your host ID is 10.20.80.30, what is your subnet, broadcast address, and valid host range?
The subnet in the second octet is 20 with a block size of 1, but the third octet is in block sizes of 16, so we’ll just count them out: 0, 16, 32, 48, 64, 80, and 96 (By the way, you can count by 16s by now, right?) This makes our subnet 10.20.80.0, with a broadcast of 10.20.95.255 because the next subnet is 10.20.96.0. The valid host range is 10.20.80.1 through 10.20.95.254. And yes, no lie! You really can do this in your head if you just get your block sizes nailed!

Okay, let’s practice on one more, just for fun!
Host IP: 10.1.3.65/23
First,  /23, is 255.255.254.0. The interesting octet here is the third one: 256 – 254 = 2. Our subnets in the third octet are 0, 2, 4, 6, etc. The host in this question is in subnet 2.0, and the next subnet is 4.0, so that makes the broadcast address 3.255. And any address between 10.1.2.1 and 10.1.3.254 is considered a valid host.

Nov 6, 2011

Abstract of CCNA study guide-9 - tcp/ip 4

Continue the series of  Abstract CCNA study guide book .
IP Addressing
IP Terminology
Bit A bit is one digit, either a 1 or a 0.
Byte A byte is 8 bits.
Octet  is 8 bits, byte and octet are the same.
Network address This is the designation used in routing to send packets to a remote network
Examples 10.0.0.0, 172.16.0.0, and 192.168.10.0.
Broadcast address The address used by applications and hosts to send information to all nodes on a network . Examples  255.255.255.255,which is all networks, all nodes; 172.16.255.255, which is all subnets and hosts on network 172.16.0.0; and 10.255.255.255, which broadcasts to all subnets and hosts on network 10.0.0.0.


The Hierarchical IP Addressing Scheme

An IP address consists of 32 bits of information. These bits are divided into four sections, referred to as octets or bytes, each containing 1 byte (8 bits).
You can depict an IP address using one of three methods:
-Dotted-decimal, as in 172.16.30.56
-Binary, as in 10101100.00010000.00011110.00111000
-Hexadecimal, as in AC.10.1E.38

Network Addressing
The network address (which can also be called the network number) uniquely identifies each network. Every machine on the same network shares that network address as part of its IP address. In the IP address 172.16.30.56, for example, 172.16 is the network address.

The node address is assigned to, and uniquely identifies, each machine on a network. This part of the address must be unique because it identifies a particular machine. This number can also be referred to as a host address. In the sample IP address 172.16.30.56, the 30.56 is the node address.

The designers of the Internet decided to create classes of networks based on network size.
For the small number of networks and a very large number of nodes, they created the rank Class A network.
For the numerous networks with a small number of nodes there is  the Class C network
The class distinction for networks between very large and very small is predictably called the Class B network.


Network Address Range: Class A
the first bit of the first byte in a Class A network address must always be off, or 0. This means a Class A address must be between 0 and 127

Network Address Range: Class B
In a Class B network the first bit of the first byte must always be turned on but the second bit must always be turned off. If you turn the other 6 bits all off and then all on, you will find the range for a Class B network between 128 and 191

Network Address Range: Class C
For Class C networks the first 2 bits of the first octet as always turned on, but the third bit can never be on.
the range for a Class C network between 192 and 223

Network Address Ranges: Classes D and E
The addresses between 224 to 255 are reserved for Class D and E networks. Class D (224–239) is used for multicast addresses and Class E (240–255) for scientific purposes.

Network Addresses: Special Purpose
Some IP addresses are reserved for special purposes, so network administrators can’t ever assign these addresses to nodes. Table 2.4 lists the members of this exclusive little club and the reasons why they’re included in it.

Class A Addresses
Class A Valid Host IDs
Here’s an example of how to figure out the valid host IDs in a Class A network address:
- All host bits off is the network address: 10.0.0.0.
- All host bits on is the broadcast address: 10.255.255.255.
The valid hosts are the numbers in between the network address and the broadcast address: 10.0.0.1 through 10.255.255.254
Class B Addresses
Class B Valid Host IDs
Here’s an example of how to find the valid hosts in a Class B network:
_ All host bits turned off is the network address: 172.16.0.0.
_ All host bits turned on is the broadcast address: 172.16.255.255.
The valid hosts would be the numbers in between the network address and the broadcast address: 172.16.0.1 through 172.16.255.254.
Class C Addresses
Class C Valid Host IDs
Here’s an example of how to find a valid host ID in a Class C network:
_ All host bits turned off is the network ID: 192.168.100.0.
_ All host bits turned on is the broadcast address: 192.168.100.255.
 The valid hosts would be the numbers in between the network address and the broadcast address: 192.168.100.1 through 192.168.100.254.

Private IP Addresses
private IP addresses can be used on a private network, but they’re not routable through the Internet.
This is designed for the purpose of security, but it also saves IP address space.
If every host on every network had to have real routable IP addresses, we would have run out of IP addresses. But by using private IP addresses, ISPs, corporations, and home users only need a relatively tiny group of bona fide IP addresses to connect their networks to the Internet.
To accomplish this task, we need using  something called Network Address Translation (NAT)(discussed later)
The reserved private addresses are listed in Table 2.5.that you must know
Broadcast Addresses
Layer 2 broadcasts These are sent to all nodes on a LAN.
Broadcasts (layer 3) These are sent to all nodes on the network.
Unicast These are sent to a single destination host.
Multicast These are packets sent from a single source and transmitted to many devices on different networks.

First, understand that layer 2 broadcasts are also known as hardware broadcasts The broadcast  would be all 1s in binary, which would be all Fs in hexadecimal, as in FF.FF.FF.FF.FF.FF.

Then there’s the plain old broadcast addresses at layer 3. Broadcast messages are meant to reach all hosts on a broadcast domain. These are the network broadcasts that have all host bits on. Here’s an example that you’re already familiar with: The network address of 172.16.0.0 255.255.0.0 would have a broadcast address of 172.16.255.255—all host bits on.

Broadcasts can also be “all networks and all hosts,” as indicated by 255.255.255.255. A good example
of a broadcast message is an Address Resolution Protocol (ARP) request.

A unicast is different because t’s directed to a specific host. A DHCP client request is a good example of how a unicast works. Here’s an example: Your host on a LAN sends out an FF.FF.FF.FF.FF.FF layer 2 broadcast and 255.255.255.255 layer 3 destination broadcast looking for a DHCP server on the LAN. The router will see that this is a broadcast meant for the DHCP server because it has a destination port number of 67 (BootP server) and
will forward the request to the IP address of the DHCP server on another LAN. So, basically, if your DHCP server IP address is 172.16.10.1, your host just sends out a 255.255.255.255 DHCP client broadcast request, and the router changes that broadcast to the specific destination address of 172.16.10.1. (In order for the router to provide this service, you need to configure the interfaces with the ip helper-address command—this is not a default service.)

Multicast is a different , it appears to be a hybrid of unicast and broadcast.
Multicast does allow point-to-multipoint communication, which is similar to broadcasts, but it happens in a different manner. it enables multiple recipients to receive messages without flooding the messages to all hosts on a broadcast domain.
Multicast works by sending messages or data to IP multicast group addresses. Routers then forward copies (unlike broadcasts, which are not forwarded) of the packet out every interface that has hosts subscribed to that group address.
There are several different groups that users or applications can subscribe to. The range of multicast addresses starts with 224.0.0.0 and goes through 239.255.255.255. As you can see, this range of addresses falls within IP Class D address space based on classful IP assignment.

Abstract of CCNA study guide-8 - tcp/ip 3

Continue the series of  Abstract CCNA study guide book .
Binary to Decimal and Hexadecimal Conversion


What all this means is that if a one digit (1) is placed in a value spot, then the nibble or byte
takes on that decimal value and adds it to any other value spots that have a 1. And if a zero (0)
is placed in a bit spot, you don’t count that value. Let’s work through a few examples
Ex1: 10010110 , Which bits are on? The 128, 16, 4, and 2 bits are on, so we’ll just add them up:
 128 + 16 + 4 + 2 = 150.
EX2: 01101100 , Which bits are on? The 64, 32, 8, and 4 bits are on, so we just need to add them up:
64 + 32 + 8 + 4 = 108.

Next Table  is a table you should memorize .
Binary Value
Decimal value
10000000
128
11000000
192
11100000
224
11110000
240
11111000
248
11111100
252
11111110
254
11111111
255

Hexadecimal addressing is converted by reading nibbles, not bytes.
First, understand that the hexadecimal addressing scheme uses only the numbers 0 through 9. And
since the numbers 10, 11, 12, and so on can’t be used (because they are two-digit numbers), the
letters A, B, C, D, E, and F are used to represent 10, 11, 12, 13, 14, and 15, respectively.

next Table shows both the binary value and the decimal value for each hexadecimal digit.
Hexadecimal Value
Binary Value
Decimal Value
0
0000
0
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
7
0111
7
8
1000
8
9
1001
9
A
1010
10
B
1011
11
C
1100
12
D
1101
13
E
1110
14
F
1111
15

So suppose you have something like this: 0x6A. (Sometimes Cisco likes to put 0x in front of characters so you know that they are a hex value) What are the binary and decimal values? All you have to remember is that each hex character is one nibble and two hex characters together make a byte.
To figure out the binary value, we need to put the hex characters into two nibbles and then put them
together into a byte. 6 = 0110 and A (which is 10 in hex) = 1010, so the complete byte would be 01101010.

To convert from binary to hex, just take the byte and break it into nibbles:
Say you have the binary number 01010101. First, break it into nibbles—0101 and 0101—with the value of each nibble being 5 since the 1 and 4 bits are on. This makes the hex answer 0x55. And in decimal format, the binary number is 01010101, which converts to 64 + 16 + 4 + 1 = 85.

Here’s another binary number:
11001100
Your answer would be 1100 = 12 and 1100 = 12 (therefore, it’s converted to CC in hex). The decimal conversion answer would be 128 + 64 + 8 + 4 = 204.

Abstract of CCNA study guide-7 - tcp/ip 2

Continue the series of  Abstract CCNA study guide book .
The Internet Layer Protocols
In the DoD model, there are two main reasons for the Internet layer’s existence: routing and providing a single network interface to the upper layers.
And all the other protocols at this layer, as well as all those at the upper layers, use it. Never forget that. All paths through the DoD model go through IP.
The following sections describe the protocols at the Internet layer:
-Internet Protocol (IP)
-Internet Control Message Protocol (ICMP)
-Address Resolution Protocol (ARP)
-Reverse Address Resolution Protocol (RARP)
-Proxy ARP


Internet Protocol (IP)
Internet Protocol (IP) is the Internet layer. The other protocols found here merely exist to support it.IP looks at each packet’s address. Then, using a routing table, it decides where a packet is to be sent next, choosing the best path.
IP receives segments from the Host-to-Host layer and fragments them into datagrams (packets). IP then reassembles datagrams back into segments on the receiving side.
 Each datagram is assigned the IP address of the sender and of the recipient. Each router (layer 3 device) that receives a datagram makes routing decisions based on the packet’s destination IP address.

Next Figure shows an IP header.

The following fields make up the IP header:
Version IP version number.
Header length Header length in 32-bit words.
Priority and Type of Service Type of Service tells how the datagram should be handled. The first 3 bits are the priority bits.
Total length Length of the packet including header and data.
Identification Unique IP-packet value.
Flags Specifies whether fragmentation should occur.
Fragment offset Provides fragmentation and reassembly if the packet is too large to put in a frame.
Time to Live The time to live is set into a packet when it is originally generated. If it doesn’t get to where it wants to go before the TTL expires, it’s gone.
Protocol Port of upper-layer protocol (TCP is port 6 or UDP is port 17 [hex]).
Header checksum Cyclic redundancy check (CRC) on header only.
Source IP address 32-bit IP address of sending station.
Destination IP address 32-bit IP address of the station this packet is destined for.
Options Used for network testing, debugging, security, and more.
Data  the upper-layer data.

Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP) works at the Network layer and is used by IP for many different services. ICMP is a management protocol and messaging service provider for IP. Its messages are carried as IP datagrams.

ICMP packets have the following characteristics:
- They can provide hosts with information about network problems.
- They are encapsulated within IP datagrams.

The following are some common events and messages that ICMP relates to:
Destination Unreachable If a router can’t send an IP datagram any further, it uses ICMP to send a message back to the sender. For example, take a look at Figure 2.8, which shows that interface E0 of the Lab_B router is down.

When Host A sends a packet destined for Host B, the Lab_B router will send an ICMP destination unreachable message back to the sending device (Host A in this example).

Buffer Full If a router’s memory buffer for receiving incoming datagrams is full, it will use ICMP to send out this message.

Hops Each IP datagram has a certain number of routers, called hops, to pass through. If it reaches its limit of hops before arriving at its destination, the last router deletes datagram and uses ICMP to send message, informing the sending machine of the demise of its datagram.

Ping Packet Internet Groper (Ping) uses ICMP echo request and reply messages to check the physical and logical connectivity of machines on an internetwork.

Traceroute Using ICMP time-outs, Traceroute is used to discover the path a packet takes as it traverses an internetwork.


Address Resolution Protocol (ARP)
Address Resolution Protocol (ARP) finds the hardware address of a host from a known IP address.
Here’s how it works: When IP has a datagram to send, it must inform a Network Access protocol, such as Ethernet or Token Ring, of the destination’s hardware address on the local network. (It has already been informed by upper-layer protocols of the destination’s IP address.) If IP doesn’t find the destination host’s hardware address in the ARP cache, it uses ARP to find this information.
ARP interrogates the local network by sending out a broadcast asking the machine with the specified IP address to reply with its hardware address. So basically, ARP translates the software (IP) address into a hardware address

Reverse Address Resolution Protocol (RARP)
When an IP machine happens to be a diskless machine, it has no way of initially knowing its IP address. But it does know its MAC address. Reverse Address Resolution Protocol (RARP) discovers the identity of the IP address for diskless machines by sending out a packet that includes its MAC address and a request for the IP address assigned to that MAC address. A RARP server, responds with the answer.

Proxy Address Resolution Protocol (Proxy ARP)
On a network, your hosts can’t have more then one default gateway configured.
What if the default gateway (router) happens to go down? The host won’t just start sending to another router automatically—you’ve got to reconfigure that host. But Proxy ARP can actually help machines on a subnet reach remote subnets without configuring routing or even a default gateway.

One advantage of using Proxy ARP is that it can be added to a single router on a network without disturbing the routing tables of all the other routers that live there too. But there’s a serious downside to using Proxy ARP. Using Proxy ARP will definitely increase the amount of traffic on your network segment, and hosts will have a larger ARP table than usual in order to handle all the IP-to-MAC-address mappings. And Proxy ARP is Configured on all Cisco routers by default