SlideShare a Scribd company logo
1 of 3
Download to read offline
Networking​ ​Example
Consider​ ​that​ ​in​ ​private​ ​network​ ​A,​ ​Your​ ​PC​ ​is​ ​connected​ ​to​ ​some​ ​local​ ​server​ ​having​ ​DNS​ ​and​ ​DHCP​ ​support,​ ​and​ ​your
browser​ ​initialing​ ​the​ ​request​ ​for​ ​www.google.com​ ​a​ ​very​ ​first​ ​time.
Traversal​ ​from​ ​your​ ​PC​ ​to​ ​the​ ​server​ ​in​ ​network-B​ ​where​ ​this​ ​website​ ​is​ ​hosted,
A​ ​-​ ​Part​ ​of​ ​the​ ​network:
When​ ​you​ ​search​ ​for​ ​www.google.com​ ​on​ ​browser,​ ​it​ ​ends​ ​up​ ​at​ ​https​ ​request.​ ​First​ ​thing​ ​that​ ​PC​ ​has​ ​to​ ​do​ ​is​ ​to​ ​resolve
the​ ​DNS​ ​-​ ​‘​www.google.com​’​ ​.​ ​​ ​Every​ ​PC​ ​has​ ​its​ ​own​ ​database​ ​to​ ​hold​ ​DNS​ ​<->​ ​IP​ ​address​ ​mapping​ ​for​ ​the​ ​famous
domain​ ​names.​ ​So,​ ​PC​ ​will​ ​look​ ​into​ ​its​ ​database​ ​to​ ​resolve​ ​this​ ​first​ ​but​ ​let’s​ ​assume​ ​that​ ​it​ ​won’t​ ​find​ ​the​ ​entry,​ ​so​ ​PC
will​ ​generate​ ​DNS​ ​query​ ​to​ ​the​ ​configured​ ​DNS​ ​server​ ​-​ ​having​ ​IP​ ​192.168.1.5​ ​(Considering​ ​that​ ​user​ ​has​ ​already
configured​ ​DNS​ ​server​ ​address).
PC​ ​will​ ​look​ ​into​ ​his​ ​ARP​ ​table​ ​for​ ​the​ ​DMAC​ ​of​ ​192.168.1.5​ ​but​ ​let’s​ ​assume​ ​that​ ​it​ ​won’t​ ​find​ ​the​ ​entry,​ ​so​ ​PC​ ​will
generate​ ​ARP​ ​request​ ​having:
SMAC-​ ​*00:01
DMAC-*FF:FF​ ​(All)
SIP-​ ​192.168.1.10
DIP-​ ​192.168.1.5
Switch0​ ​will​ ​receive​ ​it​ ​and​ ​broadcast​ ​it​ ​to​ ​all​ ​the​ ​other​ ​ports.​ ​Switch0​ ​will​ ​also​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table,
as​ ​it​ ​has​ ​received​ ​the​ ​request​ ​from​ ​that​ ​MAC​ ​the​ ​first​ ​time.​ ​DNS​ ​server​ ​will​ ​receive​ ​this​ ​request​ ​and​ ​generate​ ​unicast
ARP​ ​response​ ​having:
SMAC-​ ​*00:03
DMAC-*00:01
SIP-​ ​192.168.1.5
DIP-​ ​192.168.1.10
Switch0​ ​will​ ​again​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table​ ​and​ ​forward​ ​this​ ​packet​ ​to​ ​PC​ ​based​ ​on​ ​look​ ​up.​ ​Now,​ ​on
reply​ ​of​ ​ARP​ ​PC​ ​will​ ​update​ ​its​ ​ARP​ ​table​ ​and​ ​send​ ​DNS​ ​query​ ​to​ ​DNS​ ​server​ ​with:
UDP/TCP​ ​Port:​ ​53
SMAC-​ ​*00:01
DMAC-*00:03
SIP-​ ​192.168.1.10
DIP-​ ​192.168.1.5
DNS​ ​server​ ​will​ ​reply​ ​with​ ​destination​ ​server’s​ ​public​ ​IP​ ​-​ ​144.11.1.10.​ ​Where,
UDP/TCP​ ​Port:​ ​53
SMAC-​ ​*00:03
DMAC-*00:01
SIP-​ ​192.168.1.5
DIP-​ ​192.168.1.10
In​ ​last​ ​two​ ​traversals,​ ​switch0​ ​would​ ​easily​ ​able​ ​to​ ​forward​ ​as​ ​MACs​ ​are​ ​already​ ​learned.
Now​ ​on​ ​the​ ​basis​ ​of​ ​subnet​ ​mask,​ ​PC​ ​will​ ​identify​ ​that​ ​144.11.1.10​ ​is​ ​not​ ​in​ ​the​ ​same​ ​subnet,​ ​so​ ​PC​ ​will​ ​decide​ ​to​ ​send
https​ ​packet​ ​stream​ ​to​ ​the​ ​default​ ​gateway​ ​-​ ​192.168.1.1​ ​of​ ​the​ ​local​ ​network​ ​(Considering​ ​that​ ​user​ ​has​ ​already
configured​ ​Local​ ​gateway​ ​address).
PC​ ​will​ ​look​ ​into​ ​his​ ​ARP​ ​table​ ​for​ ​DMAC​ ​of​ ​192.168.1.1​ ​but​ ​assume​ ​that​ ​it​ ​won’t​ ​find​ ​it,​ ​so​ ​PC​ ​will​ ​generate​ ​ARP​ ​request
having,
SMAC-​ ​*00:01,
DMAC-*FF:FF​ ​(All)
SIP-​ ​192.168.1.10
DIP-​ ​192.168.1.1
Switch0​ ​will​ ​receive​ ​it​ ​and​ ​broadcast​ ​it​ ​to​ ​all​ ​the​ ​other​ ​ports.​ ​Router0​ ​will​ ​receive​ ​this​ ​request​ ​and​ ​generate​ ​unicast​ ​ARP
response​ ​having:
SMAC-​ ​*00:02
DMAC-*00:01
SIP-​ ​192.168.1.1
DIP-​ ​192.168.1.10
Now,​ ​Switch0​ ​will​ ​again​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table​ ​and​ ​forward​ ​this​ ​packet​ ​to​ ​PC​ ​based​ ​on​ ​look​ ​up.​ ​PC​ ​will
update​ ​its​ ​ARP​ ​table​ ​and​ ​send​ ​https​ ​data​ ​packet​ ​to​ ​gateway​ ​router​ ​having:
SMAC-​ ​*00:01
DMAC-*00:02
SIP-​ ​192.168.1.10
DIP-​ ​144.11.1.10
Communication​ ​between​ ​A​ ​nad​ ​B​ ​part​ ​of​ ​the​ ​networks:
Now​ ​packet​ ​is​ ​out​ ​from​ ​PC’S​ ​local​ ​network,​ ​and​ ​it​ ​has​ ​to​ ​find​ ​a​ ​route​ ​to​ ​reach​ ​to​ ​the​ ​local​ ​network​ ​of​ ​the​ ​destination
server.​ ​Ideally,​ ​depends​ ​on​ ​the​ ​administrator’s​ ​configuration​ ​across​ ​the​ ​entire​ ​path​ ​there​ ​would​ ​be​ ​static​ ​and​ ​dynamic
routing​ ​protocols​ ​running​ ​in​ ​the​ ​network,​ ​on​ ​the​ ​basis​ ​of​ ​them​ ​multiple​ ​router​ ​lookups​ ​will​ ​occur​ ​and​ ​packet​ ​will​ ​find​ ​a
path​ ​from​ ​Router0​ ​to​ ​Router1.​ ​Remember​ ​that,​ ​while​ ​traversing​ ​through​ ​internet​ ​ARP​ ​and​ ​MAC​ ​forwarding​ ​lookups​ ​and
related​ ​operation​ ​will​ ​occur​ ​frequently​ ​as​ ​L2​ ​traversals​ ​are​ ​essential​ ​for​ ​​ ​L3.
Not​ ​going​ ​in​ ​further​ ​detail,​ ​when​ ​packet​ ​leaves​ ​Router0​ ​for​ ​the​ ​next​ ​route.​ ​The​ ​contents​ ​will​ ​be​ ​as​ ​shown​ ​below​ ​where
due​ ​to​ ​NAT​ ​private​ ​IP-​ ​192.168.1.10​ ​is​ ​replaced​ ​by​ ​public​ ​IP-​ ​11.1.1.75​ ​and​ ​entry​ ​for​ ​the​ ​same​ ​is​ ​also​ ​added​ ​in​ ​the​ ​NAT
mapping​ ​table​ ​of​ ​the​ ​router.
SMAC-​ ​*00:55
DMAC-*00:XX​ ​(Any*)
SIP-​ ​11.1.1.75
DIP-​ ​144.11.1.10
When​ ​packet​ ​will​ ​reach​ ​to​ ​Router1,​ ​the​ ​contents​ ​would​ ​be​ ​like,
SMAC-​ ​*00:XX​ ​(Any*)
DMAC-*00:A1
SIP-​ ​11.1.1.75
DIP-​ ​144.11.1.10
At​ ​Router1,​ ​there​ ​will​ ​be​ ​a​ ​NAT​ ​mapping​ ​between​ ​public​ ​IP-144.11.1.10​ ​and​ ​private​ ​IP-​ ​10.10.1.100,​ ​so​ ​the​ ​packet​ ​will​ ​be
modified​ ​accordingly​ ​to​ ​use​ ​private​ ​IP​ ​in​ ​the​ ​local​ ​network​ ​of​ ​destination​ ​server.
B​ ​-​ ​Part​ ​of​ ​the​ ​network:
Considering​ ​Router1​ ​as​ ​a​ ​default​ ​gateway​ ​for​ ​the​ ​private​ ​network​ ​of​ ​the​ ​server​ ​and​ ​we​ ​want​ ​to​ ​forward​ ​https​ ​request​ ​to
DIP:​ ​10.10.1.100.​ ​Router1​ ​will​ ​look​ ​into​ ​his​ ​ARP​ ​table​ ​for​ ​the​ ​DMAC​ ​of​ ​10.10.1.100​ ​but​ ​consider​ ​it​ ​won’t​ ​find​ ​it.
Router1​ ​will​ ​generate​ ​ARP​ ​request​ ​having:
SMAC-​ ​*00:F1
DMAC-*FF:FF​ ​(All)
SIP-​ ​10.10.1.1
DIP-​ ​10.10.1.100
Switch1​ ​will​ ​receive​ ​it​ ​and​ ​broadcast​ ​it​ ​to​ ​all​ ​the​ ​other​ ​ports.​ ​Switch1​ ​will​ ​also​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table,
as​ ​it​ ​has​ ​received​ ​the​ ​request​ ​from​ ​that​ ​MAC​ ​the​ ​first​ ​time.​ ​Destination​ ​server​ ​will​ ​unicast​ ​ARP​ ​response​ ​having:
SMAC-​ ​*00:F2
DMAC-*00:F1
SIP-​ ​10.10.1.100
DIP-​ ​10.10.1.1
Switch1​ ​will​ ​again​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table​ ​and​ ​forward​ ​this​ ​packet​ ​to​ ​Router1​ ​based​ ​on​ ​look​ ​up.
Router1​ ​at​ ​server​ ​side​ ​will​ ​update​ ​its​ ​ARP​ ​table​ ​and​ ​send​ ​https​ ​data​ ​packet​ ​to​ ​server​ ​having:
SMAC-​ ​*00:F1
DMAC-*00:F2
SIP-​ ​11.1.1.75
DIP-​ ​10.10.1.100
Now,​ ​the​ ​reverse​ ​traversal​ ​from​ ​destination​ ​server​ ​to​ ​the​ ​PC​ ​will​ ​follow​ ​the​ ​same​ ​traditional​ ​terminologies​ ​that​ ​were
followed​ ​while​ ​traversing​ ​in​ ​the​ ​forward​ ​direction.​ ​And​ ​definitely​ ​the​ ​reverse​ ​traversal​ ​will​ ​be​ ​smoother​ ​as​ ​lookups​ ​and
routes​ ​will​ ​be​ ​easily​ ​available.

More Related Content

What's hot

Dns server in packet tracer converted (labanna saha)
Dns server in packet tracer converted (labanna saha)Dns server in packet tracer converted (labanna saha)
Dns server in packet tracer converted (labanna saha)TanjilurRahman6
 
Initial LTE call Setup Flow
Initial LTE call Setup FlowInitial LTE call Setup Flow
Initial LTE call Setup Flowassinha
 
Meeting 7 : host configuration: dhcp
Meeting 7 : host configuration: dhcpMeeting 7 : host configuration: dhcp
Meeting 7 : host configuration: dhcpSyaiful Ahdan
 
Arp fainal 000 Computer Networking
Arp fainal 000 Computer Networking Arp fainal 000 Computer Networking
Arp fainal 000 Computer Networking Md Sagor Sarkar
 
Meeting 5.1 : telnet
Meeting 5.1 : telnetMeeting 5.1 : telnet
Meeting 5.1 : telnetSyaiful Ahdan
 
LOAD BALANCING PCC MENGGUNAKAN 2 SPEEDY
LOAD BALANCING PCC MENGGUNAKAN 2 SPEEDYLOAD BALANCING PCC MENGGUNAKAN 2 SPEEDY
LOAD BALANCING PCC MENGGUNAKAN 2 SPEEDYAdhie Lesmana
 
Meeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtpMeeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtpSyaiful Ahdan
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet CountAmazon Web Services
 
Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server iSyaiful Ahdan
 
Training Day Slides
Training Day SlidesTraining Day Slides
Training Day Slidesadam_merritt
 

What's hot (20)

Dns server in packet tracer converted (labanna saha)
Dns server in packet tracer converted (labanna saha)Dns server in packet tracer converted (labanna saha)
Dns server in packet tracer converted (labanna saha)
 
Initial LTE call Setup Flow
Initial LTE call Setup FlowInitial LTE call Setup Flow
Initial LTE call Setup Flow
 
Meeting 7 : host configuration: dhcp
Meeting 7 : host configuration: dhcpMeeting 7 : host configuration: dhcp
Meeting 7 : host configuration: dhcp
 
IPTABLES
IPTABLESIPTABLES
IPTABLES
 
Dhcp Snooping
Dhcp SnoopingDhcp Snooping
Dhcp Snooping
 
Arp spoofing
Arp spoofingArp spoofing
Arp spoofing
 
Arp fainal 000 Computer Networking
Arp fainal 000 Computer Networking Arp fainal 000 Computer Networking
Arp fainal 000 Computer Networking
 
Meeting 5.1 : telnet
Meeting 5.1 : telnetMeeting 5.1 : telnet
Meeting 5.1 : telnet
 
Nova HA
Nova HANova HA
Nova HA
 
LOAD BALANCING PCC MENGGUNAKAN 2 SPEEDY
LOAD BALANCING PCC MENGGUNAKAN 2 SPEEDYLOAD BALANCING PCC MENGGUNAKAN 2 SPEEDY
LOAD BALANCING PCC MENGGUNAKAN 2 SPEEDY
 
Meeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtpMeeting 11. electronic mail: smtp
Meeting 11. electronic mail: smtp
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet Count
 
Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server i
 
DHCP Snooping
DHCP SnoopingDHCP Snooping
DHCP Snooping
 
Module17 nat v2
Module17 nat v2Module17 nat v2
Module17 nat v2
 
27 WWW and_HTTP
27 WWW and_HTTP27 WWW and_HTTP
27 WWW and_HTTP
 
Week7 final
Week7 finalWeek7 final
Week7 final
 
Static NAT
Static NATStatic NAT
Static NAT
 
F5 tcpdump
F5 tcpdumpF5 tcpdump
F5 tcpdump
 
Training Day Slides
Training Day SlidesTraining Day Slides
Training Day Slides
 

Similar to Networking Puzzle

DHCP,ARP in networks
DHCP,ARP in networksDHCP,ARP in networks
DHCP,ARP in networksssuser15869a
 
A day in the life of a Web Request
A day in the life of a Web RequestA day in the life of a Web Request
A day in the life of a Web RequestMD.ANISUR RAHMAN
 
IP, DNS and MAC concepts
IP, DNS and MAC conceptsIP, DNS and MAC concepts
IP, DNS and MAC conceptsIrshaad Abdool
 
Lecture 23 DHCP and NAT.pptx
Lecture 23 DHCP and NAT.pptxLecture 23 DHCP and NAT.pptx
Lecture 23 DHCP and NAT.pptxHanzlaNaveed1
 
Lecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptxLecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptxHanzlaNaveed1
 
DNS server packet tracer
DNS server packet tracerDNS server packet tracer
DNS server packet tracerJalalMiah5
 
Improved secure address resolution protocol
Improved secure address resolution protocolImproved secure address resolution protocol
Improved secure address resolution protocolcsandit
 
Computer network (2)
Computer network (2)Computer network (2)
Computer network (2)NYversity
 
Soal lks networking support 2013 SMK N 1 Binangun
Soal lks networking support 2013 SMK N 1 BinangunSoal lks networking support 2013 SMK N 1 Binangun
Soal lks networking support 2013 SMK N 1 BinangunRudi AdiTia
 
Type of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 exampleType of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 exampleHimani Singh
 
bank soal mikrotik.docx
bank soal mikrotik.docxbank soal mikrotik.docx
bank soal mikrotik.docxesr98
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basicstmavroidis
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)NYversity
 

Similar to Networking Puzzle (20)

DHCP,ARP in networks
DHCP,ARP in networksDHCP,ARP in networks
DHCP,ARP in networks
 
A day in the life of a Web Request
A day in the life of a Web RequestA day in the life of a Web Request
A day in the life of a Web Request
 
dhcp.pdf
dhcp.pdfdhcp.pdf
dhcp.pdf
 
IP, DNS and MAC concepts
IP, DNS and MAC conceptsIP, DNS and MAC concepts
IP, DNS and MAC concepts
 
Dhcpsession
DhcpsessionDhcpsession
Dhcpsession
 
Configuration DHCP
Configuration DHCPConfiguration DHCP
Configuration DHCP
 
Lession4 Dhcp
Lession4 DhcpLession4 Dhcp
Lession4 Dhcp
 
Dhcp confg
Dhcp confgDhcp confg
Dhcp confg
 
Lecture 23 DHCP and NAT.pptx
Lecture 23 DHCP and NAT.pptxLecture 23 DHCP and NAT.pptx
Lecture 23 DHCP and NAT.pptx
 
Lecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptxLecture 26 Link Layer .pptx
Lecture 26 Link Layer .pptx
 
DNS server packet tracer
DNS server packet tracerDNS server packet tracer
DNS server packet tracer
 
Improved secure address resolution protocol
Improved secure address resolution protocolImproved secure address resolution protocol
Improved secure address resolution protocol
 
DHCP
DHCPDHCP
DHCP
 
Computer network (2)
Computer network (2)Computer network (2)
Computer network (2)
 
Soal lks networking support 2013 SMK N 1 Binangun
Soal lks networking support 2013 SMK N 1 BinangunSoal lks networking support 2013 SMK N 1 Binangun
Soal lks networking support 2013 SMK N 1 Binangun
 
Type of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 exampleType of DDoS attacks with hping3 example
Type of DDoS attacks with hping3 example
 
bank soal mikrotik.docx
bank soal mikrotik.docxbank soal mikrotik.docx
bank soal mikrotik.docx
 
Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basics
 
Computer network (16)
Computer network (16)Computer network (16)
Computer network (16)
 
6005679.ppt
6005679.ppt6005679.ppt
6005679.ppt
 

More from Aalok Shah

Network Telemetry
Network TelemetryNetwork Telemetry
Network TelemetryAalok Shah
 
English Learning at Office with Fun - 2
English Learning at Office with Fun - 2English Learning at Office with Fun - 2
English Learning at Office with Fun - 2Aalok Shah
 
English Learning at Office with Fun
English Learning at Office with FunEnglish Learning at Office with Fun
English Learning at Office with FunAalok Shah
 
Software Defined Networking (SDN)
Software Defined Networking (SDN)Software Defined Networking (SDN)
Software Defined Networking (SDN)Aalok Shah
 
Network Topologies, L1-L2 Basics, Networking Devices
Network Topologies, L1-L2 Basics, Networking DevicesNetwork Topologies, L1-L2 Basics, Networking Devices
Network Topologies, L1-L2 Basics, Networking DevicesAalok Shah
 
Implement Servo Motor Drive
Implement Servo Motor DriveImplement Servo Motor Drive
Implement Servo Motor DriveAalok Shah
 

More from Aalok Shah (6)

Network Telemetry
Network TelemetryNetwork Telemetry
Network Telemetry
 
English Learning at Office with Fun - 2
English Learning at Office with Fun - 2English Learning at Office with Fun - 2
English Learning at Office with Fun - 2
 
English Learning at Office with Fun
English Learning at Office with FunEnglish Learning at Office with Fun
English Learning at Office with Fun
 
Software Defined Networking (SDN)
Software Defined Networking (SDN)Software Defined Networking (SDN)
Software Defined Networking (SDN)
 
Network Topologies, L1-L2 Basics, Networking Devices
Network Topologies, L1-L2 Basics, Networking DevicesNetwork Topologies, L1-L2 Basics, Networking Devices
Network Topologies, L1-L2 Basics, Networking Devices
 
Implement Servo Motor Drive
Implement Servo Motor DriveImplement Servo Motor Drive
Implement Servo Motor Drive
 

Recently uploaded

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 

Networking Puzzle

  • 1. Networking​ ​Example Consider​ ​that​ ​in​ ​private​ ​network​ ​A,​ ​Your​ ​PC​ ​is​ ​connected​ ​to​ ​some​ ​local​ ​server​ ​having​ ​DNS​ ​and​ ​DHCP​ ​support,​ ​and​ ​your browser​ ​initialing​ ​the​ ​request​ ​for​ ​www.google.com​ ​a​ ​very​ ​first​ ​time. Traversal​ ​from​ ​your​ ​PC​ ​to​ ​the​ ​server​ ​in​ ​network-B​ ​where​ ​this​ ​website​ ​is​ ​hosted, A​ ​-​ ​Part​ ​of​ ​the​ ​network: When​ ​you​ ​search​ ​for​ ​www.google.com​ ​on​ ​browser,​ ​it​ ​ends​ ​up​ ​at​ ​https​ ​request.​ ​First​ ​thing​ ​that​ ​PC​ ​has​ ​to​ ​do​ ​is​ ​to​ ​resolve the​ ​DNS​ ​-​ ​‘​www.google.com​’​ ​.​ ​​ ​Every​ ​PC​ ​has​ ​its​ ​own​ ​database​ ​to​ ​hold​ ​DNS​ ​<->​ ​IP​ ​address​ ​mapping​ ​for​ ​the​ ​famous domain​ ​names.​ ​So,​ ​PC​ ​will​ ​look​ ​into​ ​its​ ​database​ ​to​ ​resolve​ ​this​ ​first​ ​but​ ​let’s​ ​assume​ ​that​ ​it​ ​won’t​ ​find​ ​the​ ​entry,​ ​so​ ​PC will​ ​generate​ ​DNS​ ​query​ ​to​ ​the​ ​configured​ ​DNS​ ​server​ ​-​ ​having​ ​IP​ ​192.168.1.5​ ​(Considering​ ​that​ ​user​ ​has​ ​already configured​ ​DNS​ ​server​ ​address). PC​ ​will​ ​look​ ​into​ ​his​ ​ARP​ ​table​ ​for​ ​the​ ​DMAC​ ​of​ ​192.168.1.5​ ​but​ ​let’s​ ​assume​ ​that​ ​it​ ​won’t​ ​find​ ​the​ ​entry,​ ​so​ ​PC​ ​will generate​ ​ARP​ ​request​ ​having: SMAC-​ ​*00:01 DMAC-*FF:FF​ ​(All) SIP-​ ​192.168.1.10 DIP-​ ​192.168.1.5 Switch0​ ​will​ ​receive​ ​it​ ​and​ ​broadcast​ ​it​ ​to​ ​all​ ​the​ ​other​ ​ports.​ ​Switch0​ ​will​ ​also​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table, as​ ​it​ ​has​ ​received​ ​the​ ​request​ ​from​ ​that​ ​MAC​ ​the​ ​first​ ​time.​ ​DNS​ ​server​ ​will​ ​receive​ ​this​ ​request​ ​and​ ​generate​ ​unicast ARP​ ​response​ ​having: SMAC-​ ​*00:03 DMAC-*00:01 SIP-​ ​192.168.1.5 DIP-​ ​192.168.1.10
  • 2. Switch0​ ​will​ ​again​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table​ ​and​ ​forward​ ​this​ ​packet​ ​to​ ​PC​ ​based​ ​on​ ​look​ ​up.​ ​Now,​ ​on reply​ ​of​ ​ARP​ ​PC​ ​will​ ​update​ ​its​ ​ARP​ ​table​ ​and​ ​send​ ​DNS​ ​query​ ​to​ ​DNS​ ​server​ ​with: UDP/TCP​ ​Port:​ ​53 SMAC-​ ​*00:01 DMAC-*00:03 SIP-​ ​192.168.1.10 DIP-​ ​192.168.1.5 DNS​ ​server​ ​will​ ​reply​ ​with​ ​destination​ ​server’s​ ​public​ ​IP​ ​-​ ​144.11.1.10.​ ​Where, UDP/TCP​ ​Port:​ ​53 SMAC-​ ​*00:03 DMAC-*00:01 SIP-​ ​192.168.1.5 DIP-​ ​192.168.1.10 In​ ​last​ ​two​ ​traversals,​ ​switch0​ ​would​ ​easily​ ​able​ ​to​ ​forward​ ​as​ ​MACs​ ​are​ ​already​ ​learned. Now​ ​on​ ​the​ ​basis​ ​of​ ​subnet​ ​mask,​ ​PC​ ​will​ ​identify​ ​that​ ​144.11.1.10​ ​is​ ​not​ ​in​ ​the​ ​same​ ​subnet,​ ​so​ ​PC​ ​will​ ​decide​ ​to​ ​send https​ ​packet​ ​stream​ ​to​ ​the​ ​default​ ​gateway​ ​-​ ​192.168.1.1​ ​of​ ​the​ ​local​ ​network​ ​(Considering​ ​that​ ​user​ ​has​ ​already configured​ ​Local​ ​gateway​ ​address). PC​ ​will​ ​look​ ​into​ ​his​ ​ARP​ ​table​ ​for​ ​DMAC​ ​of​ ​192.168.1.1​ ​but​ ​assume​ ​that​ ​it​ ​won’t​ ​find​ ​it,​ ​so​ ​PC​ ​will​ ​generate​ ​ARP​ ​request having, SMAC-​ ​*00:01, DMAC-*FF:FF​ ​(All) SIP-​ ​192.168.1.10 DIP-​ ​192.168.1.1 Switch0​ ​will​ ​receive​ ​it​ ​and​ ​broadcast​ ​it​ ​to​ ​all​ ​the​ ​other​ ​ports.​ ​Router0​ ​will​ ​receive​ ​this​ ​request​ ​and​ ​generate​ ​unicast​ ​ARP response​ ​having: SMAC-​ ​*00:02 DMAC-*00:01 SIP-​ ​192.168.1.1 DIP-​ ​192.168.1.10 Now,​ ​Switch0​ ​will​ ​again​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table​ ​and​ ​forward​ ​this​ ​packet​ ​to​ ​PC​ ​based​ ​on​ ​look​ ​up.​ ​PC​ ​will update​ ​its​ ​ARP​ ​table​ ​and​ ​send​ ​https​ ​data​ ​packet​ ​to​ ​gateway​ ​router​ ​having: SMAC-​ ​*00:01 DMAC-*00:02 SIP-​ ​192.168.1.10 DIP-​ ​144.11.1.10 Communication​ ​between​ ​A​ ​nad​ ​B​ ​part​ ​of​ ​the​ ​networks: Now​ ​packet​ ​is​ ​out​ ​from​ ​PC’S​ ​local​ ​network,​ ​and​ ​it​ ​has​ ​to​ ​find​ ​a​ ​route​ ​to​ ​reach​ ​to​ ​the​ ​local​ ​network​ ​of​ ​the​ ​destination server.​ ​Ideally,​ ​depends​ ​on​ ​the​ ​administrator’s​ ​configuration​ ​across​ ​the​ ​entire​ ​path​ ​there​ ​would​ ​be​ ​static​ ​and​ ​dynamic routing​ ​protocols​ ​running​ ​in​ ​the​ ​network,​ ​on​ ​the​ ​basis​ ​of​ ​them​ ​multiple​ ​router​ ​lookups​ ​will​ ​occur​ ​and​ ​packet​ ​will​ ​find​ ​a
  • 3. path​ ​from​ ​Router0​ ​to​ ​Router1.​ ​Remember​ ​that,​ ​while​ ​traversing​ ​through​ ​internet​ ​ARP​ ​and​ ​MAC​ ​forwarding​ ​lookups​ ​and related​ ​operation​ ​will​ ​occur​ ​frequently​ ​as​ ​L2​ ​traversals​ ​are​ ​essential​ ​for​ ​​ ​L3. Not​ ​going​ ​in​ ​further​ ​detail,​ ​when​ ​packet​ ​leaves​ ​Router0​ ​for​ ​the​ ​next​ ​route.​ ​The​ ​contents​ ​will​ ​be​ ​as​ ​shown​ ​below​ ​where due​ ​to​ ​NAT​ ​private​ ​IP-​ ​192.168.1.10​ ​is​ ​replaced​ ​by​ ​public​ ​IP-​ ​11.1.1.75​ ​and​ ​entry​ ​for​ ​the​ ​same​ ​is​ ​also​ ​added​ ​in​ ​the​ ​NAT mapping​ ​table​ ​of​ ​the​ ​router. SMAC-​ ​*00:55 DMAC-*00:XX​ ​(Any*) SIP-​ ​11.1.1.75 DIP-​ ​144.11.1.10 When​ ​packet​ ​will​ ​reach​ ​to​ ​Router1,​ ​the​ ​contents​ ​would​ ​be​ ​like, SMAC-​ ​*00:XX​ ​(Any*) DMAC-*00:A1 SIP-​ ​11.1.1.75 DIP-​ ​144.11.1.10 At​ ​Router1,​ ​there​ ​will​ ​be​ ​a​ ​NAT​ ​mapping​ ​between​ ​public​ ​IP-144.11.1.10​ ​and​ ​private​ ​IP-​ ​10.10.1.100,​ ​so​ ​the​ ​packet​ ​will​ ​be modified​ ​accordingly​ ​to​ ​use​ ​private​ ​IP​ ​in​ ​the​ ​local​ ​network​ ​of​ ​destination​ ​server. B​ ​-​ ​Part​ ​of​ ​the​ ​network: Considering​ ​Router1​ ​as​ ​a​ ​default​ ​gateway​ ​for​ ​the​ ​private​ ​network​ ​of​ ​the​ ​server​ ​and​ ​we​ ​want​ ​to​ ​forward​ ​https​ ​request​ ​to DIP:​ ​10.10.1.100.​ ​Router1​ ​will​ ​look​ ​into​ ​his​ ​ARP​ ​table​ ​for​ ​the​ ​DMAC​ ​of​ ​10.10.1.100​ ​but​ ​consider​ ​it​ ​won’t​ ​find​ ​it. Router1​ ​will​ ​generate​ ​ARP​ ​request​ ​having: SMAC-​ ​*00:F1 DMAC-*FF:FF​ ​(All) SIP-​ ​10.10.1.1 DIP-​ ​10.10.1.100 Switch1​ ​will​ ​receive​ ​it​ ​and​ ​broadcast​ ​it​ ​to​ ​all​ ​the​ ​other​ ​ports.​ ​Switch1​ ​will​ ​also​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table, as​ ​it​ ​has​ ​received​ ​the​ ​request​ ​from​ ​that​ ​MAC​ ​the​ ​first​ ​time.​ ​Destination​ ​server​ ​will​ ​unicast​ ​ARP​ ​response​ ​having: SMAC-​ ​*00:F2 DMAC-*00:F1 SIP-​ ​10.10.1.100 DIP-​ ​10.10.1.1 Switch1​ ​will​ ​again​ ​add​ ​an​ ​entry​ ​in​ ​its​ ​MAC​ ​forwarding​ ​table​ ​and​ ​forward​ ​this​ ​packet​ ​to​ ​Router1​ ​based​ ​on​ ​look​ ​up. Router1​ ​at​ ​server​ ​side​ ​will​ ​update​ ​its​ ​ARP​ ​table​ ​and​ ​send​ ​https​ ​data​ ​packet​ ​to​ ​server​ ​having: SMAC-​ ​*00:F1 DMAC-*00:F2 SIP-​ ​11.1.1.75 DIP-​ ​10.10.1.100 Now,​ ​the​ ​reverse​ ​traversal​ ​from​ ​destination​ ​server​ ​to​ ​the​ ​PC​ ​will​ ​follow​ ​the​ ​same​ ​traditional​ ​terminologies​ ​that​ ​were followed​ ​while​ ​traversing​ ​in​ ​the​ ​forward​ ​direction.​ ​And​ ​definitely​ ​the​ ​reverse​ ​traversal​ ​will​ ​be​ ​smoother​ ​as​ ​lookups​ ​and routes​ ​will​ ​be​ ​easily​ ​available.