SlideShare a Scribd company logo
1 of 42
Download to read offline
Andriy Berestovskyy
2017
( ц ) А н д р
і й Б е р е с
т о в с ь к и
й
networking hour
TCP
UDP
NAT
IPsec
IPv4
IPv6
internet
protocolsAH
ESP
authentication
authorization
accounting
encapsulation
security
BGP
OSPF
ICMP
ACLSNAT
tunnel
PPPoE
GRE
ARP
discovery
NDP
OSI
broadcast
multicast
IGMP
PIM
MAC
DHCP
DNS
fragmentation
semihalf
berestovskyy
Networking Fundamentals
Local Networks
Networking Fundamentals
● Computer Networks
● Networking Models
● > Local Networks
● Internet
● IPv4 Routing
● Transport Protocols
2
Krakusa 11, 1st floor
Local Area Network
3
Krakusa 11, 2nd floor Krakusa 11, 3rd floor
How?
Interconnects hosts within a limited area and has its network
equipment and interconnects locally managed
Typical SOHO LAN
4
Internet
Switch
Access Point
Router
SOHO?
Distance?
Small Office/Home Office (SOHO) — category of business that
involves from 1 to 10 workers
— Wikipedia
5
Building 1
Typical Corporate LAN
6
Corporate
Network
Floor 2
Floor 1
Distance?
Building 1
Typical Corporate Network
7
Corporate
Network
Building 2
Building 3
Building 4
Distance?
Ethernet Physical Layer
8
Application
Presentation
Session
Transport
Network
Data Link
Physical
Frame
Bits
MAC Data FCS
IP Data
TCP Data
Packet
Segment
Data
7
6
5
4
3
2
1
Hi!
Salut!
Typical Ethernet Physical Layers
9
10 Mbps
Speed
100 Mbps
1 Gbps
Name
1 Gbps
10 Gbps
Medium Distance
10BASE-T Twisted Pair 100 m
100BASE-T Twisted Pair 100 m
10 Mbps10BASE2 Coaxial Cable 100 m
1000BASE-T Twisted Pair 100 m
1000BASE-LX SM Fiber 5 km
10GBASE-LR SM Fiber 10 km
10 Gbps10GBASE-ER SM Fiber 40 km
Ethernet
Fast Ethernet
10 Gigabit Ethernet
Gigabit Ethernet
More?
Switch
Ethernet Link Over a Twisted Pair
10
Host
Cable
RJ-45
Connector
RJ-45
Connector
RJ-45
Port
RJ-45
Port
Switch
Fast Ethernet Straight Cable
11
Host
TX RX
RX TX
1
2
3
6
Twisted Pair
Twisted Pair
1
2
3
6
Host
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
Switch
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
MDI* MDI-X*
* Media Dependent Interface (Crossover)
Host
Fast Ethernet Crossover Cable
12
Host
TX TX
RX RX
1
2
3
6
Twisted Pair
Twisted Pair
1
2
3
6
Host
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
Host
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
MDI MDI
Cable Usage?
13
Access Point
Host
Router
Switch
Hub
Host Access Point Router Hub Switch
Cable Usage
14
Access Point
CrossHost
Router
Switch
Hub
Host
Cross
Access Point
Cross
Router
Straight
Hub Switch
Cross Cross Cross
Cross Cross Cross
Cross Cross
Cross Cross
MDI MDI-X
Straight
Straight Straight
Straight Straight
Straight Straight
Straight Straight
Straight
Straight
MDI-X
Gigabit Ethernet Cable Pinout
15
Host
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
Host
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
MDI MDI
Host
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
Switch
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
MDI MDI-X
Host BHost A
10BASE2 Physical Layer
16
Data Data
0 V
+1 V
-1 V
Data 1 0 1 0 0 1 1 1 0 0 1
Source: https://en.wikipedia.org/wiki/Manchester_code
● Manchester encoding
● Half duplex
Duplex?
BNC T-Connector BNC T-Connector
Why?
Half Duplex Communication
17
send or receive :(
or
What if
both?
Collision
18
Host A Host B
Collision occurs when several demands are made simultaneously on
equipment that can handle only one at a time
— Wikipedia
19
Collision domain — section of a network where
data packets can collide with one another
— Wikipedia
20
Broadcast
domain?
Shared Medium Collision Domain
21
Host A
Host B
Host C
Host D
10Base2 Ethernet
over Coaxial cable
Collision
domain?
C
B
A
D
1 1
Collision Domain
Shared Medium Collision Domain
22
Host A
Host B
Host C
Host D
C
B
A
D
2
10Base2 Ethernet
over Coaxial cable
1 1
Solutions?
CSMA/CD
Carrier-Sense Multiple Access with Collision Detection
media access control method:
1. IF medium is not idle THEN goto 1
2. Start transmission + monitor for a collision
3. IF collision occurred THEN wait, goto 1
23
Repeater Hub
TX
Host A
10BASE-T Physical Layer
24
TX RX
RX TX
RX
TX
0 V
+1 V
-1 V
Data 1 0 1 0 0 1 1 1 0 0 1
● Manchester encoding
● Half duplex
Why?
RX
TX
RX
Repeater Hub Collision Domain
25
Host A
Host B
Host C
Host D
Repeater Hub
Collision
domain?
10Base-T Ethernet
over a Twisted Pair
A
B
A
C
1
1
Collision Domain
Repeater Hub Collision Domain
26
Host A
Host B
Host C
Host D
Repeater Hub
A
B
A
C
1
1
A
C
A
B
2
A
C
A
B
2
Switch
RX
TX
Host A
10GBASE-T Physical Layer
27
TX RX
More info: https://en.wikipedia.org/wiki/Pulse-amplitude_modulation
RX TX
RX
TX
0 V
+1 V
-1 V
Data*
1
0
1
0
0
1
1
1
0
0
1
0
● PAM-16 encoding*
● Full duplex
Why?
TX
RX
CPU
0000
* oversimplification!
0010
0100
0110
1111
1101
1011
1001
RAMRAM
1
1
1
1
1
1
0
1
0
0
0
1
0
1
0
0
1
1
1
1
0
1
1
1
1
0
0
1
1
0
0
0
What for?
Switch Collision Domain
28
Host A
Host B
Host C
Host D
Collision
domain?
A
B
A
C
1
1
Switch Collision Domains
29
Host A
Host B
Host C
Host D
A
B
A
C
1
A
B
1
A
C
Switch eliminates collisions by breaking down collision domain
2
Collision Domain Switch
RX
TX
Host A
Switch Stores & Forwards
30
TX RX
RX TX
RX
TX
TX
RX
CPU
RAMRAM
A
C A
B
Switch stores Ethernet frame in RAM and then forwards it
Pros/Cons?
Ethernet Data Link Layer
31
Application
Presentation
Session
Transport
Network
Data Link
Physical
Frame
Bits
MAC Data FCS
IP Data
TCP Data
Packet
Segment
Data
7
6
5
4
3
2
1
Hi!
Salut!
Ethernet Frame Format
32Source: https://en.wikipedia.org/wiki/Ethernet_frame
Ethernet
Frame
Bits
2
1
7
Preamble, 7 octets
Start of Frame, 1 octet
6
Destination MAC, 6 octets
6
Source MAC, 6 octets
4
Optional 802.1q (VLAN) Tag, 4 octets
Ethertype, 2 octets
46-1500 4
Frame Check Sequence, 4 octets
12
Interframe gap, 12 octetsPayload, 46-1500 octets
72 — 1530 octets
64 — 1522 octets
TrailerHeader
Optional 802.1q (VLAN) Tag
33
Payload
...
MAC Destination
MAC Destination MAC Source
MAC Source
Ethertype
0 32
14Bytes
Frame Check Sequence
Payload
...
MAC Destination
MAC Destination MAC Source
MAC Source
Ethertype
0 32
18Bytes
Frame Check Sequence
0x8100 VIDPCP D
PCP — Priority Code Point (Class of service) (3 bits)
DEI — Drop Eligible Indicator (1 bit)
VID — VLAN Identifier (12 bit)
Protected by Frame
Check Sequence
Ethernet MAC Address
34* OUI — Organizationally Unique Identifier
6
Destination MAC, 6 octets
6
Source MAC, 6 octets
4 46-1500 4
123456Intel 825992
789abcIntel I350
123456Cavium
2
2
Family Name First Name
NIC IDOUI*2
24 bits 24 bits
b7
0: globally unique
1: locally managed
b6
0: unicast
1: multicast
654321
b5 b4 b3 b2 b1 b0
Ethernet Type
35
6 6
Ethertype, 2 octets
4 46-1500 4
1
Eth
Type
IPv4
IPv4 Payload
Eth
Ethertype = 0x8000
2
Eth
Type
IPv6
IPv6 Payload
Eth
Ethertype = 0x86DD
Per-VLAN Switch Logic
36
Host A
Host B
Host C
Host D
D
A
Why? PortMAC
1
2
3
4
MAC Table
Learn!
1A
Per-VLAN Switch Logic
37
Host A
Host B
Host C
Host D
D
A
1
PortMAC
1
2
3
4
MAC Table
2
1. Check Ethernet FCS
2. Add A to MAC table
3. No D in MAC table:
○ what to do?
1A
Per-VLAN Switch Logic
38
Host A
Host B
Host C
Host D
D
A
1
PortMAC
1
2
3
4
MAC Table
2
D
A
D
A
3
3
“Unknown unicast”
D
A
3
1. Check Ethernet FCS
2. Add A to MAC table
3. No D in MAC table:
○ send to all ports
Problems?
1A
Per-VLAN Switch Logic
39
Host A
Host B
Host C
Host D
4
Port
D
MAC
1
2
3
4
MAC Table
2
A
D
1
1. Check Ethernet FCS
2. Add D to MAC table
3. A in MAC table:
○ send to port 1
A
D
3
1. Receive frame, check Ethernet FCS
2. Add/update source MAC in MAC table
3. If multicast bit is set:
a. forward to all ports, but the source
4. If destination is in MAC table:
a. forward to the specific port
5. Else, forward to all ports
Per-VLAN Switch Logic Summary
40
Local Networks Checklist
1. LAN?
2. Ethernet?
3. Ethernet physical layers?
4. Straight through vs crossover cables?
5. Duplex?
6. Collision?
7. Collision domains for hub, switch?
8. CSMA/CD?
9. Ethernet header?
10. 802.1q tag?
11. Switch logic?
41
References
1. Kevin Wallace. CCNP Routing and Switching ROUTE 300-101 Official Cert Guide. Cisco Press, 2014
2. David Hucaby. CCNP Routing and Switching SWITCH 300-115 Official Cert Guide. Cisco Press, 2014
3. RFC 1122. Requirements for Internet Hosts — Communication Layers.
4. IANA Protocol Numbers: http://www.iana.org/assignments/protocol-numbers
42

More Related Content

What's hot

Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPMaximilan Wilhelm
 
Dynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPFDynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPFMaximilan Wilhelm
 
Best Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learnedBest Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learnedMaximilan Wilhelm
 
Netzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IPNetzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IPMaximilan Wilhelm
 
Juniper policy based filter based forwarding
Juniper policy based filter based forwardingJuniper policy based filter based forwarding
Juniper policy based filter based forwardingMars Chen
 
NAT 64 FPGA Implementation
NAT 64 FPGA ImplementationNAT 64 FPGA Implementation
NAT 64 FPGA ImplementationJanith Rukman
 
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3Maximilan Wilhelm
 
Packet sniffing in switched LANs
Packet sniffing in switched LANsPacket sniffing in switched LANs
Packet sniffing in switched LANsIshraq Al Fataftah
 
Ipv6 cheat sheet
Ipv6 cheat sheetIpv6 cheat sheet
Ipv6 cheat sheetjulianlz
 
PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?
PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?
PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?PROIDEA
 
Building your own CGN boxes with Linux
Building your own CGN boxes with LinuxBuilding your own CGN boxes with Linux
Building your own CGN boxes with LinuxMaximilan Wilhelm
 

What's hot (20)

Dynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGPDynamische Routingprotokolle Aufzucht und Pflege - BGP
Dynamische Routingprotokolle Aufzucht und Pflege - BGP
 
CCNA Dec, 2015 Questions
CCNA Dec, 2015 QuestionsCCNA Dec, 2015 Questions
CCNA Dec, 2015 Questions
 
Dynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPFDynamische Routingprotokolle Aufzucht und Pflege - OSPF
Dynamische Routingprotokolle Aufzucht und Pflege - OSPF
 
Networking
NetworkingNetworking
Networking
 
Anycast all the things
Anycast all the thingsAnycast all the things
Anycast all the things
 
Best Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learnedBest Current Operational Practices - Dos, Don’ts and lessons learned
Best Current Operational Practices - Dos, Don’ts and lessons learned
 
Netzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IPNetzwerkgrundlagen - Von Ethernet bis IP
Netzwerkgrundlagen - Von Ethernet bis IP
 
Juniper policy based filter based forwarding
Juniper policy based filter based forwardingJuniper policy based filter based forwarding
Juniper policy based filter based forwarding
 
NAT 64 FPGA Implementation
NAT 64 FPGA ImplementationNAT 64 FPGA Implementation
NAT 64 FPGA Implementation
 
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
Angewandte Netzwerkgrundlagen reloaded - von Layer 1 bis 3
 
Ccna 1 5
Ccna 1  5Ccna 1  5
Ccna 1 5
 
Packet sniffing in switched LANs
Packet sniffing in switched LANsPacket sniffing in switched LANs
Packet sniffing in switched LANs
 
Ipv6 cheat sheet
Ipv6 cheat sheetIpv6 cheat sheet
Ipv6 cheat sheet
 
CCNA DUMPS 640-802
CCNA DUMPS 640-802CCNA DUMPS 640-802
CCNA DUMPS 640-802
 
PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?
PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?
PLNOG 7: Piotr Jabłoński - Jak wygląda mój pakiet?
 
CCNA 200-120 Exam Questions
CCNA 200-120 Exam QuestionsCCNA 200-120 Exam Questions
CCNA 200-120 Exam Questions
 
JUNOS: OSPF and BGP
JUNOS: OSPF and BGPJUNOS: OSPF and BGP
JUNOS: OSPF and BGP
 
Building your own CGN boxes with Linux
Building your own CGN boxes with LinuxBuilding your own CGN boxes with Linux
Building your own CGN boxes with Linux
 
Ip seminar
Ip seminarIp seminar
Ip seminar
 
Networking basics
Networking basicsNetworking basics
Networking basics
 

Similar to Networking Fundamentals: Local Networks

Networking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network BasicsNetworking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network BasicsAndriy Berestovskyy
 
Chap.1 ethernet introduction
Chap.1 ethernet introductionChap.1 ethernet introduction
Chap.1 ethernet introduction東原 李
 
Hungary Usergroup - Midonet overlay programming
Hungary Usergroup - Midonet overlay programmingHungary Usergroup - Midonet overlay programming
Hungary Usergroup - Midonet overlay programmingMarton Kiss
 
SIEMENS PXG3.L BACnet/IP Router
SIEMENS PXG3.L BACnet/IP RouterSIEMENS PXG3.L BACnet/IP Router
SIEMENS PXG3.L BACnet/IP RouterCONTROLS & SYSTEMS
 
Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014Đồng Quốc Vương
 
Cisco systems hacking layer 2 ethernet switches
Cisco systems   hacking layer 2 ethernet switchesCisco systems   hacking layer 2 ethernet switches
Cisco systems hacking layer 2 ethernet switchesKJ Savaliya
 
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.Sumutiu Marius
 
شرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNAشرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNADawood Aqlan
 
catalyst switch Operation
catalyst switch Operationcatalyst switch Operation
catalyst switch Operationscooby_doo
 
Your app lives on the network - networking for web developers
Your app lives on the network - networking for web developersYour app lives on the network - networking for web developers
Your app lives on the network - networking for web developersWim Godden
 
ASIX AX58200 EtherCAT to Modbus TCP Gateway Solution Introduction
ASIX AX58200 EtherCAT to Modbus TCP Gateway Solution IntroductionASIX AX58200 EtherCAT to Modbus TCP Gateway Solution Introduction
ASIX AX58200 EtherCAT to Modbus TCP Gateway Solution IntroductionASIX Electronics Corporation
 
Examen final ccna2
Examen final ccna2Examen final ccna2
Examen final ccna2Juli Yaret
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)NYversity
 
06 module catalyst 1900 switch operations
06  module  catalyst 1900 switch operations06  module  catalyst 1900 switch operations
06 module catalyst 1900 switch operationsAsif
 
Chapter_3_Networking.ppt
Chapter_3_Networking.pptChapter_3_Networking.ppt
Chapter_3_Networking.pptBlaqray1998
 

Similar to Networking Fundamentals: Local Networks (20)

Networking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network BasicsNetworking Fundamentals: Computer Network Basics
Networking Fundamentals: Computer Network Basics
 
Chap.1 ethernet introduction
Chap.1 ethernet introductionChap.1 ethernet introduction
Chap.1 ethernet introduction
 
Hungary Usergroup - Midonet overlay programming
Hungary Usergroup - Midonet overlay programmingHungary Usergroup - Midonet overlay programming
Hungary Usergroup - Midonet overlay programming
 
Ccna pres
Ccna presCcna pres
Ccna pres
 
SIEMENS PXG3.L BACnet/IP Router
SIEMENS PXG3.L BACnet/IP RouterSIEMENS PXG3.L BACnet/IP Router
SIEMENS PXG3.L BACnet/IP Router
 
Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_5_v5_0_exam_answers_2014
 
Switching
SwitchingSwitching
Switching
 
IPAddressing .pptx
IPAddressing .pptxIPAddressing .pptx
IPAddressing .pptx
 
Cisco systems hacking layer 2 ethernet switches
Cisco systems   hacking layer 2 ethernet switchesCisco systems   hacking layer 2 ethernet switches
Cisco systems hacking layer 2 ethernet switches
 
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
Hacking Layer 2 - Enthernet Switcher Hacking Countermeasures.
 
Network
NetworkNetwork
Network
 
شرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNAشرح مبسط جدا لمنهج سيسكو CCNA
شرح مبسط جدا لمنهج سيسكو CCNA
 
catalyst switch Operation
catalyst switch Operationcatalyst switch Operation
catalyst switch Operation
 
Your app lives on the network - networking for web developers
Your app lives on the network - networking for web developersYour app lives on the network - networking for web developers
Your app lives on the network - networking for web developers
 
ASIX AX58200 EtherCAT to Modbus TCP Gateway Solution Introduction
ASIX AX58200 EtherCAT to Modbus TCP Gateway Solution IntroductionASIX AX58200 EtherCAT to Modbus TCP Gateway Solution Introduction
ASIX AX58200 EtherCAT to Modbus TCP Gateway Solution Introduction
 
Examen final ccna2
Examen final ccna2Examen final ccna2
Examen final ccna2
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)
 
06 module catalyst 1900 switch operations
06  module  catalyst 1900 switch operations06  module  catalyst 1900 switch operations
06 module catalyst 1900 switch operations
 
Icnd210 s08l03
Icnd210 s08l03Icnd210 s08l03
Icnd210 s08l03
 
Chapter_3_Networking.ppt
Chapter_3_Networking.pptChapter_3_Networking.ppt
Chapter_3_Networking.ppt
 

Recently uploaded

Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Deliverybabeytanya
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of indiaimessage0108
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsstephieert
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
 
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls KolkataVIP Call Girls Kolkata Ananya 🤌  8250192130 🚀 Vip Call Girls Kolkata
VIP Call Girls Kolkata Ananya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on DeliveryCall Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
Call Girls In Mumbai Central Mumbai ❤️ 9920874524 👈 Cash on Delivery
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Gram Darshan PPT cyber rural in villages of india
Gram Darshan PPT cyber rural  in villages of indiaGram Darshan PPT cyber rural  in villages of india
Gram Darshan PPT cyber rural in villages of india
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girls
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

Networking Fundamentals: Local Networks

  • 1. Andriy Berestovskyy 2017 ( ц ) А н д р і й Б е р е с т о в с ь к и й networking hour TCP UDP NAT IPsec IPv4 IPv6 internet protocolsAH ESP authentication authorization accounting encapsulation security BGP OSPF ICMP ACLSNAT tunnel PPPoE GRE ARP discovery NDP OSI broadcast multicast IGMP PIM MAC DHCP DNS fragmentation semihalf berestovskyy Networking Fundamentals Local Networks
  • 2. Networking Fundamentals ● Computer Networks ● Networking Models ● > Local Networks ● Internet ● IPv4 Routing ● Transport Protocols 2
  • 3. Krakusa 11, 1st floor Local Area Network 3 Krakusa 11, 2nd floor Krakusa 11, 3rd floor How? Interconnects hosts within a limited area and has its network equipment and interconnects locally managed
  • 4. Typical SOHO LAN 4 Internet Switch Access Point Router SOHO? Distance?
  • 5. Small Office/Home Office (SOHO) — category of business that involves from 1 to 10 workers — Wikipedia 5
  • 6. Building 1 Typical Corporate LAN 6 Corporate Network Floor 2 Floor 1 Distance?
  • 7. Building 1 Typical Corporate Network 7 Corporate Network Building 2 Building 3 Building 4 Distance?
  • 8. Ethernet Physical Layer 8 Application Presentation Session Transport Network Data Link Physical Frame Bits MAC Data FCS IP Data TCP Data Packet Segment Data 7 6 5 4 3 2 1 Hi! Salut!
  • 9. Typical Ethernet Physical Layers 9 10 Mbps Speed 100 Mbps 1 Gbps Name 1 Gbps 10 Gbps Medium Distance 10BASE-T Twisted Pair 100 m 100BASE-T Twisted Pair 100 m 10 Mbps10BASE2 Coaxial Cable 100 m 1000BASE-T Twisted Pair 100 m 1000BASE-LX SM Fiber 5 km 10GBASE-LR SM Fiber 10 km 10 Gbps10GBASE-ER SM Fiber 40 km Ethernet Fast Ethernet 10 Gigabit Ethernet Gigabit Ethernet More?
  • 10. Switch Ethernet Link Over a Twisted Pair 10 Host Cable RJ-45 Connector RJ-45 Connector RJ-45 Port RJ-45 Port
  • 11. Switch Fast Ethernet Straight Cable 11 Host TX RX RX TX 1 2 3 6 Twisted Pair Twisted Pair 1 2 3 6 Host 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Switch 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 MDI* MDI-X* * Media Dependent Interface (Crossover)
  • 12. Host Fast Ethernet Crossover Cable 12 Host TX TX RX RX 1 2 3 6 Twisted Pair Twisted Pair 1 2 3 6 Host 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Host 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 MDI MDI
  • 14. Cable Usage 14 Access Point CrossHost Router Switch Hub Host Cross Access Point Cross Router Straight Hub Switch Cross Cross Cross Cross Cross Cross Cross Cross Cross Cross MDI MDI-X Straight Straight Straight Straight Straight Straight Straight Straight Straight Straight Straight MDI-X
  • 15. Gigabit Ethernet Cable Pinout 15 Host 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Host 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 MDI MDI Host 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 Switch 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 MDI MDI-X
  • 16. Host BHost A 10BASE2 Physical Layer 16 Data Data 0 V +1 V -1 V Data 1 0 1 0 0 1 1 1 0 0 1 Source: https://en.wikipedia.org/wiki/Manchester_code ● Manchester encoding ● Half duplex Duplex? BNC T-Connector BNC T-Connector Why?
  • 17. Half Duplex Communication 17 send or receive :( or What if both?
  • 19. Collision occurs when several demands are made simultaneously on equipment that can handle only one at a time — Wikipedia 19
  • 20. Collision domain — section of a network where data packets can collide with one another — Wikipedia 20 Broadcast domain?
  • 21. Shared Medium Collision Domain 21 Host A Host B Host C Host D 10Base2 Ethernet over Coaxial cable Collision domain? C B A D 1 1
  • 22. Collision Domain Shared Medium Collision Domain 22 Host A Host B Host C Host D C B A D 2 10Base2 Ethernet over Coaxial cable 1 1 Solutions?
  • 23. CSMA/CD Carrier-Sense Multiple Access with Collision Detection media access control method: 1. IF medium is not idle THEN goto 1 2. Start transmission + monitor for a collision 3. IF collision occurred THEN wait, goto 1 23
  • 24. Repeater Hub TX Host A 10BASE-T Physical Layer 24 TX RX RX TX RX TX 0 V +1 V -1 V Data 1 0 1 0 0 1 1 1 0 0 1 ● Manchester encoding ● Half duplex Why? RX TX RX
  • 25. Repeater Hub Collision Domain 25 Host A Host B Host C Host D Repeater Hub Collision domain? 10Base-T Ethernet over a Twisted Pair A B A C 1 1
  • 26. Collision Domain Repeater Hub Collision Domain 26 Host A Host B Host C Host D Repeater Hub A B A C 1 1 A C A B 2 A C A B 2
  • 27. Switch RX TX Host A 10GBASE-T Physical Layer 27 TX RX More info: https://en.wikipedia.org/wiki/Pulse-amplitude_modulation RX TX RX TX 0 V +1 V -1 V Data* 1 0 1 0 0 1 1 1 0 0 1 0 ● PAM-16 encoding* ● Full duplex Why? TX RX CPU 0000 * oversimplification! 0010 0100 0110 1111 1101 1011 1001 RAMRAM 1 1 1 1 1 1 0 1 0 0 0 1 0 1 0 0 1 1 1 1 0 1 1 1 1 0 0 1 1 0 0 0 What for?
  • 28. Switch Collision Domain 28 Host A Host B Host C Host D Collision domain? A B A C 1 1
  • 29. Switch Collision Domains 29 Host A Host B Host C Host D A B A C 1 A B 1 A C Switch eliminates collisions by breaking down collision domain 2
  • 30. Collision Domain Switch RX TX Host A Switch Stores & Forwards 30 TX RX RX TX RX TX TX RX CPU RAMRAM A C A B Switch stores Ethernet frame in RAM and then forwards it Pros/Cons?
  • 31. Ethernet Data Link Layer 31 Application Presentation Session Transport Network Data Link Physical Frame Bits MAC Data FCS IP Data TCP Data Packet Segment Data 7 6 5 4 3 2 1 Hi! Salut!
  • 32. Ethernet Frame Format 32Source: https://en.wikipedia.org/wiki/Ethernet_frame Ethernet Frame Bits 2 1 7 Preamble, 7 octets Start of Frame, 1 octet 6 Destination MAC, 6 octets 6 Source MAC, 6 octets 4 Optional 802.1q (VLAN) Tag, 4 octets Ethertype, 2 octets 46-1500 4 Frame Check Sequence, 4 octets 12 Interframe gap, 12 octetsPayload, 46-1500 octets 72 — 1530 octets 64 — 1522 octets TrailerHeader
  • 33. Optional 802.1q (VLAN) Tag 33 Payload ... MAC Destination MAC Destination MAC Source MAC Source Ethertype 0 32 14Bytes Frame Check Sequence Payload ... MAC Destination MAC Destination MAC Source MAC Source Ethertype 0 32 18Bytes Frame Check Sequence 0x8100 VIDPCP D PCP — Priority Code Point (Class of service) (3 bits) DEI — Drop Eligible Indicator (1 bit) VID — VLAN Identifier (12 bit) Protected by Frame Check Sequence
  • 34. Ethernet MAC Address 34* OUI — Organizationally Unique Identifier 6 Destination MAC, 6 octets 6 Source MAC, 6 octets 4 46-1500 4 123456Intel 825992 789abcIntel I350 123456Cavium 2 2 Family Name First Name NIC IDOUI*2 24 bits 24 bits b7 0: globally unique 1: locally managed b6 0: unicast 1: multicast 654321 b5 b4 b3 b2 b1 b0
  • 35. Ethernet Type 35 6 6 Ethertype, 2 octets 4 46-1500 4 1 Eth Type IPv4 IPv4 Payload Eth Ethertype = 0x8000 2 Eth Type IPv6 IPv6 Payload Eth Ethertype = 0x86DD
  • 36. Per-VLAN Switch Logic 36 Host A Host B Host C Host D D A Why? PortMAC 1 2 3 4 MAC Table Learn!
  • 37. 1A Per-VLAN Switch Logic 37 Host A Host B Host C Host D D A 1 PortMAC 1 2 3 4 MAC Table 2 1. Check Ethernet FCS 2. Add A to MAC table 3. No D in MAC table: ○ what to do?
  • 38. 1A Per-VLAN Switch Logic 38 Host A Host B Host C Host D D A 1 PortMAC 1 2 3 4 MAC Table 2 D A D A 3 3 “Unknown unicast” D A 3 1. Check Ethernet FCS 2. Add A to MAC table 3. No D in MAC table: ○ send to all ports Problems?
  • 39. 1A Per-VLAN Switch Logic 39 Host A Host B Host C Host D 4 Port D MAC 1 2 3 4 MAC Table 2 A D 1 1. Check Ethernet FCS 2. Add D to MAC table 3. A in MAC table: ○ send to port 1 A D 3
  • 40. 1. Receive frame, check Ethernet FCS 2. Add/update source MAC in MAC table 3. If multicast bit is set: a. forward to all ports, but the source 4. If destination is in MAC table: a. forward to the specific port 5. Else, forward to all ports Per-VLAN Switch Logic Summary 40
  • 41. Local Networks Checklist 1. LAN? 2. Ethernet? 3. Ethernet physical layers? 4. Straight through vs crossover cables? 5. Duplex? 6. Collision? 7. Collision domains for hub, switch? 8. CSMA/CD? 9. Ethernet header? 10. 802.1q tag? 11. Switch logic? 41
  • 42. References 1. Kevin Wallace. CCNP Routing and Switching ROUTE 300-101 Official Cert Guide. Cisco Press, 2014 2. David Hucaby. CCNP Routing and Switching SWITCH 300-115 Official Cert Guide. Cisco Press, 2014 3. RFC 1122. Requirements for Internet Hosts — Communication Layers. 4. IANA Protocol Numbers: http://www.iana.org/assignments/protocol-numbers 42