Networking Basics
Networking Basics
internet
Branch office
Main Office
Network Structure Defined by
Hierarchy
Core
Layer
Distribution
Layer
Access
Layer
Access Layer Characteristics
Access
Layer
Presentation
Session
Transport
Network
Data Link
Physical
Physical EIA/TIA-232
V.35
Encapsulating/Decapsulating
Data
Application PDU
Session PDU
Transport Segment
Network Packet
Data Flow Layers
Data Link Frame
Physical Bits
Physical Layer Functions
Defines: Media type
Connector Type
Signaling type
• Only one station on a shared Ethernet segment can send a frame at one time but all
Stations receive and look at the frame to determine if it is for them
• All end stations on a segment that hear all the traffic on the wire are in the same
collision domain.
• Station that are in the same collision domain are always in the same broadcast domain
Hubs Operate at Physical Layer
EIA/TIA-232 RJ-45
EIA/TIA-449
(greater distance than 232,for same bit rate) Note: Pinouts are
X.21 V.24 V.35 HSSI different than
LAN RJ-45
MAC ADDRESS
0000.0C XX.XX.XX
IEEE assigned Vendor assigned
MAC Address
Switches and Bridges Operating at
Layer 2
Address Resolution
Internet Protocol (ARP)
172.18.0.2 172.16.0.2
HDR SA DA DATA
10.13.0.0 192.168.1.0
10.13.0.1 172.17.0.1
172.17.0.2 192.168.1.1
IP Addressing
Address Mask
172.16.122.204 255.255.0.0
172.16.2.1 E1
172.16.3.100
172.16.2.2
E0
172.16.3.1
172.16.3.150
172.16.2.160
172.16 . 2 . 160
Network Subnet Host
Subnet Mask
Decimal Equivalents of Bit Patterns
Subnet Mask without Subnets
Subnet Mask with subnets
172.16.3.0
172.16.4.0
172.16.1.0
172.16.3.255 172.16.2.0
(Directed Broadcast)
255.255.255.255
(Local Network broadcast)
172.16.255.255
(all subnets broadcast)
Exercise
ADDRESS CLASS NETWORK HOST
10.2.2.1
128.63.2.100
201.222.5.64
192.6.141.2
256.241.201.10
130.113.64.16
Exercise Subnet Mask
ADDRESS CLASS NETWORK HOST
172.16.2.10 255.255.255.0
10.6.24.20 255.255.240.0
10.30.36.12 255.255.255.0
Exercise Broadcast address
ADDRESS Subnet Mask Class Subnet Broadcast
201.222.10.60 255.255.255.248
15.16.193.6 255.255.248.0
128.16.32.13 255.255.255.252
153.50.6.27 255.255.255.128
Finding the IP address of the LAN
Address Resolution Protocol
I need the Ethernet
address of 176.16.3.2
I heard that
broadcast. The
message is for me.
Here is my Ethernet
address
172.16.3.1 172.16.3.2
IP: 172.16.3.2
Ethernet: 080A.0B20.118C
Map IP MAC
Local ARP
Reverse ARP
What is my IP
Adress?
I heard that
broadcast. Your IP
address is
172.16.3.25
Ethernet: 080A.0B20.118C
IP: 172.16.3.2
Map MAC IP
What is a Variable-Length Subnet Mask?
172.16.14.32/27
172.16.1.0/24
A 172.16.14.132/30
172.16.14.136/30
172.16.14.64/27
B HQ 172.16.0.0/16
172.16.2.0/24
172.16.14.96/27 172.16.14.140/30
C
Calculating VLSMs
Derived from the 172.16.32.0/20 Subnet 172.16.32.0/26
172.16.33.0/30
172.16.33.4/30
172.16.32.64/26
HQ
172.16.33.8/30
172.16.32.128/26
Derived from the
172.16.33.0/26 subnet
172.16.33.12/30 172.16.32.192/26
30-bit mask
(2 hosts)
26-bit mask
(62 hosts)
Exercise: Calculating VLSMs
Using VLSMs, define appropriate subnets for addressing the networks using 192.168.49.0/24
25 Users
A
A
Address for WAN links
A Serial______________
B Serial______________
B C Serial______________
25 users D Serial______________
B HQ E Serial______________
HQ
25 users
C D
25 users
D
E
25 users
E
What is Route Summarisation?
172.16.25.0/24
I can route to thw
172.16.0.0/16
network
172.16.26.0/24 B
A
Routing Table
172.16.0.0/16
Routing Table
172.16.27.0/24 172.16.25.0/24
172.16.26.0/24
172.16.27.0/24
172.16.14.64/26
172.16.32.0/24 172.16.0.0/16
Corporate
C A
Network
172.16.14.128/26
172.16.64.0/20
172.16.64.0/20
D
Implementation Considerations
F T S D T S R
T E M N F N I
P L T S T M P
N P P P
E
T
21 23 25 53 69 161 520
TCP UDP
TCP Port Numbers
Telnet Z Source Port Dest Port ...
Host A Host Z
SP DP
Dest. port = 23.
Send packet to
1028 23 ...
my Telnet
application
TCP Three way Handshake/Open
Connection
Host A Host B
SYN received
Send SYN, ACK (seq=300
ack=101 ctl=syn, ack)
SYN received
Established (seq=101
ack=301 ctl=ack)
TCP Simple Acknowledgment
Send 1
Send 1
Receive ACK 2
Receive ACK 2
Send 2
Send 2
Receive ACK 3
Receive ACK 3
Send 3
Send 3
Receive ACK 4
Receive ACK 4
Window size = 1
TCP Sequence and Acknowledgment
Numbers
Source Port Dest Port Sequence # Acknowledgment # ...
Window size = 3
Send 2
Window size = 3
Send 3
ACK 3
Packet 3 is dropped
Window size = 2
Window size = 3
Send 3
Window size = 3
Send 4
ACK 5
Window size = 2
UDP Segment Format