Week #3
Ch2. Wayne Lewis PP45-85
Ali Nezhad
Topics
Introduction to Ethernet
CSMA/CD, Frame Format, Duplex Mode, MAC Table
Switch Characteristics
Forwarding Methods, Port Symmetry, Buffering, L3 support
Key Elements
CSMA/CD Transmission Modes Frame and Addressing Formats Duplex Settings Switch Port Settings MAC Address Table Management
Ali Nezhad CNET 311 Routing and Switching
CSMA/CD
Rules which station gets access to the shared medium. Works only for half-duplex communication
Two paths are needed for full-duplex.
Transmission Modes
Unicast
ftp, http, smtp, telnet,
Multicast
Video conferencing, Logical group membership required.
Broadcast
ARP query messages,
Ali Nezhad CNET 311 Routing and Switching
10
Ethernet Frame
Encapsulates L3 packets. Has headers and trailers. Used for Tx/Rx synchronization. Uses CRC to detect errors in the frame.
11
Ethernet Frame
Data: L3 PDU
46 1500 bytes, may contain padding.
12
13
Duplex Settings
Half-Duplex
Used in hubs. Low performance, 50%
Full-Duplex
Better performance, 100% Supported by most switches 2 paths for 2 directions no collisions
Auto
Ali Nezhad CNET 311 Routing and Switching
14
15
16
S1
P1
P4
S1
MAC1
MAC2
17
Switch receives a broadcast frame from PC1 on Port1. SRC and inbound port are recorded. Switch floods the frame on all ports but Port1. PC2 replies with a unicast frame for PC1. Switch records PC2s MAC on Port3. Future communication between PC1 and PC2 are unicast.
Ali Nezhad CNET 311 Routing and Switching
18
19
20
21
22
Network Latency
3 Sources
NIC Delay: (PHY layer )
The time taken by the NICs at the source and the destination to send and receive electrical signals.
23
Network Latency
Why switches are faster than routers. No L3 processing ASIC (Application Specific Integrated Circuits)
H/W support for networking tasks
24
Network Latency
Routers and Latency-Segmentation Trade-off
25
26
Network Congestion
Without proper segmentation, collisions and broadcast traffic clog the network. Causes:
Powerful end devices: Create data faster. Network Traffic: e.g. ARP and data accessed remotely for the operation of the network. Applications: Realtime applications, desktop publishing, e-learning, need more BW.
Ali Nezhad CNET 311 Routing and Switching
27
Bottlenecks
The link to server is the bottleneck. Use more NICs on the server. For inter-connected switches, we could use faster links or link aggregation.
Ali Nezhad CNET 311 Routing and Switching
28
Switch Characteristics
29
Forwarding Methods
Cut-thru: Lacks error checking. Not used in Catalyst switches
Fast-forward: forward as soon as Dest-add is received. Fragment-free: error check only the 1st 64 bytes.
30
Port Symmetry
Symmetric: Same BW allocated to all ports Asymmetric: Some ports may be allocated higher BW.
Good for client-server applications Implemented by most recent Catalyst switches Requires memory buffering
31
Memory Buffering
Amount of memory allocated to buffering is configurable. 2 Methods
Port-based
Each port has a FIFO queue.
Shared Memory
All ports buffer their frames in a common memory. Memory for each port is allocated dynamically.
Ali Nezhad CNET 311 Routing and Switching
32
L3 Support
A L3 switch uses IP-addressing info too. L3 switches route packets faster than routers due to specialized switching hardware. L3 switches do not perform all routers functions such as:
Remote access connections More support for WAN interface cards (WIC)
Icons: L2
Ali Nezhad CNET 311 Routing and Switching
L3
33
34
CLI
2 Levels of Access User EXEC: default after entering the CLI Allows a few basic monitoring commands. Privileged EXEC: enable mode Allows access to all device commands. Can be password protected. Allows access to other config modes such as global, interface and line. Enable and disable commands
Ali Nezhad CNET 311 Routing and Switching
35
36
GUI- CiscoView
Displays a physical view of the switch.
37
38
39
*+S
40
Switch Administration
Management Interface Configuration
Assign the switch an IP address used for remote management using TCP/IP. This address is assigned to a virtual interface called a management VLAN. This VLAN must be assigned to specific ports. The default is VLAN1. But it is better to use another VLAN as the management VLAN.
Ali Nezhad CNET 311 Routing and Switching
41
Switch Administration
Management Interface
Note; $n#0 on 8%A5 int rfac can " acti: at a ti( 7h n 8%A599 is acti:at d9 8%A51 " co( s inacti: Ali Nezhad CNET 311 Routing and Switching
42
Switch Administration
Default Gateway
Used for Mgmt: ping, telnet, TFTP, (config)# ip default-gateway 172.17.99.1
43
Switch Administration
Speed and Duplex Settings
Auto-negotiation between S1 and S2.
44
Switch Administration
HTTP Access
Configure switch as a HTTP server. Required by: Cisco web browser user interface, Cisco router and security Device Manager (SDM), IP phones, (config)# ip http authentication enable (config)# ip http server Authn is optional. It controls who gets access. Usually handled by a separate server.
Ali Nezhad CNET 311 Routing and Switching
45
Switch Administration
MAC Address Table Management
# show mac-address-table Dynamic addresses
SRC addresses learned from frames. Age when not in use. Default Age = 300 sec
Can be changed.
Static addresses
Ali Nezhad CNET 311 Routing and Switching
46
Switch Administration
MAC Address Table Management
Static addresses
Assigned specifically to certain ports by admin. Dont age. Only devices known to the admin will be able to connect to the port. Add a static mapping (config)# mac-address-table static <mac-add> vlan <vlan-id> interface <int-id> Use no, to remove the static mapping.
Ali Nezhad CNET 311 Routing and Switching
47
Switch Administration
Verifying Switch Configuration
Use the show command.
48
Switch Administration
Backup
49
Switch Administration
Restore
50
Switch Administration
TFTP Server- Backup
Used to save config file off the switch. Backup current config to the TFTP server:
51
Switch Administration
TFTP Server- Restore
Directly to the RAM: S1# copy tftp://172.16 system:running
Commands are executed as the file is parsed line-by-line.
52
Switch Administration
Clearing Config Info. From Startup
Must be in the privileged EXEC mode. Done before a complete re-configuration. #erase nvram: or #erase startup-config To erase a file from flash #delete flash:<filename>
53
Questions?
54