Versioning, Extensibility & Postel’s Law

Slides:



Advertisements
Similar presentations
XHTML Basics. What is XHTML? XHTML is newer than the old HTML XHTML has stricter rules and does not allow some elements formerly used in HTML One benefit.
Advertisements

Introduction to JavaScript Module 1 Client Side JS Programming M-GO Sponsored By
Copyright 2012 & 2015 – Noah Mendelsohn A Brief Introduction to Requests for Comments – The Specifications for the Internet Noah Mendelsohn Tufts University.
Cox Personal Web Space (or AOL space) Free Storage for Image Galleries.
HTTP: the hypertext transfer protocol
IS 373—Web Standards Todd Will
MWD1001 – Website Production Web Browsers Week 11.
XML October 24, Unit 6. What is XML? Stands for eXtensible Markup Language It is a markup language, like HTML But, –XML is designed to markup data –HTML.
Boris Tshibangu. What is a proxy server? A proxy server is a server (a computer system or an application) that acts as an intermediary for requests from.
Web server and web browser It’s a take and give policy in between client and server through HTTP(Hyper Text Transport Protocol) Server takes a request.
INTRODUCTION TO CLIENT-SIDE WEB PROGRAMMING ACM 511 ACM 262 Course Notes.
Structure Content Presentation Semantics.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
1 HTML/XHTML Objectives Explain what HTML is and how Web pages use HTML Explain what HTML is and how Web pages use HTML Demonstrate how to create Web pages.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
Versioning, Extensibility & Postel’s Law Noah Mendelsohn Tufts University Web:
Copyright 2012 & 2015 – Noah Mendelsohn Introduction to: The Architecture of the World Wide Web Noah Mendelsohn Tufts University
XHTML and CSS Session 1 Intro, (X)HTML, CSS, W3C, browsers, webpage, structure, tags, attributes, elements, web development process, basic XHTML elements.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
Copyright 2012 & 2015 – Noah Mendelsohn Metcalfe’s Law : Why is the Web so Big? Noah Mendelsohn Tufts University
David Orchard W3C Lead BEA Systems Web service and XML Extensibility and Versioning.
Browser Wars By: Jesse Arredondo
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
May 6, 2009 Browser Compatibility Testing Definition It is a non functional type of testing where web based applications are tested on various browsers(IE.
The Internet What is the Internet? The Internet is a lot of computers over the whole world connected together so that they can share information. It.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
1 Outlook web app مریم جعفری. Preface 2 Webmail (or web-based ) is any client implemented as a web application running on a web server. Examples.
Ur/Web: A Simple Model for Programming the Web
Decentralized Extensibility & HTML 5 (An introduction to the debate) Noah Mendelsohn Distinguished Engineer – IBM Corp. Co-chair: W3C Technical Architecture.
And Mobile Web Browsers
HTML Structure & syntax
Cascading Style Sheets
* Web Servers/Clients * The HTTP Protocol
How do Web Applications Work?
BIT116: Scripting Lecture 06
Introduction to: The Architecture of the World Wide Web
COMP 150-IDS: Internet Scale Distributed Systems (Spring 2017)
Versioning, Extensibility & Postel’s Law
Data Virtualization Tutorial… CORS and CIS
Web Browsers & Mobile Web Browsers.
Decentralized Extensibility & HTML 5 (An introduction to the debate)
Introduction to Computers
HTTP: the hypertext transfer protocol
Enterprise Application Architecture
Intro to PHP & Variables
STOP. THINK. CONNECT. Online Safety Quiz.
How To Fix AOL Desktop Update Error AOL Helpline Number
Introduction to: The Architecture of the World Wide Web
Design and Maintenance of Web Applications in J2EE
CISC103 Web Development Basics: Web site:
The Internet and HTTP and DNS Examples
ISC440: Web Programming 2 Server-side Scripting PHP 3
3D IN THE CLOUD Ray Kaplan - synglyphx.
1 Introduction to the Internet.
Browser Support for HTML5
Building Web Applications
Introduction to: The Architecture of the World Wide Web
Introduction to: The Architecture of the Internet
ISC440: Web Programming 2 AJAX
COMP 150-IDS: Internet Scale Distributed Systems (Spring 2016)
Metcalfe’s Law : Why is the Web so Big?
Intro to PHP.
COMP 150-IDS: Internet Scale Distributed Systems (Spring 2016)
Intro to html5.
And Mobile Web Browsers
* Web Servers/Clients * The HTTP Protocol
Presentation transcript:

Versioning, Extensibility & Postel’s Law COMP 150-IDS: Internet Scale Distributed Systems (Spring 2016) Versioning, Extensibility & Postel’s Law Noah Mendelsohn Tufts University Email: noah@cs.tufts.edu Web: http://www.cs.tufts.edu/~noah Copyright 2012, 2103, 2015 & 2016

Goals Explore the design of data formats for systems that evolve Explore the consequences of connecting systems with nodes that disagree on the rules for communication

Evolving Systems, Compatibility & Partial Understanding

Terminology Systems evolve resulting in different versions of Software Data formats & protocols used by that software Some systems are designed from the start to be extensible I.e. there is an architected approach to versioning Backward compatible: new versions accept old stuff Forward compatible: old versions accept new stuff!!!

Compatibility is a matter of degree Full compatibility: Hard to define in detail Spirit is: things work right when data shared across versions Right? Details may still vary accoring to needs of app Acceptable compatibility The system does something reasonable with content that received from other versions of software There may be compromises (formatting, reduced function, etc.) Let’s explore the notion of “doing something reasonable”

Data formats & partial understanding When some or all of the data is encoded and interpreted the same way by multiple versions of the specification, inter-operation is easy…we have full compatiblity The key to flexible inter-operation is partial understanding Ideally, this is achieved by specifying in early versions of the specifications how illegal content will be interpreted! Huh? Is it legal or not? Well, it’s in between… Should be rejected by conformance checkers …but implementations of early versions will accept it and follow the rules …this is in the spirit of Postel’s Law

Partial understanding in HTML – illegal tags Ignored for rendering Added to the DOM Scriptable Styleable

Data Format Syntax & Versioning

Challenges New syntax for new features Old features removed These changes do happen…but they’re dangerous! New syntax for new features Old features removed New rules for old features Changing the meaning of old syntax

You need something like a version id in the format to catch these!! Challenges You need something like a version id in the format to catch these!! New syntax for new features Old features removed New rules for old features Changing the meaning of old syntax

Problems & groundrules Nodes disagree about rules for interpreting messages We want systems to keep running when it’s safe Certain results will not be acceptable – we must guarantee they are never accepted Not all problems are equally serious – we’ve already discussed partial understanding

Unique syntax <document> <order> ...lots of stuff here... If this is here, it always means the same thing…you either understand it or you don’t! <document> <order> ...lots of stuff here... </order> </document> <document> <order> ...lots of stuff here... </order> <comment> Verions 2 doesn't understand this. </comment> </document>

Unique syntax <document> <order> ...lots of stuff here... Le’ts assume that in V1 0 means approved Unique syntax <document> <order> ...lots of stuff here... <isApproved>0</isApproved> </order> </document> For some reason in V2, the spec is changed to work the opposite way <document> <order> ...lots of stuff here... <isApproved>1</isApproved> </order> </document> This is dangerous! Applications can’t tell by looking whether they do or don’t understand!

Version numbers can help with this <document version=“1.0”> <order> ...lots of stuff here... <isApproved>0</isApproved> </order> </document> <document version=“2.0”> <order> ...lots of stuff here... <isApproved>1</isApproved> </order> </document> By looking at the version number, we can tell whether we know which rules to apply.

Version numbers can help with this <document version=“1.0”> <order> ...lots of stuff here... <isApproved>0</isApproved> </order> </document> Problems with Version Numbers Would you want to put a C version on each source file How would you figure out the version number? <document version=“2.0”> <order> ...lots of stuff here... <isApproved>1</isApproved> </order> </document> By looking at the version number, we can tell whether we know which rules to apply.

In-band vs. in the specification controls In-band controls tell the receiver what can be ignored: <cacheThis soap:mustUnderstand=“false”> <currency name=“pesos” soap:mustUnderstand=“true”> Tolerance for extensions can be set out in the specification Unexpected HTML tags: Ignored for rendering Added to the DOM Scriptable Styleable

Postel’s Law (the Robustness Principle)

"Be liberal in what you accept, and conservative in what you send".

Why Postel’s Law? Avoid brittle systems: keep running in the face of small problems Allow for innovation We’ll discuss this later Hard/impossible to keep large systems in sync Internet-scale systems work across organizations Allow for competition TCP/IP re-implemented in each OS Browsers: Firefox, Safari, Chrome, IE, Opera, etc. Web servers: Apache, IIS

Postel’s Law is controversial Many in the Internet community deeply believe Postel’s law key to robustness of the Internet The IETF has it as a motto When applied carefully at both ends, results are typically good You have to watch not to liberally accept something dangerous! When not applied carefully, big trouble results…

Problems with Postel’s Law HTML browsers were very liberal in accepting almost anything So servers stopped following the rules There’s a ton of buggy content on the Internet… …and since browsers accept it, people expect it to keep working! The HTML5 spec is 5x bigger than it needs to be – to standardize handling of buggy content The servers were not conservative in what they sent!

Note that Postel’s law says little about evolving specifications…it’s mainly to avoid brittleness in reimplementing the same specification, but…

…Postel’s law points a direction for building systems that evolve

Naming & Decentralized Extensibility

What if we want lots of people to add features? Specifications will be modular We need a way to recognize the syntax for each feature Who gets to invent new syntax? How can we keep two organizations from inventing the same syntax? Problem: as we saw when we studied naming… …globally unique names tend to be ugly and inconvenient

The HTML Distributed Extensibility Debate The W3C spent years moving HTML to XML (XHMTL) A big reason was so anyone could invent new tag names without collision…XML has namespace But… many users rebelled against the inconvenience HTML5 can only be updated by a central committee… …but the tag names are short and convenient This controversy almost derailed HTML evolution See: http://lists.w3.org/Archives/Public/www-archive/2009Nov/att-0004/DecentrailzedExtensibilityandHTML_v9fixed.pdf