Sie sind auf Seite 1von 4

Advanced Computer Networks

MRCL

UNIT I
Network Layer: Network Layer Design Issues : Store-and-Forward Packet Switching, Services Provided to the Transport Layer, Implementation of Connectionless Service, Implementation of connection-oriented service, Comparison of Virtual Circuit and Datagram Subnets. Network Layer: Network Layer Design Issues : Store-and-Forward Packet Switching, Services Provided to the Transport Layer, Implementation of Connectionless Service, Implementation of connection-oriented service, Comparison of Virtual Circuit and Datagram Subnets. Congestion Control Algorithms: parison of Virtual Circuit and Datagram Subnets.

Network Layer
This is concerned with getting packets from the source all the way to the destination. This is the lowest layer that deals with end-to-end transmission. To achieve its goals, the network layer must 1. know about the topology of the communication subnet (i.e., the set of all routers) 2. choose appropriate paths through it. 3. take care to choose routes to avoid overloading some of the communication lines and routers while leaving others idle. 4. Deal with problems that occur when the source and destination are in different networks.

Network Layer Design Issues


1. Store-and-Forward Packet Switching

Figure 1-1: The environment of the network layer protocols This equipment is used as follows. 1. A host with a packet to send transmits it to the nearest router, either on its own LAN or over a point-to-point link to the carrier. 2. The packet is stored there until it has fully arrived so the checksum can be verified. 3. Then it is forwarded to the next router along the path until it reaches the destination host, where it is delivered. 4. This mechanism is store-and-forward packet switching. K. Sujatha CSE Department Pg 1

Advanced Computer Networks

MRCL

2. Services Provided to the Transport Layer


The network layer provides services to the transport layer at the network layer/transport layer interface. The network layer services for transport layer are: 1. The services should be independent of the router technology. 2. The transport layer should be shielded from the number, type, and topology of the routers present. 3. The network addresses made available to the transport layer should use a uniform numbering plan, even across LANs and WANs.

3. Implementation of Connectionless Service


If connectionless service is offered, packets are injected into the subnet individually and routed independently of each other. No advance setup is needed. In this context, the packets are frequently called datagrams and the subnet is called a datagram subnet. Suppose that the process P1 in Figure 1-2 has a long message for P2. It hands the message to the transport layer with instructions to deliver it to process P2 on host H2. The transport layer code runs on H1, prepends a transport header to the front of the message and hands the result to the network layer.

Figure 1-2: Routing with a datagram subnet If the message is four times longer than the maximum packet size, the network layer has to break it into four packets, 1,2, 3,and 4 and sends each of them in turn to router A using some point-to-point protocol, (for example, PPP) At this point the carrier takes over. Every router has an internal table telling it where to send packets for each possible destination. Each table entry is a pair consisting of a 1. destination 2. outgoing line to use for that destination. Only directly-connected lines can be used. The algorithm that manages the tables and makes the routing decisions is called the routing K. Sujatha CSE Department Pg 2

Advanced Computer Networks algorithm.

MRCL

4. Implementation of connection-oriented service


If connection-oriented service is used, a path from the source router to the destination router must be established before any data packets can be sent. This connection is called a VC(virtual circuit) and the subnet is called a virtual-circuit subnet. The idea behind virtual circuits is to avoid having to choose a new route for every packet sent. Instead, when a connection is established, a route from the source machine to the destination machine is chosen as part of the connection setup and stored in tables inside the routers. That route is used for all traffic flowing over the connection, exactly similar to the telephone system. When the connection is released,the virtual circuit is also terminated. With connection-oriented service,each packet carries an identifier telling which virtual circuit it belongs to.

Figure 1-3 : Routing within a Virtual Circuit subnet Host H1 has established connection 1 with host H2 with identifier 1. Similarly, the first entry at C routes the packet to E, also with connection identifier 1. If H3 also wants to establish a connection to H2. It chooses connection identifier 1. Then A assigns a different connection identifier to the outgoing traffic for the second connection. Label switching: Avoiding conflicts of this kind is why routers need the ability to replace connection identifiers in outgoing packets.

K. Sujatha

CSE Department

Pg 3

Advanced Computer Networks

MRCL

5. Comparison of Virtual Circuit and Datagram Subnets


S.No 1 2 3 4 5 6 7 Issue Circuit setup Addressing State information Routing Effect of router failures Quality of service Congestion control Datagram subnet VC subnet Not needed Required Each packet contains the full source Each packet contains a short VC number and destination address Routers do not hold state information Each VC requires router table space per about connections connection Route chosen when VC is setup; all packets of Each packet is routed independently a VC follow this route None except for packets lost during All VC's that passed through the failed router the crash are terminated Easy if enough resources can be allocated Difficult to guarantee during the setup procedure Easy if enough buffers can be allocated in Difficult advance for each VC

K. Sujatha

CSE Department

Pg 4

Das könnte Ihnen auch gefallen