Melange: Creating a “Functional” Internet. Madhavapeddy, A., Ho, A., Deegan, T., Scott, D., & Sohan, R. In 2nd ACM SIGOPS/EuroSys European Conference on Computer Systems, pages 101-114, 2007.
Paper
Website abstract bibtex Most implementations of critical Internet protocols are written in type-unsafe languages such as C or C++ and are regularly vulnerable to serious security and reliability problems. Type-safe languages eliminate many errors but are not used to due to the perceived performance overheads. We combine two techniques to eliminate this performance penalty in a practical fashion: strong static typing and generative meta-programming. Static typing eliminates run-time type information by checking safety at compile-time and minimises dynamic checks. Meta-programming uses a single specification to abstract the low-level code required to transmit and receive packets. Our domain-specific language, MPL, describes Internet packet protocols and compiles into fast, zero-copy code for both parsing and creating these packets. MPL is designed for implementing quirky Internet protocols ranging from the low-level: Ethernet, IPv4, ICMP and TCP; to the complex application-level: SSH, DNS and BGP; and even file-system protocols such as 9P. We report on fully-featured SSH and DNS servers constructed using MPL and our OCaml framework Melange, and measure greater throughput, lower latency, better flexibility and more succinct source code than their C equivalents OpenSSH and BIND. Our quantitative analysis shows that the benefits of MPL-generated code overcomes the additional overheads of automatic garbage collection and dynamic bounds checking. Qualitatively, the flexibility of our approach shows that dramatic optimisations are easily possible.
@inProceedings{
title = {Melange: Creating a “Functional” Internet},
type = {inProceedings},
year = {2007},
identifiers = {[object Object]},
pages = {101-114},
websites = {http://doi.acm.org/10.1145/1272996.1273009},
id = {41465fb0-cd95-3c7f-9f0d-5de3c96757b5},
created = {2011-04-01T15:33:15.000Z},
file_attached = {true},
profile_id = {2834d4fc-14a3-3cd2-ad99-1eef34b88927},
group_id = {d14f7e13-b2b1-3278-8a95-a430f57d0ad3},
last_modified = {2016-02-29T21:21:39.000Z},
read = {false},
starred = {false},
authored = {false},
confirmed = {true},
hidden = {false},
citation_key = {Madhavapeddy2007},
abstract = {Most implementations of critical Internet protocols are written in type-unsafe languages such as C or C++ and are regularly vulnerable to serious security and reliability problems. Type-safe languages eliminate many errors but are not used to due to the perceived performance overheads. We combine two techniques to eliminate this performance penalty in a practical fashion: strong static typing and generative meta-programming. Static typing eliminates run-time type information by checking safety at compile-time and minimises dynamic checks. Meta-programming uses a single specification to abstract the low-level code required to transmit and receive packets. Our domain-specific language, MPL, describes Internet packet protocols and compiles into fast, zero-copy code for both parsing and creating these packets. MPL is designed for implementing quirky Internet protocols ranging from the low-level: Ethernet, IPv4, ICMP and TCP; to the complex application-level: SSH, DNS and BGP; and even file-system protocols such as 9P. We report on fully-featured SSH and DNS servers constructed using MPL and our OCaml framework Melange, and measure greater throughput, lower latency, better flexibility and more succinct source code than their C equivalents OpenSSH and BIND. Our quantitative analysis shows that the benefits of MPL-generated code overcomes the additional overheads of automatic garbage collection and dynamic bounds checking. Qualitatively, the flexibility of our approach shows that dramatic optimisations are easily possible.},
bibtype = {inProceedings},
author = {Madhavapeddy, Anil and Ho, Alex and Deegan, Tim and Scott, David and Sohan, Ripduman},
booktitle = {2nd ACM SIGOPS/EuroSys European Conference on Computer Systems}
}
Downloads: 0
{"_id":"5FSbfzkqMfHJuRwkQ","bibbaseid":"madhavapeddy-ho-deegan-scott-sohan-melangecreatingafunctionalinternet-2007","downloads":0,"creationDate":"2016-08-26T19:08:51.190Z","title":"Melange: Creating a “Functional” Internet","author_short":["Madhavapeddy, A.","Ho, A.","Deegan, T.","Scott, D.","Sohan, R."],"year":2007,"bibtype":"inProceedings","biburl":null,"bibdata":{"title":"Melange: Creating a “Functional” Internet","type":"inProceedings","year":"2007","identifiers":"[object Object]","pages":"101-114","websites":"http://doi.acm.org/10.1145/1272996.1273009","id":"41465fb0-cd95-3c7f-9f0d-5de3c96757b5","created":"2011-04-01T15:33:15.000Z","file_attached":"true","profile_id":"2834d4fc-14a3-3cd2-ad99-1eef34b88927","group_id":"d14f7e13-b2b1-3278-8a95-a430f57d0ad3","last_modified":"2016-02-29T21:21:39.000Z","read":false,"starred":false,"authored":false,"confirmed":"true","hidden":false,"citation_key":"Madhavapeddy2007","abstract":"Most implementations of critical Internet protocols are written in type-unsafe languages such as C or C++ and are regularly vulnerable to serious security and reliability problems. Type-safe languages eliminate many errors but are not used to due to the perceived performance overheads. We combine two techniques to eliminate this performance penalty in a practical fashion: strong static typing and generative meta-programming. Static typing eliminates run-time type information by checking safety at compile-time and minimises dynamic checks. Meta-programming uses a single specification to abstract the low-level code required to transmit and receive packets. Our domain-specific language, MPL, describes Internet packet protocols and compiles into fast, zero-copy code for both parsing and creating these packets. MPL is designed for implementing quirky Internet protocols ranging from the low-level: Ethernet, IPv4, ICMP and TCP; to the complex application-level: SSH, DNS and BGP; and even file-system protocols such as 9P. We report on fully-featured SSH and DNS servers constructed using MPL and our OCaml framework Melange, and measure greater throughput, lower latency, better flexibility and more succinct source code than their C equivalents OpenSSH and BIND. Our quantitative analysis shows that the benefits of MPL-generated code overcomes the additional overheads of automatic garbage collection and dynamic bounds checking. Qualitatively, the flexibility of our approach shows that dramatic optimisations are easily possible.","bibtype":"inProceedings","author":"Madhavapeddy, Anil and Ho, Alex and Deegan, Tim and Scott, David and Sohan, Ripduman","booktitle":"2nd ACM SIGOPS/EuroSys European Conference on Computer Systems","bibtex":"@inProceedings{\n title = {Melange: Creating a “Functional” Internet},\n type = {inProceedings},\n year = {2007},\n identifiers = {[object Object]},\n pages = {101-114},\n websites = {http://doi.acm.org/10.1145/1272996.1273009},\n id = {41465fb0-cd95-3c7f-9f0d-5de3c96757b5},\n created = {2011-04-01T15:33:15.000Z},\n file_attached = {true},\n profile_id = {2834d4fc-14a3-3cd2-ad99-1eef34b88927},\n group_id = {d14f7e13-b2b1-3278-8a95-a430f57d0ad3},\n last_modified = {2016-02-29T21:21:39.000Z},\n read = {false},\n starred = {false},\n authored = {false},\n confirmed = {true},\n hidden = {false},\n citation_key = {Madhavapeddy2007},\n abstract = {Most implementations of critical Internet protocols are written in type-unsafe languages such as C or C++ and are regularly vulnerable to serious security and reliability problems. Type-safe languages eliminate many errors but are not used to due to the perceived performance overheads. We combine two techniques to eliminate this performance penalty in a practical fashion: strong static typing and generative meta-programming. Static typing eliminates run-time type information by checking safety at compile-time and minimises dynamic checks. Meta-programming uses a single specification to abstract the low-level code required to transmit and receive packets. Our domain-specific language, MPL, describes Internet packet protocols and compiles into fast, zero-copy code for both parsing and creating these packets. MPL is designed for implementing quirky Internet protocols ranging from the low-level: Ethernet, IPv4, ICMP and TCP; to the complex application-level: SSH, DNS and BGP; and even file-system protocols such as 9P. We report on fully-featured SSH and DNS servers constructed using MPL and our OCaml framework Melange, and measure greater throughput, lower latency, better flexibility and more succinct source code than their C equivalents OpenSSH and BIND. Our quantitative analysis shows that the benefits of MPL-generated code overcomes the additional overheads of automatic garbage collection and dynamic bounds checking. Qualitatively, the flexibility of our approach shows that dramatic optimisations are easily possible.},\n bibtype = {inProceedings},\n author = {Madhavapeddy, Anil and Ho, Alex and Deegan, Tim and Scott, David and Sohan, Ripduman},\n booktitle = {2nd ACM SIGOPS/EuroSys European Conference on Computer Systems}\n}","author_short":["Madhavapeddy, A.","Ho, A.","Deegan, T.","Scott, D.","Sohan, R."],"urls":{"Paper":"http://bibbase.org/service/mendeley/2a5aa585-ad83-3b8c-9373-0fad35bf58e0/file/40c6958e-5024-747b-66f2-c17daa5ae40e/2007-Melange_Creating_a_Functional_Internet.pdf.pdf","Website":"http://doi.acm.org/10.1145/1272996.1273009"},"bibbaseid":"madhavapeddy-ho-deegan-scott-sohan-melangecreatingafunctionalinternet-2007","role":"author","downloads":0},"search_terms":["melange","creating","functional","internet","madhavapeddy","ho","deegan","scott","sohan"],"keywords":[],"authorIDs":[]}