Key Concepts of Internet Protocols and TCP

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

Five layers of the Internet Protocol Stack

Application, Transport, Network, Link, Physical

2
New cards

Protocol in networking

A set of rules that define how data is transmitted and received between networked devices.

3
New cards

Difference between network edge and network core

Network edge includes hosts (clients and servers), while the network core consists of interconnected routers that forward packets.

4
New cards

Four types of network delay

Processing delay, queuing delay, transmission delay, propagation delay.

5
New cards

Difference between circuit switching and packet switching

Circuit switching reserves a dedicated path for communication, whereas packet switching breaks data into packets and routes them independently.

6
New cards

Role of the Application Layer in the Internet protocol stack

It provides network services directly to applications, such as HTTP, DNS, and SMTP.

7
New cards

Difference between Client-Server and Peer-to-Peer (P2P) architectures

Client-server has centralized servers serving multiple clients, while P2P allows direct communication between peers without a central server.

8
New cards

How the Domain Name System (DNS) works

DNS translates domain names (e.g., google.com) into IP addresses using a hierarchical lookup process.

9
New cards

Key characteristics of HTTP

Stateless, request-response protocol using TCP, supports persistent and non-persistent connections.

10
New cards

Difference between non-persistent and persistent HTTP

Non-persistent HTTP opens a new TCP connection for each object request, while persistent HTTP reuses the same connection for multiple requests.

11
New cards

Two main transport layer protocols

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).

12
New cards

Difference between TCP and UDP

TCP is reliable and connection-oriented, while UDP is fast and connectionless without reliability mechanisms.

13
New cards

Multiplexing and demultiplexing in the transport layer

Multiplexing allows multiple applications to share the same network connection, while demultiplexing directs incoming data to the correct application.

14
New cards

Purpose of the three-way handshake in TCP

To establish a reliable connection by synchronizing sequence numbers between sender and receiver.

15
New cards

Three steps of the TCP three-way handshake

1. SYN (client initiates connection) 2. SYN-ACK (server acknowledges) 3. ACK (client confirms connection).

16
New cards

Flow control in TCP

A mechanism to prevent a sender from overwhelming a receiver by managing the amount of data sent before acknowledgment.

17
New cards

Congestion control in TCP

A technique to prevent excessive data from overloading the network, using mechanisms like slow start and congestion avoidance.

18
New cards

How UDP handles lost or out-of-order packets

UDP does not handle lost or out-of-order packets; applications must implement their own reliability mechanisms if needed.

19
New cards

TCP timeout and how it is determined

A TCP timeout is the duration TCP waits for an acknowledgment before retransmitting a segment. It is estimated using the RTT (Round Trip Time).

20
New cards

Purpose of sequence numbers and acknowledgment numbers in TCP

Sequence numbers keep track of the order of bytes sent, and acknowledgment numbers confirm receipt of data and indicate the next expected byte.

21
New cards

How TCP uses cumulative acknowledgments

TCP acknowledges the highest contiguous sequence number received, reducing the number of ACKs needed for reliable communication.

22
New cards

Difference between Stop-and-Wait and Pipelined protocols

Stop-and-Wait sends one packet at a time, waiting for an ACK before sending the next, while pipelining allows multiple packets to be sent before receiving ACKs.

23
New cards

Advantage of Go-Back-N over Stop-and-Wait

Go-Back-N improves efficiency by allowing multiple packets to be in transit before requiring acknowledgments, whereas Stop-and-Wait only sends one at a time.

24
New cards

Difference between flow control and congestion control

Flow control prevents the sender from overwhelming the receiver, while congestion control prevents excessive traffic from overwhelming the network.

25
New cards

Why TCP uses exponential backoff for retransmissions

To reduce congestion by doubling the retransmission timeout when a segment is lost, avoiding excessive retransmissions.

26
New cards

TCP's Fast Retransmit mechanism

When three duplicate ACKs are received, TCP assumes a packet is lost and retransmits it immediately without waiting for a timeout.

27
New cards

Why TCP uses a congestion window (cwnd)

To dynamically adjust the number of unacknowledged packets a sender can transmit, preventing congestion collapse.

28
New cards

Difference between selective repeat and Go-Back-N

Selective repeat retransmits only lost packets, whereas Go-Back-N retransmits all packets after a lost one.

29
New cards

What happens during TCP connection termination

Both sender and receiver exchange FIN (finish) and ACK messages to gracefully close the connection.