Inter-Networking Concepts and TCP/IP Stack

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/24

flashcard set

Earn XP

Description and Tags

Comprehensive flashcards reviewing inter-networking concepts, TCP/IP stack layers, private/public IP addressing, VirtualBox network adapters, DHCP DORA process, Linux networking commands, Bind vs Reverse Shells, and Apache web hosting.

25 Terms

1
New cards

What is the definition of the Internet according to the lecture notes?

The Internet is a worldwide network that links millions of private, public, academic, business, and government networks using a common set of protocols, enabling devices to connect, share information, and communicate globally.

2
New cards

What is Transmission Control Protocol/Internet Protocol (TCP/IP)?

TCP/IP is a set of communication protocols essential for interconnecting network devices on the internet as well as within private computer networks, such as intranets and extranets.

3
New cards

What are the primary functions of the Application Layer in the TCP/IP stack?

It provides interfaces and protocols for software to communicate over the network, manages end-user services and network data, and supports network transparency.

4
New cards

Which protocols operate at the Application Layer of the TCP/IP suite?

HTTP/HTTPS (Hypertext Transfer Protocol), Telnet, FTP (File Transfer Protocol), SMTP (Simple Mail Transfer Protocol), and SSH (Secure Shell).

5
New cards

What is the difference between a URI and a URL?

A URI (Uniform Resource Identifier) is an identifier that can be a name or location, whereas a URL (Uniform Resource Locator) is a locator that must provide a specific way to access the resource.

6
New cards

What are the core functions of the Transport Layer in TCP/IP?

The Transport Layer provides end-to-end communication services for applications and manages data segmentation, reassembly, and error correction.

7
New cards

What are the differences between TCP, UDP, and RAW protocols at the Transport Layer?

TCP ensures reliable, ordered, and error-checked delivery; UDP provides a connectionless, lightweight service without guaranteed delivery; RAW allows direct sending of packets without transport layer formatting.

8
New cards

What addressing mechanism and bit size does the Transport Layer use?

It utilizes 16-bit port numbers to distinguish different services or applications running on the same device.

9
New cards
<p>How are socket types mapped across User Space, Kernel Space, and Hardware in the OS network stack?</p>

How are socket types mapped across User Space, Kernel Space, and Hardware in the OS network stack?

Applications in User Space interface via SOCK_DGRAM to UDP, SOCK_STREAM to TCP, and SOCK_RAW directly to IP in Kernel Space, which then routes through physical network hardware.

10
New cards

What functions does the Internet Layer perform in the TCP/IP suite?

It breaks data into manageable fragments for transmission, routes data packets across different networks to reach their destination, and handles packet addressing and error checking.

11
New cards

Which protocols belong to the Internet Layer of TCP/IP?

IP (Internet Protocol), ICMP (Internet Control Message Protocol), and IGMP (Internet Group Management Protocol).

12
New cards

What addressing formats and bit lengths are used at the Internet Layer?

IPv4, which uses 32-bit addresses, and IPv6, which uses 128-bit addresses.

13
New cards

What are the main functions and addressing mechanism of the Link Layer / Physical Layer?

It manages physical connections between network devices, ensures data packets are correctly transmitted and received over network media, handles error detection, and uses 48-bit MAC (Media Access Control) addresses.

14
New cards

Which protocols are associated with the Link Layer / Physical Layer in the lecture notes?

Ethernet, Token Ring, FDDI (Fiber Distributed Data Interface), ISDN (Integrated Services Digital Network), SONET (Synchronous Optical Network), and ATM (Asynchronous Transfer Mode).

15
New cards

How does Network Address Translation (NATing) function on a gateway router?

NAT translates non-routable private IP addresses to a public IP address, allowing a single gateway router with a public IP to act as an agent and represent an entire network of computers on the Internet.

16
New cards

What are the three reserved IPv4 private address ranges defined by the IETF?

10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255.

17
New cards

How do public IP addresses differ from private IP addresses regarding accessibility and assignment?

Public IP addresses are globally unique, assigned by ISPs, and routable across the entire Internet to make services accessible worldwide; private IP addresses are reserved for local networks, non-routable on the public internet, and hidden behind firewalls.

18
New cards

What are the four network adapter types available in VirtualBox and their primary uses?

Bridged Adapter (connects directly to physical network using host's NIC), Host-only Adapter (creates a private network solely between host and VMs), NAT (assigns private IP like 10.0.2.15 for outbound internet access), and NAT Network (connects multiple VMs sharing one NAT instance).

19
New cards

What are the sequential steps of the DHCP DORA process?

  1. Discover: Client broadcasts a DHCP DISCOVER message on port 67.
  2. Offer: DHCP server responds with a DHCP OFFER containing IP, subnet mask, and gateway.
  3. Request: Client sends a DHCP REQUEST message to the server.
  4. Acknowledge: DHCP server stores the assignment and broadcasts a DHCP ACK message.
20
New cards

What are the functions of the Linux networking tools ifconfig, ping, arp, and route?

ifconfig displays and configures network parameters; ping checks host connectivity; arp manages IP-to-MAC address mappings in the ARP cache; route displays and manipulates the Kernel routing table.

21
New cards

How are DNS utilities installed in Linux, and what do host and nslookup do?

They are installed via sudo apt-get install dnsutils. host performs DNS lookups to resolve domain names to IP addresses (and vice versa), while nslookup queries name servers to display domain resolution details.

22
New cards
<p>How does a Bind Shell work in an attacker-victim scenario?</p>

How does a Bind Shell work in an attacker-victim scenario?

The target/victim system runs a listener on an open port, and the attacker initiates a connection to that listener to gain remote shell access.

23
New cards
<p>How does a Reverse Shell work in an attacker-victim scenario?</p>

How does a Reverse Shell work in an attacker-victim scenario?

The attacker runs a listener on their machine, and the target/victim server connects back to the attacker's port, establishing a shell session.

24
New cards

Why is a Reverse Shell often preferred over a Bind Shell when target firewalls are active?

Modern firewalls block incoming connections from outsiders to open ports (failing Bind Shells), but typically allow outbound connections initiated by internal target systems back to external servers (enabling Reverse Shells).

25
New cards
<p>What occurs when an Apache web server receives a request for a directory that lacks an <code>index.html</code> file?</p>

What occurs when an Apache web server receives a request for a directory that lacks an index.html file?

Apache generates and returns an 'Index of /' directory listing page showing all files and subdirectories present in the Document Root directory (/var/www/html/).