欢迎来到麦多课文档分享! | 帮助中心 海量文档,免费浏览,给你所需,享你所想!
麦多课文档分享
全部分类
  • 标准规范>
  • 教学课件>
  • 考试资料>
  • 办公文档>
  • 学术论文>
  • 行业资料>
  • 易语言源码>
  • ImageVerifierCode 换一换
    首页 麦多课文档分享 > 资源分类 > PPT文档下载
    分享到微信 分享到微博 分享到QQ空间

    Systems Research.ppt

    • 资源ID:389577       资源大小:402KB        全文页数:39页
    • 资源格式: PPT        下载积分:2000积分
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    二维码
    微信扫一扫登录
    下载资源需要2000积分(如需开发票,请勿充值!)
    邮箱/手机:
    温馨提示:
    如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如需开发票,请勿充值!如填写123,账号就是123,密码也是123。
    支付方式: 支付宝扫码支付    微信扫码支付   
    验证码:   换一换

    加入VIP,交流精品资源
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    Systems Research.ppt

    1、Systems Research,Barbara Liskov October 2007,Replication,Goal: provide reliability and availability by storing information at several nodes,Single Server,Server,Clients,Single Server,Server,Clients,X,Replicated Servers,Servers,Clients,X,Replication Issues,Semantics What is being replicated Failure a

    2、ssumptions,Issue 1: Semantics,One-copy consistency Or weaker,Servers,Clients,Issue 2: Type of Operations,Only reads and writes General operationsacct.deposit($); acct.withdraw($);,Replication protocols,Data replication Quorums and voting Operations State machine replication System performs a sequenc

    3、e of operations,Issue 3: Failure Assumptions,Network is asynchronous Eventual delivery Network is malicious Corruption Replay Spoofing Handled via cryptographyNodes are failstop or Byzantine,Failstop Failures,Nodes fail by crashing A machine is either working correctly or it is doing nothing!The ass

    4、umption made in the 1980s,Failstop failures,Requires 2f+1 replicas Operations must intersect at at least one replica In general want availability for both reads and writes: f+1 nodes is sufficient Read and write quorums,Quorums,Servers,Clients,State:,State:,State:,write A,write A,write A,X,Quorums,S

    5、ervers,Clients,State:,State:,State:,A,A,X,Quorums,Servers,Clients,State:,State:,A,write B,write B,write B,X,State:,A,X,Data Replication,R.H. Thomas, A majority consensus approach to concurrency control for multiple copy databases, ACM TODS, 1979 D.K. Gifford, Weighted voting for replicated data, SOS

    6、P 1979 H. Attiya, A. Bar-Noy, and D. Dolev, Sharing memory robustly in message-passing systems, JACM , Jan. 1995,Quorum Consensus,Each data item has a version number A sequence of values write(d, val, v#) Waits for f+1 oks read(d) returns (val, v#) Waits for f+1 matching v#s Else does a write-back,S

    7、tate Machine Replication,Replicas must execute operations in the same orderImplies replicas will have the same state, assuming replicas start in the same state operations are deterministic,Failstop Replication,Viewstamped replication: a new primary copy method to support highly available distributed

    8、 systems, B. Oki and B. Liskov, PODC 1988 Thesis, May 1988 Replication in the Harp file system, S. Ghemawat et. al, SOSP 1991 The part-time parliament, L. Lamport, TOCS 1998 Paxos made simple, L. Lamport, Nov. 2001,Approach,Use a primary It orders the operations Other replicas obey this order,Views,

    9、System moves through a sequence of views Primary runs the protocol Replicas watch the primary and do a view change if it fails,Normal Case,Client sends request to primary Primary sends prepare message,Normal Case,Client sends request to primary Primary sends prepare message Replicas receive prepare

    10、Send prepare-ok message to the primary,Normal Case,Client sends request to primary Primary sends prepare message to all Replicas receive prepare Send prepare-ok message to the primary Primary waits for f prepare-oks Sends response to client,Normal Case,A 2-phase protocol: Prepare; commit Only 3 mess

    11、age delays,Byzantine Failures,Nodes fail arbitrarily They lie, they colludeCauses Malicious attacks Non-deterministic software errors,Quorums,3f+1 replicas are needed to survive f failures 2f+1 replicas is a quorum Insures intersectionThe minimum in an asynchronous network,State:,A,State:,A,State:,A

    12、,State:,Quorums,Servers,Clients,write A,write A,X,write A,write A,State:,A,State:,A,B,State:,B,State:,B,Quorums,Servers,Clients,write B,write B,X,write B,write B,BFT,M. Castro and B. Liskov, Practical Byzantine faulty tolerance and proactive recovery, ACM TOCS, 2002,Strategy,Primary runs the protoco

    13、l in the normal case Replicas watch the primary and do a view change if it failsKey difference: replicas might lie Solution: add a pre-prepare phase,Normal Case,Client sends request to primary,Normal Case,Client sends request to primary Primary sends pre-prepare message to all,Normal Case,Client sen

    14、ds request to primary Primary sends pre-prepare message to allWhy not a prepare message? Because primary might be malicious,Normal Case,Client sends request to primary Primary sends pre-prepare message to all Replicas check the pre-prepare and if it is ok: Send prepare messages to all,Normal Case,Re

    15、plicas wait for 2f+1 matching prepares Send commit message to all,Normal Case,Replicas wait for 2f+1 matching prepares Send commit message to all Replicas wait for 2f+1 matching commits Execute operation and send result to client,Follow-on Work,BASE: using abstraction to improve fault tolerance, R.

    16、Rodrigo et al, SOSP 2001 R.Kotla and M. Dahlin, High Throughput Byzantine Fault tolerance. DSN 2004 J. Li and D. Mazieres, Beyond one-third faulty replicas in Byzantine fault tolerant systems, NSDI 07 Abd-El-Malek et al, Fault-scalable Byzantine fault-tolerant services, SOSP 05 HQ replications: a hy

    17、brid quorum protocol for Byzantine Fault tolerance, OSDI 06,Papers in SOSP 07,Monday 1:30-3:30 Zyzzyva: Speculative Byzantine fault tolerance Tolerating Byzantine faults in database systems using commit barrier scheduling Low-overhead Byzantine fault-tolerant storage Attested append-only memory: making adversaries stick to their word Tuesday: 11:00-12:00 PeerReview: practical accountability for distributed systems,


    注意事项

    本文(Systems Research.ppt)为本站会员(registerpick115)主动上传,麦多课文档分享仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文档分享(点击联系客服),我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1 

    收起
    展开