What is Ethernet?
Ethernet is the traditional technology for connecting devices in a wired local area network (LAN) or wide area network (WAN). It defines the physical cables, the electronic signals, and the protocols used at the Physical and Data Link layers of the OSI model.
Key characteristics of modern Ethernet include:
What is a checksum?
A checksum is a small-sized block of data derived from a larger block of digital data for the purpose of detecting errors that may have been introduced during its transmission or storage.
The sender calculates a checksum value based on the content of the data packet and includes this value in the packet's header (e.g., in the TCP, UDP, and IP headers).
When the receiver gets the packet, it performs the exact same calculation on the received data. It then compares its calculated checksum with the checksum value included in the header.
What is a 'port scan'?
A port scan is a technique used to probe a server or host for open ports. This is a common reconnaissance technique used by attackers to identify active services and potential vulnerabilities on a target system.
The attacker sends connection requests to a range of ports on the target machine. Based on the responses, they can determine:
While administrators use port scanning for network security audits, it is often a precursor to a cyber-attack.
What happens when you type google.com into your browser and press Enter?
This is a classic, comprehensive question that tests knowledge across the entire network stack. Here is a simplified step-by-step summary:
google.com
.200 OK
) and the content of the page (HTML, CSS, JavaScript).What is the difference between a distance-vector and a link-state routing protocol?
These are two major classes of Interior Gateway Protocols (IGPs). Their primary difference is in how they gather and share routing information.
Feature | Distance-Vector | Link-State |
---|---|---|
Information Shared | Shares its entire routing table with directly connected neighbors. Known as 'routing by rumor'. | Shares information only about its own direct links (its 'link state') with all routers in the area. |
Network View | Each router has a limited view of the network topology, only knowing the 'distance' and 'vector' (direction) to networks via its neighbors. | Each router builds a complete map (topology) of the entire network area. |
Update Mechanism | Sends periodic, full updates, which can consume bandwidth. | Sends triggered updates only when a change in topology occurs. Updates are small. |
Convergence | Slower convergence. Prone to routing loops (though mechanisms like split horizon exist to mitigate this). | Faster convergence. Calculates the shortest path using Dijkstra's algorithm. |
Examples | RIP (Routing Information Protocol), IGRP (older Cisco protocol). | OSPF (Open Shortest Path First), IS-IS (Intermediate System to Intermediate System). |
What is Software-Defined Networking (SDN)?
Software-Defined Networking (SDN) is a network architecture approach that separates the network's control plane from its data plane.
In traditional networking, these two planes are tightly integrated within each device. In SDN, the control plane is centralized into a software-based SDN Controller. The controller communicates with the forwarding devices using APIs (like OpenFlow) to tell them how to handle traffic.
Benefits:
In cloud networking (e.g., AWS), what is the difference between a Security Group and a Network ACL?
Both are virtual firewalls used to control traffic, but they operate at different levels and in different ways.
Feature | Security Group (SG) | Network Access Control List (NACL) |
---|---|---|
Scope | Acts at the instance (virtual server) level. It's the firewall for the EC2 instance itself. | Acts at the subnet level. It's a firewall for the entire subnet and controls traffic entering and leaving it. |
Statefulness | Stateful. If you allow an inbound request, the corresponding outbound response is automatically allowed, regardless of outbound rules. | Stateless. Return traffic must be explicitly allowed by an outbound rule. You need separate inbound and outbound rules. |
Rules | Supports 'allow' rules only. By default, all traffic is denied. | Supports both 'allow' and 'deny' rules. |
Rule Evaluation | All rules are evaluated before a decision is made. | Rules are evaluated in numerical order, and the first matching rule is applied immediately. |
What is MTU and how does it relate to fragmentation?
MTU (Maximum Transmission Unit) is the size of the largest data packet that a network-connected device can transmit. The standard MTU for Ethernet is 1500 bytes.
Fragmentation is the process of breaking up a single IP packet into smaller units (fragments) if it is larger than the MTU of a link it needs to traverse.
For example, if a router receives a 1500-byte packet but needs to send it over a link with an MTU of 1400 bytes (e.g., a VPN tunnel that adds its own headers), the router must fragment the packet into two or more smaller packets. The fragments are then reassembled at the final destination host.
Fragmentation is generally undesirable because:
What is BGP (Border Gateway Protocol)?
BGP (Border Gateway Protocol) is the standardized Exterior Gateway Protocol (EGP) designed to exchange routing and reachability information among different Autonomous Systems (AS) on the Internet.
An AS is a large network or group of networks under a single administrative control (e.g., an ISP, a large tech company). BGP is the protocol that essentially holds the entire Internet together by managing how traffic is routed between these massive networks.
Unlike IGPs like OSPF that focus on finding the fastest path, BGP makes routing decisions based on paths, network policies, and a set of configured rules and attributes. It is highly scalable and robust.
A user complains 'the internet is slow'. What are your troubleshooting steps?
This is a common issue that requires a systematic, layered approach to diagnose.
ping <default_gateway>
to check latency to the local router. High latency points to a local network issue.ping 8.8.8.8
(Google's DNS) to check latency to the internet. If this is slow but the gateway ping is fast, the problem is likely with the internet connection itself.traceroute 8.8.8.8
to identify where the latency is increasing along the path.