Docsity

Understanding Virtual LANs (VLANs) and Their Importance in Networking, Slides of Network security

Partial preview of the text

Download Understanding Virtual LANs (VLANs) and Their Importance in Networking and more Slides Network security in PDF only on Docsity!

Virtual LANs

11-

What Is a VLAN?

  • It is the territory over which a broadcast packet is delivered. (Also known as a broadcast domain)
  • Can be seen as a group of end hosts, perhaps on multiple physical LAN segments, that are not constrained by their physical location and can communicate as if they were on a common LAN.

VLAN related standards: IEEE 802.1Q and IEEE 802.1p 11- 2

VLAN Example

11- 4

Why Using VLAN?

  • Separate broadcast domains: a group of end hosts will not be bothered by the broadcast traffic generated by another group of end hosts.
  • Achieve higher security: now a host cannot snoop on the traffic of another group of hosts.
  • Ease management: do not need to change a host’s IP address when it moves.

Nowadays most high-end switches and routers all use VLAN. (For example, CISOC routers and 3COM switches.) If you do not know VLAN, you do not know how to configure these routers/switches. (^) 11- 5

Packet H -> D does Not need to go through R.

Packet H -> Q needs to be first sent to R.f (gateway) then R forwards the packet to Q.

11- 7

Some Switches Can Also Act as

A Router

  • E.g., After adding a routing module to the 3COM 3300SM switch, the switch can also act as a router.
  • Now we do not need a router to forward packets between different VLANs.
  • Nowadays many high-end layer-3 routers also provide layer-2 switching capability. (E.g., CISCO routers). Sometimes it is difficult to know whether a device is a switch or a router, or both.
  • To switch or to route? Since switching is faster than routing, in a LAN (e.g., a department network), switches are more widely used than routers. 11- 8Docsity.com

VLAN Types

  • VLAN membership can be defined in

several ways:

  • Port-based (e.g., ports 1-8 belong to VLAN A and ports 9-16 belong to VLAN B)
  • Protocol-based (e.g., end hosts (actually, the ports connecting to these hosts) who use IP belong to VLAN A and end hosts who use Appletalk belong to VLAN B)
  • MAC-layer grouping (e.g., 1:1:1:1:1:1 and 2:2:2:2:2:2 belong to VLAN A and 3:3:3:3:3: and 4:4:4:4:4:4 belong to VLAN B). 11- 10

VLAN Types

  • Network-layer grouping: (e.g., 140.113.1.1 and 140.113.1.2 belong to VLAN A and 140.113.2. and 140.113.2.2 belong to VLAN B).
  • Multicast grouping: (e.g., the hosts who have joined in multicast group A belong to VLAN A and the hosts who have join multicast group B belong to VLAN B.)
  • Policy grouping (primarily for network and information security control.) 11- 11

Problems with Dynamic Binding (I)

  • A switch does not know which VLAN a port belongs to until the switch receives a packet from that port.
  • Thus, when the switch receives a packet from any VLAN , to be safe, it needs to send the packet to all ports whose VLAN membership has not been identified yet.
  • This will generate unnecessary traffic and eliminate most of VLAN’s advantage. 11- 13

Problems with Dynamic Binding (II)

  • When hosts move from a port to another port, a port may belong to multiple VLANs at the same time.
  • Thus if many hosts move, a VLAN-capable switch may become a ordinary switch, losing the VLAN advantages. 11- 14

VLAN Tag to Solve the Problem

  • A VLAN Tag is composed of 3-bit priority, 12-bit VLAN ID, and 1-bit address format.
  • It is automatically inserted into a packet by the switch when the packet needs to be forwarded to another switch.
  • Because a host does not know anything about VLAN, the VLAN tag must be removed by a switch before the packet is forwarded to a host. 11- 16

IEEE 802.1Q Learning

  • If a host (its network interface card, e.g., 3COM 1000SX Gigabit Ethernet card) supports 802.1Q, it can be configured to inform the network that it is to receive traffic for specific VLANs.
  • Procedure:
    • The host sends out a packet to all switches in the network. This packet declares that this host is to receive traffic for specific VLANs.
    • When the packet arrives at a port on a switch, the switch places the receiving port in the VLAN specified and forward it to all other port.
    • The above forwarding step is repeated.

11- 17

STP May Partition VLANs

  • Some switches do not take into account VLANs when forming ST (e.g., 3COM 3300 SM switches). Therefore, some VLANs may be partitioned.

Thus, it is recommended that all inter-switch connections are made members of all available 802.1Q VLANs.

Forward only VLAN 2

Forward only VLAN 1

11- 19

VLAN Configuration Example 1

VLAN1 and VLAN are totally separated.

11- 20