L1_switching (4)
L1_switching (4)
1
8.2
8.3
8.4
Switching
8.5 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 8.1 Switched network
8.6
Figure 8.1 Switched network
8.7
Figure 8.2 Taxonomy of switched networks
8.8
8-1 CIRCUIT-SWITCHED NETWORKS
Establish
Transfer
Disconnect
8.9
Figure 8.3 A trivial circuit-switched network
8.10
Note
Not efficient
8.11
Figure 8.6 Delay in a circuit-switched network
8.12
8.13
Note
8.14
8-2 Packet Switching
8.15
Two Basic Forms of Packet
Switching
8.16
Datagram
8.17
Figure 8.7 A datagram network with four switches (routers)
8.18
Figure 8.8 Routing table in a datagram network
8.19
Note
8.20
Dealy
8.21
Figure 8.9 Delay in a datagram network (for 1 packet)
8.22
Total Delay
Transmission Delay,T
Propagation Delay,P
Waiting Time ,wi
8.23
Virtual Circuit(cross between a circuit-switched
network and a datagram nw)
8.24
Virtual Circuit(cross between a circuit-switched
network and a datagram nw)
8.25
Virtual Circuit(cross between a circuit-switched
network and a datagram nw)
8.26
Virtual Circuit
8.27
Internal
Virtual
Circuit and
Datagram
Operation
8.28
Figure 8.10 Virtual-circuit network
8.31
Addressing
8.32
Addressing-VCI
8.34
3 PHASES
8.36
Figure 8.13 Source-to-destination data transfer in a virtual-circuit network
8.37
Figure 8.14 Setup request in a virtual-circuit network
8.38
8.39
8.40
Figure 8.15 Setup acknowledgment in a virtual-circuit network
8.41
8.42
8.43
Note
8.44
Figure 8.16 Delay in a virtual-circuit network
8.45
In a virtual-circuit network, there is a one-time
delay for setup and a one-time delay for
teardown.
8.46
Total Delay
Transmission Delay,T
Propagation Delay,P
8.47
Different Types of Network
Delay
Network delay refers to the amount of
time it takes for a packet to go from
point A to point B.
Propagation delay
Queuing delay
Queuing delay refers to the time that a packet waits to be
processed in the buffer of a switch. The delay is dependent
on the arrival rate of the incoming packets, the
transmission capacity of the outgoing link, and the nature
of the network’s traffic.
Processing delay
Processing delay is the time taken by a switch to process
the packet header. The delay depends on the processing
speed of the switch.
Solved examples
8.52
8.53
2) Sender and Receiver separated by
1Gbps link. Packet size is 5000 bits. Each
link introduces a delay of 10µs. Assume
switch immediately forwards the data after
it receives the last bit of the packet.
Ignore queuing delay. Compute the total
delay
8.54
30µs
8.55
2B) What is the delay if the sender and
receiver is separated by three switches in
between?
8.56
5)
Solution
8.57
6) Figure below shows a switch in a virtual-
circuit network.
Find the output port and the output VCI for packets with the
following input port and input VCI addresses:
a. Packet 1: 3, 78 b. Packet 2: 2, 92
c. Packet 3: 4, 56 d. Packet 4: 2, 71
Solutions:
a. 2,70 b. 1,45
c. 3,11 d. 4,41
8.58
8-4 STRUCTURE OF A SWITCH
8.59
Structure of Circuit Switches
8.60
Space-Division Switch
8.61
Figure 8.17 Crossbar switch with three inputs and four outputs
8.62
Crossbar - example
1
2
3
1 2 3 4
Advantages:
simple to implement
simple control
strict sense non-blocking
Drawbacks
number of crosspoints, N2
large VLSI space
vulnerable to single faults
8.67
8.68
Three Stage Switch
8.69
Problems
8.70
Problems
8.72
Drawback
8.73
Non Blocking Condition
8.74
Clos Criteria
Activity:
Redesign the previous three-stage, 200 ×
200 switch, using the Clos criteria with a
minimum number of crosspoints. Calculate
the number of crosspoints.
8.75
We let n = (200/2)1/2, or n = 10. We calculate k = 2n
– 1 = 19. In the first stage, we have 200/10, or 20,
crossbars, each with 10 × 19 crosspoints.
In the second stage, we have 19 crossbars, each with
10 × 10 crosspoints.
In the third stage, we have 20 crossbars each with 19
× 10 crosspoints.
The total number of crosspoints is 20(10 × 19) +
19(10 × 10) + 20(19 × 10) = 9500.
The number of crosspoints in this three-stage switch is 24
percent that of a single-stage switch.
8.76
Figure 8.21 Packet switch components
4 components
8.77
Figure 8.22 Schematic diagram of an Input port
Error detection
8.78
Figure 8.23 Output port
8.79
Figure 8.24 A banyan switch
The first stage routes the packet based on the high-order bit of the
binary string. The second stage routes the packet based on the
second high-order bit, and so on
8.80
Figure 8.25 Examples of routing in a banyan switch
8.81
Figure 8.25 Examples of routing in a banyan switch
8.82
Performance Measures for a
Switch
- Connectivity (e.g., blocking probability): Set
of pairs of input and output links that can be simultaneously connected through
the switch
- Delay (Queuing)
- Setup time (used mostly in circuit
switching)
- Throughput (number of ports, and speed of
every port)
- Complexity, in terms of:
- Number of cross points
- Size of buffers
- Speed of the switch bus (internal speed)
Additional information:
https://www.javatpoint.com/computer-
network-switching-techniques
8.85
Packetizing
Routing and Forwarding
8.86
8.87
Packetizing
Routing and Forwarding
Other Services
Error Control
Flow Control
Congestion Control
Quality of Service.
Security
8.88
3) Consider the network topology shown below.
Assume that the processing delay at all the
nodes is negligible.
8.90
4)
8.91
8.92
We need a three-stage space-division switch with N =
100. We use 10 crossbars at the first and third stages
and 6 crossbars at the middle stage.
a. Draw the configuration diagram.
b. Calculate the total number of crosspoints.
c. Find the possible number of simultaneous
connections.
d. Find the possible number of simultaneous
connections if we use a single- crossbar (100 100).
e. Find the blocking factor, the ratio of the number of
connections in part c and in part d.
We need a three-stage space-division switch with N =
15 . We use 3 crossbars at the first and third stages
and 2 crossbars at the middle stage.
a. Draw the configuration diagram.
b. Calculate the total number of crosspoints.
c. Find the possible number of simultaneous
connections.
d. Find the possible number of simultaneous
connections if we use a single- crossbar (15 15).
e. Find the blocking factor, the ratio of the number of
connections in part c and in part d.
We need a three-stage space-division switch with N =
15 . We use 3 crossbars at the first and third stages
and 2 crossbars at the middle stage.
a. Draw the configuration diagram.
b. Calculate the total number of crosspoints= 78
c. Find the possible number of simultaneous
connections= 6
d. Find the possible number of simultaneous
connections if we use a single- crossbar (15 15).= 15
e. Find the blocking factor, the ratio of the number of
connections in part c and in part d.= 40%
Question
We need to have a space-division switch with 200 inputs and outputs. What is
the total number of crosspoints and number of simultaneous connections in
each of the following cases?
a. Using one single crossbar.
b. Using a multi-stage switch.
c. Using a multi-stage switch based on the Clos criteria
8.97
Question
A path in a digital circuit-switched network has a data rate of I Mbps. The
exchange of 1000 bits is required for the setup and teardown phases. The
distance between two parties is 5000 km. Answer the following questions if
the propagation speed is 2 X 108 m:
a. What is the total delay if 1000 bits of data are exchanged during the data
transfer phase?
b. What is the total delay if 100,000 bits of data are exchanged during the data
transfer phase?
8.98