Welcome to our page you can learn computer network and can also download your notes&last years question papers HERE

UNIT-4

NETWORK LAYER

INTRODUCTION:

More than one path may exist betwwen source and destination in a network. The data received from the transport layer is reframed into packets.The packets may be transferred through different paths. So,the numbering of packets is necessary to arrange the packets into original order.

These functionalities are carried out in the network layer. the network layer interconnects the device and transfer the packet by choosing the optimal network path. These functionalities are discussed in this chapter.

Functionality Of Network Layer:

The network Layer is the third layer in the OSI model of computer networks. Its main function is to transfer network packets from the source to the destination. It is involved both the source host and the destination host.

At the source, it accepts a packet from the transport layer, encapsulates it in a datagram, and then delivers the packet to the data link layer so that it can further be sent to the receiver. At the destination, the datagram is decapsulated, and the packet is extracted and delivered to the corresponding transport layer.

Here the function of network layer

Features of Network Layer:

  1. The main responsibility of the Network layer is to carry the data packets from the source to the destination without changing or using them.
  2. If the packets are too large for delivery, they are fragmented i.e., broken down into smaller packets.
  3. It decides the route to be taken by the packets to travel from the source to the destination among the multiple routes available in a network (also called routing).
  4. The source and destination addresses are added to the data packets inside the network layer.

NETWORK LAYER (Design issue)

Network layer is majorly focused on getting packets from the source to the destination, routing error handling and congestion control. Before learning about design issues in the network layer, let’s learn about it’s various functions.

Network layer design issues:

The network layer comes with some design issues they are described as follows:

  1. Store and Forward packet switching: The host sends the packet to the nearest router. This packet is stored there until it has fully arrived once the link is fully processed by verifying the checksum then it is forwarded to the next router till it reaches the destination. This mechanism is called “Store and Forward packet switching.”

  2. Services provided to Transport Layer: Through the network/transport layer interface, the network layer transfers it’s services to the transport layer. These services are described below. But before providing these services to the transfer layer following goals must be kept in mind :-

  3. The factors that are handledin designing of network layer are

    1. Connetionless Service
    2. Connection Oriented Service
    3. Service in Static Connetion
    4. Service in Dynamic Connetion

    Routing Algoritms

    In computer networks,routing is the process of selecting the path along with the data will be transferred from the source node (device) to the destination node.

    This path is determined by the help of routing algorithms in computer networks

    Types of Routing algorithm

    1. Adaptive Routing: Adaptive routing algorithm is also called a dynamic routing algorithm The routing decision are made based on network traffic and topology.
    2. Non-Adaptive Routing Algoritm: Non-Adaptive Routing Algoritm is also called a static routing algorithm. The routing decisions are not made based on traffic and topology.

    Congestion Control Algorthim

    A state occurring in network layer when the message traffic is so heavy that it slows down network response time.

    Congestion control refers to the techniques used to control or prevent congestion. Congestion control techniques can be broadly classified into two categories:

    Open Loop Congestion:

    Open loop congestion control policies are applied to prevent congestion before it happens. The congestion control is handled either by the source or the destination.

    Closed Loop Congestion:

    closed loop congestion control techniques are used to treat or alleviate congestion after it happens.

    IP Protocol

    Protocol is a rule. The IP protocol is the rule about the format of datagram over the network.

    The IP datagram contains the header and text part. The header part itself contains the fixed size and variable size part.

    Ip protocol header

    IP Address

    If I want to download a file fromthe internet or load a web page or literally do anything related to the internet, my computer must have an address so that other computers can find and locate mine in order to deliver that particular file or webpage that I am requesting. In technical terms, that address is called IP Address or Internet Protocol Address.

    Working of IP address:

    IP addresss

    Internet Control Protocols

    The Ip protocol is used to transfer the message. There are several other protocols to control the network activities.

    1. Internet Control Message Protocol:
    2. The unexcepted event occurred over the network is reported by the ICMP.The router also monitors the event on the network

    3. Address Resolution Protocol:
    4. The protocol used to ask the ethernet address of a particular host is address Resolution protocol.

    5. RARP:
    6. RARP stand for Reverse Address Resolution Protocol.

    7. BOOTP:
    8. BOOTP stand for Boostrap Protocol.

    9. DHCP:
    10. DHCP stand for Dynamic Host Configuration Protocol.