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

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

Embed Size (px)

Citation preview

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

1

Packet Switching

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

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

2

IntroductionPacket 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.

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

3

Packet Switching OperationData 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

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

4

AdvantagesLine 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

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

5

Switching Technique - Virtual Circuits and DatagramsStation breaks long message into

packetsPackets sent one at a time to the

networkPackets handled in two ways

Datagram Virtual circuit

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

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 routePackets may arrive out of orderPackets may go missingUp to receiver to re-order packets and recover

from missing packetsMore processing time per packet per nodeRobust in the face of link or node failures.

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

7

Packet Switching Datagram Approach

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

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

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

9

Packet Switching Virtual Circuit Approach

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

10

Virtual Circuits vs. DatagramVirtual circuits

Network can provide sequencing and error control

Packets are forwarded more quicklyNo routing decisions to make

Less reliableLoss 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

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

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 numberedNetwork delivers packets in sequenceExternal virtual circuit servicee.g. X.25Different from internal virtual circuit operation

ConnectionlessPackets handled independentlyExternal datagram serviceDifferent from internal datagram operation

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

12

External Virtual Circuit andDatagram Operation

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

13

InternalVirtualCircuit andDatagram Operation

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

14

Circuit vs. Packet SwitchingPerformance

Propagation delay Transmission time Node delay

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

15

Comparison with Circuit Switching - Event Timing

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

16

Comparison with Circuit Switching

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

17

RoutingComplex, crucial aspect of packet

switched networksCharacteristics required

Correctness Simplicity Stability Fairness Efficiency

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

18

Routing Performance CriteriaUsed for selection of routeMinimum hopLeast cost

Using some algorithmDelayThroughput

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

19

Routing Decision Time and PlaceTime

Packet basis virtual circuit basis

Place Distributed

Made by each node

Centralized Source (originating node)

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

20

Network Information SourceRouting decisions usually based on

knowledge of network (not always)Distributed routing

Nodes use local knowledge May collect info from adjacent nodes May collect info from all nodes on a

potential routeCentral routing

Collect info from all nodes