Networking

What is Networking?

Definition

Key Concepts

Importance

Types of Networks

Local Area Networks (LAN)

Wide Area Networks (WAN)

Metropolitan Area Network (MAN)

Personal Area Network (PAN)

Network Topologies

Star Topology

Mesh Topology

Bus Topology

Ring Topology

IP Address

Subnetting

Definition

Classless Inter-Domain Routing (CIDR)

Definition

Key Concepts and Features

Example

Protocol Layers and OSI Model

Definition

The Open Systems Interconnection (OSI) model is a conceptual framework that divides network communication functions into seven layers.

Every tech in specific layer must provide certain capabilities and perform specific functions to be useful in networking.

Tech in higher layers benefit from abstraction, as they can use lower-level tech without having to worry about underlying implementation details.

Importance

Layers of OSI model encapsulate every type of network communication across both software and hardware components.

Model was designed to allow standalone systems to communicate via standardised interfaces or protocols based on current layer of operation.

Benefits

Seven Layers of OSI Model

Physical Layer (L1)

Refers to the physical communication medium and the technologies to transmit data across that medium.

Data communication (transfer of digital and electronic signals through various physical channels) occurs through fibre-optic cables, copper cabling, air, etc.

Physical layer includes standards for technologies and metrics related with channels like:

Refers to technologies used to connect two machines across a network where physical layer already exists.

Manages data frames.

Data Frames

Digital signals encapsulated into data packets.

Flow control and error control of data are often key focuses of data link layer.

Ethernet is an example of a standard at this level.

Data Link Layer (Example)

Data link layer is often split into two sub-layers.

Media Access Control (MAC) layer

Controls how devices access the network and communicate over shared medium. Lower sublayer closest to L2.

Addressing

MAC address (hardware/physical addresses) identify devices in a network uniquely. Each Network Interface Card (NIC) has a globally unique MAC address assigned by manufacturer.

Access Control

Controls when and how devices can transmit data. In shared medium networks (like Ethernet), the MAC layer uses techniques like Carrier Sense Multiple Access with Collision Detection (CSMA/CD), or Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) to manage access and avoid or handle collisions.

Frame Delimitation

Organizes data into frames with headers and trailers for error detection.

Error Detection

Identifies corrupted data using techniques like Cyclic Redundancy Check (CRC).

Flow Control

Regulates data flow to prevent sender from overwhelming receiver.

Upper sublayer whose primary role is to provide interface between L3 and MAC Layer. It manages communication between devices and helps in error handing and flow control.

Multiplexing

Allows multiple network protocols (like IPv4, IPv6, etc.) to use same network interface by distinguishing between them with Service Access Points (SAPs).

Error Handling

Provides mechanisms for error detection and sometimes recovery.

Network Layer (L3)

This layer is concerned with concepts such as routing, forwarding, and addressing across dispersed network or multiple connected networks of nodes or machines.

Across the internet, the Internet Protocol v4 (IPv4) and v6 (IPv6) are used as the main network layer protocols.

Transport Layer (L4)

Ensures that data packets arrive in the right order, without losses or errors, or can be seamlessly recovered if required.

Commonly used protocols in this layer include:

Session Layer (L5)

Manages and controls the dialog or session between two communicating devices. It establishes, maintains, and terminates communication sessions.

Its functions include:

Presentation Layer (L6)

Responsible for ensuring that data sent by application layer of one system is readable by application layer of another.

Its functions include:

Application Layer (L7)

Provides interfaces and services for applications to access network resources and communicate with other devices over the network.

Its primary function is to ensure that applications have a way to send and recieve data. Common protocols in this layer include:

Network Devices

Router

Switch

Modems

Access Points

Definition

Device in a wireless local area network (WLAN) that allows wireless devices to connect to a wired network. It creates a wireless connection point between wired and wireless networks.

Types of Access Points

Functions

Firewall