What is a default gateway?
A default gateway is a network node (typically a router) that serves as an access point to another network. It is the device that a host sends data to when the destination host is not on its own local network (subnet).
In simple terms, if your computer wants to send a packet to a device outside of your local network (e.g., a website on the internet), it doesn't know the exact path. So, it sends the packet to its configured default gateway. The gateway then takes on the responsibility of routing the packet towards its final destination.
What is DNS and how does it work?
DNS (Domain Name System) is the phonebook of the Internet. Humans access information online through domain names like google.com
or wikipedia.org
. Web browsers, however, interact through IP addresses. DNS translates human-readable domain names into machine-readable IP addresses.
The process generally works as follows:
www.example.com
) into their browser..com
, .org
, etc.). The TLD server then directs it to an...www.example.com
back to the recursive server.What is the difference between a Hub, a Switch, and a Router?
These are all networking devices but they operate at different layers of the OSI model and have different functions.
Feature | Hub | Switch | Router |
---|---|---|---|
OSI Layer | Layer 1 (Physical) | Layer 2 (Data Link) | Layer 3 (Network) |
Function | Connects multiple devices in a LAN. It's a 'dumb' device. | Connects multiple devices in a LAN. It's an 'intelligent' device. | Connects different networks together (e.g., your LAN to the Internet). |
Data Transmission | Broadcasts any incoming data packet to all connected ports. | Forwards data packets only to the specific destination port by using MAC addresses. | Forwards data packets between different networks by using IP addresses. |
Address Used | None. | MAC Address. | IP Address. |
Collision Domain | All devices are in a single collision domain. | Each port is its own collision domain. | Each port is its own broadcast domain. |
Best Use | Rarely used in modern networks. Replaced by switches. | The standard device for connecting computers in a LAN. | The standard device for connecting a LAN to a WAN (Internet). |
What is a MAC address?
A MAC (Media Access Control) address is a unique hardware identifier assigned to a network interface controller (NIC) for use as a network address in communications within a network segment.
00:1A:2B:3C:4D:5E
).What is ARP?
ARP (Address Resolution Protocol) is a communication protocol used for discovering the MAC (Media Access Control) address associated with a given IP address.
When a device wants to send a packet to another device on the same local network, it knows the destination IP address, but it needs the destination MAC address to create the Layer 2 frame. ARP is used to find it:
What is DHCP?
DHCP (Dynamic Host Configuration Protocol) is a network management protocol used to automate the process of configuring devices on IP networks. It automatically assigns an IP address and other network parameters to each device when it joins the network.
Without DHCP, network administrators would have to manually assign IP addresses to every device, which is tedious and prone to errors.
The process is often called DORA:
What is NAT?
NAT (Network Address Translation) is a method used by routers to map multiple private IP addresses within a local network to a single public IP address before transferring the information onto the internet.
Why is it needed?
The number of IPv4 addresses is limited. It's not feasible to assign a unique public IP address to every single device in the world. NAT solves this by allowing a company or household to use private IP addresses (like those in the 192.168.x.x
range) for all of its internal devices, while only needing one public IP address from their Internet Service Provider (ISP) for their router.
When an internal device sends a packet to the internet, the router replaces the private source IP address with its own public IP address. When the response comes back, the router knows which internal device to forward it to based on a translation table it maintains.
What is a firewall?
A firewall is a network security device that monitors incoming and outgoing network traffic and decides whether to allow or block specific traffic based on a defined set of security rules.
Firewalls establish a barrier between a trusted internal network and an untrusted external network, such as the Internet.
They can be hardware, software, or both. They are a first line of defense in network security and can prevent unauthorized access, malware, and other threats from entering a private network.
What is a port in networking?
A port is a communication endpoint in a computer's operating system. It is a 16-bit number (from 0 to 65535) used to identify a specific process or a type of network service.
While an IP address gets a data packet to a specific device, the port number tells the device's operating system which specific application or service the packet is intended for.
Ports are categorized as:
What is the difference between HTTP and HTTPS?
HTTP (Hypertext Transfer Protocol) is the protocol used for transmitting hypermedia documents, such as HTML. It is the foundation of data communication for the World Wide Web.
HTTPS (Hypertext Transfer Protocol Secure) is the secure version of HTTP. The 'S' stands for 'Secure'.
The key differences are:
Modern browsers flag HTTP sites as 'Not Secure', and using HTTPS is a standard practice for all websites.