Unit Iii
Unit Iii
NETWORK LAYER
Routing Table
In this type of network, each switch (or packet switch) has a routing table
which is based on the destination address. The routing tables are dynamic and are
updated periodically. The destination addresses and the corresponding forwarding
Example :
Source A sends a frame to Source B through Switch 1, Switch 2 and Switch 3.
PACKET SWITCHING
CIRCUIT
SWITCHING
Virtual Circuit Datagram Switching
Switching
Connection oriented Connection oriented Connection less
IPV4
The identifier used in the IP layer of the TCP/IP protocol suite to identify the
connection of each device to the Internet is called the Internet address or IP address.
Internet Protocol version 4 (IPv4) is the fourth version in the development of the
Internet Protocol (IP) and the first version of the protocol to be widely deployed.
IPv4 is described in IETF publication in September 1981.
The IP address is the address of the connection, not the host or the router. An
IPv4 address is a 32-bit address that uniquely and universally defines the connection
.
If the device is moved to another network, the IP address may be changed.
IPv4 addresses are unique in the sense that each address defines one, and only
one, connection to the Internet.
If a device has two connections to the Internet, via two networks, it has two IPv4
addresses.
IPv4 addresses are universal in the sense that the addressing system must be
accepted by any host that wants to be connected to the Internet.
CLASSFUL ADDRESSING
Class B
Class C
Class D
Class E
In Class E, an IP address is used for the future use or for the research and
development purposes.
It does not possess any subnetting.
The higher order bits of the first octet is always set to 1111, and the remaining
Subnetting
CLASSLESS ADDRESSING
Address Aggregation
One of the advantages of the CIDR strategy is address aggregation
(sometimes called address summarization or route summarization).
When blocks of addresses are combined to create a larger block, routing can be
done based on the prefix of the larger block.
ICANN assigns a large block of addresses to an ISP.
Each ISP in turn divides its assigned block into smaller subblocks and grants the
subblocks to its customers.
Limited-broadcast Address
The only address in the block 255.255.255.255/32 is called the limited-
broadcast address.
It is used whenever a router or a host needs to send a datagram to all devices in a
network.
The routers in the network, however, block the packet having this address as the
destination;the packet cannot travel outside the network.
Loopback Address
The block 127.0.0.0/8 is called the loopback address.
A packet with one of the addresses in this block as the destination address never
leaves the host; it will remain in the host.
Private Addresses
Four blocks are assigned as private addresses: 10.0.0.0/8, 172.16.0.0/12,
192.168.0.0/16, and 169.254.0.0/16.
Multicast Addresses
The block 224.0.0.0/4 is reserved for multicast addresses.
ADDRESS RESOLUTION PROTOCOL (ARP)
All nodes except the destination discard the packet but update their ARP
table.
Destination host (System B)constructs an ARP Response packet
ARP Response is unicast and sent back to the source host (System A).
Source stores target Logical & Physical address pair in its ARP table from ARP
Response.
If target node does not exist on same network, ARP request is sent to
default router.
ARP Packet
RARP – Reverse ARP
Reverse Address Resolution protocol (RARP) allows a host to convert its MAC
address to the corresponding IP address.
Traceroute or Tracert
The traceroute program in UNIX or tracert in Windows can be used to trace the
path of a packet from a source to the destination.
It can find the IP addresses of all the routers that are visited along the path.
The program is usually set to check for the maximum of 30 hops (routers) to be
visited.
The number of hops in the Internet is normally less than this.
$ traceroute google.com
A DHCP packet is actually sent using a protocol called the User Datagram
Protocol (UDP).