Fundamentals of Network
Fundamentals of Network
Network
Booting Process
Power On
DHCP Offers A Message: The server will respond to the host in this message specifying the unleased IP
address and other TCP configuration information.
If there is more than one DHCP server present in the network then the client host will accept the first DHCP
OFFER message it receives. Also, a server ID is specified in the packet in order to identify the server.
3. DHCP Request Message: When a client receives an offer message, it responds by broadcasting a DHCP
request message. The client will produce a gratuitous ARP in order to find if there is any other host present in
the network with the same IP address. If there is no reply from another host, then there is no host with the
same TCP configuration in the network and the message is broadcasted to the server showing the acceptance
of the IP address. A Client ID is also added to this message.
Note – This message is broadcast after the ARP request broadcast by the PC to find out whether any other
host is not using that offered IP. If there is no reply, then the client host broadcast the DHCP request message
for the server showing the acceptance of the IP address and Other TCP/IP Configuration.
4. DHCP Acknowledgment Message: In response to the request message received, the server
will make an entry with a specified client ID and bind the IP address offered with lease time.
Now, the client will have the IP address provided by the server.
5. DHCP Negative Acknowledgment Message: Whenever a DHCP server receives a request for
an IP address that is invalid according to the scopes that are configured, it sends a DHCP Nak
message to the client. Eg-when the server has no IP address unused or the pool is empty, then
this message is sent by the server to the client.
6. DHCP Decline: If the DHCP client determines the offered configuration parameters are
different or invalid, it sends a DHCP decline message to the server. When there is a reply to the
gratuitous ARP by any host to the client, the client sends a DHCP decline message to the
server showing the offered IP address is already in use.
7. DHCP Release: A DHCP client sends a DHCP release packet to the server to release the IP
address and cancel any remaining lease time.
8. DHCP Inform: If a client address has obtained an IP address manually then the client uses
DHCP information to obtain other local configuration parameters, such as domain name. In
reply to the DHCP inform message, the DHCP server generates a DHCP ack message with a
local configuration suitable for the client without allocating a new IP address. This DHCP ack
message is unicast to the client.
Switch
• A switch is a networking device that connects
devices on a network and enables them to
communicate with each other.
• It operates at the data link layer of the OSI model
and is commonly used in LANs.
• It forwards data packets to the appropriate
device on the network based on the destination
MAC address.
Switch Functions
• Packet Forwarding: Switches examine the destination MAC address of incoming data packets and forward
them only to the appropriate destination device, reducing unnecessary network traffic.
• MAC Address Learning: Switches learn and store the MAC addresses of devices connected to their ports,
creating a MAC address table to facilitate efficient data forwarding.
• Collision Domain Separation: Unlike hubs, switches create individual collision domains for each of their ports,
enabling simultaneous data transmission between devices without collisions.
Types of Switches
• Unmanaged Switch: An unmanaged switch is a basic plug-and-play device with no configuration options. It
automatically forwards data packets based on MAC addresses and requires no user intervention.
• Managed Switch: A managed switch offers advanced configuration options and features, allowing
administrators to control network settings, monitor traffic, and implement security measures. Managed
switches are commonly used in larger networks.
Switching Techniques
• Store-and-Forward Switching: In this technique, switches receive complete data packets, verify their integrity,
and then forward them to the destination device. It ensures error-free transmission but introduces some latency.
• Cut-Through Switching: Cut-through switching forwards data packets as soon as the destination MAC address is
determined, without waiting for the complete packet. It minimizes latency but may transmit corrupted or
incomplete packets.
Router