Day 5 Flashcards
ports
accomplish’s the task of allowing different services to use the same interface
well known ports
0-1023
ports usable by the client
1024-65535
socket
an IP paired with a port number.
can be viewed using the netstat command
common netstat states
Established—the socket has an established connection
Time_Wait—the socket is waiting after close to handle packets still in the network
Close—The socket is not being used.
Close_Wait—The remote end has shut down, waiting for the socket to close
Listen—the socket is listening for incoming connections
Closing—both sockets are shut down but we still don’t have all our data sent.
UNKNOWN—the state of the socket is unknown.
Dynamic Host Configuration Protocol
a protocol used by a host to obtain an IP address from a DHCP server. Uses DORA process to obtain IP.
uses UDP 67/68
Discover (of DORA)
client sends broadcast message asking for information from DHCP server
Offer (of DORA)
DHCP server offers an IP address to the client
Request (of DORA)
client accepts the offer and notifies server its using the address
Acknowledge (of DORA)
server sends back an acknowledgement.
Domain Name System (DNS)
a distributed name system that contains services to map computer names to IP addresses.
Root name servers
machines that provide access to the root zone file containing information on all Top-Level Domains (TLD’s)
Types of TLD’s within the DNS
Generic TLD (gTLD)---TLD's with three or more characters such as .com Sponsored TLD (sTLD)---sponsored by organizations such as .mil by DOD Country Code TLD (ccTLD)--- two letter country codes
Fully qualified domain name (FQDN)
full name.
specifies an address exact location in the DNS hierarchy.
specifies all domain levels, including the root domain, top-level domain, parent domain, and host.
FQDN examples
www.nsa.gov
Host/parentdomain/toplevel domain
somehost.nsa.gov
host/parent domain/toplevel domain
DNS Servers
DNS servers store information about a portion of the domain name space called a zone.
Start of Authority (SOA)
The SOA acts as the primary DNS server.
best source of information for the zone.
name servers (NS’s)
any other autoritative server for the zone