Network Flashcards
What is the difference between HTTP and HTTPS?
HTTP (Hypertext Transfer Protocol) is used for transmitting data over the web. HTTPS adds encryption using SSL/TLS, ensuring data is secure in transit.
What is DNS, and how does it work?
DNS (Domain Name System) translates human-readable domain names (e.g., google.com) into IP addresses. It works through a hierarchy of servers:
- Recursive Resolver queries.
- Root Server directs to a TLD server.
- TLD Server directs to an authoritative server.
- Authoritative Server provides the IP address.
What is an IP address, and what are the differences between IPv4 and IPv6?
An IP address is a unique identifier for devices on a network:
- IPv4: 32-bit addresses (e.g., 192.168.0.1).
- IPv6: 128-bit addresses (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334) to accommodate more devices.
What is the TCP/IP model?
TCP/IP is a suite of protocols for communication over the internet. Key layers:
- Application Layer (e.g., HTTP, FTP).
- Transport Layer (e.g., TCP, UDP).
- Internet Layer (e.g., IP, routing).
- Network Access Layer (e.g., Ethernet).
What is the difference between TCP and UDP?
- TCP: Connection-oriented, ensures reliable delivery, used for data like webpages and emails.
- UDP: Connectionless, faster but less reliable, used for streaming or gaming.
What are ports in networking, and why are they important?
Ports are endpoints in networking used to identify specific processes or services. For example:
- Port 80: HTTP.
- Port 443: HTTPS.
What is DNS caching, and how does it improve performance?
DNS caching stores resolved IP addresses locally (e.g., in your browser or OS) to avoid repeated queries, reducing latency and speeding up browsing.
What are common HTTP methods, and how are they used?
GET: Retrieve data.
POST: Send data to create resources.
PUT: Update/replace resources.
DELETE: Remove resources.
PATCH: Partially update resources.
What are HTTP status codes, and give examples of common ones.
HTTP status codes indicate the result of an HTTP request:
- 200: OK.
- 401: UnAuthorised.
- 404: Not Found.
- 500: Internal Server Error.
What is Cross-Origin Resource Sharing (CORS)?
CORS is a security policy that controls how resources on a server can be accessed by clients from other origins. It’s implemented using HTTP headers like Access-Control-Allow-Origin.
What are WebSockets, and how do they differ from HTTP?
WebSockets provide a persistent, full-duplex communication channel between the client and server, unlike HTTP, which is stateless and request-response-based.
What is latency in networking?
Latency is the time it takes for a data packet to travel from the source to the destination.
What is a Content Delivery Network (CDN)?
A CDN is a distributed network of servers that cache and deliver content (e.g., images, videos) from the nearest location to the user, reducing latency and improving load times.
What is load balancing, and why is it important?
Load balancing distributes incoming traffic across multiple servers to ensure reliability, prevent overload, and improve performance.
What are the layers of the OSI model?
The OSI model has seven layers:
- Physical.
- Data Link.
- Network.
- Transport.
- Session.
- Presentation.
- Application.