University of Houston Applications Datacom II Lecture 12 B

Slides:



Advertisements
Similar presentations
Chapter 19: Network Management Business Data Communications, 5e.
Advertisements

CIS : Network Management. Introduction Network, associated resources and distributed applications indispensable Complex systems —More things can.
Spring 2003CS 4611 Naming Outline Terminology Domain Naming System Distributed File Systems.
CS 6401 The Domain Name System Outline Domain Name System.
Spring 2002CS 4611 Naming Outline Terminology Domain Naming System Distributed File Systems.
1 Higher level protocols Domain Naming System, DNS HTTP.
Spring 2006CS 3321 Name Service (DNS) Outline Terminology Domain Naming System.
Applications Outline Name Service (DNS) Traditional Applications.
1 Naming Services (DNS) Name versus Address Name space –defines set of possible names –consists of a set of name to value bindings –flat (names are not.
1 Naming Outline Terminology Domain Naming System Distributed File Systems.
1 Pertemuan 23 Layer Transport Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
1 ITC242 – Introduction to Data Communications Week 12 Topic 18 Chapter 19 Network Management.
Chapter 6: Distributed Applications Business Data Communications, 5e.
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 23 – Internet Applications Internet Directory.
William Stallings Data and Computer Communications 7 th Edition Chapter 22 Distributed Applications.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 22 – Internet Applications Electronic Mail.
1 System support & Management Protocols Lesson 13 NETS2150/2850 School of Information Technologies.
Chapter 30 Electronic Mail Representation & Transfer
Sistem Jaringan dan Komunikasi Data #8. Electronic Mail  most heavily used application on any network  Simple Mail Transfer Protocol (SMTP)  TCP/IP.
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
Electronic Mail (SMTP, POP, IMAP, MIME)
Chapter 7: Internet-Based Applications Business Data Communications, 6e.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
9/15/2015© 2008 Raymond P. Jefferis IIILect Application Layer.
Sistem Jaringan dan Komunikasi Data #9. DNS The Internet Directory Service  the Domain Name Service (DNS) provides mapping between host name & IP address.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 22 – Internet Applications Electronic Mail.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Abstract Syntax Notation ASN.1 Week-5 Ref: “SNMP…” by Stallings (Appendix B)
Internet Applications
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Lecture 6: Sun: 8/5/1435 Distributed Applications Lecturer/ Kawther Abas CS- 492 : Distributed system & Parallel Processing.
Computer Networks with Internet Technology William Stallings Chapter 03 Traditional Applications.
Chapter 9 Applications Giving user-friendly names (instead of router-friendly addresses) is often the 1 st application (middleware) implemented on a network.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Chapter 16: Distributed Applications Business Data Communications, 4e.
Computer Networks with Internet Technology William Stallings Chapter 04 Modern Applications 4.1 Web Access - HTTP.
1 10. DNS, HTTP, Unix Socket Programming DNS (Domain Name Service) Domain Name Name Resolution HTTP (Hyper Text Transfer Protocol) Request Response Persistent.
COMP 431 Internet Services & Protocols
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 23 – Internet Applications Internet Directory.
Chapter 27 Network Management Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Jaringan Telekomunikasi, Sukiswo ST, MT Sukiswo
William Stallings Data and Computer Communications 7th Edition
Applications:Electronic Mail (SMTP,POP,IMAP,MIME)
Networking Applications
Dept. of Computer Science and Engineering
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Net 431 D: ADVANCED COMPUTER NETWORKS
Chapter 6: Distributed Applications
Protocols and the TCP/IP Suite
CS- 492 : Distributed system & Parallel Processing
Multimedia and Networks
Process-to-Process Delivery:
ELECTRONIC MAIL SECURITY
William Stallings Data and Computer Communications
ELECTRONIC MAIL SECURITY
William Stallings Data and Computer Communications
Applications Outline (SMTP) Web (HTTP) Network management (SNMP)
TCP/IP Protocol Suite: Review
HyperText Transfer Protocol
William Stallings Data and Computer Communications
University of Houston Distributed Applications Datacom II Lecture 10
Protocols and the TCP/IP Suite
William Stallings Data and Computer Communications
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

University of Houston Applications Datacom II Lecture 12 B Dr Fred L Zellner fzellner@uh.edu 9/21/2018 Datacomm II Spring 2002

Naming Outline Terminology Domain Naming System Distributed File Systems 9/21/2018 Datacomm II Spring 2002

Overview What do names do? Name space identify objects help locate objects define membership in a group specify a role convey knowledge of a secret Name space defines set of possible names consists of a set of name to value bindings 9/21/2018 Datacomm II Spring 2002

Properties Names versus addresses Location transparent versus location-dependent Flat versus hierarchical Global versus local Absolute versus relative By architecture versus by convention Unique versus ambiguous 9/21/2018 Datacomm II Spring 2002

Examples Hosts Files Users cheltenham.cs.princeton.edu 192.12.69.17 192.12.69.17 80:23:A8:33:5B:9F Files /usr/llp/tmp/foo (server, fileid) Users Larry Peterson llp@cs.princeton.edu 9/21/2018 Datacomm II Spring 2002

Examples (cont) Mailboxes Services nearby ps printer with short queue and 2MB Name server Mail program User TCP IP 2 cs.princeton.edu 192.12.69.5 3 user @ cs.princeton.edu 1 4 5 9/21/2018 Datacomm II Spring 2002

Domain Naming System Hierarchy Name chinstrap.cs.princeton.edu 9/21/2018 Datacomm II Spring 2002

Name Servers Partition hierarchy into zones edu com gov mil org net uk fr princeton … mit cisco … yahoo nasa … nsf arpa … navy acm … ieee cs ee physics ux01 ux04 Root name server Princeton Cisco CS EE … Each zone implemented by two or more name servers 9/21/2018 Datacomm II Spring 2002

Resource Records Each name server maintains a collection of resource records (Name, Value, Type, Class, TTL) Name/Value: not necessarily host names to IP addresses Type NS: Value gives domain name for host running name server that knows how to resolve names within specified domain. CNAME: Value gives canonical name for particle host; used to define aliases. MX: Value gives domain name for host running mail server that accepts messages for specified domain. Class: allow other entities to define types TTL: how long the resource record is valid 9/21/2018 Datacomm II Spring 2002

Root Server (princeton.edu, cit.princeton.edu, NS, IN) (cit.princeton.edu, 128.196.128.233, A, IN) (cisco.com, thumper.cisco.com, NS, IN) (thumper.ciscoe.com, 128.96.32.20, A, IN) … 9/21/2018 Datacomm II Spring 2002

Princeton Server (cs.princeton.edu, optima.cs.princeton.edu, NS, IN) (optima.cs.princeton.edu, 192.12.69.5, A, IN) (ee.princeton.edu, helios.ee.princeton.edu, NS, IN) (helios.ee.princeton.edu, 128.196.28.166, A, IN) (jupiter.physics.princeton.edu, 128.196.4.1, A, IN) (saturn.physics.princeton.edu, 128.196.4.2, A, IN) (mars.physics.princeton.edu, 128.196.4.3, A, IN) (venus.physics.princeton.edu, 128.196.4.4, A, IN) 9/21/2018 Datacomm II Spring 2002

CS Server (cs.princeton.edu, optima.cs.princeton.edu, MX, IN) (cheltenham.cs.princeton.edu, 192.12.69.60, A, IN) (che.cs.princeton.edu, cheltenham.cs.princeton.edu, CNAME, IN) (optima.cs.princeton.edu, 192.12.69.5, A, IN) (opt.cs.princeton.edu, optima.cs.princeton.edu, CNAME, IN) (baskerville.cs.princeton.edu, 192.12.69.35, A, IN) (bas.cs.princeton.edu, baskerville.cs.princeton.edu, CNAME, IN) 9/21/2018 Datacomm II Spring 2002

Name Resolution Strategies Local server forward iterative recursive need to know root at only one place (not each host) site-wide cache Root name server Princeton CS Local Client 1 cicada.cs.princeton.edu 192.12.69.60 8 princeton.edu, 128.196.128.233 cicada.cs.princeton.edu, cs.princeton.edu, 192.12.69.5 2 3 4 5 6 7 9/21/2018 Datacomm II Spring 2002

Distributed File Systems No Transparency Global AFS: /cs.princeton.edu/usr/llp/tmp/foo Windows: f:/usr/llp/tmp/foo Transparency by Convention NFS: /usr/llp/tmp/foo Or Not: /n/fs/fac5/llp/tmp/foo Transparency by Architecture Sprite: /usr/llp/tmp/foo Private versus Shared ASF: /usr/llp/tmp/foo versus /afs/shared 9/21/2018 Datacomm II Spring 2002

Stupid Naming Tricks Symbolic links Mount points Union mounts Per-User name spaces Logical name spaces Computed directories 9/21/2018 Datacomm II Spring 2002

Abstract Syntax Notation One ASN.1 Used to define format of PDUs Representation of distributed information Representation of operations performed on transmitted data 9/21/2018 Datacomm II Spring 2002

Terms Relevant to ANS.1 Abstract Syntax Data Type Encoding Describes generic structure of data Data Type Named set of values Encoding Sequence of octets used to represent data value Encoding Rules Mapping from one syntax to another Transfer Syntax Way data represented in bit patterns while in transit 9/21/2018 Datacomm II Spring 2002

Use of Abstract and Transfer Syntaxes 9/21/2018 Datacomm II Spring 2002

ASN.1 Concepts Module definition Structured definition of a data structure using ASN.1 Name of module used as abstract syntax name 9/21/2018 Datacomm II Spring 2002

Form of Modules <modulereference>DEFINITIONS::= BEGIN EXPORTS IMPORTS AssignmentsList End EXPORTS Definitions which may be imported by other modules IMPORTS Definitions to be imported from other modules AssignmentList Type assignments, value assignments, macro definitions <name>::=<description> 9/21/2018 Datacomm II Spring 2002

Lexical Conventions Layout not significant Comments delimited by pair of hyphens (--) at start and pair of hyphens or end of line end of comment Identifiers, type references and module names consist of upper and lower case letters, digits and hyphens Identifier starts with lower case letter Type reference or module name begins with upper case letter Built in type consists of all upper case letters 9/21/2018 Datacomm II Spring 2002

Abstract Data Types Collection of values Simple Structured Tagged Atomic No components Structured Has components Tagged Derived from other types Other Include CHOICE and ANY types (see later) 9/21/2018 Datacomm II Spring 2002

Tag Classes (1) Every data type (except CHOICE and ANY) has associated tag Universal Generally useful Application independent Defined in standard e.g. Boolean, Integer, Real 9/21/2018 Datacomm II Spring 2002

Tag Classes (2) Application wide Context specific Private Relevant to particular application Context specific Applicable in limited context Private User defined 9/21/2018 Datacomm II Spring 2002

CHOICE and ANY Data types without tags CHOICE ANY When value assigned, type also assigned Type assigned at run time CHOICE List of alternative known types Only one type used to create value ANY Arbitrary value Arbitrary type 9/21/2018 Datacomm II Spring 2002

Subtypes (1) Derived from parent type Restricted subset of values May be nested Single value subtype Explicit listing of all valid values Contained subtype Used to form new subtype from existing subtypes Includes all values of subtypes it contains Value range subtype Real and Integer only Specify endpoints of range 9/21/2018 Datacomm II Spring 2002

Subtypes (2) Permitted alphabet constraint Size constrained Only character string All values that can be constructed using sub-alphabet Size constrained Limits number of items in type e.g. number of bits in bit type Inner type constraint Applied to SEQUENCE, SEQUENCE OF, SET, SET OF, CHOICE Only values from parent that satisfy one or more contraints 9/21/2018 Datacomm II Spring 2002

PDU Example (part 1) 9/21/2018 Datacomm II Spring 2002

PDU Example (part 2) 9/21/2018 Datacomm II Spring 2002

PDU Example (part 3) 9/21/2018 Datacomm II Spring 2002

Network Management - SNMP Simple Network Management Protocol Networks are becoming indispensable More complexity makes failure more likely Require automatic network management tools Standards required to allow multi-vendor networks Covering: Services Protocols Management information base (MIB) 9/21/2018 Datacomm II Spring 2002

Network Management Systems Collection of tools for network management Single operator interface Powerful, user friendly command set Performing most or all management tasks Minimal amount of separate equipment i.e. use existing equipment View entire network as unified architecture Active elements provide regular feedback 9/21/2018 Datacomm II Spring 2002

Key Elements Management station or manager Agent Management information base Network management protocol 9/21/2018 Datacomm II Spring 2002

Management Station Stand alone system or part of shared system Interface for human network manager Set of management applications Data analysis Fault recovery Interface to monitor and control network Translate manager’s requirements into monitoring and control of remote elements Data base of network management information extracted from managed entities 9/21/2018 Datacomm II Spring 2002

Agent Hosts, bridges, hubs, routers equipped with agent software Allow them to be managed from management station Respond to requests for information Respond to requests for action Asynchronously supply unsolicited information 9/21/2018 Datacomm II Spring 2002

Management Information Base MIB Representation of network resources as objects Each object a variable representing one aspect of managed object MIB is collection of access points at agent for management of station Objects standardized across class of system Bridge, router etc. 9/21/2018 Datacomm II Spring 2002

Network Management Protocol Link between management station and agent TCP/IP uses SNMP OSI uses Common Management Information Protocol (CMIP) SNMPv2 (enhanced SNMP) for OSI and TCP/IP 9/21/2018 Datacomm II Spring 2002

Protocol Capabilities Get Set Notify 9/21/2018 Datacomm II Spring 2002

Management Layout May be centralized in simple network May be distributed in large, complex network Multiple management servers Each manages pool of agents Management may be delegated to intermediate manager 9/21/2018 Datacomm II Spring 2002

Example of Distributed Network Management Configuration 9/21/2018 Datacomm II Spring 2002

SNMP v1 August 1988 SNMP specification issued Stand alone management stations and bridges, routers workstations etc supplied with agents Defines limited, easily implemented MIB of scalar variables and two dimensional tables Streamlined protocol Limited functionality Lack of security SNMP v2 1993, revised 1996 RFC 1901-1908 9/21/2018 Datacomm II Spring 2002

SNMP v2 (1) Framework on which network management applications can be built e.g fault management, performance monitoring, accounting Protocol used to exchange management information Each player maintains local MIB Structure defined in standard At least one system responsible for management Houses management applications 9/21/2018 Datacomm II Spring 2002

SNPM v2 (2) Support central or distributed management In distributes system, some elements operate as manager and agent Exchanges use SNMP v2 protocol Simple request/response protocol Typically uses UDP Ongoing reliable connection not required Reduces management overhead 9/21/2018 Datacomm II Spring 2002

SNMP v2 Managed Configuration 9/21/2018 Datacomm II Spring 2002

Structure of Management Information SMI Defines general framework with which MIB defined and constructed Identifies data types How resources are represented and named Encourages simplicity and extensibility Scalars and two dimensional arrays of scalars (tables) only 9/21/2018 Datacomm II Spring 2002

Protocol Operation Exchange of messages Outer message header deals with security Seven types of PDU 9/21/2018 Datacomm II Spring 2002

SNMP v2 PDU Formats 9/21/2018 Datacomm II Spring 2002

SNMP v3 Addresses security issues of SNMP v1/2 RFC 2570-2575 Proposed standard January 1998 Defines overall architecture and security capability To be used with SNMP v2 9/21/2018 Datacomm II Spring 2002

SNMP v3 Services Authentication Privacy Access control Part of User-Based Security (UBS) Assures that message: Came from identified source Has not been altered Has not been delayed or replayed Privacy Encrypted messages using DES Access control Can configure agents to provide a number of levels of access to MIB Access to information Limit operations 9/21/2018 Datacomm II Spring 2002

Electronic Mail Most heavily used application on any network Simple Mail Transfer Protocol (SMTP) TCP/IP Delivery of simple text messages Multi-purpose Internet Mail Extension (MIME) Delivery of other types of data Voice, images, video clips 9/21/2018 Datacomm II Spring 2002

SMTP RFC 821 Not concerned with format of messages or data Covered in RFC 822 (see later) SMTP uses info written on envelope of mail Message header Does not look at contents Message body Except: Standardize message character set to 7 bit ASCII Add log info to start of message Shows path taken 9/21/2018 Datacomm II Spring 2002

Basic Operation Mail created by user agent program (mail client) Message consists of: Header containing recipient’s address and other info Body containing user data Messages queued and sent as input to SMTP sender program Typically a server process (daemon on UNIX) 9/21/2018 Datacomm II Spring 2002

Mail Message Contents Each queued message has: Message text RFC 822 header with message envelope and list of recipients Message body, composed by user A list of mail destinations Derived by user agent from header May be listed in header May require expansion of mailing lists May need replacement of mnemonic names with mailbox names If BCCs indicated, user agent needs to prepare correct message format 9/21/2018 Datacomm II Spring 2002

SMTP Sender Takes message from queue Transmits to proper destination host Via SMTP transaction Over one or more TCP connections to port 25 Host may have multiple senders active Host should be able to create receivers on demand When delivery complete, sender deletes destination from list for that message When all destinations processed, message is deleted 9/21/2018 Datacomm II Spring 2002

Optimization If message destined for multiple users on a given host, it is sent only once Delivery to users handled at destination host If multiple messages ready for given host, a single TCP connection can be used Saves overhead of setting up and dropping connection 9/21/2018 Datacomm II Spring 2002

Possible Errors Host unreachable Host out of operation TCP connection fail during transfer Sender can re-queue mail Give up after a period Faulty destination address User error Target user changed address Redirect if possible Inform user if not 9/21/2018 Datacomm II Spring 2002

SMTP Protocol - Reliability Used to transfer messages from sender to receiver over TCP connection Attempts to provide reliable service No guarantee to recover lost messages No end to end acknowledgement to originator Error indication delivery not guaranteed Generally considered reliable 9/21/2018 Datacomm II Spring 2002

SMTP Receiver Accepts arriving message Places in user mailbox or copies to outgoing queue for forwarding Receiver must: Verify local mail destinations Deal with errors Transmission Lack of disk space Sender responsible for message until receiver confirm complete transfer Indicates mail has arrived at host, not user 9/21/2018 Datacomm II Spring 2002

SMTP Forwarding Mostly direct transfer from sender host to receiver host May go through intermediate machine via forwarding capability Sender can specify route Target user may have moved 9/21/2018 Datacomm II Spring 2002

Conversation SMTP limited to conversation between sender and receiver Main function is to transfer messages Rest of mail handling beyond scope of SMTP May differ between systems 9/21/2018 Datacomm II Spring 2002

SMTP Mail Flow 9/21/2018 Datacomm II Spring 2002

SMTP System Overview Commands and responses between sender and receiver Initiative with sender Establishes TCP connection Sender sends commands to receiver e.g. HELO<SP><domain><CRLF> Each command generates exactly one reply e.g. 250 requested mail action ok; completed 9/21/2018 Datacomm II Spring 2002

SMTP Replies Leading digit indicates category Positive completion reply (2xx) Positive intermediate reply (3xx) Transient negative completion reply (4xx) Permanent negative completion reply (5xx) 9/21/2018 Datacomm II Spring 2002

Operation Phases Connection setup Exchange of command-response pairs Connection termination 9/21/2018 Datacomm II Spring 2002

Connection Setup Sender opens TCP connection with receiver Once connected, receiver identifies itself 220 <domain> service ready Sender identifies itself HELO Receiver accepts sender’s identification 250 OK If mail service not available, step 2 above becomes: 421 service not available 9/21/2018 Datacomm II Spring 2002

Mail Transfer Sender may send one or more messages to receiver MAIL command identifies originator Gives reverse path to used for error reporting Receiver returns 250 OK or appropriate fail/error message One or more RCPT commands identifies recipients for the message Separate reply for each recipient DATA command transfers message text End of message indicated by line containing just period (.) 9/21/2018 Datacomm II Spring 2002

Closing Connection Two steps Sender sends QUIT and waits for reply Then initiate TCP close operation Receiver initiates TCP close after sending reply to QUIT 9/21/2018 Datacomm II Spring 2002

Format for Text Messages RFC 882 Message viewed as having envelope and contents Envelope contains information required to transmit and deliver message Message is sequence of lines of text Uses general memo framework Header usually keyword followed by colon followed by arguments 9/21/2018 Datacomm II Spring 2002

Example Message Date:Tue, 16 Jan 2010 10:37:17 (EST) From: “William Stallings” <ws@host.com> Subject:The syntax of RFC 822 To: Smith@otherhost.com Cc: Jones@Yet-another_host.com This is the main text, delimited from the header by a blank line. 9/21/2018 Datacomm II Spring 2002

Multipurpose Internet Mail Extension (MIME) Extension to RFC822 SMTP can not transmit executables Uuencode and other schemes are available Not standardized Can not transmit text including international characters (e.g. â, å, ä, è, é, ê, ë) Need 8 bit ASCII Servers may reject mail over certain size Translation between ASCII and EBCDIC not standard SMTP gateways to X.400 can not handle none text data in X.400 messages Some SMTP implementations do not adhere to standard CRLF, truncate or wrap long lines, removal of white space, etc. 9/21/2018 Datacomm II Spring 2002

Overview of MIME Five new message header fields MIME version Content type Content transfer encoding Content Id Content Description Number of content formats defines Transfer encoding defined 9/21/2018 Datacomm II Spring 2002

Content Types Text body Multipart Message Image Video Audio Mixed, Parallel, Alternative, Digest Message RFC 822, Partial, External-body Image jpeg, gif Video mpeg Audio Basic Application Postscript octet stream 9/21/2018 Datacomm II Spring 2002

MIME Transfer Encodings Reliable delivery across wide largest range of environments Content transfer encoding field Six values Three (7bit, 8bit, binary) no encoding done Provide info about nature of data Quoted-printable Data largely printable ASCII characters Non-printing characters represented by hex code Base64 Maps arbitrary binary input onto printable output X-token Named nonstandard encoding 9/21/2018 Datacomm II Spring 2002

Base 64 Encoding 9/21/2018 Datacomm II Spring 2002

Hypertext Transfer Protocol HTTP Underlying protocol of the World Wide Web Not a protocol for transferring hypertext For transmitting information with efficiency necessary for hypertext jumps Can transfer plain text, hypertext, audio, images, and Internet accessible information 9/21/2018 Datacomm II Spring 2002

HTTP Overview Transaction oriented client/server protocol Usually between Web browser (client) and Web server Uses TCP connections Stateless Each transaction treated independently Each new TCP connection for each transaction Terminate connection when transaction complete 9/21/2018 Datacomm II Spring 2002

Key Terms Cache Client Connection Entity Gateway Message Origin server Proxy Resource Server Tunnel User agent 9/21/2018 Datacomm II Spring 2002

Examples of HTTP Operation 9/21/2018 Datacomm II Spring 2002

Intermediate HTTP Systems 9/21/2018 Datacomm II Spring 2002

HTTP Messages Requests Responses Request line Response line Client to server Responses Server to client Request line Response line General header Request header Response header Entity header Entity body 9/21/2018 Datacomm II Spring 2002

HTTP Message Structure 9/21/2018 Datacomm II Spring 2002

General Header Fields Cache control Connection Data Forwarded Keep alive MIME version Pragma Upgrade 9/21/2018 Datacomm II Spring 2002

Request Methods Request-Line = Method <SP> Request_URL <SP> HTTP-Version <CRLF> Methods: Options Get Head Post Put Patch Copy Move Delete Link Unlink Trace Wrapped Extension-method 9/21/2018 Datacomm II Spring 2002

Request Header Field Accept Accept charset Accept encoding Accept language Authorization From Host If modified since Proxy authentication Range Referrer Unless User agent 9/21/2018 Datacomm II Spring 2002

Response Messages Status line followed by one or more general, response and entity headers, followed by optional entity body Status-Line = HTTP-Version <SP> Status-Code <SP> Reason-Phrase <CRLF> 9/21/2018 Datacomm II Spring 2002

Status Codes Informational Successful Redirection Client error Server error 9/21/2018 Datacomm II Spring 2002

Response Header Fields Location Proxy authentication Public Retry after Server WWW-Authenticate 9/21/2018 Datacomm II Spring 2002

Entity Header Fields Expires Last modified Link Title Allow Content encoding Content language Content length Content MD5 Content range Content type Content version Derived from Expires Last modified Link Title Transfer encoding URL header Extension header 9/21/2018 Datacomm II Spring 2002

Entity Body Arbitrary sequence of octets HTTP transfers any type of data including: text binary data audio images video Interpretation of data determined by header fields Content encoding, content type, transfer encoding 9/21/2018 Datacomm II Spring 2002

References: Computer Networks, A Systems Approach Larry Peterson & Bruce Davis Second Addition Pub: Morgan Kaufmann Chapter Nine (9) ————————— 9/21/2018 Datacomm II Spring 2002