Docsity

UNIT-2(packet-switchingh).pdf, Slides of Data Communication Systems and Computer Networks

Partial preview of the text

Download UNIT-2(packet-switchingh).pdf and more Slides Data Communication Systems and Computer Networks in PDF only on Docsity!

Multiplexing

Introduction  (^) The long-haul circuit-switching telecommunications network was originally designed to handle voice traffic  (^) A key characteristic of circuit-switching networks is that resources within the network are dedicated to a particular call. For voice connections, resulting circuit will enjoy a high percentage of utilization.  (^) However, as the circuit-switching network began to be used increasingly for data connections, two shortcomings became apparent:  (^) In a typical user host data connection (e.g., personal computer user logged on to a database server), much of the time the line is idle. Thus, with data connections, a circuit-switching approach is inefficient.  (^) In a circuit-switching network, the connection provides for transmission at constant data rate. Thus, each of the two devices that are connected must transmit and receive at the same data rate as the other; this limits the utility of the network in interconnecting a variety of host computers and terminals.

The Approach

This approach has a number of advantages over circuit

switching:

Line efficiency is greater, as a single node-to-node link

can be dynamically shared by many packets over time.

The packets are queued up and transmitted as rapidly as

possible over the link.

By contrast, with circuit switching, time on a node-to-

node link is pre-allocated using synchronous TDM.

Much of the time, link may be idle because a portion of

its time is dedicated to a connection which is idle.

Packet-switch network can perform data-rate conversion.

Two stations of different data rates can exchange

packets because each connects to its node at its proper

data rate.

The Approach II

When traffic becomes heavy on a circuit-switching network, the network refuses to accept additional connection requests (Blocked) Until load decreases. On a packet-switching network, packets are still accepted, but delivery delay increases. Priorities can be used. It can transmit the higher-priority packets first. These packets will therefore experience less delay than lower-priority packets.

Datagram approach

 (^) Each packet is treated independently, with no reference to packets that have gone before.  (^) Some implication of this approach.  (^) When the data is sent over the network it might be possible that the data packets if broken take different route to its destination  (^) They totally dependent upon the forwarding node for routing the packets  (^) Possibly the data packet which was last may reach the destination first.  (^) It is possible for a packet to be destroyed in the network (if a packet switching node crashes momentarily)  (^) if packets get lost, the destination node has no way to know that one of the packets in the sequence has been lost.  (^) it is up to receiver to detect loss of a packet and recovers it.

Virtual circuits

 (^) In the virtual-circuit approach, a preplanned route is established before any packets are sent  (^) It first sends a special control packet, referred to as a Call-Request packet  (^) Nodes decides to route the request and all subsequent packets to other nodes  (^) If Station is prepared to accept the connection, it sends Call-Accept packet back to station via nodes  (^) Stations can then exchange data over the route that has been established.  (^) As route is fixed for the duration of the logical connection, it is somewhat similar to a circuit-switching network, and is referred to as a virtual circuit  (^) Each packet also contains a virtual-circuit identifier and data

Eventually, one of the stations terminates the connection

with a Clear-Request packet

 (^) At any time, each station can have more than one virtual circuit to any other station and can have virtual circuits to more than one station.

Characteristic of the virtual-circuit In virtual-circuit (VC) a route between stations is set up prior to data transfer That does not mean its a dedicated path packet is still buffered at each node, and queued for output over a line With virtual circuits, the node does not make a routing decision for transferring each packet

Advantages of VC

If two stations wish to exchange data over an extended period of time network may provide services related to the virtual circuit, including sequencing and error control because all packets follow the same route, they arrive in the original order If dara arrives with an error, node can request a retransmission of that packet from previous node

Packet size

  • In this Fig, it is assumed that there is a virtual circuit from station X through nodes a and b to station Y.
  • The message comprises 30 octets, of and each packet contains 3 octets of control information
  • Placed at beginning of each packet and is referred to as a header.

Packet size

 (^) If the sent packet consists of 33 octets (3 of header plus 30 of data), then  (^) Packet is first transmitted from station X to node a (Figure a).  (^) When the entire packet is received, it can then be transmitted from a to b.  (^) When the entire packet is received at node b, it is transferred to station Y.  (^) The total transmission time at the nodes is 99 octet-times (33 octets X 3 packet transmissions = 99 Octet-times).  (^) So if we break up the message into more packets (Packet + Control info)  (^) So because of overlapping in transmission, the total transmission time of 2 packets drops to 72 octet-times, for 5 packets it drop to total of 63  (^) However, this process of using more and smaller packets eventually results in increased, rather than reduced, delay as in Fig d;  (^) This is because each packet contains a fixed amount of header, and more packets means more of these headers.  (^) We did not consider processing and queuing delays at each node.  (^) Extremely small packet size (53 octets) can result in an efficient network design.

Circuit switch

 (^) In circuit switching, there is a of delay in message before it is sent.  (^) First, a call request signal is sent through the network in order to set up a connection to the destination.  (^) A processing delay is faced at each node during the call request  (^) This time is spent at each node setting up the route of the connection.  (^) On the return, this processing is not needed because the connection is already set up  (^) Once set up, the message is sent as a single block, with no noticeable delay at the switching nodes.

Virtual Circuit

 (^) Virtual-circuit packet similar to circuit switching.  (^) A virtual circuit is requested using a call-request packet, which incurs a delay at each node.  (^) The virtual circuit is accepted with a call-accept packet.  (^) In contrast to the circuit-switching case, the call acceptance also experiences node delays, even though the virtual circuit route is now established the reason is that this packet is queued at each node and must wait its turn for retransmission.  (^) On establishment of virtual circuit message is transmitted in packets.  (^) This phase can be no faster than circuit switching,  (^) Some delay are present at each node in the path; worse, this delay is variable and will increase with increased load.

Transparency of circuit switching  (^) Circuit switching is essentially a transparent service.  (^) Once a connection is established, a constant data rate is provided to the connected stations  (^) But not the case with packet switching, which typically introduces variable  (^) delay, so that data arrive in a choppy manner.  (^) With datagram packet switching, data may arrive in a different order than they were transmitted.  (^) An additional consequence of transparency is that there is no overhead required to accommodate circuit switching.  (^) Once a connection is established, the analog or digital data are passed through, as is, from source to destination.  (^) For packet switching, analog data must be converted to digital before transmission and each packet includes overhead bits, such as the destination address.

External and internal operation

Depends upon the characteristics of packet switching weather it is using data-grams or virtual circuits. There are two dimensions of these characteristics.

At the interface between a station and network node

Network may provide

 Connection-oriented
 Connectionless service