SlideShare a Scribd company logo
Packet Switching




Around 1970, research began on a new form
      of architecture for long distance
    communications: Packet Switching.

                                        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.


                                   2
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
                                        3
Advantages
Line efficiency
   Single node to node link can be shared by many
   packets over time
   Packets queued and transmitted as fast as possible
Data rate conversion
   Each station connects to the local node at its own
   speed
   Nodes buffer data if required to equalize rates
Packets are accepted even when network is busy
   Delivery may slow down
Priorities can be used
                                      4
Switching Technique - Virtual
Circuits and Datagrams
 Station breaks long message into packets
 Packets sent one at a time to the network
 Packets handled in two ways
   Datagram
   Virtual circuit




                                 5
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.
                                      6
Packet
Switching
Datagram
Approach



            7
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                             8
Packet
Switching
Virtual
Circuit
Approach


            9
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                              10
Packet switching -
datagrams or virtual circuits
Interface between station and network node
  Connection oriented
    Station requests logical connection (virtual circuit)
    All packets identified as belonging to that connection
    & sequentially numbered
    Network delivers packets in sequence
    External virtual circuit service
    e.g. X.25
    Different from internal virtual circuit operation
  Connectionless
    Packets handled independently
    External datagram service
    Different from internal datagram operation
                                            11
External
Virtual
Circuit and
Datagram
Operation




              12
Internal
Virtual
Circuit and
Datagram
Operation




              13
Circuit vs. Packet Switching
 Performance
  Propagation delay
  Transmission time
  Node delay




                      14
Comparison with Circuit
Switching - Event Timing




                      15
Comparison with Circuit
Switching




                          16
Packet Switching Evolution
 X.25 packet-switched network
 Router-based networking
 Switching vs. routing
 Frame relay network
 ATM network




                                17
Switching vs Routing
Switching                     Routing
path set up at connection     can work as connectionless
time                          complex routing algorithm
simple table look up          table maintainance via
table maintainance via        protocol
signaling                     out of sequence delivery
no out of sequence delivery   likely
lost path may lose            robust: no connections lost
connection                    significant processing delay
much faster than pure         output link decision based on
routing                       packet header contents - at
link decision made ahead of   every node
time, and resources
allocated then                             18

More Related Content

What's hot

Network Layer
Network LayerNetwork Layer
Network Layer
Dr Shashikant Athawale
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
Dr Rajiv Srivastava
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
Mukesh Tekwani
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
Aditya Rawat
 
Token ring
Token ringToken ring
Token ring
selvakumar_b1985
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
NetProtocol Xpert
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
Shehara Abeythunga
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
selvakumar_b1985
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
k33a
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission media
Manish8976
 
Unit 1 introduction to computer networks
Unit 1  introduction to computer networksUnit 1  introduction to computer networks
Unit 1 introduction to computer networks
pavan kumar Thatikonda
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
Aman Jaiswal
 
Network software
Network softwareNetwork software
Network software
SakthiVinoth78
 
Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
قصي نسور
 
OSI Model
OSI ModelOSI Model
OSI Model
Rahul Bandhe
 
Internetworking
InternetworkingInternetworking
InternetworkingRaghu nath
 
Osi reference model
Osi reference modelOsi reference model
Osi reference model
vasanthimuniasamy
 
Network layer
Network layerNetwork layer
Network layer
Hasib Shaikh
 

What's hot (20)

Network Layer
Network LayerNetwork Layer
Network Layer
 
Introduction to switching & circuit switching
Introduction to switching & circuit switchingIntroduction to switching & circuit switching
Introduction to switching & circuit switching
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
 
Token ring
Token ringToken ring
Token ring
 
Tcp
TcpTcp
Tcp
 
Unicast multicast & broadcast
Unicast multicast & broadcastUnicast multicast & broadcast
Unicast multicast & broadcast
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Ppt for tranmission media
Ppt for tranmission mediaPpt for tranmission media
Ppt for tranmission media
 
Unit 1 introduction to computer networks
Unit 1  introduction to computer networksUnit 1  introduction to computer networks
Unit 1 introduction to computer networks
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
Network software
Network softwareNetwork software
Network software
 
Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
 
OSI Model
OSI ModelOSI Model
OSI Model
 
Internetworking
InternetworkingInternetworking
Internetworking
 
Osi reference model
Osi reference modelOsi reference model
Osi reference model
 
Network layer
Network layerNetwork layer
Network layer
 

Similar to Packet switching

Switching Techniques Lecture12,wireless
Switching Techniques Lecture12,wirelessSwitching Techniques Lecture12,wireless
Switching Techniques Lecture12,wireless
NavaizImtiaz1
 
unit3-220228110900.pptx
unit3-220228110900.pptxunit3-220228110900.pptx
unit3-220228110900.pptx
LAVANYAsrietacin
 
switching techniques
switching techniques switching techniques
switching techniques
ziaulhaq96
 
Switching Techniques
Switching TechniquesSwitching Techniques
Switching Techniquestameemyousaf
 
8 Packet Switching
8 Packet Switching8 Packet Switching
8 Packet Switching
Water Birds (Ali)
 
Chapter#3
Chapter#3Chapter#3
Switching
SwitchingSwitching
Switching
Shankar Gangaju
 
chapter 5.2.pptx
chapter 5.2.pptxchapter 5.2.pptx
chapter 5.2.pptx
MelkamtseganewTigabi1
 
Unit 3 cnd physical layer_switching_pranoti doke
Unit 3  cnd physical layer_switching_pranoti dokeUnit 3  cnd physical layer_switching_pranoti doke
Unit 3 cnd physical layer_switching_pranoti doke
Pranoti Doke
 
Unit 3 CND physical layer_switching_pranoti doke
Unit 3  CND physical layer_switching_pranoti dokeUnit 3  CND physical layer_switching_pranoti doke
Unit 3 CND physical layer_switching_pranoti doke
Pranoti Doke
 
unit 2_switchingtechniques.ppt
unit 2_switchingtechniques.pptunit 2_switchingtechniques.ppt
unit 2_switchingtechniques.ppt
ThangamaniR3
 
Wmcn ch.3
Wmcn ch.3Wmcn ch.3
Wmcn ch.3Alaa2
 
Switch networking
Switch networking Switch networking
Switch networking
MohikaJamadari
 
Net switching
Net switchingNet switching
Net switching
Tinashemaruta
 
Lecture 2 review of network technologies
Lecture 2 review of network technologiesLecture 2 review of network technologies
Lecture 2 review of network technologiesBatzaya Dashdondog
 
Switching
SwitchingSwitching
Switching
Hala Kamal
 
switching technique in computer networks
switching technique in computer networksswitching technique in computer networks
switching technique in computer networks
bitan11
 

Similar to Packet switching (20)

Switching Techniques Lecture12,wireless
Switching Techniques Lecture12,wirelessSwitching Techniques Lecture12,wireless
Switching Techniques Lecture12,wireless
 
unit3-220228110900.pptx
unit3-220228110900.pptxunit3-220228110900.pptx
unit3-220228110900.pptx
 
switching techniques
switching techniques switching techniques
switching techniques
 
Switching Techniques
Switching TechniquesSwitching Techniques
Switching Techniques
 
8 Packet Switching
8 Packet Switching8 Packet Switching
8 Packet Switching
 
Chapter#3
Chapter#3Chapter#3
Chapter#3
 
22 circuits
22 circuits22 circuits
22 circuits
 
Switching
SwitchingSwitching
Switching
 
chapter 5.2.pptx
chapter 5.2.pptxchapter 5.2.pptx
chapter 5.2.pptx
 
Unit 3 cnd physical layer_switching_pranoti doke
Unit 3  cnd physical layer_switching_pranoti dokeUnit 3  cnd physical layer_switching_pranoti doke
Unit 3 cnd physical layer_switching_pranoti doke
 
Unit 3 CND physical layer_switching_pranoti doke
Unit 3  CND physical layer_switching_pranoti dokeUnit 3  CND physical layer_switching_pranoti doke
Unit 3 CND physical layer_switching_pranoti doke
 
Lecture set 1
Lecture set 1Lecture set 1
Lecture set 1
 
unit 2_switchingtechniques.ppt
unit 2_switchingtechniques.pptunit 2_switchingtechniques.ppt
unit 2_switchingtechniques.ppt
 
Wmcn ch.3
Wmcn ch.3Wmcn ch.3
Wmcn ch.3
 
Switch networking
Switch networking Switch networking
Switch networking
 
Net switching
Net switchingNet switching
Net switching
 
Lecture 2 review of network technologies
Lecture 2 review of network technologiesLecture 2 review of network technologies
Lecture 2 review of network technologies
 
Switching
SwitchingSwitching
Switching
 
switching technique in computer networks
switching technique in computer networksswitching technique in computer networks
switching technique in computer networks
 
ITFT_Switching
ITFT_Switching ITFT_Switching
ITFT_Switching
 

More from asimnawaz54

Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceasimnawaz54
 
Expert systems with applications
Expert systems with applicationsExpert systems with applications
Expert systems with applicationsasimnawaz54
 
Establishing knowledge base
Establishing knowledge baseEstablishing knowledge base
Establishing knowledge baseasimnawaz54
 
Designing the expert system
Designing the expert systemDesigning the expert system
Designing the expert systemasimnawaz54
 
1 s2.0-s0957417410007244-main
1 s2.0-s0957417410007244-main1 s2.0-s0957417410007244-main
1 s2.0-s0957417410007244-mainasimnawaz54
 
Network layer and circuit switching
Network layer and circuit switchingNetwork layer and circuit switching
Network layer and circuit switchingasimnawaz54
 
Network layer and circuit switching
Network layer and circuit switchingNetwork layer and circuit switching
Network layer and circuit switchingasimnawaz54
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocolasimnawaz54
 
Address resolution protocol
Address resolution protocolAddress resolution protocol
Address resolution protocolasimnawaz54
 
Address resolution protocol and internet control message protocol
Address resolution protocol and internet control message protocolAddress resolution protocol and internet control message protocol
Address resolution protocol and internet control message protocolasimnawaz54
 
Requirements analysis
Requirements analysisRequirements analysis
Requirements analysis
asimnawaz54
 
Advanced software engineering lab 2
Advanced software engineering lab 2Advanced software engineering lab 2
Advanced software engineering lab 2
asimnawaz54
 
Object oriented analysis lab1
Object oriented analysis lab1Object oriented analysis lab1
Object oriented analysis lab1asimnawaz54
 
Ooad sequence diagram lecture
Ooad sequence diagram lectureOoad sequence diagram lecture
Ooad sequence diagram lecture
asimnawaz54
 

More from asimnawaz54 (17)

Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inference
 
Lecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inferenceLecture 2 predicates quantifiers and rules of inference
Lecture 2 predicates quantifiers and rules of inference
 
Expert systems with applications
Expert systems with applicationsExpert systems with applications
Expert systems with applications
 
Establishing knowledge base
Establishing knowledge baseEstablishing knowledge base
Establishing knowledge base
 
Designing the expert system
Designing the expert systemDesigning the expert system
Designing the expert system
 
1 s2.0-s0957417410007244-main
1 s2.0-s0957417410007244-main1 s2.0-s0957417410007244-main
1 s2.0-s0957417410007244-main
 
Network layer and circuit switching
Network layer and circuit switchingNetwork layer and circuit switching
Network layer and circuit switching
 
Network layer and circuit switching
Network layer and circuit switchingNetwork layer and circuit switching
Network layer and circuit switching
 
Ipv6up
Ipv6upIpv6up
Ipv6up
 
Ipv4
Ipv4Ipv4
Ipv4
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
 
Address resolution protocol
Address resolution protocolAddress resolution protocol
Address resolution protocol
 
Address resolution protocol and internet control message protocol
Address resolution protocol and internet control message protocolAddress resolution protocol and internet control message protocol
Address resolution protocol and internet control message protocol
 
Requirements analysis
Requirements analysisRequirements analysis
Requirements analysis
 
Advanced software engineering lab 2
Advanced software engineering lab 2Advanced software engineering lab 2
Advanced software engineering lab 2
 
Object oriented analysis lab1
Object oriented analysis lab1Object oriented analysis lab1
Object oriented analysis lab1
 
Ooad sequence diagram lecture
Ooad sequence diagram lectureOoad sequence diagram lecture
Ooad sequence diagram lecture
 

Packet switching

  • 1. Packet Switching Around 1970, research began on a new form of architecture for long distance communications: Packet Switching. 1
  • 2. 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. 2
  • 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 3
  • 4. Advantages Line efficiency Single node to node link can be shared by many packets over time Packets queued and transmitted as fast as possible Data rate conversion Each station connects to the local node at its own speed Nodes buffer data if required to equalize rates Packets are accepted even when network is busy Delivery may slow down Priorities can be used 4
  • 5. Switching Technique - Virtual Circuits and Datagrams Station breaks long message into packets Packets sent one at a time to the network Packets handled in two ways Datagram Virtual circuit 5
  • 6. 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. 6
  • 8. 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 8
  • 10. 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 10
  • 11. Packet switching - datagrams or virtual circuits Interface between station and network node Connection oriented Station requests logical connection (virtual circuit) All packets identified as belonging to that connection & sequentially numbered Network delivers packets in sequence External virtual circuit service e.g. X.25 Different from internal virtual circuit operation Connectionless Packets handled independently External datagram service Different from internal datagram operation 11
  • 14. Circuit vs. Packet Switching Performance Propagation delay Transmission time Node delay 14
  • 17. Packet Switching Evolution X.25 packet-switched network Router-based networking Switching vs. routing Frame relay network ATM network 17
  • 18. Switching vs Routing Switching Routing path set up at connection can work as connectionless time complex routing algorithm simple table look up table maintainance via table maintainance via protocol signaling out of sequence delivery no out of sequence delivery likely lost path may lose robust: no connections lost connection significant processing delay much faster than pure output link decision based on routing packet header contents - at link decision made ahead of every node time, and resources allocated then 18