Switches
- An
switch consists of input ports, output ports,
- links connecting each input to every output, control logic to select a specific connection, and internal buffers.
- Although and do not have to be equal, in practice and in most cases they have the same value, which is usually power of two.
- A switch is used to establish connections from the input ports to the output ports.
- These connections may be
- one-to-one, which represent point-to-point connections, or
- one-to-many, which represent multicast or broadcast.
- The case of many-to-one should cause conflicts at the output ports and therefore needs arbitration to resolve conflicts if allowed.
- When only one-to-one connections are allowed, the switch is called crossbar.
- An crossbar switch can establish connections (to allow only one-to-one connections,
- the first input port should have choices of output ports,
- the second input port will have () choices,
- the third input port will have () choices, and so on.
- Thus, the number of one-to-one connections is
- For example, a binary switch has two input(output) ports.
- The number of one-to-one connections in a binary switch is two (straight and crossed),
- while the number of all allowed connections is four (straight, crosses, lower broadcast, and upper broadcast).
- $$
- Routing can be achieved using two mechanisms:
- 1
- Source-path, the entire path to the destination is stored in the packet header at the source location.
- $$
- When a packet enters the switch, the outgoing port is determined from the header.
- $$
- Used routing data is stripped from the header and routing information for the next switch is now in the front.
- 2
- Table-based routing, the switch must have a complete routing table that determines the corresponding port for each destination.
- $$
- When a packet enters the switch, a table lookup will determine the outgoing port.
Figure 1:
Source-path routing vs. table-based routing.
|
- Figure 1 illustrates the difference between source-path routing and table-based routing in the case when a packet enters an 8-port switch at port 0.
- In the source-path case, the header contains the entire path and the next port is port 6.
- In the table-based case, the destination address dest-id is looked up in the routing table and port 6 is followed.
Cem Ozdogan
2010-12-20