























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!
























Network Layer Protocols Network Layer is responsible for the transmission of data or communication from one host to another host connected in a network. Rather than describing how data is transferred, it implements the technique for efficient transmission. In order to provide efficient communication protocols are used at the network layer. The data is being grouped into packets or in the case of extremely large data it is divided into smaller sub packets. Each protocol used has specific features and advantages. The below article covers in detail the protocols used at the network layer. Functions of Network Layer The network layer is responsible for providing the below-given tasks:
Protocols at each Layer
1. IP (Internet Protocol) IP stands for Internet Protocol. Internet Protocol helps to uniquely identify each device on the network. Internet protocol is responsible for transferring the data from one node to another node in the network. Internet protocol is a connectionless protocol therefore it does not guarantee the delivery of data. For the successful delivery higher level protocols such as TCP are used to guarantee the data transmission. The Internet Protocol is divided in two types. They are: - IPv4: IPv4 provides with the 32 bit address scheme. IPv4 addressing has four numeric fields and are separated by dot. IPv4 can be configured either using DHCP or manually. IPv4 does not provide with more security features as it does not support authentication or encryption techniques. IPv4 is further divided into five classes as Class A, Class B, Class C, Class D and Class E. - IPv6: IPv6 is the most recent version of IP. If provided with a 128 bit addressing scheme. IP address has eight fields that are separated by colon, and these fields are alphanumeric. The IPv6 address is represented in hexadecimal. IPv6 provides with more security features such as authentication and encryption. IPv supports end-to-end connection integrity. IPv6 provides with more range of IP address as compared to IPv4. Difference between IPv4 and IPv6: IPv4 vs IPv 2. ARP (Address Resolution Protocol) ARP stands for Address Resolution Protocol. ARP is used to convert the logical address ie. IP address into physical address ie. MAC address. While communicating with other nodes, it is necessary to know the MAC address or physical address of the destination node. If any of the node in a network wants to know the physical address of
Difference between ARP and RARP: ARP vs RARP
4. ICMP ICMP stands for Internet Control Message Protocol. ICMP is a part of IP protocol suite. ICMP is an error reporting and network diagnostic protocol. Feedback in the network is reported to the designated host. Meanwhile, if any kind of error occur it is then reported to ICMP. ICMP protocol consists of many error reporting and diagnostic messages. ICMP protocol handles various kinds of errors such as time exceeded, redirection, source quench, destination unreachable, parameter problems etc. The messages in ICMP are divided into two types. They are given below: - Error Message: Error message states about the issues or problems that are faced by the host or routers during processing of IP packet. - Query Message: Query messages are used by the host in order to get information from a router or another host. How Does ICMP Work? - The main and most significant protocol in the IP suite is called ICMP. However, unlike TCP and UDP, ICMP is a connectionless protocol, meaning it doesn't require a connection to be established with the target device in order to transmit a message.
Network Classes The Internet Assigned Numbers Authority (IANA), through InterNIC, manages the allocation of IP addresses. To simplify addressing, IP addresses are divided into five classes (AโE):
Subnetting is a crucial process in network design that involves dividing a larger network into smaller, manageable subnetworks. Determining the number of hosts that each subnet can accommodate is crucial for efficient IP address allocation, preventing waste, and optimizing overall network performance. Proper subnet planning also improves security by isolating network segments and controlling traffic flow. Subnetting and IP Addresses Subnetting and IP addressing are fundamental components of network design, essential for efficient network management, performance optimization, and security. An IP address is a unique identifier assigned to each device on a network, allowing it to communicate with other devices. IPv4 addresses consist of 32 bits divided into four octets, while IPv6 addresses use 128 bits, providing a much larger address space. Subnetting divides a larger network into smaller, manageable segments called subnets, helping organize network traffic and optimize IP address usage. Key Benefits of Subnetting:
1) Identify the Class of the IP address To find the number of computers connected in the network first we need to identify the class of the IP address, there are 5 classes of IP addresses they are A, B, C, D, and E. Each IPv4 address consists of 32 bits, divided into 4 octets, 1 octet = 8 bits. Look at the first octet to find the class of the given IP address. The range of each class is given in the following table. IP Class First Octet Range Address Range Description Class A 1 โ 126 1.0.0.0 โ 126.255.255.255 Designed for very large networks Class B 128 โ 191 128.0.0.0 โ 191.255.255.255 Suitable for medium-sized networks Class C 192 โ 223 192.0.0.0 โ 223.255.255.255 Used for small networks Class D 224 โ 239 224.0.0.0 โ 239.255.255.255 Reserved for multicast groups Class E 240 โ 255 240.0.0.0 โ 255.255.255.255 Reserved for experimental use Example: If the IP address given is 64.19.23.0 then the first octet is 64 which is in the range of 0 to 127, so the given IP address belongs to class A. 2) Finding the Network IP address Finding the network IP address involves determining the portion of an IP address that identifies the specific network to which a device belongs. This can be accomplished by using the subnet mask along with the device's IP address. Here's how you can find the network IP address:
Then result of the AND operation would be 11000000.10101000.00000001.00000000, which corresponds to 192.168.1..
Why Do We Need VLSM? In traditional subnetting (Fixed Length Subnet Mask โ FLSM), all subnets must have the same size. This often leads to wastage of IP addresses. Example of Wastage in FLSM If you use a /24 mask (255.255.255.0), each subnet gets 254 usable IP addresses. But if:
Department Required Hosts Accounts 26 Management 5 Step 1: Determine Required Block Sizes Each subnet must provide enough hosts to cover: