Docsity

Subnets - E-Commerce - Lecture Slides, Slides of Fundamentals of E-Commerce

Toggle sidebar
bg1
21
Subnets
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 Internet
literature, these parts are called subnets.
So, if our growing company started up with a class B
address instead of a class C address, it could start out just
numbering the hosts from 1 to 254. When the second LAN
arrived, it could decide, for example to split the 16-bit host
number into a 6 bit subnet number and a 10-bit host
number, as shown below:
This split allows 62 LANs, each with up to 1022 hosts.
Fig. 5. One of the ways to subnet a class B network
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Subnets - E-Commerce - Lecture Slides and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

21

Subnets

^ 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

Subnets

^ Outside the network, the subnetting is notvisible, so allocating a new subnet doesnot require contacting contacting NIC orchanging any external databases. ^ In our example, the first subnet might useIP addresses starting at 130.50.

4 .1, the

second subnet might start at 130.50.

and so on.  To see how subnets work, it is necessaryto explain how IP packets are processed ata router.

24

Subnets/Router processing  If the network is

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

Subnets/Router processing  In fact, all that needs to be changed is to haveeach router do a

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

Internet Control Protocols - ICMP^ ^ The operation of the Internet is monitoredclosely by the routers. When somethingunexpected occurs, the event is reportedby the

ICMP (Internet Control Message

Protocol)

, which is also used to test the

Internet.  About a dozen types of ICMP messagesare defined. The most important ones arelisted in Fig. 6. Each ICMP message isencapsulated in an IP packet.

28

Internet Control Protocols - ICMP

Fig. 6. The principal ICMP message types

30

Internet Control Protocols - ARP^ ^ How do IP addresses get mapped onto data linklayer addresses?^ ^ One solution is for a host 1 to output a broadcastpacket onto the Ethernet asking: “Who owns IPaddress x.y.z.23 ?” The broadcast will arrive atevery machine on Ethernet x.y.z.0, and each onewill check its IP address. The host 2, with IPaddress x.y.z.23, will respond with its Ethernetaddress, let’s say

E2.

^ The protocol for asking this question and gettingthe reply is called

ARP (Address Resolution Protocol)