Computer Systems

Application Layer: HTTP and Cookies

“Application Layer: HTTP and Cookies”

Table of Contents

Principles of Network Applications

Network Application Architectures

Processes Communicating

Interface between process and network

Addressing processes

To communicate with a process on a remote host, you need:

Transport Services

Can be classified by these dimensions:

TCP services

SSL

UDP Services

Application Layer Protocols

The Web and HTTP

HTTP: HyperText Transfer Protocol

Non-persistent and persistent connections

HTTP Request Message

http_request

HTTP Response Message

Consists of

Cookies

cookies

Web Caching

conditional_get Conditional get from browser cache

proxy_server Proxy server for cacheing, security, IP address sharing

Static Web Documents

Dynamic content

File Transfer Protocol: FTP

ftp

ftp_connections

FTP Commands and Replies

Email

SMTP

SMTP Commands

SMTP vs HTTP

Mail message header

From: abc@xyz.com
To: ijk@bbb.com
Subject: searching for the meaning of life
CC:
Bcc:
Message-Id:
In-Reply-To: <- ID of message you are replying to
Reply-To:
...

MIME - Multipurpose Internet Mail Extensions

Mail access protocols

mail_access_protocols

DNS

DNS Components

Domain name characteristics

dns_tree

Database: Resource Records

Type Value
A IPv4 address for hostname Name
AAAA IPv6 address for hostname Name
NS Hostname of authoritative DNS server for domain Name
CNAME Canonical hostname for alias hostname Name
MX Mail exchange. Canonical name of a mail server. Allows company to have same aliased name for mail and Web

Inserting records into DNS

Types of name servers

Hierarchy

Resolving queries

dns_resolve_query

DNS Messages

# query A record for google.com
$ nslookup
> google.com
Server:         192.168.20.1
Address:        192.168.20.1#53

Non-authoritative answer:
Name:   google.com
Address: 216.239.32.117
Name:   google.com
Address: 216.239.34.117
Name:   google.com
Address: 216.239.38.117
Name:   google.com
Address: 216.239.36.117
Name:   google.com
Address: 2001:4860:4802:38::75
>^C
# look up NS record of registermachine.com with google name server 8.8.8.8
$ nslookup -type=NS registermachine.com 8.8.8.8
Server:         8.8.8.8
Address:        8.8.8.8#53

Non-authoritative answer:
registermachine.com     nameserver = ns-1362.awsdns-42.org.
registermachine.com     nameserver = ns-1556.awsdns-02.co.uk.
registermachine.com     nameserver = ns-363.awsdns-45.com.
registermachine.com     nameserver = ns-894.awsdns-47.net.

Authoritative answers can be found from:

DNS Caching

DNS Security


Edit this page.