Advanced Computer Network: Virtual Local Area Networks Vlan
Advanced Computer Network: Virtual Local Area Networks Vlan
Advanced
Computer Network
1
18-Dec-18
Virtual Local Area Networks, or VLANs, are a very simple concept that has been very poorly defined by the
industry.
A VLAN is a group of devices on one or more LANs that
are configured to communicate as if they were attached to
the same wire, when in fact they are located on a number
of different LAN segments. Because VLANs are based on
logical instead of physical connections, they are extremely
flexible.
› vendor-specific solution and strategy, so defining
it is an issue.
› VLAN's allow a network manager to logically
segment a LAN into different broadcast
domains.(VLANs define broadcast domains in a
Layer 2 network. )
› multiple physical LAN segments independent of
physical location and can communicate as if they
were on a common LAN
4
2
18-Dec-18
› Performance
› Formation of Virtual Workgroups
› Simplified Administration
› Reduced Cost
› Security
3
18-Dec-18
ARP Request
Broadcast
A B C D
172.30.1.21
Switch 1
172.30.2.12
255.255.255.0
255.255.255.0
VLAN 1
VLAN 2
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
1 2 3 4 5 6 . Port VLAN 2 VLAN 1
1 2 1 2 2 1 . VLAN
Two VLANs
Ÿ Two Subnets
Important Note on VLAN:
› VLAN is configured on each port of the switch. Not on the host (PC)
› To make a host (PC) a member of a VLAN, it must be given an IP address
and subnet of one network with that VLAN.
8
4
18-Dec-18
disadvantage of this
method is that it
does not allow for
user mobility.
Advantage :
• no reconfiguration needed
Disadvantage :
• VLAN membership must be
assigned initially.
• performance degradation as
members of different VLANs coexist
on a single switch port
10
5
18-Dec-18
› Membership by Port
› Membership by MAC Address
IP Subnet vlan
› Membership by IP Subnet Address 23.2.24 1
26.21.35 2
Advantage:
• Good for application-based VLAN
strategy
• User can move workstations
• eliminate the need for frame tagging
Disadvantage :
• Performance/ looking for L3 address in
packet.
11
12
6
18-Dec-18
13
Two cables
trunked
14
7
18-Dec-18
10.0.0.0/8 10.1.0.0/16
10.2.0.0/16
10.3.0.0/16
With VLAN
Without VLAN
The switch is configured where each port can be specified
as a VLAN.
15
Role of Bridges
› bridge on receiving data determines to which VLAN the data belongs
either by implicit or explicit tagging [802.1Q].
› The bridge also keeps track of VLAN members in a filtering database
which it uses to determine where the data is to be sent
› all the bridges in the VLAN should contain the same information in their
respective filtering databases
16
8
18-Dec-18
17
18
9
18-Dec-18
10