IP Addressing
OSI Model
Network Devices
Network Topologies
Ports and Protocols
Routing Protocols
TCP/UDP/Ethernet Headers
Network Miscellaneous

Networking

IP Addressing

IPv4 Address Classes

Class A First Octet: 0-127
Binary: 0XXXXXXX
Default Mask: 255.0.0.0
CIDR: 8
Class B First Octet: 128-191
Binary: 10XXXXXX
Default Mask: 255.255.0.0
CIDR: 16
Class C First Octet: 192-223
Binary: 110XXXXX
Default Mask: 255.255.255.0
CIDR: 32
Class D First Octet: 224-239
Binary: 1110XXXX
***Multicast Addressing
Class E First Octet: 240-255
Binary: 1111XXXX
***Experimental

IPv4 Addresses

IPv6

Unspecified ::/128
Loopback ::1/128
Unique Local Address FC00::/7
Link-local address FE80::/10
Global unicast address 2000::/3
Multicast address FF00::/8
Example of IPv4 in mixed IPv4/IPv6 environment ::0:192.168.100.1
Example of 6to4 tunneling 2002::/16 (0010 0000 0000 0010)

IPv4 to IPv6 Methods

Dual Stacking
  • The process of loading both IPv4 and IPv6 on network nodes.
  • Allows a machine to utilize either protocol to communicate.
  • Most modern computer systems have the capability to run both IPv4 and IPv6 at the same time.
Tunneling
  • The process by which IPv6 packets are encapsulated within IPv4 packets:
    • 6to4
    • 6in4
    • Teredo
    • ISATAP
Translation (Routers)
  • The packet headers for proper communication

Subnetting

Back to Categories

OSI Model

OSI Model Descriptions

Layer 7 – Application
  • Interface between user’s application & network
  • Protocol data unit (PDU): Data
  • Protocols: DNS, SMTP, HTTP, FTP, POP3, SNMP, Telnet
Layer 6 – Presentation
  • Presents data at destination with same meaning at the source.
  • Data compression & restoration, encryption & decryption, ASCII conversion occur here.
  • PDU: Data
  • Protocols: MPEG, ASCH, SSL, TLS
Layer 5 – Session
  • Set up, coordinate, and terminates conversation, exchange, and dialogue between devices across network.
  • Simplex, half duplex, full duplex
  • PDU: Data
  • Protocols: NetBIOS, SAP, sockets, PPTP, L2TP, L2F, RPC
Layer 4 – Transport
  • Manages delivery between systems and hosts.
  • Data is broken into chunks.
  • Segment sequencing, error recovery, and flow control.
  • PDU: Segments
  • Protocols: TCP, UDP, SPX, NetBEUI/NBF
Layer 3 – Network
  • Logical addressing and routing of messages to their proper destination.
  • PDU: Packets
  • Hardware: Router
  • Protocols: IP, ARP, ICMP, and IPSec
Layer 2 – Data Link
  • Provides reliable method of transmitting data across communication link.
  • Physical addressing and frame data heading
  • Logical Link Control (LLC)
  • Media Access Control (MAC)
  • PDU: Frame
  • Hardware: Switch, Network Adapter, bridges
  • Protocols: PPP, ATM, Ethernet, 802.2 LLC, 802.11 (WLAN/WiFi), Token ring, Frame relay
Layer 1 – Physical
  • Communication where it takes place.
  • PDU: Bits
  • Hardware: Repeater, hubs, ethernet cable

OSI Model (EVEN MORE)

“Please Do Not Throw Sausage Pizza Away”

Back to Categories

Network Devices

Network Adapter (Network Interface Card [NIC])
  • Provides interface between computer and network medium.
  • Prepare, send, and control data flow.
  • Layer 2 – Data Link
Repeaters
  • Receive and regenerate signal.
  • Help with attenuation issue (degradation of signal over distance).
  • Layer 1 - Physical
Hubs
  • Multiport repeaters that receive digital signal, regenerate it, and then broadcast signal to all connected port.
  • Layer 1 - Physical
Switches
  • Send signal to specific port (unlike hubs) based on MAC addresses.
  • Layer 2 – Data Link
Routers
  • Interconnect LAN and WAN (Gateway)
  • Determines the next network to which an address is sent by scanning destination IP address and finding best path.
  • Traffic control and filter.
  • Layer 3 - Network
Back to Categories

Network Topologies

Back to Categories

Port and Protocols

Some redundant info here (but cyber wizards must know their protocols)

Port Number Ranges

Well-Known 0-1023
Registered 1024-49151
Private 49152-65535

Protocols

Protocols/Ports(Again)

DHCP
  • Used by a host to obtain an IP address from a DHCP server.
  • DORA (Discover, Offer, Request, Acknowledge)
  • Port 67 (server)
  • Port 68 (client/source)
DNS
  • A Distributed name system that contains services to map computer names to IP addresses and IP address to computer names.
  • Port 53
  • UDP for queries (UDP:53)
  • TCP for DNS zone transfers (TCP:53)
SMTP
  • Used to send mail messages across a network and is the basic for internet mail.
  • TCP:25
POP3
  • Used to retrieve email from a mail server.
  • TCP:110
IMAP4
  • Used to retrieve email from a mail server.
  • Enables users to search through messaged based on keywords.
  • TCP:143
HTTP
  • The set of rules for exchanging files from server to client and vice versa.
  • TCP:80
HTTPS
  • HTTP rides over the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) for secured web session.
  • TCP:443
SSL
  • Resides in Layer 6 – Presentation
  • Provides cryptographic security for Application Layer.
  • Limited to number of applications it can secure.
TLS
  • Upgrade of SSL.
  • No restriction on number of applications.
  • Used in VoIP and VPNs.
FTP
  • Used for exchanging and manipulating files over a TCP-based computer network.
  • TCP:20 for Data from server
  • TCP:21 for Commands from client
TFTP
  • Simple protocol that only provides for the reading and writing of files or mail.
  • UDP:69
Telnet
  • Binary protocol that allows a user to establish a virtual connection with another host.
  • TCP:23
Rlogin
  • UNIX utility as alt. to Telnet
  • TCP:513
SSH
  • Cryptographic protocol that allows data to be exchanged using a secure channel between two networked devices.
  • Uses both symmetric and asymmetric encryption along with hashing.
  • Diffie-Hellman key exchange to shared secret key over insecure channel.
  • TCP:22
LDAP
  • Application Layer protocol used to structure information on a directory server.
  • Used as a directory for telephone/address lookups.
  • TCP:389
LDAPS
  • LDAP communication over SSL/TLS
  • TCP:636 or 3269
SNMP
  • Used to manage and collect statistical network data from remote devices through polling:
    • Performance stats
    • Network availability and error rates
  • UDP:161 – Managers communicating with Agents (polling).
  • UDP:162 – Agents send unsolicited Traps messages to Managers.
NetBIOS
  • Service to provide communication over a LAN.
  • Session layer of OSI
  • Names are up to 15 characters long (usually computer’s name running NetBIOS).
  • Microsoft requires all CAPS.
  • UDP:137 – Name
    • Provides name registration and resolution.
  • UDP:138 – Datagram
    • Distribution service for connectionless communication.
  • TCP:139 – Session
    • Reliable, connection-oriented communication
SMB
  • Allows systems to share files, printers, and serial ports within the same network.
  • Application and Presentation Layer of OSI
  • Part of AD in Linux
  • TCP:445
SUNRCP
  • TCP:111
Syslog
  • UDP:514
RDP
  • TCP:3389
Kerberos
  • Port 88

NETBIOS (expanded)

BOOTP/DHCP (expanded)

Back to Categories

Routing Protocols

Autonomous Systems A set of Routable IP prefixes that are under a network or collection of networks managed by an entity.
Interior Gateway Protocols Used to exchange routing information with an autonomous system.
Exterior Gateway Protocols Protocols used to exchange routing information between autonomous systems
Path-Vector Routing Protocols Maintains path information that gets updated dynamically.
Administrative Distance Each entry in the routing table contains the destination network, next router, and path to reach the destination. The lower the better.

Routing Protocol Classes

Routing Protocols

Routing Protocols (supplemental definition)

Distance Vector vs Link State Protocls

Distance Vector Link State
Sends entire routing table during updates Only provides link state information
Sends periodic updates every 30-90 seconds Uses triggered updates
Broadcasts updates Multi casts updates
Vulnerable to routing loops No risk of routing loops
RIP, IGRP OSPF, IS-IS
Back to Categories

TCP/UDP/Ethernet Headers

Header Diagrams





























Back to Categories

Network Miscellaneous

Important Terms

ARP
  • Map IP address to MAC address
  • Layer 3 – Network
  • Associate known IP address to unknown MAC address
Reverse ARP
  • Associate MAC address to unknown IP address
IP Config Command
  • Windows: ipconfig
  • Linux: ifconfig
FQDN
  • A unique name used to identify a partical system in the namespace.
  • Host.parent_domain.top_level_domain.root_domain (implied): www.google.com.
ICMP
  • An error reporting mechanism for the IP protocol if there is a problem along the transmission path.
  • Tools for testing: ping and traceroute
Ping
  • ICMP utility
  • Echo request/reply from a remote host to verify if it is available for communication.
Traceroute
  • Linux: traceroute uses UDP
  • Windows: tracert uses ICMP
NAT
  • Function of connecting multiple computers to the Internet using one or multiple routable IP addresses.
  • Network masquerading or IP-masquerading.
PAT
  • Uses a network device that translates multiple local addresses to a single global address by keeping track of port assignments.
Netstat
  • Provides information and statistics about protocols in use and current TCP/IP network connections.
  • -a provides all connections
  • -n provides numerical of protocols
  • -o provides PID

TCP/IP 3-Way Handshake

SEQ Numbers

Time-to-Live (TTL) for Packets
TTL:255 Cisco, Solaris/AIX
TTL:128 Windows
TTL:64 Linux/Unix

NAT & PAT

IEEE Standards

Networking commands

Networking APIs

Domains

additional research encouraged to supplement this section

Back to Categories