Professional Documents
Culture Documents
4773099563521
CRC
Checksum
number
DATA
IP header /
TCP header
Calculating IP Calculating IP
header TCP header TCP
header header
Checksum Checksum
number number
correct correct
Frame formats
Point to Point Multipoint / Broadcast
Ethernet
Switch
Ethernet Frame
64 - 1500 bytes
1 2 3
Additional Slides
How your network works: basic diagram of a network
Discussion points:
1. Physical vs.
Logical way
Websites 2. Speed
VPN
connections
Email
Internet ...
● NETWORK DEVICES
○ MODEM
○ ROUTER
○ HUB
○ SWITCH and
Switch Firewall Router Modem Internet Cloud PATCH PANELS
or The Cloud or ○ WiFi AP and 802.11
Splitter of the Does 1st Cloud ● NETWORK CABLING
Internet networking device to Computing = ● CLIENTS and SERVERS
signal; all well: 1. allows connect Internet
devices computers to you to
connected to talk to each Internet
switch other, and 2.
Logically this is how
get on the your network works:
Internet all these logical
devices are now in
one physical device.
Discussion points: Speed, Devices, Cabling,
Client-Server Architecture
● NETWORK DEVICES
Data is sized by two measurements: ○ MODEM
○ ROUTER
Bit → b → Kb 8b = 1B ○ HUB
○ SWITCH and PATCH
Byte → B → KB
PANELS
DL 16 Mb → 2MB (ISPs) ○ WiFi AP and 802.11
● NETWORK CABLING
UL 100 MB → 8x longer, 8b=1B
● CLIENTS and SERVERS
IPv4 Addressing: Binary and the IP Address
11100010 10101000 10101010 01100011 BINARY
Magic chart
128 64 32 16 8 4 2 1
0_ 0_ 0_ 0_ 0_ 0_ 0_ 1_ =1
27 26 25 24 23 22 21 20
0 1 1 1 1 1 1 1 = 127
_ _ _ _ _ _ _ _
IPv4 Addressing: Binary and the IP Address
192.168.1.5 IP address in BINARY
128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20
Trailer: Subnetting
Network and Host ID
Subnet Mask
192.168.40.55 - What is the Network ID
192.168.40.55 IP address classes
Magic chart
128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20
IPv4 Addressing: The Classes
Subnetting on a Class C example:
192.168.1.0
255.255.255.0
Magic chart
128 64 32 16 8 4 2 1
27 26 25 24 23 22 21 20
IP addressing: introduction
223.1.1.1
❖ IP address: 32-bit 223.1.2.1
223.1.1.2
223.1.1.4 223.1.2.9
❖ Interface
223.1.3.27
223.1.1.3
223.1.2.2
❖ IP address per
interface 223.1.3.1 223.1.3.2
223.1.1.3
223.1.9.2 223.1.7.0
223.1.9.1 223.1.7.1
223.1.8.1 223.1.8.0
223.1.2.6 223.1.3.27
223.1.2.1 223.1.2.2 223.1.3.1 223.1.3.2
223.1.1.3
223.1.9.2 223.1.7.0
223.1.9.1 223.1.7.1
223.1.8.1 223.1.8.0
223.1.2.6 223.1.3.27
223.1.2.1 223.1.2.2 223.1.3.1 223.1.3.2
subnet host
part part
11001000 00010111 00010000 00000000
200.23.16.0/24
Static (configured on a node manually) vs. dynamic IP addresses (assigned through a DHCP)
In most cases, static IP addresses are reserved for servers and network devices, while dynamic IP
addresses are reserved for clients.
Net Layer: IP addressing (2) - Datagrams and Encapsulation
IP Datagram Header
Data Data Data Data
0 4 8 16 19 31
Header
Version
Length Service Type Total Length Data Data Data Data
Identification Flags Fragment Offset
TTL Protocol Header Checksum
Source IP Address
Destination IP Address
Options Padding 1 Data 2 Data 3 Data 4 Data
Workstation 01 Workstation 02
Net Layer: IP addressing (3) - Datagrams and Encapsulation
Data Data Data Data
TTL field
… an 8-bit field that indicates how many router hops a datagram can Data Data Data Data
traverse before it’s thrown away.
3 Data
3 TTL
1 TTL
D
4 TTL
2 TTL 3 Data 1 Data 2 Data 4 Data
0 TTL
C
E
Workstation 01
A B F I
Server
Workstation 01
Net Layer: IP addressing (4) - Datagrams and Encapsulation
Message
Application
TCP or
UDP Message
header Transport
TCP or
IP header UDP Message
header Network
TCP or
Ethernet Ethernet
header
IP header UDP Message footer
header Data Link
Example: Understanding Packets & Frames
Data
G0/0 R1 G0/1
Network Network
192.168.100.0 Default Gateway 10.10.10.0
IP 192.168.100.2 IP 10.10.10.2
MAC AA-AA-AA-AA-AA-AA G0/0: 192.168.100.1 MAC BB-BB-BB-BB-BB-BB
CC-CC-CC-CC-CC-CC
G0/1: 10.10.10.1
DD-DD-DD-DD-DD-DD
Net Layer: IP addressing (5) - IP Address Classes
IP addresses can be split into two sections: the network ID and the host ID.
[9.100.100.100
network ID
host ID
Address class system: A way of defining how the global IP address space is split
up.
Class A: 123.456.780.00
network ID host ID
Class B: 123.456.780.00
network ID host ID
Class C: 123.456.780.00
network ID host ID
Net Layer: IP addressing (6) - IP Address Classes
{FF;FF;FF;FF;FF;FF} {FF;FF;FF;FF;FF;FF}
Switch Switch
Who is 10.20.30.40?
I need your MAC address. {FF;FF;FF;FF;FF;FF} I am 10.20.30.40?
10.10.10.105 10.10.10.55
AA-AA-AA-AA-AA-AA BB-BB-BB-BB-BB-BB
But I need
to know the ARP Request to
MAC FF-FF-FF-FF-FF-FF
From AA-AA-AA-AA-AA-AA
address. Who is 10.10.10.55?
First, let me
check my ARP That’s not
cache...Nope, no 10.10.10.200 me,
MAc add there. CC-CC-CC-CC-CC-CC discarding
the frame.
Sending
broadcast
Sending
ARPbroadcast
message
ARP
message
Example: What is ARP?
ARP Diagram Frame RECAP:
ARP Reply
- ARP is a useful protocol for building the
received, ARP Reply to AA-AA-AA-AA-AA-AA ARP table
updating From BB-BB-BB-BB-BB-BB - Looking at ARP tables on hosts and
cache I am 10.10.10.55. networking equipment is a good
troubleshooting tool.
ARP Reply to AA-AA-AA-AA-AA-AA
- Gratuitous ARP is helpful for updating
From BB-BB-BB-BB-BB-BB the network automatically after an IP
I am 10.10.10.55.
change on a host
- RARP no longer exists
10.10.10.105 10.10.10.55
AA-AA-AA-AA-AA-AA BB-BB-BB-BB-BB-BB
10.10.10.200
CC-CC-CC-CC-CC-CC
Net Layer: IP addressing (5) - Looking up IP addresses
https://whatismyipaddress.com/
● 123.456.123.456
● 257.70.312.49
● 8.8.8.8
● 192.168.1.1
What happens to the TTL field of an IP datagram every time it reaches a router?
The TTL field is used for a CRC.
The TTL field is decremented by one.
The TTL field is reset to zero.
The TTL field is incremented by one.
( At every router hop, the TTL field is decremented by one until it reaches zero, causing the
datagram to be discarded.)