AP CSP TCP IP and internet protocols cheat sheet

A comprehensive cheat sheet for AP Computer Science Principles focusing on TCP/IP and internet protocols, designed for efficient exam review with key terms, concepts, and differences.

LynxRyan3·48 flashcards·48 questions
APcomputer_sciencenetworks
0
Known
1 / 48
0
Learning
Front

What are the layers of the TCP/IP model?

Tap to flip
Back

1. Application Layer 2. Transport Layer 3. Internet Layer 4. Network Interface Layer

Tap to flip
Got it
Still learning

Quiz(48 questions)

Question 1 of 48

1. What are the layers of the TCP/IP model?

Terms in this Study Set(48)

TCP/IP Model Basics(16)

What are the layers of the TCP/IP model?

1. Application Layer 2. Transport Layer 3. Internet Layer 4. Network Interface Layer

True or False: The TCP/IP model has five layers.

False. The TCP/IP model has four layers.

What protocol operates at the Transport Layer?

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

Fill in the blank: The _______ layer is responsible for end-to-end communication.

Transport

Compare TCP and UDP.

TCP: connection-oriented, reliable. UDP: connectionless, faster.

What is the main function of the Internet Layer?

Routing packets across networks using IP addressing.

True or False: The Network Interface Layer includes hardware components.

True. It encompasses network hardware and protocols.

What role does the Application Layer play?

It provides network services to applications (e.g., HTTP, FTP).

Cause → Effect: What happens when TCP establishes a connection?

Reliable data transfer is ensured.

What is an IP address?

A unique identifier for a device on a network, formatted as four octets (e.g., 192.168.1.1).

Fill in the blank: The _______ protocol is used for web browsing.

HTTP (Hypertext Transfer Protocol)

What is the purpose of the Network Interface Layer?

Facilitates physical network access and transmission of data frames.

True or False: UDP guarantees data delivery.

False. UDP does not guarantee delivery.

What is segmentation in TCP?

Dividing large messages into smaller packets for efficient transmission.

What does the acronym TCP stand for?

Transmission Control Protocol

What is a key feature of IP addressing?

Hierarchy that allows for efficient routing and organization.

Internet Protocols Overview(16)

HTTP → Purpose

Hypertext Transfer Protocol (HTTP) is used for transferring web pages on the internet.

True or False: FTP is secure.

False. FTP (File Transfer Protocol) transmits data without encryption.

HTTPS → Definition

HTTP Secure (HTTPS) uses SSL/TLS to encrypt communication for secure web browsing.

Fill in the blank: DNS translates _____ into IP addresses.

domain names.

Comparison: TCP vs. UDP

TCP is connection-oriented, ensuring reliability and order; UDP is connectionless, faster, but less reliable.

IP → Definition

Internet Protocol (IP) is responsible for addressing and routing packets across networks.

Cause → Effect: Use of DHCP

Dynamic Host Configuration Protocol (DHCP) automatically assigns IP addresses to devices, simplifying network management.

SMTP → Purpose

Simple Mail Transfer Protocol (SMTP) is used for sending email messages between servers.

POP3 vs. IMAP

POP3 downloads emails to local storage; IMAP syncs emails across multiple devices.

SIP → Function

Session Initiation Protocol (SIP) is used for initiating, maintaining, and terminating real-time communication sessions.

Fill in the blank: ICMP is used for _____ and error messages.

diagnostic functions.

True or False: Telnet encrypts data.

False. Telnet transmits data in plaintext, making it insecure.

TLS → Purpose

Transport Layer Security (TLS) provides encryption for data transmitted over the internet, enhancing security.

RFC → What does it stand for?

Request for Comments; documents describing protocols and standards for the internet.

Fill in the blank: _____ is used to access email servers securely.

IMAPS (IMAP Secure).

WebSocket → Use case

WebSocket enables real-time communication between a client and server, ideal for dynamic applications.

Network Communication(16)

Protocol for transmitting data reliably?

Transmission Control Protocol (TCP) ensures reliable, ordered delivery of data packets.

True or False: UDP guarantees delivery.

False. User Datagram Protocol (UDP) does not guarantee delivery, making it faster but less reliable.

Layer responsible for addressing data?

Network layer. It handles logical addressing and routing data across networks.

Fill in the blank: TCP is _____ and UDP is _____.

TCP is connection-oriented; UDP is connectionless.

Examples of application layer protocols?

HTTP, FTP, SMTP, and DNS are key application layer protocols.

What does the acronym ICMP stand for?

Internet Control Message Protocol. It is used for error messages and operational information.

Comparison: TCP vs UDP.

- TCP: Reliable, ordered - UDP: Fast, unordered - Uses: TCP for web pages, UDP for video streaming.

Cause → Effect: What happens when a packet is lost?

TCP will retransmit the packet to ensure data integrity.

What does an IP address do?

It uniquely identifies a device on a network, enabling data routing.

Layer where routing occurs?

Network layer. This layer makes decisions about the best path for data transmission.

True or False: HTTP runs over TCP.

True. HTTP relies on TCP to ensure data is sent reliably.

Key purpose of DNS?

Domain Name System (DNS) translates human-friendly domain names into IP addresses.

Example of a transport layer protocol?

Transmission Control Protocol (TCP) is a primary example of a transport layer protocol.

What is the function of ARP?

Address Resolution Protocol (ARP) maps IP addresses to MAC addresses on a local network.

Fill in the blank: The three-way handshake is used in _____.

The three-way handshake is used in establishing a TCP connection.

Scenario: Data sent via UDP.

Example: Streaming video data where speed is prioritized over reliability.

Questions in this Study Set(48)

1. What are the layers of the TCP/IP model?

A.Application, Transport, Internet, Network Interface
B.Application, Transport, Internet, Data Link
C.Application, Session, Internet, Network Interface
D.Application, Transport, Network, Link

2. What protocol is primarily used for transferring web pages on the internet?

A.HTTP
B.FTP
C.SMTP
D.IMAP

3. Which protocol is primarily responsible for ensuring that data packets are delivered in the correct order?

A.TCP
B.UDP
C.HTTP
D.FTP

4. True or False: The TCP/IP model includes a Presentation layer.

A.True
B.False
C.Not Applicable
D.Sometimes

5. Which protocol uses SSL/TLS to ensure secure web browsing?

A.FTP
B.HTTP
C.HTTPS
D.SMTP

6. True or False: The User Datagram Protocol (UDP) provides error correction for lost packets.

A.True
B.False
C.Only in certain cases
D.Depends on implementation

7. Which protocol is primarily used for reliable data transmission at the Transport Layer?

A.UDP
B.HTTP
C.TCP
D.IP

8. What does DNS translate into IP addresses?

A.Hostnames
B.Emails
C.URLs
D.Packets

9. What is the main function of the Network Layer in the OSI model?

A.Data encryption
B.Addressing and routing
C.Error correction
D.Session management

10. Fill in the blank: The _______ layer manages the data routing between different networks.

A.Application
B.Transport
C.Internet
D.Network Interface

11. Which of the following is a characteristic of TCP?

A.Connectionless
B.Fast but less reliable
C.Connection-oriented
D.No error checking

12. Fill in the blank: TCP is _____, while UDP is _____.

A.stateful; stateless
B.connection-oriented; connectionless
C.secure; insecure
D.synchronous; asynchronous

13. What is the main difference between TCP and UDP?

A.TCP is faster than UDP
B.TCP is connection-oriented, while UDP is connectionless
C.UDP guarantees delivery while TCP does not
D.TCP is used for web browsing while UDP is not

14. What is the role of DHCP in a network?

A.Assigns IP addresses
B.Encrypts data
C.Routes packets
D.Transfers files

15. Which of the following is NOT an application layer protocol?

A.HTTP
B.FTP
C.IP
D.SMTP

16. What is the purpose of an IP address?

A.To identify a specific application
B.To provide data encryption
C.To identify a device on a network
D.To route data between servers

17. Which protocol is used for sending email messages between servers?

A.SMTP
B.IMAP
C.POP3
D.HTTP

18. What does ICMP stand for and what is its primary purpose?

A.Internet Control Message Protocol; error reporting
B.Internet Communication Management Protocol; data encryption
C.Internal Control Messaging Protocol; session management
D.Internet Command Message Protocol; routing

19. True or False: The Network Interface Layer deals with only software components.

A.True
B.False
C.Only in virtual networks
D.Only in hardware networks

20. How does IMAP differ from POP3 regarding email management?

A.IMAP downloads emails
B.POP3 syncs emails
C.IMAP syncs emails across devices
D.POP3 uses SSL

21. When comparing TCP and UDP, which statement is true?

A.TCP is faster than UDP
B.UDP guarantees delivery
C.TCP is used for web traffic
D.UDP uses a three-way handshake

22. Which protocol is used for transferring files over the internet?

A.FTP
B.HTTP
C.SMTP
D.TCP

23. Which protocol is used for initiating real-time communication sessions?

A.SIP
B.HTTP
C.SMTP
D.FTP

24. What occurs when a packet is lost in a TCP connection?

A.The connection is terminated
B.The packet is ignored
C.TCP retransmits the packet
D.Data is sent without the lost packet

25. What happens during the connection establishment phase of TCP?

A.Data packets are sent immediately
B.A reliable connection is established
C.UDP is initiated
D.The connection is terminated

26. ICMP is primarily used for what purpose?

A.File transfer
B.Error messages
C.Web browsing
D.Email sending

27. What is the role of an IP address in a network?

A.To encrypt data
B.To identify devices uniquely
C.To manage network sessions
D.To establish connections

28. Which of the following is NOT a layer in the TCP/IP model?

A.Application
B.Network
C.Transport
D.Session

29. True or False: Telnet encrypts data during transmission.

A.True
B.False
C.Only for certain connections
D.Depends on settings

30. At which layer does routing of data packets take place?

A.Data Link Layer
B.Transport Layer
C.Network Layer
D.Application Layer

31. What is a key feature of the Transport Layer?

A.It involves physical transmission of data
B.It manages data framing
C.It provides end-to-end communication
D.It defines the internet structure

32. What does TLS provide for data transmitted over the internet?

A.Compression
B.Encryption
C.Error correction
D.Routing

33. True or False: HTTP operates over UDP.

A.True
B.False
C.Only for secure connections
D.Depends on the implementation

34. Fill in the blank: The _______ protocol is used to send emails.

A.HTTP
B.SMTP
C.FTP
D.IP

35. What does RFC stand for in relation to internet protocols?

A.Request for Comments
B.Regional Frequency Code
C.Rapid File Communication
D.Remote Function Call

36. What is the primary purpose of the Domain Name System (DNS)?

A.To secure web traffic
B.To translate domain names to IP addresses
C.To manage network connections
D.To prioritize data packets

37. What does the acronym TCP stand for?

A.Transfer Control Protocol
B.Transmission Control Protocol
C.Transmission Code Protocol
D.Transfer Communication Protocol

38. What protocol is used to securely access email servers?

A.POP3
B.IMAP
C.IMAPS
D.SMTP

39. What is a primary example of a transport layer protocol?

A.HTTP
B.FTP
C.TCP
D.IP

40. What is segmentation in TCP?

A.Combining packets for faster transfer
B.Dividing large messages into smaller packets
C.Connecting networks
D.Encrypting data

41. WebSocket is best described as what type of technology?

A.A file transfer protocol
B.A method for secure email access
C.A real-time communication protocol
D.An image format

42. What does Address Resolution Protocol (ARP) do?

A.Resolves IP addresses to domain names
B.Maps IP addresses to MAC addresses
C.Manages TCP connections
D.Encrypts data for transmission

43. True or False: UDP is a connection-oriented protocol.

A.True
B.False
C.Only for large transfers
D.Only for small transfers

44. Which of the following is NOT a protocol for email retrieval?

A.POP3
B.IMAP
C.SMTP
D.HTTP

45. Fill in the blank: The three-way handshake is a process used to establish _____ connections.

A.UDP
B.HTTP
C.TCP
D.IP

46. Which layer of the TCP/IP model is responsible for providing services directly to user applications?

A.Application Layer
B.Transport Layer
C.Internet Layer
D.Network Interface Layer

47. Which protocol is responsible for addressing and routing packets across networks?

A.Internet Protocol (IP)
B.File Transfer Protocol (FTP)
C.Simple Mail Transfer Protocol (SMTP)
D.Hypertext Transfer Protocol (HTTP)

48. In which scenario would you most likely use UDP instead of TCP?

A.Downloading a file
B.Sending an email
C.Streaming live video
D.Transferring sensitive data

Related Study Sets

Create Your Own Study Set

Upload a PDF, paste your notes, or describe a topic – AI generates flashcards, quizzes and more in seconds.