Skip to content
Sahithyan's S3
1
Sahithyan's S3 — Data Communication and Networking

Switching

A method used in networks to connect a sender to a receiver so that data can travel from source to destination.

Without switching every pair of devices would require a direct connection, which is impractical and inefficient. Switching allows multiple devices to share a single link, which reduces overall cost and complexity.

Identifies the route traversed by data to get from source to destination.

A network where each device is directly connected to every other device or a common medium. No switching devices are used. When one device transmits data, all devices can receive the message.

Simple design. Low cost. Easy to setup for small networks.

Collisions are highly likely. More devices mean more collisions. Not good in terms of security. Not reliable.

Examples:

  • Point-to-point
  • Multi-point
  • Broadcast

Data passes through one or more intermediate nodes between the sender and receiver.

A dedicated communication path is established between sender and receiver before data transfer. The path remains reserved for the entire duration of the session. The circuit is released after the session ends.

Requires caller (sender), callee (receiver) and all intermediate nodes and links to be available at the same time.

Constant, guaranteed bandwidth. Delay occurs only during setup.

Inefficient if data is bursty. Setup time required before data transmission begins. Cannot be optimized while data is being transmitted. Not suitable for computer communications.

Used in human-to-human telephone calls.

Each call uses a separate physical path through the switch. Implemented using crossbar or matrix switches.

Used in analog systems.

Same physical path shared by multiple calls in different time-slots. Uses TDM.

Used in digital systems.

Entire message is stored and forwarded at intermediate nodes. Message is sent progressively as each hop becomes available.

End-to-end delivery time cannot be guaranteed. Very long messages can hog buffers and links.

Data is divided into smaller units aka. packets and transmitted over the network. Packets are variable-length.

Each packet contains:

  • a header to identify the source and destination of the data
  • a sequence number that allows the receiver to reassemble the data in the correct order
  • data

Each intermediate nodes switches incoming packet through a link to another node.

No need of dedicated paths. Ideal for bursty data. Jitter is possible. Packets may arrive out of order.

More flexible than circuit switching. Because it allows multiple devices to share a single link. More efficient than circuit switching. Can handle bursty data more effectively.

Establishes a temporary virtual path between sender and receiver. All packets follow the same virtual path. Similar to circuit switching but with less overhead.

Packets are assigned to virtual circuits. Each VC has a virtual circuit identifier. Different VCIs are used in different links. Incoming and outgoing VCIs are managed by intermediate nodes using a table.

Packets are routed independently. No initial setups or delays.

Destination address of a packet stays the same throughout the transmission. Datagram switch uses a routing table to store destination address and output port.

Adapts to node or link failure during transmission. Switching each packets is relatively expensive.

A label is attached to packets, when they arrive at the switch. Each core switch switches the packet based on the label, and then substitutes a new label for the next hop.

Similar to packet switching but uses fixed-size cells instead of variable length packets.