Data Communication Theory
Data Communication Theory
Training Objectives
Switch Networking
Switch Introduction
Switch is working on the OSI layer 2, the data link layer device, can identify the MAC
address, by parsing the destination MAC address of a data frame, data frame can be
quickly forwarded from the source port to the destination port, so as to avoid collision
with other ports, improve the network exchange and transmission speed.
Layer 3 switches is the switch with router functions, can work in the OSI layer 3, the
network layer, can also work on layer 2. Layer 3 switches as a layer 3 device equivalent
to multiple port router. Layer 3 switches can according to the IP address to forward
packets.
Switch working principle is to store and forward, it will store the data frames sending
from the port first, by parsing the data frame to obtain the destination MAC address,
then retrieve the destination port linked to the destination host by checking the MAC
address and interface mapping table (MAC table/forwarding database), immediately
forward the data frame from source port directly to the destination port after the
specific MAC entry be found in the MAC table.
Switch Networking
Switch Introduction
Configure the MAC aging time can cause MAC address dying out
Too long aging time can cause massive outdated MAC addresses caching in the MAC
address table
Too short aging time can cause the switch to delete multiple valid MAC address entries
probably, so switch will broadcast massive frame that could not find the DA, the
broadcast frame will cost a lot of bandwidth, in order to make performance degradation
of switch
When the learned amount of MAC addresses is too large for the switch, even exceed
the maximum limitation, switch will not go on learning MAC addresses
VLAN (Virtual Local Area Network), is a kind of technology that dividing the equipments
into different sub-networks logically but NOT physically, in order to realize the virtual
workgroup
The main purpose of VLAN division is to isolate broadcast domains. Broadcast domain
is a logical computer group, computers within the group can receive the same
broadcast information.
Collision domain: every node within one collision domain will receive all kinds of sent frames
Broadcast domain: A set of all devices can receive the broadcast frames from any
equipment in the network
Collision domain based on layer 1 (Physical Layer)
Broadcast domain based on layer 2 (Data Link Layer)
1 2 3 4
Switch Vlan10 A B
Vlan20 C D
vlan10 vlan20
A B C D
Business Dep. Financial Dep.
Switch 1 Switch 2
1 2 3 4 5
vlan10
vlan10
?
frame
5 1 2 3 4
vlan20
vlan10 vlan20 vlan10 vlan20
802.1Q protocol defines a new Ethernet frame field, compare with the standard of
Ethernet frame header, there is a new VLAN tag field of 4 bytes will be added after the
SA field in the VLAN frame format
TPID is a new type of IEEE definition, which indicates that this is a message added with
802.1Q tag
802.1Q
Label
Header
Tag Protocol Identifier (TPID): 802.1Q labeled frame identification, normally will be
0x8100 in hexadecimal number
VLAN Identifier (VLAN ID / VID): 12 bits of VLAN ID, range is 1~4094, 1 for native VLAN,
number above 4000 for reservation
Canonical Format Indicator (CFI): this unique bit is mainly used in the frame exchanged
between the bus-type Ethernet and FDDI, token ring
Class of Service (COS / User Priority): the 3 bits indicate the priority of the frame.
There’re total 8 priorities based on the bit number of COS, mainly functionalized during
congestion of switch, preference to forward high-priority frames
VLAN attributes of the port: Port within the corresponding VLAN can be tagged, also
can be untagged
Port is tagged or untagged is only relative to the TX direction. If port is tagged, frame
will be sent out with VLAN tag, otherwise, VLAN tag will be stripped off before sending
out
But PVID (port VLAN id) is only functionalized to the RX direction
untagged
Vid tagged
Vid tagged
ACCESS mode port only belongs to one VLAN, the ports inside the VLAN are all
untagged
TRUNK mode port can belongs to multiple VLANs, and with all tagged port belongs to
each VLAN. Can receive and transmit multiple VLAN frames, often used between
switches
Hybrid mode port can also belongs to multiple VLANs, and with tagged/untagged port
both
Determine whether frame with VLAN tag: if NO, tag the frame by PVID, then forward the frame;
Rx if YES, also if the TRUNK port allow the specified VLAN to pass, forward the frame, otherwise,
drop the frame
Trunk
Compare the VLAN ID of the frame with PVID, if they’re same, strip off the VLAN tag, then
Tx
transmit, otherwise just transmit the frame directly without any change
Determine whether frame with VLAN tag, if NO, tag the frame by PVID, then forward the frame,
Rx if YES, also if the HYBRID port allow the specified VLAN to pass, forward the frame, otherwise,
drop the frame
Hybrid
Determine port property of the specified VLAN (show vlan verbose can see which VLANs are
Tx untag, which VLANs are tag), if its untag, strip off the VLAN tag, then transmit; if its tag, just
transmit directly
frame
switch
vlan10
vlan20 Vlan10? Vlan20?
v10 frame
frame
When hybrid port received frame with VLAN tag, forward the frame by vid of the frame
When hybrid port received frame without VLAN tag, how to forward the frame?
PVID: In the port-based VLAN isolation, every port has its own PVID
Function: Because port can belongs to multiple VLANs, when one frame without VLAN
tag coming into the port, switch encapsulate the frame with VLAN tag by PVID, and also
learn (MAC address) and forward (frame) by PVID
vlan5
Switch need to decide the frame should be forwarded in which VLAN when receiving
the frame
Based on the VLAN tag field of the frame
VLAN tagged frame – forward by vid of frame
VLAN untagged frame – forward by VLAN belonged
to the port
Switch need to determine whether frame carrying VLAN tag field when sending the
frame
Based on the VLAN property of the port
Access port – send VLAN untagged frame
Trunk port – send VLAN tagged frame
Switch forward frames based on MAC address + VID learning, learn the MAC address to
the port
Switch check the DA of the frame through L2 table (VLAN forwarding table), if found the
entry, forward the frame to the specified port, if NOT found the entry, broadcast to all
the ports within the same VLAN
If SA in the frame of the port received by switch and the port relative to DA in the entry
of L2 table is the same port, then drop the frame
VLAN2 VLAN4
VLAN3
VLAN routing
BROADEN YOUR FUTURE
www.fiberhomegroup.com
VLAN Routing
VLAN 300
Flows among different VLANs can not cross the VLAN border, routing technology is
needed
Frames can be forwarded from one VLAN to another VLAN by VLAN routing
Switch Networking
Switch Introduction
CR P
IP Core
PE PE
BRAS IP/MPLS Service Router
S7800/S5800
Aggregation and Access
ONU
L2 Switch IPRAN CDN Edge DSLAM/MSAN
POE Access Access
DSLAM LAN
Base
Router
Aggregation
switch
Access switch
S7800
Aggregation
Easy
10GE
ISS Maintenance
Web、DNS、Email、
proxy、APPS Servers
S6000/
S7800
GE Access
S5800/
S4800
Green
GE
Network
Router
Core switch
Switch Networking
Switch Introduction
24×10/100Base-T port
S2800-28T-TF 2×100/1000Base-T,2×1000Base-X SFP
Switch
power :
Power
<13.8 150W Switch power:400W
consumptio <11W <12W <12W <38W
W PoE PoE power: 370W
n
power :
124W
<3.66
Weight <1 kg <2 kg <2 kg <2kg <3 kg <2.24 kg <4.82 kg
kg
Port mirroring
SNMP, configuration via Web, CLI, Telnet, Console port,
Upgrade via FTP
Management & maintenance Fengine Wview GUI management platform based on SNMP
SSH v2.0
Cluster network management
Port loopback detection
Operation temperature: 0℃ to 50℃
Operating environment
Relative humidity:10%-90% (non-condensing)
AC:
Rated voltage range:100V to 240V AC, 50/60Hz
Maximum voltage range:90V to 264V AC, 50/60Hz
Input voltage
DC:
Rated voltage range: -48V to -60V DC
Max voltage range: -36V to -72V DC
Port Trunk
aggregation Maximum 8 Trunk groups, up to 8 GE ports in each group
AC:
Rated voltage range: 100V to 240V AC, 50/60Hz
Maximum voltage range: 90V to 264V AC, 50/60Hz
Input voltage
DC:
Rated voltage range: -48V to -60V DC
Max voltage range: -36V to -72V DC
Dimensions
265×150×40 320×220×44 340×190×44 440×290×44 340×190×44
(W×D×H) mm
Switching
256 Gbps
capacity
Extended slot 2 extended slots(Spport 2 ports 10G SFP,2 ports GE combo,Stacking card)
VLAN 4K VLANs; 1:1 & N:1 VLAN Mapping; QinQ, selective QinQ
Port trunk LACP; 8 trunk groups at most, up to 8 GE ports or 4 10GE ports in each group
Power supply
Switch Networking
Switch Introduction
Start-up file
Because of the firmware consists of several OS(operating system) files, so that can
NOT be uploaded into one single file like edge routers.
So, there’s another way to backup the firmware:
➢ “show version” to check the software versions & serial number of the switch
➢ Record contents below & acquire the displayed OS file from FiberHome if there is some trouble
happens during or after upgrading
➢ S2800#show version
FHN Universal Software Platform
USP (R) Software Version V210R220
Hardware Version: 2.0.3
BIOS Version: 1.2.9
FPGA Version: 1.0
Serial number: 0Z557815010005
Copyright (c) 2000-2011, FiberHome Networks Co., Ltd.
System memory 65536K
System uptime is 0 days 0 hours 13 minutes 12 seconds
OS file
FTP client
FTP server inet-ip: 192.168.1.1/24
host-IP: 192.168.1.100/24
FTP username: 123
FTP password: 123
OS file
➢ S2800(config)#ftp get 192.168.1.100 123 123 S2800-XXT-C-PE_OS_V210R220_build2015083108.bin
Local path is "Ram:/flash/download".
Getting data...
4883073 bytes downloaded.
If you want to update system,use "upgrade" command!
➢ S2800(config)#quit
➢ S2800#reboot
WARNING:System will reboot! Continue?(y/n) [y]
System now is rebooting,please wait.
✓ *Do remember to check the version using “show version” after rebooting.
config file
FTP client
FTP server inet-ip: 192.168.1.1/24
host-IP: 192.168.1.100/24
FTP username: 123
FTP password: 123
OS file
➢ S2800(config)#ftp get 192.168.1.100 123 123 config.txt
Local path is "Ram:/flash/download".
Getting data...
756 bytes downloaded.
If you want to update system,use "upgrade" command!
➢ S2800(config)#quit
➢ S2800#reboot
WARNING:System will reboot! Continue?(y/n) [y]
System now is rebooting,please wait.
✓ *Do remember to check the configuration using “show running-config” after rebooting.
[VxWorks Boot]: U
Attached TCP/IP interface to et1.
Attaching network interface lo0... done.
Loading...
4883073 bytes read.
WARNING:System will upgrade!
Begin to write the new image ......
***************************************
Finish writing the Image File!
✓ *Do remember to check the version using “show version” after rebooting.
[VxWorks Boot]: R
System is rebooting…
✓ *Do remember to check the version using “show version” after rebooting.
S2800#config
S2800(config)#erase startup-config
WARNING:System config file will be deleted! Continue?(y/n) [y]
Done.
S2800(config)#quit
S2800#reboot
WARNING:System will reboot! Continue?(y/n) [y]
System now is rebooting,please wait.
[VxWorks Boot]: F
Clearing system config file... done.
[VxWorks Boot]: R
System is rebooting...