Professional Documents
Culture Documents
Cost of route
- The number of routes (jumps) it takes to go from one interface to another
SOHO
- Small office & Home office
tracert
- tracert is amount of hops to destination
Logical topology
- Path of how data is transferred between devices
Physical topology
- Physical arrangement of a network (cables, devices)
Uptime vs Availability
- Uptime = Number of minutes / Total number of minutes in a year [525600]
- Availability = ((Total number of minutes in a year-Downtime in minutes)/(Total
number of minutes in a year ))* 100
Bus topology
- All devices connected in a line that branches off
Ring topology
- Cabled together, first device connected to last device
- Each device connected to 2 device
Star topology
- Star shape, all devices connected to a central switch
Mesh topology
- One device connects to multiple devices -> increase redundency
Layer 1 Physical
- Physical Device and Physical Cabling
- Specs of these media types
TCP/IP model
- Application Layer
- Transport Layer
- Internet Layer
- Network Access Layer
Host Communication:
- Layer 7 only talks to Layer 7 through encapsulation and decapsulation, similarly
1 -> 1
- Encapsulation puts "header" onto the user data from L7 to L2, then FCS Frame
Check Sequence occurs at the end to ensure there is no corruption
[User Data]
[L7 Hdr][User Data]
[L6 Hdr][L7 Hdr][User Data]
[L5 Hdr][L6 Hdr][L7 Hdr][User Data]
[L4 Hdr][L5 Hdr][L6 Hdr][L7 Hdr][User Data]
[L3 Hdr][L4 Hdr][L5 Hdr][L6 Hdr][L7 Hdr][User Data]
[L2 Hdr][L3 Hdr][L4 Hdr][L5 Hdr][L6 Hdr][L7 Hdr][User Data] FCS
[Bits]
---through Physical Media as bits (0,1) ---
Bits (0,1)
128 64 32 16 8 4 2 1
Hexadecimal (0-F)
0,1,2,...,9,A,B,...,F
0,1,2,...,9,10 (1010),11,...,15 (1111)
ex. 128 = 1000 0000 = 8 0 or 80 (Hexadecimal)
ex. 240 = 1111 0000 = 15 0 or F0 (Hexadecimal)
Change MAC address of computer (NIC -> Configure -> Network Address)
RFC1918 Addresses
- Private address 10.1.1.1
IP Characteristics
- Layer 3 or network layer protocol
- Connectionless, no sessions formed. TCP on the other hand is connection oriented
- packets treated independently of other packets (packets can take different paths
to get to destination)
-> these packets go through "Routing Protocol" where it determines the
bestpath from A to B (bandwidth, hopcount, load balancing)
- NO guranteed delivery or data loss recovery (corruption), IP uses "best effort
delivery", again TCP will be needed if guranteed is requried
Recap IP:
- no builtin sessions
- no builtin retransmission
- TCP is needed to handle dropped, corrupted, and misdirected packets. IP relies on
higher level protocol for those requriements
Before TCP can be established and any data transmitted, 3-way handshake
(Transmitter) SYN -> (Receiver)
(Transmitter) <- SYN ACK (Receiver)
(Transmitter) -> ACK (Receiver)
Class D - multicast
- 224.0.0.0 - 239.255.255.255
Private Addresses
- Request for Comments is a formal document (Internet Engineering Task Force IETF
drafted by a community from multiple vendors), changes can be made only by another
RFC - it can be superseeded
- Internet Standards
- RFC1918: private IP addresses are non routable addresses on the internet, blocked
by ISP
Blocked by IANA Internet Assigned Numbers Authority
-> 10.0.0.0-10.255.255.255
-> 172.16.0.0-172.31.255.255
-> 192.168.0.0-192.168.255.255
- RFC3927: IPv4 Link-Local Addresses, Automatic Private IP Address (APIPA) by
Microsoft. Range 169.254.0.0 /16. Allows devices through a cable or local segment
(switch) to communicate to each other when no DHCP server is available without
configuration. Host would randomly generate the host specific part of the address
Subnet Mask
- Local vs Remote
-> if the network portion of the device A is the same as device B, then A and B are
on the same network - hence, local - otherwise the A is remote to B
2) Priviledge Mode
=> Type "configue terminal" in Priviledge Mode/Enable Mode to enter Global
Configuration Mode
Router#
Router#conf t
Router(config)#
4) Interface Mode
Router(config-if)#
*Change interface configuration ip address, type "ip address 10.0.0.1
255.255.255.0" to change IP address
Router(config-if)# ip address 10.0.0.1 255.255.255.0
5) Line Mode
- Line Console Mode (configuring console port) ex. line console 0
*Setting password for Console before access to User Mode Router>
Router(config)# line console 0
Router(config)# login (this makes it required that a password is needed. login or
password sequence does not matter)
Router(config)# password enterPasswordHere
- Line VTY Mode (configuring Telnet/SSH) ex. line vty 0 4 (to configure the first 5
vty ports)
*Specify routing protocol (ex. RIP) - will be covered later
Router(config)# router rip
Summary:
- copy running startup [override - overriding startup config with running config]
- copy from Startup config to running config [merge]
- configure terminal is a merge of configuration
- copy tftp:running [merge - copying from tftp to running config]
- copy tftp:startup [replacement]
- backup with copy run tftp: or copy start tftp:
Subnetting
ex. 172.16.35.123 /20
== 172.16.01000011.123 255.255.240.0
Therefore 35 -> 0100 0011
0100 = network = 32
0011 = host = 3
*Network IP = 172.16.32.0 [all host = 0]
*1st IP = 172.16.32.1 [all host = 0, except for last = 1]
*Last IP = 172.16.47.254 [all host = 1, except for last = 0]
*Broadcast = 172.16.47.255 [all host = 1]
Subnetting
ex. 172.16.129.1 /17
== 172.16.10000001.1 255.255.128.0
Therefore 129 -> 1 000 0001
1 = network = 128
000 0001 = host = 1
*Network IP = 172.16.128.0 [all host = 0]
*1st IP = 172.16.128.1 [all host = 0, except for last = 1]
*Last IP = 172.16.255.254 [all host = 1, except for last = 0]
*Broadcast = 172.16.255.255 [all host = 1]
ex. What is the network address for 172.16.1.1 with network mask 255.255.192.0?
network mask = 255.255.192.0 = /18 or 11 | 000000 (host)
-> Make all host = 0 to find network address, therefore 172.16.0.0 /18
ex. What is the broadcast address for host 172.16.1.1 with network mask
255.255.192.0?
network mask 255.255.192.0 = /18 or 11 | 000000. 00000000 (host)
-> Make all host = 1 to find broadcast address, therefore 172.16.63.255 /18
ex. Configure the router's serial interface (Serial 0/1) with the last IP address
in the subnet 192.168.168.184/30, then enable the router's interface
-> /30 = 255.255.255.252 or 101110|00
-> Therefore, last ip address = broadcast - 1
-> Set hosts = 1, 187 - 1 = 186
-> Therefore, 192.168.168.186 255.255.255.252
[PROGRAM]
Router1>enable
Router1#conf t
Router1(config)#interface serial 0/1
Router1(config-if)#ip address 192.168.168.186 255.255.255.252
Router1(config-if)#no shutdown
ex. Configure the router's Ethernet 0 interface with the last IP address in the
same subnet as PC in the diagram. Note 2: PC's address is 172.16.197.231/23
-> .197 /23 = 1100010 | 1
[PROGRAM]
Router1>enable
Router1#conf t
Router1(config)#interface ethernet 0
Router1(config-if)#ip address 172.16.197.254 255.255.254.0 (Note* Not 255, because
that is broadcast)
ex. Configure the router's Ethernet 0/0 interface with the 2nd IP address in the
same subnet as PC in the Diagram. Note: The PC's address is 172.16.197.231/23
-> 197 /23 1100010 | 1
[PROGRAM]
Router1>enable
Router1#conf t
Router1(config)#interface ethernet 0/0
Router1(config-if)#ip address 172.16.196.2 255.255.254.0
Basic Communication:
- CSMA/CD Carrier Sense Multiple Access Colision Detection
- Broadcast is not supported on IPv6
- Broadcast vs Multicast - multicast is a selected group of broadcast
10base2
- AKA "Single Collision Domain / Single Broadcast Domain
- Coax cable
- baseband
- 10mbs is the maximum speed
- 2 is the maximum segment length of 185meters
- Base = baseband - single signal in the wire (whereas broadband allows for
multiple signal in the wire)
- Ends with a Terminator, because again... single signal. Therefore if it heads
back, collision would occur
(ISSUE1) Collision
(ISSUE2) Cable Length, longer the cable, greater the degradation
(ISSUE3) Cable break -> No terminator
(ISSUE4) 10Mbps is for the entire segment, not per device. Because of Collisions,
you can only utilize 30-40% of the speed
ex. 10Mbps through 4 devices, 10/4 = 2.5, then *0.3 = 0.75Mbps
10baseT
- Shielded/Unshielded twisted pair
- maximum segment length of 100meters
- Base = baseband
Cable Category
- Cat3: telephone wiring, used to be used for data transfer
- Cat5: frequency up to 100MHz, speeds of 10/100 Mbps supported up to 100meters
- Cat5e: frequency up to 100Mhz, supports 1Gbps (improve Cat5 by reducing noise and
interference... most Cat5 meets Cat5e specs, but might not meet certifications
therefore, not categorized as Cat5e) up to 100meters
- Cat6: frequency up to 250Mhz, increase pair twists per inch, supports 10Gbps. up
to 55meters. Suitable for 10baseT, 100baseTx or fastEthernet or 1000baseTe or
Gigabitethernet or 10GbpEthernet
- Cat6a (argumented): frequency up to 500Mhz, supports 10Gbps. up to 100meters.
- Cat7 - frequency up to 600Mhz, supports 10Gbps. up to 100meters ( can be tera
Connectors, doesnt have to be RJ45). Foiled every pair - class F
- Cat7a - frequency up to 1000Mhz, supports 100Gbps.
- Cat8 - supports 40Gbps
- Cat8.1 - backward compatible and interoperable with Cat6a
- Cat8.2 - interoperable with Cat7
- DAC Direct Attachment Cable (DAC) - up to 15meters, SFP Small Formfactor
Pluggable plug on each end. Supports fiber or copper. up to 10Gbps on SFP+ slot
- Roll Over Cable - special cable used in Cisco environment (connects computer to
Console through the computer's serial port - or get USB to DB9 converter) - pin
1to8, 2-7, ... 8to1.
MAC Address
- 48 bits (24 bits to OUI + 24 bits to Station Address)
- OUI = Organizational Identifier - identifies vendor
- Station address should be unique (can be changed in software) but it is burnt
into NIC physically
MAC OUI
- Last bit in the 1st Octet is 0 (unicast) or 1 (multicast)
- 2nd last bit in the 1st Octet is 0 (globally unique MAC address) or 1
(administrator has changed this in software)
Hub
- Layer 1 Physical layer device
- Multiport repeater with no intelligence - being a repeater, can regenerate the
signal to extend distance
- Physical Star topology (hub being a central device)
- Logical Bus topology (traffic regenerates to all devices)
- 10BaseT -> 10Mbps shared between 4 computers = 2.5Mbps *0.30 (efficiency due to
collision) = 0.75Mbps
?How it works?
1) Receives traffic (frame with MAC address), amplifies the signal then sends the
traffic out of all ports except on the port of which it was received
2) The destination NICs will receives the frame. They will see the destination MAC
address does not match theirs, and they will drop the frame. Otherwise, they will
receive the the frame - strip layer 2 headers, pass the packet to higher layer
protocol
Bridge
- Layer 2 Data Link device
- Superseeded Hubs
- Uses MAC address table to learn where a device is on the topology
- Physical Star topology (bridge being a central device)
- Perform its processing in software (slow), whereas Switches perofrm its
processing in hardware (fast)
?How it works?
1) Host A sending to Host B
2) When Bridge boots up, MAC address table is empty (although it can be configured
with a static table)
3) After Host A send to B, then MAC address table learns where Host A is
4) When Host B wants to reply to Host A, it will send a frame to Host A, again
Bridge now knows where Host B is, and will update its own MAC address
5) Now different than Hub, during step (4), Bridge will not broadcast the message
to all hosts, but it reads from its MAC address, and it will only send it to host A
**Advantage of Bridge is that, if there are other hosts on the network (Host C &
Host D), by having this directed traffic, it will not use C or D's bandwidth since
Host A only wants to communicate with Host B
**Another advantage of bridge is that, every port is its own Collision Domain. If
Host C is having a collision, it will not affect A, B or D
Switch
- Layer 2 Data Link Device
- Superseeded Bridge
- Physical Star topology (switch being a central device)
- Similar to bridge, every port is its own Collission Domain
**Advantage of Switch is that it allows for more ports than bridges (this is
possible due to processing is done in hardware (faster) using ASICs Application
Specific Integrated Circuit allows for high throughput, quick table lookup rather
than software)
**Another advantage, switch can operate at "Wire Speed" (no degradation performance
between 2 devices) - perform as fast as if the switch is not even there - does not
slow the frame down
**Another advantage, switch provide XMbps dedicated speed, compared to a hub where
the speed is shared.