Token Passing

 In the token-passing method, a special control frame called a token circulates among the stations.

Only the station holding the token is allowed to transmit data.

How it works:

  1. A token circulates from one station to another.

  2. A station that has data to send waits until it receives the token.

  3. The station captures the token and transmits its data.

  4. After transmission, it releases or passes the token to the next station.

  5. The process repeats.

In a token-passing network, every station has a logical predecessor and successor.

  • Predecessor: The station logically before the current station in the ring.

  • Successor: The station logically after the current station in the ring.

  • Token: A special control packet that grants permission to transmit data.

The protocol works as follows:

  1. Token circulation: The token passes from one station to its successor.

  2. Waiting for the token: A station that has data to send waits until it receives the token from its predecessor.

  3. Data transmission: When the station receives the token, it holds the token and transmits its data.

  4. Releasing the token: When the station has no more data to send, it releases the token and passes it to the next logical station.

  5. No data to send: If a station receives the token but has no data, it simply passes the token to the next station.

  6. Next opportunity: The station must wait until it receives the token again in the next round before transmitting more data.

Token Management

Token management is necessary for the proper functioning of the network. The following issues must be handled:

  • Token holding time: A station must be limited in the time it can hold the token.

  • Lost or destroyed token: If a station holding the token fails, the token may disappear. The network must detect and recover from this situation.

  • Priority management: Priorities may be assigned to stations and types of data.

  • Priority-based token release: A low-priority station may need to release the token to allow a high-priority station to transmit.

 Logical Ring and Physical Topologies

A token-passing network uses a logical ring, but the physical connections between stations do not necessarily have to form a ring. There are  four physical topologies that can implement token passing.

1. Physical Ring

Stations are physically connected in a ring. The token passes directly to the next station. If one link fails, the entire system may fail.

2. Dual Ring

A second ring operates in the opposite direction and serves as a backup. If a link in the main ring fails, the rings can be combined temporarily to maintain communication. Note that for this topology to work, each station needs to have two transmitter ports and two receiver ports. The high-speed Token Ring networks called FDDI (Fiber Distributed Data Interface) and CDDI (Copper Distributed Data Interface) use this topology.

3. Bus Ring (Token Bus)

Stations are physically connected to a single bus cable but form a logical ring. Each station knows the address of its successor, and the token is passed according to that logical order.

4. Star Ring

Stations are physically connected in a star through a central hub, but the wiring inside the hub forms a ring. A failed link can be bypassed by the hub, and adding or removing stations is easier. This topology is still used in the Token Ring LAN designed by IBM.



Summary

  • Token passing is a controlled-access method.

  • The token grants a station permission to transmit.

  • After transmission, the station passes the token to its successor.

  • Token management handles token loss, holding time and priorities.

  • A logical ring can be implemented using physical ring, dual-ring, bus-ring or star-ring topology.

Advantages: Collisions are avoided, and each station gets an opportunity to access the channel.

Disadvantages: Token management introduces overhead. If the token is lost or duplicated, special procedures are needed to recover.

Key point: A station can transmit only when it holds the token.



Comments

Popular posts from this blog

Computer Networks PCCST501 Semester 5 KTU CS 2024 Scheme - Dr Binu V P

Model Question Paper Computer Networks PCCST501 KTU 2024 Scheme and Answer Key

Introduction to Computer Networks