Professional Documents
Culture Documents
Datacommunication and Networking
Datacommunication and Networking
(Level 7)
Interfacing Utilization
Simplified Communications Model
Simplified Data Communications
Model
Circuit Switching
●Dedicated communications path established for the duration of the
conversation
●e.g. telephone network
Switching Networks
●Long distance transmission is typically done over a network of
switched nodes
●Nodes not concerned with content of data
●End devices are stations
○Computer, terminal, phone, etc.
●A collection of nodes and connections is a communications
network
●Data routed by being switched from node to node
Circuit Switching
●Dedicated communication path between two stations
●Three phases
○Establish
○Transfer
○Disconnect (Teardown)
●Must have switching capacity and channel capacity to establish
connection
●Must have intelligence to work out routing
Circuit Switching – Applications
●Inefficient
-Channel capacity dedicated for duration of connection
-If no data, capacity wasted
●Set up (connection) takes time
●Once connected, transfer is transparent
●Developed for voice traffic (phone)
Circuit Switching
Timing in Circuit Switching
Host 1 Host 2
C Switch 1 Switch 2
i
r
Transmission
c delay propagation delay
between Host 1
u and Switch1
propagation delay
between Host 1
i
ET and Host 2
ts
r Infor
C
at matio
n n tim
a e
i
b
s
r
Public Circuit Switched Network
Telecom Circuit Switch Elements
Components
●Subscriber
○Devices attached to network
●Local Loop
○Subscriber loop
○Connection to network
●Exchange
○Switching centers
○End office - supports
subscribers
●Trunks
○Branches between
exchanges
○Multiplexed
Circuit Switching Concepts
●Digital Switch
○Provide transparent signal path between devices
●Network Interface
●Control Unit
○Establish connections
■ Generally on demand
■ Handle and acknowledge requests
■ Determine if destination is free
■ construct path
○Maintain connection
○Disconnect
Advantages of Circuit Switching
●Guaranteed bandwidth
○Predictable communication performance
○Not “best-effort” delivery with no real guarantees
●Simple abstraction
○Reliable communication channel between hosts
○No worries about lost or out-of-order packets
●Simple forwarding
○Forwarding based on time slot or frequency
○No need to inspect a packet header
●Low per-packet overhead
○Forwarding based on time slot or frequency
○No IP (and TCP/UDP) header on each packet
Disadvantages of Circuit Switching
●Wasted bandwidth
○Bursty traffic leads to idle connection during silent period
○Unable to achieve gains from statistical multiplexing
●Blocked connections
○Connection refused when resources are not sufficient
○Unable to offer “okay” service to everybody
●Connection set-up delay
○No communication until the connection is set up
○Unable to avoid extra latency for small data transfers
●Network state
○Network nodes must store per-connection information
○Unable to avoid per-connection storage and state
Blocking or Non-blocking
●Blocking
○A network is unable to connect stations because all paths are in
use
○A blocking network allows this
○Used on voice systems
■ Short duration calls
●Non-blocking
○Permits all stations to connect (in pairs) at once
○Used for some data connections
Packet Switching
●Data sent out of sequence
●Small chunks (packets) of data at a time
●Packets passed from node to node between source and destination
●Used for terminal to computer and computer to computer
communications
Switching Technique
●Station breaks long message into packets
●Packets sent one at a time to the network
●Packets handled in two ways
○Datagram
○Virtual circuit
Basic Operation
●Data transmitted in small packets
○Typically 1000 octets
○Longer messages split into series of packets
○Each packet contains a portion of user data plus some control
info
●Control info
○Routing (addressing) info
●Packets are received, stored briefly (buffered) and pass on to
the next node
○Store and forward
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
Packet Switching ( Internet)
●Data traffic divided into packets
○Each packet contains a header (with address)
● Packets travel separately through network
○Packet forwarding based on the header
○Network nodes may store packets
temporarily
●Destination reconstructs the message
Packet Switching: Statistical
Multiplexing
Packet
Packet Switching
Advantages:
○ Security
○ Bandwidth used to full potential
○ Devices of different speeds can communicate
○ Not affected by line failure (rediverts signal)
○ Availability – do not have to wait for a direct connection to become
available
○ During a crisis or disaster, when the public telephone network might
stop working, e-mails and texts can still be sent via packet switching
Disadvantages
○ Under heavy use there can be a delay
○ Data packets can get lost or become corrupted
○ Protocols are needed for a reliable transfer
○ Not so good for some types data streams e.g real-time video streams
can lose frames due to the way packets arrive out of sequence.
IP Service: Best-Effort Packet
●Packet switching Delivery
○Divide messages into a sequence of packets
○Headers with source and destination address
●Best-effort delivery
○Packets may be lost
○Packets may be corrupted
○Packets may be delivered out of order
sourc destinatio
e n
IP network
IP Service Model: Why Packets?
●Data traffic is bursty
○Logging in to remote machines
○Exchanging e-mail messages
●Don’t want to waste reserved bandwidth
○No traffic exchanged during idle periods
●Better to allow multiplexing
○Different transfers share access to same links
●Packets can be delivered by most anything
○RFC 2549: IP over Avian Carriers (aka birds)
●… still, packet switching can be inefficient
○Extra header bits on every packet
IP Service Model: Why Best-Effort?
Internet Protocol
16-bit 3-bit
Flags 13-bit Fragment Offset
Identification
8-bit Time to
16-bit Header
8-bit Protocol
Live (TTL) Checksum
Payload
Store-and-Forward Networks