Skip to main content

Networking 1 - Basics

What is a network? is the first question comes in mind when you want to learn about networking.
So a network is connection (it can be wired or wireless) between devices.

The connection needs some structure means how devices will be connected so here cones the Topology.
in this we need wires (cables) for wired connections and access points for wireless connection. we do not make connection from only one device to another, there are lots of devices so to make proper connection we need network devices like switch, routers.

Lets talk a bit about cables - Straight cable and Cross cable.
Straight cable is used to connect dissimilar devices like switch to pc. And Cross cable is used to connect similar devices like pc to pc or switch to switch.

For making any connection we need addresses so in networking we are having 3 types of addresses

1.MAC address - (48 bits) It is hardware address and given by manufacturer.
2.IP address - (32 bits IPv4) You can say it is logical address or software address.
3.Port address - (16 bits) where the application runs.

To explain MAC and IP and Port address I would like to take an example of House address - so the house no is the MAC address and the way to reach house is IP address and gate were you will enter and perform your work is Port address.

Now before going to Topology I will discuss about Hub, Bridge, Switch.

Hub - Just look at the image I made to Hub you will understand how it is working, we can call it multi port repeater. If you send a message from one PC so Hub sends that message to all the PCs expect the one from where it came from so its broadcast but the problem was if two or more PCs are sending at the same time so it will create collision . Here we need Bridge


Bridge - so Hub is not having property to understand physical or logical things it was just broadcasting. Now what bridge is doing it stops the signal when it goes from one HUB to another by understanding the logical and physical properties. You can understand it with Image.

Switch - there was still problem when two PCs are sending message from one domain at the same time.
so Switch came to stop single collision domain with the help of MAC table you can call it Hub+bridge.

Note - Devices in Different layers.
           Network layer - Router 
           Data Like layer - Bridge, Switch
           Physical - Hub, Repeater 
Topology and After that OSI Model in Next Blog

Comments

Post a Comment

Popular posts from this blog

OSSEC - Open source And Free Host Intrusion Detection System (HIDS)

As it clarify with name that it is host based intrusion detention system we need to set it up in host/server which we want to monitor. Features File Integrity checking Log Monitoring Rootkit detection Active response Benefits Compliance Requirements -  PCI and HIPAA Multi platform Real-time and Configurable Alerts Integration with current infrastructure Centralized management Agent and agentless m onitoring Configuration   I did in Ubuntu so here are commands I used  sudo apt get update -y sudo apt-get install apache2 -y sudo apt-get install build-essential -y sudo apt get update -y wget https://github.com/ossec/ossec-hids/archive/2.9.2.tar.gz sudo tar -zxvf 2.9.2.tar.gz cd ossec-hids-2.9.2/ sudo ./install.sh sudo /var/ossec/bin/ossec-control start cd /home/ubuntu wget https://github.com/ossec/ossec-wui/archive/master.zip sudo apt-get install unzip -y sudo unzip master.zip mv ossec-wui-master /var/www/html/ossec ...

An Nvidia card was not detected in your system fix for Asus Laptops

This article explains how to fix issue like "NVIDIA display settings are not available" OR "An Nvidia card was not detected in your system" in your Asus laptop. The Error looks like  And GPU is not present in armory crate as well You will not be able to Nvidia driver in Device Manager as well To fix this go to your armory crate software and check if Eco mode is enabled in GPU mode. Select any other mode i.e., standard  If you do not see it in your Home Page, go to device and select GPU power saving option and select any other mode than Eco mode. As you select any other mode your GPU will be back This happens because Eco Mode Completely disables GPU for power saving from armory crate Made a video as well regarding this do check it out.

OpenVAS vulnerability scanner

  OpenVAS is a framework of several services and tools offering a comprehensive and powerful vulnerability scanning and vulnerability management solution. The framework is part of Greenbone Networks commercial vulnerability management solution from which developments are contributed to the Open Source community since 2009. ·          The actual security scanner is accompanied with a regularly updated feed of Network Vulnerability Tests (NVTs), over 50,000 in total. All OpenVAS products are Free Software. Most components are licensed under the GNU General Public License (GNU GPL). ·          About NVT Feed - Greenbone maintains a public feed of Network Vulnerability Tests (NVTs) for the OpenVAS project, the Greenbone Community Feed. It contains more than 50,000 NVTs, growing on a permanent basis. This feed is configured as the default for the OpenVAS Scanner and relates to the Gr...