Chapter 8 Switching
Chapter 8 Switching
Switching
8.1 Introduction
• Problem to connect devices one-to-one and solutions:
– Mesh, star but are costly and links are idle most of time
2. Packet switching
1. Virtual circuit approach
2. Datagram approach
3. Message switching
3. It is more conceptual than practical
• A connection between two stations is a dedicated path made of one or more links
– each connection uses only one dedicated channel on each link.
– Each link is divided into n channels by FDM or TDM
• In circuit switching,
– the resources need to be reserved during the setup phase;
– the resources remain dedicated for the entire duration of data transfer until the teardown
phase.
Efficiency
• It is not as efficient as the other two types of networks
– because resources are allocated during the entire duration of the
connection
• dedicated resources means that
– connections are deprived
Delay
• delay in this type of network is minimal
8.3 Packet Switching
• It divide packets into fixed or variable size.
– Size determined by the network and governing
protocol
• In a packet-switched network,
– there is no resource reservation;
– resources are allocated on demand
• Two types:
1. Datagram Networks
2. Virtual Circuit Networks
Datagram Networks
• each packet is treated independently of all others
– Datagram switching is normally done at the network layer
– sometimes referred to as connectionless networks
• no setup or teardown phases
Efficiency
– better than that of a circuit-switched network
– resources are allocated only when there are packets
Delay
– greater delay in a datagram network than in a virtual-
circuit network
– delay is not uniform for the packets of a message
Total delay = 3T + 3τ + w1 + w2
– all packets follow the same path established during the connection
• Global Addressing
– global address is used only to create a VC identifier
• VC identifier
– small number that has only switch scope
– When a frame arrives at a switch,
• it has a VCI;
• when it leaves, it has a different VCI
Setup Phase:
• setup acknowledgement
Setup Acknowledgement
Data-Transfer Phase