STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of...

20
STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques—two of these are store-and-forward switching and cut-through switching. A switch performing store-and-forward will wait to forward a frame until it has received the entire frame. It is most often used in environments supporting reliable physical or data link protocols. A cut through switch will forward the data before it has completed receiving the frame.

Transcript of STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of...

Page 1: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

STORE AND FORWARD &CUT THROUGH FORWARD

• Switches can use different forwarding techniques—two of these are store-and-forward switching and cut-through switching.

• A switch performing store-and-forward will wait to forward a frame until it has received the entire frame.

• It is most often used in environments supporting reliable physical or data link protocols.

• A cut through switch will forward the data before it has completed receiving the frame.

Page 2: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

• A received frame is often checked for errors before being forwarded

• Cut-through switching does not offer this advantage, so the switch might forward frames containing errors.

• All cut-through switches have no RAM buffers for storing frames.

Page 3: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

3

Cut-Through Switching• Buffering a frame takes time

– Suppose L is the length of the frame– And R is the transmission rate of the links– Then, receiving the frame takes L/R time units

• Buffering delay can be a high fraction of total delay– Propagation delay is small over short distances– Making buffering delay a large fraction of total– Analogy: large group walking through NYC

A B

switches

Page 4: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

4

Cut-Through Switching• Start transmitting as soon as possible

– Inspect the frame header and do the look-up– If outgoing link is idle, start forwarding the frame

• Overlapping transmissions– Transmit the head of the packet via the outgoing link– … while still receiving the tail via the incoming link– Analogy: different folks crossing different intersections

A B

switches

Page 5: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

Switching Methods (continued)

Page 6: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.
Page 7: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

LAN Switching

• Segmentation with switches– Switches are hardware controlled– Bridges are software controlled

• Microsegmentation– Switched bandwidth– Shared bandwidth

• Efficient use of bandwidth• Able to connect segments of different speeds

– 10 Mbps to 100 Mbps– 100 Mbps to 1Gbps

Page 8: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

Virtual LANs

• VLANs function by logically segmenting the network into different

broadcast domains so that packets are only switched between ports that

are designated for the same VLAN.

• Logical grouping of network devices and nodes

• Broadcast domain

• Management VLAN

– Also known as default VLAN

– Cannot be deleted

– Every port is on VLAN 1 by default

• Router are required to move traffic between VLANs

Page 9: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

VLAN introduction

• VLANs address scalability, security, and network management.

• Switches may not bridge any traffic between VLANs, as this would violate the integrity of the VLAN broadcast domain.

• Traffic should only be routed between VLANs.

Page 10: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

Broadcast domains with VLANs and routers

• A VLAN is a broadcast domain created by one or more switches.

Page 11: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

Broadcast domains with VLANs and routers

• Layer 3 routing allows the router to send packets to the three different broadcast domains.

Page 12: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

Broadcast domains with VLANs and routers

• Implementing VLANs on a switch causes the following to occur:– The switch maintains a separate bridging table for each

VLAN. – If the frame comes in on a port in VLAN 1, the switch

searches the bridging table for VLAN 1. – When the frame is received, the switch adds the source

address to the bridging table if it is currently unknown. – The destination is checked so a forwarding decision can

be made. – For learning and forwarding the search is made against

the address table for that VLAN only.

Page 13: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

VLAN types

• There are three basic VLAN memberships for determining and controlling how a packet gets assigned: - – Port-based VLANs – MAC address based – VLANs Protocol based VLANs

• The frame headers are encapsulated or modified to reflect a VLAN ID before the frame is sent over the link between switches.

• Before forwarding to the destination device, the frame header is changed back to the original format.

Page 14: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

VLAN types

• Port-based VLANs • MAC address based VLANs • Protocol based VLANs

Page 15: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

VLAN operation• Each switch port could be assigned to a different

VLAN. • Ports assigned to the same VLAN share broadcasts. • Ports that do not belong to that VLAN do not share

these broadcasts.

Page 16: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

VLAN operation• In port-based or port-centric VLAN membership, the

port is assigned to a specific VLAN membership independent of the user or system attached to the port.

All users of the same port must be in the same VLAN.

Page 17: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

VLAN operation• Dynamic VLANs allow for membership based on the MAC

address of the device connected to the switch port. • As a device enters the network, it queries a database

within the switch for a VLAN membership.

Page 18: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

Virtual LANs (continued)

Page 19: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

VLAN operation

• Network administrators are responsible for configuring VLANs both manually and statically.

Page 20: STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.

Benefits of VLANs

• VLANS provide the following benefits– It is easier to add and move stations on the LAN– It is easier to reconfigure the LAN– There is better traffic control– There is increased security