Show Menu
Cheatography

Basic Networking Cheat Sheet (DRAFT) by

Basic Networking Cheat Sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

OSI Layers

Applic­ation
End User
HTTP, SSH, DNS, FTP
7
Presen­tation
Encryp­tion, Compre­ssion
SSL, TSL, MPEG
6
Session
Auth, Perms
API's, Sockets
5
Transport
Segmenting
TCP, UDP
4
Network
Packets
IP
3
Data Link
Frames, MAC
Ethernet, Bridge
2
Physical
Media
Wireless, Cabling
1

TCP VS UDP

TCP
UDP
3-way handshake
no confir­mation
More reliable
Less reliable
Slower
Faster
Arranged packets
Indepe­ndent packets
error-­che­cking
no error-­che­cking
Heavy
light

Protocols

ARP- Address Resolution Protocl
Translates IP to MAC
DNS - Domain Name System
Translates domain name to IP
53 TCP/UDP
DHCP - Dynamic Host Config Protocol
Assigns IPs to client on the network
67 UDP
FTP - File Transer Protocol
It's in the name
20 TCP
HTTP - Hypertext Transfer Protocol
Used to display inform­ation
80/443 TCP/UDP
SMTP - Simple Mail Transfer Protocol
Common mail send protocol
25/465 TCP
POP3 - Post Office Protocol
retrieves mail from email server and removes it
110/995 TCP
IMAP - Internet Message Access Protocol
retrieves mail from email server and leaves it
143/993 TCP
SSH - Secure Shell
Secure remote commands
22 TCP/UDP
 

ARP - Address Resolution Protocol

Maps an IP address to a MAC address.
Sender broadcasts an ARP request with the IP address to be
mapped.
Owner of the IP address replies with its MAC address.

TCP

Client
Server
SYN (Sync) ->
 
<- SYN,ACK
ACK (Ackno­wledge) ->

HUB v Switch

Hub
Switch
Layer 1
Layer 2
Repeats signals mindlessly
finds intended client
cheap and simple
complex but smart

Commands

IPCONFIG
View of IP inform­ation of device
NSLOOKUP
Shows connection inform­ation with domains
HOSTNAME
shows computer name
Ping
allows simple packet transfer to check connection
tracert
shows packet pathing to requested server
netstat
shows overview of device's network connec­tions with addresses
systeminfo
shows hardware and software details of device