BSNL
1
LAN & VLAN
Presented By:-
RAMAKANT TYAGI
BSNL
BASIC OF NETWORKING
ALTTC BASIC OF NETWORKING 2
• There are 7 layer in
networking
• Out Of the 7 layers, we
are concerned with the
bottom 3 layers.
• The top 4 layers are used
more on host machines
to support TCP/UDP,
HTTP, other
applications
Application Layer (Layer
7)
Presentation Layer
(Layer 6)
Session Layer (Layer 5)
Transport Layer (Layer
4)
Network Layer (Layer 3)
Data Link Layer (Layer
2)
Physical Layer (Layer 1)
BSNL
Network Devices
• There are 5 general devices:
Repeater
Hub
Bridge
Switch
Router
ALTTC BASIC OF NETWORKING 3
BSNL
Repeater
A Layer 1 device
An electronic device to receive a signal
on a port and retransmits it at a higher
level or higher power
Used when you need to go farther
distances than the cabling will allow
Usually has 2 ports (IN/OUT)
ALTTC BASIC OF NETWORKING 4
BSNL
Hub
A Layer 1 device
A device that contains multiple ports
Has no logic or “brain”
Simply passes data out all other ports
In simple terms, it is a multi-port repeater
ALTTC BASIC OF NETWORKING 5
BSNL
Bridge
A Layer 2 device
Connects multiple Layer 2 segments
Has logic or “brain”
Learns what Layer 2 MAC addresses are
associated with each port
Receives frames destined for a particular
MAC address and only sends the data out
the correct port
ALTTC BASIC OF NETWORKING 6
BSNL
Switch
A layer 2 device
Basically a multi-port bridge
Learns MAC Addresses to Port
mappings
Doesn’t flood data out every port unless
the MAC address hasn’t been learned
ALTTC BASIC OF NETWORKING 7
BSNL
Router
A Layer 3 device
Connects multiple Layer 3 networks
Uses Layer 3 addressing (IP addressing)
Allows communication between
different Layer 2 segments
Breaks up broadcast domains
ALTTC BASIC OF NETWORKING 8
BSNL
Introduction
• Definition: A local area network
(LAN) supplies networking capability to a
group of computers in close proximity to
each other such as in an office building, a
school, or a home. A LAN is useful for
sharing resources like files, printers, games
or other applications. A LAN in turn often
connects to other LANs, and to the Internet
or other WAN.
ALTTC LAN & VLAN 9
BSNL
Diagrammatic representation
ALTTC LAN & VLAN 10
BSNL
Local Area Network (LAN)
ALTTC LAN & VLAN 11
BSNL
LAN OVERVIEW
• A LAN is a computer network that covers a small area (home,
office, building, campus)
– a few kilometers
• LANs have higher data rates (10Mbps to 40Gbps) as compared to
WANs
• LANs (usually) do not involve leased lines; cabling and
equipments belong to the LAN owner
• A LAN consists of
– Shared transmission medium
• now so valid today due to switched LANs (for wired LANs),
but still valid for wireless LANs
– regulations for orderly access to the medium
– set of hardware and software for the interfacing devices
ALTTC LAN & VLAN
12
BSNL
LAN Topologies
ALTTC LAN & VLAN 13
BSNL
Bus Topology
• Stations attach to linear medium
(bus)
– Via a tap - allows for transmission
and reception
• Transmission propagates in
medium in both directions
• Received by all other stations
– Not addressed stations ignore
• Need to identify target station
– Each station has unique address
– Destination address included in
frame header
• Terminator absorbs frames at the
end of medium 14
BSNL
Bus Topology
• Need to regulate transmission
– To avoid collisions
• If two stations attempt to transmit at same time,
signals will overlap and become garbage
– To avoid continuous transmission from a single
station. If one station transmits continuously, access is
blocked for others
• Solution: Transmit Data in small blocks – frames
ALTTC LAN & VLAN 15
BSNL
Ring Topology
• Repeaters joined by point-to-point links in closed
loop
– Links are unidirectional
– Receive data on one link and retransmit on another
– Stations attach to repeaters
• Data transmitted in frames
– Frame passes all stations in a circular manner
– Destination recognizes address and copies frame
– Frame circulates back to source where it is removed
• Medium access control is needed to determine
when station can insert frame
ALTTC LAN & VLAN 16
BSNL
Ring Topology
ALTTC LAN & VLAN 17
BSNL
Star Topology
• Each station connected
directly to central node
– using a full-duplex
(bi-directional) link
• Central node can broadcast (hub)
– Physical star, but logically like bus due
to broadcast medium
– Only one station can transmit at a time;
otherwise, collision occurs
• Central node can act as frame switch
– retransmits only to destination
– today’s technology
ALTTC LAN & VLAN 18
BSNL
Summary Of Network Topology
ALTTC LAN & VLAN 19
Topology/structure Advantages Disadvantages
Bus structure -easy to install
-simply expandable
-short cable lengths
-net expansion limits
-complicated access
methods
Ring structure -large net expansion -complex error tracing
-high wiring expenditure
-when disturbances net
failure
Star structure -simple cross-linking
-simple extension
-high reliability
-high wiring expenditure
-net failure in case of
failure or overloading of
the hubs
BSNL
ADVANTAGES OF LAN
• Expensive hardware can be shared e.g. laser
printer.
• Users can access the same files.
• Messages can be sent between users.
• A single Internet connection can be shared
among many users.
• Network software is cheaper than buying
individual packages.
ALTTC LAN & VLAN 20
BSNL
DISADVANTAGES OF LAN
ALTTC LAN & VLAN 21
 Disadvantages of connecting computers in a LAN:
• Special security measures are needed to stop users from using
programs and data that they should not have access to.
• Networks are difficult to set up and need to be maintained by skilled
technicians.
• If the file server develops a serious fault, all the users are affected,
rather than just one user in the case of a stand-alone machine.
• Wired and therefore more difficult to setup. Drilling holes in wall,
running cables in lofts etc, fitting sockets and redecorating. More
expensive to set up. More time consuming to set up. Not as flexible,
can only use where there is a socket - cannot use outside for example.
• Wired systems cannot be used in listed buildings
BSNL
VLAN Introduction
ALTTC LAN & VLAN 22
BSNL
Introduction
 In simple terms, a VLAN is a set of workstations
within a LAN that can communicate with each
other as though they were on a single, isolated
LAN.
 What does it mean to say that they “communicate
with each other as though they were on a single,
isolated LAN”?
 Among other things, it means that:
 broadcast packets sent by one of the workstations
will reach all the others in the VLAN
ALTTC LAN & VLAN 23
BSNL
Introduction
ALTTC LAN & VLAN 24
 Broadcasts sent by one of the workstations in the VLAN
will never reach any workstations that are not in the
VLAN
 The workstations can all communicate with each other
without needing to go through a gateway. For example, IP
connections would be established by AR Ping for the
destination
 IP and sending packets directly to the destination
workstation—there would be no need to send packets to the
IP gateway to be forwarded on.
 The workstations can communicate with each other using
non-routable protocols
BSNL
VLAN-based LAN
• As we earlier
discussed ,By
utilizing VLANs, the
same users can be
spread out over
various geographical
locations and still
remain in their same
IP subnet (broadcast
domain).
ALTTC LAN & VLAN 25
BSNL
VLAN OVERVIEW
ALTTC LAN & VLAN 26
• A VLAN allows a network administrator to create groups
of logically networked devices that act as if they are on
their own independent network, even if they share a
common infrastructure with other VLANs.
• Using VLANs, you can logically segment switched
networks based on functions, departments, or project
teams.
• You can also use a VLAN to geographically structure your
network to support the growing reliance of companies on
home-based workers.
• These VLANs allow the network administrator to
implement access and security policies to particular groups
of users.
BSNL
OVERVIEW
ALTTC LAN & VLAN 27
BSNL
HOW VLAN WORKS ?
• VLANs are identified by a number
– Valid ranges 1-4094
• On a VLAN-capable switch, you assign ports
with the appropriate VLAN number
• The switch then only allows data to be sent
between ports with the same VLAN
• Since almost every network is larger than a single
switch, there needs to be a way to have traffic
sent between two different switches
ALTTC LAN & VLAN 28
BSNL
HOW VLAN WORKS ?
• One way to do it is to assign a port on each switch with a
VLAN and run a cable between the switches
– Not very feasible or cost effective
• For example, if there were 6 hosts on each switch on 6
different vlans, you would need 6 ports on each switch
to connect the switches together. This would mean
that if you had 24 different vlans you could only have
24 hosts on a 48 port switch
ALTTC LAN & VLAN 29
BSNL
HOW VLAN WORKS ?
• There was a standard develop to make it so that a
single connection between two switches could be
used to send traffic for all vlans
• 802.1q – Provides a VLAN tag in front of the
Layer 2 frame
• We enable 802.1q tagging (trunking) on the ports
between the switches
• The switch receives the frame with the 802.1q header and
strips it off & It determines what VLAN and sends the
data to the appropriate port
ALTTC LAN & VLAN 30
BSNL
Types of VLAN
• Three basic VLAN memberships for
determining and controlling how a packet
entering a switch gets assigned to a VLAN.
ALTTC LAN & VLAN 31
BSNL
Port driven VLANs
• Most common configuration method
• User assigned by port association
• Easily administered through GUIs
• Maximizes security between VLANs
• Packets do not “leak” into other domains
ALTTC LAN & VLAN 32
BSNL
Port driven VLANs cont’d.
• User assigned port association ???
• For example, in a bridge with four ports, ports 1, 2, and 4
belong to VLAN 1 and port 3 belongs to VLAN 2
ALTTC LAN & VLAN 33
Port VLAN
1 1
2 1
3 2
4 1
Assignment of ports to different VLAN's.
Disadvantage:
•Does not allow for user mobility
BSNL
MAC address driven VLANs
• User assigned based on MAC addresses
• Offers flexibility
• For Example:Since MAC addresses form a part
of the workstation's network interface card, when a
workstation is moved, no reconfiguration is needed to
allow the workstation to remain in the same VLAN
• Impacts performance, scability, and administration
ALTTC LAN & VLAN 34
BSNL
MAC address driven VLANs cont’d
• Disadvantage
• VLAN membership must be assigned initially.
• In networks with thousands of users. Also, in environments
where notebook PC's are used, the MAC address is associated
with the docking station and not with the notebook PC.
Consequently, when a notebook PC is moved to a different
docking station, its VLAN membership must be reconfigured.
ALTTC LAN & VLAN 35
MAC Address VLAN
1212354145121 1
2389234873743 2
3045834758445 2
5483579475843 1
Assignment of IP subnet addresses to different VLAN's
BSNL
Network address driven VLANs
• The network IP subnet address can be used to
classify VLAN membership
ALTTC LAN & VLAN 36
IP Subnet VLAN
23.2.24 1
26.21.35 2
Assignment of IP subnet addresses to different VLAN's
BSNL
Network address driven VLANs
cont’d
• IP addresses are used only as a mapping to
determine membership in VLAN's.
• In Layer 3 VLAN's, users can move their
workstations without reconfiguring their network
addresses. The only problem is that it generally
takes longer to forward packets using Layer 3
information than using MAC addresses.
ALTTC LAN & VLAN 37
BSNL
Benefits of VLAN
ALTTC LAN & VLAN 38
BSNL
Benefits of VLAN
• VLANs allow network administrators to organize LANs logically
instead of physically.
• Easily move workstations on the LAN
• Easily add workstations to the LAN
• Easily change the LAN configuration
• Easily control network traffic
• Improve security
VLAN can also be used to control broadcast domains
Set up firewalls
Restrict access
Inform the network manager of an intrusion
• Eliminate the need for expensive routers
ALTTC LAN & VLAN
39
BSNL
Disadvantages Of Vlan
*Management is complex
*Possible problems in interoperability
*A VLAN cannot forward traffic to another
VLAN(need a router to communicate
between VLANs)
ALTTC LAN & VLAN 40
BSNL
LAN V/S VLAN
• VLAN requires lesser cost by eliminating use of
expensive routers unlike LAN.
• Data transmission is safe on VLAN as compared
to LAN.
• VLAN delivers better performance when
compared to traditional LANs.
• VLAN also helps in reducing traffic
ALTTC LAN & VLAN 41
BSNL
ALTTC LAN & VLAN 42
Thank You

Lan & vlan

  • 1.
    BSNL 1 LAN & VLAN PresentedBy:- RAMAKANT TYAGI
  • 2.
    BSNL BASIC OF NETWORKING ALTTCBASIC OF NETWORKING 2 • There are 7 layer in networking • Out Of the 7 layers, we are concerned with the bottom 3 layers. • The top 4 layers are used more on host machines to support TCP/UDP, HTTP, other applications Application Layer (Layer 7) Presentation Layer (Layer 6) Session Layer (Layer 5) Transport Layer (Layer 4) Network Layer (Layer 3) Data Link Layer (Layer 2) Physical Layer (Layer 1)
  • 3.
    BSNL Network Devices • Thereare 5 general devices: Repeater Hub Bridge Switch Router ALTTC BASIC OF NETWORKING 3
  • 4.
    BSNL Repeater A Layer 1device An electronic device to receive a signal on a port and retransmits it at a higher level or higher power Used when you need to go farther distances than the cabling will allow Usually has 2 ports (IN/OUT) ALTTC BASIC OF NETWORKING 4
  • 5.
    BSNL Hub A Layer 1device A device that contains multiple ports Has no logic or “brain” Simply passes data out all other ports In simple terms, it is a multi-port repeater ALTTC BASIC OF NETWORKING 5
  • 6.
    BSNL Bridge A Layer 2device Connects multiple Layer 2 segments Has logic or “brain” Learns what Layer 2 MAC addresses are associated with each port Receives frames destined for a particular MAC address and only sends the data out the correct port ALTTC BASIC OF NETWORKING 6
  • 7.
    BSNL Switch A layer 2device Basically a multi-port bridge Learns MAC Addresses to Port mappings Doesn’t flood data out every port unless the MAC address hasn’t been learned ALTTC BASIC OF NETWORKING 7
  • 8.
    BSNL Router A Layer 3device Connects multiple Layer 3 networks Uses Layer 3 addressing (IP addressing) Allows communication between different Layer 2 segments Breaks up broadcast domains ALTTC BASIC OF NETWORKING 8
  • 9.
    BSNL Introduction • Definition: A localarea network (LAN) supplies networking capability to a group of computers in close proximity to each other such as in an office building, a school, or a home. A LAN is useful for sharing resources like files, printers, games or other applications. A LAN in turn often connects to other LANs, and to the Internet or other WAN. ALTTC LAN & VLAN 9
  • 10.
  • 11.
    BSNL Local Area Network(LAN) ALTTC LAN & VLAN 11
  • 12.
    BSNL LAN OVERVIEW • ALAN is a computer network that covers a small area (home, office, building, campus) – a few kilometers • LANs have higher data rates (10Mbps to 40Gbps) as compared to WANs • LANs (usually) do not involve leased lines; cabling and equipments belong to the LAN owner • A LAN consists of – Shared transmission medium • now so valid today due to switched LANs (for wired LANs), but still valid for wireless LANs – regulations for orderly access to the medium – set of hardware and software for the interfacing devices ALTTC LAN & VLAN 12
  • 13.
  • 14.
    BSNL Bus Topology • Stationsattach to linear medium (bus) – Via a tap - allows for transmission and reception • Transmission propagates in medium in both directions • Received by all other stations – Not addressed stations ignore • Need to identify target station – Each station has unique address – Destination address included in frame header • Terminator absorbs frames at the end of medium 14
  • 15.
    BSNL Bus Topology • Needto regulate transmission – To avoid collisions • If two stations attempt to transmit at same time, signals will overlap and become garbage – To avoid continuous transmission from a single station. If one station transmits continuously, access is blocked for others • Solution: Transmit Data in small blocks – frames ALTTC LAN & VLAN 15
  • 16.
    BSNL Ring Topology • Repeatersjoined by point-to-point links in closed loop – Links are unidirectional – Receive data on one link and retransmit on another – Stations attach to repeaters • Data transmitted in frames – Frame passes all stations in a circular manner – Destination recognizes address and copies frame – Frame circulates back to source where it is removed • Medium access control is needed to determine when station can insert frame ALTTC LAN & VLAN 16
  • 17.
  • 18.
    BSNL Star Topology • Eachstation connected directly to central node – using a full-duplex (bi-directional) link • Central node can broadcast (hub) – Physical star, but logically like bus due to broadcast medium – Only one station can transmit at a time; otherwise, collision occurs • Central node can act as frame switch – retransmits only to destination – today’s technology ALTTC LAN & VLAN 18
  • 19.
    BSNL Summary Of NetworkTopology ALTTC LAN & VLAN 19 Topology/structure Advantages Disadvantages Bus structure -easy to install -simply expandable -short cable lengths -net expansion limits -complicated access methods Ring structure -large net expansion -complex error tracing -high wiring expenditure -when disturbances net failure Star structure -simple cross-linking -simple extension -high reliability -high wiring expenditure -net failure in case of failure or overloading of the hubs
  • 20.
    BSNL ADVANTAGES OF LAN •Expensive hardware can be shared e.g. laser printer. • Users can access the same files. • Messages can be sent between users. • A single Internet connection can be shared among many users. • Network software is cheaper than buying individual packages. ALTTC LAN & VLAN 20
  • 21.
    BSNL DISADVANTAGES OF LAN ALTTCLAN & VLAN 21  Disadvantages of connecting computers in a LAN: • Special security measures are needed to stop users from using programs and data that they should not have access to. • Networks are difficult to set up and need to be maintained by skilled technicians. • If the file server develops a serious fault, all the users are affected, rather than just one user in the case of a stand-alone machine. • Wired and therefore more difficult to setup. Drilling holes in wall, running cables in lofts etc, fitting sockets and redecorating. More expensive to set up. More time consuming to set up. Not as flexible, can only use where there is a socket - cannot use outside for example. • Wired systems cannot be used in listed buildings
  • 22.
  • 23.
    BSNL Introduction  In simpleterms, a VLAN is a set of workstations within a LAN that can communicate with each other as though they were on a single, isolated LAN.  What does it mean to say that they “communicate with each other as though they were on a single, isolated LAN”?  Among other things, it means that:  broadcast packets sent by one of the workstations will reach all the others in the VLAN ALTTC LAN & VLAN 23
  • 24.
    BSNL Introduction ALTTC LAN &VLAN 24  Broadcasts sent by one of the workstations in the VLAN will never reach any workstations that are not in the VLAN  The workstations can all communicate with each other without needing to go through a gateway. For example, IP connections would be established by AR Ping for the destination  IP and sending packets directly to the destination workstation—there would be no need to send packets to the IP gateway to be forwarded on.  The workstations can communicate with each other using non-routable protocols
  • 25.
    BSNL VLAN-based LAN • Aswe earlier discussed ,By utilizing VLANs, the same users can be spread out over various geographical locations and still remain in their same IP subnet (broadcast domain). ALTTC LAN & VLAN 25
  • 26.
    BSNL VLAN OVERVIEW ALTTC LAN& VLAN 26 • A VLAN allows a network administrator to create groups of logically networked devices that act as if they are on their own independent network, even if they share a common infrastructure with other VLANs. • Using VLANs, you can logically segment switched networks based on functions, departments, or project teams. • You can also use a VLAN to geographically structure your network to support the growing reliance of companies on home-based workers. • These VLANs allow the network administrator to implement access and security policies to particular groups of users.
  • 27.
  • 28.
    BSNL HOW VLAN WORKS? • VLANs are identified by a number – Valid ranges 1-4094 • On a VLAN-capable switch, you assign ports with the appropriate VLAN number • The switch then only allows data to be sent between ports with the same VLAN • Since almost every network is larger than a single switch, there needs to be a way to have traffic sent between two different switches ALTTC LAN & VLAN 28
  • 29.
    BSNL HOW VLAN WORKS? • One way to do it is to assign a port on each switch with a VLAN and run a cable between the switches – Not very feasible or cost effective • For example, if there were 6 hosts on each switch on 6 different vlans, you would need 6 ports on each switch to connect the switches together. This would mean that if you had 24 different vlans you could only have 24 hosts on a 48 port switch ALTTC LAN & VLAN 29
  • 30.
    BSNL HOW VLAN WORKS? • There was a standard develop to make it so that a single connection between two switches could be used to send traffic for all vlans • 802.1q – Provides a VLAN tag in front of the Layer 2 frame • We enable 802.1q tagging (trunking) on the ports between the switches • The switch receives the frame with the 802.1q header and strips it off & It determines what VLAN and sends the data to the appropriate port ALTTC LAN & VLAN 30
  • 31.
    BSNL Types of VLAN •Three basic VLAN memberships for determining and controlling how a packet entering a switch gets assigned to a VLAN. ALTTC LAN & VLAN 31
  • 32.
    BSNL Port driven VLANs •Most common configuration method • User assigned by port association • Easily administered through GUIs • Maximizes security between VLANs • Packets do not “leak” into other domains ALTTC LAN & VLAN 32
  • 33.
    BSNL Port driven VLANscont’d. • User assigned port association ??? • For example, in a bridge with four ports, ports 1, 2, and 4 belong to VLAN 1 and port 3 belongs to VLAN 2 ALTTC LAN & VLAN 33 Port VLAN 1 1 2 1 3 2 4 1 Assignment of ports to different VLAN's. Disadvantage: •Does not allow for user mobility
  • 34.
    BSNL MAC address drivenVLANs • User assigned based on MAC addresses • Offers flexibility • For Example:Since MAC addresses form a part of the workstation's network interface card, when a workstation is moved, no reconfiguration is needed to allow the workstation to remain in the same VLAN • Impacts performance, scability, and administration ALTTC LAN & VLAN 34
  • 35.
    BSNL MAC address drivenVLANs cont’d • Disadvantage • VLAN membership must be assigned initially. • In networks with thousands of users. Also, in environments where notebook PC's are used, the MAC address is associated with the docking station and not with the notebook PC. Consequently, when a notebook PC is moved to a different docking station, its VLAN membership must be reconfigured. ALTTC LAN & VLAN 35 MAC Address VLAN 1212354145121 1 2389234873743 2 3045834758445 2 5483579475843 1 Assignment of IP subnet addresses to different VLAN's
  • 36.
    BSNL Network address drivenVLANs • The network IP subnet address can be used to classify VLAN membership ALTTC LAN & VLAN 36 IP Subnet VLAN 23.2.24 1 26.21.35 2 Assignment of IP subnet addresses to different VLAN's
  • 37.
    BSNL Network address drivenVLANs cont’d • IP addresses are used only as a mapping to determine membership in VLAN's. • In Layer 3 VLAN's, users can move their workstations without reconfiguring their network addresses. The only problem is that it generally takes longer to forward packets using Layer 3 information than using MAC addresses. ALTTC LAN & VLAN 37
  • 38.
  • 39.
    BSNL Benefits of VLAN •VLANs allow network administrators to organize LANs logically instead of physically. • Easily move workstations on the LAN • Easily add workstations to the LAN • Easily change the LAN configuration • Easily control network traffic • Improve security VLAN can also be used to control broadcast domains Set up firewalls Restrict access Inform the network manager of an intrusion • Eliminate the need for expensive routers ALTTC LAN & VLAN 39
  • 40.
    BSNL Disadvantages Of Vlan *Managementis complex *Possible problems in interoperability *A VLAN cannot forward traffic to another VLAN(need a router to communicate between VLANs) ALTTC LAN & VLAN 40
  • 41.
    BSNL LAN V/S VLAN •VLAN requires lesser cost by eliminating use of expensive routers unlike LAN. • Data transmission is safe on VLAN as compared to LAN. • VLAN delivers better performance when compared to traditional LANs. • VLAN also helps in reducing traffic ALTTC LAN & VLAN 41
  • 42.
    BSNL ALTTC LAN &VLAN 42 Thank You