The minimum number of columns in the routing table of a data
The minimum number of columns in the routing table of a datagram switch is two; the minimum number of columns in the table of a virtual-circuit switch is four. Can you explain the reason? Is the difference related to the type of addresses carried in the packets of each network?
Solution
Answer:-
Virtual Circuit Network :
A virtual-circuit network is a cross between a circuit-switched network and a datagram network. It has some characteristics of both.
1. As in a circuit-switched network, there are setup and teardown phases in addition to the data transfer phase.
2. Resources can be allocated during the setup phase, as in a circuit-switched network, or on demand, as in a datagram network.
3. As in a datagram network, data are packetized and each packet carries an address in the header. However, the address in the header has local jurisdiction (it defines what should be the next switch and the channel on which the packet is being carried), not end-to-end jurisdiction. The reader may ask how the intermediate switches know where to send the packet if there is no final destination address carried by a packet.
4. As in a circuit-switched network, all packets follow the same path established during the connection.
5. A virtual-circuit network is normally implemented in the data link layer, while a circuit-switched network is implemented in the physical layer and a datagram network in the network layer. But this may change in the future.
6 .A virtual-circuit network. The network has switches that allow traffic from sources to destinations. A source or destination can be a computer, packet switch, bridge, or any other device that connects other networks.
Addressing:
In a virtual-circuit network, two types of addressing are involved: global and local (virtual-circuit identifier).
 Global Addressing:
A source or a destination needs to have a global address-an address that can be unique in the scope of the network or internationally if the network is part of an international network.
Virtual-Circuit Identifier:
The identifier that is actually used for data transfer is called the virtual-circuit identifier (VCI). A VCI, unlike a global address, is a small number that has only switch scope. It is used by a frame between two switches. When a frame arrives at a switch, it has a VCI; when it leaves, it has a different VCI.
1) Data Transfer Phase :
To transfer a frame from a source to its destination, all switches need to have a table entry for this virtual circuit. The table, in its simplest form, has four columns.
2) Setup Phase:
In the setup phase, a switch creates an entry for a virtual circuit. For example, suppose source A needs to create a virtual circuit to B.
3) Teardown Phase:
In this phase, source A, after sending all frames to B, sends a special frame called a teardown request. Destination B responds with a teardown confirmation frame. All switches delete the corresponding entry from their tables.

