Network Layer 10 - Circuit Switching and Packet Switching
Computer Communication & Networking— CE - 402 Department of Computer Engineering, SSUET CE - 402
Instructor: M. Rehan Rasheed
1
Introduction
Packet Switching refers to protocols in which messages are divided into packets before they are sent. Each packet is then transmitted individually and can even follow different routes to its destination.
Once all the packets forming a message arrive at the destination, they are recompiled into the original message.
CE - 402
CC&N-CE-402
Instructor: M. Rehan Rasheed
2
1
Chapter # 10
Packet Switching Application
Circuit-switching is ideal when data must be transmitted quickly and must arrive in the same order in which it's sent. This is the case with most real-time data, such as live audio and video.
Packet switching is more efficient and robust for data that can withstand some delays in transmission, such as e-mail messages and Web pages.
CE - 402
Instructor: M. Rehan Rasheed
3
Packet Switching Operation
Data are transmitted in short packets. Typically an upper bound on packet size is 1000 octets.
If a station has a longer message to send it breaks it up into a series of small packets. Each packet now contains part of the user's data and some control information. The control information should at least contain: Destination Address Source Address Store and forward - Packets are received, stored briefly (buffered) and past on to the next node.
CE - 402
CC&N-CE-402
Instructor: M. Rehan Rasheed
4
2
Chapter # 10
Use of Packets
CE - 402
Instructor: M. Rehan Rasheed
5
Advantages
Line efficiency Single node to node link can be dynamically shared by many packets over time. Packets queued and transmitted as fast as possible.
Data rate conversion Two stations of different data rates can exchange packets because each connects to its node at its proper data rate.
CE - 402
CC&N-CE-402
Instructor: M. Rehan Rasheed
6
3
Chapter # 10
Switching Technique - Virtual Circuits and Datagrams
Packets handled in two ways
CE - 402
Datagram approach Virtual circuit approach
Instructor: M. Rehan Rasheed
7
Datagram Packet Switching
In datagram approach each packet is treated independently with no reference to packets that have gone before. No connection is set up. Packets can take any practical route Packets may arrive out of order Packets may go missing Up to receiver to re-order packets and recover from missing packets More processing time per packet per node Robust in the face of link or node failures.
CE - 402
CC&N-CE-402
Instructor: M. Rehan Rasheed
8
4
Chapter # 10
Packet Switching Datagram Approach
CE - 402
Instructor: M. Rehan Rasheed
9
Virtual Circuit Packet Switching
In the Virtual Circuit approach a pre-planned route is established before any packets are sent. There is a call set up before the exchange of data (handshake). All packets follow the same route and therefore arrive in sequence. Each packet contains a virtual circuit identifier instead of destination address More set up time No routing decisions required for each packet - Less routing or processing time Susceptible to data loss in the face of link or node failure Clear request to drop circuit Not a dedicated path
CE - 402
CC&N-CE-402
Instructor: M. Rehan Rasheed
10
5
Chapter # 10
Packet Switching Virtual Circuit Approach
CE - 402
Instructor: M. Rehan Rasheed
11
Virtual Circuits vs. Datagram
Virtual circuits
Network can provide sequencing and error control Packets are forwarded more quickly No routing decisions to make Less reliable Loss of a node looses all circuits through that node
Datagram
No call setup phase Better if few packets More flexible Routing can be used to avoid congested parts of the network
CE - 402
CC&N-CE-402
Instructor: M. Rehan Rasheed
12
6
Chapter # 10
One Station Can Have Many Virtual Circuit Connections
CE - 402
Instructor: M. Rehan Rasheed
13
Instructor: M. Rehan Rasheed
14
Packet Size
CE - 402
CC&N-CE-402
7
Chapter # 10
Packet Size
In this example it is assumed that there is a virtual circuit from station X through nodes a and b to station Y.
The message to be sent comprises 40 octets and 3 octets of control information called header.
If the entire message is sent the packet first transmitted from station X to node a, when the entire packet is received, it can be transmitted from a to b and then transmitted to Y. ignoring switching time, total transmission time is 129 octettime(43octets x 3 packet transmission).
CE - 402
Instructor: M. Rehan Rasheed
15
Circuit vs. Packet Switching
Performance Propagation delay The time it takes a signal to propagate from one node to the next. This time generally negligible. Typically on a wire medium 2x108 Transmission time The time it takes for a transmitter to send out a block of data, e.g it takes 1s to transmit 10,000 bit block of data onto a 10kbps line. Node delay The time it takes for a node to perform the necessary processing as it switches data.
CE - 402
CC&N-CE-402
Instructor: M. Rehan Rasheed
16
8
Chapter # 10
Comparison with Circuit Switching - Event Timing
CE - 402
Instructor: M. Rehan Rasheed
Circuit Switching
CC&N-CE-402
17
Packet Switching Datagram Packet switching
Virtual-circuit Packet Switching
Dedicated transmission path
No dedicated path
No dedicated path
Continuous transmission of data
Transmission of packets
Transmission of packets
Fast enough for interactive
Fast enough for interactive
Fast enough for interactive
Messages are not stored
Packets may be stored until delivered
Packets stored until delivered
The path is established for entire conversation
Route established for each packet
Route established for entire conversation
Call setup delay; negligible transmission delay
Packet transmission delay
Call setup delay; packet transmission delay
Busy signal if called party busy
Sender may be notified if packet not delivered
Sender notified of connection denial
Overload may block call setup; no delay for established calls
Overload increases packet delay
Overload may block call setup; increase packet delay
Susceptible to data loss in the face of link or node failure. â« Clear request to drop circuit. â« Not a dedicated path. CE - 402. Instructor: M. Rehan Rasheed ...
In forward bias, acts like a closed switch. ⢠In reverse bias, acts like an open switch. LED. ⢠Light Emitting Diode. ⢠Arrow shows light emission. ⢠Working is similar ...
ABSTRACT. Network Coding (NC) can be efficiently combined with the ..... 1. NC akiyo. [8] S. Karande and H. Radha, "Hybrid Erasure Error Protocols,â to appear.
collimated fringes (usually with sinusoidal intensity pattern) will be projected onto the target. 20 surface. Cameras would be placed from a different view angle. Deformation of fringe pattern. 21 will appear in the captured images and surface shape
label switching network and thus improves its scalability. We define conditions that allow a set of paths to provide all-to-all shortest-path connectivity in an ...
N00014-01-C-0016 and hop-count ..... c. Rectangular grids: See, for example, the 4 by 7 rectangular grid in Figure 2. The consistent ... vp between u d. ¤ pâ and.
May 16, 2007 - main driver has at least a pair of a ?rst p-channel MOS transistor and a ?rst n-channel MOS transistor for driving a load according to the data, ...
Say that the networks have âperceptron unitsâ ... Note that for categorisation learning tasks,. â Each ti(E) will be 0, .... Squaring ensures we get a positive number.
Jul 17, 2012 - above 80% of their original values even after storage in air for thirty days. ... lution was prepared in a 1:1 mass ratio in 1,2-dichlorobenzene (20.
Full-stack JavaScript Framework for both Web and. Mobile. â¡. Built on top of the NodeJs. â¡. Open Source. â¡ ... Meteor doesn't send HTML over the network. The server sends data ... All layers, from database to template, update themselves ...
If the cake is large enough (or if multiple cakes are available), cut two slices of cake for .... By comparing several examples from the class data, it should be ... Oil companies, mining operations, and engineering geologists commonly make ...
The Role of Azopolymer/Dendrimer Layer-by-Layer Film Architecture in Photoinduced Birefringence and the Formation of Surface-Relief. Gratings. David S. dos Santos, Jr.,*,â Marcos R. Cardoso,â¡ Fabio L. Leite,â¡,§ Ricardo F. Aroca,â . Luiz H. C.
Jan 30, 2014 - OSGi⢠is a trademark, registered trademark, or service mark of the OSGi Alliance in the US and other countries. Java is a .... 5.6.1 BooleanControl Device Function. ..... and BBF handling the remote access to device networks.
RH and OH not only depends on the strength and spatial distribution of the. RH emissions ..... Any present-day numerical model is only capable of sim- ulating 2 ...
class that the cake represents a portion of the earth's crust with the top of the cake .... Core sample data can be collected from several locations to determine structure ... Oil companies, mining operations, and engineering geologists commonly ...
AHEAD EC Levelling Layer will, when applied on Zebra Anode, act as an alkaline ... 2-3 hours. No. of coats required on ZEBRA normally one coat at 1 mm ...
credit, derivatives, foreign exchange and securities. The interplay of the ... here is the first objective data driven quantification of systemic risk on national scales that reveals ..... pendent of default probabilities, recovery rates or other var
5 days ago - plaintiffs' 'claims are of the type Congress intended to be reviewed within this statutory structure.'â Id. (quoting Thunder Basin, 510 U.S. at 212).