SlideShare une entreprise Scribd logo
1  sur  18
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

Contenu connexe

Tendances

Tendances (20)

Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
Mac protocols
Mac protocolsMac protocols
Mac protocols
 
Computer Network - Network Layer
Computer Network - Network LayerComputer Network - Network Layer
Computer Network - Network Layer
 
ATM Networking Concept
ATM Networking ConceptATM Networking Concept
ATM Networking Concept
 
Token ring
Token ringToken ring
Token ring
 
Unit 1 introduction to computer networks
Unit 1  introduction to computer networksUnit 1  introduction to computer networks
Unit 1 introduction to computer networks
 
02 protocol architecture
02 protocol architecture02 protocol architecture
02 protocol architecture
 
Transmission impairments(presentation)
Transmission impairments(presentation)Transmission impairments(presentation)
Transmission impairments(presentation)
 
Application layer protocols
Application layer protocolsApplication layer protocols
Application layer protocols
 
Presentation on Transmission Media
Presentation on Transmission MediaPresentation on Transmission Media
Presentation on Transmission Media
 
Tcp
TcpTcp
Tcp
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
Network layer tanenbaum
Network layer tanenbaumNetwork layer tanenbaum
Network layer tanenbaum
 
Data link layer
Data link layer Data link layer
Data link layer
 
Routing
RoutingRouting
Routing
 
Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...
Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...
Circuit Switching, Packet Switching, Virtual Circuit Networks and Datagram Ne...
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Computer networks - Channelization
Computer networks - ChannelizationComputer networks - Channelization
Computer networks - Channelization
 

Similaire à Packet switching

Switching Techniques Lecture12,wireless
Switching Techniques Lecture12,wirelessSwitching Techniques Lecture12,wireless
Switching Techniques Lecture12,wirelessNavaizImtiaz1
 
switching techniques
switching techniques switching techniques
switching techniques ziaulhaq96
 
Switching Techniques
Switching TechniquesSwitching Techniques
Switching Techniquestameemyousaf
 
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 dokePranoti 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 dokePranoti Doke
 
unit 2_switchingtechniques.ppt
unit 2_switchingtechniques.pptunit 2_switchingtechniques.ppt
unit 2_switchingtechniques.pptThangamaniR3
 
Wmcn ch.3
Wmcn ch.3Wmcn ch.3
Wmcn ch.3Alaa2
 
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 technique in computer networks
switching technique in computer networksswitching technique in computer networks
switching technique in computer networksbitan11
 

Similaire à 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
 

Plus de 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 analysisasimnawaz54
 
Advanced software engineering lab 2
Advanced software engineering lab 2Advanced software engineering lab 2
Advanced software engineering lab 2asimnawaz54
 
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 lectureasimnawaz54
 

Plus de 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