You are on page 1of 60

by MkS

LAN Switching

Contenido
Introduccin / Servicios Segmentacin de LANs
Porque segmentar ..? Segmentacin con Repeaters, Bridges, Routers y Switches

Spannig Tree Protocol


Qu es y porqu usarlo Conceptos claves. Convergencia inicial. Estados de STP

VLANs
Qu es una VLAN ..? Justificacin de su necesidad
by MkS LAN Switching 2

Introduccin / Servicios
Ethernet 10Mbps, una tecnologa con + de 25 aos ..!
CPU Perfomance (MIPS) Eth wirespeed (Mbps)

Gb Ethe provide headroom for the next decade Fast Eth catches up briefly ...

1000

100

Eth has more than enough bandwidth for early PCs...


Pentium 486 386 286 8086

Pentium II

Pentium III

Pentium Pro

10

Year 1975 '80 '85 '90 '95 '00

by MkS

LAN Switching

Introduccin / Servicios
Enmarcacin (Framing) Acceso de enlace Entrega fiable Control de flujo Deteccin de errores Correcin de errores Half-duplex y full duplex
Para un enlace de comunicacin dado, el protocolo de la capa de enlace est, en su mayor parte, implementado en un adaptador.

by MkS

LAN Switching

Introduccin / Servicios
Escenario de deteccin y correccin de errores

Datagrama

Datagrama Si
Todos los Bits en D Ok..?

No

Err detectado

EDC
Enlace propenso a err

EDC

Comprobacin de paridad Mtodos de comprobacin de sumas Comprobacin de redundancia cclica


LAN Switching 5

by MkS

Introduccin / Servicios
Protocolos de acceso mltiple Un enlace punto a punto consta de un nico emisor en un extremo del enlace y un nico receptor en el otro extremo. Un enlace de difusin puede tener mltiples nodos de emisin y de recepcin conectados todos al mismo canal nico, compartido. Problema de acceso mltiple: cmo coordinar el acceso de mltiples nodos que envan y reciben a un canal de difusin compartido. Posibles soluciones: Protocolos de particionamiento del canal (TDM, FDM) Protocolos de acceso aleatorio (ALOHA, CSMA/CD) Protocolos de toma de turnos (TOKEN)

by MkS

LAN Switching

Introduccin / Servicios
Ethernet

Estructura del frame Ethernet


Prembulo Direcc Destino Direcc Origen Datos CRC

Transmisin en banda base y codificacin manchester Protocolo de acceso mltiple : CSMA/CD Eficiencia de Ethernet : una funcin de los ttrans y tprop Tecnologas Ethernet 10Base2 10BaseT, 100BaseT Ethernet Gigabit Ethernet 10 Gigabit
by MkS LAN Switching 7

Segmentacin de LAN
Estamos trabajando fuera de BW ..?

Mas de lo mismo Mas usuarios Mas servidores de archivos, impresin y aplicaciones Mas sucursales en linea Mas demanda de aplicaciones Client/Server Mas eMail Mas bases de datos en lnea Nichos de aplicaciones por todos lados Mas groupware Mas necesidad de backup de datos

by MkS

LAN Switching

Segmentacin de LAN
Estamos trabajando fuera de BW ..?

Internet Mas trfico Una distribucin de trfico muy distinta

Multimedia
by MkS LAN Switching 9

Segmentacin de LAN
Estamos trabajando fuera de BW ..?

Nuevas aplicaciones Videoconferencia Un modelo de computadora en red La convergencia de voz y datos

by MkS

LAN Switching

10

Segmentacin de LAN
Porqu segmentar ..?
Aumentar el nmero de usuarios ..! Disponer de mayor ancho de banda ..! OJO, presupuesto siempre limitado ..! Para ayer ..!

by MkS

LAN Switching

11

Segmentacin de LAN: Repeaters

Cableado A

Cableado B

Receive data stream on port X


REPEATER COR LOGIC

PORT 1 PHY

2 PHY

3 PHY

4 PHY

Retransmite data Stream on all ports Except X

by MkS

LAN Switching

12

Segmentacin de LAN: Repeaters

Regeneran la seal Crean nuevos prembulos Aseguran la difucin de colisiones

PWR

10M100M ACT ACT

1 2 3 4 5 6 7 8 9 101112

10

11

12 UPLINK

COL COL SWITCH 131415161718192021222324

13

14

15

16

17

18

19

20

21

22

23

24

by MkS

LAN Switching

13

Segmentacin de LAN: Repeaters


Limitaciones en el uso:

Ancho de banda compartido Nmero de host por segmento Distancia extremo a extremo de la red
2 Ext.Seg 3 Wkst.Seg 4 Repeaters 1 1 2 1 2 3 4 2 3

5 Segmentos

by MkS

LAN Switching

14

Segmentacin de LAN: Repeaters

Collision Domain Broadcast Domain

by MkS

LAN Switching

15

Segmentacin de LAN: Bridges

Cableado A

Cableado B

Mayor disponibilidad de BW Nmero de host por segmento

Distancia extremo a extremo de la red

by MkS

LAN Switching

16

Segmentacin de LAN: Bridges


Device Parameter
OSI Layer Number of hops Looks at frames

Repeater
Layer 1/PHY Five No, only regenerates entery frame

Bridge
Layer 2/MAC Unlimited Yes, look at individual address of every frame

Invisible device
Port-port latency Propagate errors Network design implementatios ..? Principal use

Yes
< 1mS Yes Extends collision domain Enlarges an existing Net

No
50-1500 bit times No Extends broadcast domain and divides coll.domain. Connect different Net

by MkS

LAN Switching

17

Segmentacin de LAN: Bridges


Diagrama en bloques:
Transparent Bridging Learnig Flooding Filtering Forwarding Aging
Age Frame Buffer Memory

Learnig Logic

Source Address Table Memory Frame Buffer Memory MAC Address MAC Address Port

MAC

MAC

Forwarding Logic
PHY PHY

DATA

DATA

by MkS

LAN Switching

18

Segmentacin de LAN: Bridges


Diagrama de Flujo:
Receive/store Frame on Port X Read SA SAT MAC Port Age SA present in SAT .?
Yes No

DA in SAT Enter new SA, Age and Port X in SAT


Yes

No

Flood Frame

DA P# = PX
Yes

No

Read DA
No

Filter, i.e., Discard Frame DA=FFFF


Yes

1 Forward Frame to Looked-Up Port #

Forward Frame to all Port. No X.

by MkS

LAN Switching

19

Segmentacin de LAN: Bridges


Collision Domain Broadcast Domain

by MkS

LAN Switching

20

Segmentacin de LAN: Bridges


Criterio de diseo:

20% 80% Cableado A

20%

80% Cableado B

Server

Server

by MkS

LAN Switching

21

Segmentacin de LAN: Switches

by MkS

LAN Switching

22

Segmentacin de LAN: Switches


Bridge vs Switch Un switch conecta emisor y receptor en tiempo real. El corazn de un bridge es un microprocesador. Un switch es mas barato que un bridge.

Un bridge analiza y forward slo un frame por vez. Un switch tiene diferentes mecanismos de forwarding. Son basicamente para usos diferentes.

by MkS

LAN Switching

23

Segmentacin de LAN: Switches


Arquitectura y perfomance Port speed

REPEATER COR LOGIC

PORT 1 PHY

2 PHY

3 PHY

4 PHY

by MkS

LAN Switching

24

Segmentacin de LAN: Switches


Arquitectura y perfomance Backplane capacity

Forwarding rate = # of Port x Wire speed 2

by MkS

LAN Switching

25

Segmentacin de LAN: Switches


Arquitectura y perfomance Switch Forwarding Mechanisms
8 bytes 6 bytes 6 bytes 2 bytes 0-1500 bytes 4 bytes

Preamble

DA

SA

Type/Length Field

Data and Pad

FCS

Cut-through forwards after destination address

Store-and-forward Forwards after FCS Modified cut-through Forwards after 64 bytes of data

by MkS

LAN Switching

26

Segmentacin de LAN: Switches

Session 1

Session 2

by MkS

LAN Switching

27

Segmentacin de LAN: Switches

BD3

BD1
BD2

BD2

BD1 BD2 BD1 BD3

BD3

by MkS

LAN Switching

28

Segmentacin de LAN
Ej.:
1

2
1. 2. Cuntos dominios de colisin y de broadcast se observan ..? Cuntos pares de direcciones de nivel 2 y 3 se usan para transmitir de 1 a 2..?

by MkS

LAN Switching

29

Spanning Tree Protocol

by MkS

LAN Switching

30

Spanning Tree Protocol


Loops y Broadcast, una mezcla peligrosa ..!

Loops de switching y loops de routing ..!


by MkS LAN Switching 31

Spanning Tree Protocol


Degradacin de Bridge Table

by MkS

LAN Switching

32

Spanning Tree Protocol


Dos conceptos claves: Bridge ID (BID)
BID = 8 bytes Bridge Priority 2 Bytes Range 0-65.535 Default = 32.768

MAC
6 Bytes From Backplane/Supervisor

by MkS

LAN Switching

33

Spanning Tree Protocol


Dos conceptos claves: Path cost (IEEE 802.1d)
Bandwith 4 Mbps 10 Mbps 16 Mbps 45 Mbps 100 Mbps 155 Mbps 622 Mbps 1 Gbps 10 Gbps STP Cost 250 100 62 39 19 14 6 4 2

by MkS

LAN Switching

34

Spanning Tree Protocol


Secuencia para la toma de decisiones Menor Root BID Menor Path Cost al Root Bridge Menor BID del emisor Menor port ID Los switches envan BPDU de configuracin hasta que se recibe uno mas atractivo Existen dos tipos de BPDU: de configuracin y de Notificacin de cambio de Topologa

by MkS

LAN Switching

35

Spanning Tree Protocol


Los tres pasos de la convergencia inicial 1. Elegir un root bridge 2. Elegir un root port 3. Elegir un designated port
MAC = AA-AA-AA-AA-AA-AA 1/1 1/2

Cat-A
1/1 MAC = BB-BB-BB-BB-BB-BB 1/1 MAC = CC-CC-CC-CC-CC-CC

Cat-B

1/2

Cat-C

1/2

by MkS

LAN Switching

36

Spanning Tree Protocol


1.
Elegir un Root Bridge

Yo soy el ROOT ..!


BID = 32.768.AA-AA-AA-AA-AA-AA

1/1

1/2

Cat-A
BID = 1/1 32.768.BB-BB-BB-BB-BB-BB BID = 1/1 32.768.CC-CC-CC-CC-CC-CC

Cat-B

1/2

Cat-C

1/2

by MkS

LAN Switching

37

Spanning Tree Protocol


Diseo elemental de un BPDU

Root BID Root Path Cost

Quin es el Root Bridge ..? Que tan lejos est el Root Bridge ..?

Sender BID
Port ID

Cul es el BID de switch que enva esta BPDU ..?


Cul es el Port del switch que enva esta BPDU ..?

by MkS

LAN Switching

38

Spanning Tree Protocol


2.
Elegir un Root Port
Cost = 19

Root Bridge 1/2


Cat - A
BPDU Cost=0

1/1
BPDU Cost=0

Cost = 19

1
Root Port

2
BPDU Cost=0+19

1 5
BPDU Cost=0+19

6 1/1
Cat - C Root Port

1/1
Cat - B

3
BPDU Cost=19

BPDU

1/2

4
Cost = 19
BPDU Cost = 19

1/2

Cost = 19+19 = 38

by MkS

LAN Switching

39

Spanning Tree Protocol


3.
Elegir un Designated Port
Mi Root Path Cost = 0 Root Bridge Mi Root Path Cost = 0

Segmento 1
Designated Port

Segmento 2

1/1

Cat - A

1/2 Designated
Port

Mi Root Path Cost = 19 1/1


Cat - B

Mi Root Path Cost = 19 1/1


Cat - C

1/2 Mi Root Path Cost = 19

Designated Port

1/2 Mi Root Path Cost = 19

Segmento 3

by MkS

LAN Switching

40

Spanning Tree Protocol


Resumen 1. Elegir un root bridge 2. Elegir un root port 3. Elegir un designated port Un ejemplo real para 15 Switches y 146 segmentos
STP Component
Root Bridge Root Port Designated Ports

Number
1 14 146

No olvidar la secuencia para la toma de decisiones Menor Root BID Menor Path Cost al Root Bridge Menor BID del emisor Menor port ID
by MkS LAN Switching 41

Spanning Tree Protocol


Los 5 estados de STP

Estado Forwarding

Propsito Enviar/Recibir datos del usuario

Learning
Listening Blocking Disabled

Construir la tabla de bridging


Construir una topologa activa Recibir slo BPDU Administrativamente down

by MkS

LAN Switching

42

Spanning Tree Protocol


Los 5 estados de STP

Listening
2 1 3 5 4 4

Disable or Down

Blocking
2 7 6 2 4

Learning

Standard States (1) Por enabled or initialized (2) Port disabled or fails (3) Port selected as a Root or DP (4) Por ceases to be a Root or DP (5) Forwarding timer expires Cisco-specific states (6) Port Fast (7) Uplink Fast

Forwarding

by MkS

LAN Switching

43

Spanning Tree Protocol


Estado final de la convergencia inicial
Root Bridge
Segmento 1 F F Cat - A Segmento 2

1/1
DP

1/2
DP

RP F

State/Port
RP F

Symbol B F DP

1/1

Blocking Forwarding Designated Port

1/1
Cat - C

Cat - B F

1/2
DP Segmento 3

1/2
NDP

Root Port Non DP

RP
NDP

by MkS

LAN Switching

44

Segmentacin de LAN
Usando Routers

Collision Domain Broadcast Domain

by MkS

LAN Switching

45

Segmentacin de LAN
Usando Routers
MAC: 00-E0-1E-68-2B-12 IP: 172.16.1.2 MAC: 00-E0-1E-68-2B-11 IP: 10.0.0.2

Cableado A

1 2 3 6

Cableado B

MAC: 00-60-97-8F-4F-86 IP: 172.16.1.1

MAC: 00-60-97-8F-5B-12 IP: 10.0.0.1

by MkS

LAN Switching

46

VLAN
Qu es una VLAN ..?
Un agrupamiento logico de nodos compuesto por clientes y servidores que residen en un dominio comn de broadcast, sin ningn salto de router Si bien es un nico dominio de broadcast, los diferentes nodos no necesitan estar conectados al mismo switch ni estar en el mismo lugar fsico. Los nodos miembros de una VLAN aparecen como conectados a un nico bridge o switch de nivel 2. Los miembros de una VLAN pueden estar conectados al mismo switch pero no estn habilitados para ver todo el trfico de broadcast.

by MkS

LAN Switching

47

VLAN
Qu es una VLAN ..?

by MkS

LAN Switching

48

VLAN: Beneficios
Mas disponibilidad de BW Liberar la red de los lmites fsicos: los recursos comunes no necesitan estar en el mismo espacio fsico Son barreras de contencin de Broadcast: se puede reemplazar Router por switch, con el beneficio en costos en tiempo de configuracin y dinero. Facilidad para cambio de ubicacin: Una VLAN nos posibilita una asignacin dinmica de recursos. Mayor facilidad para compartir recursos: Un servidor puede ser parte de multiples VLAN. Mejoras en la perfomance de la red: Las VLAN permiten asignar BW de acuerdo a la demanda. Seguridad

by MkS

LAN Switching

49

VLAN: Criterios de pertenencia


Las VLAN son dominios de broadcast creados para compartir recursos. VLAN basadas en puertos

by MkS

LAN Switching

50

VLAN: Criterios de pertenencia


Las VLAN son dominios de broadcast creados para compartir recursos. VLAN basadas en MAC

by MkS

LAN Switching

51

VLAN: Criterios de pertenencia


Las VLAN son dominios de broadcast creados para compartir recursos. VLAN basadas en protocolos de nivel 3

by MkS

LAN Switching

52

VLAN: Criterios de pertenencia


VLAN basadas en protocolos de nivel 3 Basadas en direcciones IP completas Basadas en direcciones IP de red

by MkS

LAN Switching

53

VLAN: Criterios de pertenencia


Type
Port-based MAC-based Layer 3 protocol Layer 3/IP Subnet

Info Required
Switch Port # Client and server MAC Protocol Type IP subnet and mask

Ejemplo
Port8 > Finance VLAN Ports1, 2, 5 > Marketing VLAN MAC 00-A0-C9-12-3A-F3 and 00-60-06-44-35-D2 > HQ VLAN NetBIOS packet > Notes VLAN IPX packets > Novell VLAN IP nodes with add 172.16.2.0/24 are on VLAN SUBNET 2; IP nodes with add 172.16.4.0/24 are on VLAN SUBNET 4.

by MkS

LAN Switching

54

VLAN: Evolucin y generaciones


Primera generacin: un nico switch formaba parte de una VLAN..!

Segunda generacin: VLAN distribuidas, pueden abarcar mas de un switch. Cisco implementa ISL.

by MkS

LAN Switching

55

VLAN: Evolucin y generaciones


Tercera generacin: VLAN distribuidas basadas en estndares..!

8 bytes

6 bytes 6 bytes

4 bytes

2 bytes

0-1500 bytes

4 bytes

Preamble

DA

SA

802.1Q Type/Length VLAN Tag Field

Data and Pad

FCS

TAG PROTOCOL IDENTIFIER

USER CFI VLAN ID PRIORITY TAG CTRL INFORMATION

by MkS

LAN Switching

56

VLAN: Inter comunicacin


Ruteo centralizado

by MkS

LAN Switching

57

VLAN: Inter comunicacin


Ruteo distribuido

by MkS

LAN Switching

58

VLAN: Switch L3 vs Router


Feature
OSI layer function performed Routing performed Layer 2 MAC supported Perfomance Price/port Latency Latency Programmability And manageability Protocol supported Routing protocol Propietary

LAN Router
Layer 3 Software (CPU + software) Ethernet, Token Ring FDDI, ATM, WAN Slow to medium, depending on CPU perfomance and cost High Aproximately 200mS Estremely high All All

Layer 3 SW
Layer 3 Hardware (ASIC chips) Fast and Gigabit Ethernet only Fast, near wire speed Low <10mS (100Mbps) Little to none IP, sometimes IPX RIP1, RIP2, sometimes OSPF

by MkS

LAN Switching

59

VLAN: Switch L3 vs Router


Feature
Application

LAN Router
Creating Broadcast domain via a collapsed or distribuited backbone WAN connection

Layer 3 SW
Most places where a Layer 2 switch is used today

Collapsed backbone

Multiprotocol routing

Inter-VLAN Routing

by MkS

LAN Switching

60

You might also like