Unit2 CN
Unit2 CN
Hexadecimal Notation:
Classful IP Addressing
The class of IP address is used to determine the bits used for network ID and
host ID and the number of total networks and hosts possible in that particular
class.
The higher order bits of the first octet of IP addresses of class C are always set
to 110.
Class C has a total of:
• 2^21 = 2097152 network address
• 2^8 – 2 = 254 host address
Class D
IP address belonging to class D are reserved for multi-casting. The higher
order bits of the first octet of IP addresses belonging to class D are always set
to 1110.
Class E
IP addresses belonging to class E are reserved for experimental and research
purposes. IP addresses of class E ranges from 240.0.0.0 – 255.255.255.254.
Range of special IP addresses:
169.254.0.0 – 169.254.0.16 : Link local addresses
127.0.0.0 – 127.0.0.8 : Loop-back addresses
0.0.0.0 – 0.0.0.8 : used to communicate within the current network.
CLASSLESS ADDRESSING
To overcome address depletion and give more organizations access to the
Internet, classless addressing was designed and implemented. In this scheme,
there are no classes, but the addresses are still granted in blocks.
Address Blocks
In classless addressing, when an entity, small or large, needs to be connected to
the
Internet, it is granted a block (range) of addresses. The size of the block (the
number of
addresses) varies based on the nature and size of the entity.
First Address The first address in the block can be found by setting the 32 - n
rightmost
bits in the binary notation of the address to Os.
The last address in the block can be found by setting the rightmost 32 - n bits to
Is.
The number of addresses in the block can be found by using the formula 232- n•
The value of n is 28, which means that number of addresses is 232- 28 or 16.
The binary representation of the given address is 11001101
000100000010010100100111.
Network Addresses
The first address is called the network address and defines the organization
network.
The first address in a block is normally not assigned to any device; it is used as
the network address that represents the organization to the rest of the world.
Address Translation
All the outgoing packets go through the NAT router, which replaces the source address
in the packet with the global NAT address. All incoming packets also pass through the
NAT router, which replaces the destination address in the packet (the NAT router global
address) with the appropriate private address.
Translation Table
a translation table has only two columns: the private' address and the external address
Using a Pool of IP Addresses Since the NAT router has only one global address, only
one private network host can access the same external host. To remove this restriction, the
NAT router uses a pool of global addresses.
Using Both IP Addresses and Port Numbers To allow a many-to-many relationship
between private-network hosts and external server programs
IPv6 ADDRESSES
An IPv6 address consists of 16 bytes (octets); it is 128 bits long.
Hexadecimal Colon Notation
the address consists of 32 hexadecimal digits, with every four digits separated by a colon.
Address Space
IPv6 has a much larger address space; 2128 addresses are available. The designers of
IPv6 divided the address into several categories. A few leftmost bits, called the type
prefix, in each address define its category.
NETWORK DEVICES
Network devices, or networking hardware, are physical devices that are required for
communication and interaction between hardware on a computer network.
Network Devices :Hub, Repeater, Bridge, Switch, Router, Gateways and Brouter
1. Repeater – A repeater operates at the physical layer. Its job is to regenerate the signal over
the same network before the signal becomes too weak or corrupted so as to extend the length
to which the signal can be transmitted over the same network. An important point to be noted
about repeaters is that they do not amplify the signal. When the signal becomes weak, they
copy the signal bit by bit and regenerate it at the original strength. It is a 2 port device.
2. Hub – A hub is basically a multiport repeater. A hub connects multiple wires coming
from different branches, for example, the connector in star topology which connects different
stations. Hubs cannot filter data, so data packets are sent to all connected devices. In other
words, the collision domain of all hosts connected through Hub remains one. Also, they do
not have the intelligence to find out the best path for data packets which leads to inefficiencies
and wastage.
Types of Hub
• Active Hub:- These are the hubs that have their own power supply and can clean,
boost, and relay the signal along with the network. It serves both as a repeater as well as
a wiring center. These are used to extend the maximum distance between nodes.
• Passive Hub :- These are the hubs that collect wiring from nodes and power supply
from the active hub. These hubs relay signals onto the network without cleaning and
boosting them and can’t be used to extend the distance between nodes.
• Intelligent Hub :- It works like active hubs and includes remote management
capabilities. They also provide flexible data rates to network devices. It also enables an
administrator to monitor the traffic passing through the hub and to configure each port in
the hub.
3. Bridge – A bridge operates at the data link layer. A bridge is a repeater, with add on the
functionality of filtering content by reading the MAC addresses of source and destination. It
is also used for interconnecting two LANs working on the same protocol. It has a single input
and single output port, thus making it a 2 port device.
Types of Bridges
• Transparent Bridges:- These are the bridge in which the stations are completely
unaware of the bridge’s existence i.e. whether or not a bridge is added or deleted from
the network, reconfiguration of the stations is unnecessary. These bridges make use of
two processes i.e. bridge forwarding and bridge learning.
• Source Routing Bridges:- In these bridges, routing operation is performed by the
source station and the frame specifies which route to follow. The host can discover the
frame by sending a special frame called the discovery frame, which spreads through the
entire network using all possible paths to the destination.
4. Switch – A switch is a multiport bridge with a buffer and a design that can boost its
efficiency(a large number of ports imply less traffic) and performance. A switch is a data link
layer device. The switch can perform error checking before forwarding data, which makes it
very efficient as it does not forward packets that have errors and forward good packets
selectively to the correct port only. In other words, the switch divides the collision domain
of hosts, but broadcast domain remains the same.
5. Routers – A router is a device like a switch that routes data packets based on their IP
addresses. The router is mainly a Network Layer device. Routers normally connect LANs
and WANs together and have a dynamically updating routing table based on which they make
decisions on routing the data packets. Router divide broadcast domains of hosts connected
through it.
6. Gateway – A gateway, as the name suggests, is a passage to connect two networks together
that may work upon different networking models. They basically work as the messenger
agents that take data from one system, interpret it, and transfer it to another system. Gateways
are also called protocol converters and can operate at any network layer. Gateways are
generally more complex than switches or routers. Gateway is also called a protocol
converter.
7. Brouter – It is also known as the bridging router is a device that combines features of both
bridge and router. It can work either at the data link layer or a network layer. Working as a
router, it is capable of routing packets across networks, and working as the bridge, it is
capable of filtering local area network traffic.
8. NIC – NIC or network interface card is a network adapter that is used to connect the
computer to the network. It is installed in the computer to establish a LAN. It has a unique
id that is written on the chip, and it has a connector to connect the cable to it. The cable acts
as an interface between the computer and router or modem. NIC card is a layer 2 device
which means that it works on both physical and data link layer of the network model.