Blockchain Technology and Maritime Shipping: a Primer

Total Page:16

File Type:pdf, Size:1020Kb

Blockchain Technology and Maritime Shipping: a Primer Blockchain Technology and Maritime Shipping: A Primer Submitted to U.S. Maritime Administration Prepared by Erin H. Green Edward W. Carr, Ph.D. James J. Winebrake, Ph.D. (Co-PI) James J. Corbett, Ph.D. (Co-PI) June 2020 Table of Contents Acknowledgements ....................................................................................... 4 Acronyms and Abbreviations ...................................................................... 5 1 Introduction to Blockchain Technology .............................................. 7 1.1 Blockchain Technology Overview .................................................................... 7 1.2 Transactions on Centralized Systems .............................................................. 7 1.3 Decentralized Networks and Distributed Ledgers ......................................... 8 1.3.1 Decentralized Networks .............................................................................................. 8 1.3.2 Distributed Ledger ...................................................................................................... 8 1.4 Mechanics of Blockchain ................................................................................... 8 1.4.1 Transactions ................................................................................................................ 8 1.4.2 Creating Blocks ........................................................................................................... 9 1.4.3 Hashing ....................................................................................................................... 9 1.4.4 Adding Blocks to the Blockchain ............................................................................. 10 1.4.5 Timestamp Server ..................................................................................................... 11 1.4.6 The Double Spend Problem ...................................................................................... 11 1.5 Validation Algorithms ..................................................................................... 12 1.5.1 Proof-of-Work .......................................................................................................... 12 1.5.2 Proof-of-Stake: .......................................................................................................... 13 1.5.3 Proof-of-Authority .................................................................................................... 13 1.5.4 Additional Consensus Algorithms ............................................................................ 13 1.6 Public vs. Private Blockchains ........................................................................ 14 1.6.1 Public Blockchains ................................................................................................... 14 1.6.2 Private Blockchains .................................................................................................. 14 1.7 Smart Contracts in Blockchain Technology ................................................. 15 1.8 Potential Benefits/Strengths of Blockchain ................................................... 15 1.8.1 Reduced Centralized Authority ................................................................................ 15 1.8.2 Immutable Data Storage ........................................................................................... 16 1.8.3 Reduced Transaction Costs (or Information Sharing Costs) .................................... 16 1.8.4 Increased Transparency and Traceability ................................................................. 16 1.8.5 Facilitation of Payments ........................................................................................... 17 1.8.6 Security ..................................................................................................................... 17 2 Potential Role of Blockchain Technology in Maritime Sector ......... 18 2.1 Key Drivers and Issues in the Maritime Sector ............................................ 18 2.2 Current Inefficient Nature of Transactions with Minimal TransParency . 18 2.2.1 ISM and ISO Standards and Codes ........................................................................... 20 2.2.2 Cold Chain Requirements ......................................................................................... 20 2.2.3 Data Flows ................................................................................................................ 21 2.2.4 Internet of Things ...................................................................................................... 21 2.2.5 Cybersecurity Threats ............................................................................................... 22 2.2.6 Fraud ......................................................................................................................... 24 Page 2 of 46 2.2.7 Environmental Standards and Efficiency Requirements .......................................... 24 2.2.8 Other Regulations and Initiatives ............................................................................. 25 3 Current Examples and Potential Applications of Blockchain in the Maritime Sector ................................................................................... 26 3.1 Paperless Trade, Tracking, Logistics, and Facilitating Stakeholders Communication/Data Sharing ....................................................................... 26 3.1.1 TradeLens ................................................................................................................. 26 3.1.2 CargoX – Bill of Lading ........................................................................................... 26 3.1.3 Global Shipping Business Network (GSBN) ............................................................ 27 3.1.4 Abu Dhabi Ports—Silsal ........................................................................................... 27 3.1.5 Pacific International Lines Ltd, PSA International and IBM Singapore .................. 27 3.1.6 AMRO, Samsung SDS And Port Of Rotterdam ....................................................... 28 3.1.7 ShipChain .................................................................................................................. 28 3.2 Payments for ShiPPing Services: 300Cubits ................................................. 28 3.3 Environmental/Efficiency Standards ............................................................. 28 3.3.1 Marine Blockchain Labs (MBL) Fuel Provenance ................................................... 28 3.3.2 BLOC Shipping Emissions Monitoring Verification and Reporting (MRV) ........... 29 3.4 Safety ................................................................................................................. 29 3.4.1 BLOC, Lloyds Register, and Rainmaking—Hazardous and Dangerous Goods ...... 29 3.4.2 Marine Transport International Limited (MTI) and SOLAS VGM ......................... 29 3.5 Certification ..................................................................................................... 30 3.5.1 Maritime Blockchain Labs (MBL) Seafarer Certification ........................................ 30 3.5.2 Port of Antwerp ........................................................................................................ 30 3.6 Other Initiatives ............................................................................................... 30 3.6.1 Marine Insurance—EY, Guardtime, Maersk, Microsoft .......................................... 30 3.6.2 Shipbuilding and Registration—LR and Hyundai Heavy Industries (HHI) ............. 31 3.6.3 Emissions Offsets ..................................................................................................... 31 4 Challenges for Blockchain in the Maritime Sector ........................... 31 4.1 Overview ........................................................................................................... 31 4.2 Barriers to Adoption of Blockchain Technology ShiPPing .......................... 32 4.3 Challenges Surrounding Adoption of Blockchain Technology in the Maritime Sector ............................................................................................... 32 4.3.1 Security and Reliability Concerns ............................................................................ 32 4.3.2 Legal or Regulatory Concerns and Limitations of Smart Contracts ......................... 34 4.3.3 Energy Consumption and Environmental Impacts of Blockchain ............................ 36 4.3.4 “Transaction” Costs .................................................................................................. 37 4.4 Technical Limitations of Blockchain ............................................................. 38 4.4.1 Storage, Transaction Speeds, and Scalability ........................................................... 38 4.4.2 Integration of Data Communications. ....................................................................... 39 5 Conclusion ............................................................................................ 39 6 References ............................................................................................. 41 Page 3 of 46 Acknowledgements We would like to thank Dan Yuska and the U.S. Department of Transportation Maritime Administration for supporting this work. We would aLso like to thank various reviewers for their heLpful comments on earlier drafts of this work. LastLy, we thank the many members of
Recommended publications
  • Not ACID, Not BASE, but SALT a Transaction Processing Perspective on Blockchains
    Not ACID, not BASE, but SALT A Transaction Processing Perspective on Blockchains Stefan Tai, Jacob Eberhardt and Markus Klems Information Systems Engineering, Technische Universitat¨ Berlin fst, je, [email protected] Keywords: SALT, blockchain, decentralized, ACID, BASE, transaction processing Abstract: Traditional ACID transactions, typically supported by relational database management systems, emphasize database consistency. BASE provides a model that trades some consistency for availability, and is typically favored by cloud systems and NoSQL data stores. With the increasing popularity of blockchain technology, another alternative to both ACID and BASE is introduced: SALT. In this keynote paper, we present SALT as a model to explain blockchains and their use in application architecture. We take both, a transaction and a transaction processing systems perspective on the SALT model. From a transactions perspective, SALT is about Sequential, Agreed-on, Ledgered, and Tamper-resistant transaction processing. From a systems perspec- tive, SALT is about decentralized transaction processing systems being Symmetric, Admin-free, Ledgered and Time-consensual. We discuss the importance of these dual perspectives, both, when comparing SALT with ACID and BASE, and when engineering blockchain-based applications. We expect the next-generation of decentralized transactional applications to leverage combinations of all three transaction models. 1 INTRODUCTION against. Using the admittedly contrived acronym of SALT, we characterize blockchain-based transactions There is a common belief that blockchains have the – from a transactions perspective – as Sequential, potential to fundamentally disrupt entire industries. Agreed, Ledgered, and Tamper-resistant, and – from Whether we are talking about financial services, the a systems perspective – as Symmetric, Admin-free, sharing economy, the Internet of Things, or future en- Ledgered, and Time-consensual.
    [Show full text]
  • Failures in DBMS
    Chapter 11 Database Recovery 1 Failures in DBMS Two common kinds of failures StSystem filfailure (t)(e.g. power outage) ‒ affects all transactions currently in progress but does not physically damage the data (soft crash) Media failures (e.g. Head crash on the disk) ‒ damagg()e to the database (hard crash) ‒ need backup data Recoveryyp scheme responsible for handling failures and restoring database to consistent state 2 Recovery Recovering the database itself Recovery algorithm has two parts ‒ Actions taken during normal operation to ensure system can recover from failure (e.g., backup, log file) ‒ Actions taken after a failure to restore database to consistent state We will discuss (briefly) ‒ Transactions/Transaction recovery ‒ System Recovery 3 Transactions A database is updated by processing transactions that result in changes to one or more records. A user’s program may carry out many operations on the data retrieved from the database, but the DBMS is only concerned with data read/written from/to the database. The DBMS’s abstract view of a user program is a sequence of transactions (reads and writes). To understand database recovery, we must first understand the concept of transaction integrity. 4 Transactions A transaction is considered a logical unit of work ‒ START Statement: BEGIN TRANSACTION ‒ END Statement: COMMIT ‒ Execution errors: ROLLBACK Assume we want to transfer $100 from one bank (A) account to another (B): UPDATE Account_A SET Balance= Balance -100; UPDATE Account_B SET Balance= Balance +100; We want these two operations to appear as a single atomic action 5 Transactions We want these two operations to appear as a single atomic action ‒ To avoid inconsistent states of the database in-between the two updates ‒ And obviously we cannot allow the first UPDATE to be executed and the second not or vice versa.
    [Show full text]
  • Post 9/11 Maritime Security Measures : Global Maritime Security Versus Facilitation of Global Maritime Trade Norhasliza Mat Salleh World Maritime University
    World Maritime University The Maritime Commons: Digital Repository of the World Maritime University World Maritime University Dissertations Dissertations 2006 Post 9/11 maritime security measures : global maritime security versus facilitation of global maritime trade Norhasliza Mat Salleh World Maritime University Follow this and additional works at: http://commons.wmu.se/all_dissertations Part of the Defense and Security Studies Commons Recommended Citation Mat Salleh, Norhasliza, "Post 9/11 maritime security measures : global maritime security versus facilitation of global maritime trade" (2006). World Maritime University Dissertations. 98. http://commons.wmu.se/all_dissertations/98 This Dissertation is brought to you courtesy of Maritime Commons. Open Access items may be downloaded for non-commercial, fair use academic purposes. No items may be hosted on another server or web site without express written permission from the World Maritime University. For more information, please contact [email protected]. WORLD MARITIME UNIVERSITY Malmö, Sweden POST 9/11 MARITIME SECURITY MEASURES: Global Maritime Security versus the Facilitation of Global Maritime Trade By NORHASLIZA MAT SALLEH Malaysia A dissertation submitted to the World Maritime University in partial fulfilment of the requirements for the award of the degree of MASTERS OF SCIENCE in MARITIME AFFAIRS (MARITIME ADMINISTRATION) 2006 © Copyright Norhasliza MAT SALLEH, 2006 DECLARATION I certify that all material in this dissertation that is not my own work has been identified, and that no material is included for which a degree has previously been conferred on me. The content of this dissertation reflect my own personal views, and are not necessarily endorsed by the University. Signature : …………………………… Date : ……………………………. Supervised by: Cdr.
    [Show full text]
  • “Maritime Transport in Africa: Challenges, Opportunities, and an Agenda for Future Research”
    UNCTAD Ad Hoc Expert Meeting (Under the framework of the IAME Conference 2018) 11 September 2018, Mombasa, Kenya “Maritime Transport In Africa: Challenges, Opportunities, and an Agenda for Future Research” Opportunity and Growth Diagnostic of Maritime Transportation in the Eastern and Southern Africa By Professor Godius Kahyarara Economics Department With Assistantship of Debora Simon Geography Department University of Dar-es-Salaam, United Republic of Tanzania This expert paper is reproduced by the UNCTAD secretariat in the form and language in which it has been received. Page 1 The views expressed are those of the author and do not necessarily reflect the views of the UNCTAD. OPPORTUNITY AND GROWTH DIAGNOSTIC OF MARITIME TRANSPORTATION IN THE EASTERN AND SOUTHERN AFRICA Professor Godius Kahyarara University of Dar-es-Salaam Economics Department With Assistantship of Debora Simon University of Dar-es-Salaam Geography Department SUMMARY This paper examines opportunities and undertakes growth diagnostics of maritime transportation in the Eastern and Southern Africa. To do so it adopts a ‘Growth Diagnostic ‘methodology proposed by Ricardo Hausman, Dani Rodrick and Andres Velasco (HRV) to identify constraints that impede development of the Maritime transport focusing on a wide range of aspects within transportation corridors that are most critical and binding constraints to development of maritime transportation. The paper also assesses existing opportunities for Maritime Transportation and proposes the best approach to rip such opportunities. Paper findings are that port inefficiency depicted by longer container dwell time, delays in vessel traffic clearance, lengthy documentation processing, lesser container per crane hour (with exception of South Africa) as one of the critical binding constraints.
    [Show full text]
  • Call to Action Ceos and Maritime Industry Leaders in Support of Decarbonization
    Call to Action CEOs and maritime industry leaders in support of decarbonization Climate change is a serious social and economic challenge. As business leaders engaged across the shipping value chain, we endorse the International Maritime Organization (IMO) Vision to phase out greenhouse gas (GHG) emissions as soon as possible. We encourage public and private collaboration to demonstrate leadership through timely and appropriate action. We urge our business peers to join us, as we stand committed to support this challenge and to thrive within a changing context. The IMO Strategy – to reduce the total annual GHG emissions from international shipping by at least 50% by 2050 compared to 2008 – is a step towards achieving GHG emissions reductions consistent with the Paris Agreement temperature goals. To achieve this, the shipping industry needs to further improve operational and technical energy efficiency, and must transition to zero carbon fuels and new propulsion systems. It must do this whilst ensuring safety standards are maintained and possibly enhanced. Commitment We, a group of CEOs and maritime industry leaders from across the broader maritime industry, support the IMO strategy. We stand ready and willing to work with our peers, the IMO, and governments to help this succeed. • Evidence-based: We accept the scientific rationale for urgent action presented by the IPCC and in the IMO GHG Studies, and we are committed to addressing climate change. • Ambitious but achievable: We recognize that this will require significant reductions in the carbon intensity of vessels to accommodate expected growth in global trade. • Innovative: We believe that a shift to a low-carbon economy by 2050 has the potential to create new opportunities for business through both technological and business model innovation.
    [Show full text]
  • SQL Vs Nosql: a Performance Comparison
    SQL vs NoSQL: A Performance Comparison Ruihan Wang Zongyan Yang University of Rochester University of Rochester [email protected] [email protected] Abstract 2. ACID Properties and CAP Theorem We always hear some statements like ‘SQL is outdated’, 2.1. ACID Properties ‘This is the world of NoSQL’, ‘SQL is still used a lot by We need to refer the ACID properties[12]: most of companies.’ Which one is accurate? Has NoSQL completely replace SQL? Or is NoSQL just a hype? SQL Atomicity (Structured Query Language) is a standard query language A transaction is an atomic unit of processing; it should for relational database management system. The most popu- either be performed in its entirety or not performed at lar types of RDBMS(Relational Database Management Sys- all. tems) like Oracle, MySQL, SQL Server, uses SQL as their Consistency preservation standard database query language.[3] NoSQL means Not A transaction should be consistency preserving, meaning Only SQL, which is a collection of non-relational data stor- that if it is completely executed from beginning to end age systems. The important character of NoSQL is that it re- without interference from other transactions, it should laxes one or more of the ACID properties for a better perfor- take the database from one consistent state to another. mance in desired fields. Some of the NOSQL databases most Isolation companies using are Cassandra, CouchDB, Hadoop Hbase, A transaction should appear as though it is being exe- MongoDB. In this paper, we’ll outline the general differences cuted in iso- lation from other transactions, even though between the SQL and NoSQL, discuss if Relational Database many transactions are execut- ing concurrently.
    [Show full text]
  • APPENDIX G Acid Dissociation Constants
    harxxxxx_App-G.qxd 3/8/10 1:34 PM Page AP11 APPENDIX G Acid Dissociation Constants §␮ ϭ 0.1 M 0 ؍ (Ionic strength (␮ † ‡ † Name Structure* pKa Ka pKa ϫ Ϫ5 Acetic acid CH3CO2H 4.756 1.75 10 4.56 (ethanoic acid) N ϩ H3 ϫ Ϫ3 Alanine CHCH3 2.344 (CO2H) 4.53 10 2.33 ϫ Ϫ10 9.868 (NH3) 1.36 10 9.71 CO2H ϩ Ϫ5 Aminobenzene NH3 4.601 2.51 ϫ 10 4.64 (aniline) ϪO SNϩ Ϫ4 4-Aminobenzenesulfonic acid 3 H3 3.232 5.86 ϫ 10 3.01 (sulfanilic acid) ϩ NH3 ϫ Ϫ3 2-Aminobenzoic acid 2.08 (CO2H) 8.3 10 2.01 ϫ Ϫ5 (anthranilic acid) 4.96 (NH3) 1.10 10 4.78 CO2H ϩ 2-Aminoethanethiol HSCH2CH2NH3 —— 8.21 (SH) (2-mercaptoethylamine) —— 10.73 (NH3) ϩ ϫ Ϫ10 2-Aminoethanol HOCH2CH2NH3 9.498 3.18 10 9.52 (ethanolamine) O H ϫ Ϫ5 4.70 (NH3) (20°) 2.0 10 4.74 2-Aminophenol Ϫ 9.97 (OH) (20°) 1.05 ϫ 10 10 9.87 ϩ NH3 ϩ ϫ Ϫ10 Ammonia NH4 9.245 5.69 10 9.26 N ϩ H3 N ϩ H2 ϫ Ϫ2 1.823 (CO2H) 1.50 10 2.03 CHCH CH CH NHC ϫ Ϫ9 Arginine 2 2 2 8.991 (NH3) 1.02 10 9.00 NH —— (NH2) —— (12.1) CO2H 2 O Ϫ 2.24 5.8 ϫ 10 3 2.15 Ϫ Arsenic acid HO As OH 6.96 1.10 ϫ 10 7 6.65 Ϫ (hydrogen arsenate) (11.50) 3.2 ϫ 10 12 (11.18) OH ϫ Ϫ10 Arsenious acid As(OH)3 9.29 5.1 10 9.14 (hydrogen arsenite) N ϩ O H3 Asparagine CHCH2CNH2 —— —— 2.16 (CO2H) —— —— 8.73 (NH3) CO2H *Each acid is written in its protonated form.
    [Show full text]
  • The Economic Impacts of the Gulf of Mexico Oil and Natural Gas Industry
    The Economic Impacts of the Gulf of Mexico Oil and Natural Gas Industry Prepared For Prepared By Executive Summary Introduction Despite the current difficulties facing the global economy as a whole and the oil and natural gas industry specifically, the Gulf of Mexico oil and natural gas industry will likely continue to be a major source of energy production, employment, gross domestic product, and government revenues for the United States. Several proposals have been advanced recently which would have a major impact on the industry’s activity levels, and the economic activity supported by the Gulf of Mexico offshore oil and natural gas industry. The proposals vary widely, but for the purpose of this report three scenarios were developed, a scenario based on a continuation of current policies and regulations, a scenario examining the potential impacts of a ban on new offshore leases, and a scenario examining the potential impacts of a ban on new drilling permits approvals in the Gulf of Mexico. Energy and Industrial Advisory Partners (EIAP) was commissioned by the National Ocean Industry Association (NOIA) to develop a report forecasting activity levels, spending, oil and natural gas production, supported employment, GDP, and Government Revenues in these scenarios. The scenarios developed in this report are based solely upon government and other publicly available data and EIAP’s own expertise and analysis. The study also included profiles of NOIA members to demonstrate the diverse group of companies which make up the offshore Gulf of Mexico oil and natural gas industry as well as a list of over 2,400 suppliers to the industry representing all 50 states.
    [Show full text]
  • A New Maritime Strategy for 21St-Century National Security
    '*/"-3&1035 The Institute for Foreign Policy Analysis, Inc. (IFPA), now in its thirty-first year, develops innovative strategies for new security challenges. IFPA conducts studies, workshops, and conferences on national security and foreign policy issues and produces innovative reports, briefings, and publications. IFPA¹s products and services help government policymakers, military and industry leaders, and the broader public policy communities make informed decisions in a complex and dynamic global environment. With core staff as well as offices in Cambridge, Massachusetts, and Washington, D.C., the Institute maintains a global network of research advisors and consultants. The International Security Studies Program (ISSP) is dedicated to teaching and research across the international security spectrum. As a distinct field of study within the multidisciplinary curriculum of The Fletcher School, Tufts University, the ISSP offers a full schedule of graduate-level courses and seminars. The ISSP sponsors a diverse range of “outside the classroom” educational activities, including annual conferences devoted to critical defense-related issues, a simulation exercise, a lecture series, field trips, and publications. The Naval War College (NWC) develops strategic and operational leaders of character who are strategically minded, critical thinkers, and skilled naval and joint warfighters. The College also helps the Chief of Naval Operations define the future Navy by conducting focused, forward-thinking research, analysis, and war gaming that anticipates future operational and strategic challenges. In addition, NWC actively supports the Navy’s combat readiness through a variety of activities designed to improve the capability of Navy commanders to lead maritime, joint and combined forces. Finally, the Naval War College strengthens maritime security cooperation by bringing international naval officers together with their U.S.
    [Show full text]
  • Drugs and Acid Dissociation Constants Ionisation of Drug Molecules Most Drugs Ionise in Aqueous Solution.1 They Are Weak Acids Or Weak Bases
    Drugs and acid dissociation constants Ionisation of drug molecules Most drugs ionise in aqueous solution.1 They are weak acids or weak bases. Those that are weak acids ionise in water to give acidic solutions while those that are weak bases ionise to give basic solutions. Drug molecules that are weak acids Drug molecules that are weak bases where, HA = acid (the drug molecule) where, B = base (the drug molecule) H2O = base H2O = acid A− = conjugate base (the drug anion) OH− = conjugate base (the drug anion) + + H3O = conjugate acid BH = conjugate acid Acid dissociation constant, Ka For a drug molecule that is a weak acid The equilibrium constant for this ionisation is given by the equation + − where [H3O ], [A ], [HA] and [H2O] are the concentrations at equilibrium. In a dilute solution the concentration of water is to all intents and purposes constant. So the equation is simplified to: where Ka is the acid dissociation constant for the weak acid + + Also, H3O is often written simply as H and the equation for Ka is usually written as: Values for Ka are extremely small and, therefore, pKa values are given (similar to the reason pH is used rather than [H+]. The relationship between pKa and pH is given by the Henderson–Hasselbalch equation: or This relationship is important when determining pKa values from pH measurements. Base dissociation constant, Kb For a drug molecule that is a weak base: 1 Ionisation of drug molecules. 1 Following the same logic as for deriving Ka, base dissociation constant, Kb, is given by: and Ionisation of water Water ionises very slightly.
    [Show full text]
  • Global Maritime Partnerships: Network & Coalition Building Across the Spectrum of Operations
    Global Maritime Partnerships: Network & Coalition Building across the Spectrum of Operations Dr. Chris Rahman Asian Naval Warfare Kuala Lumpur 10-11 September 2014 Global Maritime Partnership Initiative (1,000-ship Navy) Concept introduced by CNO, Admiral Mike Mullen, USN - Naval War College (August 2005) - 17th International Seapower Symposium, NWC (September 2005) - USNI Proceedings (Admirals Morgan and Martoglio: November 2005) - RUSI Future Maritime Warfare Conference, London (December 2005) - WPNS, Pearl Harbor (October 2006) Global Maritime Partnership Initiative What it is: – Framework for development of regional and global networks of cooperation for maritime security What it is not: – A global alliance of warships under U.S. control Guiding Assumptions • Interdependence and the transnational nature of the sea means that a maritime security threat in one part of the world can affect the entire maritime system • The world’s oceans are too vast and politically and legally complex for the U.S. Navy or any single state to combat the challenges alone • International cooperation is therefore essential to improve good order at sea Guiding Assumptions • Focus on combating illegal activity at sea: - Piracy - Drug smuggling - Transport of WMD - Illegal exploitation of marine resources - Organized crime - Terrorism The Solution • A Global Maritime Network “standing watch over the seas” • Builds upon existing concepts such as the PSI and RMSI • The PSI viewed as a preferred model: an informal and voluntary arrangement amongst likeminded nations • Combined, joint, inter-agency and private industry cooperation • “Exporting” maritime security to problem regions and building capacity through assistance programmes Mullen’s “First Principles” 1. Primacy of sovereignty 2. States cooperate where they have common interests (participation is voluntary) 3.
    [Show full text]
  • Implementing Distributed Transactions Distributed Transaction Distributed Database Systems ACID Properties Global Atomicity Atom
    Distributed Transaction • A distributed transaction accesses resource managers distributed across a network Implementing Distributed • When resource managers are DBMSs we refer to the Transactions system as a distributed database system Chapter 24 DBMS at Site 1 Application Program DBMS 1 at Site 2 2 Distributed Database Systems ACID Properties • Each local DBMS might export • Each local DBMS – stored procedures, or – supports ACID properties locally for each subtransaction – an SQL interface. • Just like any other transaction that executes there • In either case, operations at each site are grouped – eliminates local deadlocks together as a subtransaction and the site is referred • The additional issues are: to as a cohort of the distributed transaction – Global atomicity: all cohorts must abort or all commit – Each subtransaction is treated as a transaction at its site – Global deadlocks: there must be no deadlocks involving • Coordinator module (part of TP monitor) supports multiple sites ACID properties of distributed transaction – Global serialization: distributed transaction must be globally serializable – Transaction manager acts as coordinator 3 4 Atomic Commit Protocol Global Atomicity Transaction (3) xa_reg • All subtransactions of a distributed transaction Manager Resource must commit or all must abort (coordinator) Manager (1) tx_begin (cohort) • An atomic commit protocol, initiated by a (4) tx_commit (5) atomic coordinator (e.g., the transaction manager), commit protocol ensures this. (3) xa_reg Resource Application – Coordinator
    [Show full text]