Docsity

Network Concepts and Protocols, Exams of Advanced Education

Toggle sidebar
bg1
NSA Computer Network Test Solved 2024
[Linux] What does the *df* command deliver? - ANSWER-The size, used space, and
available space on the machine's mounted file systems
[Linux] What does the *finger* command deliver? - ANSWER-Brief summary of a
particular user, including:
(1) Last time logged in
(2) Home directory
(3) Default shell
[Linux] What does the *free* command deliver? - ANSWER-A summary of memory
usage on the machine
[Linux] What does the *groups* command deliver? - ANSWER-Which groups a
particular user is a part of
[Linux] What does the *kill* command deliver? - ANSWER-The ability to kill a process
by its PID
[Linux] What does the *ps* command deliver? - ANSWER-A snapshot of the current
running processes
[Linux] What does the *top* command deliver? - ANSWER-Real-time display of running
processes and statistics
[Linux] What does the *uname* command deliver? - ANSWER-The ability to obtain
information about the machine, including:
(1) Kernel name (-s)
(2) Kernel release (-r)
(3) Kernel version (-v)
(4) All of the above (-a)
[Linux] What does the *w* command deliver? - ANSWER-The list of currently logged on
users
[Windows] What does the *arp* command deliver? - ANSWER-The functionality of
displaying, adding to, and removing entries from the machine's Address Resolution
Protocol (IP --> MAC) table
[Windows] What does the *getmac* command deliver? - ANSWER-The ability to
retrieve the current machine's MAC address and query remote machine's for their MAC
addresses
[Windows] What does the *nbtstat* command deliver? - ANSWER-Protocol statistics
and current TCP/IP connections using NBT (NetBIOS over TCP/IP)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Network Concepts and Protocols and more Exams Advanced Education in PDF only on Docsity!

NSA Computer Network Test Solved 2024

[Linux] What does the df command deliver? - ANSWER-The size, used space, and available space on the machine's mounted file systems [Linux] What does the finger command deliver? - ANSWER-Brief summary of a particular user, including: (1) Last time logged in (2) Home directory (3) Default shell [Linux] What does the free command deliver? - ANSWER-A summary of memory usage on the machine [Linux] What does the groups command deliver? - ANSWER-Which groups a particular user is a part of [Linux] What does the kill command deliver? - ANSWER-The ability to kill a process by its PID [Linux] What does the ps command deliver? - ANSWER-A snapshot of the current running processes [Linux] What does the top command deliver? - ANSWER-Real-time display of running processes and statistics [Linux] What does the uname command deliver? - ANSWER-The ability to obtain information about the machine, including: (1) Kernel name (-s) (2) Kernel release (-r) (3) Kernel version (-v) (4) All of the above (-a) [Linux] What does the w command deliver? - ANSWER-The list of currently logged on users [Windows] What does the arp command deliver? - ANSWER-The functionality of displaying, adding to, and removing entries from the machine's Address Resolution Protocol (IP --> MAC) table [Windows] What does the getmac command deliver? - ANSWER-The ability to retrieve the current machine's MAC address and query remote machine's for their MAC addresses [Windows] What does the nbtstat command deliver? - ANSWER-Protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP)

[Windows] What does the route command deliver? - ANSWER-The ability to query and configure the machine's routing table. [Windows] What does the tasklist command deliver? - ANSWER-A snapshot of the current running processes, including the process name, process ID (PID), and memory usage [Windows] What does the tracert command deliver? - ANSWER-The ability to visually see a network packet being sent and received and the amount of hops required to deliver it [Windows/Linux] What does the ipconfig/ifconfig command deliver? - ANSWER-The ability to configure, control, and query TCP/IP network interface parameters such as IPv4 and IPv6 addresses, default gateway, subnet mask, etc. [Windows/Linux] What does the netstat command deliver? - ANSWER-Basic statistics on all of your machine's network activity

  • Which ports are listening?
  • What addresses and ports are connected to me?
  • What addresses and ports am I connected to? [Windows/Linux] What is the hosts file? - ANSWER-A local file that serves as a local DNS resolver, mapping IP addresses to hostnames 10.11.12.13 belongs to a class A network. What is this network's network identifier? - ANSWER-10.0.0. 10.20.30.40 belongs to a class B network. What is this network's network identifier? - ANSWER-10.20.0. 10.9.8.7 belongs to a class C network. What is this network's network identifier? - ANSWER-10.9.8. 4 part memory hierarchy - ANSWER-1. Registers
  1. Caches
  2. Main memory
  3. Storage 5 Principles of Ravens Matrices - ANSWER-1. Progression: the shape progresses through some pattern (rotation, growth, shrinkage, outlining, etc.) as it progresses along the row and/or column
  4. Completion: the shape completes a pattern that holds in each row and/or column, but not necessarily as a progression (i.e., each column has a triangle of a different size, but they don't necessarily grow in a progression)
  1. The client updates its ARP table with the IP/MAC of the DNS server
  2. Client encapsulates the DNS request and layer 3 header with a layer 2 header with source MAC of itself and destination MAC of the DNS server
  3. Client sends the request to its switch
  4. The switch updates its CAM table based on the client's MAC address and switch port
  5. The switch looks up the DNS server's switch port in its CAM table based on the destination MAC address
  6. The switch forwards the request to the DNS server's switch port
  7. The DNS server receives the request and strips away the layer 2 header. It checks the layer 3 header's destination IP address and determines that the request was bound for it. It strips away the layer 3 header and processes the DNS request
  8. The DNS server encapsulates the response data in a layer 3 header with source IP of itself an A client makes a DNS request to a server that is not on its LAN. Trace the packet. - ANSWER-1. Client looks in its local DNS configuration files for the IP address of the DNS server
  9. Client determines the DNS server's IP address is not in its local network
  10. Client checks its routing table for the relevant gateway IP address
  11. Client encapsulates the DNS request data in a layer 3 header with source IP of itself and destination IP of the DNS server
  12. Client checks its ARP table for the MAC address of the gateway and doesn't find it
  13. Client sends an ARP request to the switch
  14. The switch updates its CAM table based on the client's MAC address and switch port
  15. The switch broadcasts the client's ARP request on all active switch ports
  16. The gateway receives the ARP broadcast and since the destination IP address is its own, keeps the request. It updates its ARP table with the IP/MAC of the client and sends an ARP response to the switch bound for the destination MAC address of the client
  17. The switch updates its CAM table based on the gateway's MAC address and switch port
  18. The switch forwards the ARP response to the client
  19. The client updates its ARP table with the IP/MAC of the gateway
  20. Client encapsulates the DNS request and layer 3 header with a layer 2 header with source MAC of itself and destination MAC of the gateway
  21. Client sends the request to its switch
  1. Switch updates its CAM table with the MAC address and switch port of the client
  2. Switch looks up the gateway's switch port in its CAM table based on the destination MAC address
  3. Switch forwards the DNS request to the gateway's switch port
  4. Gateway receives the DNS request and strips away its layer 2 header. It looks at the layer 3 destination IP address and notes that it isn't its own IP address. It determines that the destination IP address is in one of its local networks.
  5. Gateway checks its ARP table for the M At what layer does IPSec perform at? - ANSWER-The Internet layer (IP) At what layer does TLS/SLL perform at? - ANSWER-The Transport layer At what layer does WPA2 perform at? - ANSWER-The Link layer (WiFi) At what level of the OSI model does a bridge operate? - ANSWER-The Data Link layer (layer 2) At what level of the OSI model does a cable operate? - ANSWER-The Physical layer (layer 1) At what level of the OSI model does a fiber cable operate? - ANSWER-The Physical layer (layer 1) At what level of the OSI model does a hub operate? - ANSWER-The Physical layer (layer 1) At what level of the OSI model does a layer 2 switch operate? - ANSWER-The Data Link layer (layer 2) At what level of the OSI model does a layer 3 switch operate? - ANSWER-The Network layer (layer 3) At what level of the OSI model does a modem operate? - ANSWER-The Data Link layer (layer 2) At what level of the OSI model does a network card operate? - ANSWER-The Data Link layer (layer 2) At what level of the OSI model does a repeater operate? - ANSWER-The Physical layer (layer 1) At what level of the OSI model does a router operate? - ANSWER-The Network layer (layer 3)

Given an IP address and a subnet mask, how can you find the network identifier of the network the IP address belongs to? - ANSWER-Bitwise AND the IP address and the subnet mask How do you add a registry subkey using PowerShell? - ANSWER-New-Item -Path $PATH_TO_SUBKEY -Force How do you add or update a registry subkey entry using cmd? - ANSWER-reg add $PATH_TO_SUBKEY /v $ENTRY_NAME /t $ENTRY_TYPE /d $ENTRY_VALUE For example: reg add HKLM\Software\MySubkey /v Username /t REG_EXPAND_SZ /d tgihf How do you add or update a registry subkey entry using PowerShell? - ANSWER-New- ItemPoperty -Path $PATH_TO_SUBKEY -Name $ENTRY_NAME -Value $ENTRY_VALUE -PropertyType $ENTRY_TYPE -Force How do you delete a registry subkey entry using cmd? - ANSWER-reg delete $PATH_TO_SUBKEY /v $ENTRY_NAME /f For example: reg delete HKLM\Software\MySubKey /v Username /f How do you delete a registry subkey entry using PowerShell? - ANSWER-Remove- ItemProperty -Path $PATH_TO_SUBKEY -Name $ENTRY_NAME -Force How do you delete a registry subkey using cmd? - ANSWER-reg delete $PATH_TO_SUBKEY /f For example: reg delete HKLM\Software\MySubKey /f How do you delete a registry subkey using PowerShell? - ANSWER-Remove-Item -Path $PATH_TO_SUBKEY -Force How do you negate a number in 2's complement? - ANSWER-(1) Write the number in binary (2) Flip all of the bits (3) Add one How does a router operate? - ANSWER-When a router receives a packet, it compares the packet's destination IP address to each of its routing table entries. If the destination IP address falls within the network range of one of the entries, the router forwards the packet to the corresponding gateway. If the packet's destination IP address doesn't fall within any of the routing table's network ranges, the packet is forwarded to the default gateway.

How does a switch operate? - ANSWER-When a switch receives a frame, it retrieves the frame's destination MAC address and looks up the switch port corresponding to that MAC address in the switch's content addressable memory (CAM) table. If it finds a match, it forwards the frame to that switch port. How many bits are in an IPv4 address? - ANSWER-32 bits How many bytes are in a single ASCII character? - ANSWER-1 byte How many bytes are in a single UTF-8 character? - ANSWER-1 to 4 bytes (variable) How many bytes are in a standard MAC address? - ANSWER-6 bytes (48 bits) 3 bytes for the organizationally unique identifier (OUI) 3 bytes for the NIC-specific identifier How many bytes are in a word? - ANSWER-2 bytes How many characters are in a standard MAC address? - ANSWER-A standard MAC address is composed of 6 bytes and each byte is composed of two hex characters. Thus, there are a total of 12 hex characters in a standard MAC address. Each byte is separated by a colon. aa:bb:cc:dd:ee:ff How many hosts does a Class A network have? - ANSWER-2^24 - 2 How many hosts does a Class B network have? - ANSWER-2^16 - 2 How many hosts does a Class C network have? - ANSWER-2^8 - 2 = 254 In a bus network of n nodes, how many backbone cables are required? - ANSWER-Only 1 because all n nodes are connected to this one backbone cable In a bus network of n nodes, how many drop lines are required? - ANSWER-n drop lines because each node has 1 drop line to connect it to the backbone cable In a mesh network of n nodes, each node must have how many outbound ports? - ANSWER-n- In a mesh network of n nodes, how do you calculate the number of links in the network? - ANSWER-# links = (n (n-1)) / 2 In a ring network of n nodes, how many links are there? - ANSWER-n links

In what two situations is paying attention to endianness important? - ANSWER-1. When sending data between two different computers. The communication protocol must ensure that even if the two computers' endianness differs, the data isn't corrupted. IP does this by defaulting to network order.

  1. When investigating memory dumps. You must understand the endianness of the computer whom the memory dump comes from to properly be able to analyze the dump. Most firewalls operate at what layers of the TCP/IP model? - ANSWER-The Internet layer (layer 2) and the Transport layer (layer 3), though some have advanced up to the Application layer (layer 4) Name the four layers of the TCP/IP model - ANSWER-1: Link 2: Internet 3: Transport 4: Application Name the seven layers of the OSI model - ANSWER-1: Physical 2: Data Link 3: Network 4: Transport 5: Session 6: Presentation 7: Application Network A a CIDR range of 11.12.13.14/28. What is the subnet mask of network A? - ANSWER- 28 1's, 4 0's On a Linux machine, where would all kernel-level events, warnings, and errors be logged? - ANSWER-/var/log/kern.log On a Linux machine, where would information about scheduled tasks be logged? - ANSWER-/var/log/cron On a Ubuntu or Red-Hat Linux machine, where would all global system activity, including startup messages, be logged? - ANSWER-Ubuntu: /var/log/syslog RH: /var/log/messages On a Ubuntu or Red-Hat Linux machine, where would all security-related events, including logins and root user actions, be logged? - ANSWER-Ubuntu: /var/log/auth.log RH: /var/log/secure On Windows, how do you print the machine's routing table? - ANSWER-route print

Rank OSPF, RIP, EIGRP, & BGP by administrative distances. - ANSWER-(1) EIGRP - 90 (2) OSPF - 110 (3) RIP - 120 (4) BGP - 200 TCP 3-way handshake, including sequence and acknowledgement numbers - ANSWER-1. Client --[SYN, seq=x]--> Server

  1. Server --[SYN, ACK, seq=y, ack=x+1]--> Client
  2. Client --[ACK, seq=x+1, ack=y+1]--> Server True or false: a layer 3 switch can route packets between VLANs - ANSWER-True What are the 5 areas that Windows stores events in? - ANSWER-(1) Application (2) Security (3) Setup (4) System (5) Forwarded events What are the 7 components of a Windows event? - ANSWER-(1) Date (2) Time (3) User (4) Computer (5) Event ID (identification # that specifies the event type) (6) Source (the program that caused the event) (7) Type (Information, warning, error, critical) What are the 2 keys to decimal/hex/octal/binary conversions? - ANSWER-1. Binary is the intermediary
  3. BE CAREFUL What are the 2 primary functions of VLANs? - ANSWER-1. VLANs allow you to break up one physical switch into multiple virtual switches
  4. VLANs allow you to extend virtual switches to other physical switches All in all, these two functions prevent a network's logical topology from being constrained by its physical topology What are the 2 ways of using shell expansion in bash? - ANSWER-1. $()
  5. `` What are the 3 primary concerns of the Network layer of the OSI model? - ANSWER-
  6. Provide an addressing scheme
  7. The forwarding/routing of data packets between networks
  8. Frame fragmentation with MTU field
  1. Detect and possibly correct errors from the Physical layer (checksum)
  2. The transmission of data frames between nodes on a network What command allows you to view the iptables default chain policies and chain rules?
  • ANSWER-sudo iptables -L What does an entry in a hosts file look like? - ANSWER- [# ] What does the iptables command deliver? - ANSWER-The capability of setting up and maintaining filters for the Netfilter firewall included in the Linux kernel What happens when a trunk port is sending a frame that does not belong to the native VLAN? - ANSWER-The frame will be sent with a VLAN tag What happens when a trunk port is sending a frame that does belong to the native VLAN? - ANSWER-The frame will be sent without a VLAN tag What happens when a trunk port receives a frame with a VLAN tag? - ANSWER-The frame will be associated with the VLAN specified by the tag What happens when a trunk port receives a frame without a VLAN tag? - ANSWER- The frame will be associated with the switch's native VLAN What is a bridge? - ANSWER-An OSI layer 2 device that connects two networks in such a way that they function as a single network. In contrast to a router, which connects two or more networks such that they function as independent but connected networks. What is a hard disk drive? - ANSWER-An HDD is a form of memory that uses magnetic properties to store and retrieve digital data on spinning disks What is a hub? - ANSWER-An OSI layer 1 network device that connects multiple devices together and makes them act as a single network segment. A hub broadcasts the signals it receives to all connected devices (except for the sending device), greatly decreasing network performance. What is a network topology? - ANSWER-The arrangement of nodes and the lines that connect them to make up a computer network What is a repeater? - ANSWER-An OSI layer 1 networking device that amplifies or regenerates a signal before retransmitting it, expanding the network's coverage area. What is a solid state drive? - ANSWER-An SSD is a form of memory that uses integrated circuits for persistent memory (flash memory)

What is a switched virtual interface (SVI)? - ANSWER-When configuring routing between VLANs within a layer 3 switch, the "built-in" router will have an SVI on each VLAN that serves as the layer 3 termination point. The SVI is the way in and the way out of each VLAN. What is a computer virus? - ANSWER-A piece of malware that writes its own code into a "host" program and when the host program is ran, the virus code executes first to achieve its objectives and cause damage What is a computer worm? - ANSWER-A piece of malware that is self-propagating (doesn't require a "host" program) What is a device driver? - ANSWER-A program that allows an operating system or computer program to interface with an attached hardware device What is a registry hive? - ANSWER-A logical group of keys, subkeys, and values in the registry that has a set of supporting files loaded into memory when the operating system is started or a user logs in What is a switch's native VLAN? - ANSWER-The switch's default VLAN. It is the only VLAN that is allowed to traverse a trunk without a VLAN tag What is a VLAN access/untagged port? - ANSWER-A switch port that carries traffic for one VLAN What is a VLAN trunk/tagged port? - ANSWER-A switch port that carries traffic for multiple VLANs What is an iptables chain and what are the 3 chains? - ANSWER-Each chain is a set of filtering rules. The INPUT chain rules are applied to any packet coming into the system. The OUTPUT chain rules are applied to packets coming out of the system. The FORWARD chain rules are applied to packets that are forwarded / routed through the system. What is big endian? - ANSWER-The most significant byte is stored at the smallest memory address and the least significant byte is stored at the largest memory address What is code signing? - ANSWER-Digitally signing of a piece of software so that its authenticity and integrity can be verified upon installation and execution

What is scareware? - ANSWER-A category of malware including rogue software and ransomware What is shell expansion? - ANSWER-In a shell like bash or PowerShell, embedding multiple commands in one line such that the output of one command is used in the output of another command What is the 1 way of using shell expansion in PowerShell? - ANSWER-$() What is the administrative distance of BGP? - ANSWER-200 hops What is the administrative distance of EIGRP? - ANSWER-90 hops What is the administrative distance of OSPF? - ANSWER-110 hops What is the administrative distance of RIP? - ANSWER-120 hops What is the endianness of most processor architectures, including Intel x86, AMD x86- 64, ARM, and RISK-V? - ANSWER-Little endian What is the general command syntax for adding an entry to the machine's routing table? - ANSWER-route add [MASK ] Example: Use 2.2.2.2 as the gateway for 10.10.10.0/ *route add 10.10.10.0 mask 255.255.0.0 2.2.2. What is the general command syntax for deleting an entry from the machine's routing table? - ANSWER-route delete What is the general syntax for a WMIC query? - ANSWER-wmic /node: get What is the in the HKLM\SYSTEM hive? - ANSWER-System-wide configuration information needed to boot the system What is the primary concern of the Application layer of the OSI model? - ANSWER- Provide services that allow end users to easily interface across the network What is the primary concern of the Physical layer of the OSI model? - ANSWER-The transmission of raw bits What is the primary concern of the Transport layer of the OSI model? - ANSWER- Provide host-to-host communication services for applications (such as connection- oriented communication, connectionless communication, reliability, flow control, and multiplexing) through the transmission of data segments

What is the purpose of an exterior gateway protocol? - ANSWER-To determine routes between your autonomous system (collection of networks) to other autonomous systems (another collection of networks, like the Internet) What is the purpose of an interior gateway protocol? - ANSWER-To determine routes between routers within an autonomous system (routers that you own) What is the response from a closed TCP port? - ANSWER-RST What is the response from a closed UDP port? - ANSWER-ICMP Type 3, Code 3: Destination Unreachable What is the response from an open TCP port? - ANSWER-SYN, ACK What is the response from an open UDP port? - ANSWER-Some legitimate data if the request was formed properly. No response otherwise. What is the WMIC syntax for killing a process by its PID? - ANSWER-wmic /node: process where processid="" call terminate What is the WMIC syntax for listing information about a machine's NICs? - ANSWER- wmic /node: nic list What is the WMIC syntax for querying a machine for its processes? - ANSWER-wmic /node: process get name,processid What is tripwire? - ANSWER-A security and data integrity tool that compares the current file system against a known baseline state and alerts on any changes it detects. A policy file is used to specify files or directories to monitor and which attributes to monitor for each, such as hashes, file permissions, ownership, etc. What is user space? - ANSWER-The section of memory in which normal user processes run. Processes running in this space only have access to a limited part of this space (the process's own space and any shared memory sections). Process in this space can only access kernel space through controlled system calls. What is VLAN tagging? - ANSWER-Data traversing a trunk link can belong to multiple VLANs. To designate which VLAN the data belongs to, a VLAN identifier (tag) is set in the layer 2 header What is Windows File Protection (WFP)? - ANSWER-A feature included in Windows 2000 and XP that aims to prevent non-authorized programs from replacing critical Windows system files

Which version of Microsoft Windows saw the release of Windows Active Directory? - ANSWER-Windows Server 2000 With regards to antivirus, what is dynamic heuristic/behavior analysis? - ANSWER- When antivirus executes a suspect program in a sandbox and flags common malicious behavior--replication, file overwrites, attempting to a hide a file, etc. With regards to antivirus, what is signature analysis? - ANSWER-Signature analysis generally consists of two actions:

  1. The antivirus hashes the suspect program and compares that hash with a database of known malware hashes
  2. The antivirus searches the suspect program's code for signatures of known malware samples (particular strings, etc.) With regards to antivirus, what is static heuristic/behavior analysis? - ANSWER-When antivirus analyzes a suspect program's instructions and flags common malicious behavior--replication, file overwrites, attempting to hide a file, etc. With regards to endianness, what is "network order?" - ANSWER-Network order refers to data being sent across a medium in big endian (most significant byte first) in the Internet Protocol