TCP/IP Protocol Fundamentals Flashcards
What is the purpose of NAT/PAT?
- Translates an IPv4 address from the private ranges into an address that is routable across the internet.
- Allows devices on the internal network to access services located on the internet
What are the two major components of an IPv4 address?
- Network: identifies the network segment/subnet on which a particular device is connected
- Host: identifies the specific device to which the whole IP address is assigned
What is the Class A IPv4 private address range?
10.x.x.x /8
What is the purpose of a network mask in IPv4 and how is it represented?
- Represented in the same four octet format as the IP address it is attached to
- Identifies which portions of the IP address are network address and host address
- On bits (1s) identify the network portion of an IP while off bits (0s) identify the host portion.
Describe Layer 4 of the TCP/IP protocol stack and its function
- Transport layer
- Defines UDP and TCP port numbers used by specific applications, services, and protocols
- Port numbers define, on both transmitting and receiving ends, what service is trying to be accessed (HTTPS, DNS, DHCP etc)
What is the Class C IPv4 private address range?
192.168.x.x /16
How can you locate the network information on a Windows device, including MAC address and IP address configuration? On Linux? On Mac?
- Windows: from command prompt issue “ipconfig /all” command
- Linux and Mac: from terminal issue “ifconfig” command
How are IPv4 address classes identified?
- Each primary class has an associated default subnet mask length and range of values within the first octet
- Class A: 1 - 127.x.x.x /8 (255.0.0.0)
- Class B: 128-191.x.x.x /16 (255.255.0.0)
- Class C: 192-223.x.x.x /24 (255.255.255.0)
What are IPv4 private addresses?
- IPv4 address ranges reserved for private use within an organization
- Can be used for routing within a private organization’s intranetwork, however not routable across the internet
Describe Layer 1 of the TCP/IP protocol stack and its function
- Physical layer
- Deals with encoding, hardware specifications, voltage etc needed to translate digital information into physical currents sent across desired medium
How is every device assigned a unique MAC address?
- IEEE assigns the first six characters of a MAC address to the vendor making and distributing the network card. This means the manufacturer of that card can be identified by the first six characters of the MAC.
- The manufacturer is responsible for creating a unique MAC address with the final six characters
What is the advantage of computer networking?
- Allows resources to be shared. Multiple devices within an organization can share print services, file storage, application access etc without having to set up individually per device.
- Improves ease of collaboration
What is the Class B IPv4 private address range?
172.16-31.x.x /12
Describe Layer 2 of the TCP/IP protocol stack and its function
- Data Link layer
- Handles physical addressing of network devices and how traffic is forwarded along a network segment
- Physical addresses burned in and unique to a specific device
What is ARP and how does it work?
- Address Resolution Protocol (ARP)
- MAC address needed to communicate with devices on the local network segment
- ARP discovers and stores MAC addresses, mapping them to particular network addresses
- If the IP address of a device running a particular service is known but the MAC address associated with that IP is not the initiating device sends out an ARP request.
- The ARP request is a broadcast that goes out to every device on the segment and will hopefully be received the device with the matching IP.
- The device with the target IP responds with its MAC address which is stored on the initiators ARP cache for later