Chapter 6: TCP/IP Basics Flashcards
Internet Protocol (IP)
Layer 3 protocol responsible for logical addressing and routing packets across networks
Internet protocol version 4 (IPv4)
32 bit value written as four sets of numbers between 0 and 255 separated by a period
What is the first version of internet protocol (IP)
IPv4
Can an IP address be all 0’s and 255’s ?
No
Internet control message protocol (ICMP)
Protocol is used to handle many low-level functions such as error or informational reporting
Does ICMP need direct user action ?
No automated by software
Which utility directly uses ICMP ?
Ping
How many different fields does the IPv4 packet have ?
14
Version field (IP)
Defines the IP address type
Total length
Total size of IP packet in octets
Time to live (TTL)
Prevents an IP packet from indefinitely spinning through the Internet
What is the protocol field for IP usually ?
TCP or UDP
Who decides which protocol to use ?
The people who develop the application
TCP three-way handshake
Requires both the sending and receiving machines to ACK the other’s presence and readiness to send and receive data.
What happens if a segment goes missing ?
The receiving system initiates a request for the missing segments
What is the port number range
1 to 65,535
How are port numbers used by systems ?
Determine what application needs the received data
Which ports do web servers use ?
80(HTTP) or 443(HTTPS)
Sequence number and acknowledgment number
Keep track of various pieces of data
Flags
Give detailed information about the state of the connection
Checksum
Check the TCP header for errors
When does UDP work best ?
When you have a lot of data that doesn’t need to be perfect or when systems are close to each other
Which protocol is faster ? TCP or UDP ?
UDP
Which important networking protocols use UDP ?
Domain name system (DNS)
Dynamic host configuration protocol (DHCP)
Do UDP datagrams get chopped up ?
No they just get headers
What could the type field from the Ethernet header indicate ?
The size of the payload in octets or the protocol
How does a computer get another computers MAC address ?
Send a special query called an ARP request (address resolution protocol)
CMD for Windows systems current ARP cache
arp -a
CMD for deleting an entry in the ARP table
arp -d (ip address)
Are IP addresses a fixed part of the NIC ?
No
What are three benefits of IP addresses ?
Not a fixed part of the NIC
Group together sets of computers into logical networks
Computer communication across all of LANs that make up a WAN
Dotted decimal notation
Shorthand method for discussing and configuring binary IP addresses using a 10 base numbering system
Must every IP address be unique ?
Yes
Which CMD to display the IP and MAC addresses ?
ipconfig /all
What is the CMD for macOS to display IP and MAC addresses ?
ifconfig
What three things must an IP numbering system do to support WANs and LANs ?
Have a network ID, interconnect LANs using routers, and use a subnet mask
Network ID
Numbers used in IP addresses to identify the network portion
Host ID
Portion of an IP address that defines a specific machine in a subnet
Can an individual system have a host ID of 0 ?
No they are reserved for Network IDs
How does a TCP/IP LAN connect to another ?
Router connections
Do routers need an IP address on every LAN it interconnects?
Yes
What is the router’s interface on the LAN and the router itself also called ?
Default gateway