CS201 _ Quiz questions
Which of the following is true about subnets? a) In order to achieve subnetting, we take away bits form the host in both IPv4 and IPv6 b) A subnet mask will consist of all 1's followed by all 0's. c) A subnet mask can be written as "/# of zeros" d) In IPv6 the subnet bits are 65-128
A subnet mask will always consist of all 1st followed by 0s. It can also be written as a "/# of 1s". And in IPv6 we do not need to take away bits from the host to achieve subnetting. The designated subnet bits in IPv6 are 49-64
What are the two primary algorithms that routers use?
Distance Vector and Link State
What's the purpose of NAT (network address translation)?
NAT replaces private ip addresses with a public ip address to allow multiple devices connected in a network to only use one public IP address. This is useful because ipv4 (not v6) has run out of addresses.
Assume a host has an IP address of 74.125.127.104 with a subnet mask of 255.255.255.192 (also written as 74.125.127.104/26). What is the network address?
Network Address - this is a Class A address, so the first 8 bits are allocated for the network: 74.0.0.0
Which of the following ranges of port numbers refers to ports that are registered and can be used by any application? a) Ports from 1024-49151 b) Ports from 0-1023 c) Ports from 49152-65535 d) None of these ranges
Ports 1024-49151 are registered and can be used by any application. The other ranges of port numbers, however, do not fit this same description. Ports from 0-1023 are reserved for well-known applications, so root or administrator access is required to run a program on a port in that range. And the Ports from 49152-65535 are dynamic or private ports and are typically used by the operating system when an application needs to pass an application off to a non-registered port.