Chapter 6 Application Layer Flashcards
(94 cards)
DNS (Domain Name System)
An hierarchical naming scheme for internet resources. A database that supports storage and retreival of specific types of information assoicated with these names
What is the application of DNS
Naming internet hosts, and servces and mappign these names to IP Addresses
Why don’t we use a centralized solution to naming?
Not scaleable, need to decentralize authority over name creation
Domain Name Space
Hierarchically structured, sequence of names from a node to the root defines a domain.
DNS Zone
A part of the domain name hierarchy managed by an admin. Each zone has authoritative name server storing DNS records
What does a local DNS resolver do if a DNS is not cached
Sends a query to a recursive DNS server which is resolve the name by contacting other name servers if needed
Recursive DNS query
A query where the DNS server MUST filly resolve the name, possibly contacting mutiple servers
Iterative DNS Query
A query where the DNS server returns the best info it has, like the addresses of other servers without furtherl lookup
Advantage of recusrive queries over iterative
The DNS name server will be able to accumulate DNS records in its cache, useful for answering other queries
DNS resource records
- Name
- TTL (Time to live)
- Class
- type
- value
Common types of records in DNS
Type A: “name” is host name, “value” is IPv4 address
Type AAAA: like type a but IPv6
Type NS: “name” is domain name, “value” is name of authority
Type CNAME: “name” + “value” canonical alias name
Type MX: “name” domain name “value” mail server
Type SRV: server, protocol, port
Why does DNS use UDP
Its faster with lower overhead
DNSSEC
An extension to DNS that enable the authentication of DNS info through the use of digital signatures
What protocol is used to transfer email between email servers
SMTP (Simple Mail Transfer Protocl) as a push protocol.
The 3 phases of an SMTP session
Handshake, email transfer, closer
Why is MIME used?
Multipurpose Internet Mail Extensions snables sending non-ASCII email and attachments by encoding them into 7-bit ASCII
What does a MIME header contain
- text/plain
- text/html
- image/gif
- application/msword
What does MIME need to send an email with multiple parts?
“Content-Type: multipart/mixed”
HTTP
HyperText Transfer Protocol: Most commonly used application layer protocl on the internet for variety of reasons
How is HTTP used for web page delivery?
- TCP connection is established to that website
- HTTP request msg is sent
- Server returns an HTTP response containing the Web page
What type of protocol is HTTP
Stateless: keeps no info at the server about clients, its all self-contained
Common HTTP methods
GET - retrieve
POST - Submit dats
3 parts of a URL
Protocol
Host Name
Path Name
Request Header Lines are?
Lines such as “Host” which gives the host name part of the URL
or “User-Agent” which gives information about the browser making the request