Content deleted Content added
→Criticism: format journal reference better |
Citation bot (talk | contribs) Altered url. URLs might have been anonymized. Add: authors 1-1. Removed parameters. Some additions/deletions were parameter name changes. | Use this bot. Report bugs. | Suggested by Abductive | Category:Computer architecture statements | #UCB_Category 10/28 |
||
(42 intermediate revisions by 32 users not shown) | |||
Line 1:
In [[computing]], the '''robustness principle''' is a design guideline for software that states: "be conservative in what you do, be liberal in what you accept from others". It is often reworded as: "be conservative in what you send, be liberal in what you accept". The principle is also known as '''Postel's law''', after [[Jon Postel]], who
▲The principle is also known as '''Postel's law''', after [[Jon Postel]], who wrote in an early specification of [[Transmission Control Protocol|TCP]]:<ref>{{cite IETF |title=Transmission Control Protocol |rfc=761 |editor1-last=Postel |editor1-first=Jon |editor1-link=Jon Postel |year=1980 |month=January |publisher=[[Internet Engineering Task Force|IETF]] |accessdate=June 9, 2014}}</ref>
In other words, programs that send messages to other machines (or to other programs on the same machine) should conform completely to the specifications, but programs that receive messages should accept non-conformant input as long as the meaning is clear.
Among programmers, to produce [[Liskov substitution principle|compatible functions]], the principle is
== Interpretation ==
The principle was first written down by Jon Postel in the 1979 [[IPv4]] specification.<ref>{{Cite book |last1=Council |first1=National Research |url=https://books.google.com/books?id=lm2C8PJY-NYC&pg=PA39 |title=The Internet's Coming of Age |last2=Sciences |first2=Division on Engineering and Physical |last3=Applications |first3=Commission on Physical Sciences, Mathematics, and |last4=Board |first4=Computer Science and Telecommunications |last5=Infrastructure |first5=Committee on the Internet in the Evolving Information |date=2001-01-22 |publisher=National Academies Press |isbn=978-0-309-17205-9 |language=en}}</ref> RFC 1122 (1989) expanded on Postel's principle by recommending that programmers "assume that the network is filled with malevolent entities that will send in packets designed to have the worst possible effect".<ref>{{cite IETF |title=Requirements for Internet Hosts: Communication Layers |rfc=1122 |editor1-last=Braden |editor1-first=R. |editor1-link=Bob Braden |
== Criticism ==
In 2001, [[Marshall Rose]] characterized several deployment problems when applying Postel's principle in the design of a new application protocol.<ref>{{cite IETF |title=On the Design of Application Protocols |rfc=3117 |last=Rose |first=M. |
In 2018, a paper on [[privacy-enhancing technologies]] by Florentin Rochet and Olivier Pereira showed how to exploit Postel's robustness principle inside the [[Tor (anonymity network)|Tor]] [[Onion routing|routing protocol]] to compromise the anonymity of onion services and Tor clients.<ref>{{cite journal | url = https://petsymposium.org/2018/files/papers/issue2/popets-2018-0011.pdf | title = Dropping on the Edge: Flexibility and Traffic Confirmation in Onion Routing Protocols |
In 2023, Martin Thomson and David Schinazi argued that Postel's robustness principle actually leads to a ''lack'' of robustness, including security:{{Ref RFC|9413}}{{Quote|A flaw can become entrenched as a de facto standard. Any implementation of the protocol is required to replicate the aberrant behavior, or it is not interoperable. This is both a consequence of tolerating the unexpected and a product of a natural reluctance to avoid fatal error conditions. Ensuring interoperability in this environment is often referred to as aiming to be "[[bug-for-bug compatible]]".}}
== See also ==
▲In 2018, a paper on [[privacy-enhancing technologies]] by Florentin Rochet and Olivier Pereira showed how to exploit Postel's robustness principle inside the [[Tor (anonymity network)|Tor]] [[Onion routing|routing protocol]] to compromise the anonymity of onion services and Tor clients.<ref>{{cite journal | url = https://petsymposium.org/2018/files/papers/issue2/popets-2018-0011.pdf | title = Dropping on the Edge: Flexibility and Traffic Confirmation in Onion Routing Protocols | authors = Florentin Rochet and Olivier Pereira | journal = Proceedings of the Privacy Enhancing Technologies Symposium | issn = 2299-0984 | publisher = De Gruyter Open | year = 2018 | issue = 2 | pages = 27–46 }}</ref>
{{Portal|Internet}}
* [[Normalization of deviance]]
* [[Open–closed principle]]
* [[Protocol ossification]]
* [[Static discipline]]
* [[Unix philosophy]]
== References ==
{{reflist
== External links ==
* [
* [
[[Category:Computer architecture statements]]
|