Host to Host Flashcards

(100 cards)

1
Q

Which OSI layers are mainly involved in Host-to-Host communication?

A

Network (Layer 3), Transport (Layer 4), and Session (Layer 5)

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

Q2: What is the main function of the Network layer?

A

Logical addressing (IP), routing, and path determination

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

Q3: What protocols operate at the Network layer?

A

IP and ICMP

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

Q4: What is the main function of the Transport layer?

A

Ensures reliable (TCP) or unreliable (UDP) delivery of data

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

Q5: What protocols operate at the Transport layer?

A

TCP (reliable), UDP (unreliable)

TCP – Transmission Control Protocol
Purpose: TCP is a transport layer protocol used for reliable data transmission between computers on a network.

Key Features:

Ensures reliable and ordered delivery of data.

Connection-oriented: A connection is established before data is transferred.

Uses acknowledgments (ACKs) to confirm receipt of data.

Example: When you load a website (HTTP over TCP), the data must arrive in order and without errors.

UDP – User Datagram Protocol
Purpose: UDP is another transport layer protocol like TCP, but it is connectionless and unreliable.

Key Features:

Faster than TCP, but no guarantee that data will arrive or be in order.

No acknowledgments.

Example: Used in live video streaming, online gaming, or VoIP, where speed is more important than perfect reliability.

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

Q6: Explain the TCP three-way handshake.

A
  1. SYN from client
  2. SYN-ACK from server
  3. ACK from client
  4. SYN from client
    SYN = Synchronize

Sent by the client to the server to start a TCP connection.

It’s basically saying: “I want to start communication and synchronize sequence numbers.”

  1. SYN-ACK from server
    SYN-ACK = Synchronize-Acknowledge

Sent by the server to the client after receiving the SYN.

It means: “I acknowledge your request to start the connection (ACK), and I also want to synchronize my sequence numbers with you (SYN).”

  1. ACK from client
    ACK = Acknowledge

Sent by the client back to the server.

It means: “I received your SYN-ACK, and now the connection is established.”

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

Q7: Is TCP connection-oriented or connectionless?

A

Connection-oriented

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

Q8: Is UDP connection-oriented or connectionless?

A

A8: Connectionless

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

Q9: Name some common TCP use cases.

A

A9: Web (HTTP), Email (SMTP)

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

Q10: Name some common UDP use cases.

A

Streaming, VoIP, DNS

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

What is an IP address?

A

A 32-bit logical address assigned to devices on a network

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

Q12: What is the purpose of port numbers?

A

Identify specific applications or services on a host

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

Q13: What port does HTTP use?

A

Port 80

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

Q14: What port does DNS use?

A

Port 53

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

Q15: What port does FTP use?

A

Port 21

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

Q16: What port does DHCP use?

A

Ports 67 and 68

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

Q17: What protocol resolves IP addresses to MAC addresses?

A

ARP (Address Resolution Protocol)

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

Q18: What is TTL in an IP packet?

A

Time to Live, limits the lifespan of a packet

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

Q19: What tool is used to check connectivity using ICMP?

A

ping

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

Q20: What does the tracert (Windows) or traceroute (Linux) command do?

A

Traces the path packets take to reach a destination

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

Q21: What is segmentation in networking?

A

Dividing large messages into smaller segments for transmission

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

Q22: What does DHCP do?

A

: Assigns IP addresses dynamically to devices

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

Q23: What layer manages sessions?

A

Session Layer (Layer 5)

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

Q24: What protocol is used to transfer files?

A

FTP (File Transfer Protocol)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q25: Which OSI layer provides error detection at the frame level?
Data Link Layer (Layer 2)
26
Q26: Which device separates broadcast domains?
Router
27
Q27: What layer does a switch operate at?
Data Link Layer (Layer 2)
28
Q28: What is encapsulation?
Wrapping data with protocol-specific headers and trailers
29
Q29: Which OSI layer adds MAC addresses?
Data Link Layer (Layer 2)
30
Q30: Which OSI layer adds IP addresses?
Network Layer (Layer 3)
31
Q31: Which OSI layer adds TCP/UDP headers?
Transport Layer (Layer 4)
32
Q32: What is the binary form of 192 in IPv4?
11000000
33
Q33: What does ICMP do?
Sends control messages like errors and diagnostics
34
Q34: What is ARP used for?
Mapping IP addresses to MAC addresses
35
Q35: Is ICMP used to assign IP addresses?
No
36
Q36: Which OSI layer handles encryption and decryption?
Presentation Layer (Layer 6)
37
What command shows IP configuration on Windows?
ipconfig
38
Q38: What command shows IP configuration on Linux?
ifconfig
39
Q39: What is the purpose of ACK in TCP?
Acknowledges receipt of data
40
What is the default subnet mask for Class C?
255.255.255.0
41
What is the default subnet mask for Class A?
255.0.0.0
42
Q42: What does NIC stand for?
Network Interface Card
43
Q43: What is the function of DNS?
Resolves domain names to IP addresses
44
What protocol does DHCP use to communicate?
UDP
45
What protocol does FTP use to communicate?
TCP
46
What is a common use for UDP in networking?
Streaming video and audio
47
What layer of the OSI model does IP operate at?
Network Layer (Layer 3)
48
What is the role of the Session layer?
Establishes, manages, and terminates communication sessions
49
Q49: What happens during encapsulation?
Data is wrapped with headers/trailers as it moves down the OSI layers
50
Q50: What protocol is responsible for error reporting in networks?
ICMP
51
Which OSI layer is responsible for reliable transmission between two devices? A. Network B. Data Link C. Transport D. Physical
Answer: c
52
What protocol is used by the transport layer to provide reliable communication? A. IP B. TCP C. UDP D. ICMP
Answer: b
53
Which layer of the OSI model assigns logical addressing such as IP addresses? A. Data Link B. Network C. Transport D. Session
Answer: b
54
Which protocol is connectionless and does not guarantee delivery? A. TCP B. FTP C. UDP D. SMTP
Answer: c
55
Which command is used to check DNS resolution from a Windows PC? A. ping B. tracert C. ipconfig D. nslookup
Answer: d
56
What is the purpose of the ARP protocol? A. Assign IP addresses B. Resolve IP addresses to MAC addresses C. Route packets between networks D. Encrypt data for secure transmission
Answer: b
57
Which OSI layer is responsible for path determination and logical addressing? A. Transport B. Network C. Data Link D. Session
Answer: b
58
What is the default subnet mask for a Class C IP address? A. 255.0.0.0 B. 255.255.0.0 C. 255.255.255.0 D. 255.255.255.255
Answer: c
59
Which device operates primarily at Layer 2 of the OSI model? A. Router B. Switch C. Firewall D. Modem
Answer: b
60
What is the function of the three-way handshake in TCP communication? A. Encrypt data B. Establish a reliable connection C. Assign IP addresses D. Resolve domain names
Answer: b
61
Which OSI layer breaks data into segments? A. Session B. Transport C. Network D. Data Link
Answer: b
62
Which OSI layer provides services like data encryption and compression? A. Application B. Presentation C. Transport D. Network
Answer: b
63
Which layer is responsible for end-to-end communication and error recovery? A. Network B. Transport C. Data Link D. Physical
Answer: b
64
What is the purpose of the MAC address in networking? A. Identify devices on the internet B. Identify network topology C. Identify devices on a local network D. Assign dynamic IPs
Answer: c
65
Which command can you use to view a device’s IP address on Windows? A. ifconfig B. ipconfig C. traceroute D. route
Answer: b
66
Which protocol helps determine the MAC address of a known IP address? A. DHCP B. DNS C. ARP D. ICMP
Answer: c
67
Which transport layer protocol is used by DNS? A. TCP B. UDP C. IP D. ICMP
Answer: b
68
What is a socket composed of? A. IP address and subnet mask B. MAC address and IP address C. IP address and port number D. MAC address and port number
Answer: c
69
What is encapsulation in networking? A. Removing headers B. Sending encrypted data C. Wrapping data with protocol-specific headers and trailers D. Compressing data
Answer: c
70
Which OSI layer is responsible for device-to-device delivery on the same network? A. Network B. Data Link C. Transport D. Physical
Answer: b
71
Which layer is responsible for converting data into electrical signals? A. Network B. Transport C. Physical D. Data Link
Answer: c
72
What does TCP use to establish a reliable connection? A. A two-way handshake B. Encryption C. IP addressing D. A three-way handshake
Answer: d
73
Which layer does IP operate at? A. Physical B. Data Link C. Network D. Transport
Answer: c
74
What does DNS stand for? A. Data Network Switch B. Dynamic Network Server C. Domain Name System D. Digital Number System
Answer: c
75
What does DHCP provide? A. Security B. IP address management C. Email services D. File transfers
Answer: b
76
Which protocol allows you to send messages and errors about network operations? A. ICMP B. ARP C. DNS D. FTP
Answer: a
77
Which number represents the well-known port range? A. 1024-49151 B. 0-1023 C. 49152-65535 D. 10000-20000
Answer: b
78
Which device uses MAC addresses to forward traffic? A. Router B. Firewall C. Switch D. Modem
Answer: c
79
What type of address does a router use to forward packets? A. MAC B. Port C. IP D. URL
Answer: c
80
Which protocol helps match domain names to IP addresses? A. FTP B. ARP C. DNS D. TCP
Answer: c
81
Which OSI layer initiates the communication session between devices? A. Application B. Session C. Presentation D. Transport
Answer: b
82
Which layer handles the syntax and format of the data? A. Network B. Presentation C. Application D. Data Link
Answer: b
83
What port number does HTTP use by default? A. 443 B. 22 C. 80 D. 25
Answer: c
84
What port number does HTTPS use? A. 21 B. 80 C. 53 D. 443
Answer: d
85
What is the function of the Physical layer in the OSI model? A. Logical addressing B. Path determination C. Bit transmission over media D. Packet routing
Answer: c
86
Which protocol ensures data is sent in sequence and retransmits lost data? A. UDP B. TCP C. ARP D. FTP
Answer: b
87
What is segmentation in networking? A. Breaking data into packets B. Dividing data into MAC frames C. Splitting the physical cable D. Creating multiple sessions
Answer: a
88
Which device typically operates at the Network layer? A. Hub B. Router C. Switch D. Repeater
Answer: b
89
What layer does FTP operate at in the OSI model? A. Network B. Transport C. Application D. Session
Answer: c
90
What is the purpose of a port number in communication? A. It defines the subnet B. It tracks MAC addresses C. It identifies applications/services D. It encrypts the data
Answer: c
91
Which layer is responsible for retransmitting lost segments? A. Network B. Data Link C. Transport D. Session
Answer: c
92
What does ICMP stand for? A. Internet Control Message Protocol B. Internal Connection Management Protocol C. Internet Communication Mapping Protocol D. Internal Control Message Platform
Answer: a
93
Which OSI layer handles flow control and congestion avoidance? A. Network B. Data Link C. Transport D. Session
Answer: c
94
Which protocol uses port 53? A. FTP B. DNS C. HTTP D. DHCP
Answer: b
95
Which protocol assigns IP addresses dynamically to clients? A. DNS B. TCP C. DHCP D. ARP
Answer: c
96
Which type of address is burned into a device’s NIC? A. IP address B. MAC address C. Port number D. Subnet address
Answer: b
97
What is the result of successful DNS resolution? A. MAC address B. IP address C. Port number D. Session ID
Answer: b
98
Which protocol is best suited for streaming services? A. TCP B. UDP C. ICMP D. FTP
Answer: b
99
Which command-line tool sends ICMP Echo Requests to test connectivity? A. nslookup B. ipconfig C. ping D. netstat
Answer: c
100
Which OSI layer ensures the recipient can properly interpret data (e.g., format, encryption)? A. Session B. Network C. Presentation D. Transport
Answer: c