






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







21
^ The solution to these problems is to allow a
network to be
split into several parts for internal use
, but still act like a
single network to the outside world. In the Internetliterature, these parts are called
subnets
.
^ So, if our growing company started up with a class Baddress instead of a class C address, it could start out justnumbering the hosts from 1 to 254. When the second LANarrived, it could decide, for example to split the 16-bit hostnumber into a 6 bit subnet number and a 10-bit hostnumber, as shown below:^ Fig. 5. One of the ways to subnet a class B network ^ This split allows 62 LANs, each with up to 1022 hosts.
22
24
not present
, the packet is
forwarded to a default router (gateway) withmore extensive tables. This algorithm means that each router only hasto keep track of other networks and local hosts,and not complete (network, host) pairs, which isgreatly reducing the size of the the routing table. When^
subnet
ting is introduced, the
routing tables
are changed
, adding entries of the form
(this-
network, subnet, 0)
and^ (this-network, this-
subnet, host)
^ Thus a router on subnet
k^ knows how to get to all
the other subnets and also how to get to all hostson subnet
k^. It does not have to know the details about hosts on other subnets.
25
Boolean AND
, with the
network’s
subnet mask
(shown on Fig.5.) to get
rid of the host number. Next, look up theresulting address in its tables (after determiningwhich network class it is). For example, a packet addressed to 130.50.15.6and arriving at a router on subnet 5 is AND-edwith the subnet mask on Fig.5. to give theaddress 130.50.12.
. This address is then
looked up in the routing table to find out it is onsubnet 3, and how to forward it there. The routeron subnet 5 is thus spared of the work of keepingtrack of the addresses of hosts which are not onsubnet 5.
27
28
Fig. 6. The principal ICMP message types
30
^ The protocol for asking this question and gettingthe reply is called
ARP (Address Resolution Protocol)