Networking Fundamentals Notes
Introduction to Networking
Focuses on the basic concepts of networking to provide understanding of how networks and the Internet operate.
1. Key Components of Networking
Hosts/Devices: Examples include smartphones, laptops, servers, vehicles, and appliances.
Communication Links: Different media like optical fiber, copper cables, and wireless (air).
Protocols: These define the formats and types of messages exchanged; examples include HTTP/S, DNS, SSH.
Internet: Defined as a network of networks using multiple technologies.
2. What is a Protocol?
Definition: A set of rules defining the format and behavior of data exchange between devices.
Importance: Ensures interoperability between different systems.
Examples: Includes HTTP request/response workflows.
3. Managing Communication Standards
Protocols are defined by organizations such as:
ISO: International Organization for Standardization
IETF: Internet Engineering Task Force
IEEE: Institute of Electrical and Electronics Engineers
W3C: World Wide Web Consortium
4. OSI and TCP/IP Protocol Models
OSI Model: Divided into seven layers:
1. Physical Layer: Handles transmission of raw bits.
2. Data Link Layer: Reliable data transfer (frames).
3. Network Layer: Handles data transfer between networks (packets).
4. Transport Layer: Ensures reliable data transfer (segments).
5. Session Layer: Manages sessions between users and applications.
6. Presentation Layer: Translates data (e.g., encryption).
7. Application Layer: Closest to the end user (HTTP, FTP).
TCP/IP Model: Fewer layers, merging the OSI model's sessions, presentation and application layers.
Application Layer: Indistinct from the application layer in OSI, it handles high-level protocols.
Transport Layer: Includes TCP and UDP protocols for data transfer.
Network Layer: Retrieves IP addresses and routing for data.
Link Layer: Handles communications on a local network.
5. Key Functionality of OSI Layers
Application Layer (L7)
Interacts directly with software applications (e.g., HTTP, SMTP).
Presentation Layer (L6)
Converts data formats and provides encryption.
Session Layer (L5)
Establishes and maintains sessions between users.
Transport Layer (L4)
Responsible for reliable end-to-end communication, managing flow and error control through protocols like TCP (connection-oriented) and UDP (connectionless).
Network Layer (L3)
Routes data packets across different networks, defining logical addressing and traffic control (IPv4/IPv6 addressing).
Data Link Layer (L2)
Facilitates node-to-node communications and error correction through MAC addresses.
Physical Layer (L1)
Deals with raw data transmission over various mediums (cables, radio signals).
6. TCP/IP Networking Fundamentals
Transport Protocols: TCP ensures guaranteed delivery while UDP is faster but connectionless.
Port Numbers: Services are accessed via ports (commonly used ports: 80 for HTTP, 443 for HTTPS).
7. Network Addressing and Routing Strategies
IP Addressing: IPv4 uses 32-bit addressing while IPv6 offers 128-bit addresses.
Subnetting: CIDR (Classless Inter-Domain Routing) manages IP address allocations effectively.
Routing: Utilizes protocols like OSPF, BGP for directing packets.
8. Address Resolution Protocol (ARP)
Resolves IP addresses to MAC addresses within a local area network for layer 2 communication.
9. Network Redundancy and Loop Prevention
Link Aggregation (LAG): Groups multiple links between two nodes for better throughput and redundancy.
Spanning Tree Protocol (STP): Prevents loops in redundant paths between switches, ensuring a loop-free topology.
Summary
Understand the OSI model and how encapsulation of data works across layers.
Review TCP/IP stack functionalities including application, transport, network layers.
Explore common protocols (HTTP, DNS, DHCP) and their significance in networking.
Recognize routing mechanisms, IP addressing schemes, NAT, and redundancy strategies.