Network Flashcards

1
Q

What is the difference between HTTP and HTTPS?

A

HTTP (Hypertext Transfer Protocol) is used for transmitting data over the web. HTTPS adds encryption using SSL/TLS, ensuring data is secure in transit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is DNS, and how does it work?

A

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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an IP address, and what are the differences between IPv4 and IPv6?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the TCP/IP model?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between TCP and UDP?

A
  • TCP: Connection-oriented, ensures reliable delivery, used for data like webpages and emails.
  • UDP: Connectionless, faster but less reliable, used for streaming or gaming.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are ports in networking, and why are they important?

A

Ports are endpoints in networking used to identify specific processes or services. For example:

  • Port 80: HTTP.
  • Port 443: HTTPS.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is DNS caching, and how does it improve performance?

A

DNS caching stores resolved IP addresses locally (e.g., in your browser or OS) to avoid repeated queries, reducing latency and speeding up browsing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are common HTTP methods, and how are they used?

A

GET: Retrieve data.
POST: Send data to create resources.
PUT: Update/replace resources.
DELETE: Remove resources.
PATCH: Partially update resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are HTTP status codes, and give examples of common ones.

A

HTTP status codes indicate the result of an HTTP request:

  • 200: OK.
  • 401: UnAuthorised.
  • 404: Not Found.
  • 500: Internal Server Error.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Cross-Origin Resource Sharing (CORS)?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are WebSockets, and how do they differ from HTTP?

A

WebSockets provide a persistent, full-duplex communication channel between the client and server, unlike HTTP, which is stateless and request-response-based.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is latency in networking?

A

Latency is the time it takes for a data packet to travel from the source to the destination.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a Content Delivery Network (CDN)?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is load balancing, and why is it important?

A

Load balancing distributes incoming traffic across multiple servers to ensure reliability, prevent overload, and improve performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the layers of the OSI model?

A

The OSI model has seven layers:
- Physical.
- Data Link.
- Network.
- Transport.
- Session.
- Presentation.
- Application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is TLS/SSL, and why is it used?

A

TLS (Transport Layer Security) and SSL (Secure Sockets Layer) encrypt data in transit, ensuring secure communication over the internet. HTTPS relies on TLS/SSL.

17
Q

What is a proxy server, and how does it work?

A

A proxy server acts as an intermediary between a client and the internet, providing anonymity, caching, and security features.

18
Q

What is NAT, and why is it used?

A

NAT (Network Address Translation) translates private IP addresses within a local network to a single public IP address, allowing multiple devices to share one internet connection.

19
Q

What is packet switching?

A

Packet switching is a method of transmitting data by dividing it into packets, which are routed independently and reassembled at the destination.

20
Q

What are ping and traceroute commands used for?

A
  • Ping: Tests connectivity between two devices by sending ICMP echo requests.
  • Traceroute: Tracks the route data packets take to reach a destination, showing each hop along the way.