Computer networking
Computer networking
Types of networks:
PAN (Personal Area Network): A PAN is a small-scale network designed
for personal use within a limited area, typically within the range of a
person's workspace or immediate surroundings. It enables the connection
of devices like laptops, smartphones, tablets, and peripherals, allowing for
communication and data sharing between them.
LAN (Local Area Network): A LAN is a network that covers a relatively
small geographical area, such as an office building, school, or home. It
connects multiple devices within the same location, enabling them to
share resources, such as files, printers, and internet access. LANs are
commonly used in homes and businesses to facilitate efficient internal
communication and collaboration.
WAN (Wide Area Network): A WAN is a network that spans a large
geographical area, such as multiple cities or countries. It connects
multiple LANs or other networks together, often using public or private
telecommunication infrastructure. WANs enable long-distance
communication and data sharing, allowing organizations to connect their
geographically dispersed offices and locations.
Uses of networks:
1. E-mail: Networks facilitate the exchange of electronic mail (e-mail)
between users, enabling fast and efficient communication across different
locations.
2. Conferencing: Networks enable real-time audio and video
conferencing, allowing individuals or groups in different locations to
collaborate, communicate, and hold meetings virtually.
3. Easier data backup: Networks provide a convenient way to back up data
by storing it on network-attached storage devices or remote servers,
ensuring data redundancy and easy recovery in case of system failures or
disasters.
4. Voice over Internet Protocol (VoIP): Networks support VoIP
technology, which allows voice communication over the internet,
enabling cost-effective and flexible telephone services.
Advantages of networks:
1 .Resource sharing: Networks allow for the sharing of hardware devices,
such as printers and storage, making it more cost-effective and efficient.
2 .Communication and collaboration: Networks enable easy and fast
communication and collaboration among individuals and groups,
regardless of their physical locations.
3 .Data sharing: Networks facilitate the sharing and transfer of data
between connected devices, improving productivity and efficiency.
4 .Centralized management: Networks provide centralized management
and control over resources, making it easier to administer and maintain
the network infrastructure.
Disadvantages of networks
1. Security risks: Networks can be vulnerable to security threats, such
as unauthorized access, data breaches, and malware attacks,
requiring robust security measures to protect sensitive information
2. Reliance on infrastructure: Networks depend on reliable
infrastructure, including cables, routers, and servers. Any failure or
disruption in the network infrastructure can impact connectivity and
productivity
3. Complexity: Setting up and managing networks can be complex and
requires technical expertise. Troubleshooting network issues can
also be challenging
4. Cost: Implementing and maintaining a network infrastructure can
involve significant costs, including hardware, software, and ongoing
maintenance expenses.
It's important to note that these network architectures are not mutually
exclusive, and hybrid architectures can also be employed depending on
the specific requirements of an organization or network environment.
Additionally, advances in technology, such as cloud computing and
virtualization, have introduced new architectural models and variations in
network design.
Network Transmission Media
When selecting an appropriate Ethernet cable for networking, there are
several factors to consider. Let's go through each of them:
1. T568A:
T568A is a wiring standard used for Ethernet cables. In this standard,
the pin assignments for the eight wires in the cable are as follows:
- Pin 1: White/Green
- Pin 2: Green
- Pin 3: White/Orange
- Pin 4: Blue
- Pin 5: White/Blue
- Pin 6: Orange
- Pin 7: White/Brown
- Pin 8: Brown
2. T568B:
T568B is another wiring standard for Ethernet cables. It has a different
pin assignment compared to T568A:
- Pin 1: White/Orange
- Pin 2: Orange
- Pin 3: White/Green
- Pin 4: Blue
- Pin 5: White/Blue
- Pin 6: Green
- Pin 7: White/Brown
- Pin 8: Brown
Difference between T568A and T568B:
The primary difference between T568A and T568B is the order in which
the color-coded pairs are connected to the pins. Both standards are equally
valid, but T568B is more commonly used in Ethernet installations. The
important thing is to use the same standard on both ends of the cable to
ensure proper connectivity.
Ethernet Cables:
1. Straight-through cable:
A straight-through cable has the same wiring standard (either T568A or
T568B) on both ends. It is commonly used to connect a computer to a
switch, router, or hub.
2. Crossover cable:
A crossover cable has different wiring standards on each end. One end
follows the T568A standard, and the other end follows the T568B
standard. Crossover cables are typically used to connect two computers
directly or to connect switches or hubs together without using an
intermediary device like a router.
Difference between straight-through and crossover cables:
The difference lies in the wiring configuration. Straight-through cables
are used for connecting different types of devices (e.g., computer to
switch), while crossover cables are used for connecting similar devices
(e.g., computer to computer or switch to switch).
2. Network connectors:
A network connector is a hardware component used to establish a physical
connection between network devices or cables. It allows for the transfer
of data signals and electrical power between devices in a network.
Network connectors come in various types and are designed to be
compatible with specific network technologies and cable types.
RJ45 connectors are commonly used for Ethernet connections. They have
eight pins and are used with twisted-pair cables to connect devices like
computers, switches, and routers.
-RJ11 connectors are used for telephone and modem connections. They
have six pins and are commonly found in telephone cables.
-RJ48 connectors are similar to RJ45 connectors but are used for digital
lines, such as T1 or E1 connections. They have the same physical
appearance as RJ45 connectors but are wired differently.
- USB connectors: USB connectors are used for connecting various
devices to computers, such as printers, external hard drives, and
keyboards. They come in different sizes and versions (USB-A, USB-B,
USB-C) and are widely used for data transfer and power supply.
- BNC connectors: BNC (Bayonet Neill-Concelman) connectors are
commonly used for coaxial cables in video and radio frequency (RF)
applications. They provide a quick and secure connection and are often
found in CCTV systems and older networking equipment.
- Fiber Optic connectors: Fiber optic connectors are used in fiber optic
networks to connect optical fibers. Different types of connectors are
available, including SC, LC, ST, and MTP/MPO connectors, each with its
own design and method of connection.
Networking Device
1. Gateway:
- Function: A gateway is a networking device that serves as an entry and
exit point between two different networks. It provides connectivity and
enables communication between networks using different protocols or
technologies. Gateways can be hardware devices or software applications.
2. Router:
- Function: A router is a networking device that connects multiple
networks together. It analyzes network traffic and determines the most
efficient path for data packets to travel between networks. Routers use
routing tables and protocols to forward data and make decisions based on
IP addresses. They can also perform network address translation (NAT)
to allow multiple devices to share a single public IP address.
3. Switch:
- Function: A switch is a networking device that connects multiple
devices within a local area network (LAN). It operates at the data link
layer (Layer 2) of the OSI model and uses MAC addresses to forward data
packets to the intended recipient. Switches improve network performance
by creating dedicated connections between devices and reducing network
congestion.
4. Hub:
- Function: A hub is a basic networking device that connects multiple
devices in a LAN. Unlike a switch, a hub operates at the physical layer
(Layer 1) of the OSI model and simply repeats incoming signals to all
connected devices. As a result, data sent to one device is received by all
devices connected to the hub, leading to increased network collisions and
reduced performance.
5. B-router (Bridge/Router):
- Function: A bridge/router, also known as a brouter, is a networking
device that combines the functions of a bridge and a router. It can connect
multiple networks together by forwarding data packets based on both
MAC addresses (like a bridge) and IP addresses (like a router). B-routers
are typically used in smaller networks where both bridging and routing
capabilities are required.
6. Repeater:
- Function: A repeater is a networking device that regenerates and
amplifies signals to extend the reach of a network. It operates at the
physical layer (Layer 1) of the OSI model and is used to overcome signal
degradation and loss over long distances. Repeaters receive incoming
signals, amplify them, and retransmit them to extend the network's range.
These networking devices play crucial roles in establishing and
maintaining network connectivity. Understanding their functions and
capabilities is essential for designing, configuring, and troubleshooting
networks effectively.
IP addressing
An IP address (Internet Protocol address) is a numerical label assigned to
each device connected to a computer network that uses the Internet
Protocol for communication. It serves two main functions: identifying the
host or network interface and providing the location of the device in the
network.
IP addresses are unique identifiers that allow devices to send and receive
data over the internet or a local network. They consist of a series of
numbers separated by periods (e.g., 192.168.0.1). There are two versions
of IP addresses currently in use:
1. IPv4 (Internet Protocol version 4): This is the most widely used version
of IP addresses. An IPv4 address consists of four sets of numbers ranging
from 0 to 255, separated by periods. For example, 192.168.0.1. IPv4
addresses provide approximately 4.3 billion unique addresses.
2. IPv6 (Internet Protocol version 6): IPv6 was developed to address the
limitation of available IPv4 addresses. IPv6 addresses are significantly
longer and use hexadecimal digits and colons for separation. An example
of an IPv6 address is 2001:0db8:85a3:0000:0000:8a2e:0370:7334. IPv6
provides a much larger address space, allowing for trillions of unique
addresses.
IP addresses play a vital role in routing data packets across networks.
Devices use IP addresses to establish connections, direct traffic, and
ensure that data reaches the intended destination. IP addresses are
assigned dynamically through DHCP (Dynamic Host Configuration
Protocol) or can be manually configured for specific devices and network
3. DHCP Relay: In some network setups, DHCP clients are not directly
connected to the DHCP server. Instead, they may be located on different
subnets or VLANs. In such cases, DHCP relay agents are used to forward
DHCP requests from clients to the DHCP server and relay the server's
response back to the clients.
4. IP Address Pool: The DHCP server maintains a pool of available IP
addresses that it can assign to clients. The administrator defines a range
of IP addresses, known as the IP address pool, from which the server can
dynamically assign addresses to clients.
5. Subnet: A subnet is a logical division of an IP network. It allows for the
segmentation of a large network into smaller, more manageable
subnetworks. DHCP servers are typically configured to assign IP
addresses based on the subnet to which the client belongs.
6. Lease: When a DHCP server assigns an IP address to a client, it does
so for a specific period called the lease time. The lease time is the duration
for which the IP address is valid for the client. Before the lease expires,
the client can request a lease renewal to extend its IP address lease.
Benefits of DHCP:
1. Reduced Network Administration: DHCP eliminates the manual
configuration of IP addresses on individual devices. It automates the
process, reducing the administrative burden of managing IP address
assignments.
2. Reliable IP Address Configuration: DHCP ensures that IP addresses are
assigned correctly and avoids conflicts that may occur when two devices
have the same IP address.
3. Mobility: DHCP allows devices to move between different networks
without requiring manual reconfiguration. When a device connects to a
new network, it can obtain a new IP address automatically from the DHCP
server.
4. IP Address Optimization: DHCP optimizes IP address allocation by
dynamically assigning addresses only when they are needed. When a
device leaves the network or its lease expires, the IP address is returned
to the pool and becomes available for assignment to other devices.
.
IP DOMAIN NAME SYSTEM (DNS
DNS (Domain Name System) is a decentralized system that translates
domain names (such as www.example.com) into IP addresses that
computers can understand. It acts as a directory for the internet, allowing
users to access websites and other resources using human-readable
domain names instead of having to remember numerical IP addresses.
How DNS works:
DNS Resolution: When you enter a domain name into your web browser,
your device sends a DNS resolution request to a DNS resolver or DNS
server. This request asks for the IP address associated with the domain
name.
DNS Hierarchy: DNS operates in a hierarchical structure. At the top of
the hierarchy are the root DNS servers, which store information about the
top-level domains (TLDs) like .com, .org, and .net. Below the root servers
are the TLD servers, which store information about specific domain
extensions (e.g., .com TLD server). Finally, there are authoritative DNS
servers that store information about individual domain names.
DNS Query: The DNS resolver or DNS server begins the resolution
process by sending a query to the root DNS server, asking for the IP
address of the TLD server that corresponds to the domain name being
requested.
Recursive Resolution: The root DNS server responds to the resolver with
the IP address of the appropriate TLD server. The resolver then sends a
query to the TLD server, requesting the IP address of the authoritative
DNS server responsible for the specific domain name.