1v)
by Robert Wu ()
AGENDA
I. II. Virtual LAN Concept Ethernet Frame Format
2. 3.
IEEE Standards for Local & Metropolitan Area Networks : Virtual Bridged Local Area Networks July, 1998 IEEE Standard Frame Extensions for Virtual Bridged Local Area Network (VLAN) Tagging on 802.3 Networks IEEE std 802.3ac-1998 A Standard for the Transmission of IP Datagrams over IEEE 802 Networks RFC 1042, Feb. 1988 Recommended Practice for MAC Bridging of Ethernet V2.0 in IEEE 802 Local Area Networks IEEE802.1H, 1995 Draft Standard for Local & Metropolitan Area Networks: Overview and Architecture IEEE P802/D29, 2001 The Switch Book by Rich Seifert 2000
3
4. 5. 6. 7.
2 9
ES #2
13 10 11 12 14 15 16 17
ES #3
18 19
VLAN Membership Port-based VLAN MAC-based VLAN Protocol-based VLAN Layer-3(Network)-based VLAN Application-based VLAN
Preamble SFD
81-00 TCI
MAC Length/Type
42-1500 octets
4 octets
User_priority
C F I
VLAN Identifier(VID)
12
15
CFI is the Canonical Format Indicator Tag header contains Tag Protocol ID & Tag Control Information(TCI) Tag Header is inserted between last octet of source field and first octet of Type/Length field
Untagged frame
DA
SA
Remainder of frame
6 bytes
6 bytes
DA
SA
Remainder of frame
R
R1 R2
IP.2.0
Could also use .1Q trunk Trunks must be tagged Switch with multiple FDBs
IP.1.0
Sv1
IP.1.A IP.2.B
25
12
13
VLA
ES1 1 ES2
IP.1.0 IP.2.0
VLB
4 5
ES4
ES3
IEEE 802.1v RWU 2002
R
R1 R2
IP.2.0
IP.1.0
Sv1
IP.1.A IP.2.B
25
VLAN A
12
13
VLAN B
ES1 1 ES2
IP.1.0 IP.2.0
ES4 ES3
10
Protocol-based VLAN
EtherSwitch-12 EtherSwitch-13
IP user-5
VLAN-2 IP user-2
VLAN-27
IPX user-4
IPX user-1
VLAN-4
IP & IPX user-9
IP Frame Encapsulation
IP HDR
IP Protocol Data
Destination Address
Source Address
Ethernet Data
CRC
The IP layer is responsible for transferring data across routers between hosts on the Internet.
12
IP Header Format
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
VERS
LEN
Type Of Service
Flags
Identification
Time To live
4
8 C
Protocol
Header Checksum
Source IP Address
Protocol field: 1 - ICMP 2 - IGMP 6 - TCP 8 - EGP 17 - UDP 89 - OSPF
E
10 14
DATA
Total: 20 bytes
13
I. II.
14
Type
IP Datagram
CRC
8 bytes
0-1500
Length
2
DATA
CRC 4
0-1500
DSAP AA
SSAP AA
Control 03
OUI/Protocol ID 00 00 00 08 00
IP
Packet
15
16
DA
SA
Remainder of frame
Constant
Copy
Copy
DSAP 42 DSAP AA
SSAP 42 SSAP AA
Control 03 Control 03
OUI/Protocol ID 00 00 00 00 00 OUI/Protocol ID 00 00 00 08 00
BPDU Data IP
Packet
or
17
Undefined
0600 1536
Preamble 8 bytes
DATA 0-1500
CRC 4
LLC DSAP
1
IEEE 802.1v RWU 2002
LLC SSAP
1
LLC Control
1
OUI/Protocol ID 00 00 00 08 00
5
Packet Data
18
DSAP
SSAP
Control
OUI/Protocol ID
802.3 SNAP
19
Frame Types
Ethernet-2
LLC_other RFC_1042 DA/SA DA/SA DA/SA DA/SA DA/SA DA/SA Type Length
FF-FF
Protocol ID Type
20
I. II.
21
Frame Classification
Tagged Frame?
Yes
No
MAC belongs to MAC VLAN?
Yes
No
IP SA belongs To IP VLAN?
Yes
No
Ether Type belongs to one of Protocol-based VLAN?
Yes
No
Frame associated to matching VLAN corresponding to the port
IEEE 802.1v RWU 2002
Order of precedence in VLAN membership: VLAN ID, MAC-based VLAN, IP subnet-based VLAN, Protocol-based VLAN, then port-based VLAN.
22
Protocol-based VLANs
For Layer 3 module, protocol-based VLANs enable you to use protocol type and switching ports as the distinguishing characteristic for your VLANs.
Important Consideration
When you create this type of VLAN interface, review these guidelines :
. If you plan to use the VLAN for bridging purposes, select one or more protocols per VLAN. Select them one protocol at a time. . If you plan to use the VLAN for routing, you can select one or more protocols per VLAN, one protocol at a time, and subsequently define a routing interface for each routable protocol that is associated with the VLAN. You can perform routing as follows : ~ You can route between VLANs defined on Layer-3 modules ~ You can use a Layer 3 module to route between VLANs that are defined on Layer 3 modules . The Layer 3 modules support routing for two protocol suites : IP & IPX. . To define a protocol-based VLAN interface, specify this information :
23
~ The VID, or accept the next-available VID ~ The switching ports that are part of the VLAN interface. (If you have trunk ports, specify the anchor port for the trunk) ~ The protocol for the specified ports in the VLAN ~ IEEE 802.1Q tagging must be selected for ports that overlap on both port and protocol (for example, if two IPX VLANs overlap on port 3). ~ The name of this VLAN interface. . If you use IP as the protocol and also specify a Layer 3 address, the protocol-based VLAN becomes a network-based VLAN. You should consider removing an network-based VLANs and defining multiple IP interface per VLAN.
The protocol suite describes which protocol entities can comprise a protocolbased VLAN. For example, VLANs on the Layer 3 module support the IP protocol suite, which has three protocol entities (IP, ARP, and RARP).
24
IP, ARP, RARP(Ethernet-2, SNAP PID IPX(supports all of below 4 IPX types) IPX-type II(Ethernet-II) IPX-802.2 LLC(DSAP/SSAP : 0xE0) IPX-802.3 Raw(DSAP/SSAP : 0xF0) AppeTalk DDP, AARP(Ethernet-II, SNAP PID) Xerox XNS IDP, XNS address translation, XNS XNS compatibility(Ethernet-II, SNAP PID) DEXnet DEC MOP, DEC Phase IV, DEC LAT, DEC LAVC(Ethernet-II, SNAP PID) SNA SNA service over Ethernet(Ethernet-II DSAP/SSAP : 0x04 & 0x05) Banyan Banyan(Ethernet-II, DSAP/SSAP : 0xBC , SNAP PID) X.25 X.25 Layer-3(Ethernet-II) NetBIOS NetBIOS(DSAP/SSAP : 0xF0) Default Default (all protocol types) (unspecific)
IEEE 802.1v RWU 2002
25
Your Layer 3 modules impose two important limits regarding the number of VLANs and the number of protocols : . Number of VLANs supported - To determine the minimum number of VLANs that the Layer 3 module can support, use the equation described in Number of VLANs here. A Layer 3 module supports a maximum of 64 VLANs. . Maximum number of protocols - Use the value 15 as the limit of protocols that can be implemented on the Layer 3 module. A protocol suite that is used in more than one VLAN is counted only once towards the maximum number of protocols. Establishing routing between VLANs Your Layer 3 modules support routing IP, IPX VLANs. If VLANs are configured for other routable network layer protocols, they can communicate between them only via an external router or a Layer 3 module configured for routing. The Layer 3 modules routing over bridging model lets you configure routing protocol interfaces based on a static VLAN defined for one or more protocols.
IEEE 802.1v RWU 2002
26
You must first define a VLAN to support one or more protocols and then assign A routing interface for each protocol associated with the VLAN. Important Considerations To create an IP interface that can route through a static VLAN, you must : 1. Create a protocol-based IP VLAN for a group of switching ports. (If the VLAN overlaps with another VLAN on any ports, be sure that you define in in accordance with the requirements of your VLAN mode).
(This IP VLAN does not need to contain Layer 3 information unless you want a network-based IP VLAN).
2. Configure an IP routing interface with a network address and subnet mask and specify the interface type vlan.
3. Select the IP VLAN interface index that you want to bind to that IP interface. If Layer 3 information is provided in the IP VLAN interface for which you are configuring an IP routing interface, the subnet portion of both addresses must be compatible.
IEEE 802.1v RWU 2002
27
For example : . IP VLAN subnet 157.103.54.0 with subnet mask of 255.255.255.0 . IP host interface address 157.103.54.254 with subnet mask of 255.255.255.0 Layer 2 (bridging) communication is still possible within an IP VLAN (or router interface) for the group of ports within that IP VLAN. For IVL, IP data destined for a different IP subnetwork uses the IP routing interface to reach that different subnetwork even if the destination subnetwork is on a shared port. For SVL, using the destination MAC address in the frame causes the frame to be bridged; otherwise, it is routed in the same manner as for IVL. 4. Enable IP routing. You perform similar steps to create IPX routing interfaces.
28
D A T A
FCS
29
802.2
DSAP SSAP Cntl 03 E0 E0 IP protocol 8137 IPX header
DATA
FCS
30
Dst
Src
Length
802.2 SNAP
DATA
FCS
Prot ID
Type
000000 8137
IPX Header
31
SNA
IP
04
06
AA
BC
E0
F0
F4
FF
For example : IP can be encapsulated in an Ethernet frame 3 ways : Ethernet-II frame Type = x0800 802.3 with 802.2 frame SAP code = x06 802.3 with SNAP frame SAP code = xAA (indicates SNAP header) Control = x03 SNAP OUI = x000000 (indicates SNAP Ether type same as Ethernet-II type) SNAP Ether type = x0800
32
IPX-II IPX 802.2 LLC IPX Raw IPX 802.3 SNAP XNS
AppleTalk DECnet
SNA
0805 0BAD
33
34
To perform the calculation, determine the total number of protocol suites on your system. Remember to include the unspecified type for the default VLAN, even if you have removed the default VLAN and do not have other VLAN defined with the unspecified protocol type. Use the following guideline to count the protocol suites that are used on the Layer-3 module : . IP counts as one protocol suite for IP VLANs . AppleTalk counts as one protocol suite for AppleTalk VLANs . Generic IPX, which uses all four IPX types, counts as four protocol suites. (Each IPX type alone counts as one). To conserve VLAN resources, it is better to specify a specific IPX frame type than to use generic IPX. . DECnet counts as one protocol suite for DECnet VLANs. . The unspecified type of protocol suite counts as one, whether or not the default VLAN or port-based VLANs are defined. Even if you have only the unspecified protocol suite on the system, the limits is still 64 VLANs. . X.25, SNA, Banyan VINES, and NetBIOS each count as one protocol suite for their respective VLANs.
35
VLAN No 1 567
36
37
=0xAAAA03 Examine SNAP OUI =0x080007 N =0x000000 for RFC1042 =0x0000F8 for IEEE802.1H =others for unknown protocol
Invalid protocol 38