SlideShare a Scribd company logo
Fundamental Networking
Concepts
By
Sriram Subramanian
@reachsrirams
www.innervoice.in
Agenda
• Concepts
– Subnet Mask
– Default Gateway
– DNS Server
• Context – a typical home network
• Assumptions
– Familiarity with DHCP fundamentals
– Familiarity with OSI stack for networking.
2
www.innervoice.in
A typical home network
3
ISP’s Network Internet
google.com Web
ServerDNS Server
Gateway
DSL or
Cable
RJ-45PortsforLAN
DHCP
Server
www.innervoice.in
Understanding Network Configuration
4
• As you can see the common information is
– Subnet Mask
– Default Gateway (Windows), Router (IPad) and Default Route
(Ubuntu)
– DNS Servers (Windows), DNS (IPad) and Primary DNS (Ubuntu)
www.innervoice.in
OSI Stack View of our Network
5
ISP’s Network Internet
google.com Web
ServerDNS Server
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
APPLICATION
PRESENTATION
SESSION
Home Computer
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
Home Router
Wired/Wireless
connection
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
APPLICATION
PRESENTATION
SESSION
Google Web Server
Internet Internet
DNS Server
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
APPLICATION
PRESENTATION
SESSION
Gateway
RJ-45PortsforLAN
DHCP
Server
DSL or
Cable
www.innervoice.in
The first step…
• What happens when you type
www.google.com on you browser?
• Application Layer: Browser will create a HTTP get request
• Network Layer: Needs to create an Network layer packet
(IP Packet) to be sent to www.google.com.
• But Network Layer needs IP Address not
URL.
• This is where DNS Server comes into picture
6
www.innervoice.in 7
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
APPLICATION
PRESENTATION
SESSION
Home Computer
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
Home Router
ISP’s
Network Internet
The browser sends a request to local
DNS Client application to convert the
URL of google.com to an IP address.
DNS Server
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
APPLICATION
PRESENTATION
SESSION
Communicating with DNS Server
An IP Packet is constructed containing:
• Source IP: Home Computer
• Destination IP: DNS Server
The DNS Server IP is part of network
configuration (DHCP response)
The IP Packet or the L3 Packet is then
wrapped into an L2 Frame and sent on the
wire to the DNS Server.
The DNS Server then responds back with
the IP Address of google.com
www.innervoice.in
L3 to L2 Conversion
• Layer 3 or L3 uses IP Address of a device
• Layer 2 or L2 uses Physical Address of a device
– For Ethernet the physical address is the MAC address of the Network
Port.
• An L2 frame = Entire L3 packet + Some L2 information. The most
important are:
– source MAC address
– destination MAC address
• In our example,
– the source MAC address = Home computer MAC address
– But how can we find the destination MAC address?
8
www.innervoice.in
Destination MAC Address Flow
9
Apply ‘subnet mask’ on
destination IP Address (DNS
Server)
Is the resulting IP in
the same sub-
network as the
source IP Address?
Assume Destination
IP = Default
Gateway IP
Yes
No
Use ARP Tables to
lookup MAC address
for the Destination
IP
Construct L2
Frame with
Destination MAC
In our example, the IP address of the DNS Server
is outside the home computer's sub-network.
Hence Destination MAC address = MAC address
of the ‘Default Gateway’.
www.innervoice.in
The role of Default Gateway (Router)
• Default gateway is used for 'routing' network packets between one more
LANs or between a LAN and a WAN.
10
Examine the incoming L2
Frame
Does the destination
MAC address contain
my MAC address?
Drop the packet
Yes
No
Extract the L3 Packet
from the L2 Frame
Forward/Route the L3
Packet based on
Destination IP Address
Note: while forwarding L3 Packets:
Source IP = Home Computer IP
Destination IP = DNS Server IP
www.innervoice.in
What happens to incoming L3 packet?
11
Examine the incoming L3
Packet (destined for Home
Computer)
Can I reach the
destination IP on my
LAN?
Drop the packet
Yes
No
Convert an L3 Packet
to an L2 Frame
Forward the L2 Frame
based on Destination
MAC Address
Note: while forwarding L2 Frames:
Source IP = DNS Server IP
Destination IP = Home Computer IP
Source MAC = Default Gateway MAC
Destination MAC = Home Computer MAC
www.innervoice.in 12
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
APPLICATION
PRESENTATION
SESSION
Home Computer
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
Home Router
ISP’s
Network Internet
The browser sends a request to local
DNS Client application to convert the
URL of google.com to an IP address.
DNS Server
PHYSICAL
DATA LINK
NETWORK
TRANSPORT
APPLICATION
PRESENTATION
SESSION
Communicating with DNS Server
An IP Packet is constructed containing:
• Source IP: Local Computer
• Destination IP: DNS Server
The DNS Server IP is part of network
configuration (DHCP response)
After IP to MAC lookup the L2 packet will contain
the following address information:
Source IP = Home Computer IP
Destination IP = DNS server IP
Source MAC = Home Computer MAC
Destination MAC = Default Gateway MAC
The L2 Packet received by the Home Router since
its MAC address was in the destination address.
The L3 packet inside this L2 frame tells the
‘Gateway’ or ‘Router’ to forward the packet to
the DNS Server.
The DNS Server then responds back with
the IP Address of google.com
www.innervoice.in
And it starts all over again
• At this stage the home computer has the IP address of
www.google.com
• Next the L3 frame meant for www.google.com is
constructed.
• Once again the whole process of L3 to L2 frame
conversion and IP-to-MAC lookup will take place.
• And just like DNS server responded to a DNS request, the
Google Web Server will respond to a HTTP Get request.
13
www.innervoice.in
Summary
• DNS Server is used to convert a URL to an IP
address
• Subnet Mask is used for determining whether IP
to MAC lookup should be done or not.
• Default Gateway is the entity that routes
packets from LAN to WAN (ISP/Internet) and
vice-versa
14

More Related Content

PPTX
How To Default Gateway
DOCX
what is mean by default getway
PDF
Uccn1003 -may10_-_lect01b_-_intro_to_network_devices_addressing
PDF
Uccn1003 -may10_-_lect04a_-_intro_to_routing_rules
PPTX
PPTX
Router & functionality
PPTX
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
PDF
Uccn1003 -may10_-_lect02b2_-_lan_basic_in_packet_tracer
How To Default Gateway
what is mean by default getway
Uccn1003 -may10_-_lect01b_-_intro_to_network_devices_addressing
Uccn1003 -may10_-_lect04a_-_intro_to_routing_rules
Router & functionality
BASIC OF ROUTERS,ROUTER IOS AND ROUTING PROTOCOLS
Uccn1003 -may10_-_lect02b2_-_lan_basic_in_packet_tracer

What's hot (20)

PDF
Uccn1003 -may10_-_lect02a_-_intro_to_networking_commands_software
PPTX
Nat presentation
PPTX
network address translate
PPTX
Router configuration
PPT
PPTX
Nat
PPTX
Static NAT
PPT
Presentation on router
PPTX
What is Network Address Translation (NAT)
PPT
Networking Chapter 11
PDF
IP Routing Tutorial
PPS
Ip address
PDF
Uccn1003 -may10_-_lect01a_-_intro_to_network_applications_services
PDF
NAT (network address translation) & PAT (port address translation)
PPTX
Network address translation
PPTX
Router and types
PDF
Link i pv4
PDF
Cisco Router Basic Configuration
PDF
Uccn1003 -may10_-_lect03a_-_lan_design_issues
Uccn1003 -may10_-_lect02a_-_intro_to_networking_commands_software
Nat presentation
network address translate
Router configuration
Nat
Static NAT
Presentation on router
What is Network Address Translation (NAT)
Networking Chapter 11
IP Routing Tutorial
Ip address
Uccn1003 -may10_-_lect01a_-_intro_to_network_applications_services
NAT (network address translation) & PAT (port address translation)
Network address translation
Router and types
Link i pv4
Cisco Router Basic Configuration
Uccn1003 -may10_-_lect03a_-_lan_design_issues
Ad

Viewers also liked (15)

PPT
Gateway Networking
PPT
Smtp protocol
PPTX
Protocolo SMTP (Simple Mail Transfer Protocol)
PPT
IP adress and routing(networking)
PPTX
Protocolos- SMTP, POP3 e IMAP4
PPTX
Simple mail transfer protocol
PPT
Bridges and gateways 52
PPTX
Simple Mail Transfer Protocol
PPT
Ip addressing
PPT
Smtp
PPTX
Smtp, pop3, imapv 4
PPS
Ip address
PDF
Network protocols
PPTX
Internet protocol (ip) ppt
Gateway Networking
Smtp protocol
Protocolo SMTP (Simple Mail Transfer Protocol)
IP adress and routing(networking)
Protocolos- SMTP, POP3 e IMAP4
Simple mail transfer protocol
Bridges and gateways 52
Simple Mail Transfer Protocol
Ip addressing
Smtp
Smtp, pop3, imapv 4
Ip address
Network protocols
Internet protocol (ip) ppt
Ad

Similar to Fundamental networking concepts (20)

PPTX
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptx
PPTX
Traffic Data Analysis using Wireshark.pptx
DOC
Building Linux IPv6 DNS Server (Draft Copy)
PDF
Apnic-Training-IPv6_workshop
PPTX
DHCP,ARP in networks
PPTX
Lecture 23 DHCP and NAT.pptx
PDF
Bh fed-03-kaminsky
PPTX
ffuyu yguyguyg.pptx
PPT
CCNA Network Services
PPTX
06 coms 525 tcpip - dhcp and dns
PPT
Ad-Hoc Networking in Linux with Avahi
PPT
Simplified Networking and Troubleshooting for K-12 Teachers
PPTX
Introduction to Networking Commands & Software
PPTX
PACE-IT: DHCP in the Network - N10 006
PPTX
Learning series fundamentals of Networking and Medical Imaging
PPT
Design of a campus network
PPT
DNS_CN_CN_____________________-_____.ppt
DOCX
Network Testing ques
PDF
Installation Of An Iso Image Dvd
PPT
Building a Linux IPv6 DNS Server Project review PPT v3.0 First review
DHCP DNS P1 DHCP & Wireless Communication Methods Unicasting.pptx
Traffic Data Analysis using Wireshark.pptx
Building Linux IPv6 DNS Server (Draft Copy)
Apnic-Training-IPv6_workshop
DHCP,ARP in networks
Lecture 23 DHCP and NAT.pptx
Bh fed-03-kaminsky
ffuyu yguyguyg.pptx
CCNA Network Services
06 coms 525 tcpip - dhcp and dns
Ad-Hoc Networking in Linux with Avahi
Simplified Networking and Troubleshooting for K-12 Teachers
Introduction to Networking Commands & Software
PACE-IT: DHCP in the Network - N10 006
Learning series fundamentals of Networking and Medical Imaging
Design of a campus network
DNS_CN_CN_____________________-_____.ppt
Network Testing ques
Installation Of An Iso Image Dvd
Building a Linux IPv6 DNS Server Project review PPT v3.0 First review

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Big Data Technologies - Introduction.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Unlocking AI with Model Context Protocol (MCP)
Advanced methodologies resolving dimensionality complications for autism neur...
Spectroscopy.pptx food analysis technology
Big Data Technologies - Introduction.pptx
Machine learning based COVID-19 study performance prediction
Programs and apps: productivity, graphics, security and other tools
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MYSQL Presentation for SQL database connectivity
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mobile App Security Testing_ A Comprehensive Guide.pdf

Fundamental networking concepts

  • 2. www.innervoice.in Agenda • Concepts – Subnet Mask – Default Gateway – DNS Server • Context – a typical home network • Assumptions – Familiarity with DHCP fundamentals – Familiarity with OSI stack for networking. 2
  • 3. www.innervoice.in A typical home network 3 ISP’s Network Internet google.com Web ServerDNS Server Gateway DSL or Cable RJ-45PortsforLAN DHCP Server
  • 4. www.innervoice.in Understanding Network Configuration 4 • As you can see the common information is – Subnet Mask – Default Gateway (Windows), Router (IPad) and Default Route (Ubuntu) – DNS Servers (Windows), DNS (IPad) and Primary DNS (Ubuntu)
  • 5. www.innervoice.in OSI Stack View of our Network 5 ISP’s Network Internet google.com Web ServerDNS Server PHYSICAL DATA LINK NETWORK TRANSPORT APPLICATION PRESENTATION SESSION Home Computer PHYSICAL DATA LINK NETWORK TRANSPORT Home Router Wired/Wireless connection PHYSICAL DATA LINK NETWORK TRANSPORT APPLICATION PRESENTATION SESSION Google Web Server Internet Internet DNS Server PHYSICAL DATA LINK NETWORK TRANSPORT APPLICATION PRESENTATION SESSION Gateway RJ-45PortsforLAN DHCP Server DSL or Cable
  • 6. www.innervoice.in The first step… • What happens when you type www.google.com on you browser? • Application Layer: Browser will create a HTTP get request • Network Layer: Needs to create an Network layer packet (IP Packet) to be sent to www.google.com. • But Network Layer needs IP Address not URL. • This is where DNS Server comes into picture 6
  • 7. www.innervoice.in 7 PHYSICAL DATA LINK NETWORK TRANSPORT APPLICATION PRESENTATION SESSION Home Computer PHYSICAL DATA LINK NETWORK TRANSPORT Home Router ISP’s Network Internet The browser sends a request to local DNS Client application to convert the URL of google.com to an IP address. DNS Server PHYSICAL DATA LINK NETWORK TRANSPORT APPLICATION PRESENTATION SESSION Communicating with DNS Server An IP Packet is constructed containing: • Source IP: Home Computer • Destination IP: DNS Server The DNS Server IP is part of network configuration (DHCP response) The IP Packet or the L3 Packet is then wrapped into an L2 Frame and sent on the wire to the DNS Server. The DNS Server then responds back with the IP Address of google.com
  • 8. www.innervoice.in L3 to L2 Conversion • Layer 3 or L3 uses IP Address of a device • Layer 2 or L2 uses Physical Address of a device – For Ethernet the physical address is the MAC address of the Network Port. • An L2 frame = Entire L3 packet + Some L2 information. The most important are: – source MAC address – destination MAC address • In our example, – the source MAC address = Home computer MAC address – But how can we find the destination MAC address? 8
  • 9. www.innervoice.in Destination MAC Address Flow 9 Apply ‘subnet mask’ on destination IP Address (DNS Server) Is the resulting IP in the same sub- network as the source IP Address? Assume Destination IP = Default Gateway IP Yes No Use ARP Tables to lookup MAC address for the Destination IP Construct L2 Frame with Destination MAC In our example, the IP address of the DNS Server is outside the home computer's sub-network. Hence Destination MAC address = MAC address of the ‘Default Gateway’.
  • 10. www.innervoice.in The role of Default Gateway (Router) • Default gateway is used for 'routing' network packets between one more LANs or between a LAN and a WAN. 10 Examine the incoming L2 Frame Does the destination MAC address contain my MAC address? Drop the packet Yes No Extract the L3 Packet from the L2 Frame Forward/Route the L3 Packet based on Destination IP Address Note: while forwarding L3 Packets: Source IP = Home Computer IP Destination IP = DNS Server IP
  • 11. www.innervoice.in What happens to incoming L3 packet? 11 Examine the incoming L3 Packet (destined for Home Computer) Can I reach the destination IP on my LAN? Drop the packet Yes No Convert an L3 Packet to an L2 Frame Forward the L2 Frame based on Destination MAC Address Note: while forwarding L2 Frames: Source IP = DNS Server IP Destination IP = Home Computer IP Source MAC = Default Gateway MAC Destination MAC = Home Computer MAC
  • 12. www.innervoice.in 12 PHYSICAL DATA LINK NETWORK TRANSPORT APPLICATION PRESENTATION SESSION Home Computer PHYSICAL DATA LINK NETWORK TRANSPORT Home Router ISP’s Network Internet The browser sends a request to local DNS Client application to convert the URL of google.com to an IP address. DNS Server PHYSICAL DATA LINK NETWORK TRANSPORT APPLICATION PRESENTATION SESSION Communicating with DNS Server An IP Packet is constructed containing: • Source IP: Local Computer • Destination IP: DNS Server The DNS Server IP is part of network configuration (DHCP response) After IP to MAC lookup the L2 packet will contain the following address information: Source IP = Home Computer IP Destination IP = DNS server IP Source MAC = Home Computer MAC Destination MAC = Default Gateway MAC The L2 Packet received by the Home Router since its MAC address was in the destination address. The L3 packet inside this L2 frame tells the ‘Gateway’ or ‘Router’ to forward the packet to the DNS Server. The DNS Server then responds back with the IP Address of google.com
  • 13. www.innervoice.in And it starts all over again • At this stage the home computer has the IP address of www.google.com • Next the L3 frame meant for www.google.com is constructed. • Once again the whole process of L3 to L2 frame conversion and IP-to-MAC lookup will take place. • And just like DNS server responded to a DNS request, the Google Web Server will respond to a HTTP Get request. 13
  • 14. www.innervoice.in Summary • DNS Server is used to convert a URL to an IP address • Subnet Mask is used for determining whether IP to MAC lookup should be done or not. • Default Gateway is the entity that routes packets from LAN to WAN (ISP/Internet) and vice-versa 14