Chapter 6: TCP/IP Basics Flashcards
Where does the TCP/IP protocol suite operate?
At Layers 3-7 of the OSI seven-layer model.
What layer does Internet Protocol (IP) work at and what does it do?
IP works at the Network layer. It takes data chunks from the Transport layer, adds addressing, and creates the final IP packet. It then hands the IP packet to the Data Link layer for encapsulation into a frame.
What layer does Internet Control Message Protocol (ICMP) work and what is its role?
ICMP works at the Network layer. It plays a role in IP error reporting and diagnostics (ping, etc.).
What is the Version field in an IPv4 packet header?
The version (Ver) field defines the IP address type: 4, for IPv4.
What is the Total Length field in an IPv4 packet header and what is its size?
The total size of the IP packet in octets (bytes). This includes the IP header and its payload. This field is 16 bits long, which limits the packet size to 65 KB.
What is the Time to Live (TTL) field in an IPv4 packet header and what is its purpose?
It is a counter that decrements by one every time a packet goes through a router. This counter cannot start higher than 255. The purpose of the TTL field is to prevent endless loops on the Internet.
What is the Protocol field in an IPv4 packet header?
In most cases, the protocol field is either TCP or UDP and identifies what’s encapsulated inside the packet.
What is the Transmission Control Protocol (TCP) and at what layer does it work?
TCP is a connection-oriented protocol that gets an application’s data from one machine to another reliably and completely. It works at the Transport layer (Layer 4).
What is the TCP three-way handshake
SYN
SYN-ACK
ACK
What are port numbers and at what layer are they used?
Port numbers are used by systems to determine what application needs the received data. Each application is assigned a specific port number on which to listen/send (1 to 65,535). They are used at the Transport layer.
What are the Sequence number and Acknowledgment number fields in the TCP segment header?
These numbers enable the sending and receiving computers to keep track of the various pieces of data flowing back and forth.
What is the Flags field in the TCP segment header?
TCP flags give both sides detailed information about the state of the connection.
What is the Checksum field in the TCP segment header?
The recipient can use the checksum to check the TCP header for errors as bits flipped or lost during transmission.
Transmission Control Protocol (TCP) vs. User Datagram Protocol (UDP)
Both function at the Transport layer. Data gets broken up into segments when using TCP. UDP datagrams don’t get chopped up, they just get a header.
What is a Wide Area Network (WAN)?
In a basic sense it is a collection of interconnected Local Area Networks (LANs).
What does Address Resolution Protocol (ARP) do?
It resolves an IP address to an Ethernet MAC address.
What command do you type in Window’s Command Prompt to view the system’s current ARP cache?
arp -a
What command do you type in Window’s Command Prompt to delete one of the entries in the ARP table?
arp -d [ip address from the cache table]
What is the decimal value of the binary number: 1111 1111
255
What command do you type in the Window’s Command Prompt to display the IP and MAC addresses?
ipconfig /all
What command do you type in the macOS terminal to display the IP and MAC addresses?
ifconfig
What command to you type in the Linux terminal to display the IP and MAC addresses?
ip address
(ifconfig is the older command)
What do reserved network IDs (IP addresses) end in?
0
What two things are combined to make a system’s IP address?
The network ID and the host ID.
What does a subnet mask do?
A subnet mask is used by each computer on a network to determine if a packet is for the LAN or for a computer on the WAN, so it knows how to handle the packet.
What does a router need for every LAN that it interconnects?
An IP address that is in the LAN’s network ID for that LAN’s router interface (LAN-side NIC).
What is the default gateway?
The router’s interface on a LAN and the router itself that routes traffic out to other networks.
What is the conventional address given to the LAN-side NIC on the default gateway?
The lowest or highest host address in the network.
What is a subnet mask?
A string of ones followed by a string zeroes, always totaling 32 bits, set on every TCP/IP host.
How does the subnet mask determine the network ID and host ID portions of an IP address?
When you line up an IP address with its corresponding subnet mask in binary, the portion of the IP address that aligns with the ones of the subnet mask is the network ID portion of the IP address. The portion that aligns with the zeroes is the host ID.