Basics-of-Computer-Networking
Basics-of-Computer-Networking
Computer Networking
The working of Computer Networks can be simply defined as rules or protocols which help in
sending and receiving data via the links which allow Computer networks to communicate. Each
device has an IP Address, that helps in identifying a device.
Nodes: Nodes are devices that are connected to a network. These can include computers,
Servers, Printers, Routers, Switches, and other devices.
Protocol: A protocol is a set of rules and standards that govern how data is transmitted
over a network. Examples of protocols include TCP/IP, HTTP, and FTP.
Topology: Network topology refers to the physical and logical arrangement of nodes on
a network. The common network topologies include bus, star, ring, mesh, and tree.
Service Provider Networks: These types of Networks give permission to take Network
Capacity and Functionality on lease from the Provider. Service Provider Networks
include Wireless Communications, Data Carriers, etc.
DNS: The Domain Name System (DNS) is a protocol that is used to translate human-
readable domain names (such as www.google.com) into IP addresses that computers can
understand.
Firewall: A firewall is a security device that is used to monitor and control incoming and
outgoing network traffic. Firewalls are used to protect networks from unauthorized access
and other security threats.
WAN: A Wide Area Network (WAN) is a network that covers a large geographic area,
such as a city, country, or even the entire world. WANs are used to connect LANs
together and are typically used for long-distance communication.
Cloud Networks: Cloud Networks can be visualized with a Wide Area Network (WAN)
as they can be hosted on public or private cloud service providers and cloud networks are
available if there is a demand. Cloud Networks consist of Virtual Routers, Firewalls, etc.
These are just a few basic concepts of computer networking. Networking is a vast and complex
field, and there are many more concepts and technologies involved in building and maintaining
networks. Now we are going to discuss some more concepts on Computer Networking.
Open system: A system that is connected to the network and is ready for
communication.
Closed system: A system that is not connected to the network and can’t be
communicated with.
Network Devices
An interconnection of multiple devices, also known as hosts, that are connected using multiple
paths for the purpose of sending/receiving data or media. Computer networks can also include
multiple devices/mediums which help in the communication between two different devices;
these are known as Network devices and include things such as routers, switches, hubs, and
bridges.
Network Devices
Network Topology
The Network Topology is the layout arrangement of the different devices in a network. Common
examples include Bus, Star, Mesh, Ring, and Daisy chain.
Network Topology
OSI Model
OSI stands for Open Systems Interconnection. It is a reference model that specifies standards for
communications protocols and also the functionalities of each layer. The OSI has been developed
by the International Organization For Standardization and it is 7 layer architecture. Each layer of
OSI has different functions and each layer has to follow different protocols. The 7 layers are as
follows:
Physical Layer
Network Layer
Transport Layer
Session Layer
Presentation Layer
Application Layer
Network Protocols
A protocol is a set of rules or algorithms which define the way how two entities can
communicate across the network and there exists a different protocol defined at each layer of the
OSI model. A few such protocols are TCP, IP, UDP, ARP, DHCP, FTP, and so on.
Function: The foundational protocol suite of the internet, enabling reliable communication.
Components:
Components: Includes commands for uploading, downloading, and managing files on a remote
server.
IP Address (Internet Protocol address): Also known as the Logical Address, the IP Address is
the network address of the system across the network. To identify each device in the world-wide-
web, the Internet Assigned Numbers Authority (IANA) assigns an IPV4 (Version 4) address as a
unique identifier to each device on the Internet. The length of an IPv4 address is 32 bits, hence,
we have 232 IP addresses available. The length of an IPv6 address is 128 bits.
In Windows Type “ipconfig” in the command prompt and press ‘Enter’, this gives us the IP
address of the device. For Linux, Type “ifconfig” in the terminal and press ‘Enter’ this gives us
the IP address of the device.
MAC Address (Media Access Control address): Also known as physical address, the MAC
Address is the unique identifier of each host and is associated with its NIC (Network Interface
Card). A MAC address is assigned to the NIC at the time of manufacturing. The length of the
MAC address is: 12-nibble/ 6 bytes/ 48 bits Type “ipconfig/all” in the command prompt and
press ‘Enter’, this gives us the MAC address.
Port: A port can be referred to as a logical channel through which data can be sent/received to an
application. Any host may have multiple applications running, and each of these applications is
identified using the port number on which they are running.
A port number is a 16-bit integer, hence, we have 2 16 ports available which are categorized as
shown below:
Socket: The unique combination of IP address and Port number together is termed a Socket.
ARP: ARP stands for Address Resolution Protocol. It is used to convert an IP address to its
corresponding physical address(i.e., MAC Address). ARP is used by the Data Link Layer to
identify the MAC address of the Receiver’s machine.
RARP: RARP stands for Reverse Address Resolution Protocol. As the name suggests, it
provides the IP address of the device given a physical address as input. But RARP has become
obsolete since the time DHCP has come into the picture.
The Domain Name System (DNS) is a critical component of computer networking. It converts
easily recognizable domain names, such as www.example.com, into numerical IP addresses that
computers use to identify each other on the network.
DNS Query: The user’s device sends a DNS query to the DNS resolver.
Resolver Request: The DNS resolver checks its cache for the IP address. If not found, it
forwards the request to the root DNS server.
Root DNS Server: The root DNS server provides the address of the TLD (Top-Level Domain)
server for the specific domain extension (e.g., .com).
TLD DNS Server: The TLD server directs the resolver to the authoritative DNS server for the
actual domain.
Authoritative DNS Server: The authoritative DNS server knows the IP address for the domain
and provides it to the resolver.
Response to User: The resolver stores the IP address in its cache and sends it to the user’s
device.
Access Website: With the IP address, the user’s device can access the desired website.
DNS works efficiently, translating user-friendly domain names into IP addresses, allowing
seamless navigation on the internet.
Network Security
Ensuring the security of a network is crucial to protect data and resources from unauthorized
access and attacks. Key aspects of network security include:
Firewalls: Devices or software that monitor and control incoming and outgoing network traffic
based on security rules.
Encryption: The process of encoding data to prevent unauthorized access. Commonly used in
VPNs, HTTPS, and secure email.
Intrusion Detection Systems (IDS): Tools that monitor network traffic for suspicious activity
and potential threats.
Access Control: Mechanisms that restrict access to network resources based on user identity and
role.
Regular Updates and Patching: Keeping software and hardware up to date to protect against
vulnerabilities.
Conclusion
Understanding the basics of computer networking is essential in today’s interconnected world.
Networks enable the seamless exchange of information, support countless applications, and
underpin the functionality of the internet. From different types of networks and their components
to protocols and security measures, a solid grasp of these concepts is foundational for anyone
working in or with technology. As technology evolves, so too will the complexity and
capabilities of computer networks, making continuous learning and adaptation crucial.
What is a firewall?
A firewall is a network security device or software that monitors and controls incoming and
outgoing network traffic based on predefined security rules. It acts as a barrier between a trusted
internal network and untrusted external networks like the internet.
What is a firewall?
A firewall is a network security device or software that monitors and controls incoming and
outgoing network traffic based on predefined security rules. It acts as a barrier between a trusted
internal network and untrusted external networks like the internet.
What is DNS?
DNS (Domain Name System) is a system that translates human-readable domain names (like
www.example.com) into IP addresses that computers use to identify each other on the network.
A subnet mask is used in IP addressing to divide the network into sub-networks, or subnets. It
helps determine which portion of an IP address is the network address and which part is the host
address.
NAT is a method used by routers to translate private IP addresses within a local network to a
public IP address before sending data over the internet. This helps to conserve IP addresses and
add a layer of security by hiding internal network addresses.
What is a MAC address?
A MAC (Media Access Control) address is a unique identifier assigned to a network interface
card (NIC) for communication on a physical network segment. It is a hardware address that is
unique to each network device.
What is bandwidth?
Bandwidth refers to the maximum rate of data transfer across a network or internet connection in
a given amount of time. It is usually measured in bits per second (bps).
Latency is the time it takes for data to travel from the source to the destination across a network.
It is usually measured in milliseconds (ms) and can affect the performance of networked
applications.
A VPN is a secure connection that allows users to access a private network over the public
internet. It encrypts the data traffic and helps maintain privacy and security.
A proxy server acts as an intermediary between a user’s device and the internet. It can be used
for purposes such as improving security, filtering content, or bypassing geographical restrictions.